/* Estilos personalizados adicionales */
/* [2026-03-14] Modificado por Antigravity (Gemini): Fix responsividad móvil modal de pago - overflow-y en overlay, dvh support */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    background-color: #fafafa;
}

/* Colores de avatares estilo AgendaPro */
.avatar-green { background-color: #10b981; }
.avatar-purple { background-color: #8b5cf6; }
.avatar-blue { background-color: #3b82f6; }
.avatar-orange { background-color: #f59e0b; }
.avatar-pink { background-color: #ec4899; }
.avatar-teal { background-color: #14b8a6; }
.avatar-indigo { background-color: #6366f1; }
.avatar-red { background-color: #ef4444; }
.avatar-cyan { background-color: #06b6d4; }

/* ========================================
   NAVBAR ESTILO AGENDAPRO
   ======================================== */
.navbar-agendapro {
    background-color: #1a1a2e;
    height: 56px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: visible;
    position: relative;
    z-index: 1000;
}

.navbar-container {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    overflow: visible;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.navbar-logo svg {
    width: 18px;
    height: 18px;
}

.navbar-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.navbar-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    display: none;
}

@media (min-width: 768px) {
    .navbar-title {
        display: block;
    }
}

.navbar-menu {
    display: none;
    align-items: center;
    gap: 2px;
    height: 100%;
}

@media (min-width: 1024px) {
    .navbar-menu {
        display: flex;
    }
}

.navbar-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-item:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
}

.navbar-item.active {
    color: white;
    background-color: #374151;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.navbar-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 100;
    margin-top: 4px;
}

.navbar-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: all 0.15s ease;
}

.navbar-dropdown-menu a:hover {
    background-color: #f3f4f6;
    color: #7c3aed;
}

.navbar-dropdown-menu a.font-medium {
    font-weight: 500;
}

.dropdown-divider {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
    position: relative;
}

.navbar-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s ease;
}

.navbar-icon-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
}

.navbar-icon-btn svg {
    width: 20px;
    height: 20px;
}

.navbar-btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
}

.navbar-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.navbar-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.navbar-btn-secondary {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
}

@media (min-width: 768px) {
    .navbar-btn-secondary {
        display: flex;
    }
}

.navbar-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.navbar-btn-secondary svg {
    width: 16px;
    height: 16px;
}

.navbar-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
}

.navbar-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Dropdown del usuario */
.navbar-user-dropdown {
    position: relative;
    z-index: 1001;
    height: auto !important;
    display: flex;
    align-items: center;
}

.navbar-user-menu {
    position: absolute;
    top: 44px;
    left: auto !important;
    right: 16px !important;
    width: 200px;
    z-index: 1002;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
}

.navbar-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
}

.navbar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.navbar-user-role {
    font-size: 12px;
    color: #6b7280;
}

.navbar-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    font-size: 14px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.navbar-logout-btn:hover {
    background-color: #fef2f2;
}

.navbar-logout-btn svg {
    color: #ef4444;
}

.navbar-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .navbar-mobile-toggle {
        display: none;
    }
}

.navbar-mobile-toggle svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   MENÚ MÓVIL
   ======================================== */
.mobile-user-menu {
    display: none;
}

@media (max-width: 1023px) {
    .navbar-actions {
        display: none !important;
    }

    .mobile-user-menu {
        display: block;
        width: 100%;
        margin-top: auto; /* Push to bottom if flex column */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px; 
    }

    .navbar-menu.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        background-color: #1a1a2e;
        height: calc(100vh - 56px);
        padding: 10px 0;
        overflow-y: auto;
        z-index: 1000;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        animation: fadeIn 0.2s ease-out;
    }

    .navbar-menu.mobile-open .navbar-item {
        width: 100%;
        padding: 16px 24px;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: #e5e7eb;
        border-radius: 0;
    }

    .navbar-menu.mobile-open .navbar-item:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    /* Dropdowns en móvil */
    .navbar-menu.mobile-open .navbar-dropdown {
        flex-direction: column;
        width: 100%;
        height: auto;
        display: block;
    }

    .navbar-menu.mobile-open .navbar-dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #131322;
        margin-top: 0;
        padding: 0;
        border-radius: 0;
    }

    .navbar-menu.mobile-open .navbar-dropdown-menu a {
        padding-left: 48px;
        color: #9ca3af;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .navbar-menu.mobile-open .navbar-dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: white;
    }
    
    .navbar-menu.mobile-open .dropdown-divider {
        padding-left: 48px;
        background-color: #131322;
    }
    
    /* Indicador abierto para dropdown */
    .navbar-menu.mobile-open .navbar-item .dropdown-arrow {
        transition: transform 0.2s;
    }
}

/* Animaciones personalizadas */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos para la agenda tipo AgendaPro */
.agenda-container {
    background-color: #ffffff;
    border-radius: 0;
}

.agenda-grid {
    display: grid;
    grid-template-columns: 70px repeat(auto-fit, minmax(140px, 1fr));
}

.time-column {
    background-color: #fafafa;
    border-right: 1px solid #e5e7eb;
}

.time-slot {
    position: relative;
    min-height: 48px;
    border-bottom: 1px solid #f3f4f6;
}

.time-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    padding-top: 4px;
}

.barber-column {
    border-right: 1px solid #e5e7eb;
    background-color: #ffffff;
    max-width: 280px;
}

/* Contenedor de columnas de barberos - centrado cuando hay pocos */
.barbers-wrapper {
    display: flex;
    justify-content: flex-start;
}

.barbers-columns {
    display: flex;
    min-width: max-content;
}

.barber-column:last-child {
    border-right: none;
}

.barber-header {
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 8px;
    gap: 6px;
}

.barber-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.barber-name {
    font-size: 12px;
    color: #374151;
    font-weight: 500;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-cell {
    height: 48px;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    transition: background-color 0.15s ease;
}

.slot-cell:hover {
    background-color: #f0f9ff;
}

.slot-cell-action {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
    background-color: rgba(240, 249, 255, 0.9);
}

.slot-cell:hover .slot-cell-action {
    opacity: 1;
}

.slot-cell.has-appointment {
    background-color: transparent;
}

.slot-cell.has-appointment:hover {
    background-color: transparent;
}

.slot-cell .appointment-card {
    position: relative;
    margin: 2px 4px;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    overflow: hidden;
}

/* Botón Agregar en slot */
.btn-agregar-slot {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-agregar-slot:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: scale(1.02);
}

.btn-agregar-slot svg {
    width: 14px;
    height: 14px;
}

/* Menú desplegable del slot */
.slot-menu {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 6px 0;
    min-width: 160px;
    z-index: 50;
}

.slot-menu.active {
    display: block;
}

.slot-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-align: left;
}

.slot-menu-item:hover {
    background-color: #f3f4f6;
}

.slot-menu-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.slot-menu-icon.reserva-icon {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 50%;
}

.slot-menu-icon svg,
.slot-menu-item svg.slot-menu-icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

/* ========================================
   MODAL NUEVA RESERVA
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    /* Permite scroll en el overlay cuando el modal es mayor que el viewport */
    overflow-y: auto;
    padding: 16px;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 540px;
    /* Usar dvh cuando esté disponible (respeta el teclado virtual) */
    max-height: 90dvh;
    max-height: 90vh; /* fallback */
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.2s ease;
    /* Evitar que el modal se encoja más allá de su contenido */
    flex-shrink: 0;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.modal-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
}

.modal-status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: white;
    transition: all 0.15s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.time-inputs .form-select {
    width: 70px;
}

.time-separator {
    font-size: 16px;
    color: #6b7280;
}

.btn-repetir {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    font-size: 13px;
    color: #8b5cf6;
    cursor: pointer;
    white-space: nowrap;
}

.btn-repetir:hover {
    text-decoration: underline;
}

/* Campo de búsqueda de cliente */
.client-search-container {
    position: relative;
}

.client-search-input {
    width: 100%;
    padding: 10px 12px;
    padding-right: 100px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.btn-nuevo-cliente {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    font-size: 12px;
    color: #8b5cf6;
    cursor: pointer;
    white-space: nowrap;
}

.btn-nuevo-cliente:hover {
    text-decoration: underline;
}

/* Lista de clientes encontrados */
.client-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

.client-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.client-result-item:last-child {
    border-bottom: none;
}

.client-result-item:hover {
    background-color: #f9fafb;
}

.client-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 2px 0;
}

.client-info p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.client-actions {
    display: flex;
    gap: 4px;
}

.client-action-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #9ca3af;
    cursor: pointer;
}

.client-action-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.client-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Crear como nuevo cliente */
.create-client-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    color: #8b5cf6;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.create-client-option:hover {
    background-color: #f9fafb;
}

/* Sección expandible */
.accordion-section {
    border-top: 1px solid #e5e7eb;
    margin-top: 16px;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    background: transparent;
    border: none;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

.accordion-header svg {
    width: 18px;
    height: 18px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.accordion-header.open svg {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding-bottom: 16px;
}

.accordion-content.open {
    display: block;
}

/* Footer del modal */
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

.btn-cancelar {
    padding: 10px 20px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-cancelar:hover {
    background: #f3f4f6;
}

.modal-footer-actions {
    display: flex;
    gap: 12px;
}

.btn-agregar-otra {
    padding: 10px 16px;
    background: transparent;
    border: none;
    font-size: 14px;
    color: #8b5cf6;
    cursor: pointer;
}

.btn-agregar-otra:hover {
    text-decoration: underline;
}

.btn-guardar-reserva {
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-guardar-reserva:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-guardar-reserva:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-guardar-reserva:disabled svg {
    animation: spin 1s linear infinite;
}

/* Responsive modal */
@media (max-width: 600px) {
    .modal-overlay {
        /* En móviles: alinear al inicio para que el modal empiece arriba
           y sea siempre scrolleable hacia abajo */
        align-items: flex-start;
        padding: 12px;
    }

    .modal-container {
        /* Sin margin adicional ya que el padding del overlay lo maneja */
        margin: 0;
        max-height: none; /* El overlay controla el scroll, no el container */
        width: 100%;
        border-radius: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .modal-footer-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.appointment-card {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: 6px;
    padding: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.appointment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* Botón Nuevo estilo AgendaPro */
.btn-nuevo {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-nuevo:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

.btn-nuevo svg {
    width: 18px;
    height: 18px;
}

/* Barra de fecha estilo AgendaPro */
.date-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 20px;
}

.date-nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.date-nav-btn:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.btn-hoy {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-hoy:hover {
    background-color: #f3f4f6;
}

.btn-hoy.active {
    background-color: #1f2937;
    color: white;
    border-color: #1f2937;
}

.date-text {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.icon-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

.update-text {
    font-size: 13px;
    color: #9ca3af;
}

/* Dropdown menus - Animación suave */
[data-dropdown] .absolute {
    transition: opacity 0.15s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .agenda-grid {
        grid-template-columns: 55px repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .barber-header {
        height: 70px;
        padding: 8px 4px;
    }
    
    .barber-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .barber-name {
        font-size: 10px;
    }
    
    .slot-cell {
        height: 40px;
    }
    
    .time-slot {
        min-height: 40px;
    }
    
    .time-label {
        font-size: 10px;
    }
    
    .date-bar {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .date-text {
        font-size: 13px;
    }
    
    .btn-nuevo {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .stats-panel {
        display: none;
    }
}

/* Panel de Estadísticas */
.stats-panel-wrapper {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-left: 1px solid #e5e7eb;
    overflow-y: auto;
    flex: 1;
    max-width: 600px;
}

.charts-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-width: 240px;
}

.stats-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-width: 220px;
}

.chart-card-large {
    flex: 1;
}

.stats-panel {
    width: 320px;
    min-width: 280px;
    padding: 16px;
    background: #f9fafb;
    border-left: 1px solid #e5e7eb;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-item {
    text-align: center;
    padding: 8px;
    background: #f3f4f6;
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #8b5cf6;
}

.stat-label {
    display: block;
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
}

/* Próximas citas */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #8b5cf6;
}

.upcoming-time {
    font-size: 13px;
    font-weight: 600;
    color: #8b5cf6;
    min-width: 45px;
}

.upcoming-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.upcoming-client {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-service {
    font-size: 11px;
    color: #6b7280;
}

.no-upcoming {
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    padding: 16px;
}

/* Estadísticas por barbero */
.barber-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.barber-stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.barber-stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
}

.barber-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.barber-stat-count {
    margin-left: auto;
    font-weight: 600;
    color: #8b5cf6;
}

.barber-stat-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.barber-stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Gráfico Donut de Ocupación */
.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.donut-chart {
    position: relative;
    width: 120px;
    height: 120px;
}

.donut-chart svg {
    width: 100%;
    height: 100%;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #8b5cf6;
}

.donut-label {
    display: block;
    font-size: 11px;
    color: #6b7280;
}

.chart-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.occupied {
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
}

.legend-dot.available {
    background: #e5e7eb;
}

/* Gráfico de Barras por Hora */
.hourly-chart {
    padding: 8px 0;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    gap: 4px;
    padding-top: 20px;
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bar-wrapper {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bar {
    width: 100%;
    max-width: 24px;
    background: linear-gradient(180deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    position: relative;
    transition: height 0.3s ease;
}

.bar:hover {
    background: linear-gradient(180deg, #7c3aed 0%, #8b5cf6 100%);
}

.bar-value {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: #8b5cf6;
}

.bar-label {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
}

/* Gráfico de Ingresos por Barbero */
.revenue-chart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.revenue-total {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    color: white;
}

.revenue-total-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.revenue-total-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

.revenue-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.revenue-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.revenue-bar-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.revenue-bar-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    flex: 1;
}

.revenue-bar-amount {
    font-size: 14px;
    font-weight: 700;
    color: #10b981;
}

.revenue-bar-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.revenue-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.revenue-bar-count {
    font-size: 11px;
    color: #9ca3af;
}

/* Gráfico de Encuestas (¿Cómo nos conocen?) */
.survey-chart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.survey-chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
}

.survey-total {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-radius: 10px;
    color: white;
}

.survey-total-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.survey-total-label {
    display: block;
    font-size: 11px;
    opacity: 0.9;
    margin-top: 2px;
}

.survey-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.survey-bar-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.survey-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.survey-bar-label {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.survey-bar-count {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

.survey-bar-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.survey-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

@media (max-width: 1024px) {

    .stats-panel,
    .stats-panel-wrapper {
        display: none;
    }
}

/* ========================================
   VENTAS COMPONENT STYLES
   ======================================== */

.ventas-container {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

.ventas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.ventas-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.ventas-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ventas-select,
.ventas-search {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
}

.ventas-search {
    min-width: 200px;
}

.ventas-btn-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ventas-btn-secondary:hover {
    background: #059669;
}

.ventas-btn-primary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ventas-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.ventas-btn-primary svg {
    width: 16px;
    height: 16px;
}

/* Filtros */
.ventas-filters {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ventas-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ventas-filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.ventas-filter-input,
.ventas-filter-select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
    min-width: 180px;
}

.ventas-btn-buscar {
    padding: 10px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ventas-btn-buscar:hover {
    background: #2563eb;
}

/* Summary Cards Grid */
.ventas-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.ventas-summary-card {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ventas-card-left {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.ventas-card-right {
    flex: 1;
    padding: 20px;
    border-left: 1px solid #e5e7eb;
}

.ventas-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    text-align: center;
}

.ventas-card-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

/* Donut Chart */
.ventas-donut-chart {
    position: relative;
    width: 140px;
    height: 140px;
}

.ventas-donut-chart svg {
    width: 100%;
    height: 100%;
}

.ventas-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ventas-donut-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    display: block;
}

/* Breakdown List */
.ventas-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ventas-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}

.ventas-breakdown-row:first-child {
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
}

.ventas-breakdown-row:last-child {
    border-bottom: none;
}

/* Payment Methods */
.ventas-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ventas-payment-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 4px;
}

.ventas-payment-method-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.ventas-payment-method-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ventas-payment-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ventas-payment-amount {
    font-weight: 500;
    color: #374151;
}

/* Table Section */
.ventas-table-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ventas-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 20px;
}

.ventas-tab {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ventas-tab:hover {
    color: #374151;
}

.ventas-tab.active {
    color: #1f2937;
    border-bottom-color: #8b5cf6;
}

.ventas-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.ventas-table-actions {
    display: flex;
    gap: 8px;
}

.ventas-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ventas-icon-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.ventas-icon-btn svg {
    width: 18px;
    height: 18px;
}

.ventas-btn-descargar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid #10b981;
    color: #10b981;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ventas-btn-descargar:hover {
    background: #10b981;
    color: white;
}

.ventas-btn-descargar svg {
    width: 16px;
    height: 16px;
}

.ventas-total-row {
    padding: 12px 20px;
    text-align: right;
    font-size: 14px;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.ventas-total-amount {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
}

/* Table */
.ventas-table-wrapper {
    overflow-x: auto;
}

.ventas-table {
    width: 100%;
    border-collapse: collapse;
}

.ventas-table thead {
    background: #f9fafb;
}

.ventas-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid #e5e7eb;
}

.ventas-table th .sort-icon {
    color: #d1d5db;
    margin-left: 4px;
}

.ventas-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.ventas-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ventas-row:hover {
    background-color: #f9fafb;
}

.ventas-detalle-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #ede9fe;
    color: #7c3aed;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.ventas-empty {
    text-align: center;
    padding: 48px !important;
    color: #9ca3af;
}

.ventas-options {
    display: flex;
    gap: 8px;
}

.ventas-btn-ver {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ventas-btn-ver:hover {
    background: #e5e7eb;
}

.ventas-btn-ver svg {
    width: 14px;
    height: 14px;
}

.ventas-btn-acciones {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ventas-btn-acciones:hover {
    background: #f9fafb;
}

.ventas-btn-acciones svg {
    width: 12px;
    height: 12px;
}

/* Pagination */
.ventas-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
}

.ventas-pagination-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ventas-pagination-btn:hover:not(:disabled) {
    background: #f9fafb;
}

.ventas-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ventas-pagination-current {
    padding: 8px 14px;
    background: #8b5cf6;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.ventas-pagination-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    background: white;
}

/* Modal Ventas */
.ventas-modal {
    max-width: 600px;
}

.ventas-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.ventas-modal-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ventas-modal-label {
    font-size: 12px;
    color: #6b7280;
}

.ventas-modal-value {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.ventas-modal-totals {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.ventas-modal-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #374151;
}

.ventas-modal-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.ventas-modal-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 12px;
}

.ventas-modal-section-title {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.ventas-modal-section-date {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #374151;
}

.ventas-modal-section-amount {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
    margin-left: auto;
}

.ventas-modal-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 8px 0;
    font-size: 13px;
    color: #374151;
}

.ventas-modal-detail-row:first-child {
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
}

.ventas-modal-service {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
}

/* ── Dos tablas lado a lado ── */
.ventas-tables-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.ventas-table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ventas-table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    gap: 10px;
}

.ventas-table-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.ventas-table-card-title svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ventas-table-card-total {
    font-size: 15px;
    font-weight: 700;
    color: #10b981;
    white-space: nowrap;
}

/* Badge de productos (verde) */
.ventas-productos-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .ventas-tables-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ventas-container {
        padding: 16px;
    }

    .ventas-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ventas-header-actions {
        width: 100%;
    }

    .ventas-filters {
        flex-direction: column;
    }

    .ventas-filter-input,
    .ventas-filter-select {
        width: 100%;
    }

    .ventas-summary-grid {
        grid-template-columns: 1fr;
    }

    .ventas-summary-card {
        flex-direction: column;
    }

    .ventas-card-right {
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }

    .ventas-modal-grid {
        grid-template-columns: 1fr;
    }

    .ventas-tables-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   COMISIONES COMPONENT STYLES
   ======================================== */

.comision-container {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.comision-header {
    margin-bottom: 24px;
}

.comision-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.comision-subtitle {
    font-size: 14px;
    color: #6b7280;
}

.comision-notification {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.comision-notification.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.comision-notification.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.comision-notification.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.comision-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #1e40af;
}

.comision-info-box svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.comision-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 24px;
}

.comision-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.comision-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.comision-table-wrapper {
    overflow-x: auto;
}

.comision-table {
    width: 100%;
    border-collapse: collapse;
}

.comision-table thead {
    background: #f9fafb;
}

.comision-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    white-space: nowrap;
}

.comision-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.comision-table tr:last-child td {
    border-bottom: none;
}

.comision-barber-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comision-barber-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.comision-barber-name {
    font-weight: 500;
    color: #1f2937;
}

.comision-barber-email {
    font-size: 12px;
    color: #9ca3af;
}

.comision-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.comision-star {
    width: 16px;
    height: 16px;
    color: #fbbf24;
}

.comision-input-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.comision-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    text-align: right;
}

.comision-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.comision-input-suffix {
    font-size: 14px;
    color: #6b7280;
}

.comision-btn-save {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.comision-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.comision-btn-save:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.comision-btn-save svg {
    width: 16px;
    height: 16px;
}

.comision-empty {
    text-align: center;
    padding: 48px !important;
    color: #9ca3af;
}

.comision-legend {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comision-legend h3 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.comision-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comision-legend li {
    font-size: 13px;
    color: #6b7280;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
}

.comision-legend li:last-child {
    border-bottom: none;
}

.comision-legend strong {
    color: #374151;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .comision-container {
        padding: 16px;
    }

    .comision-table th,
    .comision-table td {
        padding: 12px;
    }

    .comision-barber-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ========================================
   REPORTE COMISIONES COMPONENT STYLES
   ======================================== */

.comision-report-container {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.comision-report-header {
    margin-bottom: 24px;
}

.comision-report-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.comision-report-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.comision-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comision-filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.comision-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comision-date-range input,
.comision-filter-group select {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
}

.comision-date-range input:focus,
.comision-filter-group select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.comision-btn-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.comision-btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.comision-btn-search svg {
    width: 18px;
    height: 18px;
}

.comision-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.comision-summary-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comision-summary-label {
    font-size: 13px;
    color: #6b7280;
}

.comision-summary-value {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.comision-totals-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.comision-total-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.comision-total-value {
    font-weight: 600;
}

.comision-total-value.green {
    color: #10b981;
}

.comision-btn-export {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 8px 16px;
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.comision-btn-export:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.comision-btn-export svg {
    width: 16px;
    height: 16px;
}

.comision-report-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.comision-table-info {
    padding: 12px 20px;
    font-size: 12px;
    color: #9ca3af;
    text-align: right;
    border-bottom: 1px solid #f3f4f6;
}

.comision-report-table {
    width: 100%;
    border-collapse: collapse;
}

.comision-report-table thead {
    background: #f9fafb;
}

.comision-report-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

.comision-report-table th .sort-icon {
    margin-left: 4px;
    opacity: 0.5;
}

.comision-report-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.comision-report-table tr:last-child td {
    border-bottom: none;
}

.comision-report-table tr:hover {
    background: #f9fafb;
}

.comision-barber-cell {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .comision-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .comision-report-container {
        padding: 16px;
    }

    .comision-report-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .comision-summary-cards {
        grid-template-columns: 1fr;
    }

    .comision-totals-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .comision-btn-export {
        margin-left: 0;
        margin-top: 12px;
    }

    .comision-report-table th,
    .comision-report-table td {
        padding: 12px;
    }
}

/* ========================================
   CLIENTES COMPONENT STYLES
   ======================================== */

.clientes-container {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.clientes-header {
    margin-bottom: 24px;
}

.clientes-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.clientes-search-bar {
    margin-bottom: 16px;
}

.clientes-search-input-wrapper {
    position: relative;
    max-width: 600px;
}

.clientes-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9ca3af;
}

.clientes-search-input {
    width: 100%;
    padding: 10px 10px 10px 42px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
}

.clientes-search-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.clientes-results-info {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.clientes-table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 16px;
}

.clientes-table {
    width: 100%;
    border-collapse: collapse;
}

.clientes-table thead {
    background: #f9fafb;
}

.clientes-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

.clientes-table th .sort-icon {
    margin-left: 4px;
    opacity: 0.5;
}

.clientes-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.clientes-table tr:last-child td {
    border-bottom: none;
}

.clientes-table tr:hover {
    background: #f9fafb;
}

.clientes-actions {
    display: flex;
    gap: 8px;
}

.clientes-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.clientes-btn-icon:hover {
    background: #f9fafb;
    color: #8b5cf6;
    border-color: #8b5cf6;
}

.clientes-btn-icon svg {
    width: 18px;
    height: 18px;
}

.clientes-empty {
    text-align: center;
    padding: 48px !important;
    color: #9ca3af;
}

.clientes-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.clientes-pagination-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.clientes-pagination-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.clientes-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.clientes-pagination-info {
    font-size: 14px;
    color: #374151;
}

.clientes-modal {
    max-width: 600px;
}

.clientes-modal-historial {
    max-width: 700px;
    max-height: 85vh;
}

.clientes-modal-historial .modal-body {
    padding: 0;
    overflow-y: auto;
    max-height: calc(85vh - 60px);
}

/* Header del historial */
.clientes-historial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 1px solid #e5e7eb;
}

.clientes-historial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.clientes-historial-info {
    flex: 1;
    min-width: 0;
}

.clientes-historial-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 6px;
}

.clientes-historial-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
}

.clientes-historial-contact span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.clientes-historial-contact svg {
    color: #9ca3af;
}

.clientes-historial-stats {
    display: flex;
    gap: 20px;
}

.clientes-historial-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.clientes-historial-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #8b5cf6;
}

.clientes-historial-stat-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Sección del historial */
.clientes-historial-section {
    padding: 20px 24px;
}

.clientes-historial-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 16px;
}

.clientes-historial-section-title svg {
    color: #8b5cf6;
}

/* Lista de historial */
.clientes-historial-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.clientes-historial-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.15s ease;
}

.clientes-historial-item:hover {
    background: white;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.clientes-historial-item-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.clientes-historial-day {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.clientes-historial-month {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.clientes-historial-year {
    font-size: 10px;
    color: #9ca3af;
}

.clientes-historial-item-content {
    flex: 1;
    min-width: 0;
}

.clientes-historial-item-service {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.clientes-historial-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
}

.clientes-historial-barber,
.clientes-historial-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.clientes-historial-barber svg,
.clientes-historial-time svg {
    color: #9ca3af;
}

.clientes-historial-item-status {
    flex-shrink: 0;
}

.clientes-historial-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.clientes-historial-badge.status-confirmed {
    background: #d1fae5;
    color: #059669;
}

.clientes-historial-badge.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.clientes-historial-badge.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.clientes-historial-badge.status-completed {
    background: #dbeafe;
    color: #2563eb;
}

.clientes-historial-badge.status-noshow {
    background: #f3f4f6;
    color: #6b7280;
}

/* Estado vacío */
.clientes-historial-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: #9ca3af;
    text-align: center;
}

.clientes-historial-empty svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.clientes-historial-empty p {
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 640px) {
    .clientes-modal-historial {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .clientes-historial-header {
        flex-wrap: wrap;
    }

    .clientes-historial-stats {
        width: 100%;
        margin-top: 12px;
        justify-content: center;
    }

    .clientes-historial-item {
        flex-wrap: wrap;
    }

    .clientes-historial-item-date {
        width: auto;
    }
}

.clientes-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.clientes-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clientes-detail-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
}

.clientes-detail-value {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .clientes-container {
        padding: 16px;
    }

    .clientes-table th,
    .clientes-table td {
        padding: 12px;
        font-size: 13px;
    }

    .clientes-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FILTROS DE CLIENTES
   ======================================== */
.clientes-search-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.clientes-filters-dropdown {
    position: relative;
}

.clientes-filters-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.clientes-filters-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.clientes-filters-btn svg {
    width: 18px;
    height: 18px;
}

.filter-badge {
    background: #8b5cf6;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

.clientes-filters-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 260px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    margin-top: 6px;
    padding: 8px 0;
    max-height: 400px;
    overflow-y: auto;
}

.filter-section {
    border-bottom: 1px solid #f3f4f6;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.filter-menu-item:hover {
    background-color: #f9fafb;
}

.filter-menu-item.active {
    color: #8b5cf6;
    font-weight: 500;
}

.filter-check {
    color: #8b5cf6;
    font-weight: 600;
}

.filter-submenu {
    background: #fafafa;
    padding: 8px 0;
    border-top: 1px solid #f3f4f6;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 28px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.filter-option:hover {
    background-color: #f3f4f6;
}

.filter-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #8b5cf6;
}

.filter-option span {
    flex: 1;
}

.filter-clear-section {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
}

.filter-clear-btn {
    width: 100%;
    padding: 8px 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-clear-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

@media (max-width: 640px) {
    .clientes-filters-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 16px 16px 0 0;
        max-height: 60vh;
    }
}

/* ========================================
   INVENTARIO COMPONENT STYLES
   ======================================== */

.inventario-container {
    padding: 0 24px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Info Banner */
.inventario-info-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-bottom: 1px solid #c7d2fe;
    margin: 0 -24px 24px;
}

.inventario-info-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4338ca;
}

.inventario-info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.inventario-info-close {
    background: transparent;
    border: none;
    color: #6366f1;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.inventario-info-close:hover {
    background: rgba(99, 102, 241, 0.1);
}

.inventario-info-close svg {
    width: 18px;
    height: 18px;
}

/* Header */
.inventario-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.inventario-title {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
}

.inventario-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search */
.inventario-search-wrapper {
    position: relative;
    width: 280px;
}

.inventario-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

.inventario-search-input {
    width: 100%;
    padding: 10px 36px 10px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
    transition: all 0.15s ease;
}

.inventario-search-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.inventario-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
}

.inventario-search-clear:hover {
    color: #6b7280;
}

.inventario-search-clear svg {
    width: 16px;
    height: 16px;
}

/* Botón Nuevo con Dropdown */
.inventario-new-dropdown {
    position: relative;
}

.inventario-btn-new {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.inventario-btn-new:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.inventario-btn-new svg {
    width: 18px;
    height: 18px;
}

.inventario-new-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 340px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    margin-top: 8px;
    padding: 8px;
}

.inventario-new-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.inventario-new-item:hover {
    background: #f9fafb;
}

.inventario-new-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inventario-new-item-icon svg {
    width: 20px;
    height: 20px;
}

.inventario-new-item-icon.product-icon {
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    color: #7c3aed;
}

.inventario-new-item-icon.category-icon {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #db2777;
}

.inventario-new-item-icon.brand-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.inventario-new-item-icon.format-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.inventario-new-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inventario-new-item-text strong {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.inventario-new-item-text span {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Filtros */
.inventario-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.inventario-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inventario-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inventario-filter-select {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
    cursor: pointer;
    transition: all 0.15s ease;
}

.inventario-filter-select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Results Info */
.inventario-results-info {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
    text-align: right;
}

/* Tabla */
.inventario-table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 16px;
}

.inventario-table {
    width: 100%;
    border-collapse: collapse;
}

.inventario-table thead {
    background: #f9fafb;
}

.inventario-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inventario-table th .sort-icon {
    margin-left: 4px;
    opacity: 0.5;
}

.inventario-table td {
    padding: 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.inventario-table tr:last-child td {
    border-bottom: none;
}

.inventario-table tr:hover {
    background: #fafafa;
}

.inventario-product-name {
    font-weight: 600;
    color: #1f2937;
}

.inventario-barcode {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    color: #6b7280;
}

.inventario-category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #7c3aed;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.inventario-price {
    font-weight: 600;
    color: #059669;
}

.inventario-stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 4px 10px;
    background: #d1fae5;
    color: #059669;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.inventario-stock.low {
    background: #fee2e2;
    color: #dc2626;
}

.inventario-actions-cell {
    display: flex;
    gap: 8px;
}

.inventario-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.inventario-btn-icon:hover {
    background: #f9fafb;
    color: #8b5cf6;
    border-color: #8b5cf6;
}

.inventario-btn-icon.delete:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #dc2626;
}

.inventario-btn-icon svg {
    width: 16px;
    height: 16px;
}

/* Empty State */
.inventario-empty {
    text-align: center;
    padding: 60px !important;
}

.inventario-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.inventario-empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.inventario-empty-icon svg {
    width: 40px;
    height: 40px;
    color: #9ca3af;
}

.inventario-empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.inventario-empty-state p {
    font-size: 14px;
    color: #9ca3af;
}

/* Paginación */
.inventario-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.inventario-pagination-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.inventario-pagination-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.inventario-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.inventario-pagination-btn svg {
    width: 16px;
    height: 16px;
}

.inventario-pagination-info {
    font-size: 14px;
    color: #374151;
}

/* Modal Inventario */
.inventario-modal {
    max-width: 640px;
}

.inventario-modal-small {
    max-width: 440px;
}

.inventario-modal-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.inventario-tab {
    padding: 14px 24px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.inventario-tab:hover {
    color: #374151;
}

.inventario-tab.active {
    color: #7c3aed;
    background: white;
}

.inventario-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #7c3aed;
}

.inventario-tab-content {
    display: none;
}

.inventario-tab-content.active {
    display: block;
}

.inventario-link-btn {
    display: inline-block;
    margin-top: 6px;
    background: transparent;
    border: none;
    font-size: 13px;
    color: #8b5cf6;
    cursor: pointer;
    padding: 0;
}

.inventario-link-btn:hover {
    text-decoration: underline;
}

.inventario-price-input {
    position: relative;
}

.inventario-currency {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 14px;
}

.inventario-price-input .form-input {
    padding-left: 28px;
}

.inventario-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #e5e7eb;
    border-radius: 50%;
    font-size: 10px;
    color: #6b7280;
    margin-left: 4px;
    cursor: help;
}

.required {
    color: #dc2626;
}

.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: white;
    resize: vertical;
    font-family: inherit;
    transition: all 0.15s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

.inventario-btn-cancel {
    padding: 10px 20px;
    background: #374151;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.inventario-btn-cancel:hover {
    background: #1f2937;
}

.inventario-btn-save {
    padding: 10px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.inventario-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .inventario-filters {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .inventario-container {
        padding: 0 16px 16px;
    }
    
    .inventario-info-banner {
        margin: 0 -16px 16px;
    }
    
    .inventario-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .inventario-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .inventario-search-wrapper {
        width: 100%;
    }
    
    .inventario-new-dropdown {
        width: 100%;
    }
    
    .inventario-btn-new {
        width: 100%;
        justify-content: center;
    }
    
    .inventario-new-menu {
        left: 0;
        right: 0;
        min-width: auto;
    }
    
    .inventario-filters {
        grid-template-columns: 1fr;
    }
    
    .inventario-table th,
    .inventario-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
}

/* ========================================
   MOVIMIENTO DE STOCK COMPONENT
   ======================================== */
.stock-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.stock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.stock-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.stock-header-actions {
    display: flex;
    gap: 12px;
}

.stock-btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.stock-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.stock-btn-primary svg {
    width: 18px;
    height: 18px;
}

.stock-btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.stock-btn-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.stock-btn-secondary svg {
    width: 18px;
    height: 18px;
}

/* Summary Cards */
.stock-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stock-summary-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.stock-summary-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stock-summary-card.revenue {
    border-left: 4px solid #10b981;
}

.stock-summary-card.units {
    border-left: 4px solid #3b82f6;
}

.stock-summary-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.stock-summary-card.revenue .stock-summary-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #10b981;
}

.stock-summary-card.units .stock-summary-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.15) 100%);
    color: #3b82f6;
}

.stock-summary-icon svg {
    width: 28px;
    height: 28px;
}

.stock-summary-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stock-summary-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.stock-summary-value {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.5px;
}

/* Filters */
.stock-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    align-items: flex-end;
}

.stock-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.stock-filter-group:first-child {
    flex: 1;
    min-width: 280px;
}

.stock-filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.stock-search-wrapper {
    position: relative;
}

.stock-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

.stock-search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.15s ease;
}

.stock-search-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.stock-filter-select,
.stock-filter-input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.15s ease;
}

.stock-filter-select:focus,
.stock-filter-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.stock-btn-filter {
    padding: 10px 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.stock-btn-filter:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Results info */
.stock-results-info {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

/* Table */
.stock-table-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
}

.stock-table th {
    background: #f9fafb;
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}

.stock-table th .sort-icon {
    opacity: 0.5;
    margin-left: 4px;
}

.stock-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.stock-table tbody tr:hover {
    background: #f9fafb;
}

.stock-table tbody tr:last-child td {
    border-bottom: none;
}

.stock-reference {
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
}

.stock-product-name {
    font-weight: 500;
    color: #1f2937;
}

.stock-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.stock-quantity {
    font-weight: 600;
    font-size: 14px;
}

.stock-quantity.positive {
    color: #10b981;
}

.stock-quantity.negative {
    color: #ef4444;
}

.stock-sale-value {
    font-weight: 600;
    color: #10b981;
}

.stock-notes {
    font-size: 13px;
    color: #6b7280;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty state */
.stock-empty {
    text-align: center;
    padding: 60px 20px !important;
}

.stock-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stock-empty-icon {
    width: 64px;
    height: 64px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.stock-empty-icon svg {
    width: 32px;
    height: 32px;
}

.stock-empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.stock-empty-state p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Pagination */
.stock-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
}

.stock-pagination-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.stock-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.stock-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stock-pagination-btn svg {
    width: 16px;
    height: 16px;
}

.stock-pagination-info {
    font-size: 14px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 1024px) {
    .stock-filters {
        flex-direction: column;
    }
    
    .stock-filter-group {
        width: 100%;
        min-width: auto;
    }
    
    .stock-filter-group:first-child {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .stock-container {
        padding: 16px;
    }
    
    .stock-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stock-header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .stock-btn-primary,
    .stock-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .stock-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .stock-table th,
    .stock-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .stock-notes {
        display: none;
    }
}

/* ========================================
   REPORTES COMPONENT STYLES
   ======================================== */

.reportes-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Period Selector */
.reportes-period-section {
    margin-bottom: 24px;
}

.reportes-period-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.reportes-period-select {
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    min-width: 180px;
    cursor: pointer;
}

/* Metrics Grid */
.reportes-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.reportes-metric-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.reportes-metric-card.primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.reportes-metric-card.primary .metric-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.reportes-metric-card.primary .metric-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 12px;
}

.reportes-metric-card.primary .metric-link {
    background: transparent;
    border: none;
    color: white;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
    opacity: 0.9;
}

.reportes-metric-card.primary .metric-link:hover {
    opacity: 1;
}

.metric-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.metric-value-lg {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.metric-label-sm {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.metric-change.positive {
    color: #10b981;
}

.metric-change.negative {
    color: #ef4444;
}

.metric-comparison {
    font-size: 12px;
    color: #9ca3af;
}

/* Detail Section */
.reportes-detail-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    overflow: hidden;
}

.reportes-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
}

.reportes-detail-header:hover {
    background: #f9fafb;
}

.reportes-detail-header svg {
    transition: transform 0.2s;
}

.reportes-detail-header svg.rotated {
    transform: rotate(180deg);
}

.reportes-detail-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.reportes-detail-content.open {
    max-height: 2000px;
    padding: 0 20px 20px;
}

/* Charts Grid */
.reportes-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.reportes-chart-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

/* Occupation Bars */
.occupation-bars,
.sales-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.occupation-bar-row,
.sales-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.occupation-day,
.sales-day {
    width: 32px;
    font-size: 12px;
    color: #6b7280;
}

.occupation-bar-track,
.sales-bar-track {
    flex: 1;
    height: 16px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.occupation-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.sales-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Donut Chart */
.reportes-donut-chart {
    display: flex;
    align-items: center;
    gap: 24px;
}

.reportes-donut-chart svg {
    width: 120px;
    height: 120px;
}

.reportes-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-label {
    font-size: 12px;
    color: #6b7280;
}

.origin-total {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}

/* Email Stats */
.refresh-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #8b5cf6;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 16px;
}

.email-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.email-count {
    color: #9ca3af;
}

.email-percent {
    margin-left: auto;
    color: #374151;
    font-weight: 500;
}

/* Table Section */
.reportes-table-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.reportes-table-filters {
    margin-bottom: 16px;
}

.reportes-date-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}

.date-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-filter-group label {
    font-size: 12px;
    color: #6b7280;
}

.reportes-date-input {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

.reportes-btn-buscar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.reportes-btn-buscar:hover {
    background: #059669;
}

.reportes-sort-select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    background: white;
}

.reportes-filter-note {
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
    margin-bottom: 12px;
}

.reportes-status-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.status-label {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.status-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}

.status-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #10b981;
}

.reportes-table-note {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* Table Card */
.reportes-table-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.reportes-table-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #10b981;
    color: white;
}

.table-title {
    font-weight: 600;
    font-size: 14px;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.table-icon-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    opacity: 0.9;
}

.table-icon-btn:hover {
    opacity: 1;
}

.reportes-table-wrapper {
    overflow-x: auto;
}

.reportes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.reportes-table th {
    background: #f9fafb;
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.reportes-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.reportes-table tr:hover {
    background: #f9fafb;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.confirmed,
.status-badge.reservado {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.empty-table {
    text-align: center;
    color: #9ca3af;
    padding: 40px !important;
}

.reportes-btn-descargar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.reportes-btn-descargar:hover {
    background: #059669;
}

/* Responsive */
@media (max-width: 1024px) {
    .reportes-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reportes-charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .reportes-container {
        padding: 16px;
    }
    
    .reportes-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .reportes-date-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .reportes-status-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .metric-value-lg {
        font-size: 24px;
    }
    
    .reportes-donut-chart {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   REPORTES SIDEBAR LAYOUT
   ======================================== */
.reportes-layout {
    display: flex;
    min-height: calc(100vh - 56px);
}

.reportes-sidebar {
    width: 200px;
    min-width: 200px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 16px 0;
    flex-shrink: 0;
}

.reportes-main-content {
    flex: 1;
    padding: 24px;
    background: #f9fafb;
    overflow-x: auto;
}

.reportes-sidebar-item-wrapper {
    margin-bottom: 2px;
}

.reportes-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    color: #374151;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.reportes-sidebar-item:hover {
    background: #f3f4f6;
}

.reportes-sidebar-item.active {
    background: #f3f4f6;
    border-left-color: #10b981;
    font-weight: 500;
    color: #1f2937;
}

.sidebar-chevron {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.sidebar-chevron.expanded {
    transform: rotate(180deg);
}

/* Summary Cards */
.reportes-summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.reportes-summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.reportes-summary-card .card-title {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.reportes-summary-card .card-value {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
}

/* Charts Row */
.reportes-charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

/* Ranking List */
.reportes-ranking {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.reportes-ranking.full-width {
    grid-column: 1 / -1;
}

.reportes-ranking h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-position {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    width: 24px;
}

.ranking-name {
    flex: 1;
    font-size: 14px;
    color: #1f2937;
}

.ranking-bar-container {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.ranking-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.ranking-count {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    min-width: 32px;
    text-align: right;
}

/* Occupation count */
.occupation-count {
    font-size: 12px;
    color: #6b7280;
    min-width: 24px;
    text-align: right;
}

/* Section Header */
.reportes-section-header {
    margin-bottom: 24px;
}

.reportes-section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

/* Empty State */
.reportes-empty-state {
    background: white;
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.reportes-empty-state svg {
    margin: 0 auto 16px;
}

.reportes-empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.reportes-empty-state p {
    font-size: 14px;
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto;
}

/* Empty message */
.empty-message {
    font-size: 14px;
    color: #9ca3af;
    padding: 16px 0;
    text-align: center;
}

/* Chart icon container */
.chart-icon-container {
    width: 64px;
    height: 64px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.chart-icon {
    width: 32px;
    height: 32px;
    color: #10b981;
}

.chart-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    text-align: center;
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
    .reportes-layout {
        flex-direction: column;
    }
    
    .reportes-sidebar {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 8px 0;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .reportes-sidebar-item-wrapper {
        margin-bottom: 0;
    }
    
    .reportes-sidebar-item {
        padding: 8px 12px;
        border-left: none;
        border-radius: 6px;
    }
    
    .reportes-sidebar-item.active {
        background: #10b981;
        color: white;
        border-left: none;
    }
    
    .reportes-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .reportes-charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .reportes-main-content {
        padding: 16px;
    }
    
    .reportes-summary-card .card-value {
        font-size: 24px;
    }
}

/* ========================================
   PROFESIONALES COMPONENT
   ======================================== */

.profesionales-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Tabs */
.profesionales-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.profesionales-tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.profesionales-tab:hover {
    color: #8b5cf6;
}

.profesionales-tab.active {
    color: #8b5cf6;
}

.profesionales-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #8b5cf6;
}

/* Tip Banner */
.profesionales-tip-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #92400e;
}

.tip-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #f59e0b;
}

/* Header */
.profesionales-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-filtrar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-filtrar:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-filtrar svg {
    width: 16px;
    height: 16px;
}

.profesionales-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profesionales-count {
    font-size: 13px;
    color: #6b7280;
}

.btn-nuevo-profesional {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-nuevo-profesional:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-nuevo-profesional svg {
    width: 16px;
    height: 16px;
}

/* Mobile Responsive Styles for Header */
@media (max-width: 768px) {
    .profesionales-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .profesionales-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-filtrar {
        width: 100%;
        justify-content: center;
    }

    .profesionales-count {
        text-align: center;
        width: 100%;
    }

    .btn-nuevo-profesional {
        width: 100%;
        justify-content: center;
    }
}

/* List */
.profesionales-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profesionales-local-header {
    padding: 12px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.profesional-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}

.profesional-card:last-child {
    border-bottom: none;
}

.profesional-card:hover {
    background: #fafafa;
}

.profesional-drag-handle {
    width: 20px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    cursor: grab;
}

.profesional-drag-handle svg {
    width: 16px;
    height: 24px;
}

.profesional-drag-handle:hover {
    color: #9ca3af;
}

.profesional-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.profesional-info {
    flex: 1;
    min-width: 120px;
}

.profesional-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.profesional-schedule-link {
    position: relative;
}

.btn-ver-horario {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    font-size: 13px;
    color: #8b5cf6;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-ver-horario:hover {
    text-decoration: underline;
}

.btn-ver-horario svg {
    width: 16px;
    height: 16px;
}

/* Mobile Responsive Styles for Professional Card */
@media (max-width: 768px) {
    .profesional-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        position: relative;
        padding: 16px;
    }

    .profesional-drag-handle {
        position: absolute;
        top: 12px;
        right: 12px;
    }

    .profesional-info {
        width: 100%;
        padding-right: 24px; /* Space for drag handle */
    }

    .profesional-schedule-link {
        width: 100%;
    }

    .btn-ver-horario {
        width: 100%;
        justify-content: center;
        background-color: #f3f4f6;
        border-radius: 6px;
        padding: 8px;
    }
    
    .profesional-status {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .profesional-actions {
        width: 100%;
        display: flex;
        gap: 8px;
        margin-top: 4px;
        justify-content: space-between;
    }

    .profesional-actions button {
        flex: 1;
        justify-content: center;
    }
    
    .profesionales-local-header {
        display: none; /* Hide local header on mobile to save space */
    }
}

/* Schedule Popup */
.horario-popup {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    min-width: 220px;
    margin-top: 4px;
}

.horario-popup-content {
    padding: 12px;
}

.horario-popup-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.horario-popup-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #374151;
}

.horario-popup-edit {
    display: block;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #8b5cf6;
    text-decoration: none;
}

.horario-popup-edit:hover {
    text-decoration: underline;
}

/* Status */
.profesional-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
}

.status-dot.active {
    background: #10b981;
}

.status-dot.inactive {
    background: #ef4444;
}

.status-dot.only_reports {
    background: #3b82f6;
}

/* Actions */
.profesional-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-opciones {
    padding: 8px 14px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-opciones:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-editar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-editar:hover {
    background: #f9fafb;
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.btn-editar svg {
    width: 14px;
    height: 14px;
}

/* Empty State */
.profesionales-empty {
    padding: 60px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* Modal Profesional */
.profesional-modal {
    max-width: 640px;
}

.modal-tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.modal-tab {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.modal-tab:hover {
    color: #8b5cf6;
}

.modal-tab.active {
    color: #8b5cf6;
    background: white;
}

.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #8b5cf6;
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
}

/* Horario Table */
.horario-table {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.horario-header {
    display: grid;
    grid-template-columns: 100px 80px 1fr 1fr 120px;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.horario-day-row {
    display: grid;
    grid-template-columns: 100px 80px 1fr 1fr 120px;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.horario-day-row:last-child {
    border-bottom: none;
}

.horario-day-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* Toggle Switch */
.horario-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.horario-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.horario-toggle input:checked + .toggle-slider {
    background-color: #8b5cf6;
}

.horario-toggle input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Time Inputs */
.horario-time-inputs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.horario-select {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    background: white;
}

.horario-select:focus {
    outline: none;
    border-color: #8b5cf6;
}

.btn-add-descanso {
    padding: 6px 12px;
    background: transparent;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    color: #8b5cf6;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-add-descanso:hover {
    background: #f9fafb;
    border-color: #8b5cf6;
}

.btn-copiar-todos {
    margin-left: 12px;
    font-size: 12px;
    color: #8b5cf6;
    text-decoration: none;
}

.btn-copiar-todos:hover {
    text-decoration: underline;
}

/* Estado toggle container */
.estado-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.estado-label {
    font-size: 14px;
    font-weight: 500;
}

/* Password reset container */
.password-reset-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.password-reset-container .form-input {
    flex: 1;
}

.btn-reset-password {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-reset-password:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-reset-password:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Form hint text */
.form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

/* Small spinner for buttons */
.spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .profesionales-container {
        padding: 16px;
    }
    
    .profesional-card {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .profesional-drag-handle {
        display: none;
    }
    
    .profesional-info {
        flex: none;
        width: calc(100% - 56px);
    }
    
    .profesional-schedule-link {
        width: 100%;
    }
    
    .profesional-status {
        flex: 1;
    }
    
    .profesional-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .horario-header,
    .horario-day-row {
        grid-template-columns: 80px 60px 1fr 1fr auto;
        gap: 8px;
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* Slide in animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   PRODUCT IMAGE STYLES
   ======================================== */

/* Product thumbnail in table */
.inventario-product-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inventario-product-image .product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inventario-product-image .product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
}

.inventario-product-image .product-no-image svg {
    width: 24px;
    height: 24px;
}

/* Image upload section in modal */
.inventario-image-upload {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.inventario-image-preview {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9ca3af;
    overflow: hidden;
}

.inventario-image-preview svg {
    width: 32px;
    height: 32px;
}

.inventario-image-preview span {
    font-size: 12px;
}

.inventario-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.inventario-image-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inventario-btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inventario-btn-upload:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.inventario-btn-upload svg {
    width: 18px;
    height: 18px;
}

.inventario-btn-remove-image {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.inventario-btn-remove-image:hover {
    background: #fecaca;
}

.inventario-btn-remove-image svg {
    width: 14px;
    height: 14px;
}

.inventario-image-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #f97316; /* Orange brand color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-width: 280px;
    max-width: 400px;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.toast-success {
    border-left: 4px solid #10b981;
}

.toast-notification.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-notification.toast-success .toast-icon {
    color: #10b981;
}

.toast-notification.toast-error .toast-icon {
    color: #ef4444;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

/* Btn spinner animation */
.btn-spinner {
    animation: spin 1s linear infinite;
}

/* ========================================
   VENTAS - HEADER SIMPLIFICADO
   ======================================== */
.ventas-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* ========================================
   MODAL NUEVA VENTA DE PRODUCTO
   ======================================== */
.modal-nueva-venta {
    max-width: 900px;
    width: 95%;
}

.modal-venta-body {
    padding: 0;
}

.venta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

@media (max-width: 768px) {
    .venta-grid {
        grid-template-columns: 1fr;
    }
}

.venta-productos-section,
.venta-carrito-section {
    padding: 20px;
}

.venta-productos-section {
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
}

.venta-carrito-section {
    display: flex;
    flex-direction: column;
}

.venta-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.venta-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    background: white;
    transition: all 0.15s ease;
}

.venta-search-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.product-list {
    max-height: 400px;
    overflow-y: auto;
}

.loading-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 12px;
    color: #6b7280;
}

.empty-products {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 14px;
}

.product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.15s ease;
}

.product-item:hover {
    border-color: #f97316;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.1);
}

.product-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-item-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f4f6;
}

.product-item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.product-item-sku {
    font-size: 12px;
    color: #6b7280;
}

.product-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.product-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #f97316;
}

.product-item-stock {
    font-size: 11px;
    color: #6b7280;
}

.btn-add-product {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 4px;
}

.btn-add-product:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-add-product:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-add-product svg {
    width: 16px;
    height: 16px;
}

/* Carrito de productos seleccionados */
.selected-products-list {
    flex: 1;
    overflow-y: auto;
    max-height: 250px;
    margin-bottom: 16px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 14px;
    background: #fafafa;
    border-radius: 8px;
    border: 2px dashed #e5e7eb;
}

.selected-product-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
}

.selected-product-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.selected-product-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.selected-product-price {
    font-size: 13px;
    color: #6b7280;
}

.selected-product-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-qty-minus,
.btn-qty-plus {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-qty-minus:hover,
.btn-qty-plus:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.qty-input {
    width: 50px;
    text-align: center;
    padding: 6px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.qty-input:focus {
    outline: none;
    border-color: #f97316;
}

.selected-product-subtotal {
    flex: 1;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #f97316;
    margin-left: 12px;
}

.btn-remove-product {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-remove-product:hover {
    background: #fef2f2;
    border-radius: 6px;
}

.btn-remove-product svg {
    width: 16px;
    height: 16px;
}

/* Total de la venta */
.venta-total-section {
    padding: 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-radius: 8px;
    margin-bottom: 16px;
}

.venta-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.venta-total-label {
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
}

.venta-total-amount {
    font-size: 24px;
    font-weight: 700;
    color: #f97316;
}

/* Formularios de venta */
.venta-cliente-section,
.venta-pago-section {
    margin-bottom: 16px;
}

.venta-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.venta-form-input,
.venta-form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: white;
    transition: all 0.15s ease;
}

.venta-form-input:focus,
.venta-form-select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Botón guardar venta */
.venta-btn-guardar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.venta-btn-guardar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.venta-btn-guardar:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.venta-btn-guardar svg {
    width: 18px;
    height: 18px;
}

/* Spinner inline */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content .toast-icon {
    width: 20px;
    height: 20px;
}

/* ========================================
   DASHBOARD COMISIONES
   ======================================== */
.dashboard-comisiones-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.dashboard-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-header-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.dashboard-title svg {
    color: #8b5cf6;
}

.dashboard-subtitle {
    font-size: 14px;
    color: #6b7280;
}

.dashboard-filters-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-mode-toggle {
    display: flex;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
}

.filter-mode-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-mode-btn:hover {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.5);
}

.filter-mode-btn.active {
    background: white;
    color: #8b5cf6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.date-picker-input {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    color: #374151;
    background: #f9fafb;
    outline: none;
    font-family: inherit;
    cursor: pointer;
}

.date-picker-input:focus {
    border-color: #8b5cf6;
    background: white;
}

.dashboard-period-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 12px;
    border-left: 1px solid #e5e7eb;
}

.period-label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}

.period-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.period-btn:hover {
    background: #8b5cf6;
    color: white;
}

.period-btn svg {
    width: 18px;
    height: 18px;
}

.period-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.period-month {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.period-year {
    font-size: 12px;
    color: #6b7280;
}

/* Métricas Grid */
.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-metric-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.dashboard-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-metric-card.primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.dashboard-metric-card.primary .metric-label,
.dashboard-metric-card.primary .metric-value {
    color: white;
}

.dashboard-metric-card.primary .metric-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.metric-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 12px;
    flex-shrink: 0;
}

.metric-icon svg {
    width: 24px;
    height: 24px;
}

.metric-icon.blue {
    background: #dbeafe;
    color: #3b82f6;
}

.metric-icon.green {
    background: #d1fae5;
    color: #10b981;
}

.metric-icon.purple {
    background: #ede9fe;
    color: #8b5cf6;
}

.metric-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

/* Content Grid */
.dashboard-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Chart Card */
.dashboard-chart-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chart-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.chart-card-title svg {
    color: #8b5cf6;
}

/* Bar Chart */
.dashboard-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-chart-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-chart-label {
    width: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bar-chart-track {
    flex: 1;
    height: 24px;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
}

.bar-chart-fill {
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 12px;
    transition: width 0.5s ease;
    min-width: 2px;
}

.bar-chart-value {
    width: 90px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
}

.dashboard-empty-chart {
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Table Card */
.dashboard-table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.table-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.table-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.table-card-title svg {
    color: #8b5cf6;
}

.btn-export {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-export:hover {
    background: #e5e7eb;
}

.btn-export svg {
    width: 16px;
    height: 16px;
}

.dashboard-table-wrapper {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.dashboard-table tbody tr:hover {
    background: #faf5ff;
}

.dashboard-table tfoot td {
    background: #fafafa;
    font-weight: 600;
    border-top: 2px solid #e5e7eb;
}

.barber-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.barber-avatar-sm {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.badge-haircuts {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 4px 10px;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.commission-cell {
    color: #10b981;
    font-weight: 600;
}

.empty-table {
    text-align: center;
    color: #9ca3af;
    padding: 40px 16px !important;
}

.metric-icon.orange {
    background: #fed7aa;
    color: #f97316;
}

.tip-cell {
    color: #f97316;
    font-weight: 600;
}
