:root{color-scheme:light;--accent:#344d9b;--surface:#fff;--app-bg:#f3f4f8;--ink:#20283d;--muted:#647088;--line:#dce1ec;--gold:#b67d55;--focus:#9c6540}
:root[data-theme="dark"]{color-scheme:dark;--accent:#a6b8ff;--surface:#191f2e;--app-bg:#111623;--ink:#edf0f8;--muted:#a5afc4;--line:#353e53;--gold:#d9a781;--focus:#dfac83}
body{background:var(--app-bg);color:var(--ink)}aside,.login-story{background:#19243d;color:#edf0f8}.login-story p{color:#b7c1d6}.login-story .brand{color:#e1b999}.login-story .eyebrow{color:#c3cce0}nav button{color:#bac6df}nav .nav-group,.aside-foot,.aside-foot small,.brand span{color:#a8b7d0}nav button.selected{background:#2c3e63;border-color:#475d89;box-shadow:inset 3px 0 #d6a47e;color:#fff}button{background:#344d9b;color:#fff}button:hover{background:#405fb6}.secondary,.profile button{background:var(--surface);border-color:var(--line);color:var(--ink)}.secondary:hover,.profile button:hover{background:light-dark(#edf0fa,#28324b)}input,select,textarea,dialog{background:var(--surface);color:var(--ink);border-color:var(--line)}p,small,.muted{color:var(--muted)}a{color:light-dark(#3656a3,#b0c1ff)}.tabs button,.fo-view-switch button,.accounting-tabs button{background:transparent;color:var(--muted)}.tabs button.active{color:var(--ink);border-color:var(--accent)}.danger{background:light-dark(#f9e9e7,#48282d);color:light-dark(#a53e35,#ffc0b7)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.theme-toggle{display:inline-flex!important;align-items:center;gap:8px;white-space:nowrap;border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:8px 11px;border-radius:7px;font-size:11px;font-weight:600;min-height:36px}.theme-toggle svg{width:16px;height:16px;flex-shrink:0}.theme-floating{position:fixed;right:20px;top:16px;z-index:60;box-shadow:0 3px 15px #0001}.profile .theme-toggle{margin-left:0}.theme-toggle:hover{background:light-dark(#edf0fa,#28324b)}
@media(max-width:580px){.theme-toggle{font-size:10px;padding:7px 9px}.theme-floating{top:12px;right:12px}.profile{flex-wrap:wrap}}
@media print{:root[data-theme]{color-scheme:light;--surface:#fff;--app-bg:#fff;--ink:#111;--muted:#444;--line:#ccc}.theme-toggle{display:none!important}.finance-print,.pos-print,#offline-receipt{background:#fff!important;color:#111!important}}
.fo-page-heading>div:first-child{min-width:240px}.fo-primary-actions{flex:1;justify-content:flex-end;flex-wrap:wrap}@media(max-width:580px){.fo-page-heading>div:first-child{min-width:0}.fo-primary-actions{justify-content:flex-start}}
aside nav{scrollbar-width:thin;scrollbar-color:#5c6b88 transparent}
