/* Theme controls -------------------------------------------------------- */
:root[data-theme="light"] { color-scheme:light; }
:root[data-theme="dark"] {
    color-scheme:dark;
    --blue:#6b9df2;
    --blue-dark:#4f83df;
    --ink:#e8eef8;
    --muted:#9aa9be;
    --line:#293950;
    --soft:#091321;
    --white:#111e30;
    --danger:#ff938a;
    --warning:#ffc66e;
}
.theme-dark-only { display:none!important; }
.theme-toggle { display:flex; align-items:center; justify-content:flex-start; width:100%; min-height:40px; gap:9px; margin-top:13px; padding:0 10px; color:#dce7ff; background:#172b4e; border:1px solid #2b4268; border-radius:8px; font:inherit; font-size:12px; font-weight:700; cursor:pointer; transition:background .18s ease,border-color .18s ease,transform .18s ease; }
.theme-toggle:hover { background:#203a64; border-color:#3d5b8a; }
.theme-toggle:active { transform:translateY(1px); }
.theme-toggle:focus-visible { outline:3px solid #8eb4ff; outline-offset:2px; }
.theme-toggle-icon { display:grid; place-items:center; width:20px; height:20px; }
.theme-toggle-icon img { display:block; width:18px; height:18px; }
.theme-icon-sun { display:none; }
.theme-toggle.is-compact { width:40px; min-height:40px; margin:0; padding:0; justify-content:center; }
.theme-toggle.is-compact .theme-toggle-label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.mobile-topbar-actions { display:flex; align-items:center; gap:8px; }
.login-theme-control { position:fixed; top:max(18px,env(safe-area-inset-top)); right:max(18px,env(safe-area-inset-right)); z-index:10; }
.login-theme-control .theme-toggle { background:rgba(17,36,68,.72); border-color:rgba(174,199,239,.3); backdrop-filter:blur(8px); }

:root[data-theme="dark"] .theme-icon-moon { display:none; }
:root[data-theme="dark"] .theme-icon-sun { display:grid; }
:root[data-theme="dark"] .theme-light-only { display:none!important; }
:root[data-theme="dark"] .theme-dark-only { display:block!important; }

/* Dark surfaces -------------------------------------------------------- */
:root[data-theme="dark"] body { background:#091321; }
:root[data-theme="dark"] .main { background:radial-gradient(circle at 85% 0,rgba(42,83,143,.12),transparent 34%),#091321; }
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .employee-hero,
:root[data-theme="dark"] .detail-card { border-color:#293950; box-shadow:0 5px 22px rgba(0,0,0,.18); }
:root[data-theme="dark"] input,
:root[data-theme="dark"] select { color:#e8eef8; background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] input::placeholder { color:#71829a; }
:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] select:focus { border-color:#6b9df2; box-shadow:0 0 0 3px rgba(107,157,242,.16); }
:root[data-theme="dark"] th { color:#9cacc2; background:#162338; }
:root[data-theme="dark"] .employee-table tbody tr:hover { background:#16263c; }
:root[data-theme="dark"] .filter-panel { border-color:#304158; box-shadow:0 9px 28px rgba(0,0,0,.22); }
:root[data-theme="dark"] .advanced-filter-toggle { color:#c0ccdc; }
:root[data-theme="dark"] .advanced-filter-toggle:hover,
:root[data-theme="dark"] .advanced-filter-checkbox:checked + .advanced-filter-bar .advanced-filter-toggle { color:#8db6fa; }
:root[data-theme="dark"] .advanced-filter-toggle { background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] .advanced-filter-toggle:hover { background:#213653; border-color:#54739f; }
:root[data-theme="dark"] .advanced-filter-checkbox:checked + .advanced-filter-bar .advanced-filter-toggle { background:#1b3559; border-color:#416b9f; }
:root[data-theme="dark"] .employee-filter-export { color:#87d7ad; background:#123427; border-color:#286047; }
:root[data-theme="dark"] .employee-filter-export:hover { color:#b2efce; background:#194630; border-color:#3d835f; }
:root[data-theme="dark"] .excel-download-button { color:#87d7ad; background:#123427; border-color:#286047; }
:root[data-theme="dark"] .excel-download-button:hover { color:#b2efce; background:#194630; border-color:#3d835f; }
:root[data-theme="dark"] .advanced-filter-toggle .advanced-filter-sliders { color:#a8c7fb; background:#1b3559; }
:root[data-theme="dark"] .advanced-filter-clear { color:#9aa9be; }
:root[data-theme="dark"] .advanced-filter-clear:hover { color:#dce8ff; background:#1b304b; }
:root[data-theme="dark"] .employee-advanced-filters { background:linear-gradient(145deg,#101d2f,#0d1929); border-color:#304158; box-shadow:inset 0 1px 0 rgba(255,255,255,.025); }
:root[data-theme="dark"] .advanced-filter-heading,
:root[data-theme="dark"] .advanced-filter-group + .advanced-filter-group { border-color:#293950; }
:root[data-theme="dark"] .advanced-filter-heading .advanced-filter-status { color:#c9dcff; background:#1c3455; }
:root[data-theme="dark"] .advanced-filter-group legend { color:#9aa9be; }
:root[data-theme="dark"] .employee-sticky-controls { background:linear-gradient(to bottom,#091321 88%,rgba(9,19,33,0)); }
:root[data-theme="dark"] .clear-button { color:#c0ccdc; background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] .clear-button:hover { color:#dce8ff; background:#213653; border-color:#54739f; }
:root[data-theme="dark"] .filter-chip { color:#c9dcff; background:#1c3455; border-color:#31547f; }
:root[data-theme="dark"] .filter-chip:hover { color:white; background:#27476f; border-color:#537cb0; }
:root[data-theme="dark"] .pagination { background:transparent; }
:root[data-theme="dark"] .pagination a.pagination-button { color:#bad2ff; background:#182c48; border-color:#2e4c74; }
:root[data-theme="dark"] .pagination a.pagination-button:hover { background:#223e63; border-color:#547caf; box-shadow:0 5px 15px rgba(0,0,0,.2); }
:root[data-theme="dark"] .employee-link { color:#edf3fc; }
:root[data-theme="dark"] .employee-link:hover { color:#8db6fa; }
:root[data-theme="dark"] .row-action { color:#bad2ff; background:#182c48; border-color:#2e4c74; box-shadow:0 3px 9px rgba(0,0,0,.16); }
:root[data-theme="dark"] .row-action-symbol { color:#a8c7fb; background:#203b61; }
:root[data-theme="dark"] .row-action-arrow { color:#7899c8; }
:root[data-theme="dark"] .row-action:hover { color:white; background:linear-gradient(135deg,#376fcf,#24539f); border-color:#5f8edc; box-shadow:0 8px 18px rgba(0,0,0,.28); }
:root[data-theme="dark"] .row-action:hover .row-action-symbol { color:white; background:rgba(255,255,255,.14); }
:root[data-theme="dark"] .row-action:hover .row-action-arrow { color:white; }
:root[data-theme="dark"] .metric-icon.blue,
:root[data-theme="dark"] .section-icon,
:root[data-theme="dark"] .title-icon,
:root[data-theme="dark"] .detail-icon,
:root[data-theme="dark"] .mobile-filter-toggle-icon { background:#1b3559; }
:root[data-theme="dark"] .metric-icon.amber { background:#3a2e19; }
:root[data-theme="dark"] .status.online,
:root[data-theme="dark"] .badge.success { color:#75dbaa; background:#15382d; }
:root[data-theme="dark"] .status.offline,
:root[data-theme="dark"] .badge.danger,
:root[data-theme="dark"] .message.error { color:#ffaaa3; background:#442421; }
:root[data-theme="dark"] .badge.warning { color:#ffd18a; background:#3b301c; }
:root[data-theme="dark"] .badge.neutral { color:#bdc9da; background:#273549; }
:root[data-theme="dark"] .message { color:#c9dcff; background:#192f4d; }
:root[data-theme="dark"] .back-button { color:#e7eef9; background:#111e30; border-color:#293950; box-shadow:0 4px 16px rgba(0,0,0,.18); }
:root[data-theme="dark"] .back-button-icon { color:#94bafa; background:#1b3559; }
:root[data-theme="dark"] .back-button:hover { color:#9dc0fb; border-color:#48678f; }
:root[data-theme="dark"] .login-page { background:radial-gradient(circle at 20% 10%,#183a6c,#091321 55%,#060d18); }
:root[data-theme="dark"] .login-card { background:#111e30; border:1px solid #293950; box-shadow:0 28px 80px rgba(0,0,0,.42); }
:root[data-theme="dark"] .login-logo-wrap span { color:#9aa9be; }
:root[data-theme="dark"] .loading-overlay { background:radial-gradient(circle at center,rgba(36,72,124,.24),rgba(3,9,18,.64)); }
:root[data-theme="dark"] .loading-dialog { background:rgba(17,30,48,.98); border-color:#34475f; box-shadow:0 24px 70px rgba(0,0,0,.46); }
:root[data-theme="dark"] .loading-visual { border-color:#324761; border-top-color:#79a8f5; border-right-color:#4d80d6; }
:root[data-theme="dark"] .loading-visual span { background:#79a8f5; box-shadow:0 0 0 5px rgba(107,157,242,.12); }
:root[data-theme="dark"] .loading-dialog::before { background:linear-gradient(90deg,transparent,#79a8f5,transparent); }
:root[data-theme="dark"] .main img[src*="/light-mode/"] { filter:brightness(0) invert(1) opacity(.88); }
:root[data-theme="dark"] .admission-progress { box-shadow:0 10px 30px rgba(0,0,0,.24); }
:root[data-theme="dark"] .progress-track { background:#25364b; }
:root[data-theme="dark"] .step-navigation button { color:#91a1b7; }
:root[data-theme="dark"] .step-navigation button b { color:#bdc9da; background:#27384d; }
:root[data-theme="dark"] .step-navigation button.is-active { color:#b9d2ff; background:#1b3559; border-color:#31547f; }
:root[data-theme="dark"] .form-section-header > span { color:#a9c9ff; background:#1b3559; }
:root[data-theme="dark"] .admission-date-guidance { color:#b8c5d7; background:#142238; border-color:#30435d; }:root[data-theme="dark"] .admission-date-guidance > span { color:#a9c8ff; background:#1a3457; }:root[data-theme="dark"] .admission-date-guidance strong { color:#d7e2f1; }:root[data-theme="dark"] .admission-date-guidance.is-contract { background:#121f32; }
:root[data-theme="dark"] .admission-step legend { border-color:#293950; }
:root[data-theme="dark"] .admission-field label { color:#b8c5d7; }
:root[data-theme="dark"] .admission-field .form-control { color:#e8eef8; background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] .admission-field .form-control:focus { border-color:#6b9df2; box-shadow:0 0 0 3px rgba(107,157,242,.16); }
:root[data-theme="dark"] .wizard-actions { background:#0e1a2a; }
:root[data-theme="dark"] .document-package { background:linear-gradient(145deg,#172b47,#132338); border-color:#2d4b72; }
:root[data-theme="dark"] .package-icon { background:#203754; box-shadow:0 7px 20px rgba(0,0,0,.2); }
:root[data-theme="dark"] .document-package p,
:root[data-theme="dark"] .document-package li,
:root[data-theme="dark"] .document-package small { color:#b1bfd2; }
:root[data-theme="dark"] .download-feedback { color:#75dbaa!important; background:#15382d; border-color:#28634e; }
:root[data-theme="dark"] .date-step { color:#a9c9ff; background:#1b3559; border-color:#31547f; }
:root[data-theme="dark"] .attendance-hub-navigation { background:#111e30; border-color:#34465f; }
:root[data-theme="dark"] .attendance-hub-tab.upcoming:hover { background:#17253a; }
:root[data-theme="dark"] .date-step:hover { color:white; background:#376fcf; }
:root[data-theme="dark"] .selected-day small { color:#75dbaa; background:#15382d; }
:root[data-theme="dark"] .date-picker-form input,
:root[data-theme="dark"] .attendance-filters input,
:root[data-theme="dark"] .attendance-filters select,
:root[data-theme="dark"] .attendance-editor-grid input,
:root[data-theme="dark"] .attendance-editor-grid select,
:root[data-theme="dark"] .attendance-editor-grid textarea { color:#e8eef8; background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] .attendance-kpi { border-color:#293950; box-shadow:0 4px 16px rgba(0,0,0,.16); }
:root[data-theme="dark"] .attendance-notice.needs-attention { color:#ffd18a; background:#3b301c; border-color:#655126; }
:root[data-theme="dark"] .attendance-notice.needs-attention > span { background:#51401f; }
:root[data-theme="dark"] .attendance-notice.controlled { color:#75dbaa; background:#15382d; border-color:#28634e; }
:root[data-theme="dark"] .attendance-notice.controlled > span { background:#1d4b3b; }
:root[data-theme="dark"] .attendance-table tbody tr:hover { background:#16263c; }
:root[data-theme="dark"] .attendance-table tr.requires-attention { background:#251f15; }
:root[data-theme="dark"] .attendance-status.success { color:#75dbaa; background:#15382d; }
:root[data-theme="dark"] .attendance-status.warning { color:#ffd18a; background:#3b301c; }
:root[data-theme="dark"] .attendance-status.danger { color:#ffaaa3; background:#442421; }
:root[data-theme="dark"] .attendance-status.info { color:#9dc0fb; background:#1b3559; }
:root[data-theme="dark"] .attendance-status.neutral { color:#bdc9da; background:#273549; }
:root[data-theme="dark"] .quick-present { color:#75dbaa; background:#15382d; border-color:#28634e; }
:root[data-theme="dark"] .quick-present:hover { color:white; background:#067647; }
:root[data-theme="dark"] .attendance-edit { color:#bad2ff; background:#182c48; border-color:#2e4c74; }
:root[data-theme="dark"] .attendance-edit:hover { color:white; background:#376fcf; }
:root[data-theme="dark"] .coverage-ring { background:radial-gradient(circle closest-side,#111e30 74%,transparent 76% 99%),conic-gradient(#6b9df2 calc(var(--coverage) * 1%),#293950 0); }
:root[data-theme="dark"] .team-row { border-color:#293950; }
:root[data-theme="dark"] .attendance-dialog { color:#e8eef8; background:#111e30; border-color:#34465f; box-shadow:0 28px 85px rgba(0,0,0,.5); }
:root[data-theme="dark"] .dialog-close { color:#b7c4d7; background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] .attendance-dialog-form footer { background:#0e1a2a; }
:root[data-theme="dark"] .delete-attendance { color:#ffaaa3; background:#2d1d1d; border-color:#6c342f; }
:root[data-theme="dark"] .form-error-summary { color:#ffaaa3; background:#442421; border-color:#6c342f; }
:root[data-theme="dark"] .area-filters input,
:root[data-theme="dark"] .area-filters select,
:root[data-theme="dark"] .analysis-filters input,
:root[data-theme="dark"] .analysis-filters select,
:root[data-theme="dark"] .map-search input,
:root[data-theme="dark"] .area-editor-form input,
:root[data-theme="dark"] .area-editor-form select,
:root[data-theme="dark"] .area-editor-form textarea,
:root[data-theme="dark"] .simulation-form input,
:root[data-theme="dark"] .simulation-form select { color:#e8eef8; background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] .area-data-table tbody tr:hover,
:root[data-theme="dark"] .area-data-table tbody tr.selected-row { background:#16263c; }
:root[data-theme="dark"] .schedule-status.status-ativa { color:#75dbaa; background:#15382d; }
:root[data-theme="dark"] .schedule-status.status-agendada { color:#ffd18a; background:#3b301c; }
:root[data-theme="dark"] .schedule-status.status-terminada { color:#c3cfde; background:#273549; }
:root[data-theme="dark"] .analysis-rule > div span { color:#ffd18a; background:#3b301c; }
:root[data-theme="dark"] .analysis-rule > div span:nth-child(2) { color:#ffc69e; background:#40291e; }
:root[data-theme="dark"] .analysis-rule > div span:nth-child(3) { color:#ffaaa3; background:#442421; }
:root[data-theme="dark"] .area-kpis article { background:#111e30; border-color:#293950; }
:root[data-theme="dark"] .occurrence-list { color:#e8eef8; background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] .analysis-status { color:#ffd18a; background:#3b301c; }
:root[data-theme="dark"] .analysis-status.level-2 { color:#ffc69e; background:#40291e; }
:root[data-theme="dark"] .analysis-status.level-3 { color:#ffaaa3; background:#442421; }
:root[data-theme="dark"] .vacation-balance-hero,
:root[data-theme="dark"] .simulation-cards article.projected { background:#182c48; border-color:#2e4c74; }
:root[data-theme="dark"] .vacation-events article,
:root[data-theme="dark"] .simulation-cards article { background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] .simulation-result-heading b.positive { color:#75dbaa; background:#15382d; }
:root[data-theme="dark"] .simulation-result-heading b.negative { color:#ffaaa3; background:#442421; }
:root[data-theme="dark"] .search-combobox-input { color:#e8eef8; background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] .search-combobox-list { background:#17253a; border-color:#40536d; box-shadow:0 16px 38px rgba(0,0,0,.4); }
:root[data-theme="dark"] .search-combobox-option { color:#e8eef8; }
:root[data-theme="dark"] .search-combobox-option:hover,
:root[data-theme="dark"] .search-combobox-option.is-active { color:#d7e5ff; background:#213754; }
:root[data-theme="dark"] .search-combobox-option[aria-selected="true"] { color:white; background:#376fcf; }
:root[data-theme="dark"] .attendance-sticky-hub { background:linear-gradient(to bottom,#091321 91%,rgba(9,19,33,0)); }
:root[data-theme="dark"] .attendance-sticky-tools { border-color:#40536d; box-shadow:0 10px 26px rgba(0,0,0,.3); }
:root[data-theme="dark"] .attendance-sticky-hub { background:#091321; }
:root[data-theme="dark"] .vacation-filter-form input,
:root[data-theme="dark"] .vacation-filter-form select { color:#e8eef8; background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] .vacation-avatar,
:root[data-theme="dark"] .vacation-welcome-state > span { color:#bad2ff; background:#182c48; }
:root[data-theme="dark"] .vacation-change-person { color:#bad2ff; background:#182c48; border-color:#2e4c74; }
:root[data-theme="dark"] .vacation-calendar-header > a { color:#e8eef8; background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] .vacation-day { background:#111e30; border-color:#34465f; }
:root[data-theme="dark"] .vacation-day.outside-month { color:#617087; background:#0e1a2a; }
:root[data-theme="dark"] .vacation-day.has-event { background:#142238; }
:root[data-theme="dark"] .vacation-balance-note { background:#17253a; }
:root[data-theme="dark"] .vacation-open-map { color:#bad2ff; background:#182c48; border-color:#2e4c74; }
:root[data-theme="dark"] .vacation-open-map:hover,
:root[data-theme="dark"] .vacation-change-person:hover,
:root[data-theme="dark"] .vacation-calendar-header > a:hover { color:white; background:#376fcf; border-color:#376fcf; }

/* Theme transition is enabled only after an explicit user action. */
.theme-transition body,
.theme-transition .main,
.theme-transition .panel,
.theme-transition .metric-card,
.theme-transition .employee-hero,
.theme-transition .detail-card,
.theme-transition input,
.theme-transition select,
.theme-transition th,
.theme-transition td,
.theme-transition .employee-sticky-controls,
.theme-transition .login-card { transition:background-color .24s ease,color .2s ease,border-color .24s ease,box-shadow .24s ease; }

@media (max-width:640px) {
    .login-theme-control { top:10px; right:10px; }
    :root[data-theme="dark"] .mobile-filter-toggle { color:#e8eef8; background:#111e30; }
    :root[data-theme="dark"] .employee-table-wrap,
    :root[data-theme="dark"] .dashboard-alerts .table-wrap { background:#091321; }
    :root[data-theme="dark"] .employee-table tr,
    :root[data-theme="dark"] .dashboard-alerts tr { background:#111e30; border-color:#293950; }
    :root[data-theme="dark"] .pagination { background:rgba(17,30,48,.96); }
}

@media (prefers-reduced-motion:reduce) {
    .theme-transition body,.theme-transition * { transition:none!important; }
}

/* Login profissional · tema escuro ----------------------------------- */
:root[data-theme="dark"] .login-page { background:#06101e; }
:root[data-theme="dark"] .login-shell { background:#0f1b2b; border-color:#263a53; box-shadow:0 30px 90px rgba(0,0,0,.48); }
:root[data-theme="dark"] .login-access { background:#0f1b2b; }
:root[data-theme="dark"] .login-access .login-theme-control .theme-toggle { color:#dce7f7; background:#17263a; border-color:#344860; box-shadow:0 5px 15px rgba(0,0,0,.2); }
:root[data-theme="dark"] .login-heading-icon { background:#1a3150; }
:root[data-theme="dark"] .login-field > label { color:#c8d3e2; }
:root[data-theme="dark"] .login-input-shell input { color:#edf3fc; background:#142236; border-color:#344860; }
:root[data-theme="dark"] .login-input-shell input:hover { border-color:#4a6382; }
:root[data-theme="dark"] .login-input-shell input:focus { background:#17283e; border-color:#6b9df2; box-shadow:0 0 0 4px rgba(107,157,242,.13); }
:root[data-theme="dark"] .login-input-shell input::placeholder { color:#718097; }
:root[data-theme="dark"] .login-input-shell > svg { color:#8292aa; }
:root[data-theme="dark"] .password-visibility { color:#9aabc1; }
:root[data-theme="dark"] .password-visibility:hover { color:#c9dcff; background:#1b3555; }
:root[data-theme="dark"] .login-error { color:#ffc1bb; background:#3a211f; border-color:#693832; }
:root[data-theme="dark"] .login-error p { color:#e49c95; }
:root[data-theme="dark"] .login-security-note > svg { color:#8fb5ee; }
:root[data-theme="dark"] .login-help { color:#75859c; }
@media (max-width:920px) { :root[data-theme="dark"] .login-page { background:linear-gradient(145deg,#06101e,#102f60); } }
@media (max-width:520px) { :root[data-theme="dark"] .login-page { background:#0f1b2b; } }
:root[data-theme="dark"] .logout-dialog { color:#e8eef8; background:#111e30; border-color:#34465f; box-shadow:0 30px 85px rgba(0,0,0,.52); }
:root[data-theme="dark"] .logout-dialog-icon { color:#ffaaa3; background:#442421; border-color:#6c342f; }
:root[data-theme="dark"] .admin-security-badge { color:#bad2ff; background:#182c48; border-color:#2e4c74; }
:root[data-theme="dark"] .role-summary-card > span { color:#bad2ff; background:#1b3559; }
:root[data-theme="dark"] .role-badge { color:#c3cfde; background:#273549; }
:root[data-theme="dark"] .role-badge.superuser { color:#bad2ff; background:#1b3559; }
:root[data-theme="dark"] .access-admin-note { background:#0e1a2a; }
:root[data-theme="dark"] .audit-category { color:#c3cfde; background:#273549; }
:root[data-theme="dark"] .audit-category.category-access { color:#bad2ff; background:#1b3559; }
:root[data-theme="dark"] .audit-category.category-attendance { color:#75dbaa; background:#15382d; }
:root[data-theme="dark"] .audit-category.category-administration { color:#ffd18a; background:#3b301c; }
:root[data-theme="dark"] .audit-category.category-hiring { color:#d6c7ff; background:#302552; }
:root[data-theme="dark"] .permission-denied-card > span { color:#ffaaa3; background:#442421; }
:root[data-theme="dark"] .import-dropzone { background:#0e1a2a; border-color:#3b5b82; }
:root[data-theme="dark"] .import-dropzone:hover,
:root[data-theme="dark"] .import-dropzone.is-dragging { background:#142943; border-color:#6b9df2; }
:root[data-theme="dark"] .import-safety-note,
:root[data-theme="dark"] .import-result-banner.success { color:#89dfb5; background:#15382d; }
:root[data-theme="dark"] .import-review-note { color:#bad2ff; background:#182c48; border-color:#2e4c74; }
:root[data-theme="dark"] .import-result-banner.error { color:#ffaaa3; background:#442421; }
:root[data-theme="dark"] .import-status.status-validated,
:root[data-theme="dark"] .import-row-status.status-update { color:#ffd18a; background:#3b301c; }
:root[data-theme="dark"] .import-status.status-processing { color:#bad2ff; background:#182c48; }
:root[data-theme="dark"] .import-status.status-completed,
:root[data-theme="dark"] .import-row-status.status-new,
:root[data-theme="dark"] .import-row-status.status-inserted { color:#75dbaa; background:#15382d; }
:root[data-theme="dark"] .import-status.status-failed,
:root[data-theme="dark"] .import-row-status.status-error { color:#ffaaa3; background:#442421; }
:root[data-theme="dark"] .import-status.status-cancelled,
:root[data-theme="dark"] .import-row-status.status-unchanged { color:#c3cfde; background:#273549; }
:root[data-theme="dark"] .import-status.status-rolled_back,
:root[data-theme="dark"] .import-row-status.status-excluded { color:#c3cfde; background:#273549; }
:root[data-theme="dark"] .import-danger-option { color:#ffd18a; background:#302819; border-color:#5b4826; }
:root[data-theme="dark"] .import-danger-option small { color:#c9ad7a; }
:root[data-theme="dark"] .import-error-shortcut { color:#ffaaa3; background:#442421; border-color:#6c342f; }
:root[data-theme="dark"] .import-error-shortcut small { color:#d8938d; }
:root[data-theme="dark"] .duplicate-select-button { color:#bad2ff; background:#182c48; border-color:#2e4c74; }
:root[data-theme="dark"] .import-rollback-panel { border-color:#654526; }
:root[data-theme="dark"] .rollback-button { color:#ffbd8e; background:#3b281c; border-color:#774726; }
:root[data-theme="dark"] .import-result-banner.rollback { color:#f0d58a; background:#3b321d; }
:root[data-theme="dark"] .import-module-tabs,
:root[data-theme="dark"] .import-review-overview { background:#111d2d; }
:root[data-theme="dark"] .import-module-tabs a.active { color:#a9c7ff; background:#182c48; border-color:#2e4c74; }
:root[data-theme="dark"] .import-issues-panel .import-issue-list li { color:#ffaaa3; }
:root[data-theme="dark"] .converter-availability { color:#73dca8; background:#102c25; border-color:#245542; }
:root[data-theme="dark"] .converter-section-heading > strong { color:#b8d1ff; background:#1a3151; }
:root[data-theme="dark"] .converter-dropzone { color:#a9b8ca; background:linear-gradient(145deg,#111d2d,#152338); border-color:#3a4d65; }
:root[data-theme="dark"] .converter-dropzone:hover,
:root[data-theme="dark"] .converter-dropzone.is-dragging { color:#9fc1ff; background:#172c48; border-color:#5489df; }
:root[data-theme="dark"] .converter-dropzone > strong { color:#edf3fc; }
:root[data-theme="dark"] .converter-drop-icon { color:#a7c5ff; background:#1a3459; }
:root[data-theme="dark"] .converter-file-list li,
:root[data-theme="dark"] .converter-format-card { background:#152337; border-color:#2b3b51; }
:root[data-theme="dark"] .converter-add-more { color:#a9c7ff; background:#15263e; border-color:#395474; }
:root[data-theme="dark"] .converter-options select,
:root[data-theme="dark"] .converter-mobile-options select { color:#e8eef8; background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] .converter-privacy { color:#bfd0e4; background:#142b46; border-color:#294867; }
:root[data-theme="dark"] .converter-progress-visual { background:#193252; }
:root[data-theme="dark"] .converter-progress-track { background:#26364a; }
:root[data-theme="dark"] .converter-result { background:#102a22; border-color:#255943; }
:root[data-theme="dark"] .converter-error { background:#321c1d; border-color:#693436; }
:root[data-theme="dark"] .converter-error strong { color:#ffaaa3; }

:root[data-theme="dark"] .disciplinary-kpis article,
:root[data-theme="dark"] .disciplinary-tabs,
:root[data-theme="dark"] .disciplinary-editor { background:#111e30; border-color:#293950; }
:root[data-theme="dark"] .disciplinary-tabs a.active { color:#bad2ff; background:#182c48; border-color:#2e4c74; }
:root[data-theme="dark"] .disciplinary-tabs a > span { color:#c3cfde; background:#273549; }
:root[data-theme="dark"] .disciplinary-tabs a.active > span { color:#fff; background:#2d6cdf; }
:root[data-theme="dark"] .disciplinary-form input,
:root[data-theme="dark"] .disciplinary-form select,
:root[data-theme="dark"] .disciplinary-form textarea { color:#e8eef8; background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] .renewal-table tbody tr.renewal-blocked { background:#291b1d; }
:root[data-theme="dark"] .renewal-decision.blocked { color:#ffaaa3; background:#442421; }
:root[data-theme="dark"] .renewal-decision.clear { color:#75dbaa; background:#15382d; }
:root[data-theme="dark"] .management-hero,
:root[data-theme="dark"] .editor-card,
:root[data-theme="dark"] .distribution-summary article { background:#111e30; border-color:#293950; }
:root[data-theme="dark"] .editor-card > header,
:root[data-theme="dark"] .distribution-publish-bar,
:root[data-theme="dark"] .employee-record-actions { background:#14243a; border-color:#293950; }
:root[data-theme="dark"] .employee-edit-action { color:#fff; background:linear-gradient(135deg,#2f6bd3,#4a4bd7); border-color:#557ed2; box-shadow:0 9px 22px rgba(0,0,0,.28); }
:root[data-theme="dark"] .employee-edit-action:focus-visible { outline-color:rgba(128,170,242,.55); }
:root[data-theme="dark"] .distribution-table tbody tr:hover { background:#16263c; }
:root[data-theme="dark"] .editor-actions { background:rgba(17,30,48,.95); border-color:#34465f; }
:root[data-theme="dark"] .action-dialog { color:#e8eef8; background:#111e30; border-color:#34465f; }
:root[data-theme="dark"] .action-dialog textarea { color:#e8eef8; background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] .editor-grid textarea { color:#e8eef8; background:#17253a; border-color:#34465f; }
:root[data-theme="dark"] .mapping-row.is-pending,
:root[data-theme="dark"] .distribution-summary article.is-warning { background:#2c2517; border-color:#5c4a29; }
:root[data-theme="dark"] .global-confirm-content { color:#e8eef8; background:#111e30; border-color:#34465f; box-shadow:0 30px 90px rgba(0,0,0,.55); }
:root[data-theme="dark"] .global-confirm-icon { color:#9fc1ff; background:#182c48; border-color:#2e4c74; }
:root[data-theme="dark"] .global-confirm-dialog.is-danger .global-confirm-icon { color:#ffaaa3; background:#442421; border-color:#6c342f; }
:root[data-theme="dark"] .back-to-top { color:#fff; background:#376fcf; border-color:#638bd0; box-shadow:0 12px 30px rgba(0,0,0,.36); }
:root[data-theme="dark"] .back-to-top:hover { background:#4b7ddd; }
:root[data-theme="dark"] .table-wrap[tabindex="0"]:focus-visible { outline-color:rgba(107,157,242,.5); }
:root[data-theme="dark"] input:focus-visible,
:root[data-theme="dark"] select:focus-visible,
:root[data-theme="dark"] textarea:focus-visible { outline-color:rgba(107,157,242,.32); }

/* Employee detail: protected identity documents */
:root[data-theme="dark"] .employee-documents-private { color:#afbdd0; background:#17263b; border-color:#34465f; }
:root[data-theme="dark"] .employee-document-tile { background:linear-gradient(145deg,#14243a,#101e30); border-color:#304158; }
:root[data-theme="dark"] .employee-document-tile.is-missing { background:#111e30; }
:root[data-theme="dark"] .employee-document-type { color:#8eb7ff; }
:root[data-theme="dark"] .employee-document-actions { border-color:#293950; }
:root[data-theme="dark"] .employee-document-action.is-download { color:#fff; background:linear-gradient(135deg,#2869ce,#1e4f9e); border-color:#3b70bd; box-shadow:0 8px 18px rgba(0,0,0,.22); }
:root[data-theme="dark"] .employee-document-action.is-update { color:#bad2ff; background:#17263b; border-color:#344c6b; }
:root[data-theme="dark"] .employee-document-action.is-update .employee-document-action-icon { color:#bad2ff; background:#1a3457; border-color:#31547f; }
:root[data-theme="dark"] .employee-document-action.is-update:hover { color:#d7e5ff; background:#1b2d45; border-color:#5275a3; }
:root[data-theme="dark"] .employee-document-data div { border-color:#293950!important; }
:root[data-theme="dark"] .employee-document-state.success { color:#75dbaa; background:#15382d; }
:root[data-theme="dark"] .employee-document-state.info { color:#a9c8ff; background:#1a3457; }
:root[data-theme="dark"] .employee-document-state.attention,
:root[data-theme="dark"] .employee-document-state.warning { color:#ffd083; background:#3a2c17; }
:root[data-theme="dark"] .employee-document-state.danger { color:#ffaaa3; background:#442421; }
:root[data-theme="dark"] .employee-document-state.neutral { color:#afbdd0; background:#243247; }
:root[data-theme="dark"] .employee-document-empty { background:rgba(23,37,58,.72); }
:root[data-theme="dark"] .employee-document-empty > span { color:#9db8e0; background:#17263b; border-color:#34465f; }
:root[data-theme="dark"] .employee-document-empty strong { color:#c7d3e3; }
:root[data-theme="dark"] .document-preview-dialog { color:var(--ink); background:#101827; border-color:#34465f; }:root[data-theme="dark"] .document-preview-header { background:linear-gradient(120deg,#17253a,#111c2c); border-color:#304158; }:root[data-theme="dark"] .document-preview-icon { color:#a9c8ff; background:#1a3457; }:root[data-theme="dark"] .document-preview-close { color:#aebbd0; }:root[data-theme="dark"] .document-preview-close:hover { color:#fff; background:#25364d; }:root[data-theme="dark"] .document-preview-stage { background:#080f1a; }:root[data-theme="dark"] .document-preview-loading { color:#aebbd0; background:#111c2c; }:root[data-theme="dark"] .document-preview-loading strong { color:#d8e1ee; }:root[data-theme="dark"] .document-preview-footer { background:#111a29; border-color:#304158; }
:root[data-theme="dark"] .employee-contact-number { color:#b8d2ff; background:#1a3457; border-color:#31547f; }
