/* ================================================================= */
/* CONFIGURACIÓN Y VARIABLES DE DISEÑO (DISEÑO PREMIUM)              */
/* ================================================================= */
:root {
    --color-bg-light: #fdfcfb;
    --color-bg-dark: #1e150f;
    --color-text-main: #3d3023;
    --color-text-muted: #847669;
    --color-primary: #6e543c;        /* Chocolate oscuro */
    --color-secondary: #8c6f4c;      /* Caramelo */
    --color-accent-yellow: #f1ed00;  /* Amarillo brillante */
    --color-glass-bg: rgba(255, 255, 255, 0.75);
    --color-glass-border: rgba(255, 255, 255, 0.4);
    
    --color-success: #2ecc71;
    --color-info: #3498db;
    --color-warning: #f1c40f;
    --color-danger: #e74c3c;
    
    /* Variantes pastel */
    --color-warn-light: #fff8d6;     /* Amarillo pastel para anomalías */
    --color-danger-light: #fde8e8;   /* Rojo pastel para retrasos */
    --color-success-light: #e8f8f5;  /* Verde pastel */

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-cursive: 'Caveat', cursive;
    --font-sans: 'Montserrat', sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(61, 48, 35, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(61, 48, 35, 0.1), 0 4px 6px -2px rgba(61, 48, 35, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(61, 48, 35, 0.15), 0 10px 10px -5px rgba(61, 48, 35, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ================================================================= */
/* VISTAS E INTERRUPTORES DE PANTALLA                                */
/* ================================================================= */
.view-container {
    display: none;
    min-height: 100vh;
    width: 100%;
}

.view-container.active {
    display: flex;
    flex-direction: column;
}

/* ================================================================= */
/* 1. SECCIÓN DE ENTRADA (LANDING PAGE)                             */
/* ================================================================= */
.landing-header {
    text-align: center;
    padding: 2.5rem 1rem 1rem 1rem;
    background-color: #ffffff;
}

.brand-logo {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--color-primary);
    cursor: pointer;
    user-select: none;
    letter-spacing: -2px;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.03);
    color: var(--color-secondary);
}

.landing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-card {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-card:hover {
    transform: translateY(-5px);
}

.hero-image-container {
    position: relative;
    width: 100%;
    padding-top: 50%; /* Aspect Ratio 2:1 aproximadamente */
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 21, 15, 0.4); /* Capa oscura translúcida */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 2rem;
}

.hero-text {
    text-align: center;
    z-index: 2;
}

.hero-text h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 3px;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 5px;
    margin-top: 1.5rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle.highlight {
    font-weight: 600;
    margin-top: 0.2rem;
}

/* Sello circular "Conservantes 100% artesanal..." */
.stamp-badge {
    position: absolute;
    bottom: 20px;
    right: 25px;
    width: 110px;
    height: 110px;
    border: 2px dashed rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    transform: rotate(-10deg);
    background: rgba(110, 84, 60, 0.2);
    backdrop-filter: blur(2px);
    z-index: 3;
    animation: spin-slow 20s linear infinite;
    user-select: none;
}

.stamp-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.stamp-content .percent {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-serif);
}

.stamp-content .cursive {
    font-family: var(--font-cursive);
    font-size: 1.1rem;
    line-height: 0.8;
}

/* Franjas decorativas */
.brand-strip-brown {
    width: 100%;
    max-width: 900px;
    height: 50px;
    background-color: var(--color-secondary);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.brand-strip-yellow {
    width: 100%;
    max-width: 900px;
    height: 15px;
    background-color: var(--color-accent-yellow);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
}

/* ================================================================= */
/* 2. MODAL DE LOGIN (GLASSMORPHISM)                                 */
/* ================================================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 21, 15, 0.55);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.login-card {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .login-card {
    transform: scale(1);
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(110, 84, 60, 0.1);
    padding-bottom: 0.8rem;
}

.login-header h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--color-danger);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.form-group label i {
    margin-right: 5px;
    color: var(--color-secondary);
}

.form-group input, .form-group select {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(110, 84, 60, 0.25);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--color-text-main);
    background-color: rgba(255, 255, 255, 0.8);
    transition: outline 0.1s ease, border-color 0.2s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: 2px solid var(--color-secondary);
    border-color: transparent;
}

.error-message {
    color: var(--color-danger);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
}

.success-message {
    color: var(--color-success);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
}

/* ================================================================= */
/* BOTONES PREMIUM                                                  */
/* ================================================================= */
.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(110, 84, 60, 0.15);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: rgba(110, 84, 60, 0.05);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-cancel {
    background-color: #f1f0ee;
    color: var(--color-text-muted);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-cancel:hover {
    background-color: #e5e3e0;
    color: var(--color-text-main);
}

.btn-danger {
    background-color: var(--color-danger);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* ================================================================= */
/* 3. PANEL DE ADMINISTRACIÓN - MAQUETACIÓN                          */
/* ================================================================= */
.admin-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(110, 84, 60, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.admin-logo-area {
    display: flex;
    flex-direction: column;
}

.admin-brand {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-primary);
    line-height: 1;
}

.admin-tag {
    font-size: 0.65rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-top: 2px;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    height: 100%;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--color-primary);
    background-color: rgba(110, 84, 60, 0.02);
}

.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.admin-user-area {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.admin-user {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    background-color: rgba(110, 84, 60, 0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.btn-logout {
    background: none;
    border: 1px solid rgba(110, 84, 60, 0.2);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background-color: var(--color-danger-light);
    color: var(--color-danger);
    border-color: var(--color-danger);
}

.admin-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fade-in 0.3s ease-in-out;
}

.tab-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
}

.tab-title-row h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-primary);
}

/* ================================================================= */
/* ESTILOS DE TARJETAS (CARDS) Y VISTAS                              */
/* ================================================================= */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(110, 84, 60, 0.08);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
}

.card-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Zona de Carga Drag and Drop */
.dropzone {
    border: 2px dashed rgba(110, 84, 60, 0.25);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    background-color: var(--color-bg-light);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--color-secondary);
    background-color: rgba(140, 111, 76, 0.05);
}

.dropzone-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
}

.dropzone-text {
    font-size: 0.9rem;
    color: var(--color-text-main);
}

.browse-link {
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: underline;
}

.file-name-label {
    font-size: 0.8rem;
    color: var(--color-success);
    font-weight: 600;
    word-break: break-all;
}

/* Tarjeta de Estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    height: 100%;
}

.stat-item {
    background-color: var(--color-bg-light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-info);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item.warning {
    border-left-color: var(--color-warning);
}

.stat-item.danger {
    border-left-color: var(--color-danger);
}

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

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

/* ================================================================= */
/* SECCIÓN DE ALERTAS (CARTEL DE ANOMALÍAS DE INGRESO)                */
/* ================================================================= */
.alert-section {
    margin-bottom: 2rem;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.alert-section h3 {
    font-size: 1.2rem;
    color: var(--color-danger);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.3rem;
}

.section-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 1.2rem;
}

.alert-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.alert-item {
    background: var(--color-danger-light);
    border: 1px solid rgba(231, 76, 60, 0.15);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.03);
}

.alert-item-icon {
    font-size: 1.1rem;
    color: var(--color-danger);
    margin-top: 2px;
}

.alert-item-body {
    flex: 1;
}

.alert-item-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.alert-item-desc {
    font-size: 0.75rem;
    color: #7f8c8d;
    line-height: 1.3;
}

.alert-item-tag {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    background-color: var(--color-danger);
    color: #ffffff;
    border-radius: 4px;
    margin-top: 5px;
}

/* ================================================================= */
/* TABLAS DE DATOS                                                   */
/* ================================================================= */
.table-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(110, 84, 60, 0.08);
    margin-bottom: 2rem;
}

.table-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.table-header-row h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-filters label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(110, 84, 60, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

th {
    background-color: rgba(110, 84, 60, 0.05);
    color: var(--color-text-main);
    font-weight: 700;
    padding: 0.9rem 1.2rem;
    border-bottom: 2px solid rgba(110, 84, 60, 0.1);
    white-space: nowrap;
}

td {
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid rgba(110, 84, 60, 0.06);
    color: var(--color-text-main);
}

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

.empty-table-msg {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Clases de auditoría / Resaltados */
.row-violacion {
    background-color: var(--color-warn-light) !important; /* Resaltado amarillo para desviación de Lógica */
    transition: background-color 0.2s ease;
}

.row-violacion:hover {
    background-color: #fff2b2 !important;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.success {
    background-color: var(--color-success-light);
    color: #27ae60;
}

.badge.warning {
    background-color: #fef5d1;
    color: #d35400;
}

.badge.danger {
    background-color: var(--color-danger-light);
    color: #c0392b;
}

.badge.neutral {
    background-color: #f0f0f0;
    color: #7f8c8d;
}

.txt-strike {
    text-decoration: line-through;
    color: var(--color-text-muted);
}

.txt-bold {
    font-weight: 700;
}

.overlap-info-box {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #7f8c8d;
    background-color: rgba(255, 255, 255, 0.55);
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 2px solid var(--color-secondary);
}

/* ================================================================= */
/* VISTA EMPLEADOS - WHATSAPP Y CRUD                                  */
/* ================================================================= */
.employees-table td {
    padding: 1rem 1.2rem;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-link:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

.action-btns-cell {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: 1px solid rgba(110, 84, 60, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.btn-icon.edit:hover {
    color: var(--color-info);
    border-color: var(--color-info);
    background-color: rgba(52, 152, 219, 0.05);
}

.btn-icon.delete:hover {
    color: var(--color-danger);
    border-color: var(--color-danger);
    background-color: var(--color-danger-light);
}

/* Formulario de Empleados flotante/interior */
.form-card {
    border-left: 5px solid var(--color-primary);
    animation: slide-down 0.3s ease-out;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.form-row .col {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1.2rem;
    }
}

.form-help {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(110, 84, 60, 0.1);
    padding-top: 1rem;
}

/* ================================================================= */
/* VISTA CONFIGURACIÓN                                               */
/* ================================================================= */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1000px) {
    .config-grid {
        grid-template-columns: 1fr;
    }
}

.config-card {
    display: flex;
    flex-direction: column;
}

.config-card.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 1000px) {
    .config-card.full-width {
        grid-column: auto;
    }
}

.config-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
    margin: 1.2rem 0 0.8rem 0;
    border-bottom: 1px dashed rgba(140, 111, 76, 0.3);
    padding-bottom: 4px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    margin: 0.8rem 0;
    background: var(--color-bg-light);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(110, 84, 60, 0.1);
}

.checkbox-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.security-forms {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .security-forms {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.col-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sys-reset-box {
    border-left: 2px solid rgba(231, 76, 60, 0.2);
    padding-left: 1.5rem;
    justify-content: flex-start;
    gap: 1rem;
}

@media (max-width: 768px) {
    .sys-reset-box {
        border-left: none;
        border-top: 2px solid rgba(231, 76, 60, 0.2);
        padding-left: 0;
        padding-top: 1.5rem;
    }
}

/* ================================================================= */
/* ANIMACIONES                                                       */
/* ================================================================= */
@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Personalización del Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f0ee;
    border-radius: 4px;
}

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

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

/* Estilos adicionales para los filtros y acciones del historial */
.table-actions-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.filter-group input[type="month"] {
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(110, 84, 60, 0.2);
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    color: var(--color-text-main);
    background: #ffffff;
    cursor: pointer;
}

.filter-group input[type="month"]:focus {
    border-color: var(--color-secondary);
}

.action-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-group .btn-logout {
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--color-danger);
    width: auto;
    height: auto;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-group .btn-logout:hover {
    background-color: var(--color-danger-light);
}

.btn-clear-filter:hover {
    background-color: rgba(110, 84, 60, 0.05) !important;
    border-color: var(--color-secondary) !important;
    color: var(--color-secondary) !important;
}

/* Estilos para el historial de observaciones en el modal de Reclamos */
.claim-note-card {
    background-color: #ffffff;
    border: 1px solid rgba(110, 84, 60, 0.15);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 4px rgba(61, 48, 35, 0.02);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    border-left: 4px solid var(--color-primary);
    text-align: left;
}

.claim-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.claim-note-category {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: #fef5d1;
    color: #d35400;
}

.claim-note-text {
    font-size: 0.85rem;
    color: var(--color-text-main);
    line-height: 1.4;
    white-space: pre-wrap;
    margin-top: 4px;
}


