@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-strong: #0f172a;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-soft: #94a3b8;
    --border: #dbe3ef;
    --primary: #2563eb;
    --primary-strong: #1d4ed8;
    --accent: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --sidebar: #0b1220;
    --sidebar-muted: #9aa7bd;
    --sidebar-border: rgba(148, 163, 184, 0.16);
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: 180ms ease;
}

/* Refinamiento visual institucional 2026 */
:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface-soft: #f7f9fc;
    --text: #172033;
    --text-muted: #657084;
    --text-soft: #98a2b3;
    --border: #e1e6ee;
    --primary: #2457d6;
    --primary-strong: #1c46b2;
    --accent: #168267;
    --sidebar: #17233b;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .03), 0 8px 24px rgba(16, 24, 40, .04);
    --shadow-md: 0 20px 50px rgba(16, 24, 40, .12);
}

body { letter-spacing: -.01em; }

/* Acceso */
.login-body {
    padding: 32px;
    background: #f4f6f9;
}
.login-container {
    width: min(100%, 440px);
    min-height: 0;
    display: block;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(23,32,51,.08);
    box-shadow: 0 24px 80px rgba(23,32,51,.16);
}
.login-brand-panel {
    position: relative;
    overflow: hidden;
    padding: 46px;
    color: #fff;
    background: linear-gradient(145deg, #17233b 0%, #1d3157 62%, #2457d6 150%);
}
.login-brand-panel::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -170px;
    bottom: -180px;
    border: 48px solid rgba(255,255,255,.045);
    border-radius: 50%;
}
.login-brand-lockup { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.login-brand-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: #17233b; background: #fff; font-size: 1.25rem; }
.login-brand-lockup strong, .login-brand-lockup span { display: block; }
.login-brand-lockup strong { font-size: 1.05rem; }
.login-brand-lockup span { margin-top: 1px; color: #b9c6db; font-size: .78rem; }
.brand-kicker { padding: 0; border-radius: 0; background: none; color: #9fb8ed; font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; }
.login-brand-copy { position: relative; z-index: 1; }
.login-brand-copy h1 { max-width: 10ch; margin: 16px 0 18px; font-size: clamp(2.25rem, 4vw, 3.35rem); line-height: 1.04; letter-spacing: -.045em; }
.login-brand-copy p { max-width: 38ch; color: #c5cede; line-height: 1.7; }
.login-brand-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: #9facbf; font-size: .78rem; }
.login-panel { padding: 46px 44px; background: #fff; }
.login-header { margin-bottom: 30px; }
.login-logo-container { width: 52px; height: 52px; margin-bottom: 24px; border-radius: 12px; background: #eaf0ff; color: var(--primary); box-shadow: none; font-size: 1.35rem; }
.login-eyebrow { display: block; margin-bottom: 7px; color: var(--primary); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.login-header h2 { font-size: 2rem; letter-spacing: -.035em; }
.login-form label { font-size: .82rem; }
.input-wrapper input { height: 48px; border-radius: 9px; background: #fbfcfe; }
.btn-login { width: 100%; height: 48px; margin-top: 6px; border-radius: 9px; background: var(--primary); box-shadow: 0 8px 18px rgba(36,87,214,.2); }
.btn-login:hover { background: var(--primary-strong); box-shadow: 0 10px 22px rgba(36,87,214,.25); }
.btn-login .button-icon { margin-left: auto; }
.login-support { margin-top: 24px; color: var(--text-soft); font-size: .76rem; line-height: 1.55; text-align: center; }

/* Consola administrativa */
.dashboard-container { grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { padding: 22px 14px; gap: 20px; background: #17233b; border-right: 1px solid rgba(255,255,255,.05); }
.sidebar-header { padding: 5px 9px 16px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar-brand-mark { width: 40px; height: 40px; border-radius: 10px; background: #fff; color: #1c4fc4; box-shadow: none; }
.sidebar-brand-copy h3 { font-size: 1.02rem; letter-spacing: -.01em; }
.sidebar-brand-copy p { margin-top: 2px; font-size: .72rem; }
.sidebar-section-label { padding: 0 12px; color: #6f7f99; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-menu { gap: 3px; }
.sidebar-menu li a { min-height: 44px; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: .87rem; font-weight: 500; }
.sidebar-menu li a i { width: 20px; color: #7f91ad; text-align: center; }
.sidebar-menu li.active a { color: #fff; background: #2457d6; border-color: transparent; box-shadow: 0 7px 16px rgba(0,0,0,.15); }
.sidebar-menu li.active a i { color: #fff; }
.sidebar-menu li a:hover { background: rgba(255,255,255,.07); border-color: transparent; }
.sidebar-menu .logout a { color: #c7d0df; }
.main-content { padding: 34px clamp(22px, 3vw, 44px); }
.page-shell { max-width: 1480px; }
.page-header, .report-header, .header-action, .dashboard-header { margin-bottom: 26px; }
.page-title h1, .page-title h2, .dashboard-header h2, .report-header h2, .header-action h2 { font-size: 1.75rem; letter-spacing: -.035em; }
.page-title p, .dashboard-header p, .report-header p, .header-action p { font-size: .9rem; }
.card, .table-container, .panel { border-radius: 12px; box-shadow: var(--shadow-sm); }
.card { padding: 24px; }
.stat-icon, .selector-icon { width: 48px; height: 48px; border-radius: 10px; }
.admin-bg { background: #eaf0ff; color: #2457d6; }
.asistencial-bg { background: #fff3df; color: #b96b0a; }
.total-bg { background: #e5f6f1; color: #168267; }
.big-number { font-size: 2.1rem; }
.action-tile { border-radius: 10px; box-shadow: none; background: #fff; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.action-tile:hover { border-color: #b8c7e8; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.table-container { padding: 0; }
.table-header { padding: 20px 22px 0; }
.data-table th, .data-table td { padding: 13px 18px; }
.data-table th { background: #f7f9fc; color: #667085; font-size: .7rem; letter-spacing: .045em; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafcff; }
.btn-login, .btn-filter, .btn-print, .btn-select, .btn-save, .btn-save-asist, .btn-import, .btn-edit, .btn-danger, .btn-primary, .btn-secondary { border-radius: 8px; padding: 10px 14px; font-size: .84rem; box-shadow: none; }
.btn-filter, .btn-select, .btn-primary, .btn-import { background: var(--primary); }
.form-control, .form-textarea, .filter-form input[type="date"], .filter-form select, .form-group input[type="number"], .form-group input[type="file"], .form-group input[type="time"] { border-radius: 8px; background: #fbfcfe; }
.filter-form { border-radius: 10px; background: #fff; }
.flash-msg { border-radius: 9px; box-shadow: var(--shadow-sm); }

@media (max-width: 760px) {
    .login-body { padding: 16px; }
    .login-container { display: block; min-height: 0; }
    .login-panel { padding: 36px 28px; }
}

/* Las reglas históricas quedan aisladas para conservar estilos específicos
   (reportes e impresión) sin sobrescribir el sistema visual actual. */
@layer legacy {
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: inherit;
}

/* Login */
.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(5, 150, 105, 0.18), transparent 32%),
        linear-gradient(135deg, #08101f, #111c34 55%, #0b1220);
}

.login-bg-decorations,
.login-bg-decorations .circle {
    display: none;
}

.login-container {
    width: min(100%, 980px);
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.1fr minmax(360px, 420px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-brand-panel {
    padding: 56px;
    color: #e2e8f0;
    background:
        linear-gradient(160deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.02)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0;
    width: fit-content;
}

.login-brand-copy h1 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.05;
    margin: 22px 0 16px;
}

.login-brand-copy p {
    max-width: 44ch;
    color: #cbd5e1;
    font-size: 1rem;
}

.login-highlights {
    display: grid;
    gap: 16px;
}

.login-highlight {
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-highlight strong {
    display: block;
    color: #f8fafc;
    margin-bottom: 6px;
}

.login-highlight span {
    color: #cbd5e1;
    font-size: 0.92rem;
}

.login-panel {
    background: rgba(255, 255, 255, 0.96);
    padding: 56px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 28px;
}

.login-logo-container {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.22);
    margin-bottom: 18px;
}

.login-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-muted);
}

.login-form .form-group,
.form-group {
    margin-bottom: 18px;
}

.login-form label,
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-soft);
}

.input-wrapper input,
.form-control,
.form-textarea,
.filter-form input[type="date"],
.filter-form select,
.form-group input[type="number"],
.form-group input[type="file"],
.form-group input[type="time"] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    padding: 12px 14px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.input-wrapper input {
    padding-left: 42px;
}

.input-wrapper input:focus,
.form-control:focus,
.form-textarea:focus,
.filter-form input[type="date"]:focus,
.filter-form select:focus,
.form-group input[type="number"]:focus,
.form-group input[type="file"]:focus,
.form-group input[type="time"]:focus {
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.btn-login,
.btn-filter,
.btn-print,
.btn-select,
.btn-save,
.btn-save-asist,
.btn-import,
.btn-edit,
.btn-danger,
.btn-primary,
.btn-secondary {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-login,
.btn-filter,
.btn-select,
.btn-primary,
.btn-import {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.16);
}

.btn-login:hover,
.btn-filter:hover,
.btn-select:hover,
.btn-primary:hover,
.btn-import:hover,
.btn-save:hover,
.btn-save-asist:hover,
.btn-print:hover,
.btn-edit:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
}

.btn-print,
.btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.btn-save {
    background: var(--accent);
    color: #fff;
}

.btn-save-asist {
    background: var(--warning);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-edit {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.error-message,
.flash-msg {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.flash-msg {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Layout */
.dashboard-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
    background: linear-gradient(180deg, #08101d, #0f172a);
    color: #fff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    padding: 8px 10px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.sidebar-brand-copy h3 {
    font-size: 1rem;
    font-weight: 800;
}

.sidebar-brand-copy p {
    color: var(--sidebar-muted);
    font-size: 0.82rem;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--sidebar-muted);
    text-decoration: none;
    border: 1px solid transparent;
}

.sidebar-menu li.active a,
.sidebar-menu li a:hover {
    color: #fff;
    background: rgba(148, 163, 184, 0.08);
    border-color: var(--sidebar-border);
}

.sidebar-menu .logout {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-menu .logout a {
    color: #fecaca;
}

.main-content {
    padding: 28px;
}

.page-shell {
    max-width: 1400px;
    margin: 0 auto;
}

.page-header,
.report-header,
.header-action,
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.page-title h1,
.page-title h2,
.dashboard-header h2,
.report-header h2,
.header-action h2 {
    font-size: 1.9rem;
    margin-bottom: 6px;
}

.page-title p,
.dashboard-header p,
.report-header p,
.header-action p {
    color: var(--text-muted);
    max-width: 64ch;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.card,
.table-container,
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.card {
    padding: 22px;
}

.stat-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.stat-icon,
.selector-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
}

.admin-bg {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.asistencial-bg {
    background: linear-gradient(135deg, #d97706, #fbbf24);
}

.total-bg {
    background: linear-gradient(135deg, #059669, #34d399);
}

.big-number {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    margin: 6px 0 8px;
}

.metric-trend {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.metric-trend strong {
    color: var(--text);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.action-tile {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff, #f7faff);
    border: 1px solid var(--border);
    border-left: 4px solid #2457d6;
    border-radius: 14px;
    padding: 16px 14px 16px 16px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(25, 42, 70, .06);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.action-tile::after {
    content: "";
    position: absolute;
    inset: auto -28px -38px auto;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(36, 87, 214, .055);
    pointer-events: none;
}

.action-tile:hover {
    transform: translateY(-3px);
    border-color: #b9c9e5;
    box-shadow: 0 16px 32px rgba(25, 42, 70, .12);
}

.action-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #2457d6, #4f7df0);
    box-shadow: 0 10px 18px rgba(36, 87, 214, .18);
}

.action-copy {
    min-width: 0;
}

.action-copy strong {
    display: block;
    margin-bottom: 6px;
    color: #172033;
    font-size: .94rem;
    line-height: 1.25;
}

.action-copy small {
    display: block;
    color: var(--text-muted);
    font-size: .78rem;
    line-height: 1.45;
}

.action-arrow {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #6b7890;
    background: #eef3fa;
    transition: transform .18s ease, color .18s ease, background .18s ease;
}

.action-tile:hover .action-arrow {
    transform: translateX(3px);
    color: #fff;
    background: #2457d6;
}

.action-report {
    border-left-color: #0f8b6c;
}

.action-report .action-icon {
    background: linear-gradient(135deg, #0f8b6c, #21b38e);
    box-shadow: 0 10px 18px rgba(15, 139, 108, .18);
}

.action-schedule {
    border-left-color: #c47a10;
}

.action-schedule .action-icon {
    background: linear-gradient(135deg, #c47a10, #f0aa2f);
    box-shadow: 0 10px 18px rgba(196, 122, 16, .18);
}

.action-token {
    border-left-color: #6b4acb;
}

.action-token .action-icon {
    background: linear-gradient(135deg, #6b4acb, #8b6cf0);
    box-shadow: 0 10px 18px rgba(107, 74, 203, .18);
}

.table-container {
    padding: 22px;
    overflow-x: auto;
}

.section-heading,
.table-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

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

.data-table th,
.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #eaf0f7;
    text-align: left;
    vertical-align: top;
}

.compact-table th,
.compact-table td {
    padding: 10px 10px;
    font-size: 0.85rem;
}

.compact-table th {
    font-size: 0.74rem;
}

.report-compact-table th,
.report-compact-table td {
    padding: 8px 8px;
    font-size: 0.8rem;
}

.report-compact-table .time-tag {
    padding: 3px 7px;
    font-size: 0.76rem;
}

.print-report-header {
    display: none;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 12px;
}

.print-report-logo img {
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
}

.print-report-copy h1 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.print-report-copy p {
    font-size: 0.82rem;
    color: #334155;
    margin-bottom: 3px;
}

.print-report-header-row {
    display: none;
}

.print-report-header-row th {
    background: #fff !important;
    padding: 0 !important;
    border-bottom: none !important;
}

.print-signatures {
    display: none;
    justify-content: space-between;
    gap: 40px;
    margin-top: 24px;
    padding-top: 12px;
}

.signature-block {
    width: min(280px, 42%);
    text-align: center;
}

.signature-line {
    border-top: 1px solid #0f172a;
    margin-bottom: 6px;
    height: 18px;
}

.signature-block p {
    font-size: 0.82rem;
    color: #0f172a;
    margin: 0;
}

.data-table th {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--surface-soft);
}

.data-table tbody tr:hover {
    background: #f8fbff;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-admin {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-asistencial {
    background: #fef3c7;
    color: #b45309;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

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

.time-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.time-tag {
    padding: 5px 9px;
    border-radius: 10px;
    font-family: Consolas, monospace;
    font-size: 0.82rem;
    border: 1px solid var(--border);
}

.admin-tag {
    background: #eff6ff;
    color: #1d4ed8;
}

.asist-tag {
    background: #fffbeb;
    color: #b45309;
}

.status-ok,
.status-warning,
.text-muted {
    font-weight: 600;
}

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

.status-warning {
    color: var(--warning);
}

.status-late {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.72rem;
    font-weight: 700;
}

.status-valid-ref {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.72rem;
    font-weight: 700;
}

.status-none-ref {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
}

.text-muted {
    color: var(--text-muted);
}

.filter-form,
.toolbar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-form {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.lactancia-search-form {
    align-items: flex-end;
}

.search-input-wrap {
    position: relative;
    min-width: 360px;
}

.search-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-soft);
    transition: opacity .15s ease;
}

.search-input-wrap input {
    width: 100%;
    padding-left: 40px;
    transition: padding-left .15s ease;
}

.search-input-wrap:has(input:not(:placeholder-shown)) .search-input-icon {
    opacity: 0;
    pointer-events: none;
}

.search-input-wrap input:not(:placeholder-shown) {
    padding-left: 14px;
}

.lactancia-inline-form {
    gap: 10px;
    align-items: center;
}

.btn-save-inline {
    padding: 8px 12px;
    font-size: 0.82rem;
}

.filter-group {
    min-width: 180px;
}

.filter-form .filter-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.filter-form .filter-group input[type="text"],
.filter-form .filter-group input[type="date"],
.filter-form .filter-group select {
    min-height: 44px;
    border-radius: 12px;
    background: #fff;
}

.report-header .filter-form,
.lactancia-search-form {
    box-shadow: var(--shadow-sm);
}

.report-header {
    display: block;
}

.report-header .filter-form {
    width: 100%;
}

.report-header .filter-group {
    min-width: 170px;
}

.report-header .filter-group:last-of-type {
    min-width: 260px;
}

.report-header .filter-group input[name="employee_search"] {
    min-width: 260px;
}

.tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 14px;
    background: #eaf0f7;
    margin-bottom: 18px;
}

.tab-link {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 10px 14px;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.tab-link.active {
    background: #fff;
    color: var(--text);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.tab-content {
    display: none;
}

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

.hero-panel {
    display: grid;
    grid-template-columns: 1.3fr minmax(280px, 360px);
    gap: 18px;
    margin-bottom: 24px;
}

.hero-card {
    padding: 28px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.mini-metric {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

.mini-metric strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.import-card h3,
.schedule-selector h3 {
    margin-bottom: 8px;
}

.import-card p,
.schedule-selector p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.schedule-selector {
    text-align: left;
}

.form-card {
    max-width: 980px;
}

.config-logo-preview {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.config-logo-preview img {
    max-width: 180px;
    max-height: 80px;
    display: block;
}

.settings-section {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    padding: 22px;
}

.settings-section + .settings-section {
    margin-top: 2px;
}

.settings-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.settings-section-head h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.settings-section-head p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.settings-branding input[type="text"],
.settings-branding textarea,
.settings-branding input[type="file"],
.settings-section input[type="number"] {
    min-height: 48px;
    border-radius: 14px;
    background: #fff;
}

.form-textarea {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    line-height: 1.45;
}

.form-textarea-lg {
    min-height: 140px;
}

.branding-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 360px);
    gap: 18px;
    align-items: start;
}

.branding-form {
    display: grid;
    gap: 2px;
}

.branding-preview-card {
    border: 1px solid var(--border);
    background: #f8fafc;
    border-radius: 18px;
    padding: 16px;
}

.branding-preview-label {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.branding-preview-sheet {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    min-height: 190px;
}

.branding-preview-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.branding-preview-logo {
    width: 82px;
    height: 82px;
    border-radius: 14px;
    border: 1px solid #dbe3ef;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.branding-preview-logo.is-empty {
    background: #f8fafc;
    color: #94a3b8;
    font-size: 1.4rem;
}

.branding-preview-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.branding-preview-copy h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #0f172a;
}

.branding-preview-copy p {
    font-size: 0.82rem;
    color: #475569;
    margin-bottom: 4px;
}

.form-section {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.no-data {
    padding: 28px !important;
    text-align: center;
    color: var(--text-muted);
}

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

    .sidebar {
        position: static;
        height: auto;
    }

    .hero-panel,
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        display: none;
    }
}

@media (max-width: 720px) {
    .main-content {
        padding: 18px;
    }

    .page-title h1,
    .page-title h2,
    .dashboard-header h2,
    .report-header h2,
    .header-action h2 {
        font-size: 1.5rem;
    }

    .tabs {
        display: flex;
        width: 100%;
    }

    .tab-link {
        flex: 1;
        padding-inline: 10px;
    }

    .branding-grid {
        grid-template-columns: 1fr;
    }

    .filter-form {
        padding: 12px;
    }

    .filter-group,
    .search-input-wrap,
    .report-header .filter-group:last-of-type,
    .report-header .filter-group input[name="employee_search"] {
        min-width: 100%;
    }
}

/* Tablas compactas y paginación global */
.data-table:not(.report-compact-table) th,
.data-table:not(.report-compact-table) td {
    padding: 8px 10px;
    font-size: clamp(.7rem, .66rem + .12vw, .8rem);
    line-height: 1.3;
}
.data-table td { overflow-wrap: anywhere; }
.data-table tr[hidden] { display: none !important; }
.table-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 18px; border-top:1px solid var(--border); background:#fafbfd; }
.pagination-info { color:var(--text-muted); font-size:.72rem; }
.pagination-controls { display:flex; align-items:center; gap:8px; }
.pagination-button { width:30px; height:30px; display:grid; place-items:center; border:1px solid var(--border); border-radius:6px; color:var(--text); background:#fff; cursor:pointer; }
.pagination-button:disabled { opacity:.4; cursor:not-allowed; }
.pagination-page { min-width:48px; color:var(--text-muted); font-size:.72rem; text-align:center; }
.manual-employee-card { margin-bottom:24px; }
.manual-employee-form { display:grid; grid-template-columns:minmax(130px,.7fr) minmax(240px,1.6fr) minmax(170px,.8fr) auto; gap:14px; align-items:end; }
.manual-employee-form .form-group { margin:0; }
.manual-employee-form input, .manual-employee-form select { width:100%; height:42px; padding:9px 11px; border:1px solid var(--border); border-radius:8px; background:#fbfcfe; font:inherit; }
.manual-employee-form button { height:42px; }
@media(max-width:900px){.manual-employee-form{grid-template-columns:1fr 1fr}.manual-employee-form button{width:100%}}
@media(max-width:560px){.manual-employee-form{grid-template-columns:1fr}.table-pagination{padding:10px 12px}.pagination-info{font-size:.66rem}}
.row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.row-actions form{margin:0}.row-actions .btn-edit,.row-actions .btn-danger{padding:6px 9px;font-size:.72rem}
.confirm-dialog{width:min(92vw,420px);padding:28px;border:0;border-radius:14px;color:var(--text);background:#fff;box-shadow:0 24px 80px rgba(15,23,42,.28);text-align:center}.confirm-dialog::backdrop{background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}.confirm-dialog-icon{width:52px;height:52px;margin:0 auto 16px;display:grid;place-items:center;border-radius:50%;color:#b42318;background:#fee4e2;font-size:1.2rem}.confirm-dialog h3{margin-bottom:8px;font-size:1.15rem}.confirm-dialog p{color:var(--text-muted);font-size:.88rem;line-height:1.55}.confirm-dialog-actions{display:flex;justify-content:center;gap:10px;margin-top:24px}.password-help{margin:-8px 0 18px;color:var(--text-muted);font-size:.74rem}.checkbox-row{display:flex;align-items:center;gap:9px;margin-bottom:20px;font-size:.86rem}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    background: #fbfcfe;
    font: inherit;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
    border-color: rgba(36,87,214,.62);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(36,87,214,.1);
}
.form-group small {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: .72rem;
}
.user-edit-card {
    max-width: 980px;
    padding: 0;
    overflow: hidden;
}
.user-edit-form {
    gap: 0;
}
.user-edit-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #e5ebf3;
    background: #fbfcfe;
}
.user-summary-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.user-summary-main span {
    display: block;
    margin-bottom: 2px;
    color: #2457d6;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.user-edit-summary h3 {
    margin: 0;
    color: #172033;
    font-size: 1.05rem;
    line-height: 1.2;
}
.user-avatar-large {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
    color: #1c4fc4;
    background: #eaf0ff;
    font-size: .95rem;
}
.user-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}
.user-status-pill.is-current {
    color: #08775d;
    background: #e8f7f2;
}
.user-status-pill.is-pending {
    color: #9a5700;
    background: #fff4dc;
}
.user-edit-section {
    padding: 22px;
    border-bottom: 1px solid #edf1f6;
}
.section-mini-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.section-mini-head h3 {
    margin: 0;
    color: #263247;
    font-size: .92rem;
}
.section-mini-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: .73rem;
}
.user-edit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.user-password-field {
    max-width: none;
    margin-bottom: 0;
}
.user-security-section .user-password-field {
    max-width: 620px;
}
.compact-password-wrap input {
    padding-left: 42px;
    padding-right: 48px;
}
.user-permission-fieldset {
    margin: 0;
    padding: 20px 22px 22px;
    border: 0;
    border-bottom: 1px solid #edf1f6;
    border-radius: 0;
}
.user-permission-fieldset legend {
    margin-left: 0;
    padding: 0;
    color: #263247;
    font-size: .92rem;
}
.user-permission-fieldset .permission-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.user-permission-fieldset .permission-grid label {
    min-height: 40px;
    padding: 9px 11px;
    background: #fff;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.user-permission-fieldset .permission-grid label:has(input:checked) {
    border-color: #a9bee8;
    background: #f2f6ff;
    box-shadow: inset 3px 0 #2457d6;
}
.user-permission-fieldset .permission-grid label:hover {
    border-color: #c5d2e3;
    background: #f8fbff;
}
.user-edit-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px 22px;
    flex-wrap: wrap;
    background: #fff;
}
.user-edit-footer .checkbox-row {
    margin: 0;
}
.user-edit-footer .toolbar-actions {
    margin-left: auto;
}
.text-muted {
    color: var(--text-muted);
    font-weight: 500;
}
@media(max-width:760px){
    .user-edit-card{max-width:none}
    .user-edit-summary{align-items:flex-start;flex-direction:column}
    .section-mini-head{align-items:flex-start;flex-direction:column;gap:4px}
    .user-edit-grid{grid-template-columns:1fr}
    .user-permission-fieldset .permission-grid{grid-template-columns:1fr}
    .user-password-field{max-width:none}
    .user-edit-footer .toolbar-actions,.user-edit-footer .btn-save{width:100%}
}

@media print {
    @page {
        size: auto;
        margin: 14mm 8mm 10mm 8mm;
    }

    .sidebar,
    .filter-form,
    .btn-print,
    .tabs,
    .quick-actions {
        display: none !important;
    }

    .dashboard-container {
        display: block;
    }

    .main-content {
        padding: 0;
    }

    .page-shell {
        max-width: none;
    }

    .tab-content {
        display: block !important;
        margin-bottom: 0;
    }

    body.print-mode .tab-content {
        display: none !important;
    }

    body.print-mode .tab-content.print-target {
        display: block !important;
        margin-top: -6mm;
    }

    body.print-mode .report-row.print-hidden {
        display: none !important;
    }

    body.print-mode .print-report-header {
        display: flex !important;
    }

    body.print-mode .print-signatures {
        display: flex !important;
    }

    body.print-mode .print-report-header-row {
        display: table-row !important;
    }

    body.print-mode .data-table thead {
        display: table-header-group;
    }

    body.print-mode .print-report-header-row th {
        padding-top: 0 !important;
    }

    .table-container {
        padding: 0;
        overflow: visible;
    }

    .print-report-header {
        gap: 10px;
        margin-top: 0;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .print-report-logo img {
        max-width: 58px;
        max-height: 58px;
    }

    .print-report-copy h1 {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }

    .print-report-copy p {
        font-size: 0.68rem;
        margin-bottom: 1px;
        line-height: 1.2;
    }

    .data-table th,
    .data-table td,
    .compact-table th,
    .compact-table td,
    .report-compact-table th,
    .report-compact-table td {
        padding: 3px 4px;
        font-size: 0.62rem;
        line-height: 1.15;
    }

    .data-table th {
        font-size: 0.58rem;
    }

    .time-tags {
        gap: 2px;
    }

    .time-tag,
    .report-compact-table .time-tag {
        padding: 1px 4px;
        font-size: 0.58rem;
        border-radius: 6px;
    }

    .status-ok,
    .status-warning,
    .text-muted {
        font-size: 0.6rem;
    }

    .print-signatures {
        margin-top: 18px;
        padding-top: 8px;
    }

    body.print-mode .tab-content.print-target.single-page-report .print-signatures {
        margin-top: 72px;
    }

    body.print-mode .tab-content.print-target.multi-page-report .print-signatures {
        margin-top: 72px;
    }

    .signature-line {
        height: 14px;
        margin-bottom: 4px;
    }

    .signature-block p {
        font-size: 0.62rem;
    }

    .data-table tr {
        page-break-inside: avoid;
    }

    .table-container,
    .card,
    .panel {
        box-shadow: none;
        border: 1px solid #d1d5db;
    }
}
}

@media (max-width: 920px) {
    .dashboard-container { display: block; }
    .sidebar { position: relative; width: 100%; height: auto; padding: 14px 18px; gap: 12px; }
    .sidebar-header { padding: 0 0 12px; }
    .sidebar-section-label { display: none; }
    .sidebar-menu { display: flex; flex-direction: row; overflow-x: auto; padding-bottom: 2px; }
    .sidebar-menu li { flex: 0 0 auto; }
    .sidebar-menu li a { min-height: 40px; white-space: nowrap; }
    .sidebar-menu .logout { margin: 0 0 0 auto; padding: 0 0 0 8px; border: 0; }
    .main-content { padding: 24px 18px; }
}

@media (max-width: 560px) {
    .sidebar-brand-copy p { display: none; }
    .sidebar-menu li a { font-size: 0; gap: 0; }
    .sidebar-menu li a i { font-size: .95rem; }
    .sidebar-menu .logout { margin-left: 0; }
    .page-title h1, .page-title h2, .dashboard-header h2, .report-header h2, .header-action h2 { font-size: 1.5rem; }
    .card { padding: 18px; }
    .data-table th, .data-table td { padding: 11px 13px; }
}

/* Tabla de resultados de asistencia */
.report-compact-table {
    width: 100%;
    table-layout: auto;
    font-variant-numeric: tabular-nums;
}
.report-compact-table th,
.report-compact-table td {
    padding: 7px 9px;
    font-size: clamp(.68rem, .63rem + .14vw, .78rem);
    line-height: 1.25;
    vertical-align: middle;
}
.report-compact-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: 8px;
    padding-bottom: 8px;
    color: #596579;
    background: #f3f6fa;
    letter-spacing: .055em;
    white-space: nowrap;
}
.report-compact-table tbody tr { transition: background-color .14s ease; }
.report-compact-table tbody tr:nth-child(even) { background: #fbfcfe; }
.report-compact-table tbody tr:hover { background: #f1f5fb; }
.report-compact-table td:nth-child(1),
.report-compact-table td:nth-child(2),
.report-compact-table td:nth-child(3),
.report-compact-table td:nth-child(6) { white-space: nowrap; }
.report-compact-table td:nth-child(4) {
    min-width: 140px;
    max-width: 230px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.report-compact-table td:nth-child(5) { min-width: 150px; }
.report-compact-table .time-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48px, max-content));
    gap: 3px;
    min-width: 0;
}
.report-compact-table .time-tag {
    padding: 2px 5px;
    border-radius: 4px;
    font-size: clamp(.64rem, .6rem + .12vw, .72rem);
    line-height: 1.25;
    white-space: nowrap;
}
.attendance-flag {
    display: inline-flex;
    align-items: center;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .025em;
    white-space: nowrap;
}
.flag-absent { color: #b42318; background: #fee4e2; }
.flag-late { color: #9a5700; background: #fff1d6; }
.report-compact-table .status-ok,
.report-compact-table .status-warning,
.report-compact-table .text-muted { font-size: inherit; white-space: nowrap; }
.report-compact-table .status-late,
.report-compact-table .status-valid-ref,
.report-compact-table .status-none-ref {
    margin: 1px 2px 1px 0;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: .62rem;
}
.report-compact-table .status-late-row { box-shadow: inset 3px 0 #ef4444; }

@media (max-width: 720px) {
    .report-compact-table th,
    .report-compact-table td { padding: 6px 7px; font-size: .66rem; }
    .report-compact-table td:nth-child(4) { min-width: 118px; max-width: 170px; }
    .report-compact-table .time-tags { grid-template-columns: repeat(2, max-content); min-width: 104px; }
}

.login-logo-container:has(.login-custom-logo){width:88px;height:64px;padding:6px;background:#fff;border:1px solid var(--border)}
.login-custom-logo{display:block;width:100%;height:100%;object-fit:contain}
.logo-settings-card{display:grid;grid-template-columns:minmax(220px,340px) 1fr;gap:32px;align-items:center;max-width:820px}
.logo-settings-preview{min-height:220px;display:grid;place-items:center;padding:24px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc}
.logo-settings-preview img{max-width:100%;max-height:180px;object-fit:contain}
.logo-settings-preview.is-empty{align-content:center;gap:10px;color:var(--text-soft)}
.logo-settings-preview.is-empty i{font-size:2rem}
.logo-settings-form{display:grid;gap:16px}.logo-settings-form small{display:block;margin-top:7px;color:var(--text-muted)}
@media(max-width:700px){.logo-settings-card{grid-template-columns:1fr}}
.permission-fieldset{margin:22px 0;padding:18px;border:1px solid var(--border);border-radius:10px}.permission-fieldset legend{padding:0 8px;font-size:.82rem;font-weight:700}.fieldset-help{margin:0 0 12px;color:var(--text-muted);font-size:.75rem;line-height:1.45}.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.permission-grid label{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:#fafbfd;font-size:.8rem;cursor:pointer}.permission-grid input{accent-color:var(--primary)}
.login-reference-body{min-height:100dvh;padding:clamp(20px,4vh,48px) 18px;overflow-y:auto;background:radial-gradient(circle at 50% 18%,rgba(255,255,255,.58) 0,rgba(229,237,248,.72) 34%,rgba(194,207,226,.88) 68%),linear-gradient(135deg,#d2dce9 0%,#b8c5d8 100%)}
.secure-login-card{position:relative;width:clamp(410px,30vw,458px);max-width:100%;overflow:hidden;padding:22px 30px 18px;border:1px solid rgba(26,48,86,.09);border-radius:17px;background:#fff;box-shadow:0 25px 65px rgba(28,48,78,.17)}
.secure-login-accent{position:absolute;inset:0 0 auto;height:7px;background:linear-gradient(90deg,#1d5bd8,#18a9b1 47%,#24b66e 70%,#f2a800)}
.secure-login-badge{display:flex;align-items:center;gap:8px;margin-bottom:11px;padding:8px 13px;border-radius:999px;color:#2457b8;background:#edf3ff;font-size:.7rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.secure-login-header h1{margin:0;font-size:1.52rem;letter-spacing:-.04em;text-transform:uppercase}.secure-login-header p{margin:10px 0 0;padding:10px 14px;border:1px solid #cfe0f4;border-radius:10px;color:#55708f;background:linear-gradient(135deg,#f6f9ff,#eef9fc);font-size:.78rem}
.secure-brand-strip{height:58px;margin:10px 0 15px;display:grid;grid-template-columns:72px 1px minmax(150px,1fr);align-items:center;justify-items:center;gap:15px;padding:7px 18px;border:1px solid #e5e9f0;border-radius:10px;background:linear-gradient(180deg,#fff,#fbfcfe);box-shadow:0 7px 18px rgba(31,51,82,.08)}.secure-brand-strip img{display:block;object-fit:contain;filter:drop-shadow(0 4px 5px rgba(15,23,42,.2));transition:transform .25s,filter .25s}.secure-brand-strip img:hover{transform:translateY(-2px) scale(1.07);filter:drop-shadow(0 7px 8px rgba(15,23,42,.25))}.secure-brand-rsy{width:43px;height:43px}.secure-brand-main{width:100%;max-width:170px;height:42px}.secure-brand-divider{width:1px;height:34px;background:#e1e6ed}.secure-brand-text{color:#2457d6}
.secure-login-form .form-group{margin-bottom:13px}.secure-login-form label{margin-bottom:6px;font-size:.7rem;letter-spacing:.06em;text-transform:uppercase}.secure-input-wrap{position:relative}.secure-input-wrap>i{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#98a7ba}.secure-input-wrap input{width:100%;height:48px;padding:10px 46px;border:1px solid #dce3ed;border-radius:10px;background:#fbfcfe;font:inherit;outline:0}.secure-input-wrap input:focus{border-color:#7ca3ee;box-shadow:0 0 0 4px rgba(36,87,214,.1)}.secure-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;border-radius:7px;color:#8190a5;background:transparent;cursor:pointer}
.secure-login-button{width:100%;height:43px;margin-top:2px;display:flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:10px;color:#fff;background:linear-gradient(90deg,#1760dc,#1749c7);box-shadow:0 9px 20px rgba(28,83,204,.22);font:inherit;font-size:.82rem;font-weight:800;text-transform:uppercase;cursor:pointer;transition:.18s}.secure-login-button:hover{transform:translateY(-2px);box-shadow:0 13px 25px rgba(28,83,204,.29)}.secure-login-error{margin-bottom:12px;font-size:.74rem}
.footer-login{margin-top:16px;padding-top:12px;border-top:1px solid #e5e9f0;text-align:center}.creditos{margin:0;color:#7c8797;font-size:.68rem;line-height:1.65}.btn-footer{display:inline-block;margin-top:1px;color:#a16a00;font-size:.78rem;font-weight:800;text-decoration:none;transform-origin:center;transition:transform .22s ease,color .22s ease,text-shadow .22s ease}.btn-footer:hover,.btn-footer:focus-visible{color:#2457d6;transform:scale(1.1);text-shadow:0 5px 12px rgba(36,87,214,.22);outline:none}.app-footer{margin-top:32px;padding:17px 0 4px;border-top:1px solid var(--border);color:var(--text-muted);font-size:.7rem;text-align:center}.app-footer a{display:inline-block;color:var(--primary);font-size:.76rem;font-weight:700;text-decoration:none;transition:transform .2s ease,color .2s ease}.app-footer a:hover,.app-footer a:focus-visible{color:var(--primary-strong);transform:scale(1.08);outline:none}
@media(min-width:1800px){.secure-login-card{width:480px}.secure-login-header h1{font-size:1.75rem}.secure-input-wrap input{height:54px}}
@media(max-width:600px){.login-reference-body{padding:16px 12px;background:linear-gradient(180deg,#d7e0ec,#c2cede)}.secure-login-card{width:100%;max-width:430px;padding:28px 22px 20px;border-radius:15px;box-shadow:0 18px 48px rgba(28,48,78,.15)}.secure-login-badge,.secure-brand-strip,.secure-login-header p{display:none}.secure-login-header{margin:6px 0 24px;text-align:center}.secure-login-header h1{font-size:clamp(1.3rem,7vw,1.55rem)}.secure-input-wrap input{height:50px}.secure-login-button{height:48px}.footer-login{margin-top:20px}}
@media(max-width:360px){.secure-login-card{padding:25px 16px 18px}.secure-login-header h1{font-size:1.22rem}.creditos{font-size:.64rem}}
@media(max-height:650px) and (min-width:601px){.login-reference-body{padding:14px}.secure-login-card{padding-top:20px;padding-bottom:18px}.secure-brand-strip{height:56px;margin-bottom:12px}.secure-login-form .form-group{margin-bottom:12px}.footer-login{margin-top:14px;padding-top:10px}}

/* Acabado profesional del panel administrativo */
.dashboard-container{background:#f3f6fa}.sidebar{background:linear-gradient(180deg,#15223b 0%,#182944 100%);box-shadow:8px 0 28px rgba(16,29,50,.08)}
.sidebar-header{margin-bottom:2px}.sidebar-brand-mark{position:relative;overflow:hidden}.sidebar-brand-mark::after{content:"";position:absolute;inset:auto -8px -9px auto;width:24px;height:24px;border-radius:50%;background:rgba(36,87,214,.14)}
.sidebar-menu li a{position:relative}.sidebar-menu li.active a::before{content:"";position:absolute;left:-14px;top:9px;bottom:9px;width:3px;border-radius:0 4px 4px 0;background:#8fb0ff}.sidebar-menu li:not(.active):not(.logout) a:hover{transform:translateX(3px)}
.sidebar-user{display:flex;align-items:center;gap:10px;margin-top:auto;padding:14px 9px 10px;border-top:1px solid rgba(255,255,255,.09)}.sidebar-user-avatar{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;color:#17305f;background:#dce7ff;font-size:.78rem;font-weight:800}.sidebar-user-copy{min-width:0}.sidebar-user-copy strong,.sidebar-user-copy span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user-copy strong{color:#f8fafc;font-size:.76rem}.sidebar-user-copy span{margin-top:2px;color:#8797b0;font-size:.64rem}.sidebar-menu .logout{margin-top:0;padding-top:4px}.sidebar-menu .logout a{min-height:38px;font-size:.78rem}
.main-content{background:radial-gradient(circle at 100% 0,rgba(36,87,214,.035),transparent 28%),#f3f6fa}.page-shell{min-height:calc(100vh - 68px)}
.page-title h1,.page-title h2,.dashboard-header h2,.report-header h2,.header-action h2{color:#172033;font-weight:750}.page-title p,.dashboard-header p,.report-header p,.header-action p{line-height:1.6}
.card,.table-container,.panel{border-color:#e2e7ef;background:rgba(255,255,255,.98)}.card{transition:border-color .18s ease,box-shadow .18s ease}.card:hover{border-color:#d7deea;box-shadow:0 10px 30px rgba(26,42,70,.07)}
.stat-card{position:relative;overflow:hidden}.stat-card::after{content:"";position:absolute;right:-24px;bottom:-35px;width:92px;height:92px;border-radius:50%;background:linear-gradient(145deg,transparent,rgba(36,87,214,.035))}.stat-info h3{color:#445065;font-size:.8rem;font-weight:650}.big-number{color:#172033;letter-spacing:-.05em}
.hero-card{border-top:3px solid #dce6fb}.action-tile i{font-size:1rem}.action-tile .action-icon i{color:#fff}.action-tile .action-arrow i{color:inherit;font-size:.82rem}.action-tile h3{color:#263247}.action-tile p{line-height:1.55}
.table-header h3,.section-heading h3{color:#263247;font-size:.98rem}.table-header .text-muted{font-size:.76rem;font-weight:400}.data-table{font-variant-numeric:tabular-nums}.data-table th{border-top:1px solid #edf0f5;border-bottom-color:#dfe5ee}.data-table td{color:#374151}.data-table tbody tr{transition:background-color .13s ease}.data-table tbody tr:hover{background:#f4f7fc}.data-table tbody td:first-child{color:#24324a}
.tabs{display:flex;gap:5px;margin-bottom:12px;padding:5px;width:max-content;max-width:100%;overflow-x:auto;border:1px solid var(--border);border-radius:10px;background:#e9eef5}.tab-link{min-height:36px;padding:8px 14px!important;border:0!important;border-radius:7px!important;color:#657084!important;background:transparent!important;font-size:.76rem;font-weight:650;white-space:nowrap}.tab-link:hover{color:#263247!important;background:rgba(255,255,255,.55)!important}.tab-link.active{color:#1f51c6!important;background:#fff!important;box-shadow:0 2px 8px rgba(23,32,51,.08)}
.form-card{max-width:1100px}.form-group label,.filter-group label{color:#465166;font-size:.76rem}.form-group input:not([type=checkbox]),.form-group select,.form-control,.form-textarea,.filter-form input,.filter-form select{min-height:41px;border-color:#dce3ec;background:#fbfcfe}.form-group input:hover,.form-control:hover,.form-textarea:hover{border-color:#c8d2e0}.filter-form{box-shadow:0 5px 16px rgba(24,39,65,.035)}
.btn-primary,.btn-save,.btn-filter,.btn-import,.btn-select{box-shadow:0 6px 14px rgba(36,87,214,.13)}.btn-danger{background:#c93b35}.btn-danger:hover{background:#b62f2a}.btn-secondary,.btn-edit{background:#fff}.badge{letter-spacing:.01em}.flash-msg{position:relative;padding-left:42px}.flash-msg::before{content:"\f058";position:absolute;left:16px;font-family:"Font Awesome 6 Free";font-weight:900}
.app-footer{color:#8a95a6}.app-footer::before{content:"";display:block;width:38px;height:2px;margin:0 auto 12px;border-radius:2px;background:linear-gradient(90deg,#2457d6,#22a889)}
@media(max-width:920px){.sidebar{box-shadow:0 8px 25px rgba(16,29,50,.12)}.sidebar-user{margin-top:0;padding:3px 8px;border:0}.sidebar-user-copy{display:none}.sidebar-menu li.active a::before{display:none}}
@media(max-width:560px){.main-content{padding:20px 12px}.page-header,.report-header,.header-action,.dashboard-header{margin-bottom:18px}.card-grid{gap:12px}.tabs{width:100%}.tab-link{flex:1}.sidebar-user{display:none}.table-header{padding:16px 15px 0}}
.logo-management-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.logo-manager-card{display:flex;flex-direction:column;gap:18px}.logo-manager-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.logo-manager-head h3{margin-bottom:5px;font-size:1rem}.logo-manager-head p{max-width:40ch;color:var(--text-muted);font-size:.76rem;line-height:1.5}.logo-manager-card .logo-settings-preview{min-height:180px}.logo-manager-card .logo-settings-preview img{max-height:145px}.logo-upload-form{display:grid;gap:12px}.logo-upload-form .form-group{margin:0}.logo-upload-form small{display:block;margin-top:6px;color:var(--text-muted);font-size:.7rem}@media(max-width:820px){.logo-management-grid{grid-template-columns:1fr}}
.password-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 0,rgba(36,87,214,.09),transparent 35%),#f2f5f9}
.password-card{width:min(100%,460px);padding:42px 44px;background:#fff;border:1px solid rgba(23,32,51,.09);border-radius:18px;box-shadow:0 24px 70px rgba(23,32,51,.13)}
.password-card-head{text-align:center;margin-bottom:28px}.password-security-icon{width:58px;height:58px;margin:0 auto 18px;display:grid;place-items:center;border-radius:16px;color:#fff;background:linear-gradient(145deg,var(--primary),#4678ed);box-shadow:0 12px 24px rgba(36,87,214,.22);font-size:1.35rem}.password-card-head .login-eyebrow{margin-bottom:7px}.password-card-head h1{margin:0 0 9px;font-size:1.65rem;letter-spacing:-.035em}.password-card-head p{margin:0 auto;max-width:34ch;color:var(--text-muted);font-size:.84rem;line-height:1.55}.password-error{font-size:.8rem}.password-form .form-group{margin-bottom:16px}.password-input-wrap{position:relative}.password-input-wrap input{width:100%;height:48px;padding:11px 46px 11px 42px;border:1px solid var(--border);border-radius:9px;background:#fbfcfe;font:inherit;outline:none}.password-input-wrap input:focus{border-color:rgba(36,87,214,.65);box-shadow:0 0 0 4px rgba(36,87,214,.1)}.password-field-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--text-soft);font-size:.85rem}.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:7px;color:var(--text-muted);background:transparent;cursor:pointer}.password-toggle:hover{color:var(--primary);background:#eef3ff}.password-requirements{margin:20px 0;padding:16px 18px;border:1px solid var(--border);border-radius:10px;background:#f8fafc}.password-requirements strong{display:block;margin-bottom:10px;font-size:.76rem}.password-requirements ul{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:0;padding:0;list-style:none}.password-requirements li{display:flex;align-items:center;gap:7px;color:var(--text-muted);font-size:.7rem}.password-requirements li i{color:#c5ccd6;font-size:.68rem}.password-requirements li.is-valid{color:#08775d}.password-requirements li.is-valid i{color:#12a47e}.password-submit{margin-top:0}.password-logout{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:22px;color:var(--text-muted);font-size:.74rem;text-decoration:none}.password-logout:hover{color:var(--text)}@media(max-width:520px){.password-page{padding:14px}.password-card{padding:32px 24px}.password-requirements ul{grid-template-columns:1fr}}
.login-stage{width:min(100%,1040px);display:grid;grid-template-columns:minmax(150px,230px) minmax(340px,440px) minmax(190px,280px);align-items:center;justify-content:center;gap:34px}.login-stage .login-container{width:100%;position:relative;z-index:2}.login-side-brand{position:relative;display:grid;place-items:center;min-height:190px;padding:20px;border:1px solid rgba(255,255,255,.75);border-radius:24px;background:rgba(255,255,255,.68);box-shadow:0 18px 45px rgba(23,32,51,.14);backdrop-filter:blur(10px);transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease,background .35s ease}.login-side-brand::after{content:"";position:absolute;inset:12px;border:1px solid rgba(36,87,214,.08);border-radius:17px;pointer-events:none}.login-side-brand img{position:relative;z-index:1;display:block;max-width:100%;max-height:170px;object-fit:contain;filter:drop-shadow(0 10px 14px rgba(15,23,42,.18));transition:transform .4s cubic-bezier(.2,.8,.2,1),filter .35s ease}.login-side-brand-left{animation:brandFloatLeft 5s ease-in-out infinite}.login-side-brand-right{animation:brandFloatRight 5.6s ease-in-out infinite}.login-side-brand-right img{width:100%;max-height:130px}.login-side-brand:hover{transform:translateY(-10px) scale(1.04) rotate(-1deg);background:rgba(255,255,255,.94);box-shadow:0 28px 65px rgba(23,32,51,.23)}.login-side-brand-right:hover{transform:translateY(-10px) scale(1.04) rotate(1deg)}.login-side-brand:hover img{transform:scale(1.06);filter:drop-shadow(0 16px 18px rgba(15,23,42,.25))}@keyframes brandFloatLeft{0%,100%{translate:0 0}50%{translate:0 -7px}}@keyframes brandFloatRight{0%,100%{translate:0 -4px}50%{translate:0 5px}}@media(max-width:940px){.login-stage{grid-template-columns:110px minmax(330px,440px) 150px;gap:18px}.login-side-brand{min-height:140px;padding:14px;border-radius:18px}.login-side-brand img{max-height:120px}}@media(max-width:700px){.login-stage{display:flex;flex-wrap:wrap;gap:14px}.login-stage .login-container{order:2;flex:0 0 100%}.login-side-brand{order:1;width:calc(50% - 7px);min-height:100px;padding:10px}.login-side-brand img{max-height:80px}.login-side-brand-right img{max-height:65px}}@media(prefers-reduced-motion:reduce){.login-side-brand{animation:none;transition:none}.login-side-brand img{transition:none}}

/* Pantalla de edicion de usuarios */
.form-card.user-edit-card{max-width:980px;padding:0;overflow:hidden}
.user-edit-card .user-edit-form{gap:0}
.user-edit-card .user-edit-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid #e5ebf3;background:#fbfcfe}
.user-edit-card .user-summary-main{display:flex;align-items:center;gap:12px;min-width:0}
.user-edit-card .user-summary-main span{display:block;margin-bottom:2px;color:#2457d6;font-size:.68rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.user-edit-card .user-edit-summary h3{margin:0;color:#172033;font-size:1.05rem;line-height:1.2}
.user-edit-card .user-avatar-large{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;color:#1c4fc4;background:#eaf0ff;font-size:.95rem}
.user-edit-card .user-status-pill{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:6px 10px;border-radius:999px;font-size:.72rem;font-weight:700;white-space:nowrap}
.user-edit-card .user-status-pill.is-current{color:#08775d;background:#e8f7f2}
.user-edit-card .user-status-pill.is-pending{color:#9a5700;background:#fff4dc}
.user-edit-card .user-edit-section{padding:22px;border-bottom:1px solid #edf1f6}
.user-edit-card .section-mini-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}
.user-edit-card .section-mini-head h3{margin:0;color:#263247;font-size:.92rem}
.user-edit-card .section-mini-head p{margin:0;color:var(--text-muted);font-size:.73rem}
.user-edit-card .user-edit-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.user-edit-card .user-security-section .user-password-field{max-width:620px;margin-bottom:0}
.user-edit-card .compact-password-wrap input{padding-left:42px;padding-right:48px}
.user-edit-card .user-permission-fieldset{margin:0;padding:20px 22px 22px;border:0;border-bottom:1px solid #edf1f6;border-radius:0}
.user-edit-card .user-permission-fieldset legend{margin-left:0;padding:0;color:#263247;font-size:.92rem}
.user-edit-card .user-permission-fieldset .permission-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.user-edit-card .user-permission-fieldset .permission-grid label{min-height:40px;padding:9px 11px;background:#fff}
.user-edit-card .user-permission-fieldset .permission-grid label:has(input:checked){border-color:#a9bee8;background:#f2f6ff;box-shadow:inset 3px 0 #2457d6}
.user-edit-card .user-edit-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px 22px;flex-wrap:wrap;background:#fff}
.user-edit-card .user-edit-footer .checkbox-row{margin:0}
.user-edit-card .user-edit-footer .toolbar-actions{margin-left:auto}
@media(max-width:760px){.form-card.user-edit-card{max-width:none}.user-edit-card .user-edit-summary{align-items:flex-start;flex-direction:column}.user-edit-card .section-mini-head{align-items:flex-start;flex-direction:column;gap:4px}.user-edit-card .user-edit-grid,.user-edit-card .user-permission-fieldset .permission-grid{grid-template-columns:1fr}.user-edit-card .user-password-field{max-width:none}.user-edit-card .user-edit-footer .toolbar-actions,.user-edit-card .user-edit-footer .btn-save{width:100%}}

/* Controles administrativos mas visibles */
.dashboard-container .form-group input:not([type="checkbox"]):not([type="radio"]),
.dashboard-container .form-group select,
.dashboard-container .form-control,
.dashboard-container .form-textarea,
.dashboard-container textarea,
.dashboard-container .filter-form input,
.dashboard-container .filter-form select,
.dashboard-container .manual-employee-form input,
.dashboard-container .manual-employee-form select,
.dashboard-container .form-input-sm,
.dashboard-container input[type="date"],
.dashboard-container input[type="time"],
.dashboard-container input[type="number"],
.dashboard-container input[type="text"],
.dashboard-container input[type="password"],
.dashboard-container select {
    border: 1.5px solid #aebbd0;
    background: #f1f5f9;
    color: #0f172a;
    box-shadow: inset 0 1px 2px rgba(15,23,42,.06);
}
.dashboard-container .form-group input:not([type="checkbox"]):not([type="radio"]):hover,
.dashboard-container .form-group select:hover,
.dashboard-container .form-control:hover,
.dashboard-container .form-textarea:hover,
.dashboard-container textarea:hover,
.dashboard-container .filter-form input:hover,
.dashboard-container .filter-form select:hover,
.dashboard-container .manual-employee-form input:hover,
.dashboard-container .manual-employee-form select:hover,
.dashboard-container .form-input-sm:hover,
.dashboard-container input[type="date"]:hover,
.dashboard-container input[type="time"]:hover,
.dashboard-container input[type="number"]:hover,
.dashboard-container input[type="text"]:hover,
.dashboard-container input[type="password"]:hover,
.dashboard-container select:hover {
    border-color: #7f8fa8;
    background: #eef3f8;
}
.dashboard-container .form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.dashboard-container .form-group select:focus,
.dashboard-container .form-control:focus,
.dashboard-container .form-textarea:focus,
.dashboard-container textarea:focus,
.dashboard-container .filter-form input:focus,
.dashboard-container .filter-form select:focus,
.dashboard-container .manual-employee-form input:focus,
.dashboard-container .manual-employee-form select:focus,
.dashboard-container .form-input-sm:focus,
.dashboard-container input[type="date"]:focus,
.dashboard-container input[type="time"]:focus,
.dashboard-container input[type="number"]:focus,
.dashboard-container input[type="text"]:focus,
.dashboard-container input[type="password"]:focus,
.dashboard-container select:focus {
    border-color: #2457d6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(36,87,214,.13), inset 0 1px 2px rgba(15,23,42,.04);
    outline: none;
}
.dashboard-container input::placeholder,
.dashboard-container textarea::placeholder {
    color: #65758b;
    opacity: 1;
}
.dashboard-container input:disabled,
.dashboard-container select:disabled,
.dashboard-container textarea:disabled {
    border-color: #c5cfdd;
    background: #e7ecf3;
    color: #7a8799;
    cursor: not-allowed;
}
.dashboard-container .password-input-wrap input {
    background: #f1f5f9;
}
.dashboard-container .permission-grid label {
    border-color: #b8c4d4;
    background: #f6f8fb;
}
.dashboard-container .permission-grid label:hover {
    border-color: #8998ad;
    background: #eef3f8;
}

/* Ajuste de lectura en filtros */
.dashboard-container .filter-form .filter-group input[type="text"],
.dashboard-container .filter-form .filter-group input[type="date"],
.dashboard-container .filter-form .filter-group select {
    padding-left: 15px;
    padding-right: 15px;
}
.dashboard-container .report-header .filter-group input[name="employee_search"] {
    min-width: 280px;
    padding-left: 18px;
}

.token-summary-grid .big-number {
    overflow-wrap: anywhere;
}
.token-summary-grid {
    margin-bottom: 18px;
}

/* Estructura de importacion */
.import-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.import-card-actions .btn-import,
.import-card-actions .btn-secondary {
    min-height: 40px;
}
.import-structure-dialog {
    width: min(92vw, 520px);
    padding: 0;
    border: 0;
    border-radius: 14px;
    color: var(--text);
    background: #f5f7fb;
    box-shadow: 0 24px 80px rgba(15,23,42,.3);
    margin: auto;
    position: fixed;
    inset: 0;
    max-height: min(88vh, 720px);
}
.import-structure-dialog::backdrop {
    background: rgba(15,23,42,.42);
    backdrop-filter: blur(2px);
}
.structure-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 16px 14px;
    background: #fff;
    border-bottom: 1px solid #e4e9f1;
}
.structure-dialog-head h3 {
    margin: 0;
    color: #172033;
    font-size: 1.05rem;
}
.structure-dialog-body {
    display: grid;
    gap: 10px;
    padding: 12px 14px 16px;
}
.structure-table-wrap,
.structure-notes {
    overflow: hidden;
    border: 1px solid #e3e8f1;
    border-radius: 10px;
    background: #fff;
}
.structure-table {
    margin: 0;
}
.structure-table th,
.structure-table td {
    padding: 11px 10px !important;
}
.structure-table th {
    color: #1f4db8;
    background: #eaf0ff;
    font-size: .66rem !important;
}
.structure-table tr.is-highlight td {
    color: inherit;
    background: transparent;
    font-weight: inherit;
}
.structure-notes {
    padding: 14px 16px;
}
.structure-notes strong {
    display: block;
    margin-bottom: 8px;
    color: #2457d6;
    font-size: .78rem;
}
.structure-notes p {
    margin: 0 0 14px;
    color: #2f3a4b;
    font-size: .78rem;
    line-height: 1.55;
}
.structure-notes .btn-save {
    width: 100%;
}
@media(max-width:560px){
    .import-card-actions .btn-import,
    .import-card-actions .btn-secondary{width:100%}
    .structure-dialog-head{align-items:flex-start;flex-direction:column}
    .structure-dialog-head .btn-secondary{width:100%}
}

/* Roles de usuarios */
.user-create-card .user-create-grid {
    grid-template-columns: minmax(130px,.8fr) minmax(210px,1.3fr) minmax(170px,.9fr) minmax(150px,.8fr) minmax(150px,.8fr);
}
.role-access-note {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 11px 13px;
    border: 1px solid #b8c9ee;
    border-radius: 10px;
    color: #1f4db8;
    background: #f0f5ff;
    font-size: .78rem;
    font-weight: 700;
}
.role-access-note i {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #fff;
    background: #2457d6;
    font-size: .78rem;
}
.role-access-note[hidden],
.permission-fieldset[hidden] {
    display: none !important;
}
.badge-admin-role {
    color: #1f4db8;
    background: #eaf0ff;
}
.badge-user-role {
    color: #5f3b05;
    background: #fff3df;
}
.user-edit-card .user-edit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.user-edit-card .user-role-note {
    margin: 0 22px 18px;
}
@media(max-width:1000px){
    .user-create-card .user-create-grid,
    .user-edit-card .user-edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media(max-width:620px){
    .user-create-card .user-create-grid,
    .user-edit-card .user-edit-grid {
        grid-template-columns: 1fr;
    }
}

/* Cambio de clave institucional */
body.password-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px;
    background:
        radial-gradient(circle at 50% -10%, rgba(36,87,214,.14), transparent 36%),
        linear-gradient(180deg, #eef3f9 0%, #e7edf5 100%);
}
.password-page .password-card {
    position: relative;
    width: min(100%, 430px);
    overflow: hidden;
    padding: 34px 38px 32px;
    border: 1px solid rgba(44,65,98,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 24px 70px rgba(28,45,76,.16);
}
.password-page .password-card-accent {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #2457d6, #168267);
}
.password-page .password-card-head {
    margin-bottom: 24px;
    text-align: center;
}
.password-page .password-security-icon {
    width: 50px;
    height: 50px;
    margin: 8px auto 15px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, #2457d6, #4778ee);
    box-shadow: 0 14px 28px rgba(36,87,214,.24);
    font-size: 1.15rem;
}
.password-page .password-card-head .login-eyebrow {
    margin-bottom: 8px;
    color: #2457d6;
    font-size: .68rem;
    letter-spacing: .12em;
}
.password-page .password-card-head h1 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.52rem;
    letter-spacing: -.025em;
}
.password-page .password-card-head p {
    max-width: 31ch;
    margin: 0 auto;
    color: #5d6b7f;
    font-size: .82rem;
    line-height: 1.55;
}
.password-page .password-fields-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}
.password-page .password-form .form-group {
    margin-bottom: 0;
}
.password-page .password-form label {
    margin-bottom: 7px;
    color: #2d3b52;
    font-size: .74rem;
    font-weight: 800;
}
.password-page .password-input-wrap input {
    height: 47px;
    padding: 11px 46px 11px 42px;
    border: 1.5px solid #aebbd0;
    border-radius: 10px;
    background: #f1f5f9;
    box-shadow: inset 0 1px 2px rgba(15,23,42,.06);
}
.password-page .password-input-wrap input:hover {
    border-color: #7f8fa8;
    background: #eef3f8;
}
.password-page .password-input-wrap input:focus {
    border-color: #2457d6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(36,87,214,.13), inset 0 1px 2px rgba(15,23,42,.04);
}
.password-page .password-field-icon {
    color: #8b9aae;
}
.password-page .password-toggle {
    color: #66758b;
}
.password-page .password-requirements {
    margin: 16px 0 20px;
    padding: 15px;
    border: 1px solid #c9d3e1;
    border-radius: 12px;
    background: #f6f8fb;
}
.password-page .password-requirements strong {
    margin-bottom: 12px;
    color: #172033;
    font-size: .76rem;
}
.password-page .password-requirements ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 12px;
}
.password-page .password-requirements li {
    gap: 8px;
    color: #627086;
    font-size: .7rem;
}
.password-page .password-requirements li i {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #a9b4c3;
    background: #e6ebf2;
    font-size: .56rem;
}
.password-page .password-requirements li.is-valid {
    color: #08775d;
}
.password-page .password-requirements li.is-valid i {
    color: #fff;
    background: #168267;
}
.password-page .password-submit {
    height: 49px;
    border-radius: 10px;
    background: linear-gradient(90deg, #2457d6, #1d4fc7);
    box-shadow: 0 12px 24px rgba(36,87,214,.22);
    font-size: .86rem;
}
.password-page .password-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(36,87,214,.28);
}
.password-page .password-logout {
    margin-top: 20px;
    color: #5d6b7f;
    font-size: .74rem;
}
.password-page .password-logout:hover {
    color: #172033;
}
@media(max-width:520px){
    body.password-page{padding:14px}
    .password-page .password-card{padding:30px 22px 26px}
    .password-page .password-requirements ul{grid-template-columns:1fr}
}
