:root{color-scheme:light;--erp-bg:#f4f6f8;--erp-surface:#fff;--erp-surface-2:#f8fafc;--erp-text:#243244;--erp-muted:#667085;--erp-border:#d4dbe5;--erp-input:#fff;--erp-hover:#eef3f8;--erp-shadow:0 2px 12px rgba(15,23,42,.08)}
html[data-theme="dark"]{color-scheme:dark;--erp-bg:#11151b;--erp-surface:#1b2129;--erp-surface-2:#222a34;--erp-text:#e9eef5;--erp-muted:#aeb8c5;--erp-border:#3a4552;--erp-input:#171d24;--erp-hover:#29333f;--erp-shadow:0 2px 14px rgba(0,0,0,.28)}
.erp-theme-switcher{display:inline-flex;align-items:center;padding:3px;border:1px solid var(--erp-border);border-radius:9px;background:var(--erp-surface);gap:2px}.erp-theme-button{width:32px;height:30px;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--erp-muted)!important;cursor:pointer;font-size:16px;padding:0!important}.erp-theme-button:hover{background:var(--erp-hover)!important;color:var(--erp-text)!important}.erp-theme-button.active{background:var(--erp-hover)!important;color:var(--erp-text)!important;box-shadow:inset 0 0 0 1px var(--erp-border)}
html[data-theme="dark"] body,html[data-theme="dark"] .content{background:var(--erp-bg)!important;color:var(--erp-text)!important}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .panel,html[data-theme="dark"] .card,html[data-theme="dark"] .user-chip,html[data-theme="dark"] .context-sidebar,html[data-theme="dark"] .context-menu-head,html[data-theme="dark"] .context-group,html[data-theme="dark"] .modal-content,html[data-theme="dark"] .dropdown-menu{background:var(--erp-surface)!important;color:var(--erp-text)!important;border-color:var(--erp-border)!important;box-shadow:var(--erp-shadow)}
html[data-theme="dark"] .primary-sidebar{border-color:var(--erp-border)!important}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,html[data-theme="dark"] strong,html[data-theme="dark"] label,html[data-theme="dark"] th,html[data-theme="dark"] td,html[data-theme="dark"] p{color:inherit}
html[data-theme="dark"] .muted,html[data-theme="dark"] small,html[data-theme="dark"] .hint,html[data-theme="dark"] .help-text{color:var(--erp-muted)!important}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:var(--erp-input)!important;color:var(--erp-text)!important;border-color:var(--erp-border)!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8491a0}
html[data-theme="dark"] table,html[data-theme="dark"] thead,html[data-theme="dark"] tbody,html[data-theme="dark"] tr,html[data-theme="dark"] th,html[data-theme="dark"] td{border-color:var(--erp-border)!important}
html[data-theme="dark"] th{background:var(--erp-surface-2)!important;color:var(--erp-text)!important}html[data-theme="dark"] tr:hover td{background:var(--erp-hover)}
html[data-theme="dark"] .context-link,html[data-theme="dark"] .context-group summary{color:var(--erp-text)!important}html[data-theme="dark"] .context-link:hover,html[data-theme="dark"] .context-link.active{background:var(--erp-hover)!important}
html[data-theme="dark"] a:not(.primary):not(.link-button){color:#8ec5ff}html[data-theme="dark"] button.secondary{background:var(--erp-surface-2)!important;color:var(--erp-text)!important;border-color:var(--erp-border)!important}
html[data-theme="dark"] .flash,html[data-theme="dark"] .alert{border-color:var(--erp-border)}
html[data-theme="dark"] .label-stage,html[data-theme="dark"] .label,html[data-theme="dark"] .print-page,html[data-theme="dark"] [class*="print-sheet"]{color:#111;background:#fff!important}
@media print{.erp-theme-switcher{display:none!important}html,body{color-scheme:light!important}}
