:root[data-device-theme="heritage"]{--dt-nav:#153c32;--dt-accent:#235442;--dt-bg:#f5f2e9;--dt-paper:#fffdf8;--dt-ink:#233c32;--dt-muted:#65766b;--dt-line:#dddccf;--dt-soft:#eeeadb;}
:root[data-device-theme="navy"]{--dt-nav:#172d4a;--dt-accent:#285787;--dt-bg:#f1f5fa;--dt-paper:#ffffff;--dt-ink:#213449;--dt-muted:#5d7085;--dt-line:#d2dce8;--dt-soft:#e6edf6;}
:root[data-device-theme="plum"]{--dt-nav:#38233f;--dt-accent:#704578;--dt-bg:#f7f2f8;--dt-paper:#fffaff;--dt-ink:#3e2c44;--dt-muted:#796680;--dt-line:#e2d6e5;--dt-soft:#eee3f0;}
:root[data-device-theme="terracotta"]{--dt-nav:#4d2c22;--dt-accent:#974c34;--dt-bg:#faf3ee;--dt-paper:#fffdfa;--dt-ink:#4c342b;--dt-muted:#826b60;--dt-line:#e7d6cd;--dt-soft:#f2e4da;}
:root[data-device-theme="slate"]{--dt-nav:#26323c;--dt-accent:#465f70;--dt-bg:#f2f4f5;--dt-paper:#ffffff;--dt-ink:#273844;--dt-muted:#647580;--dt-line:#d5dde2;--dt-soft:#e7edf0;}
html[data-device-theme]{--nav:var(--dt-nav);--blue:var(--dt-accent);--v15-cream:var(--dt-bg);--v15-ink:var(--dt-ink);--v15-muted:var(--dt-muted);--pos-bg:var(--dt-bg);--pos-paper:var(--dt-paper);--pos-ink:var(--dt-ink);--pos-muted:var(--dt-muted);--pos-line:var(--dt-line);--pos-accent:var(--dt-accent);--pos-navy:var(--dt-nav)}
html[data-device-theme] body{background:var(--dt-bg);color:var(--dt-ink)}html[data-device-theme] aside,html[data-device-theme] .pe-head{background:var(--dt-nav);color:white}html[data-device-theme] :is(h1,h2,h3){color:var(--dt-ink)}html[data-device-theme] .pe-head h2{color:white}html[data-device-theme] :is(.card,.dialog,.pe,.pe-unit,.pe-footer,.pe-tabs,.pe-sub){background:var(--dt-paper);border-color:var(--dt-line)}html[data-device-theme] :where(body:not(:has(#pos-app))) button:where(:not(.danger,.dialog-close,.pe-close,.v15-metric,.secondary)){background:var(--dt-accent);color:white}html[data-device-theme] button.secondary,html[data-device-theme] .pe-tabs button{background:var(--dt-soft);color:var(--dt-ink)}html[data-device-theme] aside button{background:transparent!important}html[data-device-theme] aside button.active{background:var(--dt-accent)!important}html[data-device-theme] :is(input,select,textarea){background:var(--dt-paper);color:var(--dt-ink);border-color:var(--dt-line)}html[data-device-theme] :is(th,.badge,.pe-price-note){background:var(--dt-soft);color:var(--dt-ink)}html[data-device-theme] table tbody tr:nth-child(odd){background:var(--dt-paper)}html[data-device-theme] table tbody tr:nth-child(even){background:var(--dt-bg)}html[data-device-theme] table tbody tr:hover{background:var(--dt-soft)}html[data-device-theme] .muted{color:var(--dt-muted)}html[data-device-theme] .pe-tabs button.current{border-color:var(--dt-accent)}
.device-theme-control{position:fixed;right:12px;bottom:10px;z-index:20;background:var(--dt-paper);color:var(--dt-ink);border:1px solid var(--dt-line);border-radius:10px;padding:7px 12px;font-size:13px;box-shadow:0 3px 15px #0001}.device-theme-control summary{cursor:pointer}.device-theme-control label{display:grid;gap:6px;margin-top:10px}.device-theme-control small{display:block;max-width:220px;margin-top:7px}.device-theme-control select{max-width:220px}@media print{.device-theme-control{display:none!important}}

html[data-device-theme] :is(.pos-product,.pos-basket,.pos-start,.pos-modal){background:var(--dt-paper);color:var(--dt-ink);border-color:var(--dt-line)}html[data-device-theme] .pos-product:hover{background:var(--dt-soft)}html[data-device-theme] .pos-categories button{background:var(--dt-paper);color:var(--dt-muted)}html[data-device-theme] .pos-categories button.selected{background:var(--dt-nav);color:white}html[data-device-theme] .pos-basket-bottom{background:var(--dt-bg)}html[data-device-theme] .pos-rail{background:var(--dt-nav)}html[data-device-theme] .pos-product strong{color:var(--dt-ink)}

html[data-device-theme] .v15-metric{background:var(--dt-paper)!important;color:var(--dt-ink)!important;border-color:var(--dt-line)}html[data-device-theme] .v15-metric :is(span,small){color:var(--dt-muted)}html[data-device-theme] .lookup-menu button{background:var(--dt-paper)!important;color:var(--dt-ink)!important}html[data-device-theme] .lookup-menu button:hover{background:var(--dt-soft)!important}

html[data-device-theme] :is(.pos-header,.pos-catalog-bottom,.pos-start,.pos-modal) button:not(.secondary):not(.dialog-close){background:var(--dt-accent);color:white}html[data-device-theme] .pe-tabs button.current{background:var(--dt-accent);color:white;border-bottom-color:var(--dt-nav)}html[data-device-theme] :is(.pinned-close-bar,#app>main>header){background:var(--dt-bg)}html[data-device-theme] .pos-basket-tools-primary button{background:var(--dt-soft)!important;color:var(--dt-accent)!important}.pos-statusbar{padding-right:90px}.pos-products .pos-product{flex:0 0 auto;min-height:0}.pos-product strong{min-height:0}html[data-device-theme] .pos-products .pos-product:nth-child(even){background:var(--dt-bg)}
@media(max-width:790px){
 .pos-shell-live .pos-header{height:auto;min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:16px 0}
 .pos-shell-live .pos-header-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 .pos-shell-live .pos-header-actions .pos-account{width:100%;justify-content:flex-start}
 .pos-shell-live .pos-header-actions button{flex:1;white-space:normal}
 .pos-shell-live .pos-status-rail{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pos-shell-live .pos-brand-signature,.pos-shell-live .rail-identity{grid-column:1/-1}
 .pos-shell-live .rail-shift,.pos-shell-live .rail-sync{min-width:0;gap:8px;flex-wrap:wrap}
 .pos-shell-live .pos-status-rail button{width:100%}
 .pos-shell-live .pos-statusbar{height:auto;min-height:70px;flex-wrap:wrap;gap:6px;padding-top:10px;padding-bottom:10px}
}
