/* Generated by scripts/gen_dark_css.py - edit dark.manual.css instead. */

/* From dashboard.css */
html[data-theme="dark"] .login-card { background: rgba(255, 255, 255, 0.057); border: 1px solid rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .form-group label { color: #a6b2c3; }
html[data-theme="dark"] .form-group input, html[data-theme="dark"] .form-group select { border: 2px solid #2f3d57; background: rgba(255, 255, 255, 0.054); }
html[data-theme="dark"] .form-group input:hover, html[data-theme="dark"] .form-group select:hover { background: rgba(255, 255, 255, 0.057); }
html[data-theme="dark"] .form-group input:focus, html[data-theme="dark"] .form-group select:focus { background: rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] .header { background: rgba(255, 255, 255, 0.058); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .nav-tabs { background: rgba(255, 255, 255, 0.057); border: 1px solid rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .nav-more-toggle { border: 1px dashed #374a60; background: rgba(255, 255, 255, 0.036); color: #8f9cae; }
html[data-theme="dark"] .nav-more-toggle:hover { background: rgba(255, 255, 255, 0.057); border-color: #495f88; color: #a6b2c3; }
html[data-theme="dark"] #primaryNav.nav-more-open .nav-more-toggle { border-color: #324856; background: #111a2a; color: #b4c0d2; }
html[data-theme="dark"] .nav-more-group { border-top: 1px solid rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .content-section { background: rgba(255, 255, 255, 0.057); border: 1px solid rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .content-section h2 { color: #c5d0e1; }
html[data-theme="dark"] .section-subtitle { color: #8f9cae; }
html[data-theme="dark"] .table-container { background: rgba(255, 255, 255, 0.057); }
html[data-theme="dark"] table { background: rgba(255, 255, 255, 0.059); }
html[data-theme="dark"] th, html[data-theme="dark"] td { border-bottom: 1px solid #29354c; }
html[data-theme="dark"] .schedule-stat-card { background: #16222e; border: 1px solid #2d3d53; }
html[data-theme="dark"] .schedule-stat-label { color: #8f9cae; }
html[data-theme="dark"] .schedule-stat-card-alert { background: #2a1a1f; border-color: #6b2a33; }
html[data-theme="dark"] .schedule-stat-card-alert .schedule-stat-label { color: #f87171; }
html[data-theme="dark"] .schedule-stat-value { color: #cfd8ee; }
html[data-theme="dark"] .schedule-stat-sub { color: #8f9cae; }
html[data-theme="dark"] .training-now-map-panel { background: #111a2a; border: 1px solid #314658; }
html[data-theme="dark"] .training-now-map-header { border-bottom: 1px solid #2c5139; }
html[data-theme="dark"] .training-now-map-title { color: #a3ebbf; }
html[data-theme="dark"] .training-now-map-title .material-symbols-outlined { color: #9aede7; }
html[data-theme="dark"] .training-now-map-count { color: #9aede7; }
html[data-theme="dark"] .training-now-map-note { color: #a6b2c3; }
html[data-theme="dark"] .training-now-map { background: #21303a; }
html[data-theme="dark"] .training-now-map-empty { color: #8f9cae; background: #16222e; }
html[data-theme="dark"] .tn-pharm-marker-inner { border: 2px solid #242e42; }
html[data-theme="dark"] .tn-popup-name { color: #bce3f3; }
html[data-theme="dark"] .tn-popup-addr { color: #8f9cae; }
html[data-theme="dark"] .tn-popup-meta { color: #9aede7; }
html[data-theme="dark"] .tn-popup-students { color: #cbd7e3; }
html[data-theme="dark"] .tn-popup-num { color: #8f9cae; }
html[data-theme="dark"] th { color: #a6b2c3; }
html[data-theme="dark"] tr { background: rgba(255, 255, 255, 0.036); }
html[data-theme="dark"] tr:nth-child(even) { background: rgba(255, 255, 255, 0.048); }
html[data-theme="dark"] .btn-warning { color: #c5d0e1; }
html[data-theme="dark"] .alert-success { color: #a8efeb; }
html[data-theme="dark"] .alert-error { color: #e87e7e; }
html[data-theme="dark"] .alert-info { color: #a9e6f0; }
html[data-theme="dark"] .alert-warning { color: #eaaf8a; }
html[data-theme="dark"] .disk-space-alert { color: #ecab95; }
html[data-theme="dark"] .disk-space-alert i { color: #e4a965; }
html[data-theme="dark"] .disk-space-alert strong { color: #e7a979; }
html[data-theme="dark"] .notif-bell { background: #16222e; border: 1px solid #2f4558; color: #8f9cae; }
html[data-theme="dark"] .notif-bell:hover { background: #192634; border-color: #374a60; color: #a6b2c3; }
html[data-theme="dark"] .notif-bell.has-unread { background: #332718; color: #e7a979; }
html[data-theme="dark"] .notif-bell.has-unread:hover, html[data-theme="dark"] .notif-bell.has-unread[aria-expanded="true"] { background: #41331f; }
html[data-theme="dark"] .notif-bell[aria-expanded="true"]:not(.has-unread) { background: #1a2737; border-color: #495f88; color: #b4c0d2; }
html[data-theme="dark"] .notif-panel { background: #111a2a; border: 1px solid #2d3d53; }
html[data-theme="dark"] .notif-panel-header { border-bottom: 1px solid #2d3d53; color: #cfd8ee; background: #111a2a; }
html[data-theme="dark"] .notif-item { border-bottom: 1px solid #28394a; }
html[data-theme="dark"] .notif-item:hover { background: #16222e; }
html[data-theme="dark"] .notif-item.unread { background: #332718; }
html[data-theme="dark"] .notif-item-title { color: #e7a979; }
html[data-theme="dark"] .notif-item-body { color: #a6b2c3; }
html[data-theme="dark"] .modal-content { background: rgba(255, 255, 255, 0.057); border: 1px solid rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] #confirmModalTitle { color: #a3d1e8; }
html[data-theme="dark"] #confirmModalMessage { color: #b4c0d2; }
html[data-theme="dark"] #confirmCancelBtn { background: #16222e; color: #b4c0d2; border: 1px solid #2f4558; }
html[data-theme="dark"] #pharmImportModal #pharmImportStep1 > h2, html[data-theme="dark"] #pharmImportModal #pharmImportStep2 > h2, html[data-theme="dark"] #pharmImportModal #pharmImportStep3 > h2 { color: var(--sch-primary-deeper, #bce3f3); }
html[data-theme="dark"] .excel-import-ai-note { background: #201731; color: #a981e7; }
html[data-theme="dark"] .excel-import-ai-note i { color: #a3d1e8; }
html[data-theme="dark"] .excel-import-collapse-summary { color: #c5d0e1; }
html[data-theme="dark"] .excel-import-collapse-summary > i:first-child { color: #a3d1e8; }
html[data-theme="dark"] .excel-import-collapse-chevron { color: #a3d1e8; }
html[data-theme="dark"] .excel-import-guide-block { background: #16222e; border: 1px solid #2d3d53; }
html[data-theme="dark"] .excel-import-guide-title { color: #c5d0e1; }
html[data-theme="dark"] .excel-import-guide-title i { color: #a3d1e8; }
html[data-theme="dark"] .excel-import-guide-text { color: #a6b2c3; }
html[data-theme="dark"] .excel-import-format-item { border: 1px solid #2f4558; background: #111a2a; }
html[data-theme="dark"] .excel-import-format-label { color: #a3d1e8; border-bottom: 1px solid #2d3e4f; }
html[data-theme="dark"] .excel-import-format-desc { color: #8f9cae; }
html[data-theme="dark"] .excel-import-row-tip { background: #182331; border: 1px solid #31445c; }
html[data-theme="dark"] .excel-import-steps, html[data-theme="dark"] .excel-import-rules, html[data-theme="dark"] .excel-import-flex-list { color: #a6b2c3; }
html[data-theme="dark"] .excel-import-sample-wrap { border: 1px solid #2f4558; background: #111a2a; }
html[data-theme="dark"] .excel-import-sample-table tbody td { border-bottom: 1px solid #29394c; color: #b4c0d2; }
html[data-theme="dark"] .excel-import-guide-note { background: #342e19; border: 1px solid #71663d; color: #eaaf8a; }
html[data-theme="dark"] #excelStep2 .table-container { border: 1px solid #2f4558; background: #111a2a; }
html[data-theme="dark"] #excelPreviewTable tbody td { border-bottom: 1px solid #29394c; }
html[data-theme="dark"] #excelPreviewTable .excel-cell-input { border: 1px solid #364a5d; background: #111a2a; color: #cfd8ee; }
html[data-theme="dark"] #excelStep2 .excel-action-btn.ghost { background: #16222e; color: #b4c0d2; border-color: #2f4558; }
html[data-theme="dark"] #excelStep2 .excel-action-btn.ghost:hover { background: #1a2737; }
html[data-theme="dark"] #excelStep2 .excel-delete-btn { border: 1px solid #572f2f; background: #2e1616; color: #e56b6b; }
html[data-theme="dark"] #excelStep2 .excel-delete-btn:hover { background: #3a1c1c; border-color: #673737; color: #e87e7e; }
html[data-theme="dark"] #editScheduleModal .modal-header h2 { color: #c5d0e1; }
html[data-theme="dark"] #editScheduleModal .modal-header p { color: #a6b2c3; }
html[data-theme="dark"] #editScheduleModal .form-section-title { color: #8f9cae; }
html[data-theme="dark"] #editScheduleModal .modal-footer { background: rgba(255, 255, 255, 0.055); }
html[data-theme="dark"] #addScheduleModal .modal-header h2 { color: #c5d0e1; }
html[data-theme="dark"] #addScheduleModal .modal-header p { color: #a6b2c3; }
html[data-theme="dark"] #addScheduleModal .form-section-title { color: #8f9cae; }
html[data-theme="dark"] #addScheduleModal .schedule-day-row { background: #16222e; border: 1px solid #2d3d53; }
html[data-theme="dark"] #addScheduleModal .schedule-day-row:hover { border-color: #374a60; }
html[data-theme="dark"] #addScheduleModal .schedule-day-row .day-row-label { color: #8f9cae; }
html[data-theme="dark"] #addScheduleModal .schedule-remove-day-btn { border: 1px solid #572f2f; background: #111a2a; }
html[data-theme="dark"] #addScheduleModal .schedule-remove-day-btn:hover:not(:disabled) { background: #301717; border-color: #7c4343; }
html[data-theme="dark"] #addScheduleModal .schedule-remove-day-btn:disabled { border-color: #2d3d53; }
html[data-theme="dark"] #addScheduleModal .btn-add-day { border: 2px dashed #374a60; background: #111a2a; color: #a6b2c3; }
html[data-theme="dark"] #addScheduleModal .checkbox-field label { background: #16222e; border: 1px solid #2d3d53; color: #b4c0d2; }
html[data-theme="dark"] #addScheduleModal .modal-footer { background: rgba(255, 255, 255, 0.055); }
html[data-theme="dark"] #addScheduleModal .modal-footer .btn-cancel { background: #16222e; color: #b4c0d2; border: 1px solid #2f4558; }
html[data-theme="dark"] #addScheduleModal .modal-footer .btn-cancel:hover { background: #192634; border-color: #374a60; }
html[data-theme="dark"] .stat-card { background: rgba(255, 255, 255, 0.057); border: 1px solid rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .stat-label { color: #8f9cae; }
html[data-theme="dark"] .collapsible-section { background: rgba(255, 255, 255, 0.059); border: 1px solid rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .collapsible-header h2, html[data-theme="dark"] .collapsible-header h3 { color: #bdc6d6; }
html[data-theme="dark"] .coverage-subsection { background: rgba(255, 255, 255, 0.051); }
html[data-theme="dark"] .collapsible-content { background: rgba(255, 255, 255, 0.03); }
html[data-theme="dark"] .coverage-subsection-content { background: rgba(255, 255, 255, 0.024); }
html[data-theme="dark"] .header { background: rgba(255, 255, 255, 0.059); }
html[data-theme="dark"] .nav-tab { color: #a6b2c3; }
html[data-theme="dark"] .nav-tab:hover { background: #16222e; }
html[data-theme="dark"] .content-section h2 { color: #cfd8ee; }
html[data-theme="dark"] .table-container { border: 1px solid #2d3d53; }
html[data-theme="dark"] table thead th { background: #16222e; color: #a6b2c3; border-bottom: 1px solid #2d3d53; }
html[data-theme="dark"] table tbody td { border-bottom: 1px solid #28394a; color: #cfd8ee; }
html[data-theme="dark"] .form-group label { color: #8f9cae; }
html[data-theme="dark"] .form-group input, html[data-theme="dark"] .form-group select { border: 1px solid #2f4558; background: #141f2a; }
html[data-theme="dark"] .form-group input:focus, html[data-theme="dark"] .form-group select:focus { border-color: #466e83; }
html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-refresh, html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-import, html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-download, html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-force { background: #111a2a; color: #c5d0e1; border-color: #2d3d53; }
html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-refresh i, html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-import i, html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-download i, html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-force i { color: #8bd6eb; }
html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-refresh:hover, html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-import:hover, html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-download:hover, html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-force:hover { background: #172731; border-color: #334f5e; }
html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-delete-all { background: #301717; color: #e56b6b; border-color: #572f2f; }
html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-delete-all:hover { background: #3a1c1c; }
html[data-theme="dark"] .duplicate-checker { border: 1px solid #2d3d53; background: #16222e; color: #b4c0d2; }
html[data-theme="dark"] .duplicate-checker strong { color: #cfd8ee; }
html[data-theme="dark"] #telegramBroadcastModal .broadcast-list { border: 1px solid #2d3d53; background: #111a2a; }
html[data-theme="dark"] #telegramBroadcastModal .broadcast-list-header { background: #16222e; border-bottom: 1px solid #2d3d53; color: #a6b2c3; }
html[data-theme="dark"] #telegramBroadcastModal .broadcast-row { border-bottom: 1px solid #28394a; }
html[data-theme="dark"] #telegramBroadcastModal .broadcast-name { color: #cfd8ee; }
html[data-theme="dark"] #telegramBroadcastModal .broadcast-sub { color: #8f9cae; }
html[data-theme="dark"] #logsSection .logs-toolbar-btn.refresh { background: #1a2737; color: #b4c0d2; }
html[data-theme="dark"] #logsSection .logs-toolbar-btn.refresh:hover { background: #212f41; }
html[data-theme="dark"] .sh-panel { border: 1px solid #2d3d53; }
html[data-theme="dark"] .sh-panel-head { background: #16222e; }
html[data-theme="dark"] .sh-panel-head:hover { background: #1a2437; }
html[data-theme="dark"] .sh-panel-body { background: #111a2a; }
html[data-theme="dark"] .sh-chevron { color: #8f9cae; }
html[data-theme="dark"] .sh-badge.grey { background: #4466a6; }
html[data-theme="dark"] .sh-stat { background: #16222e; }
html[data-theme="dark"] .sh-stat-label { color: #8f9cae; }
html[data-theme="dark"] .sh-table th, html[data-theme="dark"] .sh-table td { border-bottom: 1px solid #28394a; }
html[data-theme="dark"] .sh-table th { background: #16222e; color: #a6b2c3; }
html[data-theme="dark"] .sh-table tr:hover td { background: #151b2c; }
html[data-theme="dark"] .wm-card { background: #16222e; }
html[data-theme="dark"] .wm-card-label { color: #8f9cae; }
html[data-theme="dark"] .wm-card-total  .wm-card-num { color: #a6b2c3; }
html[data-theme="dark"] .wm-card-called .wm-card-num { color: #9aede7; }
html[data-theme="dark"] .wm-card-pending { border-left: 4px solid #8d724c; }
html[data-theme="dark"] .wm-table th, html[data-theme="dark"] .wm-table td { border-bottom: 1px solid #2d3d53; }
html[data-theme="dark"] .wm-table th { color: #a6b2c3; }
html[data-theme="dark"] .wm-table td:first-child, html[data-theme="dark"] .wm-table th:first-child { background: #111a2a; }
html[data-theme="dark"] .wm-table tr:hover td { background: #171e31; }
html[data-theme="dark"] .wm-badge-called { background: #234941; color: #a8efeb; }
html[data-theme="dark"] .wm-badge-failed { background: #3a1c1c; color: #e87e7e; }
html[data-theme="dark"] .wm-badge-pending { background: #4a4324; color: #eaaf8a; }
html[data-theme="dark"] .wm-badge-missed { background: #482323; color: #e87e7e; }
html[data-theme="dark"] .schedule-table-wrap { border: 1px solid #314658; background: #111a2a; }
html[data-theme="dark"] .schedule-table tbody td { border-bottom: 1px solid #293b4c; color: #cfd8ee; }
html[data-theme="dark"] .schedule-table tbody tr.schedule-row { background: #111a2a; }
html[data-theme="dark"] .schedule-table tbody tr.schedule-row:hover { background: #17252f; }
html[data-theme="dark"] .schedule-table tbody tr.schedule-row.chat-focus-row { background: #192835; }
html[data-theme="dark"] .schedule-table tbody tr.schedule-row.chat-focus-row:hover { background: #1e303d; }
html[data-theme="dark"] .schedule-table .schedule-index { color: #8f9cae; }
html[data-theme="dark"] .schedule-table .schedule-name-main { color: #a3d1e8; }
html[data-theme="dark"] .schedule-table .schedule-name-link { color: #a3d1e8; }
html[data-theme="dark"] .schedule-table .schedule-name-link::after { color: #78a9c4; }
html[data-theme="dark"] .schedule-table .schedule-name-link:hover { color: #bce3f3; }
html[data-theme="dark"] .schedule-table .schedule-phone { color: #a6b2c3; }
html[data-theme="dark"] .schedule-table .schedule-days-sub { color: #8f9cae; }
html[data-theme="dark"] .schedule-table .schedule-supervisor { color: #b4c0d2; }
html[data-theme="dark"] .schedule-action-btn { color: #a6b2c3; }
html[data-theme="dark"] .schedule-action-btn:hover { background: #1e313d; color: #a3d1e8; }
html[data-theme="dark"] .schedule-action-btn.danger:hover { background: #3a1c1c; color: #e56b6b; }
html[data-theme="dark"] .schedule-action-btn.call:hover { background: #1e3f29; color: #9aede7; }
html[data-theme="dark"] .schedule-action-btn.report-pdf { color: #da796e; }
html[data-theme="dark"] .schedule-action-btn.report-pdf:hover { background: #301717; color: #e8887e; }
html[data-theme="dark"] .schedule-action-btn.report-doc { color: #a3d1e8; }
html[data-theme="dark"] .schedule-action-btn.report-doc:hover { background: #1d313d; color: #bce3f3; }
html[data-theme="dark"] .student-profile-modal .modal-close-btn { background: rgba(255, 255, 255, 0.011); }
html[data-theme="dark"] .student-profile-modal .modal-close-btn:hover { background: rgba(255, 255, 255, 0.019); }
html[data-theme="dark"] .student-profile-loading, html[data-theme="dark"] .student-profile-error { color: #98a0a8; }
html[data-theme="dark"] .student-profile-error { color: #e5736d; }
html[data-theme="dark"] .sp-avatar { background: rgba(255, 255, 255, 0.01); border: 2px solid rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .sp-chip { background: rgba(255, 255, 255, 0.01); }
html[data-theme="dark"] .sp-chip-soft { background: #1c2f36; color: #a3d1e8; }
html[data-theme="dark"] .sp-body { background: #19292e; }
html[data-theme="dark"] .sp-section-title, html[data-theme="dark"] .sp-card-title { color: #bce3f3; }
html[data-theme="dark"] .sp-kpi { background: #111a2a; border: 1px solid #2d3a53; }
html[data-theme="dark"] .sp-kpi-n { color: #bce3f3; }
html[data-theme="dark"] .sp-comp-head { color: #cbd7e3; }
html[data-theme="dark"] .sp-track { background: #1b2943; }
html[data-theme="dark"] .sp-card { background: #111a2a; border: 1px solid #2d3a53; }
html[data-theme="dark"] .sp-ring-inner { background: #111a2a; }
html[data-theme="dark"] .sp-mbar-lbl { color: #cbd7e3; }
html[data-theme="dark"] .sp-table th { color: #a9b7c0; background: #1a2b30; }
html[data-theme="dark"] .sp-table td { border-bottom: 1px solid #2a364d; }
html[data-theme="dark"] .sp-empty-card { background: #19292e; }
html[data-theme="dark"] .sp-pharm-icon { background: #1e373f; color: #bce3f3; }
html[data-theme="dark"] .sp-pharm-name { color: #cbd7e3; }
html[data-theme="dark"] .sp-tag { background: #1c2f36; color: #a4c3d3; }
html[data-theme="dark"] .sp-footer { background: #111a2a; border-top: 1px solid #2d3a53; }
html[data-theme="dark"] tr.lt-row.chat-focus-row { background: #192835 !important; }
html[data-theme="dark"] .inline-days-row td { background: #15212c; border-bottom: 1px solid #2d3d53; }
html[data-theme="dark"] .inline-days-note { color: #a6b2c3; }
html[data-theme="dark"] .inline-days-table { background: #111a2a; border: 1px solid #2d3d53; }
html[data-theme="dark"] .inline-days-table td { color: #c5d0e1; border-bottom: 1px solid #29394c; }
html[data-theme="dark"] .logs-themed-table.schedule-table tbody tr { background: #111a2a; }
html[data-theme="dark"] .logs-themed-table.schedule-table tbody tr:hover { background: #17252f; }
html[data-theme="dark"] .inline-call-day-btn { border: 1px solid #354e63; background: #111a2a; color: #a3d1e8; }
html[data-theme="dark"] .inline-call-day-btn:hover { background: #1b2c39; border-color: #43657d; }
html[data-theme="dark"] .dashboard.supervisor .nav-tabs, html[data-theme="dark"] .dashboard.admin .nav-tabs { background: #192634; border: 1px solid #324856; }
html[data-theme="dark"] .dashboard.supervisor .nav-tab, html[data-theme="dark"] .dashboard.admin .nav-tab { color: #b4c0ca; }
html[data-theme="dark"] .dashboard.supervisor .nav-tab:hover, html[data-theme="dark"] .dashboard.admin .nav-tab:hover { background: #1c2a44; }
html[data-theme="dark"] .dashboard.supervisor .nav-tab.active, html[data-theme="dark"] .dashboard.admin .nav-tab.active { background: #111a2a; color: #bce3f3; }
html[data-theme="dark"] .nav-drawer-toggle { border: 1px solid var(--sch-border, #324856); background: #111a2a; color: var(--sch-primary, #a3d1e8); }
html[data-theme="dark"] .nav-drawer-toggle:hover { background: #16222e; }
html[data-theme="dark"] .login-card { background: #111a2a; border: 1px solid rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .login-card h1 { color: #cfd8ee; }
html[data-theme="dark"] .login-subtitle { color: #8f9cae; }
html[data-theme="dark"] #loginFormElement .form-group label { color: #8f9cae; }
html[data-theme="dark"] #loginFormElement .form-group input { border: 1px solid #334759; background: #16242d; }
html[data-theme="dark"] #loginFormElement .form-group input:hover { border-color: #354e63; background: #17272f; }
html[data-theme="dark"] #loginFormElement .form-group input:focus { border-color: #466e83; background: #111a2a; }
html[data-theme="dark"] .login-divider:before, html[data-theme="dark"] .login-divider:after { background: #212f41; }
html[data-theme="dark"] .login-note { color: #8f9cae; }
html[data-theme="dark"] .pharmacy-modal-subtitle { color: #a6b2c3; }
html[data-theme="dark"] .pharmacy-modal-icon { background: #243c4b; }
html[data-theme="dark"] .pharmacy-form-group > label { color: #a6b2c3; }
html[data-theme="dark"] .pharmacy-field-hint { color: #8f9cae; }
html[data-theme="dark"] .pharmacy-input { background: #16222e; }
html[data-theme="dark"] .pharmacy-link-btn { border: 1px solid #2f4558; background: #111a2a; color: #bce3f3; }
html[data-theme="dark"] .pharmacy-link-btn:hover { background: #172331; }
html[data-theme="dark"] .pharmacy-map-hint { color: #8f9cae; }
html[data-theme="dark"] .pharmacy-site-map { background: #1a2737; }
html[data-theme="dark"] .pharmacy-student-section { border-top: 1px solid #2d3d53; }
html[data-theme="dark"] .pharmacy-student-section > label { color: #a6b2c3; }
html[data-theme="dark"] .pharmacy-student-search { background: #192634; }
html[data-theme="dark"] .pharmacy-student-search input { color: #cfd8ee; }
html[data-theme="dark"] .pharmacy-student-list { border: 1px solid #2d3d53; background: #111a2a; }
html[data-theme="dark"] .pharmacy-student-empty { color: #8f9cae; }
html[data-theme="dark"] .pharmacy-student-row { border-bottom: 1px solid #2d3d53; }
html[data-theme="dark"] .pharmacy-modal-footer { background: #192634; }
html[data-theme="dark"] .pharmacy-btn-secondary { background: #111a2a; color: #a6b2c3; }
html[data-theme="dark"] .btn.is-loading::before { border: 2px solid rgba(255, 255, 255, 0.14); border-top-color: #242e42; }
html[data-theme="dark"] .btn-secondary, html[data-theme="dark"] .pharmacy-btn-secondary { background: #111a2a; }
html[data-theme="dark"] .btn-secondary:hover, html[data-theme="dark"] .pharmacy-btn-secondary:hover { background: #16222e; border-color: #395364; }
html[data-theme="dark"] .toolbar-action-btn.outline { background: #111a2a; }
html[data-theme="dark"] .toolbar-action-btn.outline:hover { background: #16222e; border-color: #395364; }
html[data-theme="dark"] .toolbar-action-btn.danger-outline { background: #111a2a; }
html[data-theme="dark"] .toolbar-action-btn.danger-outline:hover { background: #2e1616; }
html[data-theme="dark"] .modal-content { border: 1px solid rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .modal-icon-chip.teal { background: #234941; color: #a8efeb; }
html[data-theme="dark"] .modal-icon-chip.warn { background: #4a4324; color: #eaaf8a; }
html[data-theme="dark"] .modal-icon-chip.danger { background: #3a1c1c; color: #e56b6b; }
html[data-theme="dark"] .modal-icon-chip.purple { background: #1e343f; color: #a3d1e8; }
html[data-theme="dark"] .modal-close-btn { background: #111a2a; }
html[data-theme="dark"] .modal-close-btn:hover { background: #16222e; }
html[data-theme="dark"] #addScheduleModal .modal-footer .btn-cancel { background: #111a2a; }
html[data-theme="dark"] .archive-live-inner { background: #111a2a; }
html[data-theme="dark"] .archive-live-inner.is-empty { background: linear-gradient(180deg, #18322c 0%, #111a2a 100%); }
html[data-theme="dark"] .archive-live-title { color: #bce3f3; }
html[data-theme="dark"] .archive-live-sub { color: #8f9cae; }
html[data-theme="dark"] .archive-chip { background: #192634; color: #bce3f3; }
html[data-theme="dark"] .archive-chip-warn { background: #342e19; color: #ebc58e; }
html[data-theme="dark"] .archive-status-pill { background: #19253c; color: #a6b2c3; }
html[data-theme="dark"] .archive-status-pill.ok { background: #18322c; color: #a8efeb; }
html[data-theme="dark"] .archive-status-pill.busy { background: #342e19; color: #e7a979; }
html[data-theme="dark"] .archive-table-card, html[data-theme="dark"] .archive-detail-card { background: #111a2a; }
html[data-theme="dark"] .archive-table-head h3 { color: #bce3f3; }
html[data-theme="dark"] .archive-table th { color: #8f9cae; }
html[data-theme="dark"] .archive-table td { color: #bce3f3; }
html[data-theme="dark"] .archive-row:hover, html[data-theme="dark"] .archive-row.is-selected { background: #16252e; }
html[data-theme="dark"] .archive-meta-cell { color: #8f9cae; }
html[data-theme="dark"] .archive-detail-top h3 { color: #bce3f3; }
html[data-theme="dark"] .archive-kpi { background: #192634; }
html[data-theme="dark"] .archive-kpi-n { color: #bce3f3; }
html[data-theme="dark"] .archive-kpi-t { color: #8f9cae; }
html[data-theme="dark"] .archive-raw-block { background: #192129; }
html[data-theme="dark"] .archive-student-link { color: var(--sch-primary, #88ccea); }
html[data-theme="dark"] .archive-preview-box { background: #141f32; }
html[data-theme="dark"] .archive-count-list { color: #a6b2c3; }
html[data-theme="dark"] .archive-warning { background: #342e19; color: #edc697; }
html[data-theme="dark"] .modal-inline-alert-error { background: #301717; color: #e56b6b; }
html[data-theme="dark"] .modal-inline-alert-success { background: #18322c; color: #a8efeb; }
html[data-theme="dark"] .an-title { color: #bce3f3; }
html[data-theme="dark"] .an-subtitle { color: #a6b2c3; }
html[data-theme="dark"] .an-btn { background: #111a2a; color: #bce3f3; }
html[data-theme="dark"] .an-filters { background: #192634; }
html[data-theme="dark"] .an-field { background: #111a2a; }
html[data-theme="dark"] .an-field .material-symbols-outlined { color: #8f9cae; }
html[data-theme="dark"] .an-field input, html[data-theme="dark"] .an-field select { color: #cfd8ee; }
html[data-theme="dark"] .an-week-label { color: #a6b2c3; }
html[data-theme="dark"] .an-kpi { background: #111a2a; }
html[data-theme="dark"] .an-kpi-num { color: #cfd8ee; }
html[data-theme="dark"] .an-kpi-desc { color: #a6b2c3; }
html[data-theme="dark"] .an-card { background: #111a2a; }
html[data-theme="dark"] .an-card-head h3 { color: #bce3f3; }
html[data-theme="dark"] .an-hint { color: #8f9cae; }
html[data-theme="dark"] .an-below { background: #301717; color: #e87e7e; }
html[data-theme="dark"] .an-above { background: #18322c; color: #a8efeb; }
html[data-theme="dark"] .an-note { color: #8f9cae; }
html[data-theme="dark"] .an-table th { color: #8f9cae; border-bottom: 2px solid #2d3d53; }
html[data-theme="dark"] .an-table td { border-bottom: 1px solid #29364d; color: #cfd8ee; }
html[data-theme="dark"] .an-table small { color: #8f9cae; }
html[data-theme="dark"] .an-row:hover { background: #182630; }
html[data-theme="dark"] .an-row-active { background: #172731; }
html[data-theme="dark"] .an-good { color: #a8efeb; }
html[data-theme="dark"] .an-warn { color: #edcf97; }
html[data-theme="dark"] .an-bad { color: #e56b6b; }
html[data-theme="dark"] .an-link { color: #a1d5ee; }
html[data-theme="dark"] .an-tag { background: #212f41; color: #a6b2c3; }
html[data-theme="dark"] .an-tag-red { background: #3a1c1c; color: #e87e7e; }
html[data-theme="dark"] .an-tag-amber { background: #533e28; color: #efd1a7; }
html[data-theme="dark"] .an-empty { color: #8f9cae; }
html[data-theme="dark"] .an-task-stat { background: #152035; }
html[data-theme="dark"] .an-task-stat span { color: #bce3f3; }
html[data-theme="dark"] .an-task-stat b { color: #cfd8ee; }
html[data-theme="dark"] .an-task-stat small { color: #a6b2c3; }
html[data-theme="dark"] .an-task-stat.an-ok span { color: #a3d1e8; }
html[data-theme="dark"] .an-task-stat.an-accepted span { color: #9aede7; }
html[data-theme="dark"] .an-task-stat.an-missed span { color: #e56b6b; }
html[data-theme="dark"] .an-stack { background: #212f41; }
html[data-theme="dark"] .an-seg-review { background: #947547; }
html[data-theme="dark"] .an-seg-missed { background: #8c4444; }
html[data-theme="dark"] .an-legend { color: #a6b2c3; }
html[data-theme="dark"] .an-legend-note { color: #8f9cae; }
html[data-theme="dark"] .an-subhead { color: #bce3f3; }
html[data-theme="dark"] .an-seg-unavailable { background: #4365a4; }
html[data-theme="dark"] .an-chev { color: #bce3f3; }
html[data-theme="dark"] .an-card .an-kpi { background: #152035; }
html[data-theme="dark"] .an-below { color: #e9809d; }
html[data-theme="dark"] .an-above { color: #adf1de; }
html[data-theme="dark"] .an-chart-toolbar { color: #a1aab1; }
html[data-theme="dark"] .an-seg-toggle { background: #19253c; }
html[data-theme="dark"] .an-seg-toggle button { color: #a1aab1; }
html[data-theme="dark"] .an-histogram { background: linear-gradient(180deg, #15202b 0%, #1a2730 100%); border: 1px solid #2a364e; }
html[data-theme="dark"] .an-threshold { background: #192634; color: #a6b2c3; }
html[data-theme="dark"] .an-threshold b { color: #cfd8ee; background: #111a2a; }
html[data-theme="dark"] .theme-toggle { border: 1px solid var(--sch-border-strong, #2f4558); background: var(--sch-surface, #111a2a); color: var(--sch-primary, #a3d1e8); }
html[data-theme="dark"] .theme-toggle:hover { background: var(--sch-surface-muted, #192634); }

/* Inline styles */
html[data-theme="dark"] [style*="background:#6366f1"], html[data-theme="dark"] [style*="background: #6366f1"] { background: #45468f !important; }
html[data-theme="dark"] [style*="background:#7cc4e8"], html[data-theme="dark"] [style*="background: #7cc4e8"] { background: #406e85 !important; }
html[data-theme="dark"] [style*="background:#8b5cf6"], html[data-theme="dark"] [style*="background: #8b5cf6"] { background: #5c4590 !important; }
html[data-theme="dark"] [style*="background:#94a3b8"], html[data-theme="dark"] [style*="background: #94a3b8"] { background: #3f609b !important; }
html[data-theme="dark"] [style*="background:#9aa1a5"], html[data-theme="dark"] [style*="background: #9aa1a5"] { background: #4365a4 !important; }
html[data-theme="dark"] [style*="background:#9ecdea"], html[data-theme="dark"] [style*="background: #9ecdea"] { background: #36596f !important; }
html[data-theme="dark"] [style*="background:#a9b6c4"], html[data-theme="dark"] [style*="background: #a9b6c4"] { background: #375386 !important; }
html[data-theme="dark"] [style*="background:#b8dcf5"], html[data-theme="dark"] [style*="background: #b8dcf5"] { background: #2b4659 !important; }
html[data-theme="dark"] [style*="background:#c4e7ff"], html[data-theme="dark"] [style*="background: #c4e7ff"] { background: #243c4b !important; }
html[data-theme="dark"] [style*="background:#cbd5e1"], html[data-theme="dark"] [style*="background: #cbd5e1"] { background: #304154 !important; }
html[data-theme="dark"] [style*="background:#ccfbf1"], html[data-theme="dark"] [style*="background: #ccfbf1"] { background: #234941 !important; }
html[data-theme="dark"] [style*="background:#d4edff"], html[data-theme="dark"] [style*="background: #d4edff"] { background: #203342 !important; }
html[data-theme="dark"] [style*="background:#dff1ff"], html[data-theme="dark"] [style*="background: #dff1ff"] { background: #1c2e3b !important; }
html[data-theme="dark"] [style*="background:#e0f0f8"], html[data-theme="dark"] [style*="background: #e0f0f8"] { background: #1e343f !important; }
html[data-theme="dark"] [style*="background:#e0f2fe"], html[data-theme="dark"] [style*="background: #e0f2fe"] { background: #1c2f3b !important; }
html[data-theme="dark"] [style*="background:#e1e3e4"], html[data-theme="dark"] [style*="background: #e1e3e4"] { background: #20304e !important; }
html[data-theme="dark"] [style*="background:#e2e8f0"], html[data-theme="dark"] [style*="background: #e2e8f0"] { background: #212f41 !important; }
html[data-theme="dark"] [style*="background:#e6f2fb"], html[data-theme="dark"] [style*="background: #e6f2fb"] { background: #1c2c39 !important; }
html[data-theme="dark"] [style*="background:#e8f4fa"], html[data-theme="dark"] [style*="background: #e8f4fa"] { background: #1b2f39 !important; }
html[data-theme="dark"] [style*="background:#e9edf1"], html[data-theme="dark"] [style*="background: #e9edf1"] { background: #1a2841 !important; }
html[data-theme="dark"] [style*="background:#eaf0f5"], html[data-theme="dark"] [style*="background: #eaf0f5"] { background: #1c2d3a !important; }
html[data-theme="dark"] [style*="background:#eef6f7"], html[data-theme="dark"] [style*="background: #eef6f7"] { background: #1a3437 !important; }
html[data-theme="dark"] [style*="background:#ef4444"], html[data-theme="dark"] [style*="background: #ef4444"] { background: #a34e4e !important; }
html[data-theme="dark"] [style*="background:#f0bd81"], html[data-theme="dark"] [style*="background: #f0bd81"] { background: #7d5f3c !important; }
html[data-theme="dark"] [style*="background:#f0f7ff"], html[data-theme="dark"] [style*="background: #f0f7ff"] { background: #172331 !important; }
html[data-theme="dark"] [style*="background:#f0f9ff"], html[data-theme="dark"] [style*="background: #f0f9ff"] { background: #172731 !important; }
html[data-theme="dark"] [style*="background:#f0fdfa"], html[data-theme="dark"] [style*="background: #f0fdfa"] { background: #18322c !important; }
html[data-theme="dark"] [style*="background:#f1f5f9"], html[data-theme="dark"] [style*="background: #f1f5f9"] { background: #192634 !important; }
html[data-theme="dark"] [style*="background:#f5fafc"], html[data-theme="dark"] [style*="background: #f5fafc"] { background: #17282f !important; }
html[data-theme="dark"] [style*="background:#f87171"], html[data-theme="dark"] [style*="background: #f87171"] { background: #823f3f !important; }
html[data-theme="dark"] [style*="background:#f8fafc"], html[data-theme="dark"] [style*="background: #f8fafc"] { background: #16222e !important; }
html[data-theme="dark"] [style*="background:#f8fbff"], html[data-theme="dark"] [style*="background: #f8fbff"] { background: #151f2c !important; }
html[data-theme="dark"] [style*="background:#faf7ff"], html[data-theme="dark"] [style*="background: #faf7ff"] { background: #1e152c !important; }
html[data-theme="dark"] [style*="background:#fee2e2"], html[data-theme="dark"] [style*="background: #fee2e2"] { background: #3a1c1c !important; }
html[data-theme="dark"] [style*="background:#fef2f2"], html[data-theme="dark"] [style*="background: #fef2f2"] { background: #301717 !important; }
html[data-theme="dark"] [style*="background:#fef3c7"], html[data-theme="dark"] [style*="background: #fef3c7"] { background: #4a4324 !important; }
html[data-theme="dark"] [style*="background:#ffddb8"], html[data-theme="dark"] [style*="background: #ffddb8"] { background: #533e28 !important; }
html[data-theme="dark"] [style*="background:#ffefb0"], html[data-theme="dark"] [style*="background: #ffefb0"] { background: #584e2a !important; }
html[data-theme="dark"] [style*="background:#fff;"], html[data-theme="dark"] [style*="background:#fff ;"], html[data-theme="dark"] [style*="background:#fff!"], html[data-theme="dark"] [style*="background:#fff !"], html[data-theme="dark"] [style*="background: #fff;"], html[data-theme="dark"] [style*="background: #fff ;"], html[data-theme="dark"] [style*="background: #fff!"], html[data-theme="dark"] [style*="background: #fff !"] { background: #111a2a !important; }
html[data-theme="dark"] [style*="background:#fff1f2"], html[data-theme="dark"] [style*="background: #fff1f2"] { background: #301719 !important; }
html[data-theme="dark"] [style*="background:#fff6d6"], html[data-theme="dark"] [style*="background: #fff6d6"] { background: #40391f !important; }
html[data-theme="dark"] [style*="background:#fffbeb"], html[data-theme="dark"] [style*="background: #fffbeb"] { background: #342e19 !important; }
html[data-theme="dark"] [style*="background:#ffffff"], html[data-theme="dark"] [style*="background: #ffffff"] { background: #111a2a !important; }
html[data-theme="dark"] [style*="border-left:#6366f1"], html[data-theme="dark"] [style*="border-left: #6366f1"] { border-left-color: #474985 !important; }
html[data-theme="dark"] [style*="border-left:#7cc4e8"], html[data-theme="dark"] [style*="border-left: #7cc4e8"] { border-left-color: #446b7e !important; }
html[data-theme="dark"] [style*="border-left:#8b5cf6"], html[data-theme="dark"] [style*="border-left: #8b5cf6"] { border-left-color: #5b4885 !important; }
html[data-theme="dark"] [style*="border-left:#94a3b8"], html[data-theme="dark"] [style*="border-left: #94a3b8"] { border-left-color: #495f88 !important; }
html[data-theme="dark"] [style*="border-left:#9aa1a5"], html[data-theme="dark"] [style*="border-left: #9aa1a5"] { border-left-color: #4c638d !important; }
html[data-theme="dark"] [style*="border-left:#9ecdea"], html[data-theme="dark"] [style*="border-left: #9ecdea"] { border-left-color: #3c5d70 !important; }
html[data-theme="dark"] [style*="border-left:#a9b6c4"], html[data-theme="dark"] [style*="border-left: #a9b6c4"] { border-left-color: #42567b !important; }
html[data-theme="dark"] [style*="border-left:#b8dcf5"], html[data-theme="dark"] [style*="border-left: #b8dcf5"] { border-left-color: #354f62 !important; }
html[data-theme="dark"] [style*="border-left:#c4e7ff"], html[data-theme="dark"] [style*="border-left: #c4e7ff"] { border-left-color: #304959 !important; }
html[data-theme="dark"] [style*="border-left:#cbd5e1"], html[data-theme="dark"] [style*="border-left: #cbd5e1"] { border-left-color: #374a60 !important; }
html[data-theme="dark"] [style*="border-left:#ccfbf1"], html[data-theme="dark"] [style*="border-left: #ccfbf1"] { border-left-color: #2f584f !important; }
html[data-theme="dark"] [style*="border-left:#d4edff"], html[data-theme="dark"] [style*="border-left: #d4edff"] { border-left-color: #2d4353 !important; }
html[data-theme="dark"] [style*="border-left:#dff1ff"], html[data-theme="dark"] [style*="border-left: #dff1ff"] { border-left-color: #2a3f4f !important; }
html[data-theme="dark"] [style*="border-left:#e1e3e4"], html[data-theme="dark"] [style*="border-left: #e1e3e4"] { border-left-color: #303e59 !important; }
html[data-theme="dark"] [style*="border-left:#e2e8f0"], html[data-theme="dark"] [style*="border-left: #e2e8f0"] { border-left-color: #2d3d53 !important; }
html[data-theme="dark"] [style*="border-left:#e8f4fa"], html[data-theme="dark"] [style*="border-left: #e8f4fa"] { border-left-color: #2a414d !important; }
html[data-theme="dark"] [style*="border-left:#e9edf1"], html[data-theme="dark"] [style*="border-left: #e9edf1"] { border-left-color: #2b3850 !important; }
html[data-theme="dark"] [style*="border-left:#ef4444"], html[data-theme="dark"] [style*="border-left: #ef4444"] { border-left-color: #914e4e !important; }
html[data-theme="dark"] [style*="border-left:#f0bd81"], html[data-theme="dark"] [style*="border-left: #f0bd81"] { border-left-color: #796041 !important; }
html[data-theme="dark"] [style*="border-left:#f1f5f9"], html[data-theme="dark"] [style*="border-left: #f1f5f9"] { border-left-color: #28394a !important; }
html[data-theme="dark"] [style*="border-left:#f5fafc"], html[data-theme="dark"] [style*="border-left: #f5fafc"] { border-left-color: #263e47 !important; }
html[data-theme="dark"] [style*="border-left:#f87171"], html[data-theme="dark"] [style*="border-left: #f87171"] { border-left-color: #7c4343 !important; }
html[data-theme="dark"] [style*="border-left:#faf7ff"], html[data-theme="dark"] [style*="border-left: #faf7ff"] { border-left-color: #312545 !important; }
html[data-theme="dark"] [style*="border-left:#fee2e2"], html[data-theme="dark"] [style*="border-left: #fee2e2"] { border-left-color: #4e2a2a !important; }
html[data-theme="dark"] [style*="border-left:#ffddb8"], html[data-theme="dark"] [style*="border-left: #ffddb8"] { border-left-color: #5e4933 !important; }
html[data-theme="dark"] [style*="border-left:#fffbeb"], html[data-theme="dark"] [style*="border-left: #fffbeb"] { border-left-color: #4a4328 !important; }
html[data-theme="dark"] [style*="border-left:#ffffff"], html[data-theme="dark"] [style*="border-left: #ffffff"] { border-left-color: #242e42 !important; }
html[data-theme="dark"] [style*="color:#00364c"], html[data-theme="dark"] [style*="color: #00364c"] { color: #bce3f3 !important; }
html[data-theme="dark"] [style*="color:#00527a"], html[data-theme="dark"] [style*="color: #00527a"] { color: #a1d5ee !important; }
html[data-theme="dark"] [style*="color:#0068a0"], html[data-theme="dark"] [style*="color: #0068a0"] { color: #8ac9ea !important; }
html[data-theme="dark"] [style*="color:#0277bd"], html[data-theme="dark"] [style*="color: #0277bd"] { color: #78bde7 !important; }
html[data-theme="dark"] [style*="color:#0284c7"], html[data-theme="dark"] [style*="color: #0284c7"] { color: #72bfe6 !important; }
html[data-theme="dark"] [style*="color:#0369a1"], html[data-theme="dark"] [style*="color: #0369a1"] { color: #88c7ea !important; }
html[data-theme="dark"] [style*="color:#047857"], html[data-theme="dark"] [style*="color: #047857"] { color: #a0eed8 !important; }
html[data-theme="dark"] [style*="color:#059669"], html[data-theme="dark"] [style*="color: #059669"] { color: #8debce !important; }
html[data-theme="dark"] [style*="color:#0a58ca"], html[data-theme="dark"] [style*="color: #0a58ca"] { color: #6b9de5 !important; }
html[data-theme="dark"] [style*="color:#0a7eb8"], html[data-theme="dark"] [style*="color: #0a7eb8"] { color: #76c1e7 !important; }
html[data-theme="dark"] [style*="color:#0ea5e9"], html[data-theme="dark"] [style*="color: #0ea5e9"] { color: #5ab8e2 !important; }
html[data-theme="dark"] [style*="color:#0f172a"], html[data-theme="dark"] [style*="color: #0f172a"] { color: #cfd8ee !important; }
html[data-theme="dark"] [style*="color:#0f5132"], html[data-theme="dark"] [style*="color: #0f5132"] { color: #b1f1d3 !important; }
html[data-theme="dark"] [style*="color:#0f766e"], html[data-theme="dark"] [style*="color: #0f766e"] { color: #9aede7 !important; }
html[data-theme="dark"] [style*="color:#10b981"], html[data-theme="dark"] [style*="color: #10b981"] { color: #72e6c0 !important; }
html[data-theme="dark"] [style*="color:#115e59"], html[data-theme="dark"] [style*="color: #115e59"] { color: #a8efeb !important; }
html[data-theme="dark"] [style*="color:#14b8a6"], html[data-theme="dark"] [style*="color: #14b8a6"] { color: #70e6d9 !important; }
html[data-theme="dark"] [style*="color:#184c65"], html[data-theme="dark"] [style*="color: #184c65"] { color: #a4d3e9 !important; }
html[data-theme="dark"] [style*="color:#1a4d66"], html[data-theme="dark"] [style*="color: #1a4d66"] { color: #a3d1e8 !important; }
html[data-theme="dark"] [style*="color:#1abc9c"], html[data-theme="dark"] [style*="color: #1abc9c"] { color: #6ae5cc !important; }
html[data-theme="dark"] [style*="color:#1c2840"], html[data-theme="dark"] [style*="color: #1c2840"] { color: #c0cce4 !important; }
html[data-theme="dark"] [style*="color:#1e293b"], html[data-theme="dark"] [style*="color: #1e293b"] { color: #c5d0e1 !important; }
html[data-theme="dark"] [style*="color:#26344b"], html[data-theme="dark"] [style*="color: #26344b"] { color: #bac7dc !important; }
html[data-theme="dark"] [style*="color:#334155"], html[data-theme="dark"] [style*="color: #334155"] { color: #b4c0d2 !important; }
html[data-theme="dark"] [style*="color:#344955"], html[data-theme="dark"] [style*="color: #344955"] { color: #b4c6d1 !important; }
html[data-theme="dark"] [style*="color:#475569"], html[data-theme="dark"] [style*="color: #475569"] { color: #a6b2c3 !important; }
html[data-theme="dark"] [style*="color:#5b6973"], html[data-theme="dark"] [style*="color: #5b6973"] { color: #a0acb4 !important; }
html[data-theme="dark"] [style*="color:#5b7c8d"], html[data-theme="dark"] [style*="color: #5b7c8d"] { color: #8da8b5 !important; }
html[data-theme="dark"] [style*="color:#5d6b76"], html[data-theme="dark"] [style*="color: #5d6b76"] { color: #9eaab3 !important; }
html[data-theme="dark"] [style*="color:#5e35b1"], html[data-theme="dark"] [style*="color: #5e35b1"] { color: #916fd4 !important; }
html[data-theme="dark"] [style*="color:#5f7180"], html[data-theme="dark"] [style*="color: #5f7180"] { color: #97a5b2 !important; }
html[data-theme="dark"] [style*="color:#60727f"], html[data-theme="dark"] [style*="color: #60727f"] { color: #98a6b1 !important; }
html[data-theme="dark"] [style*="color:#623f0e"], html[data-theme="dark"] [style*="color: #623f0e"] { color: #efd1a7 !important; }
html[data-theme="dark"] [style*="color:#63727e"], html[data-theme="dark"] [style*="color: #63727e"] { color: #99a5ae !important; }
html[data-theme="dark"] [style*="color:#64748b"], html[data-theme="dark"] [style*="color: #64748b"] { color: #8f9cae !important; }
html[data-theme="dark"] [style*="color:#667;"], html[data-theme="dark"] [style*="color:#667 ;"], html[data-theme="dark"] [style*="color:#667!"], html[data-theme="dark"] [style*="color:#667 !"], html[data-theme="dark"] [style*="color: #667;"], html[data-theme="dark"] [style*="color: #667 ;"], html[data-theme="dark"] [style*="color: #667!"], html[data-theme="dark"] [style*="color: #667 !"] { color: #9e9eac !important; }
html[data-theme="dark"] [style*="color:#6b5b00"], html[data-theme="dark"] [style*="color: #6b5b00"] { color: #f0e5aa !important; }
html[data-theme="dark"] [style*="color:#6b7b86"], html[data-theme="dark"] [style*="color: #6b7b86"] { color: #93a0a9 !important; }
html[data-theme="dark"] [style*="color:#8a1c1c"], html[data-theme="dark"] [style*="color: #8a1c1c"] { color: #e78989 !important; }
html[data-theme="dark"] [style*="color:#8a5a00"], html[data-theme="dark"] [style*="color: #8a5a00"] { color: #edcf97 !important; }
html[data-theme="dark"] [style*="color:#92400e"], html[data-theme="dark"] [style*="color: #92400e"] { color: #eaaf8a !important; }
html[data-theme="dark"] [style*="color:#991b1b"], html[data-theme="dark"] [style*="color: #991b1b"] { color: #e87e7e !important; }
html[data-theme="dark"] [style*="color:#b45309"], html[data-theme="dark"] [style*="color: #b45309"] { color: #e7a979 !important; }
html[data-theme="dark"] [style*="color:#b58a00"], html[data-theme="dark"] [style*="color: #b58a00"] { color: #e8cf7e !important; }
html[data-theme="dark"] [style*="color:#b91c1c"], html[data-theme="dark"] [style*="color: #b91c1c"] { color: #e56b6b !important; }
html[data-theme="dark"] [style*="color:#d97706"], html[data-theme="dark"] [style*="color: #d97706"] { color: #e4a965 !important; }

/* Manual overrides (dark.manual.css) */
html[data-theme="dark"] {
    color-scheme: dark;
    --sch-bg: #0b1220;
    --sch-surface: #111a2b;
    --sch-surface-muted: #172236;
    --sch-primary: #2b6f91;
    --sch-primary-dark: #235d7a;
    --sch-primary-deeper: #7cc4e8;
    --sch-primary-tint: #1b3a4f;
    --sch-on-primary: #ffffff;
    --sch-text: #dbe4ee;
    --sch-text-strong: #f1f5f9;
    --sch-muted: #94a3b8;
    --sch-muted-2: #8b97a3;
    --sch-border: rgba(148, 163, 184, 0.14);
    --sch-border-strong: #26344b;
    --sch-success: #14b8a6;
    --sch-warning: #f59e0b;
    --sch-danger: #f87171;
    --sch-info: #38bdf8;
    --sch-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -6px rgba(0, 0, 0, 0.45);
    --sch-shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
    --sch-shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
    --focus-ring: 0 0 0 3px rgba(56, 189, 248, 0.3);
    --grad-primary: linear-gradient(135deg, #2b6f91 0%, #0e7490 100%);
    --grad-primary-hover: linear-gradient(135deg, #235d7a 0%, #155e75 100%);
    --grad-success: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    --grad-surface: linear-gradient(135deg, #111a2b 0%, #0f1828 100%);
    --grad-success-soft: linear-gradient(135deg, rgba(20, 184, 166, 0.12) 0%, rgba(20, 184, 166, 0.06) 100%);
    --grad-warning-soft: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0.07) 100%);
    --grad-danger-soft: linear-gradient(135deg, rgba(248, 113, 113, 0.14) 0%, rgba(248, 113, 113, 0.07) 100%);
}

html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-refresh i,
html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-import i,
html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-download i,
html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-force i { color: #38bdf8; }
html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-delete-all { background: rgba(248, 113, 113, 0.1); color: #fca5a5; border-color: rgba(248, 113, 113, 0.3); }
html[data-theme="dark"] .toolbar-main .btn.toolbar-btn-delete-all:hover { background: rgba(248, 113, 113, 0.18); }

html[data-theme="dark"] body,
html[data-theme="dark"] .dashboard { background: var(--sch-bg); color: var(--sch-text); }

html[data-theme="dark"] .header { background: rgba(17, 26, 43, 0.96); border-bottom-color: var(--sch-border); }
html[data-theme="dark"] .header h1 { color: #7cc4e8; }
html[data-theme="dark"] #userName { color: var(--sch-text-strong); }
html[data-theme="dark"] #userRole { color: var(--sch-muted) !important; }

html[data-theme="dark"] .nav-tabs,
html[data-theme="dark"] .content-section { background: var(--sch-surface); border-color: var(--sch-border); }
html[data-theme="dark"] .nav-tab { color: #a9b6c4; }
html[data-theme="dark"] .nav-tab:hover { background: #18243a; color: #e2e8f0; }
html[data-theme="dark"] .nav-tab.active { background: linear-gradient(135deg, #2b6f91, #1f5874); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
html[data-theme="dark"] .content-section h2,
html[data-theme="dark"] .content-section h3 { color: var(--sch-text-strong); }

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select {
    background-color: #0f1828;
    color: var(--sch-text);
    border-color: #2a3a52;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #6b7a8c; }

html[data-theme="dark"] table thead th { background: #152035; color: #9fb0c2; border-bottom-color: #26344b; }
html[data-theme="dark"] table tbody td { color: var(--sch-text); border-bottom-color: #1c2840; }
html[data-theme="dark"] table, html[data-theme="dark"] tr { background: transparent; }
html[data-theme="dark"] table tbody tr:hover td { background: rgba(148, 163, 184, 0.05); }
html[data-theme="dark"] .table-container { border-color: #26344b; box-shadow: none; }

html[data-theme="dark"] .modal { background: rgba(2, 6, 15, 0.7); }
html[data-theme="dark"] .modal-content { background: var(--sch-surface); color: var(--sch-text); border: 1px solid var(--sch-border); }

html[data-theme="dark"] a { color: #7cc4e8; }
html[data-theme="dark"] hr { border-color: #26344b; }

/* Leaflet maps: darken tiles, keep markers as they are */
html[data-theme="dark"] .leaflet-tile-pane { filter: brightness(0.85) invert(1) contrast(0.9) hue-rotate(200deg) saturate(0.4) brightness(0.9); }
html[data-theme="dark"] .leaflet-container { background: #0b1220; }
html[data-theme="dark"] .leaflet-popup-content-wrapper,
html[data-theme="dark"] .leaflet-popup-tip { background: var(--sch-surface); color: var(--sch-text); }

/* Analytics tab */
html[data-theme="dark"] .an-title,
html[data-theme="dark"] .an-card-head h3,
html[data-theme="dark"] .an-subhead,
html[data-theme="dark"] .an-chev { color: #e2e8f0; }
html[data-theme="dark"] .an-card { background: #131d30; box-shadow: none; border: 1px solid var(--sch-border); }
html[data-theme="dark"] .an-kpi,
html[data-theme="dark"] .an-card .an-kpi,
html[data-theme="dark"] .an-task-stat { background: #182439; }
html[data-theme="dark"] .an-kpi-num,
html[data-theme="dark"] .an-task-stat b { color: #f1f5f9; }
html[data-theme="dark"] .an-kpi-desc,
html[data-theme="dark"] .an-task-stat small,
html[data-theme="dark"] .an-note,
html[data-theme="dark"] .an-legend { color: #94a3b8; }
html[data-theme="dark"] .an-filters,
html[data-theme="dark"] .an-threshold,
html[data-theme="dark"] .an-seg-toggle { background: #172236; }
html[data-theme="dark"] .an-threshold b { background: #0f1828; color: #e2e8f0; }
html[data-theme="dark"] .an-field,
html[data-theme="dark"] .an-btn { background: #0f1828; border-color: #26344b; color: #dbe4ee; }
html[data-theme="dark"] .an-histogram { background: linear-gradient(180deg, #121c2f 0%, #0f1828 100%); border-color: #1f2c42; }
html[data-theme="dark"] .an-below { background: linear-gradient(135deg, rgba(248, 113, 113, 0.16), rgba(248, 113, 113, 0.08)); color: #fca5a5; }
html[data-theme="dark"] .an-above { background: linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(45, 212, 191, 0.08)); color: #5eead4; }
html[data-theme="dark"] .an-seg-toggle button { color: #94a3b8; }
html[data-theme="dark"] .an-seg-toggle button.active { background: #e2e8f0; color: #0f172a; }
html[data-theme="dark"] .an-table th { color: #8b97a3; border-bottom-color: #26344b; }
html[data-theme="dark"] .an-table td { color: #dbe4ee; border-bottom-color: #1c2840; }
html[data-theme="dark"] .an-row:hover { background: #18243a; }
html[data-theme="dark"] .an-row-active { background: #1b3a4f; }
html[data-theme="dark"] .an-link { color: #7cc4e8; }
html[data-theme="dark"] .an-tag { background: #1f2c42; color: #cbd5e1; }
html[data-theme="dark"] .an-good { color: #5eead4; }
html[data-theme="dark"] .an-warn { color: #fbbf24; }
html[data-theme="dark"] .an-bad { color: #fca5a5; }

html[data-theme="dark"] ::-webkit-scrollbar-track { background: #0f1828; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2a3a52; }
