/* Оформление «SHOPSTYLE · По блокам» (Benny 24.10.2026). Перенесено из прототипа visual-lab: работает под <html data-lab-theme="brand">.
   Только вид: обработчики, расчёты и права — в app.js/sklad.js. Порядок блоков как в прототипе: база темы, каталог, телефон, Работа. */
html[data-lab-theme]:not([data-lab-theme=current]){--page-w:1600px;--bg:#f5f3f0;--surface:#fff;--surface-2:#f8f6f3;--ink:#26252a;--ink-2:#57555c;--ink-3:#68656c;--line:#ddd9d5;--line-in:#bdb7b2;--line-2:#ece9e5;--accent:#af3159;--accent-ink:#8a2446;--accent-soft:#f8e9ee;--shadow:0 2px 4px #27232a04;--shadow-h:0 8px 22px #27232a0c;--r:12px;--r-sm:8px}
html[data-lab-theme]:not([data-lab-theme=current]) body{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px}
html[data-lab-theme]:not([data-lab-theme=current]) :is(.display,.btn,.tab,.side-h,.logo,.kpi b,.wk-sum,.wk-cash-sum){font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
html[data-lab-theme]:not([data-lab-theme=current]) header.app{background:var(--surface);backdrop-filter:none}
html[data-lab-theme]:not([data-lab-theme=current]) .app-inner{padding:18px 28px;min-height:78px}
html[data-lab-theme]:not([data-lab-theme=current]) .brand{align-items:center;gap:18px}
html[data-lab-theme]:not([data-lab-theme=current]) .brand .logo{font-size:20px;letter-spacing:.03em}
html[data-lab-theme]:not([data-lab-theme=current]) .brand .logo b{font-size:11px;letter-spacing:.08em;border:1px solid var(--line);padding:4px 6px;border-radius:4px;vertical-align:3px;margin-left:4px}
html[data-lab-theme]:not([data-lab-theme=current]) .brand .sub{font-size:11px;max-width:130px;line-height:1.5;border-left:1px solid var(--line);padding-left:18px}
html[data-lab-theme]:not([data-lab-theme=current]) .layout{min-height:calc(100vh - 150px)}
html[data-lab-theme]:not([data-lab-theme=current]) main{padding:28px 32px 48px;min-width:0}
html[data-lab-theme]:not([data-lab-theme=current]) .side{flex-basis:218px;padding:24px 14px;min-height:calc(100vh - 150px);background:var(--surface);border-right:1px solid var(--line)}
html[data-lab-theme]:not([data-lab-theme=current]) body.side-mini .side{flex-basis:64px;padding:20px 8px}
html[data-lab-theme]:not([data-lab-theme=current]) .side-h{font-size:13px;font-weight:650;padding:11px 12px}
html[data-lab-theme]:not([data-lab-theme=current]) .side-h svg{width:19px;height:19px;stroke-width:1.6}
html[data-lab-theme]:not([data-lab-theme=current]) .side-item{font-size:12px;padding:9px 10px 9px 41px;border-radius:6px}
html[data-lab-theme]:not([data-lab-theme=current]) .side-item.on{box-shadow:none;background:var(--accent-soft);color:var(--accent-ink)}
html[data-lab-theme]:not([data-lab-theme=current]) .shead{gap:14px;padding:0 0 22px}
html[data-lab-theme]:not([data-lab-theme=current]) .shead h2{font-size:28px;font-weight:650;letter-spacing:-.035em}
html[data-lab-theme]:not([data-lab-theme=current]) .tabs{box-shadow:none;border-radius:9px;padding:3px}
html[data-lab-theme]:not([data-lab-theme=current]) .tab{font-size:12px;padding:9px 14px;border-radius:6px}
html[data-lab-theme]:not([data-lab-theme=current]) .tab.on{background:var(--accent-soft);color:var(--accent-ink)}
html[data-lab-theme]:not([data-lab-theme=current]) :is(.card,.srow,.wk-tile){animation:none;transform:none}
html[data-lab-theme]:not([data-lab-theme=current]) .btn{box-shadow:none;font-weight:600}
html[data-lab-theme]:not([data-lab-theme=current]) :is(.dstats,.wk-checks,.wk-cash,.sk-side-card,.sk-form){box-shadow:var(--shadow);border-radius:var(--r)}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-home{max-width:none;gap:16px}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-hero-card{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:var(--r);padding:24px 28px;box-shadow:var(--shadow)}
html[data-lab-theme]:not([data-lab-theme=current]) :is(.wk-day,.wk-upd,.wk-sum-sub){color:var(--ink-2)}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-sum{color:var(--ink);font-size:48px;font-weight:650;letter-spacing:-.045em;margin-top:18px}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-pay{border-top:1px solid var(--line);margin-top:22px;padding-top:18px;gap:16px}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-pay>div{background:var(--surface-2);border:1px solid var(--line-2);padding:14px 16px;border-radius:8px}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-pay b{color:var(--ink);font-size:23px}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-pay :is(span,small){color:var(--ink-2)}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-pay .c b{color:#126d48}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-pay .k b{color:#2857a3}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-free{border-color:var(--line);color:var(--ink-2)}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-free :is(b,span b){color:var(--ink)}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-free>span{background:var(--surface-2)}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-stores-mini{gap:12px}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-store-mini{border-radius:8px;box-shadow:none}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-tile{box-shadow:none;border-radius:10px;min-height:106px}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-tile.accent{background:var(--accent);box-shadow:none}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-h{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--ink-2)}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-cash{padding:18px;border-top:3px solid #2d7a61}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-cash-sum{font-size:30px}
html[data-lab-theme]:not([data-lab-theme=current]) :is(table.matrix,.sk-tbl,.crm-tbl){font-variant-numeric:tabular-nums}
html[data-lab-theme]:not([data-lab-theme=current]) :is(.sk-tbl,.crm-tbl) th{background:var(--surface-2);color:var(--ink-2);font-weight:600}
html[data-lab-theme]:not([data-lab-theme=current]) :is(.sk-tbl,.crm-tbl) td{border-bottom-color:var(--line-2)}
html[data-lab-theme]:not([data-lab-theme=current]) .card:hover{transform:none}
@media(min-width:1000px){html[data-lab-theme]:not([data-lab-theme=current]) .wk-home{grid-template-columns:1.15fr 1fr}html[data-lab-theme]:not([data-lab-theme=current]) .wk-home>.wk-hero-card{grid-column:1/-1}}
@media(max-width:760px){
html[data-lab-theme]:not([data-lab-theme=current]) .app-inner{padding:12px 16px;min-height:64px}
html[data-lab-theme]:not([data-lab-theme=current]) .brand .logo{font-size:17px}
html[data-lab-theme]:not([data-lab-theme=current]) .brand .sub{display:none}
html[data-lab-theme]:not([data-lab-theme=current]) .side{display:none}
html[data-lab-theme]:not([data-lab-theme=current]) main{padding:18px 14px calc(110px + env(safe-area-inset-bottom))}
html[data-lab-theme]:not([data-lab-theme=current]) .shead{padding-bottom:16px;gap:10px}
html[data-lab-theme]:not([data-lab-theme=current]) .shead h2{font-size:24px}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-hero-card{padding:18px 16px}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-sum{font-size:36px}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-pay{gap:8px}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-pay>div{padding:12px 10px;min-width:0}
html[data-lab-theme]:not([data-lab-theme=current]) .wk-pay b{font-size:20px}
html[data-lab-theme]:not([data-lab-theme=current]) .btn{min-height:44px}
}
@media(prefers-reduced-motion:reduce){html[data-lab-theme] *,html[data-lab-theme] *::before,html[data-lab-theme] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:760px){
  html[data-lab-theme]:not([data-lab-theme=current]) #stockValue{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-lab-theme]:not([data-lab-theme=current]) #stockValue>span{white-space:normal;overflow-wrap:anywhere;min-width:0}
}

.wk-store-mini>span{grid-row:1/4}
@media(max-width:760px){.wk-cash-top{flex-wrap:wrap}.wk-cash-top small{max-width:100%}}
/* First semantic pass: stock controls. SHOPSTYLE palette; no change to stock/value calculation. */
html[data-lab-theme][data-lab-theme=brand]{--bg:#edeff6;--surface:#fff;--surface-2:#f6f7fb;--ink:#15172b;--ink-2:#535970;--ink-3:#626982;--line:#d7dbe7;--line-in:#b5bdd0;--line-2:#e9edf5;--accent:#e11d74;--accent-ink:#a8125a;--accent-soft:#fde7f1;--page-w:1600px;--r:12px;--r-sm:8px;--shadow:0 2px 4px #15172b05;--shadow-h:0 6px 18px #15172b0d}
html[data-lab-theme=brand] body *{font-family:Arial,Helvetica,sans-serif!important}
html[data-lab-theme][data-lab-theme=brand] body{font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.5}
html[data-lab-theme][data-lab-theme=brand] .app-inner{padding:16px 24px;min-height:76px}
html[data-lab-theme][data-lab-theme=brand] .brand .logo{font-size:21px;letter-spacing:.02em}
html[data-lab-theme][data-lab-theme=brand] .brand .logo b{border:0;background:var(--accent-soft);color:var(--accent-ink);font-size:11px;padding:5px 7px}
html[data-lab-theme][data-lab-theme=brand] .brand .sub{display:none}
html[data-lab-theme][data-lab-theme=brand] .side{flex-basis:210px;padding:20px 12px;background:#fff}
html[data-lab-theme][data-lab-theme=brand] .side-h{font-size:15px;padding:12px;font-weight:600}
html[data-lab-theme][data-lab-theme=brand] .side-item{font-size:14px;padding:9px 10px 9px 40px}
html[data-lab-theme][data-lab-theme=brand] .side-h.on{background:var(--accent-soft);color:var(--accent-ink)}
html[data-lab-theme][data-lab-theme=brand] main{padding:24px 28px 48px;min-width:0}
html[data-lab-theme][data-lab-theme=brand] .btn{font-size:14px;min-height:42px;padding:9px 12px;box-shadow:none}
html[data-lab-theme][data-lab-theme=brand] :is(input,select,textarea){font-size:16px}
html[data-lab-theme][data-lab-theme=brand] .tabs{box-shadow:none;padding:4px;border-radius:10px}
html[data-lab-theme][data-lab-theme=brand] .tab{font-size:14px;min-height:42px;padding:9px 12px}
html[data-lab-theme][data-lab-theme=brand] .tab.on{background:var(--accent-soft);color:var(--accent-ink)}
html[data-lab-theme=brand] .vseg button.on{background:var(--accent-ink);border-color:var(--accent-ink)}
html[data-lab-theme=brand] main:has(#stockPane:not(.hidden)){display:flex;flex-direction:column;gap:12px}
html[data-lab-theme=brand] main:has(#stockPane:not(.hidden))>.shead{order:0;padding:0 0 6px;margin:0;gap:12px}
html[data-lab-theme=brand] #subbar{order:1;position:sticky;top:0;z-index:20;margin:0;padding:14px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
html[data-lab-theme=brand] #subbar .search input{background:#fff;font-size:17px;min-height:48px;border:1px solid var(--line-in);padding:12px 40px}
html[data-lab-theme=brand] #subbar .search input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
html[data-lab-theme=brand] #stockStores{order:2;margin:0;padding:14px 16px;border:1px solid var(--line);border-radius:12px;display:flex;flex-wrap:wrap;gap:12px}
html[data-lab-theme=brand] #stockStores::before{content:"Точки";font-size:14px;font-weight:600;color:var(--ink-2)}
html[data-lab-theme=brand] #storeChips{padding:0;background:none;gap:8px;flex-wrap:wrap;overflow:visible}
html[data-lab-theme=brand] #storeChips .chip{font-size:14px;min-height:42px;border:1px solid var(--line-in);border-radius:8px;box-shadow:none;background:#fff;padding:8px 12px;color:var(--ink-2)}
html[data-lab-theme=brand] #storeChips .chip.on{background:var(--accent-soft);border-color:#e79dbf;color:var(--accent-ink);box-shadow:none}
html[data-lab-theme=brand] #stockStores .count{font-size:14px;white-space:normal;line-height:1.5}
html[data-lab-theme=brand] #stockStores .count::before{content:"Найдено: ";font-weight:400}
html[data-lab-theme=brand] #stockTools{order:3;margin:0;padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;align-items:stretch;gap:16px}
html[data-lab-theme=brand] #stkFilters{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px}
html[data-lab-theme=brand] #stkFilters::before{content:"Отбор товаров";font-size:14px;font-weight:600;color:var(--ink-2)}
html[data-lab-theme=brand] .lab-presentation{display:flex;align-items:center;gap:12px 18px;flex-wrap:wrap;padding-top:14px;border-top:1px solid var(--line-2)}
html[data-lab-theme=brand] .lab-presentation-title{font-size:14px;font-weight:600;line-height:1.5;color:var(--ink-2);margin:0}
html[data-lab-theme=brand] .lab-presentation .select{margin-left:0}
html[data-lab-theme=brand] #stockViewSel{margin-left:0;flex-wrap:nowrap}
html[data-lab-theme=brand] #stockColsSel{margin-left:auto;align-items:center}
html[data-lab-theme=brand] #stockColsSel::before{content:"Колонок";font-size:13px;color:var(--ink-3);margin-right:4px}
html[data-lab-theme=brand] :is(#stockViewSel,#stockColsSel) .chip{font-size:13px;border-radius:7px;min-height:38px;padding:7px 11px;box-shadow:none}
html[data-lab-theme=brand] :is(#stockViewSel,#stockColsSel) .chip.on{background:var(--accent-soft);color:var(--accent-ink);border-color:#e79dbf}
html[data-lab-theme=brand] #stockTools .toggle{position:relative;font-size:14px;min-height:40px;gap:8px}
html[data-lab-theme=brand] #stockTools .toggle input{display:block;position:absolute;width:1px;height:1px;opacity:0}
html[data-lab-theme=brand] #stockTools .toggle:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:4px;border-radius:4px}
html[data-lab-theme=brand] #stockSalesStatus{order:4;margin:0}
html[data-lab-theme=brand] #stockValue{order:5;display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;padding:14px 16px;margin:0;background:#f8f9fd;border:1px solid var(--line);border-radius:10px;font-size:13px}
html[data-lab-theme=brand] #stockValue:empty{display:none}
html[data-lab-theme=brand] #stockValue>.st-value-l{font-size:14px;font-weight:600;color:var(--ink)}
html[data-lab-theme=brand] #stockValue>.lab-stock-value-note{flex-basis:100%;font-size:12px;color:var(--ink-3);order:1}
html[data-lab-theme=brand] #stockPane{order:6}
html[data-lab-theme=brand] #stockView .srow{border-radius:10px;box-shadow:none}
html[data-lab-theme=brand] #stockView .srow .pname{font-size:14px;color:var(--ink-2)}
html[data-lab-theme=brand] #stockView .card{border-radius:10px;box-shadow:none}
html[data-lab-theme=brand] :is(button,a,input,select,summary):focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:760px){
html[data-lab-theme][data-lab-theme=brand] .side{display:none}
html[data-lab-theme][data-lab-theme=brand] .app-inner{padding:12px 16px;min-height:66px}
html[data-lab-theme][data-lab-theme=brand] .brand .logo{font-size:18px}
html[data-lab-theme][data-lab-theme=brand] main{padding:14px 12px calc(110px + env(safe-area-inset-bottom))}
html[data-lab-theme=brand] #subbar{padding:10px;gap:8px;display:flex;align-items:center}
html[data-lab-theme=brand] #subbar .search{min-width:0;flex:1}
html[data-lab-theme=brand] #subbar .search input{font-size:16px;padding-left:36px;min-height:46px}
html[data-lab-theme=brand] .stk-fbtn{display:inline-flex;align-items:center;min-height:44px}
html[data-lab-theme=brand] #stockStores{padding:12px;gap:10px}
html[data-lab-theme=brand] #stockStores::before{flex-basis:100%}
html[data-lab-theme=brand] #storeChips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}
html[data-lab-theme=brand] #storeChips .chip{width:100%;min-height:44px;text-align:left;font-size:14px}
html[data-lab-theme=brand] #stockStores .count{margin-left:0}
html[data-lab-theme=brand] #stockTools{padding:12px;gap:12px}
html[data-lab-theme=brand] #stockTools #stkFilters{display:none}
html[data-lab-theme=brand] #stockTools.tools-open #stkFilters{display:flex;flex-direction:column;align-items:stretch;gap:10px}
html[data-lab-theme=brand] #stkFilters::before{font-size:14px}
html[data-lab-theme=brand] #stkFilters select{width:100%;max-width:none;min-height:44px}
html[data-lab-theme=brand] .lab-presentation{padding-top:0;border-top:0;gap:10px}
html[data-lab-theme=brand] .lab-presentation-title{flex-basis:100%}
html[data-lab-theme=brand] .lab-presentation .select{flex-basis:100%}
html[data-lab-theme=brand] .lab-presentation select{width:100%;max-width:none;min-height:44px}
html[data-lab-theme=brand] #stockViewSel{flex:1}
html[data-lab-theme=brand] #stockColsSel{display:none}
html[data-lab-theme=brand] #stockValue{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;padding:12px;font-size:13px}
html[data-lab-theme=brand] #stockValue>span{white-space:normal;overflow-wrap:anywhere;min-width:0}
html[data-lab-theme=brand] #stockValue>.st-value-l,html[data-lab-theme=brand] #stockValue>.lab-stock-value-note{grid-column:1/-1}
html[data-lab-theme=brand] #stockValue>.lab-stock-value-note{order:0;font-size:12px}
html[data-lab-theme=brand] :is(.btn,.chip,.tab){min-height:44px}
}
@media(prefers-reduced-motion:reduce){html[data-lab-theme=brand] *,html[data-lab-theme=brand] *::before,html[data-lab-theme=brand] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Keep search and scope together on wide screens; the list gets more of the first viewport. */
@media(min-width:1100px){
html[data-lab-theme=brand] main:has(#stockPane:not(.hidden)){display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:start}
html[data-lab-theme=brand] main:has(#stockPane:not(.hidden))>.shead{grid-column:1/-1;grid-row:1}
html[data-lab-theme=brand] #subbar{grid-column:1/6;grid-row:2;align-self:stretch;display:flex;align-items:center;padding:12px}
html[data-lab-theme=brand] #subbar .search{min-width:0}
html[data-lab-theme=brand] #stockStores{grid-column:6/-1;grid-row:2;align-self:stretch;padding:12px;gap:10px}
html[data-lab-theme=brand] #stockTools{grid-column:1/-1;grid-row:3;padding:12px 16px;gap:12px}
html[data-lab-theme=brand] #stockSalesStatus{grid-column:1/-1;grid-row:4}
html[data-lab-theme=brand] .lab-stock-valuation{grid-column:1/-1;grid-row:5}
html[data-lab-theme=brand] #stockPane{grid-column:1/-1;grid-row:6}
}
.lab-stock-valuation{display:none}
html[data-lab-theme=brand] main:has(#stockPane:not(.hidden))>.lab-stock-valuation{display:block;order:5;background:#f8f9fd;border:1px solid var(--line);border-radius:10px}
html[data-lab-theme=brand] .lab-stock-valuation:has(#stockValue:empty),html[data-lab-theme=brand] .lab-stock-valuation:has(#stockValue.hidden){display:none!important}
html[data-lab-theme=brand] .lab-stock-valuation>summary{padding:12px 14px;font-size:14px;font-weight:600;color:var(--ink-2);cursor:pointer;min-height:44px}
html[data-lab-theme=brand] .lab-stock-valuation>#stockValue{background:none;border:0;border-radius:0;padding:0 14px 12px}
html[data-lab-theme=brand] .lab-stock-valuation #stockValue>.st-value-l{display:none}
@media(max-width:760px){
html[data-lab-theme=brand] #stockStores{display:grid;grid-template-columns:1fr auto;gap:8px}
html[data-lab-theme=brand] #stockStores::before{grid-column:1;grid-row:1}
html[data-lab-theme=brand] #stockStores .count{grid-column:2;grid-row:1;font-size:13px}
html[data-lab-theme=brand] #storeChips{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
html[data-lab-theme=brand] #storeChips .chip{padding:8px 5px;font-size:12px;text-align:center}
html[data-lab-theme=brand] .lab-presentation-title,html[data-lab-theme=brand] .lab-presentation>.select{display:none}
html[data-lab-theme=brand] #stockTools.tools-open .lab-presentation-title{display:block}
html[data-lab-theme=brand] #stockTools.tools-open .lab-presentation>.select{display:block}
html[data-lab-theme=brand] .lab-presentation{gap:8px}
html[data-lab-theme=brand] .lab-presentation .toggle{font-size:13px}
html[data-lab-theme=brand] #stockViewSel{flex:0 1 auto}
}
@media(max-width:760px){
  html[data-lab-theme=brand] main:has(#stockPane:not(.hidden)) #viewSeg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible;flex-wrap:wrap}
  html[data-lab-theme=brand] main:has(#stockPane:not(.hidden)) #viewSeg>button{min-width:0;margin-left:0;min-height:44px;text-align:center}
  html[data-lab-theme=brand] main:has(#stockPane:not(.hidden)) #viewSeg>.vseg-photo{min-width:0;margin-left:0;justify-content:center;font-size:12px}
}
/* Mobile section pass. Source handlers, calculations and permission gates stay in app/. */
.lab-mobile-subnav{display:none}
@media(max-width:760px){
html[data-lab-theme][data-lab-theme=brand]{--r:12px;--r-sm:9px}
html[data-lab-theme][data-lab-theme=brand] body{font-size:16px;line-height:1.5}
html[data-lab-theme][data-lab-theme=brand] .app-inner{min-height:60px;padding:10px 14px}
html[data-lab-theme][data-lab-theme=brand] .profile{width:44px;height:44px}
html[data-lab-theme][data-lab-theme=brand] main{padding:16px 12px calc(110px + env(safe-area-inset-bottom))}
html[data-lab-theme][data-lab-theme=brand] .shead{padding:0 0 14px;gap:10px}
html[data-lab-theme][data-lab-theme=brand] .shead h2:not([hidden]){display:block;font-size:25px;line-height:1.2;letter-spacing:-.02em;flex-basis:100%;margin:0}
html[data-lab-theme=brand] #seg.lab-mobile-tabs{display:none}
html[data-lab-theme=brand] .lab-mobile-subnav:not([hidden]){display:flex;flex-direction:column;gap:5px;width:100%;font-size:12px;color:var(--ink-2)}
html[data-lab-theme=brand] .lab-mobile-subnav select{width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--line-in);border-radius:10px;background:#fff;color:var(--ink);font-size:16px;font-weight:600}
html[data-lab-theme][data-lab-theme=brand] :is(.btn,.chip,.tab,.link,.pp-btn,.pp-ar,.cal-nav,.sc-day,button[data-mfilter]){min-height:44px}
html[data-lab-theme][data-lab-theme=brand] .btn.sm{min-height:44px;font-size:14px}
html[data-lab-theme][data-lab-theme=brand] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;line-height:1.4;max-width:100%;border-radius:9px}
html[data-lab-theme][data-lab-theme=brand] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),html[data-lab-theme][data-lab-theme=brand] select{min-height:44px}
html[data-lab-theme][data-lab-theme=brand] .field>span{font-size:14px;line-height:1.5}
html[data-lab-theme][data-lab-theme=brand] .tabs:not(.lab-mobile-tabs){display:flex;flex-wrap:wrap;gap:5px;overflow:visible;max-width:100%}
html[data-lab-theme][data-lab-theme=brand] .tabs:not(.lab-mobile-tabs) .tab{flex:1 1 auto;white-space:normal;padding:9px 12px}
html[data-lab-theme][data-lab-theme=brand] .vseg{flex-wrap:wrap;gap:8px;overflow:visible}
html[data-lab-theme][data-lab-theme=brand] .vseg>button{flex:1 1 100px;min-width:0;white-space:normal;line-height:1.4;min-height:44px}
html[data-lab-theme][data-lab-theme=brand] .vseg>button.add{margin-left:0}
html[data-lab-theme][data-lab-theme=brand] .toolbar{gap:10px;min-width:0;max-width:100%}
html[data-lab-theme][data-lab-theme=brand] .toolbar>.select{flex:1 1 140px;min-width:0;max-width:100%}
html[data-lab-theme][data-lab-theme=brand] .select select{max-width:100%;width:100%;white-space:normal}
html[data-lab-theme][data-lab-theme=brand] .daterange{flex-wrap:wrap;gap:8px;max-width:100%}
html[data-lab-theme][data-lab-theme=brand] .daterange input{min-width:0;max-width:100%}
html[data-lab-theme][data-lab-theme=brand] .pp{max-width:100%;min-height:48px}
html[data-lab-theme][data-lab-theme=brand] .pp-btn{min-width:0;padding:8px 12px}
html[data-lab-theme][data-lab-theme=brand] .pp-ar{width:38px;flex-shrink:0}
html[data-lab-theme][data-lab-theme=brand] :is(.notice,.empty,.err){font-size:14px;line-height:1.6;overflow-wrap:anywhere}
html[data-lab-theme][data-lab-theme=brand] .empty{padding:24px 18px}
html[data-lab-theme][data-lab-theme=brand] .empty b{font-size:17px;line-height:1.4}
html[data-lab-theme][data-lab-theme=brand] .hint{font-size:13px;line-height:1.5}
html[data-lab-theme][data-lab-theme=brand] main :is(.panel,.dstats,.sk-form,.sk-doc,.sk-side-card){border-radius:12px;box-shadow:none}
html[data-lab-theme][data-lab-theme=brand] :is(.form-row,.sk-form-actions){gap:10px}
html[data-lab-theme=brand] .lab-mobile-table{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;border-radius:10px}
html[data-lab-theme=brand] .lab-mobile-table::before{content:"Прокрутите таблицу вправо →";display:block;position:sticky;left:0;padding:7px 10px;background:var(--surface-2);color:var(--ink-2);font-size:12px;line-height:1.5;white-space:nowrap}
html[data-lab-theme=brand] .lab-mobile-table:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
html[data-lab-theme=brand] .lab-mobile-table table{font-size:13px;font-variant-numeric:tabular-nums}
html[data-lab-theme=brand] .lab-mobile-table th,html[data-lab-theme=brand] .lab-mobile-table td{padding:10px 9px}
html[data-lab-theme][data-lab-theme=brand] #calPop:not([hidden]){position:fixed;left:50%!important;top:50%!important;transform:translate(-50%,-50%);width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;box-shadow:0 12px 50px #15172b33}
html[data-lab-theme][data-lab-theme=brand] .cal-g button{min-height:40px}
/* Работа: важные цифры и ближайшее действие. */
html[data-lab-theme=brand] .lab-work-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
html[data-lab-theme=brand] .lab-work-heading h1{font-size:25px;line-height:1.2;margin:0}
html[data-lab-theme=brand] .lab-work-heading p{display:none}
html[data-lab-theme=brand] .lab-work-heading>span{font-size:11px;color:var(--ink-3)}
html[data-lab-theme][data-lab-theme=brand] .wk-home{gap:14px;max-width:none}
html[data-lab-theme][data-lab-theme=brand] .wk-hero-card{padding:18px 16px;border-radius:12px}
html[data-lab-theme][data-lab-theme=brand] .wk-hero-top{font-size:13px;gap:10px}
html[data-lab-theme][data-lab-theme=brand] .wk-upd{flex-basis:100%;font-size:12px}
html[data-lab-theme][data-lab-theme=brand] .wk-sum{font-size:34px;line-height:1.3;letter-spacing:-.02em}
html[data-lab-theme][data-lab-theme=brand] .wk-sum-sub{font-size:13px;line-height:1.6}
html[data-lab-theme][data-lab-theme=brand] .wk-pay{grid-template-columns:1fr 1fr;gap:10px}
html[data-lab-theme][data-lab-theme=brand] .wk-pay>div{padding:12px}
html[data-lab-theme][data-lab-theme=brand] .wk-pay b{font-size:23px;line-height:1.3}
html[data-lab-theme][data-lab-theme=brand] .wk-pay span{font-size:12px;letter-spacing:0;text-transform:none}
html[data-lab-theme][data-lab-theme=brand] .wk-free{font-size:12px;line-height:1.5;gap:6px 10px}
html[data-lab-theme][data-lab-theme=brand] .wk-store-mini{padding:14px 12px;gap:7px}
html[data-lab-theme][data-lab-theme=brand] .wk-store-mini b{font-size:15px}
html[data-lab-theme][data-lab-theme=brand] .wk-store-mini small{font-size:12px;line-height:1.5}
html[data-lab-theme][data-lab-theme=brand] .wk-chk-t b{font-size:14px;line-height:1.5}
html[data-lab-theme][data-lab-theme=brand] .wk-chk-t small{font-size:12px;line-height:1.5}
html[data-lab-theme][data-lab-theme=brand] .wk-tile{min-height:88px;padding:14px}
/* Продажи и товары: период/точка, затем результат. */
html[data-lab-theme][data-lab-theme=brand] .f-segbox{flex-wrap:wrap;max-width:100%}
html[data-lab-theme][data-lab-theme=brand] .f-segbox>button{min-height:44px;padding:9px 12px}
html[data-lab-theme][data-lab-theme=brand] .sold-products-summary,html[data-lab-theme][data-lab-theme=brand] .sold-products-stats{padding:14px}
html[data-lab-theme][data-lab-theme=brand] .sold-product-head{grid-template-columns:48px minmax(0,1fr);padding:12px;gap:9px 12px}
html[data-lab-theme][data-lab-theme=brand] .sold-product-amount{grid-column:2;text-align:left}
html[data-lab-theme][data-lab-theme=brand] .sold-product-name>b{font-size:15px;line-height:1.4}
html[data-lab-theme][data-lab-theme=brand] .sold-product-amount>b{font-size:16px}
html[data-lab-theme][data-lab-theme=brand] .sold-product-name>span,html[data-lab-theme][data-lab-theme=brand] .sold-product-name>small{font-size:12px;line-height:1.5}
html[data-lab-theme][data-lab-theme=brand] #newDays{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;overflow:visible;padding:0 0 12px}
html[data-lab-theme][data-lab-theme=brand] #newDays .chip{padding:8px 2px;font-size:12px;white-space:normal;line-height:1.4;min-height:44px}
html[data-lab-theme][data-lab-theme=brand] .new-status{font-size:12px;line-height:1.6;margin-top:0}
html[data-lab-theme][data-lab-theme=brand] .srow{padding:12px;gap:10px;border-radius:12px}
html[data-lab-theme][data-lab-theme=brand] .srow .pname{font-size:14px;line-height:1.5}
html[data-lab-theme][data-lab-theme=brand] .srow .tart{font-size:15px}
html[data-lab-theme][data-lab-theme=brand] .srow .price{font-size:16px}
html[data-lab-theme][data-lab-theme=brand] .sk-card-head h3{font-size:19px;line-height:1.4}
html[data-lab-theme][data-lab-theme=brand] .sk-card-body{grid-template-columns:minmax(0,1fr);gap:16px}
html[data-lab-theme][data-lab-theme=brand] .sk-card-body>div{min-width:0}
html[data-lab-theme][data-lab-theme=brand] .rb-hero{gap:8px;padding:12px}
html[data-lab-theme][data-lab-theme=brand] .rb-k{min-height:88px;padding:12px}
html[data-lab-theme][data-lab-theme=brand] .rb-k b{font-size:25px}
html[data-lab-theme][data-lab-theme=brand] .rb-k small{font-size:12px;line-height:1.5}
/* Финансы, склад и формы документов. */
html[data-lab-theme][data-lab-theme=brand] #rcDead{width:100%;max-width:100%}
html[data-lab-theme][data-lab-theme=brand] .fd-gate{max-width:none;padding:18px 16px}
html[data-lab-theme][data-lab-theme=brand] .fd-params .grid2{grid-template-columns:minmax(0,1fr);gap:12px}
html[data-lab-theme][data-lab-theme=brand] .fd-fl-sum{font-size:30px;line-height:1.3}
html[data-lab-theme][data-lab-theme=brand] .fd-top{gap:8px}
html[data-lab-theme][data-lab-theme=brand] .sk-acc-bar{padding:12px;gap:10px}
html[data-lab-theme][data-lab-theme=brand] .sk-acc-bar>.sk-acc-count{white-space:normal;font-size:13px}
html[data-lab-theme][data-lab-theme=brand] .sk-acc-bar>.sk-scan{padding:6px 8px;min-width:0}
html[data-lab-theme][data-lab-theme=brand] .sk-acc-bar .sk-scan input{min-width:0;width:100%}
html[data-lab-theme][data-lab-theme=brand] .sk-docs-filter .select{min-width:0}
html[data-lab-theme][data-lab-theme=brand] .sk-form .sk-form-actions,html[data-lab-theme][data-lab-theme=brand] .sk-doc .sk-form-actions{padding:12px;gap:10px;border-radius:12px;bottom:calc(80px + env(safe-area-inset-bottom))}
html[data-lab-theme][data-lab-theme=brand] .sk-form:has(.sk-form-actions),html[data-lab-theme][data-lab-theme=brand] .sk-doc:has(.sk-form-actions){padding-bottom:116px}
/* Магазин: удобно нажимать сумму/количество и удаление строки; цвета оплат исходные. */
html[data-lab-theme][data-lab-theme=brand] .sk-shop .sk-home .sk-editor .sk-entry{grid-template-columns:56px minmax(0,1fr) auto 44px;padding:12px;gap:8px}
html[data-lab-theme][data-lab-theme=brand] .sk-shop .sk-home .sk-editor .sk-entry td[data-field=remove] .btn{width:44px;height:44px;min-height:44px;font-size:18px}
html[data-lab-theme][data-lab-theme=brand] .sk-shop .sk-pay{gap:8px}
html[data-lab-theme][data-lab-theme=brand] .sk-shop .sk-pay label{min-height:72px;padding:12px 8px;font-size:15px}
html[data-lab-theme][data-lab-theme=brand] .sk-quick{gap:10px}
html[data-lab-theme][data-lab-theme=brand] .sk-quick .sk-quick-btn{min-height:76px}
/* Почта: читаемые реквизиты и отдельные действия посылки. */
html[data-lab-theme][data-lab-theme=brand] .po-bar{gap:8px}
html[data-lab-theme][data-lab-theme=brand] .po-item{border-radius:12px}
html[data-lab-theme][data-lab-theme=brand] .po-item h4{font-size:15px;line-height:1.45}
html[data-lab-theme][data-lab-theme=brand] .po-act{gap:8px;flex-wrap:wrap}
html[data-lab-theme][data-lab-theme=brand] .po-act .btn{min-height:44px}
html[data-lab-theme][data-lab-theme=brand] .po-date{font-size:13px;line-height:1.5}
/* Сотрудники: день календаря — полноценная цель касания. */
html[data-lab-theme][data-lab-theme=brand] .sc-head{position:sticky;top:0;z-index:20;padding:8px 0;background:var(--bg);gap:8px}
html[data-lab-theme][data-lab-theme=brand] .sc-card{padding:12px 9px;border-radius:12px}
html[data-lab-theme][data-lab-theme=brand] .sc-card-h{flex-wrap:wrap;gap:5px 10px;margin-bottom:10px}
html[data-lab-theme][data-lab-theme=brand] .sc-card-h b{font-size:15px}
html[data-lab-theme][data-lab-theme=brand] .sc-card-h>span{font-size:12px;white-space:normal}
html[data-lab-theme][data-lab-theme=brand] .sc-wd,html[data-lab-theme][data-lab-theme=brand] .sc-grid{gap:3px}
html[data-lab-theme][data-lab-theme=brand] .sc-wd span{font-size:11px}
html[data-lab-theme][data-lab-theme=brand] .sc-day{height:44px;min-height:44px;font-size:14px;border-radius:8px}
html[data-lab-theme][data-lab-theme=brand] .sc-card-store{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;font-size:13px;line-height:1.5}
html[data-lab-theme][data-lab-theme=brand] .sc-sub-add{margin-left:0;min-height:44px;max-width:100%}
html[data-lab-theme][data-lab-theme=brand] .sal-note,html[data-lab-theme][data-lab-theme=brand] .sal-h{font-size:14px;line-height:1.6}
/* Ещё: формы с длинными подписями и полями. */
html[data-lab-theme][data-lab-theme=brand] #usersPane .form-row,html[data-lab-theme][data-lab-theme=brand] #settingsPane .form-row{flex-wrap:wrap;gap:10px}
html[data-lab-theme][data-lab-theme=brand] #settingsPane textarea{min-height:100px;line-height:1.5}
html[data-lab-theme][data-lab-theme=brand] #settingsPane .field{margin-bottom:14px}
html[data-lab-theme][data-lab-theme=brand] .nav-sheet-link{min-height:48px;font-size:15px;line-height:1.4}
html[data-lab-theme][data-lab-theme=brand] .bnav{background:#ffffffed;border-color:var(--line);padding-top:8px}
html[data-lab-theme][data-lab-theme=brand] .bnav-item{font-size:11px;min-height:48px;line-height:1.3}
}
@media(prefers-reduced-motion:reduce){html[data-lab-theme=brand] *,html[data-lab-theme=brand] *::before,html[data-lab-theme=brand] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:760px){
/* The legacy heading is visually clipped on phones; restore its full box for orientation. */
html[data-lab-theme][data-lab-theme=brand] .shead>h2:not([hidden]){position:static;width:auto;height:auto;margin:0;padding:0;overflow:visible;clip-path:none;white-space:normal}
html[data-lab-theme=brand] main:has(#workPane:not(.hidden))>.shead{display:none}
html[data-lab-theme][data-lab-theme=brand] :is(.vb-btn,.sk-chip,.sk-sound,.sk-action-new,.sk-action-stat){min-height:44px}
html[data-lab-theme][data-lab-theme=brand] .vb-btn{padding:8px 6px;font-size:13px}
html[data-lab-theme][data-lab-theme=brand] .sk-chip{padding:9px 12px;font-size:14px}
html[data-lab-theme][data-lab-theme=brand] .sk-sound{width:44px;height:44px;min-width:44px}
html[data-lab-theme][data-lab-theme=brand] .sk-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html[data-lab-theme][data-lab-theme=brand] .sk-action{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px 10px;min-width:0}
html[data-lab-theme][data-lab-theme=brand] .sk-action-new{width:100%;min-width:0;align-items:center;gap:8px}
html[data-lab-theme][data-lab-theme=brand] .sk-action-ico{width:28px;height:28px;font-size:15px}
html[data-lab-theme][data-lab-theme=brand] .sk-action-title{font-size:14px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}
html[data-lab-theme][data-lab-theme=brand] .sk-action-stat{align-self:stretch;max-width:100%;padding:8px;font-size:12px;line-height:1.5;text-align:left;white-space:normal;overflow:visible;text-overflow:clip}
html[data-lab-theme][data-lab-theme=brand] .po-menu button{min-height:44px;font-size:14px;padding:10px 12px}
}
@media(max-width:760px){
html[data-lab-theme][data-lab-theme=brand] main button{min-height:44px}
html[data-lab-theme][data-lab-theme=brand] .pm-nav{width:44px;min-width:44px;height:44px;min-height:44px}
html[data-lab-theme][data-lab-theme=brand] .cal-g button{min-height:44px}
}
@media(max-width:760px){
html[data-lab-theme][data-lab-theme=brand] :is(#stockViewSel,#stockColsSel) .chip{min-height:44px}
}
@media(max-width:760px){
/* A sale price and old price must fit together even at360px. */
html[data-lab-theme][data-lab-theme=brand] .drow .trow{flex-wrap:wrap;gap:6px 10px}
html[data-lab-theme][data-lab-theme=brand] .drow .trow .srow-art{flex:1 1 100%}
html[data-lab-theme][data-lab-theme=brand] .drow .tsum{display:flex;flex-wrap:wrap;gap:4px 6px;flex:1 1 100%;min-width:0;max-width:100%;font-size:16px;line-height:1.5}
html[data-lab-theme][data-lab-theme=brand] .drow .tsum s,html[data-lab-theme][data-lab-theme=brand] .drow .tsum .pct{margin:0}
}
@media(max-width:760px){
html[data-lab-theme][data-lab-theme=brand] main details>summary{min-height:44px;padding-top:10px;padding-bottom:10px;line-height:1.5}
/* Parcel actions stay inside the viewport instead of opening off the card edge. */
html[data-lab-theme][data-lab-theme=brand] .po-more summary{display:grid;place-items:center;min-width:44px;min-height:44px;padding:8px;font-size:18px;line-height:1}
html[data-lab-theme][data-lab-theme=brand] .po-menu{position:fixed;left:12px;right:12px;top:auto;bottom:calc(84px + env(safe-area-inset-bottom));width:auto;min-width:0;max-width:calc(100vw - 24px);z-index:50;padding:8px;border-radius:14px;box-shadow:0 12px 40px #15172b40}
}
@media(max-width:760px){
html[data-lab-theme][data-lab-theme=brand] .sk-action-new{gap:6px}
html[data-lab-theme][data-lab-theme=brand] .sk-action-ico{width:24px;height:24px;font-size:14px}
html[data-lab-theme][data-lab-theme=brand] .sk-action-title{font-size:13px;line-height:1.45;overflow-wrap:normal}
}
@media print{
.lab-mobile-table::before{display:none!important}
}
@media(max-width:760px){
html[data-lab-theme][data-lab-theme=brand] .toggle{position:relative;min-height:44px}
html[data-lab-theme][data-lab-theme=brand] .toggle input{display:block;position:absolute;width:1px;height:1px;opacity:0}
html[data-lab-theme][data-lab-theme=brand] .toggle:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:3px;border-radius:4px}
}

/* Проход 24.10 вечер. Переключатель периода: подпись по центру плашки (была прижата к базовой линии сверху). */
html[data-lab-theme][data-lab-theme=brand] .pp-btn{align-items:center;justify-content:center}
/* Смены: светлая карточка, а подпись итога была белой — текст пропадал. */
html[data-lab-theme][data-lab-theme=brand] #salesPane .wk-net>span{color:var(--ink-2);background:none}
@media(max-width:760px){
/* Деньги не обрезаются многоточием. */
html[data-lab-theme][data-lab-theme=brand] #salesPane .wk-pay b{font-size:20px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
html[data-lab-theme][data-lab-theme=brand] .sold-stock-line :is(span,b){white-space:nowrap}
/* Плитка товаров — две в ряд; при раскрытых остатках (таблица размеров) остаётся одна. */
html[data-lab-theme][data-lab-theme=brand] main .grid:not(:has(details.matrix-details[open])):not(:has(table.matrix:not(details table))){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
/* Карточка документа: тип и номер не рвутся посреди слова, пустые поля не показываем. */
html[data-lab-theme][data-lab-theme=brand] .tbl-cards td.cardhead{flex-wrap:wrap;justify-content:flex-start;gap:2px 8px;text-align:left}
html[data-lab-theme][data-lab-theme=brand] .tbl-cards td.cardhead>b{white-space:nowrap}
html[data-lab-theme][data-lab-theme=brand] .tbl-cards td.cardhead>.sk-dnote{flex-basis:100%}
html[data-lab-theme][data-lab-theme=brand] .tbl-cards td:empty{display:none}
/* Почта: шапка не липнет и не съедает треть экрана, вкладки в один ряд. */
html[data-lab-theme][data-lab-theme=brand] #postPane .sc-head{position:static;display:grid;grid-template-columns:1fr 1fr;gap:8px}
html[data-lab-theme][data-lab-theme=brand] #postPane .sc-head>.chips{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
html[data-lab-theme][data-lab-theme=brand] #postPane .sc-head .chip{justify-content:center;gap:4px;padding:8px 2px;font-size:12px;white-space:nowrap}
}
/* Work hub: strong hierarchy in the SHOPSTYLE palette. Original money nodes are reused. */
html[data-lab-theme][data-lab-theme=brand] #workPane .work-hub{display:flex;flex-direction:column;align-items:stretch;gap:20px;max-width:none}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-section-head h2{font-size:20px;line-height:1.3;margin:0;font-weight:700;color:var(--ink)}
html[data-lab-theme=brand] #workPane .work-section-head>span{font-size:12px;color:var(--ink-2);text-align:right}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-hub .wk-hero-card{background:#15172b;border:0;border-radius:18px;padding:24px 28px;box-shadow:0 7px 20px #15172b24;color:#fff;display:block}
html[data-lab-theme=brand] #workPane .work-hub .wk-hero-top{padding-bottom:14px;border-bottom:1px solid #ffffff66;gap:12px;color:#fff}
html[data-lab-theme=brand] #workPane .work-hub :is(.wk-day,.wk-upd){color:#fff;font-size:14px;opacity:1}
html[data-lab-theme=brand] #workPane .work-revenue-caption{font-size:14px;line-height:1.5;color:#fff;margin-top:18px;font-weight:400}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-hub .wk-sum{font-size:48px;line-height:1.25;margin-top:4px;letter-spacing:-.035em;color:#fff;font-weight:700}
html[data-lab-theme=brand] #workPane .work-hub .wk-sum::before{content:none}
html[data-lab-theme=brand] #workPane .work-hub .wk-sum-sub{font-size:14px;line-height:1.7;color:#fff;margin-top:10px}
html[data-lab-theme=brand] #workPane .work-hub .wk-datepick .pp{background:#2c2f45;border-color:#ffffff40;border-radius:10px}
html[data-lab-theme=brand] #workPane .work-hub .wk-datepick .pp-btn{background:#fff;color:#15172b}
html[data-lab-theme=brand] #workPane .work-hub .wk-datepick .pp-ar{color:#fff}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;padding:0;border:0}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay>div{background:#fff;border:1px solid var(--line);border-top:4px solid #1f9d5b;border-radius:12px;padding:18px;box-shadow:none}
html[data-lab-theme=brand] #workPane .work-payments .wk-pay>.k{border-top-color:#2f6bff}
html[data-lab-theme=brand] #workPane .work-payments .wk-pay>.p{border-top-color:#d98e04}
html[data-lab-theme=brand] #workPane .work-payments .wk-pay>.e{border-top-color:#c62828}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay b{font-size:28px;line-height:1.35;color:#136b43;font-weight:700;white-space:normal;overflow-wrap:anywhere}
html[data-lab-theme=brand] #workPane .work-payments .wk-pay>.k b{color:#285ac7}
html[data-lab-theme=brand] #workPane .work-payments .wk-pay>.p b{color:#8d5a07}
html[data-lab-theme=brand] #workPane .work-payments .wk-pay>.e b{color:#ad2d2d}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay span{font-size:14px;line-height:1.5;color:var(--ink-2);text-transform:none;letter-spacing:0}
html[data-lab-theme=brand] #workPane .work-payments .wk-pay small{font-size:12px;color:var(--ink-3)}
html[data-lab-theme=brand] #workPane .work-source-note{font-size:12px;color:var(--ink-2);line-height:1.5;margin:9px 2px 0}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-attention .wk-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:10px;background:none;border:0;border-radius:0;padding:0;box-shadow:none}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-attention .wk-chk{background:#fff7e6;border:1px solid #e3c68a;border-left:5px solid #d98e04;border-radius:12px;padding:16px;align-items:flex-start;gap:12px;min-width:0;flex-wrap:wrap}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-attention .wk-chk.bad{background:#fff0f1;border-color:#edb1b6;border-left-color:#c62828}
html[data-lab-theme=brand] #workPane .work-attention .wk-chk::before{content:none}
html[data-lab-theme=brand] #workPane .work-attention .wk-chk-t{flex-basis:calc(100% - 48px)}
html[data-lab-theme=brand] #workPane .work-attention .wk-chk-t b{font-size:16px;line-height:1.4;font-weight:700}
html[data-lab-theme=brand] #workPane .work-attention .wk-chk-t small{font-size:13px;line-height:1.55;white-space:normal}
html[data-lab-theme=brand] #workPane .work-attention .wk-chk em{font-size:19px;font-weight:700;line-height:1.4;margin-left:44px;max-width:calc(100% - 44px);white-space:normal}
html[data-lab-theme=brand] #workPane .work-attention .wk-chk-a{display:none}
html[data-lab-theme=brand] #workPane .work-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html[data-lab-theme=brand] #workPane .work-overview-tile{position:relative;display:flex;flex-direction:column;gap:8px;text-align:left;padding:18px 16px;min-height:130px;border:1px solid var(--line);border-top:4px solid var(--tile-color);border-radius:12px;background:#fff;color:var(--ink);cursor:pointer;font:inherit;min-width:0}
html[data-lab-theme=brand] #workPane .work-overview-tile:hover{background:var(--surface-2);border-color:var(--tile-color)}
html[data-lab-theme=brand] #workPane .work-tile-title{font-size:14px;font-weight:600;color:var(--ink-2);padding-right:20px}
html[data-lab-theme=brand] #workPane .work-tile-value{font-size:24px;font-weight:700;line-height:1.35;letter-spacing:-.02em;overflow-wrap:anywhere}
html[data-lab-theme=brand] #workPane .work-tile-note{font-size:12px;line-height:1.5;color:var(--ink-2)}
html[data-lab-theme=brand] #workPane .work-tile-arrow{position:absolute;right:14px;top:14px;font-size:20px;color:var(--tile-color)}
html[data-lab-theme=brand] #workPane .work-extra-retry{margin-top:10px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-stores .wk-stores-mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;background:none;border:0;border-radius:0;overflow:visible}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-stores .wk-store-mini{border:1px solid var(--line);border-left:5px solid var(--work-store-color,#e11d74);border-radius:12px;background:#fff;padding:16px;gap:7px 10px;grid-template-columns:9px 1fr}
html[data-lab-theme=brand] #workPane .work-stores .wk-store-mini>b{font-size:17px;grid-column:2;grid-row:1}
html[data-lab-theme=brand] #workPane .work-stores .wk-store-mini>span{grid-column:1/-1;grid-row:2;text-align:left;font-size:28px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
html[data-lab-theme=brand] #workPane .work-stores .wk-store-mini>small{grid-column:1/-1;grid-row:3;font-size:13px;line-height:1.5}
html[data-lab-theme=brand] #workPane :is(.work-cash-details,.work-events){border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
html[data-lab-theme=brand] #workPane :is(.work-cash-details,.work-events)>summary{font-size:16px;font-weight:600;line-height:1.5;min-height:48px;padding:16px;cursor:pointer}
html[data-lab-theme=brand] #workPane :is(.work-cash-details,.work-events)>summary:hover{background:var(--surface-2)}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-cash-details .wk-cash-grid{padding:0 12px 12px;gap:12px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-cash-details .wk-cash{border-radius:10px;padding:16px;box-shadow:none}
html[data-lab-theme=brand] #workPane .work-event-list{padding:0 12px}
html[data-lab-theme=brand] #workPane .work-event-list .wk-chk{padding:14px 6px}
html[data-lab-theme=brand] #workPane .work-events .wk-free{margin:0 16px 16px;color:var(--ink-2);border-top-color:var(--line);font-size:13px;line-height:1.6}
html[data-lab-theme=brand] #workPane .work-events .wk-free :is(b,span b){color:var(--ink)}
html[data-lab-theme=brand] #workPane .work-events .wk-free>span{background:var(--surface-2);white-space:normal}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-actions .wk-tiles{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-actions .wk-tile{min-height:94px;padding:16px;box-shadow:none}
@media(max-width:760px){
html[data-lab-theme][data-lab-theme=brand] #workPane .work-hub{gap:20px}
html[data-lab-theme=brand] #workPane .lab-work-heading{margin-bottom:16px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-hub .wk-hero-card{padding:18px 16px;border-radius:15px}
html[data-lab-theme=brand] #workPane .work-hub .wk-hero-top{gap:10px;padding-bottom:12px}
html[data-lab-theme=brand] #workPane .work-hub :is(.wk-day,.wk-upd){font-size:13px}
html[data-lab-theme=brand] #workPane .work-hub .wk-upd{flex-basis:100%}
html[data-lab-theme=brand] #workPane .work-revenue-caption{font-size:13px;margin-top:14px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-hub .wk-sum{font-size:35px;letter-spacing:-.025em}
html[data-lab-theme=brand] #workPane .work-hub .wk-sum-sub{font-size:13px;line-height:1.6}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-section-head h2{font-size:20px}
html[data-lab-theme=brand] #workPane .work-section-head>span{font-size:11px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-attention .wk-checks{grid-template-columns:1fr}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-attention .wk-chk{padding:14px;gap:10px}
html[data-lab-theme=brand] #workPane .work-attention .wk-chk-t b{font-size:15px}
html[data-lab-theme=brand] #workPane .work-attention .wk-chk-t small{font-size:12px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay{grid-template-columns:1fr 1fr;gap:10px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay>div{padding:13px 12px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay b{font-size:24px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay span{font-size:13px}
html[data-lab-theme=brand] #workPane .work-overview-grid{grid-template-columns:1fr 1fr;gap:10px}
html[data-lab-theme=brand] #workPane .work-overview-tile{min-height:124px;padding:14px 12px;gap:7px}
html[data-lab-theme=brand] #workPane .work-tile-value{font-size:22px}
html[data-lab-theme=brand] #workPane .work-tile-note{font-size:12px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-stores .wk-stores-mini{grid-template-columns:1fr;gap:10px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-stores .wk-store-mini{display:grid;grid-template-columns:9px minmax(0,1fr) auto;padding:14px 12px}
html[data-lab-theme=brand] #workPane .work-stores .wk-store-mini>b{font-size:16px}
html[data-lab-theme=brand] #workPane .work-stores .wk-store-mini>span{grid-column:3;grid-row:1/3;font-size:20px;align-self:start;text-align:right;max-width:160px}
html[data-lab-theme=brand] #workPane .work-stores .wk-store-mini>small{grid-column:2/-1;grid-row:3;font-size:12px}
html[data-lab-theme=brand] #workPane :is(.work-cash-details,.work-events)>summary{font-size:14px;padding:14px;line-height:1.6}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-actions .wk-tiles{grid-template-columns:1fr 1fr;gap:10px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-actions .wk-tile{padding:13px 12px;min-height:98px}
html[data-lab-theme=brand] #workPane .work-event-list .wk-chk{flex-wrap:wrap}
html[data-lab-theme=brand] #workPane .work-event-list .wk-chk-t{flex-basis:calc(100% - 50px)}
html[data-lab-theme=brand] #workPane .work-event-list .wk-chk em{margin-left:44px;white-space:normal;max-width:calc(100% - 44px)}
}
@media(prefers-reduced-motion:reduce){html[data-lab-theme=brand] #workPane *,html[data-lab-theme=brand] #workPane *::before,html[data-lab-theme=brand] #workPane *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

html[data-lab-theme=brand] #workPane .work-attention-jump{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;padding:15px 18px;border:1px solid #e7a8b0;border-left:5px solid #c62828;border-radius:11px;background:#fff0f2;color:#9e2634;font:inherit;cursor:pointer;min-height:52px}
html[data-lab-theme=brand] #workPane .work-attention-jump b{font-size:15px;font-weight:700;line-height:1.4}
html[data-lab-theme=brand] #workPane .work-attention-jump span{font-size:13px;white-space:nowrap}
html[data-lab-theme=brand] #workPane .work-attention{scroll-margin-top:18px}

/* Stronger graphic separation: filled metric cards and identifiable section icons. */
html[data-lab-theme][data-lab-theme=brand] #workPane .work-hub .wk-hero-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px}
html[data-lab-theme=brand] #workPane .work-hub .wk-day{grid-column:1;grid-row:1}
html[data-lab-theme=brand] #workPane .work-hub .wk-upd{grid-column:1;grid-row:2;font-size:12px;line-height:1.5}
html[data-lab-theme=brand] #workPane .work-hub .wk-datepick{grid-column:2;grid-row:1/3}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay>div{position:relative;background:#117747;border:0;border-radius:14px;min-height:104px;padding:16px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay>.k{background:#2458c9}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay>.p{background:#f1bb4c}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay>.e{background:#c62828}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay :is(b,span,small){color:#fff;opacity:1}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay>.p :is(b,span,small){color:#3b2804}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay b{padding-right:25px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay .work-pay-icon{display:grid;place-items:center;position:absolute;top:17px;right:12px;width:21px;height:24px}
html[data-lab-theme=brand] #workPane .work-pay-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html[data-lab-theme=brand] #workPane .work-overview-tile{background:color-mix(in srgb,var(--tile-color) 15%,white);border:1px solid color-mix(in srgb,var(--tile-color) 35%,white);border-top:0;padding:17px 16px;min-height:148px;box-shadow:0 2px 4px #15172b06}
html[data-lab-theme=brand] #workPane .work-overview-tile:hover{background:color-mix(in srgb,var(--tile-color) 22%,white)}
html[data-lab-theme=brand] #workPane .work-tile-icon{display:grid;place-items:center;position:absolute;top:14px;left:14px;width:34px;height:34px;border-radius:10px;background:var(--tile-color);color:#fff}
html[data-lab-theme=brand] #workPane .work-tile-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html[data-lab-theme=brand] #workPane .work-tile-title{padding-left:43px;min-height:32px;display:flex;align-items:center;color:var(--ink);font-size:14px;font-weight:700}
html[data-lab-theme=brand] #workPane .work-tile-value{font-size:25px;color:var(--ink);line-height:1.25}
html[data-lab-theme=brand] #workPane .work-tile-arrow{top:20px;font-size:18px}
html[data-lab-theme=brand] #workPane .work-tile-note{font-size:12px;color:#424b61}
@media(max-width:760px){
html[data-lab-theme][data-lab-theme=brand] #workPane .work-hub .wk-hero-top{gap:6px 8px;padding-bottom:10px}
html[data-lab-theme=brand] #workPane .work-hub .wk-day{font-size:12px;line-height:1.5}
html[data-lab-theme=brand] #workPane .work-hub .wk-upd{font-size:11px;line-height:1.6}
html[data-lab-theme=brand] #workPane .work-hub .wk-datepick .pp{gap:2px;padding:3px;max-width:170px}
html[data-lab-theme=brand] #workPane .work-hub .wk-datepick .pp-ar{width:34px;min-width:34px}
html[data-lab-theme=brand] #workPane .work-hub .wk-datepick .pp-btn{padding:7px 6px;gap:5px}
html[data-lab-theme=brand] #workPane .work-hub .wk-datepick .pp-btn b{font-size:12px}
html[data-lab-theme=brand] #workPane .work-hub .wk-datepick .pp-btn small{font-size:10px}
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay>div{padding:15px 12px;min-height:98px}
html[data-lab-theme=brand] #workPane .work-overview-tile{padding:15px 12px;min-height:145px}
html[data-lab-theme=brand] #workPane .work-tile-title{padding-left:42px;padding-right:9px;font-size:13px}
html[data-lab-theme=brand] #workPane .work-tile-value{font-size:23px}
html[data-lab-theme=brand] #workPane .work-tile-arrow{right:9px}
}
@media(max-width:380px){
html[data-lab-theme][data-lab-theme=brand] #workPane .work-payments .wk-pay b{font-size:22px}
html[data-lab-theme=brand] #workPane .work-tile-value{font-size:21px}
}

/* Cash drawer balance is a primary metric, separate from the day's cash sales. */
html[data-lab-theme=brand] #workPane .work-masthead{display:grid;grid-template-columns:1.15fr 1fr;gap:16px;align-items:stretch}
html[data-lab-theme=brand] #workPane .work-cash-total{display:flex;flex-direction:column;justify-content:center;gap:12px;min-width:0;padding:24px;border:1px solid var(--line);border-radius:16px;text-align:left;background:#fff;color:var(--ink);font:inherit;cursor:pointer;box-shadow:var(--shadow)}
html[data-lab-theme=brand] #workPane .work-cash-caption{font-size:16px;font-weight:600;line-height:1.4;color:var(--ink-2)}
html[data-lab-theme=brand] #workPane .work-cash-value{font-size:40px;line-height:1.25;letter-spacing:-.025em;color:var(--ink);font-weight:700;overflow-wrap:anywhere}
html[data-lab-theme=brand] #workPane .work-cash-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:12px;border-top:1px solid var(--line)}
html[data-lab-theme=brand] #workPane .work-cash-cell{display:flex;flex-direction:column;gap:4px;min-width:0}
html[data-lab-theme=brand] #workPane .work-cash-cell small{font-size:12px;line-height:1.4;color:var(--ink-2)}
html[data-lab-theme=brand] #workPane .work-cash-cell b{font-size:15px;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}
html[data-lab-theme=brand] #workPane .work-cash-basis{font-size:12px;line-height:1.5;color:var(--ink-2)}
html[data-lab-theme=brand] #workPane .work-cash-more{font-size:13px;line-height:1.5;text-decoration:underline;text-underline-offset:3px;color:var(--ink-2)}
@media(max-width:760px){
html[data-lab-theme=brand] #workPane .work-masthead{grid-template-columns:1fr;gap:12px}
html[data-lab-theme=brand] #workPane .work-cash-total{padding:18px 16px;gap:9px}
html[data-lab-theme=brand] #workPane .work-cash-caption{font-size:15px}
html[data-lab-theme=brand] #workPane .work-cash-value{font-size:34px}
html[data-lab-theme=brand] #workPane .work-cash-strip{padding-top:10px;gap:7px}
html[data-lab-theme=brand] #workPane .work-cash-cell b{font-size:12px}
html[data-lab-theme=brand] #workPane .work-cash-basis{font-size:11px}
}

html[data-lab-theme=brand] #workPane .work-actions .wk-tile.accent small{color:#fff;opacity:1}
html[data-lab-theme=brand] #workPane .lab-work-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
html[data-lab-theme=brand] #workPane .lab-work-heading h1{font-size:28px;line-height:1.25;margin:0;font-weight:700}
html[data-lab-theme=brand] #workPane .lab-work-heading p{display:none}
html[data-lab-theme=brand] #workPane .lab-work-heading>span{font-size:12px;color:var(--ink-3)}
@media(max-width:760px){html[data-lab-theme=brand] #workPane .lab-work-heading h1{font-size:26px}}

/* Проход 24.10 вечер: убрать повторы. Наличные раскрываются из зелёной карточки, строка-дубль не нужна. */
html[data-lab-theme=brand] #workPane .work-cash-details:not([open]){display:none}
html[data-lab-theme=brand] #workPane .work-actions .wk-tile[data-pane=post]{display:none}
html[data-lab-theme=brand] #workPane .work-attention .wk-chk em.work-dup{display:none}
/* Быстрые действия на компьютере — одна строка при любом числе плиток у роли (Benny 25.10.2026); на телефоне — 2 в ряд. */
@media(min-width:761px){html[data-lab-theme][data-lab-theme=brand] #workPane .work-actions .wk-tiles{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}}
html[data-lab-theme=brand] #workPane .work-cash-total:hover{background:var(--surface-2)}
/* Заголовок раздела получает фокус из кода при переходе (для экранного диктора), а не от пользователя: рамку не рисуем.
   На телефоне подраздел выбирается списком — браузер считал это клавиатурой и обводил «Товары» розовым (Benny 25.10.2026). */
html[data-lab-theme=brand] #secTitle:focus{outline:none}
/* Журнал выгрузки сканера в документе (инвентаризация Green City, Benny 25.10.2026): серия и ненайденные коды. */
.sk-scan-log{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:8px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);font-size:13px;line-height:1.5}
.sk-scan-log .miss{color:#b42318}
.sk-scan-log code{font-size:12px;background:#fff;border:1px solid var(--line);border-radius:4px;padding:0 4px;overflow-wrap:anywhere}
