/* Page-specific light palettes. Layout, images, chart data and dark rules are unchanged. */
/* home.html */
html[data-theme="light"] body.theme-page-home .stat-card { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-home .stat-card:hover { box-shadow: 0 8px 32px rgba(23,43,70,.08), 0 0 20px rgba(201, 169, 97, 0.08) !important; }
html[data-theme="light"] body.theme-page-home .stat-label { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-home .stat-value { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-home .stat-sub { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-home .stat-icon.trucks { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-home .stat-icon.clients { color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-home .stat-icon.transports { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-home .stat-icon.revenue { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-home .map-header { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-home .map-header h3 { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-home .map-legend { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-home .map-layer-toggle { color: var(--theme-muted) !important; background: var(--theme-surface) !important; border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-home .map-layer-toggle.is-active { border-color: var(--theme-border) !important; background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-home .legend-icon { color: var(--theme-text) !important; box-shadow: 0 2px 7px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-home #heatmapToggle { background: var(--theme-surface) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-home .sidebar-card { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-home .sidebar-card-header { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-home .sidebar-card-header i { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-home .sidebar-badge { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-home .activity-item { border-bottom: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-home .activity-text { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-home .activity-text strong { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-home .activity-time { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-home .city-home-meta { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-home .city-home-distance { color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-home .quick-action { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-home .quick-action:hover { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-home .quick-action i { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-home #clientsMap .leaflet-control-zoom a { background-color: var(--theme-surface) !important; color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-home #clientsMap .leaflet-popup-content-wrapper { background: var(--theme-surface) !important; color: var(--theme-muted) !important; box-shadow: 0 8px 32px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-home #clientsMap .leaflet-popup-tip { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-home #clientsMap .map-popup__title { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-home #clientsMap .map-popup__grid { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-home #clientsMap .map-popup__label { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-home #clientsMap .map-popup__value { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-home #clientsMap .leaflet-control-attribution { background: var(--theme-surface-alt) !important; }

/* dashboard.html */
html[data-theme="light"] body.theme-page-dashboard { --gold: var(--theme-accent) !important; --gold-85: var(--theme-accent) !important; --navy: var(--theme-surface) !important; --navy-1: var(--theme-surface) !important; --navy-2: var(--theme-surface) !important; --navy-3: var(--theme-surface) !important; --card-bg: var(--theme-surface) !important; --card-inner: var(--theme-surface) !important; --card-border: var(--theme-border) !important; --text: var(--theme-text) !important; --text-dim: var(--theme-muted) !important; --border: var(--theme-border) !important; --border-hi: var(--theme-border) !important; --green: var(--theme-success) !important; --red: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-dashboard .kpi-card { box-shadow: 0 2px 12px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-dashboard .dash-card { box-shadow: 0 4px 20px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-dashboard .btn-calc::before { background: var(--theme-surface-alt) !important; }
html[data-theme="light"] body.theme-page-dashboard .gasoleo-block .gb-divider { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-dashboard .time-val.total { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-dashboard .time-val.time-pending { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-dashboard .calc-loading { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-dashboard .select2-dropdown { box-shadow: 0 12px 32px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-dashboard .loading { border: 2px solid var(--theme-border) !important; border-top-color: var(--theme-border) !important; }

/* statistics.html */

/* personal/dashboard.html */
html[data-theme="light"] body.theme-page-personal-dashboard .pe-body { background: var(--theme-workspace) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-lock-card { background: var(--theme-surface) !important; border: 1px solid var(--theme-border) !important; box-shadow: 0 20px 60px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-lock-icon { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-lock-title { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-lock-subtitle { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-lock-error { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-lock-input { background: var(--theme-input) !important; border: 1px solid var(--theme-border) !important; color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-month-label { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-btn { background: var(--theme-surface-alt) !important; border: 1px solid var(--theme-border) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-btn:hover { background: var(--theme-surface-alt) !important; color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-btn-primary { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-btn-icon { border: 1px solid var(--theme-border) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-btn-icon:hover { background: var(--theme-surface-alt) !important; color: var(--theme-text) !important; border-color: var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-stat { background: var(--theme-surface) !important; border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-stat::before { background: var(--theme-surface-alt) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-stat:hover { border-color: var(--theme-border) !important; box-shadow: 0 8px 24px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-stat-icon { background: var(--theme-surface-alt) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-stat-val { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-stat-val.income { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-stat-val.expense { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-stat-val.positive { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-stat-val.negative { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-stat-lbl { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-stat-expense .pe-stat-icon { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-stat-income .pe-stat-icon { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-stat-balance { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-stat-balance .pe-stat-icon { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-stat-largest .pe-stat-icon { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-insights { border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-insight-item { color: var(--theme-muted) !important; border-right: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-insight-item i { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-insight-up { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-insight-down { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-chart-box { background: var(--theme-surface) !important; border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-chart-box:hover { border-color: var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-chart-title { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-chart-title i { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-table-section { background: var(--theme-surface) !important; border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-table-header { border-bottom: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-table-search { background: var(--theme-input) !important; border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-table-search i { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-table-search input { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-table-search input::placeholder { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-pill { background: var(--theme-surface-alt) !important; border: 1px solid var(--theme-border) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-pill:hover { background: var(--theme-surface-alt) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-pill.active { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-table th { color: var(--theme-muted) !important; border-bottom: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-table td { color: var(--theme-muted) !important; border-bottom: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-table tr:hover td { background: var(--theme-surface-alt) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-table .amount.expense { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-table .amount.income { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-table .balance-col { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .cat-badge { background: var(--theme-surface-alt) !important; border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-empty { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-table-footer { border-top: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-table-count { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-modal-backdrop { background: var(--theme-overlay) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-modal-content { background: var(--theme-surface) !important; border: 1px solid var(--theme-border) !important; box-shadow: 0 20px 60px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-modal-header h2 { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-modal-header h2 i { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-form-group label { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-form-group label i { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-form-group input,
html[data-theme="light"] body.theme-page-personal-dashboard .pe-form-group select,
html[data-theme="light"] body.theme-page-personal-dashboard .pe-form-group textarea { background: var(--theme-input) !important; border: 1px solid var(--theme-border) !important; color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-hint { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-hint i { color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-file-drop { border: 2px dashed var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-file-drop i { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-file-drop p { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-toast { background: var(--theme-surface) !important; border: 1px solid var(--theme-border) !important; color: var(--theme-text) !important; box-shadow: 0 8px 24px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-toast.success i { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-toast.error i { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-btn-danger { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-toggle-label { color: var(--theme-muted) !important; }
@media (max-width: 768px) {
html[data-theme="light"] body.theme-page-personal-dashboard .pe-insight-item { border-bottom: 1px solid var(--theme-border) !important; }
}
html[data-theme="light"] body.theme-page-personal-dashboard .pe-rules-section { background: var(--theme-surface) !important; border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-rules-header:hover .pe-chart-title { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-rule-input { background: var(--theme-input) !important; border: 1px solid var(--theme-border) !important; color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-rule-group { background: var(--theme-surface) !important; border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-rule-group-title { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-rule-group-title .badge { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-rule-tag { background: var(--theme-surface-alt) !important; border: 1px solid var(--theme-border) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-rule-tag .del { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-rule-tag .del:hover { color: var(--theme-danger) !important; }

/* View Data: pale slate filters, subtle row striping and navy primary actions. */
html[data-theme="light"] body.theme-page-view_data { --vd-bg-deep: var(--theme-bg) !important; --vd-bg-card: var(--theme-surface) !important; --vd-bg-card-alt: var(--theme-panel) !important; --vd-bg-elevated: var(--theme-surface-alt) !important; --vd-shadow-sm: var(--theme-shadow) !important; --vd-border: var(--theme-border) !important; --vd-border-subtle: var(--theme-border) !important; --vd-gold: var(--theme-accent) !important; --vd-gold-bright: var(--theme-accent) !important; --vd-navy: var(--theme-surface) !important; --vd-navy-light: var(--theme-surface) !important; --vd-text-primary: var(--theme-text) !important; --vd-text-secondary: var(--theme-muted) !important; --vd-text-muted: var(--theme-muted) !important; --vd-glass-border: var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-view_data {
  --vd-filter-surface: var(--theme-surface-alt);
  --vd-header-surface: var(--theme-header);
  --vd-row-light: var(--theme-surface);
  --vd-row-shaded: var(--theme-panel);
  --vd-row-hover: var(--theme-hover);
  --vd-text-secondary: #40516a !important;
  --vd-text-muted: #40516a !important;
}
html[data-theme="light"] body.theme-page-view_data .content-area { background: var(--theme-workspace) !important; border-color: var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-view_data .vd-filter-system { background: var(--vd-filter-surface) !important; border-color: var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-view_data .vd-filter-title { color: #73531b !important; }
html[data-theme="light"] body.theme-page-view_data .vd-filter-lbl { color: #30465f !important; }
html[data-theme="light"] body.theme-page-view_data .vd-filter-system :is(#generate-report, #export-button) { background: var(--theme-control) !important; color: var(--theme-text) !important; border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-view_data .vd-filter-system :is(#generate-report, #export-button):hover { background: var(--theme-hover) !important; border-color: #9eb3c9 !important; }
html[data-theme="light"] body.theme-page-view_data .vd-filter-system :is(.vd-action-btn, .vd-clear-all-btn):focus-visible { outline: 3px solid var(--theme-focus); outline-offset: 3px; }
html[data-theme="light"] body.theme-page-view_data .vd-filter-select { background: var(--theme-input) !important; border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-view_data .vd-filter-input { background: var(--theme-input) !important; border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-view_data .vd-filter-footer { border-top: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-view_data .vd-clear-all-btn { color: #9e1f2c !important; border-color: #bd939c !important; }
html[data-theme="light"] body.theme-page-view_data .vd-clear-all-btn:hover { background: var(--theme-danger-bg) !important; border-color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-view_data .vd-filter-system .select2-container--default .select2-selection--single { background: var(--theme-input) !important; border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .popup-dd-trigger { background: var(--theme-input) !important; border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .popup-dd-trigger:hover { border-color: var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .view-data-table thead th { background: var(--vd-header-surface) !important; color: var(--theme-text) !important; border-bottom-color: var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .view-data-table tbody tr:nth-child(odd) { background: var(--vd-row-light) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .view-data-table tbody tr:nth-child(even) { background: var(--vd-row-shaded) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .view-data-table tbody tr:hover { background: var(--vd-row-hover) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .view-data-table tbody td { border-bottom: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .view-data-table tbody td[contenteditable="true"]:focus { background: var(--theme-surface); box-shadow: inset 0 0 0 2px var(--theme-focus); }
html[data-theme="light"] body.theme-page-view_data.view-data-page .edit-button { color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .delete-button { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .invoiced-toggle { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .invoiced-toggle:checked { background: var(--theme-primary) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .invoiced-toggle:checked::after { color: #fff; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .driver-badge { color: #fff !important; background-image: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)) !important; box-shadow: 0 2px 4px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .transport-scope-importation { background: var(--theme-info-bg); color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .transport-scope-exportation { background: var(--theme-success-bg); color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .transport-scope-unset { border-color: var(--theme-border) !important; background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page #pagination-container { background: var(--vd-row-shaded); border-color: var(--theme-border); box-shadow: none; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .pagination-btn { background: var(--vd-row-light) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .pagination-btn:hover:not(.disabled):not(.active) { background: var(--vd-row-hover) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .pagination-btn.active { background: var(--theme-primary) !important; color: #fff !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .clear-filters-btn { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .popup-trigger-chip { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .view-data-table-wrapper::-webkit-scrollbar-track { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-view_data.view-data-page .article-fix-btn { background: var(--theme-warning-bg); color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-view_data #missing-article-banner { background: #fff7e7; color: #735014 !important; border-color: #efd9ae; border-left-color: #c99c42; }
html[data-theme="light"] body.theme-page-view_data #missing-article-banner .banner-icon { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-view_data #missing-article-banner .banner-action { color: #62430f !important; }
html[data-theme="light"] body.theme-page-view_data .article-fix-popup { background: var(--theme-surface) !important; color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-view_data .article-fix-popup .swal2-title { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-view_data .article-fix-popup .swal2-html-container { color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-view_data .article-fix-confirm { background: var(--theme-surface) !important; color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-view_data .article-fix-cancel { background: var(--theme-surface) !important; color: var(--theme-info) !important; border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-view_data .article-fix-context { background: var(--theme-surface) !important; color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-view_data .article-fix-context strong { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-view_data .article-fix-search { background: var(--theme-input) !important; border: 1px solid var(--theme-border) !important; color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-view_data .article-fix-search::placeholder { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-view_data .article-suggestions-list::-webkit-scrollbar-track { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-view_data .article-suggestion { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-view_data .article-suggestion:hover { background: var(--theme-hover) !important; }
html[data-theme="light"] body.theme-page-view_data .article-suggestion.selected { background: var(--theme-warning-bg) !important; border-color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-view_data .article-suggestion-desc { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-view_data .article-suggestion-badge { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-view_data .article-suggestion-code { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-view_data .article-suggestion-price { color: var(--theme-accent) !important; }

/* client_map_editor.html */
html[data-theme="light"] body.theme-page-client_map_editor .cme-wrapper { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-sidebar { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-sidebar-header h2 { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-search input { background: var(--theme-surface-alt) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-search i { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-entity-tab { background: var(--theme-surface-alt) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-btn-new-park { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-tab { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-tab.active,
html[data-theme="light"] body.theme-page-client_map_editor .cme-tab:hover { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-count { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-client-icon.has-coords { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-client-icon.no-coords { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-client-icon.park { color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-client-coords { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-badge-no-coords { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-edit-panel { background: var(--theme-surface-alt) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-btn-delete { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-park-notes { background: var(--theme-surface-alt) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-park-active { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-edit-title { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-coord-field label { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-coord-field input { background: var(--theme-surface-alt) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-hint { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-btn-clear { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-btn-center { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-btn-center:hover { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-map-topbar { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-map-topbar-title { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-map-status { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-map-status span { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-toast { box-shadow: 0 8px 24px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-toast.success { background: var(--theme-surface) !important; color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-toast.error { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-loading { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-loading p { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-empty { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .leaflet-popup-content-wrapper { background: var(--theme-surface) !important; box-shadow: 0 8px 24px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .leaflet-popup-tip { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .leaflet-popup-close-button { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-popup-name { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-popup-coords { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-popup-btn { color: var(--theme-accent) !important; }

/* clients_map.html */
html[data-theme="light"] body.theme-page-clients_map .map-card { background: var(--theme-surface) !important; box-shadow: 0 6px 18px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-clients_map .map-popup__title { border-bottom: 2px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-clients_map .map-popup__label { color: var(--theme-muted) !important; }

/* finder_portal.html */

/* profitability.html */
html[data-theme="light"] body.theme-page-profitability .glass-panel { background: var(--theme-surface) !important; box-shadow: 0 4px 30px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-profitability .neon-text { color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-profitability .glow-btn::before { background: var(--theme-surface-alt) !important; }
html[data-theme="light"] body.theme-page-profitability .custom-scrollbar::-webkit-scrollbar-track { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-profitability .profit-positive { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-profitability .profit-negative { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-profitability .prof-filter-bar input[type="date"] { background: var(--theme-input) !important; color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-profitability .prof-table thead th { background: var(--theme-surface) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-profitability .prof-table thead th:hover { color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-profitability .prof-table thead th.sorted .sort-arrow { color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-profitability .prof-table tbody td { border-bottom: 1px solid var(--theme-border) !important; color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-profitability .prof-search { background: var(--theme-input) !important; color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-profitability .prof-search-wrap i { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-profitability .prof-empty { color: var(--theme-muted) !important; }

/* admin/health.html */
html[data-theme="light"] body.theme-page-admin-health { --h-gold: var(--theme-accent) !important; --h-green: var(--theme-success) !important; --h-red: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-title { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-subtitle { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-status-pill { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-refresh { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-kpi { border: 1px solid var(--theme-border) !important; background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-kpi::after { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-kpi-val { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-kpi-label { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-card { background: var(--theme-surface) !important; box-shadow: 0 20px 42px rgba(23,43,70,.08),inset 0 1px 0 rgba(255,255,255,.045) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-header { border-bottom: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-device-kicker { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-device-name { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-device-description { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-manual-chip { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-button { box-shadow: 0 6px 18px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-side { border-right: 1px solid var(--theme-border) !important; background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-state { border: 1px solid var(--theme-border) !important; background: var(--theme-surface-alt) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-state strong { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-state span { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-side-title { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-side-copy { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-side-copy b { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-empty { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-metric { border: 1px solid var(--theme-border) !important; background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-metric-top { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-metric-value { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-metric.gold .h-jetson-metric-value { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-metric-detail { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-chart { border: 1px solid var(--theme-border) !important; background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-chart-title { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-chart-window { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-legend { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-legend b { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-jetson-note { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-card { border: 1px solid var(--theme-border) !important; background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-card-title { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-map-legend { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health #h-map { border: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-map-footer { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-row { border-bottom: 1px solid var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-lbl { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-val { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-sched-name { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-error-time { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-error-msg { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-empty { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-health .leaflet-popup-content-wrapper { background: var(--theme-surface) !important; color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-admin-health .leaflet-popup-tip { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-map-empty { color: var(--theme-muted) !important; border: 1px solid var(--theme-border) !important; background: var(--theme-surface) !important; }
@media (max-width:850px) {
html[data-theme="light"] body.theme-page-admin-health .h-jetson-side { border-bottom: 1px solid var(--theme-border) !important; }
}

/* admin/audit_logs.html */
html[data-theme="light"] body.theme-page-admin-audit_logs .al-icon-badge { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-title { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-sub { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .btn-live { border: 1px solid var(--theme-border) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .btn-live:hover { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .btn-live.on { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .overview-card { background: var(--theme-surface) !important; box-shadow: 0 8px 32px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ov-header-left h2 { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ov-header-left p { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ov-select { background: var(--theme-surface-alt) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ov-select option { background: var(--theme-input) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ov-stat { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ov-stat-l { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .sn-all { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .sn-day { color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .sn-ok { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .sn-fail { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .sn-warn { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .stab { background: var(--theme-surface) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .stab:hover { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .stab.active { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .stab.active.tab-all { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .stab.active.tab-success { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .stab.active.tab-failure { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .stab.active.tab-warning { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .stab.active.tab-info { color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .tab-count { background: var(--theme-surface-alt) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .search-wrap i { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .search-input { background: var(--theme-input) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .filter-select { background: var(--theme-input) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .filter-select option { background: var(--theme-input) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .btn-apply { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .btn-clear { border: 1px solid var(--theme-border) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .btn-clear:hover { color: var(--theme-muted) !important; border-color: var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .results-meta { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .results-meta b { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .results-meta .sep { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-table-wrap { box-shadow: 0 8px 28px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-table thead tr { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-table thead th { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-table thead th.th-sort:hover { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-table tbody tr:nth-child(odd) { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-table tbody tr:nth-child(even) { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-table tbody td { border-bottom: 1px solid var(--theme-border) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ts-abs { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ts-rel { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .cell-user { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .rp-d { color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .rp-a { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ev-li { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ev-lf { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ev-lo { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ev-pv { color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ev-ds { color: var(--theme-success) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ev-df { color: var(--theme-danger) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ev-dd { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .ev-ep { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .cell-route { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .cell-det { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .cell-det i { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .cell-det:hover,
html[data-theme="light"] body.theme-page-admin-audit_logs .cell-det:focus-visible { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-modal { background: var(--theme-overlay) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-dialog { background: var(--theme-surface) !important; box-shadow: 0 22px 60px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-kicker { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-title { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-close { border: 1px solid var(--theme-border) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-close:hover,
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-close:focus-visible { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-item { border: 1px solid var(--theme-border) !important; background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-item dt { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-item dd { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-trace { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-trace-title { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-trace-row { background: var(--theme-surface-alt) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-trace-stage { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-trace-event { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-trace-meta { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-details-plain { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-raw-details { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-raw-details pre { background: var(--theme-surface) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-empty { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-empty i { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .al-empty p { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .pg { background: var(--theme-surface) !important; color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .pg:hover:not(.pg-on):not(.pg-off) { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .pg.pg-on { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs .pg-sep { color: var(--theme-muted) !important; }

/* database.html */
html[data-theme="light"] body.theme-page-database .db-iframe-wrap iframe { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-database .pin-card { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-database .pin-card i { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-database .pin-card h2 { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-database .pin-card p { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-database .pin-card input[type="password"] { background: var(--theme-input) !important; color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-database .pin-error { color: var(--theme-danger) !important; }

/* active_users.html */
html[data-theme="light"] body.theme-page-active_users .users-table-wrap h2 { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-active_users .users-table { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-active_users .users-table th { background: var(--theme-header) !important; color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-active_users .users-table td { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-active_users .status-dot.offline { background: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-active_users .refresh-btn { color: var(--theme-accent) !important; }

/* 403.html */
html[data-theme="light"] body.theme-page-403 { background: var(--theme-surface) !important; }
html[data-theme="light"] body.theme-page-403 .error-box { background: var(--theme-surface) !important; box-shadow: 0 8px 32px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-403 .error-icon { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-403 .error-code { color: var(--theme-accent) !important; }
html[data-theme="light"] body.theme-page-403 .error-title { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-403 .error-message { color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-403 .back-link { color: var(--theme-accent) !important; }

/* errors/404.html */
html[data-theme="light"] body.theme-page-errors-404 .error-title { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-errors-404 .error-message { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-errors-404 .error-btn-secondary { background: var(--theme-surface) !important; color: var(--theme-text) !important; box-shadow: 0 4px 15px rgba(23,43,70,.08) !important; }
html[data-theme="light"] body.theme-page-errors-404 .error-btn-secondary:hover { background: var(--theme-surface) !important; }


/* Contrast and semantic state refinements. */
html[data-theme="light"] body.theme-page-profitability :is(.bg-gray-800\/50, .bg-gray-900\/50, .bg-gray-800, .bg-gray-900) { background: var(--theme-surface-alt) !important; border-color: var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-profitability :is(.text-cyan-400, .text-cyan-300) { color: var(--theme-info) !important; }
html[data-theme="light"] body.theme-page-profitability .bg-cyan-500\/10 { background: var(--theme-info-bg) !important; }
html[data-theme="light"] body.theme-page-admin-health .h-button { color: #fff !important; }
html[data-theme="light"] body.theme-page-client_map_editor .cme-client-name { color: var(--theme-text) !important; }
html[data-theme="light"] body.theme-page-admin-audit_logs #live-lbl { color: var(--theme-muted) !important; }
html[data-theme="light"] body.theme-page-home #home-content-area { background: var(--theme-panel) !important; }
html[data-theme="light"] body.theme-page-home .stat-card { border-color: var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-home :is(.map-header, .sidebar-card-header) { background: var(--theme-header) !important; color: var(--theme-text) !important; border-color: var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-home .sidebar-card { border-color: var(--theme-border) !important; }
html[data-theme="light"] body.theme-page-home .map-layer-toggle.is-active { background: #dce9f9 !important; border-color: #799bc7 !important; color: #173d6a !important; }
html[data-theme="light"] body.theme-page-home #heatmapToggle[aria-pressed="true"] { background: #fff0d1 !important; color: #805314 !important; border-color: #b48b42 !important; }
html[data-theme="light"] body.theme-page-home .legend-icon { color: #fff !important; }
html[data-theme="light"] body.theme-page-errors-404 .error-code { background: linear-gradient(135deg, #172b46, #84611f) !important; background-clip: text !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent; }
/* Primary actions and the park key stay readable on the shared light surfaces. */
html[data-theme="light"] body.theme-page-dashboard .btn-calc { background: var(--theme-primary) !important; color: #fff !important; }
html[data-theme="light"] body.theme-page-dashboard .btn-calc::before { background: transparent !important; }
html[data-theme="light"] body.theme-page-home .legend-icon.park { background: #74419a !important; }
html[data-theme="light"] body.theme-page-statistics #upload-form button[type="submit"],
html[data-theme="light"] body.theme-page-errors-404 .error-btn-primary { background: var(--theme-primary) !important; color: #fff !important; }
html[data-theme="light"] body.theme-page-personal-dashboard .pe-brand-text { background: none !important; color: var(--theme-text) !important; -webkit-text-fill-color: currentColor !important; }

html[data-theme="light"] body.theme-page-database .pin-card button { background: var(--theme-primary) !important; color: #fff !important; }

html[data-theme="light"] body.theme-page-view_data .vd-filter-system #generate-report { background: var(--theme-primary) !important; color: #fff !important; border-color: var(--theme-primary) !important; }
html[data-theme="light"] body.theme-page-view_data .vd-filter-system #generate-report:hover { background: var(--theme-primary-hover) !important; }
html[data-theme="light"] body.theme-page-view_data #missing-article-banner .banner-action { background: #fffaf0 !important; border-color: #e2c58c !important; }

html[data-theme="light"] body.theme-page-view_data #missing-article-banner .banner-heading { color: #624514; }
html[data-theme="light"] body.theme-page-view_data #missing-article-banner :is(.banner-symbol, .banner-count) { background: #fae9c4; }
html[data-theme="light"] body.theme-page-view_data #missing-article-banner .banner-action:hover { background: #fae9c4 !important; border-color: #c99c42 !important; }
