/* ========================================
   ECO PLAGAS - ESTILOS UNIFICADOS
   Sistema de Gestión - Estilos Globales
   ======================================== */

:root {
    /* Paleta ultra minimalista - Solo 3 colores */
    --primary: #1F2937;           /* Gris muy oscuro - principal */
    --secondary: #6B7280;         /* Gris medio - secundario */
    --accent: #3B82F6;            /* Azul único - acento */
    
    /* Colores neutros */
    --neutral-50: #F9FAFB;        /* Gris muy claro */
    --neutral-100: #F3F4F6;       /* Gris claro */
    --neutral-200: #E5E7EB;       /* Gris medio claro */
    --neutral-300: #D1D5DB;       /* Gris medio */
    --neutral-400: #9CA3AF;       /* Gris medio oscuro */
    --neutral-500: #6B7280;       /* Gris oscuro */
    --neutral-600: #4B5563;       /* Gris muy oscuro */
    --neutral-700: #374151;       /* Gris extremadamente oscuro */
    --neutral-800: #1F2937;       /* Gris casi negro */
    --neutral-900: #111827;       /* Negro suave */
    
    /* Colores del sistema */
    --primary-color: var(--primary);
    --secondary-color: var(--secondary);
    --success-color: #10B981;     /* Verde solo para éxito */
    --warning-color: #F59E0B;     /* Amarillo solo para advertencias */
    --danger-color: #EF4444;      /* Rojo solo para errores */
    --accent-color: var(--accent);
    --light-color: var(--neutral-50);
    --eco-black: #000000;         /* Negro para texto sobre fondos claros */
    
    /* Colores modernos y neutros */
    --background: var(--neutral-50);
    --surface: #ffffff;
    --text-primary: var(--neutral-900);
    --text-secondary: var(--neutral-600);
    --text-muted: var(--neutral-400);
    --border: var(--neutral-200);
    --border-light: var(--neutral-100);
    
    /* Espaciado consistente */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Bordes redondeados */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Sombras ultra sutiles */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.12);
}

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */

body {
    background: var(--background);
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

.main-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: var(--space-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* ========================================
   HEADER SECTION
   ======================================== */

.header-section {
    background: var(--primary);
    color: white;
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    border-bottom: 1px solid var(--neutral-200);
}

.header-section h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: -0.3px;
}

.header-section p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 500;
}

.header-section .logo {
    height: 40px;
    width: auto;
    margin-right: var(--space-md);
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ========================================
   NAVEGACIÓN HÍBRIDA INTELIGENTE
   ======================================== */

.navigation-section {
    background: var(--neutral-100);
    border-bottom: 1px solid var(--border);
    padding: 10px 30px;
}

.navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--eco-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.navbar-brand img {
    height: 30px;
    width: auto;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breadcrumb-section {
    margin-bottom: 10px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--eco-black);
    opacity: 0.7;
}

.breadcrumb-item.active {
    color: var(--eco-black);
    opacity: 1;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--eco-black);
    opacity: 0.5;
}

.quick-access {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-access-btn {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    font-size: 1.2rem;
}

.quick-access-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.quick-access-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .quick-access {
        gap: 10px;
    }
    
    .quick-access-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ========================================
   BOTÓN DE ATRÁS
   ======================================== */

.back-button-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
}

.btn-back {
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
    padding: 12px 25px;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    text-decoration: none;
}

.btn-back i {
    font-size: 1.1rem;
}

/* ========================================
   BOTONES MODERNOS
   ======================================== */

.btn-modern {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-modern:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary-modern {
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
}

.btn-success-modern {
    background: var(--success-color);
    color: white;
    border: 1px solid var(--success-color);
}

.btn-warning-modern {
    background: var(--warning-color);
    color: white;
    border: 1px solid var(--warning-color);
}

.btn-danger-modern {
    background: var(--danger-color);
    color: white;
    border: 1px solid var(--danger-color);
}

.btn-accent-modern {
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
}

/* ========================================
   PÁGINA PRINCIPAL - INDEX
   ======================================== */

/* Estadísticas Simples */
.stats-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Módulos Simples */
.modules-section {
    padding: 1rem 0 3rem 0;
}

.module-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    height: 100%;
}

.module-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.module-card i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 24px;
    text-align: center;
}

.module-card span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ========================================
   REGISTRO DE HORAS
   ======================================== */

/* Sección de Estado */
.status-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.status-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.status-header i {
    color: var(--accent);
}

.status-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--neutral-100);
}

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

.status-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Sección de Acciones */
.action-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.action-btn {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.action-btn:hover:not(:disabled) {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--accent);
}

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

.start-btn:hover:not(:disabled) {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.end-btn:hover:not(:disabled) {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.action-btn i {
    font-size: 1.1rem;
}

/* Sección de Historial */
.history-section {
    padding: 1rem 0 3rem 0;
}

.history-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 1.5rem;
}

.history-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.history-header i {
    color: var(--accent);
}

.history-content {
    min-height: 200px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-state i {
    font-size: 1.5rem;
    color: var(--accent);
}

/* ========================================
   CITAS REGISTRADAS
   ======================================== */

/* Sección de Filtros */
.filters-section {
    padding: 1rem 0 2rem 0;
}

/* Estilos para badges de vehículos */
.vehicle-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 120px;
    justify-content: center;
    transition: all 0.2s ease;
}

.vehicle-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.vehicle-badge i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.filters-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 1.5rem;
}

.filters-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.filters-header i {
    color: var(--accent);
}

.filters-content {
    margin-top: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-input,
.filter-select {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.1);
}

.date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-separator {
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-btn {
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.filter-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Sección de Tabla */
.table-section {
    padding: 1rem 0 3rem 0;
}

.table-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 1.5rem;
}

.table-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.table-header i {
    color: var(--accent);
}

.table-content {
    overflow-x: auto;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table-modern thead th {
    background: var(--neutral-100);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid var(--neutral-200);
    white-space: nowrap;
}

.table-modern tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--neutral-100);
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background: var(--neutral-50);
}

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

/* Responsive */
@media (max-width: 768px) {
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .module-card {
        padding: 1rem;
    }
    
    .module-card i {
        font-size: 1.2rem;
    }
    
    .module-card span {
        font-size: 0.9rem;
    }
    
    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .action-buttons {
        flex-direction: row;
    }
    
    .action-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .filters-content .row {
        gap: 1rem;
    }
    
    .filter-group {
        margin-bottom: 1rem;
    }
    
    .date-range {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-separator {
        text-align: center;
    }
    
    .table-modern {
        font-size: 0.8rem;
    }
    
    .table-modern thead th,
    .table-modern tbody td {
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .status-content {
        gap: 0.5rem;
    }
    
    .status-item {
        padding: 0.25rem 0;
    }
    
    .filters-card {
        padding: 1rem;
    }
    
    .table-card {
        padding: 1rem;
    }
    
    .table-modern {
        font-size: 0.75rem;
    }
}

/* ========================================
   FORMULARIOS
   ======================================== */

.form-control-modern {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    border-color: var(--eco-green);
    box-shadow: 0 0 0 0.2rem rgba(4, 120, 53, 0.25);
}

/* ========================================
   TABLAS
   ======================================== */

.table-modern {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.table-modern thead th {
    background: var(--neutral-100);
    color: var(--text-primary);
    border: none;
    font-weight: 600;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid var(--border);
}

.table-modern tbody td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.table-modern tbody tr:hover {
    background: var(--neutral-100);
    transition: background-color 0.2s ease;
}

.table-modern tbody tr:nth-child(even) {
    background: rgba(0,0,0,0.02);
}

/* ========================================
   FORMULARIOS MODERNOS
   ======================================== */

.form-control {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: var(--surface);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.1rem rgba(59, 130, 246, 0.15);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.9rem;
    background: var(--surface);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.1rem rgba(37, 99, 235, 0.15);
    outline: none;
}

/* ========================================
   MODALES MODERNOS
   ======================================== */

.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-md);
    background: var(--surface);
}

.modal-header {
    background: var(--neutral-100);
    color: var(--text-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
}

.modal-title {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
}

.modal-body {
    padding: var(--space-lg);
    background: var(--surface);
}

.modal-footer {
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ========================================
   CARDS Y CONTENEDORES
   ======================================== */

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--surface);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.card-header {
    background: var(--neutral-100);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm) var(--space-md);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.card-body {
    padding: var(--space-md);
}

/* ========================================
   ALERTAS Y NOTIFICACIONES
   ======================================== */

.alert {
    border-radius: var(--radius-sm);
    border: none;
    padding: var(--space-sm) var(--space-md);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border-left: 4px solid var(--accent);
}

/* ========================================
   BADGES Y ETIQUETAS
   ======================================== */

.badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.badge-primary {
    background: var(--accent);
    color: white;
}

/* ========================================
   HISTORIAL DE CAMBIOS - EDICIÓN DE HORAS
======================================== */

.section-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logs-filters {
    background: var(--neutral-50);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem;
}

.logs-list {
    max-height: 500px;
    overflow-y: auto;
}

.log-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.log-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--neutral-50);
}

.log-info h5 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.log-meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.log-meta i {
    margin-right: 0.25rem;
}

.log-badge {
    flex-shrink: 0;
}

.log-changes {
    padding: 1rem;
}

.change-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.change-field {
    min-width: 150px;
    flex-shrink: 0;
}

.change-values {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.original-value {
    background: #ffebee;
    color: #c62828;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.new-value {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.change-values i {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.log-footer {
    padding: 0.75rem 1rem;
    background: var(--neutral-50);
    border-top: 1px solid var(--border-light);
    border-radius: 0 0 8px 8px;
}

.log-footer small {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
}

.log-footer i {
    margin-right: 0.25rem;
}

.no-data {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-data h4 {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .main-container {
        margin: var(--space-sm);
        border-radius: var(--radius-lg);
    }
    
    .header-section {
        padding: var(--space-md);
    }
    
    .header-section h1 {
        font-size: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .quick-access {
        gap: var(--space-sm);
    }
    
    .quick-access-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .table-modern {
        font-size: 0.8rem;
    }
    
    .table-modern thead th,
    .table-modern tbody td {
        padding: var(--space-sm);
    }
    
    .modal-body {
        padding: var(--space-lg);
    }
    
    .card-body {
        padding: var(--space-md);
    }
}

@media (max-width: 480px) {
    .main-container {
        margin: var(--space-xs);
        border-radius: var(--radius-md);
    }
    
    .header-section h1 {
        font-size: 1.3rem;
    }
    
    .quick-access-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .btn-modern {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.8rem;
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer-section {
    background: var(--eco-black);
    color: white;
    padding: 30px;
    text-align: center;
}

.footer-section .text-muted {
    color: var(--accent-color) !important;
}

.footer-section p {
    margin: 0;
    opacity: 0.8;
}

/* ========================================
   UTILIDADES
   ======================================== */

.text-eco-green { color: var(--eco-green) !important; }
.text-eco-yellow { color: var(--eco-yellow) !important; }
.text-eco-red { color: var(--eco-red) !important; }
.text-eco-black { color: var(--eco-black) !important; }

.bg-eco-green { background-color: var(--eco-green) !important; }
.bg-eco-yellow { background-color: var(--eco-yellow) !important; }
.bg-eco-red { background-color: var(--eco-red) !important; }
.bg-eco-black { background-color: var(--eco-black) !important; }

.border-eco-green { border-color: var(--eco-green) !important; }
.border-eco-yellow { border-color: var(--eco-yellow) !important; }
.border-eco-red { border-color: var(--eco-red) !important; }
.border-eco-black { border-color: var(--eco-black) !important; }

/* Estilos para Reporte de Horas por Día */
.report-section {
    margin-top: 2rem;
}

.report-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.report-header {
    background: var(--eco-dark);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.report-header i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.report-header span {
    font-size: 1.25rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.report-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.report-content {
    padding: 1.5rem;
}

.report-filters {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    font-weight: 600;
    color: var(--eco-dark);
    margin: 0;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--neutral-300);
    border-radius: 6px;
    background: white;
    color: var(--eco-dark);
    font-size: 0.9rem;
    min-width: 200px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--eco-primary);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.report-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--neutral-200);
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: white;
}

.report-table th {
    background: var(--neutral-100);
    color: var(--eco-dark);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--neutral-200);
}

.report-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-200);
}

.report-table tbody tr:hover {
    background: var(--neutral-50);
}

.hours-amount {
    font-weight: 600;
    color: var(--eco-primary);
}

.day-name {
    font-weight: 600;
    color: var(--eco-dark);
}

.weekend {
    background: var(--neutral-50);
}

.weekend .day-name {
    color: var(--eco-red);
}

/* Estilos para App de Registro de Horas */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    min-height: 100vh;
    position: relative;
}

.app-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 25%, rgba(240, 147, 251, 0.1) 50%, rgba(245, 87, 108, 0.1) 75%, rgba(79, 172, 254, 0.1) 100%);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.app-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.2);
    margin-bottom: 1rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
}

.app-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-title i {
    font-size: 2rem;
    color: var(--eco-primary);
}

.app-title h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--eco-dark);
}

.app-time {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--eco-primary);
    font-family: 'Courier New', monospace;
}

.main-status-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.main-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff4757, #ffa502, #00ff88);
    border-radius: 24px 24px 0 0;
}

.status-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.employee-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.employee-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--eco-primary), var(--eco-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.employee-details h3 {
    margin: 0 0 0.125rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--eco-dark);
}

.employee-details p {
    margin: 0;
    color: var(--neutral-600);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.work-stats {
    display: flex;
    gap: 1.25rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--neutral-50);
    border-radius: 8px;
    min-width: 100px;
}

.stat-item i {
    font-size: 1rem;
    color: var(--eco-primary);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--neutral-600);
    font-weight: 500;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--eco-dark);
}

/* Botones de Control */
.control-buttons-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 240px;
    max-width: 350px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.control-btn:hover::before {
    left: 100%;
}

.control-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.control-btn:active {
    transform: translateY(-2px);
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.btn-content {
    text-align: left;
    flex: 1;
}

.btn-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-content p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Botón de Iniciar */
.start-btn {
    background: linear-gradient(135deg, #00ff88, #00d4aa);
    color: white;
}

.start-btn .btn-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.start-btn:hover {
    background: linear-gradient(135deg, #00e676, #00b894);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.4);
}

/* Botón de Finalizar */
.end-btn {
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    color: white;
}

.end-btn .btn-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.end-btn:hover {
    background: linear-gradient(135deg, #ff3742, #ff5252);
    box-shadow: 0 12px 40px rgba(255, 71, 87, 0.4);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .control-btn {
        min-width: 100%;
        padding: 1.5rem 2rem;
        gap: 1rem;
    }
    
    .btn-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .btn-content h3 {
        font-size: 1.2rem;
    }
    
    .btn-content p {
        font-size: 0.9rem;
    }
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
}

.slider-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-600);
    transition: all 0.3s ease;
}

.slider-label.offline {
    color: #ff4757;
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.4);
}

.slider-label.online {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.status-slider {
    width: 100%;
    max-width: 300px;
    cursor: pointer;
}

.slider-track {
    position: relative;
    height: 50px;
    background: linear-gradient(90deg, #ff4757 0%, #ffa502 50%, #00ff88 100%);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.15), 0 0 20px rgba(255, 71, 87, 0.3);
    border: 2px solid rgba(255,255,255,0.2);
}

.slider-thumb {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 0 3px rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    cursor: grab;
    border: 2px solid rgba(255,255,255,0.9);
}

.slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.slider-thumb i {
    font-size: 1.2rem;
    color: #ff4757;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ffa502);
    border-radius: 25px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.2);
}

.slider-status {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-600);
    text-align: center;
    min-height: 20px;
    transition: all 0.3s ease;
}

/* Estados del slider */
.status-slider.working .slider-thumb {
    left: calc(100% - 45px);
    background: linear-gradient(135deg, #00ff88, #00d4aa);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4), 0 0 0 3px rgba(255,255,255,0.8);
}

.status-slider.working .slider-thumb i {
    color: white;
    transform: rotate(180deg);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.status-slider.working .slider-progress {
    width: 100%;
    background: linear-gradient(90deg, #00ff88, #00d4aa);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.3);
}

.status-slider.working .slider-label.offline {
    opacity: 0.5;
}

.status-slider.working .slider-label.online {
    opacity: 1;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.status-slider.working .slider-status {
    color: #00ff88;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Animaciones */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.slider-thumb.sliding {
    animation: slideIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .status-slider-container {
        margin-top: 1.5rem;
    }
    
    .slider-track {
        height: 45px;
    }
    
    .slider-thumb {
        width: 35px;
        height: 35px;
    }
    
    .slider-thumb i {
        font-size: 1rem;
    }
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.start-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    position: relative;
    overflow: hidden;
}

.start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #004085);
}

.start-btn:hover:not(:disabled)::before {
    left: 100%;
}

.start-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Efecto de pulso para el botón de iniciar */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.start-btn:not(:disabled) {
    animation: pulse 2s infinite;
}

.start-btn:hover:not(:disabled) {
    animation: none;
}

/* Estados de feedback para botones */
.app-btn.success-state {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    animation: none !important;
}

.app-btn.error-state {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    animation: none !important;
}

.app-btn.success-state i {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.end-btn {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

.end-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.app-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--eco-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tab-btn:hover:not(.active) {
    background: var(--neutral-100);
    color: var(--eco-dark);
}

.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.app-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--eco-dark), #2c3e50);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.card-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.card-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.card-body {
    padding: 1.5rem;
}

/* Mejoras para el historial */
.history-item {
    background: var(--neutral-50);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--eco-primary);
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.history-item .row {
    align-items: center;
}

.duration-badge {
    background: var(--eco-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .app-container {
        padding: 0.5rem;
    }
    
    .app-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .status-info {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .work-stats {
        justify-content: center;
    }
    
    .action-controls {
        flex-direction: column;
    }
    
    .app-btn {
        width: 100%;
    }
    
    .app-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        justify-content: flex-start;
        padding: 1rem 1.5rem;
    }
}

/* ========================================
   MINI-CARDS DE DÍAS - REGISTRO DE HORAS
   ======================================== */

/* Contenedor principal de mini-cards */
.daily-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

/* Mini-card individual por día */
.daily-card {
    background: linear-gradient(135deg, #f3e5f5 0%, #e8f5e8 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.15);
    border: 2px solid #9c27b0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.daily-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.25);
    border-color: #7b1fa2;
}

/* Header del día (clickeable) */
.daily-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.2);
}

.daily-header * {
    color: white !important;
}

.daily-header:hover {
    background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
    transform: translateY(-1px);
}

.daily-header:hover .daily-date,
.daily-header:hover .daily-jornada,
.daily-header:hover .total-hours {
    color: white;
}

.daily-header:hover .expand-icon {
    color: white;
    transform: scale(1.1);
}

/* Información del día */
.daily-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.daily-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
}

.daily-date i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.daily-jornada {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Total de horas del día */
.daily-total {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.total-hours {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.expand-icon {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Sesiones del día (colapsable) */
.daily-sessions {
    background: var(--neutral-50);
    border-top: 1px solid var(--neutral-200);
    padding: 0.5rem 0.75rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 1.5rem;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding: 1rem 1.5rem;
    }
}

/* Item de sesión individual */
.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.15);
    border: 2px solid #4caf50;
    transition: all 0.3s ease;
}

.session-item:last-child {
    margin-bottom: 0;
}

.session-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
    border-color: #388e3c;
}

/* Tiempos de la sesión */
.session-times {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.session-start,
.session-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.session-start i {
    color: var(--success-color);
    font-size: 1rem;
}

.session-end i {
    color: var(--danger-color);
    font-size: 1rem;
}

.session-start span,
.session-end span {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Duración de la sesión */
.session-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    min-width: 80px;
    justify-content: center;
}

.session-duration i {
    font-size: 0.9rem;
}

/* Estado vacío */
.no-sessions {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
    background: white;
    border-radius: 12px;
    border: 2px dashed var(--neutral-300);
}

/* Estados de carga y error */
.empty-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state i,
.error-state i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.empty-state p,
.error-state p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .daily-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .daily-info {
        width: 100%;
    }
    
    .daily-total {
        width: 100%;
        justify-content: space-between;
    }
    
    .total-hours {
        font-size: 1.25rem;
    }
    
    .daily-sessions {
        padding: 0.75rem 1rem;
    }
    
    .session-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .session-times {
        width: 100%;
    }
    
    .session-duration {
        align-self: flex-end;
        min-width: auto;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .daily-date {
        font-size: 1rem;
    }
    
    .daily-jornada {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .daily-card {
        margin-bottom: 0.5rem;
    }
    
    .daily-header {
        padding: 0.75rem;
    }
    
    .daily-sessions {
        padding: 0.5rem 0.75rem;
    }
    
    .session-item {
        padding: 0.5rem;
    }
    
    .session-start,
    .session-end {
        font-size: 0.85rem;
    }
    
    .session-duration {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

/* ========================================
   MÓDULO DE EDICIÓN DE HORAS
   ======================================== */

/* Filtros de búsqueda */
.search-filters {
    background: var(--surface);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.filter-row {
    display: flex;
    gap: var(--space-md);
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.filter-group .form-select,
.filter-group .form-control {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.filter-group .form-select:focus,
.filter-group .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Sección de registros */
.records-section {
    background: var(--surface);
    border-radius: 12px;
    padding: var(--space-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.section-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.record-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Lista de registros */
.records-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.record-card {
    background: var(--light-color);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: all 0.2s ease;
    cursor: pointer;
}

.record-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.record-employee {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.record-employee i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.employee-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.employee-id {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
}

.record-actions {
    display: flex;
    gap: var(--space-sm);
}

.edit-btn {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    padding: var(--space-xs) var(--space-md);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.edit-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

.record-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.detail-item i {
    color: var(--text-muted);
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 80px;
}

.detail-value {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Estados de jornada */
.jornada-diurna {
    color: var(--success-color);
    font-weight: 600;
}

.jornada-mixta {
    color: var(--warning-color);
    font-weight: 600;
}

.jornada-nocturna {
    color: var(--accent-color);
    font-weight: 600;
}

/* Estados de registro */
.status-completed {
    color: var(--success-color);
    font-weight: 600;
}

.status-in_progress {
    color: var(--warning-color);
    font-weight: 600;
}

.status-cancelled {
    color: var(--danger-color);
    font-weight: 600;
}

/* Sin registros */
.no-records {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
}

.no-records i {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: var(--text-muted);
}

.no-records h4 {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.no-records p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Modal de edición */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    background: var(--light-color);
    border-bottom: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    padding: var(--space-lg);
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.modal-title i {
    color: var(--accent-color);
}

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    background: var(--light-color);
    border-top: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
    padding: var(--space-lg);
}

/* Formulario de edición */
.form-label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-control[readonly] {
    background-color: var(--light-color);
    color: var(--text-muted);
}

/* Botones del modal */
.btn-primary {
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
    font-weight: 500;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--neutral-200);
    border: 1px solid var(--neutral-300);
    color: var(--text-primary);
    font-weight: 500;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--neutral-300);
    border-color: var(--neutral-400);
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning-color);
    border: 1px solid var(--warning-color);
    color: white;
    font-weight: 500;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    transform: translateY(-1px);
}

/* Alertas */
.alert {
    border: none;
    border-radius: 8px;
    padding: var(--space-md) var(--space-lg);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

/* Tarjetas semanales para registro de horas */
.weekly-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #2196f3;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.weekly-card:hover {
    border-color: #1976d2;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.25);
    transform: translateY(-1px);
}

.weekly-header {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.weekly-header * {
    color: white !important;
}

.weekly-header:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    transform: translateY(-1px);
}

.weekly-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.weekly-dates {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.weekly-dates i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.weekly-summary {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

.weekly-total {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.weekly-total .total-hours {
    background: var(--accent-color);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.hours-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xs);
}

/* Nuevo formato de cálculo horizontalizado */
.hours-calculation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.calculation-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.calculation-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.calculation-result {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

.calculation-result .calculation-label {
    font-weight: 600;
    color: white;
}

/* Cálculo diario */
.daily-calculation {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.daily-calculation .calculation-row {
    padding: 0.125rem 0;
}

.daily-calculation .calculation-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.daily-calculation .calculation-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Sesiones horizontales */
.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(76, 175, 80, 0.15);
    border: 1px solid #4caf50;
    transition: all 0.2s ease;
}

.session-item:last-child {
    margin-bottom: 0;
}

.session-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.25);
    border-color: #388e3c;
}

.session-times-horizontal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.session-start-time {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success-color);
}

.session-separator {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.session-end-time {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--danger-color);
}

.session-duration-horizontal {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.session-duration-horizontal i {
    color: var(--accent-color);
}

/* Estilos para horas extra/deuda */
.overtime-normal {
    background: var(--success-color);
    color: white;
    padding: 2px var(--space-sm);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.overtime-extra {
    background: var(--warning-color);
    color: white;
    padding: 2px var(--space-sm);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.overtime-deuda {
    background: var(--danger-color);
    color: white;
    padding: 2px var(--space-sm);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.weekly-days {
    padding: 0.5rem;
    background: var(--light-color);
}

.weekly-days .daily-card {
    margin-bottom: 0.5rem;
    border: 2px solid #9c27b0;
    background: linear-gradient(135deg, #f3e5f5 0%, #e8f5e8 100%);
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.15);
}

.weekly-days .daily-card:last-child {
    margin-bottom: 0;
}

/* Filtro de mes */
.month-filter-container {
    background: var(--neutral-50);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
}

.month-filter {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-content: center;
}

.month-filter label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

.month-filter .form-select {
    min-width: 150px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.875rem;
    background: var(--surface);
}

.month-filter .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Resumen Mensual */
.monthly-summary-card {
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--surface) 0%, var(--neutral-50) 100%);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.monthly-summary-card .card-header {
    background: var(--neutral-100);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-sm) var(--space-md);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.monthly-summary-card .card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.monthly-summary-card .card-body {
    padding: var(--space-sm);
}

/* Historial de Jornadas */
.historial-card {
    margin-bottom: var(--space-md);
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.historial-card .card-header {
    background: var(--neutral-100);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-sm) var(--space-md);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.historial-card .card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.historial-card .card-body {
    padding: var(--space-sm);
}

.monthly-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-sm);
    padding: var(--space-sm);
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-sm);
    background: var(--light-color);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    min-height: 100px;
    justify-content: center;
}

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

.summary-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    opacity: 0.8;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    line-height: 1.2;
}

.summary-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.summary-description {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
    text-align: center;
}

/* Colores específicos para cada tipo de resumen */
.summary-item.hours-worked .summary-icon {
    color: var(--accent-color);
}

.summary-item.hours-expected .summary-icon {
    color: var(--info-color);
}

.summary-item.hours-overtime .summary-icon {
    color: var(--warning-color);
}

.summary-item.hours-debt .summary-icon {
    color: var(--danger-color);
}

.summary-item.hours-overtime .summary-value {
    color: var(--warning-color);
}

.summary-item.hours-debt .summary-value {
    color: var(--danger-color);
}

/* Responsive para edición de horas */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .record-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }
    
    .record-actions {
        justify-content: center;
    }
    
    .weekly-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }
    
    .weekly-total {
        justify-content: center;
    }
    
    .month-filter {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xs);
    }
    
    .month-filter-container {
        padding: var(--space-xs);
    }
}

/* Header Mobile Design */
.mobile-header {
    background: #2c3e50;
    position: relative;
    overflow: hidden;
}

.mobile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.05);
    z-index: 1;
}

.mobile-header-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
}

.mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mobile-logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.mobile-brand-text {
    color: white;
}

.mobile-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-brand-subtitle {
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mobile-user-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mobile-logout-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-logout-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}


.mobile-navigation {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.75rem;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 70px;
    justify-content: center;
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #2c3e50;
}

.mobile-nav-item i {
    font-size: 1.25rem;
}

.mobile-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.1;
}

.mobile-breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-breadcrumb .breadcrumb {
    margin: 0;
    background: none;
    padding: 0;
}

.mobile-breadcrumb .breadcrumb-item {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.mobile-breadcrumb .breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

/* Responsive para header mobile */
@media (max-width: 768px) {
    .mobile-nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .mobile-nav-item {
        padding: 0.5rem 0.25rem;
    }
    
    .mobile-nav-item span {
        font-size: 0.7rem;
    }
    
    .mobile-header-content {
        padding: 0.75rem;
    }
    
    .mobile-page-info {
        padding: 0.75rem;
    }
    
    .mobile-navigation {
        padding: 0.75rem;
    }
}

/* ========================================
   MÓDULOS DE BODEGA - DISEÑO MÓVIL
   ======================================== */

/* Cards móviles para bodega */
.mobile-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.mobile-card-header {
    border-radius: 16px 16px 0 0;
    padding: 1rem;
    border: none;
}

.mobile-card-body {
    padding: 1rem;
}

/* Cards de estadísticas móviles */
.mobile-stat-card {
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-stat-card .stat-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.mobile-stat-card .stat-content {
    flex: 1;
}

.mobile-stat-card .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.mobile-stat-card .stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sección de búsqueda móvil */
.mobile-search-section {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mobile-search-input {
    flex: 1;
    position: relative;
}

.mobile-search-input i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
}

.mobile-search-input input {
    padding-left: 2.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    height: 44px;
    font-size: 0.9rem;
}

.mobile-search-input input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.mobile-action-btn {
    border-radius: 12px;
    height: 44px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    min-width: 80px;
    justify-content: center;
}

/* Lista de productos móvil */
.mobile-products-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Estilos para reportes mejorados */
.stat-box {
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.9;
}

.insights-section, .top-products-section, .tendencias-section, .top-proveedores-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.insight-item {
    background: white;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-left: 3px solid #007bff;
    font-size: 0.85rem;
}

.insight-item.warning {
    border-left-color: #ffc107;
}

.insight-item.success {
    border-left-color: #28a745;
}

.insight-item.danger {
    border-left-color: #dc3545;
}

.top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.top-item .rank {
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.bodega-analysis {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #dee2e6;
}

.bodega-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bodega-name {
    font-weight: bold;
    font-size: 0.9rem;
}

.bodega-value {
    font-weight: bold;
    color: #28a745;
    font-size: 0.9rem;
}

.bodega-stats {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: #6c757d;
}

.tendencia-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.tendencia-trend {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tendencia-trend.up {
    color: #28a745;
}

.tendencia-trend.down {
    color: #dc3545;
}

.tendencia-trend.stable {
    color: #6c757d;
}

.mobile-product-card {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.mobile-product-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-product-card .product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.mobile-product-card .product-name h6 {
    margin: 0 0 0.125rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.2;
}

.mobile-product-card .product-category {
    font-size: 0.7rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.mobile-product-card .product-status .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.mobile-product-card .product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-product-card .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.125rem 0;
}

.mobile-product-card .detail-row.highlight {
    background: #f8f9fa;
    padding: 0.375rem;
    border-radius: 6px;
    font-weight: 600;
}

.mobile-product-card .detail-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.mobile-product-card .detail-value {
    font-size: 0.8rem;
    color: #212529;
    font-weight: 600;
}

/* Estado vacío móvil */
.mobile-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.mobile-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.mobile-empty-state h6 {
    margin-bottom: 0.5rem;
    color: #495057;
}

.mobile-empty-state p {
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive para tablets */
@media (min-width: 768px) {
    .mobile-stat-card {
        margin-bottom: 0;
    }
    
    .mobile-search-section {
        flex-direction: row;
    }
    
    .mobile-action-btn {
        min-width: 120px;
    }
}

/* Pestañas móviles para administrador */
.mobile-tabs {
    border: none;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-tabs .nav-item {
    flex: 1;
    min-width: 0;
}

.mobile-tabs .nav-link {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    background: transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mobile-tabs .nav-link i {
    font-size: 1rem;
}

.mobile-tabs .nav-link span {
    font-size: 0.7rem;
}

.mobile-tabs .nav-link.active {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.mobile-tabs .nav-link:hover:not(.active) {
    background: #f8f9fa;
    color: #495057;
}

/* Responsive para desktop */
@media (min-width: 992px) {
    .mobile-card {
        margin-bottom: 1.5rem;
    }
    
    .mobile-products-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1rem;
    }
    
    .mobile-tabs .nav-link {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    
    .mobile-tabs .nav-link span {
        font-size: 0.85rem;
    }
}

/* ========================================
   REPORTES MÓVILES - DISEÑO ESPECÍFICO
   ======================================== */

/* Contenedor de reportes */
.mobile-report-container {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.report-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.report-header h5 {
    margin: 0 0 0.5rem 0;
    color: #212529;
    font-weight: 600;
}

.report-header p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Cards de resumen */
.mobile-summary-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #007bff;
}

.mobile-summary-card h6 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-weight: 600;
}

.mobile-summary-card .display-6 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

/* Secciones de reporte */
.mobile-section {
    margin-bottom: 1.5rem;
}

.mobile-section h6 {
    margin: 0 0 0.75rem 0;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Lista de items móvil */
.mobile-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.mobile-list-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-list-item .item-name {
    font-weight: 600;
    color: #212529;
    flex: 1;
}

.mobile-list-item .item-details {
    text-align: right;
}

.mobile-list-item .item-details span {
    display: block;
    font-weight: 600;
    color: #007bff;
}

.mobile-list-item .item-details small {
    color: #6c757d;
    font-size: 0.75rem;
}

/* Cards de rotación */
.mobile-rotation-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.rotation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rotation-header h6 {
    margin: 0;
    color: #212529;
    font-weight: 600;
}

.rotation-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.rotation-metrics .metric {
    text-align: center;
}

.rotation-metrics .metric-label {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rotation-metrics .metric-value {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Cards de bodega */
.mobile-bodega-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.bodega-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f8f9fa;
}

.bodega-header h6 {
    margin: 0;
    color: #212529;
    font-weight: 600;
}

.bodega-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.summary-item {
    text-align: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.summary-label {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    display: block;
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
}

.bodega-products {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.product-item.low-stock {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.product-info {
    flex: 1;
}

.product-name {
    display: block;
    font-weight: 600;
    color: #212529;
    font-size: 0.85rem;
}

.product-category {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-stock {
    text-align: right;
}

.stock-amount {
    display: block;
    font-weight: 600;
    color: #212529;
    font-size: 0.85rem;
}

.stock-value {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
}

.more-products {
    text-align: center;
    padding: 0.5rem;
    color: #6c757d;
    font-size: 0.8rem;
    font-style: italic;
}

/* Filtros móviles */
.mobile-filters {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.mobile-filters .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.mobile-filters .form-select,
.mobile-filters .form-control {
    font-size: 0.85rem;
    border-radius: 6px;
    border: 1px solid #ced4da;
}

.mobile-filters .form-select:focus,
.mobile-filters .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Responsive para tablets */
@media (min-width: 768px) {
    .rotation-metrics {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .bodega-summary {
        grid-template-columns: 1fr 1fr;
    }
}

/* Responsive para desktop */
@media (min-width: 992px) {
    .mobile-report-container {
        padding: 1.5rem;
    }
    
    .mobile-list-item {
        padding: 1rem;
    }
    
    .mobile-rotation-card {
        padding: 1.5rem;
    }
    
    .mobile-bodega-card {
        padding: 1.5rem;
    }
}

/* ===== MÓDULO DE TICKETS - INICIO ===== */

/* Lista de tickets */
.mobile-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Card de ticket */
.mobile-ticket-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.mobile-ticket-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.mobile-ticket-card.completada {
    opacity: 0.7;
    background: #f8f9fa;
}

.mobile-ticket-card.vencida {
    border-left: 4px solid #dc3545;
}

/* Header del ticket */
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.ticket-titulo h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #2c3e50;
}

.ticket-badges {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.ticket-acciones {
    display: flex;
    gap: 0.25rem;
}

/* Contenido del ticket */
.ticket-content {
    margin-top: 0.75rem;
}

.ticket-descripcion {
    margin-bottom: 0.75rem;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.info-item i {
    width: 16px;
    text-align: center;
    color: #007bff;
}

/* Detalle del ticket */
.ticket-detail {
    max-height: 70vh;
    overflow-y: auto;
}

.ticket-detail-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.ticket-detail-header h5 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.ticket-detail-content {
    margin-bottom: 1rem;
}

.ticket-detail-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Comentarios */
.ticket-comentarios {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.comentario-item {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.comentario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comentario-header strong {
    color: #2c3e50;
    font-size: 0.9rem;
}

.comentario-header small {
    font-size: 0.75rem;
}

.comentario-content {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive para tickets */
@media (max-width: 768px) {
    .ticket-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ticket-acciones {
        align-self: flex-end;
    }
    
    .ticket-info {
        font-size: 0.75rem;
    }
    
    .info-item {
        flex-wrap: wrap;
    }
}

/* ===== MÓDULO DE TICKETS - FIN ===== */

/* ========================================
   TICKETS - MEJORAS MOBILE
   ======================================== */

/* Lista de tickets mejorada */
.mobile-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-ticket-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.mobile-ticket-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.ticket-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
    margin-right: 12px;
}

.ticket-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ticket-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.ticket-badge.estado-pendiente {
    background: #FEF3C7;
    color: #92400E;
}

.ticket-badge.estado-completada {
    background: #D1FAE5;
    color: #065F46;
}

.ticket-badge.prioridad-urgente {
    background: #FEE2E2;
    color: #991B1B;
}

.ticket-badge.prioridad-normal {
    background: #E0E7FF;
    color: #3730A3;
}

.ticket-content {
    margin-bottom: 12px;
}

.ticket-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ticket-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-info-label {
    font-weight: 500;
}

.ticket-info-value {
    color: var(--text-secondary);
    font-weight: 500;
}

.ticket-acciones {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.ticket-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-btn.btn-ver {
    background: var(--accent-color);
    color: white;
}

.ticket-btn.btn-ver:hover {
    background: #2563EB;
    transform: translateY(-1px);
}

.ticket-btn.btn-resolver {
    background: var(--success-color);
    color: white;
}

.ticket-btn.btn-resolver:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Comentarios de tickets */
.ticket-comentarios {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.comentario-item {
    background: var(--neutral-50);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.comentario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.comentario-header strong {
    color: var(--text-primary);
    font-size: 0.8rem;
}

.comentario-header small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.comentario-content {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ===== TICKETS MEJORAS - FIN ===== */

/* ========================================
   ADMINISTRADOR BODEGA - MOBILE FIRST
   ======================================== */

/* Navegación móvil para bodega */
.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 70px;
    cursor: pointer;
}

.mobile-nav-item:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mobile-nav-item.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.mobile-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* ========================================
   COLORES POR GRUPOS DE MÓDULOS
   ======================================== */

/* GRUPO: GESTIÓN DE HORAS (Azul) */
.mobile-nav-item.hours-group {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: white;
    border-color: #1D4ED8;
}

.mobile-nav-item.hours-group:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    color: white;
    border-color: #1E40AF;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* GRUPO: GESTIÓN DE CITAS (Verde) */
.mobile-nav-item.appointments-group {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-color: #059669;
}

.mobile-nav-item.appointments-group:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border-color: #047857;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* GRUPO: GESTIÓN DE PERSONAL (Púrpura) */
.mobile-nav-item.personnel-group {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    border-color: #7C3AED;
}

.mobile-nav-item.personnel-group:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    color: white;
    border-color: #6D28D9;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* GRUPO: INVENTARIO (Naranja) */
.mobile-nav-item.inventory-group {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border-color: #D97706;
}

.mobile-nav-item.inventory-group:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    color: white;
    border-color: #B45309;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* GRUPO: TICKETS (Amarillo) */
.mobile-nav-item.tickets-group {
    background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%);
    color: white;
    border-color: #CA8A04;
}

.mobile-nav-item.tickets-group:hover {
    background: linear-gradient(135deg, #CA8A04 0%, #A16207 100%);
    color: white;
    border-color: #A16207;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.4);
}

/* GRUPO: EXPORTAR (Gris) */
.mobile-nav-item.export-group {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    color: white;
    border-color: #4B5563;
}

.mobile-nav-item.export-group:hover {
    background: linear-gradient(135deg, #4B5563 0%, #374151 100%);
    color: white;
    border-color: #374151;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

/* Secciones de contenido */
.section-content {
    display: block;
}

/* Cards de estadísticas para bodega */
.stat-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color), #60A5FA);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.stat-icon i {
    color: white;
    font-size: 1.2rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

/* Lista móvil para bodega */
.mobile-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-list-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.mobile-list-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.mobile-list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.mobile-list-item-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.mobile-list-item-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
}

.mobile-list-item-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.mobile-list-item-detail {
    display: flex;
    justify-content: space-between;
}

.mobile-list-item-detail-label {
    font-weight: 500;
}

.mobile-list-item-detail-value {
    color: var(--text-primary);
}

/* Botones de acción para bodega */
.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.mobile-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-action-btn i {
    font-size: 1rem;
}

/* Estados vacíos para bodega */
.mobile-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.mobile-empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--border);
}

.mobile-empty-state h6 {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.mobile-empty-state p {
    font-size: 0.9rem;
    margin: 0;
}

/* ===== ADMINISTRADOR BODEGA - FIN ===== */

/* ========================================
   TABLA MODERNA DE EMPLEADOS
   ======================================== */

/* Tabla moderna con sombras y efectos */
.table-modern {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: none;
}

.table-modern thead th {
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    color: white;
    font-weight: 600;
    text-transform: none;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    padding: 20px 16px;
    border: none;
    position: relative;
}

.table-modern thead th:first-child {
    border-top-left-radius: 16px;
}

.table-modern thead th:last-child {
    border-top-right-radius: 16px;
}

.table-modern thead th i {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Filas modernas */
.table-row-modern {
    transition: all 0.3s ease;
    border: none;
}

.table-row-modern:hover {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.table-row-modern td {
    padding: 18px 16px;
    border: none;
    vertical-align: middle;
    border-bottom: 1px solid #F1F5F9;
}

/* Badges modernos */
.badge {
    font-weight: 500;
    font-size: 0.8rem;
    border-radius: 20px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge.bg-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: white;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: white;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    color: white;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    color: white;
}

/* Botones modernos */
.btn-modern {
    border-radius: 12px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary.btn-modern {
    border-color: #3B82F6;
    color: #3B82F6;
    background: white;
}

.btn-outline-primary.btn-modern:hover {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

/* Contenedor de tabla moderno */
.table-responsive {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: white;
}

/* Estados vacíos modernos */
.no-data {
    padding: 60px 20px;
    text-align: center;
    color: #6B7280;
}

.no-data i {
    color: #D1D5DB;
    margin-bottom: 16px;
}

.no-data p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .table-modern thead th {
        padding: 16px 12px;
        font-size: 0.8rem;
    }
    
    .table-row-modern td {
        padding: 14px 12px;
        font-size: 0.9rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .btn-modern {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Iconos de permisos compactos */
.permisos-icons {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    min-height: 24px;
}

.permisos-icons i {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.2s ease;
    cursor: help;
}

.permisos-icons i:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Colores específicos para permisos */
.permisos-icons .text-success { color: #10B981 !important; }
.permisos-icons .text-info { color: #06B6D4 !important; }
.permisos-icons .text-primary { color: #3B82F6 !important; }
.permisos-icons .text-warning { color: #F59E0B !important; }
.permisos-icons .text-secondary { color: #6B7280 !important; }
.permisos-icons .text-danger { color: #EF4444 !important; }

/* Responsive para iconos de permisos */
@media (max-width: 768px) {
    .permisos-icons {
        gap: 2px;
    }
    
    .permisos-icons i {
        font-size: 0.8rem;
    }
}

/* ===== ESTADÍSTICAS HORIZONTALES DE EMPLEADOS ===== */

/* Contenedor horizontal de estadísticas - Sobrescribir cualquier estilo anterior */
.mobile-card-body .stats-horizontal,
#statsCards.stats-horizontal {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
    margin-bottom: 20px;
    width: 100%;
}

.stats-horizontal {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
    margin-bottom: 20px;
    width: 100%;
}

/* Cajas de estadísticas horizontales */
.stat-box {
    display: flex !important;
    align-items: center;
    padding: 16px 20px;
    border-radius: 16px;
    min-width: 140px;
    flex-shrink: 0;
    flex-grow: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background: white;
    border-radius: 16px;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Iconos de estadísticas */
.stat-box .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.stat-box .stat-icon i {
    font-size: 1.2rem;
    color: white;
}

/* Información de estadísticas */
.stat-box .stat-info {
    flex: 1;
    min-width: 0;
}

.stat-box .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: white;
    margin-bottom: 2px;
}

.stat-box .stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Colores específicos con degradados */
.stat-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-total .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stat-active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-active .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stat-vehicle {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-vehicle .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stat-departments {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-departments .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .stats-horizontal {
        gap: 8px;
        padding: 2px 0;
    }
    
    .stat-box {
        min-width: 120px;
        padding: 12px 16px;
    }
    
    .stat-box .stat-icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    
    .stat-box .stat-icon i {
        font-size: 1rem;
    }
    
    .stat-box .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-box .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .stat-box {
        min-width: 100px;
        padding: 10px 12px;
    }
    
    .stat-box .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-box .stat-label {
        font-size: 0.65rem;
    }
}

/* ===== ESTADÍSTICAS HORIZONTALES DE EMPLEADOS - FIN ===== */

/* ===== TABLA MODERNA DE EMPLEADOS - FIN ===== */


/* Modal de Comunicado */
.comunicado-modal {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.comunicado-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.comunicado-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.comunicado-icon {
    font-size: 3rem;
    margin-right: 1rem;
    animation: pulse 2s infinite;
}

.comunicado-header .modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.comunicado-body {
    padding: 2.5rem;
    background: white;
}

.comunicado-badge {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.comunicado-message .lead {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.comunicado-highlight {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    color: #2c3e50;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
    border-left: 5px solid #ff8c00;
}

.comunicado-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 4px solid #28a745;
}

.comunicado-details h6 {
    color: #28a745;
    font-weight: 700;
    margin-bottom: 1rem;
}

.comunicado-details ul {
    margin: 0;
    padding-left: 1.5rem;
}

.comunicado-details li {
    margin-bottom: 0.5rem;
    color: #495057;
    line-height: 1.5;
}

.comunicado-benefits {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.comunicado-benefits h6 {
    color: #7b1fa2;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    font-weight: 500;
    color: #495057;
}

.benefit-item i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    width: 20px;
}

.comunicado-footer-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 2rem;
    color: #856404;
}

.comunicado-footer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    padding: 2rem;
    justify-content: center;
}

.comunicado-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comunicado-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838, #1e7e34);
}

.comunicado-btn:active {
    transform: translateY(-1px);
}

.comunicado-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.comunicado-btn:hover::before {
    left: 100%;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive para modal de comunicado */
@media (max-width: 768px) {
    .comunicado-header {
        padding: 1.5rem;
    }
    
    .comunicado-header .modal-title {
        font-size: 1.5rem;
    }
    
    .comunicado-body {
        padding: 1.5rem;
    }
    
    .comunicado-message .lead {
        font-size: 1.1rem;
    }
    
    .comunicado-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
}
