
        :root {
            --primary: #0b2d3a;
            --primary-strong: #071a24;
            --secondary: #0f172a;
            --accent: #0b335a;
            --accent-strong: #081f3a;
            --success: #16a34a;
            --warning: #f59e0b;
            --danger: #ef4444;
        }
                .bonus-report-table th:nth-child(3),
                .bonus-report-table td:nth-child(3) {
                    position: sticky;
                    left: 250px;
                    min-width: 110px;
                    background: #ffffff;
                    z-index: 3;
                }
                .bonus-report-table th:nth-child(4),
                .bonus-report-table td:nth-child(4) {
                    position: sticky;
                    left: 360px;
                    min-width: 220px;
                    background: #ffffff;
                    z-index: 3;
                }
                .bonus-report-table thead th {
                    z-index: 4;
                }
                .bonus-report-table thead th:nth-child(-n+4) {
                    z-index: 6;
                }
                .bonus-report-table th:nth-child(-n+4),
                .bonus-report-table td:nth-child(-n+4) {
                    box-shadow: 2px 0 0 rgba(15, 23, 42, 0.08);
                    border-right: 1px solid rgba(15, 23, 42, 0.08);
                }
                .bonus-col-resizer {
                    position: absolute;
                    right: 0;
                    top: 0;
                    height: 100%;
                    width: 8px;
                    cursor: col-resize;
                    z-index: 7;
                }
                .bonus-col-resizer::after {
                    content: '';
                    position: absolute;
                    right: 3px;
                    top: 8px;
                    bottom: 8px;
                    width: 2px;
                    background: rgba(15, 23, 42, 0.18);
                    border-radius: 2px;
                }
                .bonus-row-resizer {
                    position: absolute;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    height: 8px;
                    cursor: row-resize;
                    z-index: 7;
                }
                .bonus-report-table tbody tr:nth-of-type(odd) td:nth-child(-n+4) {
                    background: #f8fafc;
                }
                .report-bono-input,
                .report-extra-input {
                    min-width: 120px;
                    height: 34px;
                    font-size: 0.92rem;
                    padding: 4px 8px;
                    text-align: right;
                }
                .bonus-comment-btn {
                    border-radius: 8px;
                    font-size: 0.7rem;
                    padding: 2px 6px;
                    line-height: 1;
                }
                .bonus-row-comment-btn {
                    position: relative;
                }
                .bonus-comment-indicator {
                    display: inline-block;
                    width: 8px;
                    height: 8px;
                    border-radius: 50%;
                    background: #22c55e;
                    box-shadow: 0 0 0 2px #fff;
                    margin-left: 6px;
                    vertical-align: middle;
                }
                body.dark-mode .bonus-comment-indicator {
                    box-shadow: 0 0 0 2px #0b0f18;
                }
                .bonus-total-highlight {
                    background: #fff3bf;
                    color: #7a5a00;
                    font-weight: 700;
                    text-align: center;
                }
                .bonus-status-pill {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    min-width: 86px;
                    padding: 4px 8px;
                    border-radius: 999px;
                    font-size: 0.78rem;
                    font-weight: 700;
                    text-transform: uppercase;
                    letter-spacing: 0.4px;
                    border: 1px solid rgba(0,0,0,0.08);
                }
                .bonus-status-ok { background: #e9f7ef !important; color: #1f7a3a !important; }
                .bonus-status-incapacidad { background: #e6f4ea !important; color: #176534 !important; }
                .bonus-status-falta { background: #fde8e8 !important; color: #b42318 !important; }
                .bonus-status-permiso { background: #ffe0b2 !important; color: #8a4b00 !important; }
                .bonus-status-novalido { background: #fff3bf !important; color: #8a6d00 !important; }
                .bonus-status-select {
                    border-radius: 999px;
                    font-size: 0.78rem;
                    font-weight: 700;
                    text-transform: uppercase;
                    padding: 2px 8px;
                    min-width: 110px;
                }
                .bonus-status-select.bonus-status-ok { background: #e9f7ef !important; color: #1f7a3a !important; }
                .bonus-status-select.bonus-status-incapacidad { background: #e6f4ea !important; color: #176534 !important; }
                .bonus-status-select.bonus-status-falta { background: #fde8e8 !important; color: #b42318 !important; }
                .bonus-status-select.bonus-status-permiso { background: #ffe0b2 !important; color: #8a4b00 !important; }
                .bonus-status-select.bonus-status-novalido { background: #fff3bf !important; color: #8a6d00 !important; }

        /* Modernized button & accent styles */
        .btn-primary {
            background: linear-gradient(120deg, #0b2d3a 0%, #0b335a 55%, #0f172a 100%);
            border: none;
            color: #fff;
            box-shadow: 0 10px 22px rgba(11, 45, 58, 0.35);
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 30px rgba(11, 45, 58, 0.45);
        }
        .btn-outline-primary {
            border-color: rgba(11, 51, 90, 0.35);
            color: #0b335a;
        }
        .btn-outline-primary:hover { background: rgba(11, 51, 90, 0.08); }
        .btn-outline-secondary { border-radius: 10px; }
        .maquila-card { border-radius: 12px; }
        .maquila-visibility-toggle {
            position: absolute;
            top: 8px;
            left: 8px;
            background: rgba(255,255,255,0.95);
            border: 1px solid rgba(0,0,0,0.06);
            border-radius: 8px;
            padding: 4px 6px;
            display: inline-flex;
            align-items: center;
            z-index: 2;
        }
        .pf-header { border-radius: 10px; }
        .table thead th {
            background: linear-gradient(90deg, rgba(15,118,110,0.08), rgba(249,115,22,0.04));
            color: var(--secondary);
        }
        .ops-weekly-scroll {
            position: relative;
            overflow: auto;
            max-width: 100%;
            max-height: 70vh;
        }
        .ops-weekly-scroll:focus {
            outline: 2px solid var(--ring);
            outline-offset: 2px;
        }
        .ops-weekly-split {
            display: flex;
            align-items: flex-start;
            gap: 0;
            width: 100%;
        }
        .ops-weekly-table {
            min-width: 1200px;
        }
        .ops-weekly-fixed {
            flex: 0 0 auto;
            max-height: 70vh;
            overflow-y: auto;
            overflow-x: hidden;
            background: #ffffff;
            border-left: 1px solid rgba(15, 23, 42, 0.12);
        }
        .ops-weekly-actions {
            min-width: 330px;
        }
        .ops-weekly-actions thead th {
            background: linear-gradient(90deg, rgba(15,118,110,0.08), rgba(249,115,22,0.04));
        }
        .bonus-report-split {
            display: flex;
            align-items: flex-start;
            gap: 0;
            width: 100%;
        }
        .bonus-report-fixed {
            flex: 0 0 auto;
            width: 470px;
            max-height: 70vh;
            overflow: hidden;
            background: #ffffff;
            border-right: 1px solid rgba(15, 23, 42, 0.12);
            box-shadow: 8px 0 18px rgba(15, 23, 42, 0.08);
            z-index: 2;
        }
        .bonus-report-scroll {
            flex: 1 1 auto;
            max-height: 70vh;
            overflow: auto;
            background: #ffffff;
        }
        .bonus-report-fixed-table,
        .bonus-report-scroll-table {
            table-layout: fixed;
            width: 100%;
        }
        .bonus-report-fixed-table {
            min-width: 470px;
        }
        .bonus-report-scroll-table {
            min-width: 1100px;
        }
        .bonus-report-fixed-table th,
        .bonus-report-fixed-table td,
        .bonus-report-scroll-table th,
        .bonus-report-scroll-table td {
            vertical-align: middle;
        }
        .bonus-report-fixed-table th:nth-child(1),
        .bonus-report-fixed-table td:nth-child(1) { width: 80px; }
        .bonus-report-fixed-table th:nth-child(2),
        .bonus-report-fixed-table td:nth-child(2) { width: 140px; }
        .bonus-report-fixed-table th:nth-child(3),
        .bonus-report-fixed-table td:nth-child(3) { width: 90px; }
        .bonus-report-fixed-table th:nth-child(4),
        .bonus-report-fixed-table td:nth-child(4) { width: 160px; }
        .bonus-report-fixed-table thead th,
        .bonus-report-scroll-table thead th {
            white-space: normal;
            line-height: 1.2;
            padding: 10px 8px;
            word-break: break-word;
            text-align: center;
        }
        .bonus-report-scroll-table th:nth-child(1),
        .bonus-report-scroll-table td:nth-child(1) { width: 140px; }
        .bonus-report-scroll-table th:nth-child(2),
        .bonus-report-scroll-table td:nth-child(2) { width: 150px; }
        .bonus-report-scroll-table th:nth-child(3),
        .bonus-report-scroll-table td:nth-child(3) { width: 170px; }
        .bonus-report-scroll-table th:nth-child(4),
        .bonus-report-scroll-table td:nth-child(4) { width: 150px; }
        .bonus-report-scroll-table th:nth-child(5),
        .bonus-report-scroll-table td:nth-child(5) { width: 190px; }
        .bonus-report-scroll-table th:nth-child(6),
        .bonus-report-scroll-table td:nth-child(6) { width: 140px; }
        .bonus-report-scroll-table th:nth-child(7),
        .bonus-report-scroll-table td:nth-child(7) { width: 150px; }
        .bonus-report-scroll-table th:nth-child(8),
        .bonus-report-scroll-table td:nth-child(8) { width: 170px; }
        .bonus-report-scroll-table th:nth-child(9),
        .bonus-report-scroll-table td:nth-child(9) { width: 190px; }
        .bonus-report-scroll-table th:nth-child(10),
        .bonus-report-scroll-table td:nth-child(10) { width: 220px; }
        .bonus-report-scroll-table th:nth-child(11),
        .bonus-report-scroll-table td:nth-child(11) { width: 120px; }
        .bonus-report-scroll-table td {
            padding: 8px;
            vertical-align: middle;
        }
        .bonus-report-scroll-table .report-bono-input,
        .bonus-report-scroll-table .report-extra-input,
        .bonus-report-scroll-table .report-bank-input,
        .bonus-report-scroll-table .bonus-status-select {
            width: 100%;
            min-width: 0;
        }
        .bonus-report-scroll-table .bonus-status-pill {
            display: block;
            text-align: center;
        }

        /* Employee edit modal styling */
        .employee-edit-modal .modal-content {
            border-radius: 18px;
            background: linear-gradient(140deg, rgba(255,255,255,0.98), rgba(245,248,255,0.92));
            box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
            overflow: hidden;
        }
        .employee-edit-modal .modal-header {
            border-bottom: none;
            padding: 18px 22px;
            background: radial-gradient(circle at 18% 0%, rgba(59,130,246,0.2), transparent 50%),
                        radial-gradient(circle at 90% 10%, rgba(34,197,94,0.16), transparent 45%),
                        linear-gradient(120deg, #0f1724 0%, #1f2a44 45%, #0f766e 100%);
            color: #f8fafc;
        }
        .employee-edit-title {
            font-size: 1.2rem;
            font-weight: 700;
            letter-spacing: 0.2px;
        }
        .employee-edit-subtitle {
            font-size: 0.9rem;
            opacity: 0.82;
        }
        .employee-edit-modal .modal-body {
            padding: 20px 22px 8px;
            background: linear-gradient(120deg, #f8fafc 0%, #eef2ff 100%);
        }
        .employee-edit-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 16px 16px 10px;
            border: 1px solid rgba(148, 163, 184, 0.25);
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
        }
        .employee-edit-card-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: #0f1724;
            margin-bottom: 12px;
        }
        .employee-edit-modal .form-control,
        .employee-edit-modal .form-select {
            border-radius: 12px;
            border: 1px solid rgba(148, 163, 184, 0.4);
            background: #f8fafc;
        }
        .employee-edit-modal .form-control:focus,
        .employee-edit-modal .form-select:focus {
            border-color: rgba(37,99,235,0.55);
            box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
            background: #ffffff;
        }
        .employee-edit-modal .modal-footer {
            border-top: none;
            padding: 12px 22px 20px;
            background: linear-gradient(120deg, rgba(248,250,252,0.9), rgba(226,232,240,0.9));
        }
        .employee-edit-modal .btn-secondary {
            background: #e2e8f0;
            border: none;
            color: #0f1724;
        }
        .employee-edit-modal .btn-secondary:hover {
            background: #cbd5f5;
        }

        .year-calendar-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 8px;
        }
        .year-month-btn {
            border: 1px solid rgba(148, 163, 184, 0.6);
            background: #ffffff;
            color: #0f1724;
            border-radius: 10px;
            padding: 8px 10px;
            text-align: left;
            font-size: 0.85rem;
            font-weight: 600;
            transition: all 0.15s ease;
        }
        .year-month-btn:hover {
            border-color: rgba(37, 99, 235, 0.6);
            box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
            transform: translateY(-1px);
        }
        .year-month-btn.active {
            background: linear-gradient(120deg, #0b2d3a 0%, #0b335a 60%, #0f172a 100%);
            color: #ffffff;
            border-color: transparent;
        }
        .month-calendar {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .month-calendar-header {
            font-weight: 700;
            color: #0f1724;
            font-size: 1.05rem;
        }
        .month-calendar-week-label {
            font-size: 0.9rem;
            color: #64748b;
            margin-bottom: 4px;
        }
        .month-calendar-week {
            display: grid;
            grid-template-columns: repeat(7, minmax(90px, 1fr));
            gap: 6px;
        }
        .month-calendar-day {
            border: 1px solid rgba(148, 163, 184, 0.35);
            border-radius: 10px;
            padding: 6px 8px;
            background: #ffffff;
            min-height: 70px;
        }
        .month-calendar-day.muted {
            opacity: 0.45;
        }
        .month-calendar-day .day-label {
            font-size: 0.85rem;
            font-weight: 700;
            color: #0f1724;
        }
        .month-calendar-day .day-date {
            font-size: 0.8rem;
            color: #64748b;
        }
        .month-calendar-day .mt-1 {
            font-size: 1rem;
            font-weight: 700;
        }

        /* Add employee modal styling */
        .add-employee-modal .modal-content {
            border-radius: 18px;
            overflow: hidden;
            border: 1px solid rgba(148, 163, 184, 0.22);
            box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
        }
        .add-employee-modal .modal-header {
            border-bottom: none;
            padding: 18px 22px;
            background: radial-gradient(circle at 16% 0%, rgba(14, 165, 160, 0.35), transparent 55%),
                        radial-gradient(circle at 95% 20%, rgba(249, 115, 22, 0.25), transparent 45%),
                        linear-gradient(120deg, #0b2d3a 0%, #0f172a 55%, #0b335a 100%);
            color: #f8fafc;
        }
        .add-employee-modal .modal-title {
            font-size: 1.2rem;
            font-weight: 700;
            letter-spacing: 0.2px;
        }
        .add-employee-modal .modal-title i {
            margin-right: 8px;
            color: #fbbf24;
        }
        .add-employee-subtitle {
            font-size: 0.9rem;
            opacity: 0.8;
        }
        .add-employee-modal .modal-body {
            background: linear-gradient(120deg, #f8fafc 0%, #eef2ff 100%);
            padding: 20px 22px 14px;
        }
        .add-employee-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 16px 16px 12px;
            border: 1px solid rgba(148, 163, 184, 0.18);
            box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
        }
        .add-employee-card-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: #0f1724;
            margin-bottom: 12px;
        }
        .add-employee-card-title i {
            margin-right: 8px;
            color: #0f766e;
        }
        .employee-edit-title i {
            margin-right: 8px;
            color: #fbbf24;
        }
        .employee-edit-card-title i {
            margin-right: 8px;
            color: #0f766e;
        }
        .form-label i,
        .form-check-label i {
            margin-right: 6px;
            color: #0f766e;
        }
        .add-employee-form .form-control,
        .add-employee-form .form-select {
            border-radius: 12px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            background: #f8fafc;
        }

        /* Virtual assistant */
        .assistant-launcher {
            position: fixed;
            right: 22px;
            bottom: 24px;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            background: linear-gradient(135deg, #0f172a 0%, #12263a 45%, #0b335a 100%);
            color: #f8fafc;
            border-radius: 999px;
            box-shadow: 0 16px 30px rgba(11, 45, 58, 0.35);
            z-index: 20000;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .assistant-launcher:hover {
            transform: translateY(-2px);
            box-shadow: 0 22px 40px rgba(11, 45, 58, 0.4);
        }
        .assistant-launcher-icon {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            object-fit: cover;
            background: #fff;
            padding: 3px;
        }
        .assistant-launcher-label {
            font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
            font-weight: 700;
            letter-spacing: 0.3px;
        }

        .assistant-panel {
            position: fixed;
            right: 22px;
            bottom: 90px;
            width: 360px;
            max-height: 70vh;
            background: radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.18), transparent 45%),
                        radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.2), transparent 45%),
                        linear-gradient(160deg, #ffffff 0%, #f5f7fb 60%, #eef2f7 100%);
            border-radius: 18px;
            box-shadow: var(--shadow-2);
            z-index: 20000;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            animation: assistant-pop 0.25s ease-out;
        }
        .assistant-panel.maximized {
            width: min(92vw, 720px);
            max-height: 85vh;
            right: 4vw;
            bottom: 4vh;
        }
        .assistant-panel.minimized .assistant-body,
        .assistant-panel.minimized .assistant-quick,
        .assistant-panel.minimized .assistant-input,
        .assistant-panel.minimized .assistant-footer,
        .assistant-panel.minimized .assistant-settings {
            display: none;
        }
        .assistant-panel.minimized {
            width: 260px;
        }

        .assistant-header {
            padding: 12px 14px;
            background: linear-gradient(120deg, #0b2d3a 0%, #0f172a 55%, #0b335a 100%);
            color: #f8fafc;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .assistant-title {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .assistant-title-icon {
            width: 34px;
            height: 34px;
            border-radius: 12px;
            object-fit: cover;
            background: #fff;
            padding: 4px;
        }
        .assistant-title-main {
            font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
            font-weight: 700;
            letter-spacing: 0.2px;
        }
        .assistant-title-sub {
            font-size: 0.78rem;
            opacity: 0.8;
        }
        .assistant-controls {
            display: flex;
            gap: 6px;
        }
        .assistant-icon-btn {
            border: none;
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
            width: 30px;
            height: 30px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .assistant-icon-btn:hover {
            background: rgba(255, 255, 255, 0.28);
        }
        .assistant-body {
            padding: 12px;
            overflow: auto;
            flex: 1 1 auto;
        }
        .assistant-messages {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .assistant-msg {
            padding: 10px 12px;
            border-radius: 12px;
            font-size: 0.92rem;
            line-height: 1.4;
        }
        .assistant-msg.bot {
            background: #ffffff;
            border: 1px solid rgba(148, 163, 184, 0.3);
            box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
        }
        .assistant-msg.user {
            align-self: flex-end;
            background: linear-gradient(120deg, rgba(59, 130, 246, 0.18), rgba(14, 165, 233, 0.18));
            border: 1px solid rgba(59, 130, 246, 0.25);
        }
        .assistant-quick {
            padding: 0 12px 8px;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            max-height: 110px;
            overflow: auto;
        }
        .assistant-quick-header {
            padding: 8px 12px 4px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--muted);
        }
        .assistant-quick-collapsed .assistant-quick {
            display: none;
        }
        .assistant-chip {
            padding: 6px 10px;
            border-radius: 999px;
            border: 1px solid rgba(11, 51, 90, 0.25);
            background: #fff;
            font-size: 0.8rem;
            cursor: pointer;
            transition: background 0.15s ease;
        }
        .assistant-chip:hover {
            background: rgba(11, 51, 90, 0.08);
        }
        .assistant-input {
            padding: 10px 12px;
            display: flex;
            gap: 8px;
        }
        .assistant-input .form-control {
            border-radius: 12px;
        }
        .assistant-footer {
            padding: 0 12px 12px;
            display: flex;
            justify-content: space-between;
        }
        .assistant-settings {
            border-top: 1px solid rgba(148, 163, 184, 0.3);
            padding: 12px;
            background: #f8fafc;
        }
        .assistant-settings-title {
            font-weight: 700;
            margin-bottom: 8px;
        }
        .assistant-settings-form {
            display: grid;
            gap: 8px;
        }
        .assistant-settings-actions {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }
        .assistant-custom-list {
            margin-top: 10px;
            display: grid;
            gap: 6px;
            max-height: 160px;
            overflow: auto;
        }
        .assistant-custom-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 10px;
            background: #ffffff;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.3);
            font-size: 0.85rem;
        }
        .assistant-custom-item button {
            border: none;
            background: rgba(239, 68, 68, 0.12);
            color: #b42318;
            border-radius: 8px;
            padding: 4px 8px;
        }
        @keyframes assistant-pop {
            from { transform: translateY(8px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        @media (max-width: 768px) {
            .assistant-panel {
                right: 12px;
                bottom: 90px;
                width: calc(100% - 24px);
                max-height: 80vh;
            }
            .assistant-launcher {
                right: 12px;
            }
        }
        .add-employee-form .form-control:focus,
        .add-employee-form .form-select:focus {
            border-color: rgba(14, 165, 160, 0.55);
            box-shadow: 0 0 0 3px rgba(14, 165, 160, 0.18);
            background: #ffffff;
        }
        .add-employee-form .btn-outline-secondary {
            border-radius: 10px;
        }
        .add-employee-footer {
            border-top: none;
            padding: 12px 22px 20px;
            background: linear-gradient(120deg, rgba(248,250,252,0.9), rgba(226,232,240,0.9));
        }

        

        /* Compatibility helpers (Lighthouse recommendations)
           - Add standard properties after vendor-prefixed ones
           - Use print-color-adjust instead of deprecated color-adjust
           - Provide a utility for match-parent ordering. */
        html, body {
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        /* Utility class to ensure correct ordering for -webkit-match-parent */
        .text-align-match-parent {
            text-align: -webkit-match-parent;
            text-align: match-parent;
            text-align: inherit;
        }

        /* Ensure print color fidelity across browsers */
        * {
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        /* Dark mode overrides when body has .dark-mode */
        body.dark-mode {
            background-color: #0b0f18 !important;
            color: #e6eef8 !important;
            --surface: #0b1220;
            --surface-strong: #0f172a;
            --ink: #e6eef8;
            --muted: #9aa7bd;
            --ring: rgba(59,130,246,0.35);
        }
        body.dark-mode .sidebar { background-color: #0f1720 !important; }
        body.dark-mode .card { background-color: #0b1220 !important; color: #d8e6fb; border-color: rgba(255,255,255,0.03); }
        body.dark-mode .card-header { background-color: rgba(255,255,255,0.02); color: #d8e6fb; border-bottom-color: rgba(255,255,255,0.03); }
        body.dark-mode .table th, body.dark-mode .table td { color: #d8e6fb; border-color: rgba(255,255,255,0.04); }
        body.dark-mode .form-control, body.dark-mode .form-select { background-color: #09101a; color: #d8e6fb; border-color: rgba(255,255,255,0.04); }
        body.dark-mode .sidebar .nav-link { color: rgba(255,255,255,0.85); }
        body.dark-mode .btn-primary { background-color: #2563eb; border-color: #2563eb; }
        body.dark-mode .notification-badge { background-color: #ff6b6b; }
        body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
            color: #e6eef8;
        }
        body.dark-mode .text-muted { color: rgba(226, 232, 240, 0.7) !important; }
        body.dark-mode .form-text { color: rgba(226, 232, 240, 0.65); }
        body.dark-mode .form-control::placeholder,
        body.dark-mode .form-select::placeholder {
            color: rgba(226, 232, 240, 0.55);
        }
        body.dark-mode .table { background: #0b1220; }
        body.dark-mode .table thead th {
            background: rgba(148, 163, 184, 0.08);
            color: #e6eef8;
            border-color: rgba(255,255,255,0.06);
        }
        body.dark-mode .table-responsive {
            background: #0b1220;
            box-shadow: none;
        }
        body.dark-mode .modal-content {
            background: #0b1220;
            border-color: rgba(255,255,255,0.06);
        }
        body.dark-mode .modal-header,
        body.dark-mode .modal-footer {
            background: rgba(255,255,255,0.02);
        }
        body.dark-mode .modal-body { background: #0b1220; }
        body.dark-mode .list-group-item {
            background: #0b1220;
            color: #e6eef8;
            border-color: rgba(255,255,255,0.06);
        }
        body.dark-mode .nav-tabs .nav-link {
            color: rgba(226, 232, 240, 0.8);
            border-color: rgba(255,255,255,0.08);
        }
        body.dark-mode .nav-tabs .nav-link.active {
            background: #0f172a;
            color: #e6eef8;
            border-color: rgba(255,255,255,0.12);
        }
        body.dark-mode .nav-pills .nav-link {
            color: rgba(226, 232, 240, 0.75);
        }
        body.dark-mode .nav-pills .nav-link.active {
            background: rgba(59,130,246,0.35);
            color: #f8fafc;
        }
        body.dark-mode .badge { color: #0b0f18; }
        body.dark-mode .badge.bg-secondary,
        body.dark-mode .badge.bg-warning,
        body.dark-mode .badge.bg-danger,
        body.dark-mode .badge.bg-success,
        body.dark-mode .badge.bg-info,
        body.dark-mode .badge.bg-primary { color: #0b0f18; }
        body.dark-mode .attendance-notification-card,
        body.dark-mode .notif-card {
            background: #0b1220;
            border-color: rgba(255,255,255,0.08);
        }
        body.dark-mode #notificaciones-asistencia .card,
        body.dark-mode #maquilas .card,
        body.dark-mode #cubredescansos .card {
            background: #0b1220;
            border-color: rgba(255,255,255,0.06);
        }
        body.dark-mode #maquilaDetalle .card-header {
            background: linear-gradient(120deg, #0b1220 0%, #0f172a 60%, #1f2937 100%);
        }
        body.dark-mode #maquilaDetalle .card-body,
        body.dark-mode #editorAsistenciaModal .modal-body,
        body.dark-mode #calendarioSemanal,
        body.dark-mode #editorControls {
            background: #0b1220;
            border-color: rgba(255,255,255,0.06);
        }
        body.dark-mode .attendance-notification-meta,
        body.dark-mode .notif-meta,
        body.dark-mode .notif-read-tag {
            color: rgba(226, 232, 240, 0.7);
        }
        body.dark-mode .report-header {
            background: rgba(255,255,255,0.03);
        }
        body.dark-mode .week-popover {
            background: #0f172a;
            color: #e6eef8;
            border-color: rgba(255,255,255,0.1);
        }
        body.dark-mode .week-popover::after {
            background: #0f172a;
            border-color: rgba(255,255,255,0.1);
        }
        
        body {
            background: radial-gradient(circle at 10% 0%, rgba(14, 165, 160, 0.14), transparent 40%),
                        radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.12), transparent 38%),
                        linear-gradient(120deg, #f8fafc 0%, #eef2f7 60%, #f7f7fb 100%);
            font-family: 'IBM Plex Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
            color: var(--ink);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            font-size: 16px;
            line-height: 1.5;
        }
        h1, h2, h3, h4, h5, h6 {
            font-family: 'IBM Plex Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial;
            letter-spacing: 0.2px;
            color: var(--secondary);
        }

        /* Sidebar logo styling: centered and responsive */
        .sidebar-logo { display:block; margin: 0 auto; width: 140px; max-width: 90%; height: auto; }

        /* Center text for employee lists and weekly attendance tables */
        #tablaEmpleados, #tablaMaquilaEmpleados, #tablaTopFaltas {
            text-align: center;
        }
        #tablaEmpleados th, #tablaEmpleados td, #tablaMaquilaEmpleados th, #tablaMaquilaEmpleados td, #tablaTopFaltas th, #tablaTopFaltas td {
            text-align: center !important;
            vertical-align: middle;
        }

        /* Improve table readability: consistent padding and centered headers */
        .table th { text-transform: none; letter-spacing: 0.2px; }
        .table td { padding: .65rem .9rem; }

        
        .sidebar {
            background: linear-gradient(160deg, #0b1220 0%, #0f172a 45%, #0f766e 120%);
            color: white;
            min-height: 100vh;
            padding: 0;
            box-shadow: 0 18px 40px rgba(10, 20, 36, 0.28);
            position: sticky;
            top: 0;
            height: 100vh;
            overflow-y: auto;
        }

        .sidebar .d-flex {
            min-height: 100vh;
        }
        
        .sidebar .nav-link {
            color: rgba(255, 255, 255, 0.82);
            padding: 14px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            transition: all 0.2s ease;
            position: relative;
        }
        .sidebar .nav-link:hover, .sidebar .nav-link.active {
            color: #fff;
            background: linear-gradient(90deg, rgba(15,118,110,0.35), rgba(249,115,22,0.15));
        }
        .sidebar .nav-link.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(180deg, #f97316 0%, #fbbf24 100%);
        }
        
        .sidebar .nav-link i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }

        .sidebar #logoutBtn {
            border-color: rgba(249, 115, 22, 0.6);
            color: #fff;
            background: linear-gradient(120deg, rgba(249, 115, 22, 0.95), rgba(234, 88, 12, 0.95));
            box-shadow: 0 10px 22px rgba(234, 88, 12, 0.25);
            font-weight: 700;
            letter-spacing: 0.2px;
        }
        .sidebar #logoutBtn:hover {
            transform: translateY(-1px);
            box-shadow: 0 14px 28px rgba(234, 88, 12, 0.3);
            color: #fff;
        }
        
        .main-content {
            padding: 22px 24px 30px;
        }
        
        .card {
            border-radius: 16px;
            box-shadow: var(--shadow-1);
            margin-bottom: 20px;
            border: 1px solid rgba(148, 163, 184, 0.16);
            background: var(--surface);
            transition: transform 160ms ease, box-shadow 160ms ease;
        }
        .card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-2);
        }

        /* Modern statistics cards */
        .stats-card { padding: 18px; border-radius: 12px; color: #fff; }
        .stats-card.primary { background: linear-gradient(90deg, #2563eb, #1e40af); }
        .stats-card.success { background: linear-gradient(90deg, #10b981, #059669); }
        .stats-card.warning { background: linear-gradient(90deg, #f59e0b, #d97706); }
        .stats-card.danger { background: linear-gradient(90deg, #ef4444, #b91c1c); }
        .stats-card .number { font-size: 1.6rem; font-weight:700; }
        .stats-card .label { font-size: 0.85rem; opacity:0.92; }

        /* Section headers: sidebar-driven emphasis (non-dashboard) */
        .tab-pane:not(#Dashboard) > h2 {
            font-size: 1.35rem;
            font-weight: 700;
            margin-bottom: 14px;
            padding: 10px 14px;
            background: linear-gradient(180deg, #07122b 0%, #061426 100%);
            color: #f8fafc;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 8px 18px rgba(2, 6, 23, 0.2);
        }

        /* Nav pills: more premium, less flat */
        .nav-pills .nav-link {
            border-radius: 10px;
            margin-bottom: 6px;
        }
        .nav-pills .nav-link.active {
            background: linear-gradient(120deg, rgba(15,118,110,0.85), rgba(249,115,22,0.55));
            color: #fff;
            box-shadow: 0 8px 18px rgba(15, 118, 110, 0.25);
        }

        /* Tables: refined density + depth */
        .table-responsive {
            border-radius: 14px;
            box-shadow: var(--shadow-1);
            background: var(--surface);
            padding: 6px;
        }
        .table {
            border-radius: 12px;
            overflow: hidden;
        }
        .table tbody tr:nth-child(even) {
            background: rgba(15, 118, 110, 0.03);
        }

        /* Inputs: softer surfaces and clearer focus */
        .form-control,
        .form-select {
            border-radius: 12px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            background: #fbfcfe;
        }
        .form-control:focus,
        .form-select:focus {
            border-color: rgba(15,118,110,0.55);
            box-shadow: 0 0 0 3px var(--ring);
            background: #fff;
        }

        /* Modals: clearer hierarchy */
        .modal-content {
            border-radius: 16px;
            border: 1px solid rgba(148, 163, 184, 0.18);
            box-shadow: 0 24px 60px rgba(12, 23, 42, 0.2);
        }
        .modal-header {
            border-bottom: none;
            background: linear-gradient(120deg, rgba(15,118,110,0.12), rgba(249,115,22,0.08));
        }
        .modal-footer {
            border-top: none;
            background: linear-gradient(120deg, rgba(248,250,252,0.9), rgba(226,232,240,0.9));
        }

        /* Badges and alerts: clearer visual contrast */
        .badge {
            border-radius: 999px;
            padding: 4px 10px;
            font-weight: 600;
        }
        .alert {
            border-radius: 12px;
            box-shadow: 0 10px 20px rgba(12, 23, 42, 0.08);
        }

        /* Buttons: improve secondary & success variety */
        .btn-secondary {
            background: linear-gradient(120deg, #475569, #1f2937);
            color: #fff;
            border: none;
        }
        .btn-success {
            background: linear-gradient(120deg, #22c55e, #16a34a);
            border: none;
            color: #fff;
        }

        /* Buttons: softer rounded, subtle depth and transitions */
        .btn { border-radius: 10px; transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease; font-weight: 600; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
        .btn:active { transform: translateY(1px) scale(.998); }
        .btn-animated { transition: transform .18s cubic-bezier(.2,.9,.2,1), box-shadow .18s; }
        .btn-animated:hover { transform: translateY(-3px); }

        .btn-outline-secondary { border-radius: 10px; border-width:1px; }
        .btn-outline-secondary i { margin-right:6px; }

        .btn-icon { display: inline-flex; align-items: center; gap: 6px; }
        .btn-cutoff {
            background: linear-gradient(120deg, #ffe8b3, #ffd08a);
            color: #5a3a00;
            border: 1px solid rgba(142, 93, 0, 0.2);
            box-shadow: 0 6px 16px rgba(142, 93, 0, 0.12);
        }
        .btn-cutoff:hover { background: linear-gradient(120deg, #ffe1a3, #ffc97a); color: #4a3000; }

        /* Floating action feel for primary buttons */
        .btn-primary { padding: .56rem .9rem; font-weight:600; }

        /* Table improvements */
        .table { background: #fff; border-radius: 8px; overflow: hidden; }
        .table thead th { background: linear-gradient(90deg, rgba(37,99,235,0.06), rgba(37,99,235,0.02)); border: none; color: #0b1740; font-weight:600; }
        .table tbody tr:hover { background: rgba(37,99,235,0.03); }

        /* Supervisor attendance section styling */
        #asistencia-supervisor.supervisor-attendance {
            position: relative;
            border-radius: 16px;
            padding: 18px 16px 22px;
            background: radial-gradient(circle at 12% 0%, rgba(255, 214, 165, 0.7), transparent 45%),
                        radial-gradient(circle at 88% 8%, rgba(167, 243, 208, 0.55), transparent 40%),
                        radial-gradient(circle at 50% 100%, rgba(191, 219, 254, 0.6), transparent 48%),
                        linear-gradient(120deg, #f8fafc 0%, #eef2ff 100%);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
        }
        #asistencia-supervisor .sup-att-header {
            background: linear-gradient(110deg, #0f1724 0%, #0b335a 35%, #0b7a64 100%);
            color: #f8fafc;
            padding: 14px 16px;
            border-radius: 14px;
            box-shadow: 0 12px 26px rgba(12, 33, 68, 0.22);
        }

        /* Cubredescanso weekly assignment list */
        #cubredWeeklyAssignCard {
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
        }
        #cubredWeeklyAssignCard .card-header {
            background: linear-gradient(120deg, #0f1724 0%, #162f4e 45%, #0f766e 100%);
            color: #f8fafc;
            border-bottom: none;
        }
        #cubredWeeklyAssignCard .card-header span {
            font-weight: 700;
            letter-spacing: 0.2px;
        }
        #cubredWeeklyAssignCard .card-body {
            background: linear-gradient(120deg, #f8fafc 0%, #eef2ff 100%);
        }
        .cubre-week-row {
            background: #ffffff;
            border: 1px solid rgba(148, 163, 184, 0.25);
            border-radius: 12px;
            padding: 12px 14px 10px;
            margin-bottom: 12px;
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
        }
        .cubre-week-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 8px;
        }
        .cubre-week-title {
            font-weight: 700;
            color: #0f1724;
        }
        .cubre-week-count {
            font-size: 12px;
            background: rgba(15, 23, 42, 0.06);
            color: #0f1724;
            padding: 4px 8px;
            border-radius: 999px;
        }
        .cubre-week-table {
            margin: 0;
            background: #ffffff;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid rgba(148, 163, 184, 0.25);
        }
        .cubre-week-table thead th {
            background: linear-gradient(90deg, rgba(37,99,235,0.12), rgba(14,165,233,0.05));
            color: #0f1724;
            font-weight: 700;
            border-bottom: 1px solid rgba(148, 163, 184, 0.2);
        }
        .cubre-week-table tbody td {
            vertical-align: middle;
            font-size: 13px;
        }
        .cubre-week-table tbody tr:hover {
            background: rgba(37, 99, 235, 0.05);
        }

        /* Cubredescansos section: richer surface and headers */
        #cubredescansos .card {
            background: linear-gradient(140deg, #ffffff 0%, #f7f9fc 100%);
            border: 1px solid rgba(148, 163, 184, 0.2);
        }
        #cubredescansos .card-header {
            background: linear-gradient(120deg, rgba(15,118,110,0.18), rgba(249,115,22,0.08));
            color: #0f172a;
            font-weight: 700;
            border-bottom: none;
        }
        #cubredescansos .card-body {
            background: linear-gradient(120deg, #f8fafc 0%, #eef2ff 100%);
        }

        /* Maquilas (Puntos) section: cards and detail panel */
        #maquilas .card {
            background: linear-gradient(140deg, #ffffff 0%, #f8fafc 100%);
        }
        #maquilasCards .card {
            border-radius: 18px;
            border: 1px solid rgba(15, 118, 110, 0.12);
            box-shadow: 0 16px 34px rgba(12, 23, 42, 0.12);
        }
        #maquilaDetalle .card-header {
            background: linear-gradient(120deg, #0f172a 0%, #0f766e 55%, #f97316 120%);
            color: #fff;
        }
        #maquilaDetalle .card-header .text-muted {
            color: rgba(248, 250, 252, 0.9) !important;
        }
        #maquilaDetalle .card-body {
            background: linear-gradient(120deg, #f8fafc 0%, #eef2ff 100%);
        }

        /* Reporte individual: emphasize hero */
        .report-header {
            background: linear-gradient(120deg, rgba(15,118,110,0.15), rgba(249,115,22,0.08));
            border-radius: 16px;
            padding: 16px 18px;
            box-shadow: var(--shadow-1);
        }
        .report-title {
            font-weight: 700;
            letter-spacing: 0.2px;
        }

        /* Attendance editor modal: calendar and controls */
        #editorAsistenciaModal .modal-body {
            background: linear-gradient(120deg, #f9fafb 0%, #eef2ff 100%);
        }
        #calendarioSemanal {
            background: #ffffff;
            border-radius: 14px;
            padding: 10px 12px;
            box-shadow: var(--shadow-1);
            border: 1px solid rgba(148, 163, 184, 0.18);
        }
        #editorControls {
            background: #ffffff;
            border-radius: 14px;
            padding: 12px 14px;
            box-shadow: var(--shadow-1);
            border: 1px solid rgba(148, 163, 184, 0.16);
        }

        /* Notificaciones: reduce flatness */
        #notificaciones-asistencia .card {
            background: linear-gradient(140deg, #ffffff 0%, #f8fafc 100%);
            border: 1px solid rgba(148, 163, 184, 0.2);
        }
        #asistencia-supervisor .sup-att-header h2 {
            font-weight: 700;
            letter-spacing: 0.2px;
        }
        #asistencia-supervisor .sup-att-controls .form-select,
        #asistencia-supervisor .sup-att-controls .btn {
            border-radius: 12px;
        }
        #asistencia-supervisor .sup-att-controls .form-select {
            background: rgba(255,255,255,0.92);
            border: 1px solid rgba(15, 23, 42, 0.08);
            box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
        }
        #asistencia-supervisor .sup-att-controls .btn-primary {
            background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
            box-shadow: 0 8px 18px rgba(234, 88, 12, 0.25);
        }
        #asistencia-supervisor .sup-att-controls .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
        }
        #asistencia-supervisor .sup-att-summary {
            background: #0b1726;
            color: #f8fafc;
            padding: 10px 14px;
            border-radius: 10px;
            box-shadow: 0 8px 18px rgba(12, 23, 45, 0.18);
            letter-spacing: 0.2px;
        }
        #asistencia-supervisor .sup-att-tools {
            background: rgba(255,255,255,0.9);
            border: 1px solid rgba(15,23,42,0.08);
            padding: 10px 12px;
            border-radius: 12px;
            box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
        }
        #asistencia-supervisor .sup-att-tools .input-group-text {
            background: linear-gradient(90deg, rgba(14, 116, 144, 0.18), rgba(15, 118, 110, 0.18));
            border: none;
            color: #0b2333;
        }
        #asistencia-supervisor .sup-att-tools .form-check-input {
            border-radius: 999px;
            box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
        }
        #asistencia-supervisor .sup-att-tools .form-check-input:checked {
            background-color: var(--success);
            border-color: var(--success);
        }
        #asistencia-supervisor .sup-att-legend .badge {
            border-radius: 999px;
            padding: 0.35rem 0.7rem;
            margin-right: 6px;
            box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
        }
        #asistencia-supervisor .accordion-item {
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
        }
        #asistencia-supervisor .accordion-button {
            background: linear-gradient(90deg, rgba(15, 118, 110, 0.18), rgba(14, 116, 144, 0.12));
            color: #0b2333;
            font-weight: 700;
            letter-spacing: 0.2px;
        }
        #asistencia-supervisor .accordion-button:not(.collapsed) {
            background: linear-gradient(90deg, rgba(14, 116, 144, 0.28), rgba(15, 118, 110, 0.22));
            color: #0b2333;
        }
        #asistencia-supervisor .accordion-body {
            background: #ffffff;
        }
        #asistencia-supervisor .table {
            border-radius: 10px;
            overflow: hidden;
        }
        #asistencia-supervisor .table thead th {
            background: linear-gradient(90deg, rgba(14, 116, 144, 0.16), rgba(14, 116, 144, 0.04));
            color: #0f1724;
            border: none;
        }
        #asistencia-supervisor .table tbody tr:hover {
            background: rgba(14, 116, 144, 0.06);
        }
        #asistencia-supervisor .sup-att-table .badge {
            border-radius: 8px;
            padding: 0.35rem 0.5rem;
        }
        #asistencia-supervisor .sup-att-table .badge.bg-success { background: #10b981 !important; }
        #asistencia-supervisor .sup-att-table .badge.bg-secondary { background: #94a3b8 !important; }

        /* Color coding by tipo (system palette) */
        #asistencia-supervisor .sup-att-row { transition: background 160ms ease, box-shadow 160ms ease; }
        #asistencia-supervisor .sup-att-row[data-tipo="presente"] {
            background: rgba(158, 203, 255, 0.28);
            box-shadow: inset 4px 0 0 rgba(158, 203, 255, 0.9);
        }
        #asistencia-supervisor .sup-att-row[data-tipo^="falta"],
        #asistencia-supervisor .sup-att-row[data-tipo="ausente"] {
            background: rgba(229, 57, 53, 0.18);
            box-shadow: inset 4px 0 0 rgba(229, 57, 53, 0.8);
        }
        #asistencia-supervisor .sup-att-row[data-tipo="vacacion"] {
            background: rgba(201, 179, 245, 0.28);
            box-shadow: inset 4px 0 0 rgba(201, 179, 245, 0.9);
        }
        #asistencia-supervisor .sup-att-row[data-tipo="incapacidad"] {
            background: rgba(155, 220, 132, 0.28);
            box-shadow: inset 4px 0 0 rgba(155, 220, 132, 0.9);
        }
        #asistencia-supervisor .sup-att-row[data-tipo^="permiso"] {
            background: rgba(215, 179, 140, 0.28);
            box-shadow: inset 4px 0 0 rgba(215, 179, 140, 0.9);
        }
        #asistencia-supervisor .sup-att-row[data-tipo="descanso"] {
            background: rgba(181, 181, 181, 0.2);
            box-shadow: inset 4px 0 0 rgba(181, 181, 181, 0.8);
        }
        #asistencia-supervisor .sup-att-row[data-tipo="txt"] {
            background: rgba(76, 175, 80, 0.2);
            box-shadow: inset 4px 0 0 rgba(76, 175, 80, 0.8);
        }
        #asistencia-supervisor .sup-att-row[data-tipo="sin_registro"] {
            background: rgba(52, 73, 94, 0.06);
            box-shadow: inset 4px 0 0 rgba(52, 73, 94, 0.35);
        }

        /* Hover tooltip for Turno schedule */
        .turno-tooltip { position: relative; display: inline-block; cursor: help; }
        .turno-tooltip::after {
            content: attr(data-horario);
            position: absolute;
            left: 50%;
            top: 100%;
            transform: translate(-50%, 8px);
            background: #0f1724;
            color: #ffffff;
            font-size: 0.75rem;
            line-height: 1.2;
            padding: 6px 8px;
            border-radius: 6px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 120ms ease;
            z-index: 2000;
        }
        .turno-tooltip::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 100%;
            transform: translate(-50%, 2px);
            border: 6px solid transparent;
            border-bottom-color: #0f1724;
            opacity: 0;
            transition: opacity 120ms ease;
            pointer-events: none;
            z-index: 2000;
        }
        .turno-tooltip:hover::after,
        .turno-tooltip:hover::before,
        .turno-tooltip:focus::after,
        .turno-tooltip:focus::before {
            opacity: 1;
        }

        /* Tooltip for Top Faltas badge */
        .topfaltas-tooltip { position: relative; display: inline-flex; align-items: center; cursor: help; }
        .topfaltas-tooltip-box {
            position: absolute;
            left: 50%;
            top: 100%;
            transform: translate(-50%, 10px);
            background: linear-gradient(180deg, #0f1724 0%, #111827 100%);
            color: #e2e8f0;
            border: 1px solid rgba(255,255,255,0.08);
            box-shadow: 0 12px 28px rgba(15,23,42,0.35);
            border-radius: 10px;
            padding: 10px 12px;
            min-width: 220px;
            max-height: 280px;
            overflow-y: auto;
            opacity: 0;
            pointer-events: none;
            transition: opacity 140ms ease, transform 140ms ease;
            z-index: 2200;
        }
        .topfaltas-tooltip:hover .topfaltas-tooltip-box,
        .topfaltas-tooltip:focus-within .topfaltas-tooltip-box {
            opacity: 1;
            transform: translate(-50%, 6px);
        }
        .topfaltas-tooltip-box::before {
            content: '';
            position: absolute;
            left: 50%;
            top: -6px;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-bottom-color: #0f1724;
        }
        .topfaltas-tooltip-title {
            font-weight: 700;
            font-size: 0.78rem;
            color: #f8fafc;
            letter-spacing: 0.2px;
            margin-bottom: 6px;
        }
        .topfaltas-tooltip-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 3px 0;
            border-top: 1px dashed rgba(255,255,255,0.08);
        }
        .topfaltas-tooltip-row:first-of-type { border-top: none; }
        .topfaltas-week {
            font-size: 0.72rem;
            font-weight: 600;
            color: #fde68a;
        }
        .topfaltas-day {
            font-size: 0.78rem;
            color: #e2e8f0;
            text-transform: capitalize;
        }

        /* Confirmation modal styling and motion */
        .confirm-action-modal .modal-content {
            border-radius: 18px;
            border: 1px solid rgba(15,23,42,0.08);
            box-shadow: 0 24px 60px rgba(15,23,42,0.25);
            overflow: hidden;
        }
        .confirm-action-modal .modal-header {
            display: grid;
            grid-template-columns: auto 1fr auto;
            align-items: center;
            gap: 14px;
            padding: 18px 20px 10px;
        }
        .confirm-action-modal .modal-body {
            padding: 8px 20px 16px;
            font-size: 0.98rem;
            color: #334155;
        }
        .confirm-action-modal .modal-footer {
            padding: 12px 20px 18px;
        }
        .confirm-hero {
            width: 54px;
            height: 54px;
            border-radius: 14px;
            display: grid;
            place-items: center;
            background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
            color: #fff;
            box-shadow: 0 10px 24px rgba(37,99,235,0.35);
            animation: confirmPulse 2.6s ease-in-out infinite;
        }
        .confirm-action-modal[data-variant="danger"] .confirm-hero {
            background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
            box-shadow: 0 10px 24px rgba(239,68,68,0.35);
        }
        .confirm-action-modal[data-variant="warning"] .confirm-hero {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            box-shadow: 0 10px 24px rgba(245,158,11,0.35);
        }
        .confirm-action-modal[data-variant="success"] .confirm-hero {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            box-shadow: 0 10px 24px rgba(16,185,129,0.35);
        }
        .confirm-action-modal[data-variant="info"] .confirm-hero {
            background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
            box-shadow: 0 10px 24px rgba(14,165,233,0.35);
        }
        .confirm-icon {
            font-size: 1.4rem;
        }
        .confirm-title-wrap {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .confirm-subtitle {
            font-size: 0.82rem;
            color: #94a3b8;
        }

        @keyframes confirmPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.04); }
            100% { transform: scale(1); }
        }

        /* Modal entrance motion */
        .modal.fade .modal-dialog {
            transform: translateY(14px) scale(0.98);
            transition: transform 220ms ease, opacity 220ms ease;
        }
        .modal.show .modal-dialog {
            transform: translateY(0) scale(1);
        }

        /* Subtle card motion to make the UI feel more dynamic */
        .card {
            transition: transform 180ms ease, box-shadow 180ms ease;
        }
        .card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 24px rgba(15,23,42,0.12);
        }

        /* Table row update flash (tickets) */
        .status-updated {
            animation: rowFlash 900ms ease;
        }
        @keyframes rowFlash {
            0% { background-color: rgba(37,99,235,0.18); }
            100% { background-color: transparent; }
        }

        /* Allow top faltas tooltip to escape table clipping */
        .topfaltas-table,
        .topfaltas-table .table {
            overflow: visible !important;
        }

        /* Tooltip for top incidencias list */
        .inc-top-tooltip { position: relative; display: inline-flex; align-items: center; cursor: help; }
        .inc-top-tooltip-box {
            position: absolute;
            left: 50%;
            top: 100%;
            transform: translate(-50%, 10px);
            background: linear-gradient(180deg, #111827 0%, #0f1724 100%);
            color: #e2e8f0;
            border: 1px solid rgba(255,255,255,0.08);
            box-shadow: 0 12px 28px rgba(15,23,42,0.35);
            border-radius: 10px;
            padding: 10px 12px;
            min-width: 200px;
            max-width: 260px;
            white-space: normal;
            opacity: 0;
            pointer-events: none;
            transition: opacity 140ms ease, transform 140ms ease;
            z-index: 2200;
        }
        .inc-top-tooltip:hover .inc-top-tooltip-box,
        .inc-top-tooltip:focus-within .inc-top-tooltip-box {
            opacity: 1;
            transform: translate(-50%, 6px);
        }
        .inc-top-tooltip-box::before {
            content: '';
            position: absolute;
            left: 50%;
            top: -6px;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-bottom-color: #111827;
        }
        .inc-top-tooltip-title {
            font-weight: 700;
            font-size: 0.78rem;
            color: #f8fafc;
            letter-spacing: 0.2px;
            margin-bottom: 6px;
        }
        .inc-top-tooltip-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 3px 0;
            border-top: 1px dashed rgba(255,255,255,0.08);
        }
        .inc-top-tooltip-row:first-of-type { border-top: none; }

        /* Group rows in bonus/extra tables */
        .table-group-row td {
            background: linear-gradient(90deg, rgba(15,23,42,0.06), rgba(15,23,42,0.02));
            font-weight: 700;
            color: #0f1724;
            letter-spacing: 0.2px;
        }

        .bonus-paid-toggle {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            user-select: none;
        }

        /* Allow top incidencias tooltip to escape card clipping and align to the right edge */
        .inc-top-list,
        .inc-top-list .list-group-item {
            overflow: visible !important;
        }
        .inc-top-list .inc-top-tooltip-box {
            left: auto;
            right: 0;
            transform: translate(0, 10px);
        }
        .inc-top-list .inc-top-tooltip:hover .inc-top-tooltip-box,
        .inc-top-list .inc-top-tooltip:focus-within .inc-top-tooltip-box {
            transform: translate(0, 6px);
        }
        .inc-top-list .inc-top-tooltip-box::before {
            left: auto;
            right: 16px;
            transform: none;
        }

          /* Prevent vertical/horizontal scroll inside employees table area
              - force table cells to wrap and hide any overflow to avoid scrollbars
              - keep table full-width with fixed layout so columns respect widths
          */
          body { overflow-x: hidden; }
          .empleados-table-wrap { overflow: hidden !important; }
          #tablaEmpleados { table-layout: fixed !important; width: 100% !important; }
          #tablaEmpleados th, #tablaEmpleados td { white-space: normal !important; word-wrap: break-word; overflow: hidden; text-overflow: ellipsis; }

          #tablaEmpleados .table-filters th { padding: .4rem .5rem; }
          #tablaEmpleados .filter-actions {
              display: flex;
              flex-direction: column;
              gap: 6px;
              width: 100%;
          }
          #tablaEmpleados .filter-actions .btn { width: 100%; }

        /* Notification badge */
        .notification-badge { background: #ef4444; color: #fff; border-radius: 999px; padding: 3px 7px; font-size: 0.72rem; position: absolute; top: -6px; right: -6px; box-shadow: 0 4px 12px rgba(14,30,37,0.08); }

        /* App notifications (toasts) */
        .app-notification {
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 10px;
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
            overflow: hidden;
            position: relative;
        }
        body.dark-mode .app-notification {
            background: #0b1220;
            border-color: rgba(255, 255, 255, 0.08);
        }

        /* Search/input focus improvements */
        .form-control:focus, .form-select:focus, .form-control:active { box-shadow: 0 6px 18px rgba(37,99,235,0.12); border-color: rgba(37,99,235,0.32); }

        /* Small helpers */
        .rounded-lg { border-radius: 12px !important; }
        .muted-sm { color: rgba(15,23,36,0.6); font-size: .9rem; }

        /* Sidebar modern look */
        .sidebar { background: linear-gradient(180deg, #07122b 0%, #061426 100%); border-right: 1px solid rgba(255,255,255,0.03); }
        .sidebar .nav-link { padding: 12px 18px; margin: 6px; border-radius: 10px; font-size:medium;}
        .sidebar .nav-link.active { background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.02); }

        /* Floating action / prominent primary button */
        .btn-fab { display:inline-flex; align-items:center; gap:8px; padding: .55rem .85rem; border-radius: 999px; box-shadow: 0 10px 24px rgba(37,99,235,0.14); }
        .btn-fab i { background: rgba(255,255,255,0.12); padding: 8px; border-radius: 999px; }

        /* Card headers with subtle glass effect */
        .card .card-header { background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00)); border-bottom: 1px solid rgba(0,0,0,0.04); }

        /* Bono y tiempo extra section */
        .bonus-extra-section .card { box-shadow: 0 10px 24px rgba(15,23,42,0.06); border: 1px solid rgba(15,23,42,0.06); }
        .bonus-extra-section .bonus-filter-card { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
        .bonus-extra-section .bonus-card .card-header { background: linear-gradient(90deg, #2563eb, #1e40af); color: #fff; }
        .bonus-extra-section .extra-card .card-header { background: linear-gradient(90deg, #f59e0b, #f97316); color: #1f2937; }
        .bonus-extra-section .card-header strong { letter-spacing: 0.2px; }
        .bonus-extra-section .table thead th { background: linear-gradient(90deg, rgba(15,23,42,0.06), rgba(15,23,42,0.02)); }

        /* Avatar / initials placeholder in tables */
        .avatar { width:34px; height:34px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-weight:700; color:#fff; background: linear-gradient(135deg,#2563eb,#1e40af); box-shadow: 0 6px 14px rgba(14,30,37,0.08); }
        .avatar.sm { width:28px; height:28px; font-size:0.78rem; }
        .avatar-cell { display:flex; align-items:center; gap:10px; }

        /* Refined table layout for readability */
        .table-sm td, .table-sm th { padding: .5rem .75rem; }
        .table .muted-small { color: rgba(15,23,36,0.55); font-size: .85rem; }

        /* Decorative page header accent */
        .page-accent { position: relative; overflow: visible; }
        .page-accent:before { content: ''; position: absolute; right: -30px; top: -16px; width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, rgba(37,99,235,0.08), rgba(37,99,235,0.02)); border-radius: 50%; z-index:0; pointer-events:none; }
        .page-accent > * { position: relative; z-index: 2; }

        /* Subtle responsive tweaks */
        @media (max-width: 768px) {
            .sidebar { min-height: auto; }
            .page-accent:before { display:none; }
            .btn-fab { width:100%; justify-content:center; }
            .supervisor-week-row { grid-template-columns: 1fr; }
        }

        /* Login modal refinements */
        .login-modal .modal-content { background: linear-gradient(180deg,#071127 0%, #041029 100%); color: #e6eef8; border: none; box-shadow: 0 18px 50px rgba(2,6,23,0.6); border-radius: 14px; }
        .login-modal .modal-header { border-bottom: none; background: transparent; color: #fff; }
        .login-modal .modal-body { padding: 1.5rem; }
        .login-logo-large { display:block; margin: 0 auto 12px auto; height: 96px; width: auto; filter: drop-shadow(0 8px 24px rgba(2,6,23,0.6)); }
        .login-hero { text-align:center; margin-bottom: 8px; }
        .login-sub { color: rgba(230,238,248,0.8); margin-bottom: 10px; font-size: .95rem; }
        .login-field .input-group-text { background: rgba(255,255,255,0.04); border: none; color: #e6eef8; }
        .login-field .form-control { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); color: #e6eef8; }
        .login-field .form-control::placeholder { color: rgba(230,238,248,0.6); }
        .login-modal .form-label { color: rgba(230,238,248,0.9); font-weight:600; }
        .login-modal .form-text { color: rgba(230,238,248,0.7); }
        .modal-backdrop.show { background: rgba(2,6,23,0.6); }
        .btn-outline-light { color:#fff; border-color: rgba(255,255,255,0.12); }
        .btn-outline-light:hover { background: rgba(255,255,255,0.06); }
        .login-modal .modal-footer { padding: 1rem; display:block; }
        .btn-close-white { filter: invert(1) brightness(1.2); }
        input[type="password"]::-ms-reveal,
        input[type="password"]::-ms-clear {
            filter: invert(1) brightness(1.6);
        }

        /* Login v2 intro-to-form animation */
        .login-dialog { max-width: none; }
        .login-dialog.modal-dialog {
            width: 100vw;
            max-width: 100vw;
            height: 100vh;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #initialLoginModal.modal {
            padding: 0 !important;
        }
        #initialLoginModal .modal-dialog {
            min-height: 100vh;
        }
        #initialLoginModal .modal-content {
            height: 100vh;
        }
        .login-v2 {
            background: radial-gradient(circle at 10% 10%, #0f172a 0%, #0b1220 40%, #020817 100%);
            border: none;
            border-radius: 0;
            height: 100vh;
            overflow: hidden;
        }
        .login-v2 .login-shell {
            position: relative;
            padding: 48px 22px 28px;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .login-v2 .login-shell::before,
        .login-v2 .login-shell::after {
            content: '';
            position: absolute;
            border-radius: 999px;
            filter: blur(0px);
            opacity: 0.6;
            pointer-events: none;
        }
        .login-v2 .login-shell::before {
            width: 360px;
            height: 360px;
            background: radial-gradient(circle at 30% 30%, rgba(56,189,248,0.35), rgba(56,189,248,0));
            left: -120px;
            top: -140px;
        }
        .login-v2 .login-shell::after {
            width: 420px;
            height: 420px;
            background: radial-gradient(circle at 70% 30%, rgba(236,72,153,0.28), rgba(236,72,153,0));
            right: -160px;
            bottom: -180px;
        }
        .login-stage {
            position: relative;
            display: grid;
            grid-template-columns: 1fr;
            gap: 6px;
            min-height: 280px;
            align-items: center;
            justify-items: center;
            align-content: center;
            transition: grid-template-columns 420ms cubic-bezier(.2,.9,.2,1);
            width: min(980px, 92vw);
            margin: 0 auto;
            transform: translateY(14px);
        }
        .login-intro-panel {
            display: flex;
            justify-content: center;
            align-items: center;
            transition: justify-content 420ms cubic-bezier(.2,.9,.2,1);
            align-self: center;
            width: 100%;
            transform: translateY(52px);
        }
        .login-intro-card {
            width: min(620px, 92%);
            box-shadow: 0 24px 70px rgba(2,6,23,0.55);
            border-radius: 24px;
            padding: 22px 24px 20px;
            text-align: center;
            color: #f8fafc;
            font-family: 'Space Grotesk', 'Poppins', sans-serif;
            transform: translateX(0) scale(1);
            transition: transform 620ms cubic-bezier(.12,.95,.18,1), box-shadow 620ms cubic-bezier(.12,.95,.18,1);
        }
        .login-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 999px;
            background: rgba(56,189,248,0.12);
            border: 1px solid rgba(56,189,248,0.25);
            color: #7dd3fc;
            font-weight: 600;
            font-size: 0.85rem;
            letter-spacing: 0.2px;
            margin-bottom: 18px;
        }
        .login-logo-hero {
            display: block;
            margin: 0 auto 14px;
            height: 84px;
            width: auto;
            filter: drop-shadow(0 12px 30px rgba(2,6,23,0.7));
        }
        .login-title {
            font-size: 2rem;
            font-weight: 700;
            margin: 0 0 10px 0;
            color: #f8fafc;
        }
        .login-access-btn {
            margin-top: 20px;
            padding: 12px 28px;
            font-weight: 700;
            letter-spacing: 0.3px;
            box-shadow: 0 12px 26px rgba(37,99,235,0.35);
        }
        .login-form-panel {
            opacity: 0;
            transform: translateX(40px) scale(0.98);
            pointer-events: none;
            transition: opacity 420ms ease, transform 420ms ease;
            width: 100%;
            justify-self: start;
        }
        .login-form-card {
            background: linear-gradient(180deg, rgba(15,23,42,0.96), rgba(2,6,23,0.96));
            border: 2px solid rgba(148,163,184,0.35);
            border-radius: 18px;
            padding: 22px;
            box-shadow: 0 18px 50px rgba(2,6,23,0.45), 0 0 0 1px rgba(56,189,248,0.18);
            max-width: 420px;
            margin-left: 0;
        }
        .login-form-header {
            margin-bottom: 18px;
        }
        .login-form-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #f8fafc;
        }
        .login-form-sub {
            font-size: 0.92rem;
            color: rgba(226,232,240,0.7);
        }
        .login-form-actions { margin-top: 16px; }
        .login-stage.is-unfolded {
            grid-template-columns: 0.85fr 1.15fr;
            gap: -3px;
            transform: translateY(0);
        }
        .login-stage.is-unfolded .login-intro-panel {
            justify-content: flex-start;
            transform: translateY(0);
        }
        .login-stage.is-unfolded .login-intro-card {
            width: 92%;
            border-radius: 20px 0 0 20px;
            transform: translateX(0) scale(0.98);
            box-shadow: 0 18px 50px rgba(2,6,23,0.45);
        }
        .login-stage.is-unfolded .login-form-card {
            border-radius: 0 20px 20px 0;
        }
        .login-stage.is-unfolded .login-form-panel {
            opacity: 1;
            transform: translateX(0) scale(1);
            pointer-events: auto;
            transition-delay: 80ms;
        }
        @media (max-width: 992px) {
            .login-stage {
                grid-template-columns: 1fr;
                min-height: auto;
            }
            .login-form-panel {
                opacity: 1;
                transform: none;
                pointer-events: auto;
            }
            .login-intro-card {
                transform: none !important;
                width: 100%;
                border-radius: 18px;
            }
        }
        @media (max-width: 600px) {
            .login-v2 .login-shell { padding: 14px; }
            .login-intro-card { padding: 24px; }
            .login-logo-hero { height: 86px; }
            .login-title { font-size: 1.6rem; }
        }

        /* Maquila card animations */
        .maquila-card { cursor: pointer; transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms; }
        .maquila-card .card-body { transition: transform 220ms, background 220ms; }
        .maquila-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
        .maquila-card:active { transform: translateY(-2px) scale(0.995); }
        .maquila-logo { width: 80px; height: 80px; object-fit: contain; transition: transform 220ms; }
        .maquila-card:hover .maquila-logo { transform: scale(1.05); }

        /* Animated buttons */
        .btn-animated { transition: transform 140ms ease, box-shadow 140ms ease; }
        .btn-animated:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
        .btn-animated:active { transform: translateY(-1px); }

    /* Ticket / suggestion status visuals */
    .badge-status { font-weight:600; transition: transform 240ms ease, box-shadow 240ms ease; }
    tr.status-updated { box-shadow: 0 6px 18px rgba(46,204,113,0.12); transform: translateY(-4px); transition: transform 320ms ease, box-shadow 320ms ease; }
    .suggestion-item { animation: fadeInUp 360ms ease both; }
    @keyframes fadeInUp { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: translateY(0); } }
    .status-pulse { animation: pulse 1200ms infinite; }
    @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(40,167,69,0.12);} 70% { box-shadow: 0 0 0 10px rgba(40,167,69,0);} 100% { box-shadow: 0 0 0 0 rgba(40,167,69,0);} }

        /* Slightly warmer cards and smoother borders */
        .card-header { background-color: #ffffff; border-bottom: 1px solid #f1f1f1; }

        /* Dim/secure overlay when showing secure login modals */
        #secureOverlay {
            position: fixed; inset: 0; display: none; z-index: 1045; pointer-events: none;
            background: rgba(255,255,255,0.96); backdrop-filter: blur(3px);
        }

        #appLoadingOverlay {
            position: fixed;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(15,23,42,0.22);
            backdrop-filter: blur(2px);
            z-index: 14000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 160ms ease;
        }
        #appLoadingOverlay.show {
            opacity: 1;
            pointer-events: auto;
        }
        .app-loading-card {
            display: flex;
            align-items: center;
            gap: 14px;
            background: #ffffff;
            border-radius: 14px;
            padding: 16px 20px;
            box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
            border: 1px solid rgba(15, 23, 42, 0.08);
        }
        .app-loading-spinner {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            border: 3px solid rgba(15, 23, 42, 0.18);
            border-top-color: #0b335a;
            animation: appSpin 0.9s linear infinite;
        }
        .app-loading-title {
            font-weight: 700;
            color: #0b1220;
        }
        .app-loading-msg {
            font-size: 0.9rem;
            color: #5b677a;
        }
        @keyframes appSpin {
            to { transform: rotate(360deg); }
        }

        /* Notifications minor tweaks */
        .app-notification { border-radius: 10px; overflow: hidden; }
        .row-removing {
            animation: rowRemoveFlash 240ms ease, rowRemoveFade 380ms ease 120ms forwards;
        }
        @keyframes rowRemoveFlash {
            0% { background: #ffecec; }
            60% { background: #fff5f5; }
            100% { background: transparent; }
        }
        @keyframes rowRemoveFade {
            from { opacity: 1; transform: translateX(0); }
            to { opacity: 0; transform: translateX(-12px); }
        }
        .chart-fixed-180 { height: 180px; }
        .chart-fixed-160 { height: 160px; }
        .chart-fixed-220 { height: 220px; }
        .attendance-notifications-list { display: flex; flex-direction: column; gap: 12px; }
        .attendance-notification-card {
            display: flex; align-items: flex-start; gap: 12px;
            border: 1px solid #f0f0f0; border-radius: 12px; padding: 10px 12px;
            background: #ffffff; box-shadow: 0 4px 14px rgba(0,0,0,0.04);
        }
        .attendance-notification-badge {
            min-width: 120px; text-align: center; font-weight: 700; letter-spacing: 0.2px; flex: 0 0 auto;
        }
        .attendance-notification-badge .badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: auto !important;
            padding: 0.35rem 0.7rem;
            line-height: 1.1;
            white-space: nowrap;
        }
        .attendance-notification-meta { font-size: 0.78rem; color: #6c757d; }
        .attendance-notification-message { font-size: 0.95rem; line-height: 1.35; }

        /* Notification center list (modal + sidebar) */
        .notif-center-list { display: flex; flex-direction: column; gap: 10px; }
        .notif-card {
            display: grid; grid-template-columns: 34px 1fr; gap: 10px;
            border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 12px;
            padding: 10px 12px; background: #ffffff;
            box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
        }
        .notif-card.is-read { opacity: 0.72; }
        .notif-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(37,99,235,0.08); }
        .notif-body { display: flex; flex-direction: column; gap: 6px; }
        .notif-meta { font-size: 0.78rem; color: #6c757d; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
        .notif-text { font-size: 0.96rem; line-height: 1.35; }
        .notif-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .notif-read-tag { font-size: 0.78rem; color: #6c757d; font-weight: 600; }

        body.dark-mode .notif-card { background: #0b1220; border-color: rgba(255,255,255,0.08); }
        body.dark-mode .notif-icon { background: rgba(37,99,235,0.15); }
        body.dark-mode .notif-meta, body.dark-mode .notif-read-tag { color: rgba(230,238,248,0.7); }

        /* Supervisor weekly completion grid */
        .supervisor-week-grid { display: grid; gap: 12px; }
        .supervisor-week-row { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 12px; }
        .supervisor-week-name { font-weight: 600; color: #0f1724; }
        .supervisor-week-pills { display: flex; flex-wrap: wrap; gap: 6px; }
        .week-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; font-size: 0.78rem; border: 1px solid transparent; cursor: pointer; }
        .week-pill.complete { background: #dcfce7; color: #166534; border-color: #86efac; }
        .week-pill.missing { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
        .week-pill.partial { background: #ffedd5; color: #9a3412; border-color: #fed7aa; }
        .week-pill .week-key { font-weight: 700; }
        .week-pill.is-pinned { box-shadow: 0 8px 18px rgba(15, 23, 36, 0.16); transform: translateY(-1px); }
        .week-popover {
            position: absolute;
            left: 50%;
            bottom: calc(100% + 10px);
            transform: translate(-50%, 8px);
            min-width: 190px;
            padding: 10px 12px;
            border-radius: 12px;
            background: #ffffff;
            color: #0f1724;
            box-shadow: 0 16px 40px rgba(15, 23, 36, 0.2);
            border: 1px solid rgba(15, 23, 36, 0.1);
            opacity: 0;
            pointer-events: none;
            transition: opacity 160ms ease, transform 160ms ease;
            z-index: 10;
        }
        .week-popover::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: -6px;
            width: 12px;
            height: 12px;
            background: #ffffff;
            border-right: 1px solid rgba(15, 23, 36, 0.1);
            border-bottom: 1px solid rgba(15, 23, 36, 0.1);
            transform: translateX(-50%) rotate(45deg);
        }
        .week-popover-title {
            display: block;
            font-weight: 700;
            font-size: 0.85rem;
            margin-bottom: 6px;
        }
        .week-popover-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.8rem;
            color: #334155;
        }
        .week-popover-row + .week-popover-row { margin-top: 6px; }
        .week-popover-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
        .week-popover-status.ok { color: #15803d; }
        .week-popover-status.bad { color: #b91c1c; }
        .week-popover-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
        .week-popover-btn { font-size: 0.72rem; padding: 2px 10px; border-radius: 999px; }
        .week-pill:hover .week-popover,
        .week-pill.is-pinned .week-popover {
            opacity: 1;
            transform: translate(-50%, 0);
            pointer-events: auto;
        }

        /* Print-only helper: when .print-target is applied, only that element prints */
        @media print {
            @page { margin: 0; }
            body * { visibility: hidden !important; }
            .print-target, .print-target * { visibility: visible !important; }
            body { margin: 0 !important; background: #fff !important; }
            .print-target {
                position: static !important;
                width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
                border: none !important;
                box-shadow: none !important;
                background: transparent !important;
            }
            .print-target .card-header { display: none !important; }
            .print-target .card-body { padding: 0 !important; }
            .print-target canvas { width: 100% !important; height: auto !important; }
        }

        /* Compact dashboard sizing */
        #Dashboard.Dashboard-compact .card-header {
            padding: 8px 12px;
            font-size: 0.92rem;
        }
        #Dashboard.Dashboard-compact .card-body {
            padding: 8px 10px;
        }
        #Dashboard.Dashboard-compact .stats-card .number {
            font-size: 1.4rem;
        }
        #Dashboard.Dashboard-compact .stats-card .label {
            font-size: 0.85rem;
        }
        #Dashboard.Dashboard-compact table.small,
        #Dashboard.Dashboard-compact .small {
            font-size: 0.82rem;
        }
        
        .card-header {
            background-color: white;
            border-bottom: 1px solid #eee;
            font-weight: 600;
            padding: 15px 20px;
            border-radius: 10px 10px 0 0 !important;
        }
        
        .table th {
            background-color: var(--light);
            font-weight: 600;
        }

        .corrections-table thead th {
            background: linear-gradient(90deg, rgba(37,99,235,0.12), rgba(14,165,233,0.06));
            border-bottom: 1px solid rgba(37,99,235,0.18);
        }
        .corrections-table tbody tr {
            transition: background-color 160ms ease, transform 160ms ease;
        }
        .corrections-table tbody tr:hover {
            background-color: rgba(37,99,235,0.06);
            transform: translateY(-1px);
        }
        .corr-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 2px 8px;
            border-radius: 999px;
            font-size: 0.78rem;
            font-weight: 600;
        }
        .corr-badge.vac { background: #dcfce7; color: #166534; }
        .corr-badge.falta { background: #fff7ed; color: #9a3412; }
        .corr-badge.ret { background: #fee2e2; color: #991b1b; }
        .corr-badge.other { background: #e0f2fe; color: #075985; }
        .pager-mini {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .pager-mini .btn {
            padding: 2px 8px;
            font-size: 0.8rem;
        }
        .pager-mini .pager-pages {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }
        .pager-mini .pager-ellipsis {
            font-size: 0.8rem;
            color: var(--muted);
            padding: 0 2px;
        }

        .badge-vacaciones {
            background-color: var(--success);
        }

        .badge-faltas {
            background-color: var(--warning);
        }

        .badge-retardos {
            background-color: var(--danger);
        }

        .employee-photo {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--light);
        }

        .vacation-progress {
            height: 10px;
        }

        .stats-card {
            text-align: center;
            padding: 20px;
            border-radius: 10px;
            color: white;
        }

        .stats-card.primary {
            background-color: var(--primary);
        }

        .stats-card.success {
            background-color: var(--success);
        }

        .stats-card.warning {
            background-color: var(--warning);
        }

        .stats-card.danger {
            background-color: var(--danger);
        }

        .stats-card .number {
            font-size: 2rem;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .stats-card .label {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        /* Supervisor row highlight (mas marcada) */
        .supervisor-row { background-color: #c4d7e9 !important; color: #fff !important; font-weight: 700; }

        /* Incident coloring for prefactura cells */
        /* falta -> rojo */
        .incidencia-falta { background-color: #f8d7da !important; }
        /* retraso -> naranja */
        .incidencia-retraso { background-color: #ffe5cc !important; }
        /* vacaciones -> verde */
        .incidencia-vacacion { background-color: #d4edda !important; }
        /* incapacidad -> amarillo */
        .incidencia-incapacidad { background-color: #fff3cd !important; }
        .incidencia-presente { background-color: transparent !important; }

        .btn-success {
            background-color: var(--success);
            border-color: var(--success);
        }

        .btn-warning {
            background-color: var(--warning);
            border-color: var(--warning);
        }

        .btn-danger {
            background-color: var(--danger);
            border-color: var(--danger);
        }

        .tipo-btn {
            text-align: left;
        }

        .btn-permiso-goce {
            border-color: #fd7e14;
            color: #fd7e14;
        }

        .btn-permiso-goce.active {
            background-color: #fd7e14;
            border-color: #fd7e14;
            color: #ffffff;
        }

        .btn-permiso-sin-goce {
            border-color: #795548;
            color: #795548;
        }

        .btn-permiso-sin-goce.active {
            background-color: #795548;
            border-color: #795548;
            color: #ffffff;
        }

        .tab-content {
            padding: 20px 0;
        }

        .nav-tabs .nav-link {
            color: var(--dark);
            font-weight: 500;
        }

        .nav-tabs .nav-link.active {
            color: var(--primary);
            font-weight: 600;
        }

        .search-box {
            position: relative;
        }

        .search-box i {
            position: absolute;
            left: 15px;
            top: 12px;
            color: #6c757d;
        }

        .search-box input {
            padding-left: 40px;
        }

        .employee-detail-photo {
            width: 150px;
            height: 150px;
            border-radius: 10px;
            object-fit: cover;
            border: 3px solid var(--light);
            margin: 0 auto 20px;
            display: block;
        }

        .evaluation-chart {
            height: 200px;
        }

        .action-buttons .btn {
            margin-right: 5px;
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--danger);
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .vacation-alert {
            background-color: #fff3cd;
            border-left: 4px solid var(--warning);
            padding: 10px 15px;
            margin-bottom: 15px;
            border-radius: 4px;
        }

        .file-upload-area {
            border: 2px dashed #dee2e6;
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            background-color: #f8f9fa;
            cursor: pointer;
            transition: all 0.3s;
        }

        .file-upload-area:hover {
            border-color: var(--primary);
            background-color: #e3f2fd;
        }

        .file-upload-area i {
            font-size: 3rem;
            color: #6c757d;
            margin-bottom: 15px;
        }

        .meeting-card {
            border: 1px solid #e9ecef;
            background: #fff;
        }
        .meeting-card .card-header {
            background: linear-gradient(90deg,#f8fbff,#f1f5ff);
        }
        .meeting-badge {
            font-size: 0.72rem;
        }
        .meeting-history-item {
            border-left: 3px solid #e9ecef;
            padding-left: 10px;
            margin-bottom: 10px;
        }

        .csv-preview {
            max-height: 300px;
            overflow-y: auto;
        }

        .form-control:focus, .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
        }

        /* Reporte individual layout */
        .report-pane .card { border-radius: 16px; }
        .report-header { display:flex; align-items:center; justify-content:space-between; margin-bottom: 12px; }
        .report-title { font-weight: 700; letter-spacing: 0.2px; margin-bottom: 4px; }
        .report-subtitle { color: #5b667a; margin-bottom: 0; }
        .report-detail { display: flex; flex-direction: column; gap: 18px; }
        .report-hero { display:flex; align-items:center; justify-content:space-between; gap: 16px; padding: 16px; border-radius: 16px; background: linear-gradient(120deg, #eef2ff, #f8fafc); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9); }
        .report-identity { display:flex; align-items:center; gap: 16px; }
        .report-photo-wrap { width: 88px; height: 88px; border-radius: 18px; padding: 6px; background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,0.08); }
        .report-photo-wrap .employee-detail-photo { width: 100%; height: 100%; border-radius: 12px; margin: 0; border: none; }
        .report-identity-meta h3 { margin-bottom: 6px; font-weight: 700; font-size: 1.35rem; }
        .report-quick-actions { display:flex; align-items:center; gap: 8px; }
        .report-identity-sub { display:flex; gap: 10px; align-items:center; flex-wrap: wrap; }
        .report-identity-sub.muted { color: #64748b; font-size: 1rem; }
        .pill { display:inline-flex; align-items:center; padding: 4px 10px; border-radius: 999px; background: rgba(37,99,235,0.12); color: #1e40af; font-weight: 600; font-size: 0.82rem; }
        .pill.subtle { background: rgba(15,23,42,0.08); color: #0f1724; }
        .report-info-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; padding: 16px 18px; background: #fff; border-radius: 14px; box-shadow: 0 6px 18px rgba(15,23,42,0.06); }
        .info-item { display:flex; flex-direction:column; gap: 6px; font-size: 1.05rem; }
        .info-item .label { color: #64748b; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.6px; }
        .metric-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
        .metric-card { background: #fff; border-radius: 14px; padding: 14px; text-align:center; box-shadow: 0 8px 20px rgba(15,23,42,0.08); }
        .metric-value { font-size: 1.6rem; font-weight: 700; }
        .metric-label { color: #5b667a; font-size: 0.85rem; }

        /* Employee profile modal layout */
        .profile-layout { display:grid; grid-template-columns: 280px 1fr; gap: 18px; }
        .profile-photo-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 8px 22px rgba(15,23,42,0.08); }
        .profile-details-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 8px 22px rgba(15,23,42,0.08); }
        .profile-title-row { display:flex; justify-content:space-between; gap: 10px; align-items:center; margin-bottom: 12px; }
        .profile-name { margin-bottom: 2px; font-weight: 700; }
        .profile-subtitle { color: #64748b; font-weight: 600; }
        .soft-badge { display:inline-flex; align-items:center; padding: 4px 10px; border-radius: 999px; background: rgba(37,99,235,0.12); color: #1e40af; font-weight: 600; font-size: 0.8rem; }
        .profile-details-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
        .profile-stat-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 14px; }
        .profile-section { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 8px 22px rgba(15,23,42,0.06); }
        .profile-cubres-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.4px; color: #64748b; }
        .profile-cubres-table td { vertical-align: middle; }
        .profile-cubres-table .profile-cubre-point { min-width: 180px; }

        /* Subtle animations */
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .animate-in { animation: fadeUp .45s ease both; }

        @media (max-width: 992px) {
            .profile-layout { grid-template-columns: 1fr; }
            .report-hero { flex-direction: column; align-items: flex-start; }
            .report-quick-actions { width: 100%; display:flex; justify-content:flex-start; }
        }

        /* Dashboard visual refresh */
        #Dashboard.dashboard-surface {
            position: relative;
            border-radius: 18px;
            padding: 18px;
            background: linear-gradient(140deg, rgba(8, 15, 30, 0.96), rgba(9, 20, 38, 0.92));
            color: #e2e8f0;
            overflow: hidden;
        }
        #Dashboard.dashboard-surface::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.18), transparent 45%),
                        radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.16), transparent 50%),
                        radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.12), transparent 55%);
            opacity: 0.9;
            pointer-events: none;
        }
        #Dashboard.dashboard-surface > * { position: relative; z-index: 1; }
        #Dashboard.dashboard-surface h2 { color: #f8fafc; letter-spacing: 0.3px; }
        #Dashboard.dashboard-surface .card {
            background: rgba(255,255,255,0.92);
            border: 1px solid rgba(255,255,255,0.2);
            box-shadow: 0 16px 32px rgba(2, 6, 23, 0.35);
        }
        #Dashboard.dashboard-surface .card-header {
            background: linear-gradient(90deg, rgba(15, 23, 42, 0.1), rgba(37, 99, 235, 0.08));
            color: #0f1724;
        }
        #Dashboard.dashboard-surface .stats-card {
            border-radius: 16px;
            box-shadow: 0 14px 30px rgba(2, 6, 23, 0.35);
        }
        #Dashboard.dashboard-surface .stats-card .label { color: rgba(248, 250, 252, 0.8); }
        #Dashboard.dashboard-surface .btn-outline-secondary,
        #Dashboard.dashboard-surface .btn-outline-primary {
            border-color: rgba(255,255,255,0.25);
            color: #e2e8f0;
        }
        #Dashboard.dashboard-surface .btn-outline-secondary:hover,
        #Dashboard.dashboard-surface .btn-outline-primary:hover {
            background: rgba(255,255,255,0.08);
        }
        #Dashboard.dashboard-surface .dropdown-menu {
            border-radius: 12px;
            box-shadow: 0 14px 28px rgba(2,6,23,0.25);
        }

        /* Notifications section visual refresh */
        #notificaciones-asistencia.notifications-surface {
            position: relative;
            border-radius: 18px;
            padding: 18px;
            background: linear-gradient(140deg, rgba(7, 14, 28, 0.96), rgba(10, 18, 34, 0.92));
            color: #e2e8f0;
            overflow: hidden;
        }
        #notificaciones-asistencia.notifications-surface::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 12% 0%, rgba(14, 165, 233, 0.18), transparent 45%),
                        radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.14), transparent 50%),
                        radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.12), transparent 55%);
            opacity: 0.9;
            pointer-events: none;
        }
        #notificaciones-asistencia.notifications-surface > * { position: relative; z-index: 1; }
        #notificaciones-asistencia.notifications-surface h2 { color: #f8fafc; letter-spacing: 0.3px; }
        #notificaciones-asistencia.notifications-surface .card {
            background: rgba(255,255,255,0.92);
            border: 1px solid rgba(255,255,255,0.2);
            box-shadow: 0 16px 32px rgba(2, 6, 23, 0.32);
        }
        #notificaciones-asistencia.notifications-surface .card-header {
            background: linear-gradient(90deg, rgba(15, 23, 42, 0.08), rgba(14, 165, 233, 0.08));
            color: #0f1724;
        }
        #notificaciones-asistencia.notifications-surface .attendance-notification-card {
            border-radius: 14px;
            border: 1px solid rgba(15, 23, 42, 0.08);
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            box-shadow: 0 10px 22px rgba(15,23,42,0.08);
        }
        #notificaciones-asistencia.notifications-surface .attendance-notification-badge {
            border-radius: 999px;
            background: rgba(37,99,235,0.12);
            color: #1e3a8a;
            padding: 6px 10px;
        }
        #notificaciones-asistencia.notifications-surface .notifications-hero {
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap: 16px;
            padding: 16px 18px;
            border-radius: 16px;
                background: linear-gradient(120deg, #0f172a, rgb(5 22 80 / 81%));
            box-shadow: 0 18px 36px rgba(2, 6, 23, 0.35);
        }
        #notificaciones-asistencia.notifications-surface .notifications-hero h2 {
            margin: 0;
            color: #f8fafc;
            font-weight: 700;
            letter-spacing: 0.2px;
        }
        #notificaciones-asistencia.notifications-surface .notifications-subtitle {
            color: rgba(226,232,240,0.75);
            margin: 0;
        }
        #notificaciones-asistencia.notifications-surface .hero-actions .btn-outline-light {
            border-color: rgba(255,255,255,0.35);
            color: #f8fafc;
        }
        #notificaciones-asistencia.notifications-surface .hero-actions .btn-outline-light:hover {
            background: rgba(255,255,255,0.12);
        }
        #notificaciones-asistencia.notifications-surface .notifications-grid {
            display:grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 18px;
        }
        #notificaciones-asistencia.notifications-surface .notif-panel {
            border-radius: 18px;
            overflow: hidden;
        }

        /* Unified section styling (non-dashboard) */
        .tab-pane:not(#Dashboard) {
            background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.98));
            border: 1px solid rgba(15, 23, 42, 0.06);
            border-radius: 16px;
            padding: 16px;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
        }
        .tab-pane:not(#Dashboard) .card {
            background: var(--surface);
            border: 1px solid rgba(15, 23, 42, 0.08);
            box-shadow: var(--shadow-1);
        }
        .tab-pane:not(#Dashboard) .card-header {
            background: linear-gradient(180deg, #07122b 0%, #061426 100%);
            color: #f8fafc;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }
        .tab-pane:not(#Dashboard) .table-responsive {
            background: var(--surface);
            box-shadow: var(--shadow-1);
        }
        .tab-pane:not(#Dashboard) .table thead th {
            background: rgba(15, 23, 42, 0.04);
            color: var(--secondary);
        }
        .tab-pane:not(#Dashboard) .table tbody tr:nth-child(even) {
            background: rgba(15, 23, 42, 0.02);
        }
        .tab-pane:not(#Dashboard) .report-header {
            background: linear-gradient(120deg, rgba(15, 23, 42, 0.04), rgba(15, 118, 110, 0.08));
            box-shadow: var(--shadow-1);
        }

        /* Neutralize heavy section-specific treatments */
        .tab-pane:not(#Dashboard) #asistencia-supervisor.supervisor-attendance,
        .tab-pane:not(#Dashboard) #notificaciones-asistencia.notifications-surface {
            background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
            color: var(--ink);
        }
        .tab-pane:not(#Dashboard) #asistencia-supervisor.supervisor-attendance::before,
        .tab-pane:not(#Dashboard) #notificaciones-asistencia.notifications-surface::before {
            display: none;
        }
        .tab-pane:not(#Dashboard) #asistencia-supervisor .sup-att-header,
        .tab-pane:not(#Dashboard) #maquilaDetalle .card-header,
        .tab-pane:not(#Dashboard) #cubredWeeklyAssignCard .card-header,
        .tab-pane:not(#Dashboard) #notificaciones-asistencia.notifications-surface .notifications-hero {
            background: linear-gradient(180deg, #07122b 0%, #061426 100%);
            color: #f8fafc;
            box-shadow: 0 10px 24px rgba(2, 6, 23, 0.2);
        }
        .tab-pane:not(#Dashboard) #cubredescansos .card,
        .tab-pane:not(#Dashboard) #maquilas .card,
        .tab-pane:not(#Dashboard) #maquilasCards .card,
        .tab-pane:not(#Dashboard) #notificaciones-asistencia .card {
            background: var(--surface);
            border: 1px solid rgba(15, 23, 42, 0.08);
            box-shadow: var(--shadow-1);
        }
        .tab-pane:not(#Dashboard) #maquilaDetalle .card-body,
        .tab-pane:not(#Dashboard) #cubredescansos .card-body,
        .tab-pane:not(#Dashboard) #cubredWeeklyAssignCard .card-body,
        .tab-pane:not(#Dashboard) #editorAsistenciaModal .modal-body {
            background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
        }
        #notificaciones-asistencia.notifications-surface .notif-list {
            display:flex;
            flex-direction:column;
            gap: 12px;
        }
        #notificaciones-asistencia.notifications-surface .empty-state {
            display:flex;
            flex-direction:column;
            align-items:center;
            justify-content:center;
            gap: 8px;
            color: #64748b;
            padding: 26px 12px;
            border: 1px dashed rgba(148,163,184,0.35);
            border-radius: 14px;
            background: rgba(248,250,252,0.6);
        }
        #notificaciones-asistencia.notifications-surface .empty-state i {
            font-size: 1.4rem;
            color: rgba(37,99,235,0.7);
        }
        #notificaciones-asistencia.notifications-surface .attendance-notification-card {
            position: relative;
            overflow: hidden;
        }
        #notificaciones-asistencia.notifications-surface .attendance-notification-card::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg, transparent 0%, rgba(37,99,235,0.08) 100%);
            opacity: 0.6;
            pointer-events: none;
        }

        /* Extra normalization for section-specific components */
        .tab-pane:not(#Dashboard) .report-hero,
        .tab-pane:not(#Dashboard) .report-info-grid,
        .tab-pane:not(#Dashboard) .metric-card,
        .tab-pane:not(#Dashboard) .profile-photo-card,
        .tab-pane:not(#Dashboard) .profile-details-card,
        .tab-pane:not(#Dashboard) .profile-section,
        .tab-pane:not(#Dashboard) .notif-card,
        .tab-pane:not(#Dashboard) .attendance-notification-card,
        .tab-pane:not(#Dashboard) .cubre-week-row,
        .tab-pane:not(#Dashboard) .week-popover,
        .tab-pane:not(#Dashboard) .sup-att-summary,
        .tab-pane:not(#Dashboard) .sup-att-tools,
        .tab-pane:not(#Dashboard) .report-header,
        .tab-pane:not(#Dashboard) .meeting-card {
            background: var(--surface);
            border: 1px solid rgba(15, 23, 42, 0.08);
            box-shadow: var(--shadow-1);
        }
        .tab-pane:not(#Dashboard) .report-hero,
        .tab-pane:not(#Dashboard) .report-info-grid {
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), var(--shadow-1);
        }
        .tab-pane:not(#Dashboard) .profile-cubres-table th,
        .tab-pane:not(#Dashboard) .cubre-week-table thead th,
        .tab-pane:not(#Dashboard) .corrections-table thead th {
            background: rgba(15, 23, 42, 0.04);
            color: var(--secondary);
            border-bottom: 1px solid rgba(15, 23, 42, 0.06);
        }
        .tab-pane:not(#Dashboard) .bonus-extra-section .card-header,
        .tab-pane:not(#Dashboard) .bonus-extra-section .bonus-card .card-header,
        .tab-pane:not(#Dashboard) .bonus-extra-section .extra-card .card-header,
        .tab-pane:not(#Dashboard) .meeting-card .card-header,
        .tab-pane:not(#Dashboard) .report-header,
        .tab-pane:not(#Dashboard) .report-hero {
            background: linear-gradient(180deg, #07122b 0%, #061426 100%);
            color: #f8fafc;
        }
        .tab-pane:not(#Dashboard) #asistencia-supervisor .accordion-button,
        .tab-pane:not(#Dashboard) #asistencia-supervisor .accordion-button:not(.collapsed) {
            background: rgba(15, 23, 42, 0.04);
            color: var(--secondary);
        }
        .tab-pane:not(#Dashboard) #notificaciones-asistencia.notifications-surface .attendance-notification-card::after {
            display: none;
        }

        /* Dark mode normalization for light section overrides */
        body.dark-mode .card-header { background-color: #0f172a !important; color: #e6eef8 !important; border-bottom-color: rgba(255,255,255,0.08) !important; }
        body.dark-mode .table th { background-color: rgba(255,255,255,0.05) !important; color: #e6eef8; }
        body.dark-mode .table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
        body.dark-mode .nav-tabs .nav-link { color: rgba(226,232,240,0.8) !important; }
        body.dark-mode .nav-tabs .nav-link.active { color: #e6eef8 !important; }
        body.dark-mode .input-group-text { background: rgba(255,255,255,0.06); color: #e6eef8; border-color: rgba(255,255,255,0.08); }
        body.dark-mode .btn-outline-secondary { color: #e6eef8; border-color: rgba(255,255,255,0.25); }
        body.dark-mode .btn-outline-secondary:hover { background: rgba(255,255,255,0.08); }
        body.dark-mode .btn-outline-light { color: #e6eef8; border-color: rgba(255,255,255,0.35); }
        body.dark-mode .btn-outline-light:hover { background: rgba(255,255,255,0.12); }
        body.dark-mode .btn-outline-primary { color: #93c5fd; border-color: rgba(147,197,253,0.5); }
        body.dark-mode .btn-outline-primary:hover { background: rgba(59,130,246,0.15); }
        body.dark-mode .badge.bg-secondary,
        body.dark-mode .badge.bg-dark { color: #f8fafc; }
        body.dark-mode .btn-close { filter: invert(1); }

        body.dark-mode .tab-pane:not(#Dashboard) {
            background: linear-gradient(180deg, rgba(12, 18, 30, 0.98), rgba(10, 16, 28, 0.98));
            border-color: rgba(255,255,255,0.06);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
        }
        body.dark-mode .tab-pane:not(#Dashboard) .card,
        body.dark-mode .tab-pane:not(#Dashboard) .table-responsive,
        body.dark-mode .tab-pane:not(#Dashboard) .report-hero,
        body.dark-mode .tab-pane:not(#Dashboard) .report-info-grid,
        body.dark-mode .tab-pane:not(#Dashboard) .metric-card,
        body.dark-mode .tab-pane:not(#Dashboard) .profile-photo-card,
        body.dark-mode .tab-pane:not(#Dashboard) .profile-details-card,
        body.dark-mode .tab-pane:not(#Dashboard) .profile-section,
        body.dark-mode .tab-pane:not(#Dashboard) .notif-card,
        body.dark-mode .tab-pane:not(#Dashboard) .attendance-notification-card,
        body.dark-mode .tab-pane:not(#Dashboard) .cubre-week-row,
        body.dark-mode .tab-pane:not(#Dashboard) .week-popover,
        body.dark-mode .tab-pane:not(#Dashboard) .sup-att-summary,
        body.dark-mode .tab-pane:not(#Dashboard) .sup-att-tools,
        body.dark-mode .tab-pane:not(#Dashboard) .meeting-card {
            background: #0b1220;
            border-color: rgba(255,255,255,0.08);
            box-shadow: none;
            color: #e6eef8;
        }
        body.dark-mode .tab-pane:not(#Dashboard) .table thead th,
        body.dark-mode .tab-pane:not(#Dashboard) .profile-cubres-table th,
        body.dark-mode .tab-pane:not(#Dashboard) .cubre-week-table thead th,
        body.dark-mode .tab-pane:not(#Dashboard) .corrections-table thead th {
            background: rgba(255,255,255,0.06);
            color: #e6eef8;
            border-bottom-color: rgba(255,255,255,0.08);
        }
        body.dark-mode .tab-pane:not(#Dashboard) #asistencia-supervisor .accordion-button,
        body.dark-mode .tab-pane:not(#Dashboard) #asistencia-supervisor .accordion-button:not(.collapsed) {
            background: rgba(255,255,255,0.04);
            color: #e6eef8;
        }

        body.dark-mode #notificaciones-asistencia.notifications-surface {
            background: linear-gradient(140deg, rgba(8, 15, 30, 0.98), rgba(10, 18, 34, 0.96));
            color: #e6eef8;
        }
        body.dark-mode #notificaciones-asistencia.notifications-surface::before { display: block; opacity: 0.6; }
        body.dark-mode #notificaciones-asistencia.notifications-surface .card {
            background: #0b1220;
            border-color: rgba(255,255,255,0.08);
        }
        body.dark-mode #notificaciones-asistencia.notifications-surface .card-header {
            background: rgba(255,255,255,0.03);
            color: #e6eef8;
        }
        body.dark-mode #notificaciones-asistencia.notifications-surface .attendance-notification-card {
            background: #0f172a;
            border-color: rgba(255,255,255,0.08);
        }
        body.dark-mode #notificaciones-asistencia.notifications-surface .attendance-notification-badge {
            background: rgba(59,130,246,0.2);
            color: #e6eef8;
        }
        body.dark-mode #notificaciones-asistencia.notifications-surface .empty-state {
            color: rgba(226,232,240,0.75);
            border-color: rgba(255,255,255,0.18);
            background: rgba(15,23,42,0.4);
        }

        body.dark-mode .meeting-card .card-header { background: rgba(255,255,255,0.04); }
        body.dark-mode .meeting-history-item { border-left-color: rgba(255,255,255,0.15); }

        body.dark-mode .file-upload-area {
            background: #0f172a;
            border-color: rgba(255,255,255,0.2);
            color: #e6eef8;
        }
        body.dark-mode .file-upload-area:hover {
            background: #111827;
            border-color: rgba(59,130,246,0.5);
        }
        body.dark-mode .file-upload-area i { color: rgba(226,232,240,0.7); }

        body.dark-mode .vacation-alert {
            background: rgba(245,158,11,0.16);
            border-left-color: #f59e0b;
            color: #f8fafc;
        }
        body.dark-mode .employee-photo,
        body.dark-mode .employee-detail-photo { border-color: rgba(255,255,255,0.12); }

        body.dark-mode .supervisor-row { background-color: rgba(59,130,246,0.25) !important; color: #f8fafc !important; }
        body.dark-mode .incidencia-falta { background-color: rgba(239,68,68,0.2) !important; }
        body.dark-mode .incidencia-retraso { background-color: rgba(245,158,11,0.2) !important; }
        body.dark-mode .incidencia-vacacion { background-color: rgba(34,197,94,0.2) !important; }
        body.dark-mode .incidencia-incapacidad { background-color: rgba(234,179,8,0.2) !important; }

        /* Dark mode hard overrides (ensure no white panels remain) */
        body.dark-mode .card-body,
        body.dark-mode .table-responsive,
        body.dark-mode .table,
        body.dark-mode .list-group,
        body.dark-mode .list-group-item,
        body.dark-mode .accordion-body,
        body.dark-mode .offcanvas,
        body.dark-mode .dropdown-menu,
        body.dark-mode .popover,
        body.dark-mode .tooltip-inner,
        body.dark-mode .profile-photo-card,
        body.dark-mode .profile-details-card,
        body.dark-mode .profile-section,
        body.dark-mode .metric-card,
        body.dark-mode .report-info-grid,
        body.dark-mode .report-hero,
        body.dark-mode .report-header,
        body.dark-mode .attendance-notification-card,
        body.dark-mode .notif-card,
        body.dark-mode .cubre-week-row,
        body.dark-mode .week-popover,
        body.dark-mode .sup-att-tools,
        body.dark-mode .sup-att-summary,
        body.dark-mode .meeting-card {
            background: #0b1220 !important;
            color: #e6eef8 !important;
            border-color: rgba(255,255,255,0.08) !important;
        }
        body.dark-mode .table thead th,
        body.dark-mode .table tbody td,
        body.dark-mode .table tbody th {
            color: #e6eef8 !important;
            border-color: rgba(255,255,255,0.08) !important;
        }
        body.dark-mode .table tbody tr {
            background: transparent;
        }
        body.dark-mode .table tbody tr:nth-child(even) {
            background: rgba(255,255,255,0.03) !important;
        }
        body.dark-mode .table tbody tr:hover {
            background: rgba(255,255,255,0.06) !important;
        }
        body.dark-mode .card,
        body.dark-mode .card-header,
        body.dark-mode .modal-content,
        body.dark-mode .modal-header,
        body.dark-mode .modal-body,
        body.dark-mode .modal-footer {
            background: #0b1220 !important;
            color: #e6eef8 !important;
            border-color: rgba(255,255,255,0.08) !important;
        }
        body.dark-mode .card-header {
            background: #0f172a !important;
        }
        body.dark-mode .nav-tabs .nav-link,
        body.dark-mode .nav-pills .nav-link {
            color: rgba(226,232,240,0.85) !important;
        }
        body.dark-mode .nav-tabs .nav-link.active,
        body.dark-mode .nav-pills .nav-link.active {
            background: rgba(59,130,246,0.25) !important;
            color: #f8fafc !important;
        }
        body.dark-mode .form-control,
        body.dark-mode .form-select,
        body.dark-mode .input-group-text {
            background: #0f172a !important;
            color: #e6eef8 !important;
            border-color: rgba(255,255,255,0.12) !important;
        }
        body.dark-mode .form-control::placeholder,
        body.dark-mode .form-select::placeholder {
            color: rgba(226,232,240,0.6) !important;
        }
        body.dark-mode .btn-light {
            background: rgba(255,255,255,0.1) !important;
            color: #e6eef8 !important;
            border-color: rgba(255,255,255,0.2) !important;
        }
        body.dark-mode .btn-outline-dark {
            color: #e6eef8 !important;
            border-color: rgba(255,255,255,0.25) !important;
        }
        body.dark-mode .pill,
        body.dark-mode .soft-badge {
            background: rgba(59,130,246,0.25) !important;
            color: #e6eef8 !important;
        }
        body.dark-mode .badge-status,
        body.dark-mode .badge {
            color: #0b0f18 !important;
        }
        body.dark-mode .notification-badge {
            color: #0b0f18 !important;
        }
        body.dark-mode .empty-state,
        body.dark-mode .report-subtitle,
        body.dark-mode .profile-subtitle,
        body.dark-mode .notif-meta,
        body.dark-mode .attendance-notification-meta {
            color: rgba(226,232,240,0.7) !important;
        }
    


