/* Шрифт Onest (SIL Open Font License), хранится на своём сервере */
@font-face{font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/onest-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/onest-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:600;font-display:swap;src:url(/static/fonts/onest-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/onest-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/onest-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Onest';font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/onest-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Onest';font-style:normal;font-weight:600;font-display:swap;src:url(/static/fonts/onest-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Onest';font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/onest-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  --ink:#1C1B29;--ink2:#2B2A42;--ground:#F4F2EE;--card:#FFFFFF;--line:#E4E1DA;--line2:#EFEDE8;
  --muted:#5E5B6E;--coral:#E2552B;--coral-ink:#B8401C;--wb:#7A1F7A;--oz:#5B86FF;
  --up:#1D7A4F;--dn:#C2352B;--warn-bg:#FDF0DC;--warn:#8A4B00;--bad-bg:#FBE6E3;--bad:#A12A20;
  --ok-bg:#E8F3EC;--ok:#145C3B;--soft:#F7F5F1;
  --gap:16px;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;background:var(--ground);color:var(--ink);font-family:'Onest',system-ui,-apple-system,'Segoe UI',sans-serif;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
a{color:var(--ink);text-decoration:none}a:hover{color:var(--coral-ink)}
button,input,select{font:inherit}
.app{display:flex;flex-wrap:wrap;min-height:100vh}
.side{flex:1 1 236px;background:var(--ink);color:#EDEBF5;padding:24px 14px;display:flex;flex-direction:column;gap:28px}
.logo{display:flex;align-items:center;gap:12px;padding:4px 6px}
.logo-mark{width:40px;height:40px;border-radius:12px;background:var(--coral);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:20px}
.logo-name{font-weight:700;font-size:19px;color:#fff;letter-spacing:-.01em}
.logo-sub{font-size:12px;color:#A9A5BF}
.nav{display:flex;flex-direction:column;gap:4px}
.nav a{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 14px;border-radius:10px;color:#C9C6DA;font-size:15px;font-weight:500}
.nav a:hover{background:var(--ink2);color:#fff}
.nav a.on{background:var(--ground);color:var(--ink);font-weight:600}
.nav .soon{margin-left:auto;font-size:11px;color:#A9A5BF;font-weight:500}
.nav a.on .soon{color:var(--muted)}
.ic{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.side-foot{margin-top:auto;padding:14px;border-radius:12px;background:#26253A;font-size:12px;color:#C9C6DA;display:flex;flex-direction:column;gap:6px}
.side-foot b{color:#fff;font-size:13px;font-weight:600}
.side-foot button{margin-top:6px;background:transparent;border:1px solid #4A4760;color:#EDEBF5;border-radius:8px;min-height:36px;cursor:pointer}
.side-foot button:hover{background:var(--ink2)}
.main{flex:999 1 560px;min-width:0;padding:28px 32px 56px;display:flex;flex-direction:column;gap:var(--gap)}
#body,#fbody,#pbody{display:flex;flex-direction:column;gap:var(--gap);min-width:0}
#body:empty,#fbody:empty{display:none}
.top{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;justify-content:space-between}
.h1{margin:0;font-size:30px;font-weight:700;letter-spacing:-.02em}
.sub{margin:6px 0 0;font-size:14px;color:var(--muted)}
.ctrls{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.seg{display:flex;flex-wrap:wrap;gap:2px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:3px;align-items:center}
.seg-l{font-size:13px;color:var(--muted);padding:0 8px 0 10px}
.chip{border:0;background:transparent;font-size:14px;font-weight:500;padding:0 14px;min-height:44px;border-radius:9px;color:var(--muted);cursor:pointer}
.chip:hover{color:var(--ink);background:var(--ground)}
.chip.on{background:var(--ink);color:#fff}
.chip.sm{min-height:34px;font-size:13px;padding:0 10px}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px;min-width:0}
.ct{margin:0;font-size:16px;font-weight:600}
.cs{margin:4px 0 0;font-size:13px;color:var(--muted);line-height:1.45}
.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap)}
.split{display:flex;flex-wrap:wrap;gap:var(--gap)}
.wide{flex:2 1 560px;min-width:0}
.narrow{flex:1 1 320px;min-width:0}
.kl{font-size:13px;color:var(--muted);font-weight:500}
.kv{font-size:28px;font-weight:700;letter-spacing:-.02em;margin-top:8px;white-space:nowrap}
.kd{font-size:13px;font-weight:600;margin-top:6px}
.kd .vs{color:var(--muted);font-weight:500}
.ks{font-size:12px;color:var(--muted);margin-top:12px;padding-top:10px;border-top:1px solid var(--line2);line-height:1.4}
.badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;font-size:12px;font-weight:600;white-space:nowrap}
.b-wb{background:#F6E7F4;color:var(--wb)}
.b-oz{background:#E5ECFF;color:#1E4FD8}
.b-ok{background:var(--ok-bg);color:var(--ok)}
.b-warn{background:var(--warn-bg);color:var(--warn)}
.b-bad{background:var(--bad-bg);color:var(--bad)}
.b-off{background:#F1EFEA;color:#4A4760}
.tbox{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th{font-size:12px;font-weight:600;color:var(--muted);text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:10px 12px;border-bottom:1px solid var(--line2);white-space:nowrap}
td.wrap{white-space:normal;min-width:220px}
.r{text-align:right}
.up{color:var(--up)}.dn{color:var(--dn)}.mu{color:var(--muted)}
.hl{background:#FBF4EF;font-weight:600}
.thumb{width:36px;height:36px;border-radius:9px;flex:none;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:var(--ink);background:#E7DDF5;overflow:hidden}
.thumb img{width:100%;height:100%;object-fit:cover}
.prod{display:flex;align-items:center;gap:12px;min-width:200px;white-space:normal;line-height:1.35}
td:has(.prod){white-space:normal}
.narrow>.card{height:100%}
.legend{display:flex;gap:16px;font-size:13px;color:var(--muted);align-items:center;flex-wrap:wrap}
.legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.chart{position:relative;height:260px;margin-top:16px}
.chart .gl{position:absolute;left:44px;right:0;border-top:1px dashed var(--line)}
.chart .gt{position:absolute;left:0;width:38px;text-align:right;font-size:11px;color:var(--muted)}
.chart .bars{position:absolute;left:52px;right:4px;top:0;bottom:28px;display:flex;align-items:flex-end;gap:6px}
.chart .col{flex:1 1 0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;min-width:0}
.chart .val{font-size:11px;font-weight:600;white-space:nowrap}
.chart .stack{width:100%;max-width:56px;display:flex;flex-direction:column-reverse;border-radius:5px 5px 0 0;overflow:hidden}
.chart .xl{position:absolute;left:52px;right:4px;bottom:0;height:22px;display:flex;gap:6px;align-items:flex-end}
.chart .xl div{flex:1 1 0;text-align:center;font-size:11px;color:var(--muted);white-space:nowrap;min-width:0;overflow:visible}
.chart .xl div.on{color:var(--ink);font-weight:700}
.bar-wb{background:var(--wb)}.bar-oz{background:var(--oz)}.bar-h{background:#4A4760}.bar-peak{background:var(--coral)}
code{background:rgba(28,27,41,.07);padding:1px 6px;border-radius:5px;font-size:13px;font-family:ui-monospace,Menlo,Consolas,monospace}
.alert{display:flex;flex-direction:column;gap:6px;padding:14px 0;border-bottom:1px solid var(--line2);font-size:14px;line-height:1.45}
.alert:last-child{border-bottom:0}
.banner{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:12px;font-size:14px;line-height:1.45}
.banner b{white-space:nowrap}
.banner.warn{background:var(--warn-bg);color:#6B3A00}
.banner.info{background:#EEF2FF;color:#22336B}
.banner.bad{background:var(--bad-bg);color:#7A1E16}
.empty{padding:28px;text-align:center;color:var(--muted);font-size:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #D6D2CA;background:#fff;color:var(--ink);font-size:14px;font-weight:600;min-height:44px;padding:0 16px;border-radius:10px;cursor:pointer}
.btn:hover{background:var(--ground)}
.btn.pri{background:var(--ink);border-color:var(--ink);color:#fff}
.btn.pri:hover{background:#34324D}
.btn:disabled{opacity:.5;cursor:default}
.field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);font-weight:500}
.inp{font-size:15px;color:var(--ink);border:1px solid #D6D2CA;border-radius:10px;min-height:44px;padding:0 12px;background:#fff;width:100%}
.inp:focus{outline:2px solid var(--ink);outline-offset:1px}
.pop{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px}
.pop .field{min-width:150px}
.msg{font-size:14px;margin:0}
.msg.err{color:var(--dn)}.msg.ok{color:var(--up)}
.loading{opacity:.55;transition:opacity .2s}
.kv-row{display:flex;justify-content:space-between;gap:12px;font-size:14px;padding:8px 0;border-bottom:1px solid var(--line2)}
.step{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 14px;border-radius:10px;background:var(--soft);font-size:14px}
/* ---- Товары ---- */
.search-big{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:0 18px;min-height:60px;color:var(--muted)}
.search-big:focus-within{outline:2px solid var(--ink);outline-offset:1px}
.search-big input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:17px;color:var(--ink);min-height:56px}
.cnt{font-size:12px;opacity:.7;margin-left:2px}
.cnt:empty{display:none}
table.rows tbody tr{cursor:pointer}
table.rows tbody tr:hover td{background:var(--soft)}
a.prod{color:var(--ink)}a.prod:hover b,a.prod:hover{color:var(--coral-ink)}
.lnk{color:var(--coral-ink);font-weight:600;white-space:nowrap}
.lnk:hover{text-decoration:underline}
.back{align-self:flex-start;display:inline-flex;align-items:center;min-height:36px;font-size:14px;font-weight:600;color:var(--muted)}
.bigthumb{width:168px;height:168px;border-radius:14px;background:#E7DDF5;flex:none;overflow:hidden;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;color:#4A4760;font-size:12px}
.bigthumb img{width:100%;height:100%;object-fit:cover}
.h2{margin:0;font-size:24px;font-weight:700;letter-spacing:-.015em;line-height:1.25}
.idg{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px 20px;margin-top:16px}
.idl{font-size:12px;color:var(--muted);font-weight:500;display:block}
.idv{font-size:14px;font-weight:600;margin-top:3px;word-break:break-word}
.inp.sm{min-height:36px;font-size:14px;padding:0 10px;max-width:130px}
.btn.sm{min-height:36px;font-size:13px;padding:0 12px}
.pricebox{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--soft)}
.tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line);margin:0 -20px;padding:0 12px;scrollbar-width:thin}
.tab{border:0;background:transparent;font-size:14px;font-weight:600;color:var(--muted);padding:0 12px;min-height:52px;border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;white-space:nowrap}
.tab:hover{color:var(--ink)}
.tab.on{color:var(--ink);border-bottom-color:var(--coral)}
.steps{display:flex;flex-direction:column;gap:4px;margin-top:12px}
.conv{font-size:12px;color:var(--muted);padding:2px 14px}
.meter{display:block;height:8px;border-radius:4px;background:#EFEDE8;overflow:hidden}
.meter>div,.meter>span{display:block;height:100%;border-radius:4px;background:var(--coral)}
.wh{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(60px,1fr) 56px;gap:12px;align-items:center;font-size:14px}
.star{display:grid;grid-template-columns:36px 1fr 44px;gap:10px;align-items:center;font-size:13px}
.rev{border:1px solid var(--line2);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.note{background:#FBF4EF;border-radius:12px;padding:14px 16px;font-size:14px;line-height:1.5}
tr.sub td{background:var(--soft)}
tr.tot td{border-top:2px solid var(--line);font-size:15px}
table.econ td:first-child{white-space:normal}
.geo{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.geo+.geo{padding-top:14px;border-top:1px solid var(--line2)}
.geo-h{display:flex;gap:8px;align-items:center;font-size:12px}
/* ---- Сопоставление ---- */
.sugg{display:flex;flex-direction:column;margin-top:8px}
.sugg-row{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid var(--line2)}
.sugg-pair{display:flex;flex-wrap:wrap;gap:12px;align-items:center;flex:2 1 480px;min-width:0}
.sugg-pair .prod{flex:1 1 200px;min-width:0}
.sugg-plus{font-weight:700;color:var(--muted)}
.sugg-act{display:flex;flex-direction:column;gap:8px;flex:1 1 220px;align-items:flex-start}
.mergebox{display:flex;flex-direction:column;gap:8px;align-items:flex-start;margin-top:16px;padding-top:12px;border-top:1px solid var(--line2);font-size:14px}
.merged{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;width:100%}
#mergepick{width:100%;max-width:640px;display:flex;flex-direction:column;gap:8px}
.mergelist{display:flex;flex-direction:column}
.mergeitem{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line2)}
.mergeitem .prod{min-width:0}
/* ---- Финансы ---- */
.exp{border:0;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;text-align:left;font-weight:inherit}
.exp:hover{color:var(--coral-ink)}
.hint{font-size:12px;color:var(--muted);white-space:normal;max-width:420px;margin-top:2px;line-height:1.35}
table.pnl td:first-child{white-space:normal;min-width:220px}
tr.det td{background:var(--soft);font-size:13px;padding-top:7px;padding-bottom:7px}
tr.det td:first-child{padding-left:28px;white-space:normal}
.btnlink{border:0;background:none;padding:0;font:inherit;font-size:inherit;cursor:pointer}
.wfbox{display:flex;flex-direction:column;gap:6px;margin-top:12px}
.wf{display:grid;grid-template-columns:minmax(120px,1.1fr) 2fr minmax(84px,auto);gap:12px;align-items:center;font-size:13px}
.wf-sub,.wf-total{font-weight:600;border-top:1px solid var(--line2);padding-top:6px}
.wt{position:relative;height:18px;background:var(--soft);border-radius:4px}
.wt>span{position:absolute;top:0;bottom:0;border-radius:3px}
.wv{text-align:right;white-space:nowrap}
.wf-base{background:#4A4760}.wf-exp{background:#E8A598}.wf-pos{background:var(--up)}.wf-neg{background:var(--dn)}
.vstack{display:flex;flex-direction:column;gap:var(--gap)}
.narrow.vstack>.card{height:auto}
.stackbar{display:flex;height:16px;border-radius:8px;overflow:hidden;margin-top:14px;background:#EFEDE8}
.stackbar span{display:block;height:100%}
.dot{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:8px;vertical-align:0}
.meter.big{height:12px;border-radius:6px}
details.more{margin-top:12px;border-top:1px solid var(--line2);padding-top:10px}
details.more summary{cursor:pointer;font-size:14px;font-weight:600;min-height:32px;display:flex;align-items:center}
@media (max-width:640px){table.plist th:nth-child(2),table.plist td:nth-child(2),table.plist th:nth-child(3),table.plist td:nth-child(3),table.plist th:nth-child(5),table.plist td:nth-child(5),table.plist th:nth-child(6),table.plist td:nth-child(6),.xids{display:none}table.plist td,table.plist th{padding:10px 6px}table.plist .prod{min-width:0}table.plist .thumb{display:none}}
@media (max-width:1100px){.grid4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.nav{flex-direction:row;flex-wrap:wrap}.main{padding:20px 16px 40px}.side{gap:16px}.side-foot{display:none}}
@media (max-width:760px){.chart .wd{display:none}}
@media (max-width:520px){table.pnl td:first-child{min-width:150px}.hint{font-size:11px}.wf{grid-template-columns:minmax(96px,1fr) 1.2fr auto;gap:8px}table{font-size:13px}td,th{padding:9px 6px}.tabcard{padding:0 12px 16px!important}.tabcard .tabs{margin:0 -12px}.bigthumb{width:96px;height:96px}.h2{font-size:20px}.search-big input{font-size:16px}:root{--gap:12px}.grid4 .card{padding:14px}.h1{font-size:24px}.kv{font-size:19px}.kd .vs{display:none}.ks{font-size:11px}.chart .val{font-size:10px}}

/* Заказы */
.nw{white-space:nowrap}
.oid{font-size:12px;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all}
a.oid:hover{color:var(--ink);text-decoration:underline}
table.olist td{vertical-align:top}
.omore{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:8px 12px}
.oitems{display:flex;flex-direction:column;margin-top:18px;border-top:1px solid var(--line2)}
.oitem{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--line2)}
.oitem .r{text-align:right}
.tline{list-style:none;margin:12px 0 0;padding:0 0 0 18px;border-left:2px solid var(--line);display:flex;flex-direction:column;gap:14px}
.tline li{position:relative;display:flex;flex-direction:column;gap:2px;font-size:14px}
.tline li::before{content:"";position:absolute;left:-24px;top:4px;width:10px;height:10px;border-radius:50%;background:var(--coral);border:2px solid var(--card)}
.tline li span{font-size:12px}
table.ops tfoot td{border-top:1px solid var(--line);padding-top:10px}
@media (max-width:640px){.ohide{display:none}table.olist .thumb{display:none}table.olist .prod{min-width:140px}}
.h2.oh{word-break:break-all}
