/* RM Auto final dual-theme layer v1.5.1 */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="light"]{color-scheme:light;--bg:#f4f7fb;--panel:#fff;--panel2:#f8fbff;--text:#122033;--muted:#66798f;--line:#dce5ef;--accent:#246bfe;--accent2:#12b981;--danger:#d6404f;--warn:#bd7b08;--ok:#159a63;--shadow:0 16px 40px rgba(31,50,76,.10)}
html[data-theme="light"] body{background:linear-gradient(180deg,#f8fbff,#f1f5fa 55%,#f7f9fc);color:var(--text)}
html[data-theme="light"] .rm-sidebar{background:rgba(255,255,255,.92)!important;border-color:#dce5ef!important;box-shadow:12px 0 38px rgba(28,52,81,.06)}
html[data-theme="light"] .rm-app-brand,html[data-theme="light"] .rm-menu a,html[data-theme="light"] .rm-sidebar-more summary{color:#26384c!important}
html[data-theme="light"] .rm-menu a.active{background:linear-gradient(135deg,#e7f0ff,#f4f8ff)!important;color:#145ad9!important;border-color:#b9d3ff!important}
html[data-theme="light"] .rm-menu a:hover,html[data-theme="light"] .rm-sidebar-more summary:hover,html[data-theme="light"] .rm-sidebar-more[open] summary{background:#eef4fb!important;color:#17385d!important}
html[data-theme="light"] .rm-sidebar-more>div a:hover{background:#edf4fb!important;color:#17385d!important}
html[data-theme="light"] .rm-sidebar-foot{background:#f8fbff!important;border-color:#dce5ef!important}
html[data-theme="light"] .rm-main{background:transparent!important}
html[data-theme="light"] .rm-app-card,html[data-theme="light"] .rm-kanban-col,html[data-theme="light"] .rm-ops-card,html[data-theme="light"] .rm-ops-list-row,html[data-theme="light"] .rm-payment-summary>div{background:#fff!important;border-color:#dbe5ef!important;color:#1a2a3d!important;box-shadow:0 8px 22px rgba(32,58,84,.06)}
html[data-theme="light"] .rm-kanban-col{background:#f7faff!important}
html[data-theme="light"] .rm-ops-card>strong{color:#15283e!important}
html[data-theme="light"] .rm-ops-card>span,html[data-theme="light"] .rm-ops-card>small,html[data-theme="light"] .rm-ops-card p,html[data-theme="light"] .muted{color:#687d92!important}
html[data-theme="light"] .rm-kanban-col>header{color:#3c5268!important}
html[data-theme="light"] .rm-kanban-col>header b{background:#eaf2ff!important;color:#246bfe!important}
html[data-theme="light"] .rm-date-nav input,html[data-theme="light"] .rm-order-search input,html[data-theme="light"] .rm-order-search select{background:#fff!important;color:#1b2d42!important;border-color:#ccd9e7!important;color-scheme:light}
html[data-theme="light"] .btn.secondary{background:#fff!important;color:#284057!important;border-color:#cedae7!important}
html[data-theme="light"] .rm-client-alert.amber{background:#fff7e8!important;color:#7a520b!important}
html[data-theme="light"] .rm-client-alert.red{background:#fff0f1!important;color:#8f2430!important}
html[data-theme="light"] .rm-ops-dialog{background:#fff!important;color:#1d2b3d!important;border-color:#d7e2ed!important}
html[data-theme="light"] .rm-ops-dialog textarea{background:#fff!important;color:#1d2b3d!important;border-color:#cedae6!important}
.theme-toggle{border:1px solid var(--line);background:rgba(12,28,48,.72);color:var(--text);border-radius:12px;padding:9px 12px;font-weight:800;cursor:pointer;white-space:nowrap}
html[data-theme="light"] .theme-toggle{background:#fff;color:#253b54}
