:root{--tg-bg: #ffffff;--tg-text: #000000;--tg-hint: #6b6b70;--tg-link: #2481cc;--tg-button: #2481cc;--tg-button-text: #ffffff;--tg-secondary-bg: #f1f1f4;--danger: #e0533d;--danger-bg: rgba(224, 83, 61, .15);--warn: #cf8a1a;--warn-bg: rgba(224, 162, 61, .18);--zebra: rgba(0, 0, 0, .022);--success: #2e9e5b;--success-bg: rgba(46, 158, 91, .15);--ok: var(--success);--chart-1: #2481cc;--chart-2: #2e9e5b;--chart-3: #e2a13a;--chart-4: #7c5cff;--chart-5: #1d9e8f;--chart-6: #9aa0a6;--grid: rgba(127, 127, 127, .2);--radius: 12px;--hair: rgba(127, 127, 127, .16);--card-shadow: 0 1px 2px rgba(16, 24, 40, .05);--card-shadow-lift: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 22px rgba(16, 24, 40, .07);--chart-1-lite: #4bb3d8}@media(prefers-color-scheme:dark){:root{--tg-bg: #1c1c1e;--tg-text: #f2f2f7;--tg-hint: #98989e;--tg-link: #4aa3ff;--tg-button: #2e7fe0;--tg-button-text: #ffffff;--tg-secondary-bg: #2c2c2e;--warn: #e0a23d;--success: #34b36a;--zebra: rgba(255, 255, 255, .028)}}*{box-sizing:border-box}@font-face{font-family:Inter;src:url(../fonts/inter-latin.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap;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+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;src:url(../fonts/inter-cyrillic.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--tg-bg);color:var(--tg-text);font-size:15px;font-variant-numeric:tabular-nums;-webkit-text-size-adjust:100%;text-size-adjust:100%}.app{max-width:640px;margin:0 auto;padding:calc(12px + env(safe-area-inset-top)) 12px calc(84px + env(safe-area-inset-bottom));min-height:100vh}h1{font-size:20px;margin:8px 0 12px}h2{font-size:17px;margin:16px 0 8px}a{color:var(--tg-link)}.hint{color:var(--tg-hint);font-size:13px}.muted{color:var(--tg-hint)}.card{background:var(--tg-secondary-bg);border:1px solid var(--hair);border-radius:14px;box-shadow:var(--card-shadow);padding:12px;margin-bottom:10px}.card.clickable{cursor:pointer}.card.clickable:active{opacity:.7}.card.clickable:focus-visible,.orders-table tbody tr:focus-visible,.waybills-table tbody tr:focus-visible{outline:2px solid var(--tg-link);outline-offset:-2px}.clickable-row{cursor:pointer}.clickable-row:active{opacity:.6}.row{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.row+.row{margin-top:4px}.title{font-weight:600}@media(max-width:520px){.row.stack-sm{flex-direction:column;align-items:stretch;gap:2px}.row.stack-sm>:last-child{align-self:flex-end}}.badge{display:inline-block;font-size:12px;padding:2px 8px;border-radius:999px;background:var(--tg-bg);color:var(--tg-hint);border:1px solid var(--tg-hint)}.badge.danger{background:var(--danger-bg);color:var(--danger);border-color:var(--danger)}.badge.warn{background:var(--warn-bg);color:var(--warn);border-color:var(--warn)}.badge.success{background:var(--success-bg);color:var(--success);border-color:var(--success)}.owner-card{border:1px solid var(--warn);background:var(--warn-bg)}.card.risk-high{border-left:3px solid var(--danger)}.card.risk-medium{border-left:3px solid var(--warn)}.risk-banner{border-radius:var(--radius);padding:10px 12px;margin-bottom:10px;font-size:14px;line-height:1.35}.risk-banner.high{background:var(--danger-bg);color:var(--danger)}.risk-banner.medium{background:var(--warn-bg);color:var(--warn)}.risk-banner b{font-weight:600}.offline-banner{border-radius:var(--radius);padding:8px 12px;margin-bottom:10px;font-size:13px;font-weight:500;text-align:center;background:var(--warn-bg);color:var(--warn)}button.primary{background:var(--tg-button);color:var(--tg-button-text);border:none;border-radius:var(--radius);padding:12px 16px;font-size:15px;width:100%;cursor:pointer}button.primary:disabled{opacity:.5}button.ghost{background:transparent;color:var(--tg-link);border:none;padding:8px;cursor:pointer;font-size:15px}input,select,textarea{width:100%;padding:10px;border-radius:10px;border:1px solid var(--tg-hint);background:var(--tg-bg);color:var(--tg-text);font-family:inherit;font-size:16px}input[type=checkbox],input[type=radio]{width:auto}.filters{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.filters .full{grid-column:1 / -1}.matrix-filter{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.matrix-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-bottom:6px}.matrix-tile{border-radius:10px;padding:10px;background:var(--tg-secondary-bg);border-left:3px solid transparent;display:flex;flex-direction:column;gap:6px}.matrix-tile-head{display:flex;align-items:center;justify-content:space-between;gap:6px}.matrix-tile-name{overflow-wrap:anywhere}.matrix-tile select{width:100%;padding:6px 8px}.matrix-tile.st-work{background:var(--success-bg);border-left-color:var(--success)}.matrix-tile.st-stopped{border-left-color:var(--tg-hint)}.matrix-tile.st-none{opacity:.72}.matrix-tile.st-dropped{background:var(--warn-bg);border-left-color:var(--warn)}.tabbar{position:fixed;z-index:60;bottom:0;left:0;right:0;display:flex;flex-direction:column;background:var(--tg-bg);border-top:1px solid var(--tg-secondary-bg);padding-bottom:env(safe-area-inset-bottom);touch-action:none}@media(max-width:899.98px){.tabbar.kb-hidden{display:none}}.tabbar-grab{flex:0 0 auto;display:flex;align-items:center;justify-content:center;height:20px;padding:0;background:transparent;border:none;cursor:pointer}.tabbar-grab span{width:40px;height:4px;border-radius:2px;background:var(--tg-hint);opacity:.45}.tabbar-items{display:grid;max-height:60px;overflow:hidden;transition:max-height .28s ease;padding:2px 0 6px}.tabbar.expanded .tabbar-items{max-height:min(52vh,320px);overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior:contain}.tabbar.expanded{touch-action:pan-y}.tabbar-items button{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;background:transparent;border:none;color:var(--tg-hint);font-size:11px;padding:5px 2px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabbar-items button.active{color:var(--tg-link)}.tabbar-items .icon{font-size:19px;display:block;line-height:0}.tabbar-ws{display:none}@media(prefers-reduced-motion:reduce){.tabbar-items{transition:none}}@media(min-width:900px){.tabbar{top:0;bottom:0;left:0;right:auto;width:216px;border-top:none;border-right:1px solid var(--tg-secondary-bg);padding:12px 10px calc(12px + env(safe-area-inset-bottom));overflow-y:auto}.tabbar,.tabbar.expanded{touch-action:auto}.tabbar-grab{display:none}.tabbar-items{display:flex;flex-direction:column;gap:2px;max-height:none!important;overflow:visible;padding:0}.tabbar-items button{flex-direction:row;justify-content:flex-start;gap:12px;padding:10px 12px;border-radius:10px;font-size:14px;order:var(--o, 0)}.tabbar-items button.active{background:var(--tg-secondary-bg)}.tabbar-ws{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px;position:sticky;top:0;z-index:2;background:var(--tg-bg);padding-bottom:8px}.tabbar-ws button:last-child:nth-child(odd){grid-column:1 / -1}.tabbar-ws button{padding:9px 4px;border:1px solid var(--tg-hint);border-radius:10px;background:var(--tg-bg);color:var(--tg-text);font-size:13px;font-weight:500;cursor:pointer;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabbar-ws button.active{background:var(--tg-button);color:var(--tg-button-text);border-color:var(--tg-button)}.app{max-width:1664px;margin:0 auto;padding-left:248px;padding-right:24px;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.seg.ws-switch{display:none}.app .kpi-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.dash-top{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px;align-items:start}.dash-cols{display:flex;gap:12px;align-items:flex-start}.dash-cols>.dash-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:12px}.dash-card{background:var(--tg-secondary-bg);border:1px solid var(--hair);border-radius:14px;box-shadow:var(--card-shadow);padding:2px 14px 12px}.dash-card>h2:first-child{margin-top:12px}}.meter{height:10px;border-radius:999px;background:color-mix(in srgb,var(--tg-hint) 20%,transparent);overflow:hidden}.meter>i{display:block;height:100%;border-radius:999px;background:linear-gradient(180deg,var(--chart-1-lite),var(--chart-1) 62%,color-mix(in srgb,var(--chart-1) 84%,black));box-shadow:inset 0 1px #ffffff73;min-width:3px}.meter>i.good{background:linear-gradient(180deg,color-mix(in srgb,var(--success) 70%,white),var(--success))}.meter>i.warn{background:linear-gradient(180deg,color-mix(in srgb,var(--warn) 70%,white),var(--warn))}.meter>i.bad{background:linear-gradient(180deg,color-mix(in srgb,var(--danger) 70%,white),var(--danger))}@media(prefers-reduced-motion:no-preference){.rise>*{animation:riseIn .6s cubic-bezier(.22,1,.36,1) .04s}.rise>*:nth-child(2){animation-delay:.09s}.rise>*:nth-child(3){animation-delay:.14s}.rise>*:nth-child(4){animation-delay:.19s}.rise>*:nth-child(5){animation-delay:.24s}.rise>*:nth-child(n+6){animation-delay:.29s}@keyframes riseIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}@media(min-width:900px){input,select,textarea,.datefield{max-width:560px}.datefield>input[type=date]{max-width:none}.filters :is(input,select,textarea),.filters .datefield{max-width:none}.filters{max-width:720px}button.primary{width:auto}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:10px;margin-bottom:12px}.card-grid>.card{margin-bottom:0}.wide-cols{columns:340px;column-gap:12px;margin-bottom:12px}.wide-cols>*{break-inside:avoid;-webkit-column-break-inside:avoid}.wide-cols>.wc-sec{margin-bottom:12px}.wide-cols>.wc-sec>h2{margin-top:0}.wide-cols>.wc-sec>.card:last-child,.wide-cols>.wc-sec>p:last-child{margin-bottom:0}.narrow{max-width:760px}.filter-card{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;align-items:end}.filter-card :is(input,select,.datefield,.datefield>input[type=date]){height:44px}.filter-card .seg button{height:44px;min-height:44px;padding:0 12px}.filter-card>*{margin:0;min-width:0}.filter-card .f{display:flex;flex-direction:column;gap:2px;min-width:0}.filter-card .f>:is(input,select,.datefield){width:100%;max-width:none}.filter-card .f-note{grid-column:1 / -1;margin:0}.filter-card .seg{max-width:none;margin:0}.filter-card .row{margin:0;min-width:0}.filter-card .row>*{min-width:0}.filter-card .row.dates{grid-column:span 2}.filter-card .spacer{display:none}.seg:not(.ws-switch){max-width:760px}.orders-table thead th{position:sticky;top:0;z-index:3;background:var(--tg-bg)}.topbar .layout-toggle{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:14px}.topbar .wide-toggle{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:14px;width:auto}.app[data-layout=list] .card-grid{display:block;max-width:760px}.app[data-layout=list] .card-grid>.card{margin-bottom:10px}.app[data-layout=list] .wide-cols{columns:auto;max-width:760px}.app[data-wide="1"]{max-width:none;padding-left:24px}.app[data-wide="1"] .tabbar{display:none}.app[data-wide="1"] .orders-table td.clip{white-space:normal;overflow:visible;overflow-wrap:break-word}.app[data-wide="1"] .orders-table :is(.col-address,.col-outlet,.col-comment),.app[data-wide="1"] .sku-table :is(.col-group,.col-vat,.col-unit),.app[data-wide="1"] .stock-table :is(.col-res,.col-free,.col-transit,.col-exp),.app[data-wide="1"] :is(.receipts-table,.waybills-table) :is(.col-note,.col-doc,.col-wh,.col-date,.col-lines,.col-route),.app[data-wide="1"] .balances-table :is(.col-wh,.col-cost,.col-value),.app[data-wide="1"] .plan-table :is(.col-stock,.col-cover,.col-speed,.col-transit),.app[data-wide="1"] .clients-table :is(.col-year,.col-mgr,.col-chan,.col-dyn,.col-risk),.app[data-wide="1"] .picking-table :is(.col-note,.col-addr,.col-wh,.col-date),.app[data-wide="1"] .payables-table :is(.col-doc,.col-docdate),.app[data-wide="1"] .debts-table :is(.col-mgr,.col-ship,.col-paid),.app[data-wide="1"] .expenses-table :is(.col-note,.col-pay),.app[data-wide="1"] .registry-table :is(.col-unp,.col-doc,.col-vat),.app[data-wide="1"] .statements-table .col-rows,.app[data-wide="1"] .stmt-rows-table :is(.col-purpose,.col-doc),.app[data-wide="1"] .contracts-table :is(.col-signed,.col-unp,.col-limit,.col-delay){display:table-cell}}.sticky-save{position:sticky;bottom:calc(84px + env(safe-area-inset-bottom));z-index:5;background:var(--tg-bg);padding:8px 0;box-shadow:0 -8px 12px -10px #00000040}@media(min-width:900px){.sticky-save{bottom:0}}@media(pointer:coarse){button.ghost,.seg button{min-height:44px}}.linklike{width:auto;padding:0;border:0;background:none;color:var(--tg-link);font:inherit;cursor:pointer;text-align:inherit}.linklike:hover{text-decoration:underline}.note-cell{display:block;cursor:text;min-height:20px;line-height:20px;overflow-wrap:break-word}.note-cell.note-empty{color:var(--tg-hint);opacity:.55}.note-input{width:100%;font-size:16px;padding:2px 6px;margin:-2px 0}.clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.clickable.picker-sel{background:color-mix(in srgb,var(--tg-link) 14%,transparent);border-radius:8px}.call-btn{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap;color:var(--tg-link);background:var(--tg-secondary-bg);padding:4px 10px;border-radius:999px}.call-btn:active{opacity:.7}.ask-examples{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.ask-answer{margin:12px 0 0;white-space:pre-wrap;word-break:break-word;font:inherit;font-size:14px;line-height:1.5;color:var(--tg-text);background:var(--tg-secondary-bg);padding:12px 14px;border-radius:12px}.tag-row{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 12px}.tag{font-size:12px;padding:3px 9px;border-radius:999px;background:var(--tg-secondary-bg);color:var(--tg-hint);white-space:nowrap}.contact-links a{text-decoration:none}.contact-links a+a{margin-left:0}.snooze-row{display:flex;align-items:center;gap:6px;margin-top:6px}.chip{font-size:12px;padding:4px 10px;border-radius:999px;border:1px solid var(--tg-secondary-bg);background:var(--tg-bg);color:var(--tg-link);cursor:pointer;white-space:nowrap}.chip:active{opacity:.6}.chip.active{background:var(--tg-link);color:var(--tg-button-text);border-color:var(--tg-link)}.sku-chip{-moz-appearance:none;appearance:none;-webkit-appearance:none;margin:0;font-family:inherit;display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;line-height:1;padding:6px 12px;min-height:32px;border-radius:999px;border:1px solid var(--tg-link);background:var(--tg-bg);color:var(--tg-link);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent}.sku-chip:active{background:var(--tg-link);color:var(--tg-button-text)}.sku-chip.open{background:var(--tg-secondary-bg)}.sku-chip .caret{font-size:11px;opacity:.8}.price-calc{margin-bottom:16px}.calc-input-row{display:flex;gap:8px;align-items:stretch}.calc-amount{flex:1;min-width:0;font-size:17px;font-weight:600}.calc-cur{margin-bottom:0;flex-shrink:0}.calc-cur button{padding:8px 16px;font-weight:600}.calc-rate{margin:8px 0 0}.calc-tiers{display:flex;flex-direction:column;gap:6px;margin-top:12px}.ct-head{display:flex;justify-content:flex-end;gap:10px;padding:0 12px}.ct-head span{width:88px;text-align:right;font-size:12px;color:var(--tg-hint)}.calc-tier{position:relative;overflow:hidden;display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:11px 12px;border-radius:12px;background:var(--tg-secondary-bg);color:var(--tg-text);-webkit-tap-highlight-color:transparent}.calc-tier.ct-off{opacity:.7}.ct-bar{position:absolute;left:0;top:0;bottom:0;opacity:.16;z-index:0;transition:width .22s ease}.ct-dot{position:relative;z-index:1;width:10px;height:10px;border-radius:50%;flex-shrink:0}.ct-name{position:relative;z-index:1;font-weight:600;display:flex;align-items:baseline;gap:8px;min-width:0;flex:1}.ct-price{position:relative;z-index:1;flex-shrink:0;width:88px;text-align:right;font-weight:700;font-size:16px;white-space:nowrap;background:none;border:none;padding:0;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.ct-price:disabled{cursor:default}.ct-price:not(:disabled):active{opacity:.6}.ct-net{font-weight:600;color:var(--tg-hint)}.note-kinds{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.activity-feed{padding:0;overflow:hidden}.act-row{display:flex;gap:10px;padding:10px 12px;border-bottom:.5px solid var(--tg-bg)}.act-row:last-child{border-bottom:none}.act-ic{width:24px;text-align:center;font-size:16px;flex-shrink:0;line-height:1.4}.act-body{flex:1;min-width:0}.act-title{overflow-wrap:anywhere}.act-meta{font-size:12px;color:var(--tg-hint);margin-top:2px}.today.card{padding:0;overflow:hidden}.today-head{padding:10px 14px 8px;font-weight:600;font-size:15px;border-bottom:.5px solid var(--tg-bg)}.today-row{display:flex;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;border-bottom:.5px solid var(--tg-bg)}.today-row:last-child{border-bottom:none}.today-row:active{opacity:.6}.today-ic{width:26px;text-align:center;font-size:17px;flex-shrink:0}.today-label{flex:1;font-size:15px}.today-count{font-weight:600;white-space:nowrap;font-size:14px}.today-count.danger{color:var(--danger)}.today-count.warn{color:var(--warn)}.today-count.link{color:var(--tg-link)}.today-chev{color:var(--tg-hint);font-size:18px}.today-ok{color:var(--tg-hint);font-size:13px;margin:0 0 12px;padding:2px}.pdz-table{width:100%;border-collapse:collapse;font-size:13px}.pdz-table th,.pdz-table td{padding:5px 8px;text-align:right;white-space:nowrap}.pdz-table th:first-child,.pdz-table td:first-child{text-align:left;color:var(--tg-hint);font-weight:400}.pdz-table th{font-weight:500;color:var(--tg-hint);border-bottom:.5px solid var(--tg-bg)}.pdz-table tr.pdz-avg td{border-top:.5px solid var(--tg-bg)}.pdz-table tr.pdz-lim td{font-size:12px;color:var(--tg-hint)}.toast-host{position:fixed;left:12px;right:12px;bottom:calc(80px + env(safe-area-inset-bottom));z-index:80;display:flex;flex-direction:column;gap:8px;pointer-events:none;max-width:616px;margin:0 auto}.toast{pointer-events:auto;background:#2c2c2e;color:#fff;border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.35;box-shadow:0 4px 16px #00000047;display:flex;align-items:center;gap:12px;animation:toastIn .18s ease}.toast.error{background:#c0392b;color:#fff}.toast-msg{flex:1;min-width:0;overflow-wrap:anywhere}.toast-actions{display:flex;gap:6px;flex-shrink:0}.toast-btn{background:#ffffff29;color:#fff;border:none;border-radius:8px;padding:7px 12px;font-size:13px;cursor:pointer;white-space:nowrap}.toast-btn.primary{background:var(--tg-button)}.toast-btn.danger{background:var(--danger)}@keyframes toastIn{0%{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}.devbar{background:#fff6d6;color:#6b5700;border-radius:10px;padding:8px;margin-bottom:12px;font-size:13px;display:flex;align-items:center;gap:8px}.devbar select{width:auto;flex:1}.topbar{display:flex;justify-content:flex-end;align-items:center;gap:4px;margin-bottom:6px}.icon-btn{font-size:20px;padding:4px 8px;line-height:1}.view-all-btn{width:auto;white-space:nowrap;font-size:14px;padding:4px 8px}.view-all-btn.on{background:var(--warn);color:#fff;border-color:var(--warn);font-weight:600}.screen-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}.screen-head h1{margin:0}.screen-head>:last-child:not(h1):not(.info-btn){margin-left:auto}.info-btn{width:24px;height:24px;min-height:0;flex:0 0 auto;padding:0;border-radius:50%;border:1px solid var(--tg-hint);background:none;color:var(--tg-hint);font-size:14px;font-style:italic;font-weight:600;line-height:1;cursor:pointer}.info-btn:hover,.info-btn[aria-expanded=true]{color:var(--tg-link);border-color:var(--tg-link)}.screen-info{margin:6px 0 10px;max-width:900px}.totals-inline{display:flex;flex-wrap:wrap;gap:6px 28px}.totals-inline .t{display:flex;align-items:baseline;gap:8px}.totals-inline .t b{font-variant-numeric:tabular-nums}.create-btn{width:auto;background:var(--tg-button);color:var(--tg-button-text);border-color:var(--tg-button);font-weight:600}.create-btn:active{opacity:.85}label.create-btn{padding:10px 14px;border:1px solid var(--tg-button);border-radius:12px}.pill{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap;background:var(--tg-secondary-bg);background:color-mix(in srgb,currentColor 13%,transparent)}.layout-toggle,.wide-toggle{display:none}.wide-toggle.on{background:var(--tg-link);color:#fff;border-color:var(--tg-link);font-weight:600}.period-sticky{position:sticky;top:env(safe-area-inset-top,0px);z-index:25;background:var(--tg-bg);margin:0 -12px 8px;padding:6px 12px 8px;box-shadow:0 2px 6px #0000000f}.period-sticky .seg,.period-sticky .filters{margin-bottom:0}.period-sticky .seg{margin-bottom:8px}.seg{display:flex;gap:6px;margin-bottom:10px;flex-wrap:wrap}.ws-switch{margin:2px 0 12px;display:grid;grid-template-columns:.82fr 1.18fr;gap:6px}.ws-switch button:last-child:nth-child(odd){grid-column:1 / -1}.ws-switch button{font-weight:500;padding:10px 6px;font-size:clamp(12.5px,3.5vw,14px);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seg button{flex:1;padding:8px;border:1px solid var(--tg-hint);background:var(--tg-bg);color:var(--tg-text);border-radius:10px;font-size:14px;cursor:pointer}.seg button.active{background:var(--tg-button);color:var(--tg-button-text);border-color:var(--tg-button)}.kpi-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}.kpi{margin-bottom:0}.kpi-spark{margin-top:4px}.kpi-value{font-size:20px;font-weight:700;margin-top:4px}.kpi-grid.bento>.kpi-hero{grid-column:span 2}.kpi-grid.bento>.kpi-hero .kpi-value{font-size:30px;letter-spacing:-.02em}@media(min-width:900px){.app .kpi-grid.bento{grid-template-columns:repeat(4,1fr)}.app .kpi-grid.bento>.kpi-hero{grid-column:span 2;grid-row:span 2}.app .kpi-grid.bento>.kpi-hero .kpi-value{font-size:34px}.app .kpi-grid.bento>.kpi-hero{display:flex;flex-direction:column}.app .kpi-grid.bento>.kpi-hero .kpi-spark{margin-top:auto}}.ico{width:1em;height:1em;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button>.ico{margin-right:6px}button>.ico:only-child{margin-right:0}button>.ico:last-child:not(:only-child){margin-right:0;margin-left:6px}:is(h1,h2,h3,span,button,td,div)>.ico{vertical-align:-.14em}:is(span,div)>.ico:last-child:not(:only-child){margin-left:5px}.pick-dot{width:18px;height:18px;border-radius:50%;flex-shrink:0;border:2px solid var(--tg-hint);display:inline-block;vertical-align:-.2em}.pick-dot.on{border-color:var(--tg-link);background:var(--tg-link);box-shadow:inset 0 0 0 3px var(--tg-bg)}.legend-box{display:inline-block;width:10px;height:10px;border-radius:2px;vertical-align:0}h1>.ico{width:.88em;height:.88em;margin-right:9px;vertical-align:-.06em}.cmdk-icon .ico{width:19px;height:19px}.kpi-ico{width:22px;height:22px;border-radius:7px;display:inline-grid;place-items:center;flex-shrink:0;background:color-mix(in srgb,var(--chart-1) 14%,transparent);color:var(--chart-1)}.kpi-ico.good{background:var(--success-bg);color:var(--success)}.kpi-ico.bad{background:var(--danger-bg);color:var(--danger)}.kpi-ico.warn{background:var(--warn-bg);color:var(--warn)}.kpi-ico svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.kpi .hint{display:flex;align-items:center;gap:7px}@media(max-width:720px){.kpi svg[role=img]{width:86px;height:86px}}.plan-progress .pp-track{position:relative;height:14px;border-radius:7px;background:var(--tg-bg);overflow:hidden}.plan-progress .pp-fact{position:absolute;left:0;top:0;bottom:0;background:var(--chart-1)}.plan-progress .pp-forecast{position:absolute;top:0;bottom:0;background:var(--chart-1);opacity:.38}.plan-progress .pp-plan{position:absolute;top:0;bottom:0;width:2px;background:var(--warn);transform:translate(-1px)}.center{text-align:center;padding:24px}.breakdown{display:grid;grid-template-columns:1fr auto auto;column-gap:12px}.breakdown.has-qty{grid-template-columns:1fr auto auto auto}.breakdown .bd-item{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;align-items:baseline;width:100%;padding:0;border:none;background:none;color:inherit;font:inherit;text-align:left}button.bd-item{cursor:pointer;-webkit-tap-highlight-color:transparent}button.bd-item:active{opacity:.6}.bd-chev{color:var(--tg-hint);margin-left:6px}.breakdown .bd-name{min-width:0;overflow-wrap:anywhere}.breakdown .bd-rev,.breakdown .bd-pct,.breakdown .bd-qty{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.breakdown .bd-pct{min-width:34px}.breakdown .bd-bar{grid-column:1 / -1;height:8px;background:color-mix(in srgb,var(--tg-hint) 18%,transparent);border-radius:999px;margin:3px 0 10px;overflow:hidden}.breakdown .bd-bar>div{height:100%;border-radius:999px;min-width:3px;background:linear-gradient(180deg,var(--chart-1-lite),var(--chart-1) 62%,color-mix(in srgb,var(--chart-1) 84%,black));box-shadow:inset 0 1px #ffffff73}.empty{text-align:center;padding:40px 16px}.empty-icon{font-size:42px;line-height:1;margin-bottom:10px;opacity:.45}.empty-icon .ico{stroke-width:1.4}.empty-title{font-size:16px;font-weight:600;color:var(--tg-text);margin-bottom:4px}.empty-hint{font-size:13px;color:var(--tg-hint);max-width:320px;margin:0 auto;line-height:1.4}.skeleton{display:inline-block;background:var(--tg-secondary-bg);border-radius:6px;animation:skpulse 1.2s ease-in-out infinite}@keyframes skpulse{0%,to{opacity:1}50%{opacity:.45}}.error{color:var(--danger)}.spacer{height:8px}.scroll-top{position:fixed;right:16px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:45;background:var(--tg-bg);color:var(--tg-link);border:1px solid var(--tg-secondary-bg);border-radius:999px;padding:9px 16px;font-weight:600;font-size:14px;box-shadow:0 3px 10px #0000002e;cursor:pointer;opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}.scroll-top.show{opacity:1;transform:none;pointer-events:auto}.scroll-top:active{background:var(--tg-secondary-bg)}@media(prefers-reduced-motion:reduce){.scroll-top{transition:opacity .18s ease;transform:none}}@media(min-width:900px){.scroll-top{bottom:24px;right:24px}}.ptr{position:fixed;top:env(safe-area-inset-top,0px);left:0;right:0;height:44px;display:flex;align-items:center;justify-content:center;gap:6px;z-index:35;pointer-events:none;background:var(--tg-bg);color:var(--tg-hint);font-size:13px;box-shadow:0 2px 6px #00000014;transition:transform .16s ease,opacity .16s ease}.ptr-arrow{font-size:16px}.ptr.spin .ptr-arrow{animation:ptrspin .8s linear infinite;display:inline-block}@keyframes ptrspin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.back-bar{position:sticky;top:env(safe-area-inset-top,0px);z-index:30;margin:0 -12px 8px;padding:6px 12px;background:var(--tg-bg)}button.back-btn{margin:0;padding:8px 14px;background:var(--tg-bg);color:var(--tg-link);border:1px solid var(--tg-secondary-bg);border-radius:18px;font-weight:600;font-size:14px;box-shadow:0 2px 8px #00000026;cursor:pointer;pointer-events:auto}.orders-table{width:100%;border-collapse:collapse;font-size:14px;table-layout:fixed}.orders-table td:is(.num,.date,.sum,.lines,.qty,.adj,.cap,.stops,.status),.orders-table td.tnum{font-variant-numeric:tabular-nums}.orders-table tbody tr:nth-child(odd of:not(.row-details):not(.detail):not(.sub)),.orders-table tbody tr:nth-child(odd of:not(.row-details):not(.detail):not(.sub))+tr.sub{background:var(--zebra)}.orders-table tbody tr:is(.row-details,.detail){background:var(--tg-secondary-bg)}.orders-table th.c-num{width:96px}.orders-table th.c-date{width:104px}.orders-table th.c-legal{width:20%}.orders-table th.c-outlet{width:16%}.orders-table th.c-address{width:20%}.orders-table th.c-comment{width:18%}.orders-table th.c-sum{width:136px}.orders-table td.sum{text-align:right;white-space:nowrap;font-weight:600}.orders-table th.c-status{width:104px}.orders-table th.c-wh{width:11%}.orders-table th .th-btn{width:auto;margin:0;padding:0;border:0;background:none;cursor:pointer;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;white-space:normal;max-width:100%;overflow-wrap:anywhere}.orders-table th .th-btn:hover{color:var(--tg-link)}.orders-table th,.orders-table td{padding:7px 8px;text-align:left;vertical-align:top}.orders-table th{font-weight:500;color:var(--tg-hint);font-size:12px;text-transform:uppercase;letter-spacing:.03em;border-bottom:1px solid var(--tg-bg);white-space:nowrap}.orders-table tbody tr{border-bottom:.5px solid var(--tg-bg);cursor:pointer}.orders-table tbody tr:hover{background:var(--tg-bg)}.orders-table td.num,.orders-table td.date,.orders-table td.status{white-space:nowrap}.orders-table td.status{text-align:right;font-weight:600}.orders-table td.clip{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lines-table td.name .line-swap{width:auto;flex:none;margin:0;padding:2px 6px}@media(max-width:1300px){.orders-table .col-address{display:none}}@media(max-width:1100px){.orders-table .col-outlet{display:none}}.waybills-table th.c-doc{width:140px}.waybills-table th.c-date{width:92px}.waybills-table th.c-legal{width:24%}.waybills-table th.c-outlet{width:18%}.waybills-table th.c-route{width:118px}.waybills-table th.c-sum{width:106px}.waybills-table th.c-status{width:144px}.waybills-table .only-narrow{display:none}.waybills-table td.sum .hint{font-weight:400}.waybills-table td.num .wb-no{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.waybills-table td.num,.waybills-table td.status{white-space:normal}.sku-table th.c-art{width:104px}.sku-table th.c-group{width:15%}.sku-table th.c-unit{width:56px}.sku-table th.c-vat{width:78px}.sku-table th.c-reg{width:84px}.sku-table td.reg{text-align:center}.sku-table th.c-stock{width:116px}.sku-table td.art,.sku-table td.unit,.sku-table td.vat,.sku-table td.stock{white-space:nowrap}.orders-table th{overflow:hidden;text-overflow:ellipsis}.sku-table td.stock{text-align:right;font-weight:600}.sku-table td.art .hint{font-weight:400}.sku-table tbody tr.off td.art,.sku-table tbody tr.off td.name{opacity:.55}.sku-table td.name{white-space:normal;overflow-wrap:break-word}@media(max-width:1000px){.sku-table .col-reg{display:none}}@media(max-width:900px){.sku-table .col-group{display:none}}@media(max-width:700px){.sku-table .col-vat,.sku-table .col-unit{display:none}.sku-table th.c-art{width:76px}.sku-table th.c-stock{width:88px}.sku-table{font-size:13px}.sku-table th,.sku-table td{padding:6px 4px}}.orders-table.price-table th.c-art{width:104px}.orders-table.price-table th.c-name{width:100%}.orders-table.price-table th.c-reg{width:92px}.orders-table.price-table th.c-stock{width:96px}.orders-table.price-table th.c-vat{width:72px}.orders-table.price-table th.c-cost{width:92px}.orders-table.price-table th.c-calc{width:96px}.orders-table.price-table th.c-margin{width:78px}.orders-table.price-table th.c-price{width:112px}.orders-table.price-table th.c-gross{width:96px}.orders-table.price-table th.c-act{width:44px}.price-table td:is(.sum,.price,.qty){text-align:right;white-space:nowrap}.price-table td:is(.sum,.price) .hint{font-weight:400}.price-table td.art{white-space:nowrap}.price-table td.reg,.price-table td.act{text-align:center}.price-table td.name{white-space:normal;overflow-wrap:break-word}.price-table td.price input{width:100%;padding:4px 6px;text-align:right}.price-table .only-narrow{display:none}.price-table tbody tr.norow{cursor:default}.price-table tbody tr.norow:hover{background:transparent}@media(max-width:1400px){.price-table .col-cost{display:none}}@media(max-width:1250px){.price-table .col-calc{display:none}}@media(max-width:1100px){.price-table .col-margin{display:none}}@media(max-width:1000px){.price-table .col-reg{display:none}}@media(max-width:900px){.price-table .col-vat{display:none}}@media(max-width:820px){.price-table .col-gross{display:none}}@media(max-width:700px){.price-table .col-stock{display:none}.price-table .only-narrow{display:block}.orders-table.price-table th.c-art{width:68px}.orders-table.price-table th.c-price{width:92px}.orders-table.price-table th.c-act{width:36px}.price-table{font-size:13px}.price-table th,.price-table td{padding:6px 4px}}.orders-table.recalc-table th.c-art{width:104px}.orders-table.recalc-table th.c-name{width:100%}.orders-table.recalc-table th.c-cost,.orders-table.recalc-table th.c-old{width:104px}.orders-table.recalc-table th.c-new,.orders-table.recalc-table th.c-delta{width:112px}.recalc-table td:is(.sum,.delta){text-align:right;white-space:nowrap}.recalc-table td.art{white-space:nowrap}.recalc-table td.name{white-space:normal;overflow-wrap:break-word}.recalc-table .only-narrow{display:none}@media(max-width:1050px){.recalc-table .col-cost{display:none}}@media(max-width:700px){.recalc-table .col-old{display:none}.recalc-table .only-narrow{display:block}.orders-table.recalc-table th.c-art{width:68px}.orders-table.recalc-table th.c-new{width:88px}.orders-table.recalc-table th.c-delta{width:84px}.recalc-table{font-size:13px}.recalc-table th,.recalc-table td{padding:6px 4px}}.orders-table.revalue-table th.c-doc{width:168px}.orders-table.revalue-table th.c-date{width:104px}.orders-table.revalue-table th.c-art{width:96px}.orders-table.revalue-table th.c-name{width:100%}.orders-table.revalue-table th.c-qty{width:96px}.orders-table.revalue-table th.c-old,.orders-table.revalue-table th.c-new{width:100px}.orders-table.revalue-table th.c-delta{width:104px}.revalue-table td:is(.doc,.date,.art){white-space:nowrap}.revalue-table td:is(.sum,.qty,.delta){text-align:right;white-space:nowrap}.revalue-table td.name{white-space:normal;overflow-wrap:break-word}.revalue-table .only-narrow{display:none}@media(max-width:1300px){.revalue-table .col-qty{display:none}}@media(max-width:1150px){.revalue-table .col-art{display:none}}@media(max-width:1000px){.revalue-table .col-date{display:none}}@media(max-width:820px){.revalue-table .col-old,.revalue-table .col-new{display:none}.revalue-table .only-narrow{display:block}}@media(max-width:700px){.orders-table.revalue-table th.c-doc{width:116px}.orders-table.revalue-table th.c-delta{width:92px}.revalue-table{font-size:13px}.revalue-table th,.revalue-table td{padding:6px 4px}}.orders-table.returns-table th.c-num{width:108px}.orders-table.returns-table th.c-date{width:104px}.orders-table.returns-table th.c-kind{width:148px}.orders-table.returns-table th.c-name{width:100%}.orders-table.returns-table th.c-basis{width:128px}.orders-table.returns-table th.c-wh{width:148px}.orders-table.returns-table th.c-lines{width:84px}.orders-table.returns-table th.c-sum{width:116px}.returns-table td:is(.num,.date){white-space:nowrap}.returns-table td.lines{text-align:center}.returns-table td.sum{text-align:right;white-space:nowrap;font-weight:600}.returns-table td.name{white-space:normal;overflow-wrap:break-word}.returns-table .only-narrow{display:none}@media(max-width:1300px){.returns-table .col-wh{display:none}}@media(max-width:1100px){.returns-table .col-lines{display:none}}@media(max-width:1000px){.returns-table .col-kind{display:none}}@media(max-width:820px){.returns-table .col-basis,.returns-table .col-date{display:none}.returns-table .only-narrow{display:block}}@media(max-width:700px){.orders-table.returns-table th.c-num{width:92px}.orders-table.returns-table th.c-sum{width:96px}.returns-table{font-size:13px}.returns-table th,.returns-table td{padding:6px 4px}}.orders-table.audit-table th.c-when{width:148px}.orders-table.audit-table th.c-who{width:168px}.orders-table.audit-table th.c-entity{width:152px}.orders-table.audit-table th.c-summary{width:100%}.orders-table.audit-table th.c-amount{width:108px}.orders-table.audit-table th.c-auth{width:116px}.orders-table.audit-table th.c-act{width:44px}.audit-table td.when{white-space:nowrap}.audit-table td.sum{text-align:right;white-space:nowrap}.audit-table td.act{text-align:center}.audit-table td:is(.summary,.who){white-space:normal;overflow-wrap:break-word}.audit-table .only-narrow{display:none}@media(max-width:1400px){.audit-table .col-auth{display:none}}@media(max-width:1250px){.audit-table .col-amount{display:none}}@media(max-width:1050px){.audit-table .col-entity{display:none}}@media(max-width:820px){.audit-table .col-who{display:none}.audit-table .only-narrow{display:block}}@media(max-width:700px){.orders-table.audit-table th.c-when{width:116px}.orders-table.audit-table th.c-act{width:36px}.audit-table{font-size:13px}.audit-table th,.audit-table td{padding:6px 4px}}.orders-table.exceptions-table th.c-art{width:96px}.orders-table.exceptions-table th.c-name{width:100%}.orders-table.exceptions-table th.c-rule{width:170px}.orders-table.exceptions-table th.c-note{width:180px}.orders-table.exceptions-table th.c-act{width:44px}.exceptions-table td.art,.exceptions-table td.rule{white-space:nowrap}.exceptions-table td.act{text-align:center}.exceptions-table td.name{white-space:normal;overflow-wrap:break-word}.exceptions-table .only-narrow{display:none}@media(max-width:1100px){.exceptions-table .col-note{display:none}.exceptions-table .only-narrow{display:block}}@media(max-width:700px){.orders-table.exceptions-table th.c-art{width:68px}.orders-table.exceptions-table th.c-rule{width:128px}.exceptions-table{font-size:13px}.exceptions-table th,.exceptions-table td{padding:6px 4px}}.orders-table:is(.overlimit-table,.orphan-table) th.c-art{width:96px}.orders-table:is(.overlimit-table,.orphan-table) th.c-name{width:100%}.orders-table:is(.overlimit-table,.orphan-table) th.c-type{width:116px}.orders-table:is(.overlimit-table,.orphan-table) th.c-price{width:100px}.orders-table.overlimit-table th.c-max{width:100px}.orders-table.overlimit-table th.c-imp,.orders-table.overlimit-table th.c-rest{width:92px}:is(.overlimit-table,.orphan-table) td.sum{text-align:right;white-space:nowrap}:is(.overlimit-table,.orphan-table) td.art{white-space:nowrap}:is(.overlimit-table,.orphan-table) td.name{white-space:normal;overflow-wrap:break-word}:is(.overlimit-table,.orphan-table) .only-narrow{display:none}@media(max-width:1100px){.overlimit-table .col-imp,.overlimit-table .col-rest{display:none}}@media(max-width:820px){:is(.overlimit-table,.orphan-table) .col-type{display:none}:is(.overlimit-table,.orphan-table) .only-narrow{display:block}:is(.overlimit-table,.orphan-table){font-size:13px}:is(.overlimit-table,.orphan-table) th,:is(.overlimit-table,.orphan-table) td{padding:6px 4px}}.receipts-table th.c-num{width:104px}.receipts-table th.c-date{width:100px}.receipts-table th.c-wh{width:12%}.receipts-table th.c-doc{width:13%}.receipts-table th.c-lines{width:84px}.receipts-table th.c-note{width:15%}.orders-table td.note{white-space:normal;vertical-align:middle}.waybills-table th.c-note{width:14%}@media(max-width:1100px){.receipts-table .col-note,.waybills-table .col-note{display:none}}.receipts-table th.c-sum{width:168px}.receipts-table th:is(.c-lines,.c-sum),.receipts-table td:is(.lines,.sum){text-align:right}.receipts-table td.sum{font-weight:600;white-space:nowrap}.receipts-table td.sum .hint{white-space:normal}.receipts-table td.sum .hint,.receipts-table td.num .hint{font-weight:400}.receipts-table td.lines{white-space:nowrap}.orders-table tbody tr.row-details{cursor:default;background:var(--tg-secondary-bg)}.orders-table tbody tr.row-details:hover{background:var(--tg-secondary-bg)}.orders-table tbody tr.row-details>td{padding:8px 10px;white-space:normal}.receipts-table td.num .only-narrow{display:none}@media(max-width:1000px){.receipts-table .col-doc{display:none}}@media(max-width:820px){.receipts-table .col-wh,.receipts-table .col-lines,.receipts-table .col-date{display:none}.receipts-table td.num .only-narrow{display:block}.receipts-table th.c-num{width:92px}.receipts-table th.c-sum{width:120px}.receipts-table td.sum .hint{white-space:normal}}:is(.transfers-table,.inventories-table,.writeoffs-table,.supret-table) th.c-num{width:104px}:is(.transfers-table,.inventories-table,.writeoffs-table,.supret-table) th.c-date{width:100px}:is(.transfers-table,.inventories-table,.writeoffs-table,.supret-table) th.c-lines{width:82px}:is(.transfers-table,.inventories-table,.writeoffs-table,.supret-table) th.c-act{width:44px}:is(.transfers-table,.inventories-table,.writeoffs-table,.supret-table) th:is(.c-lines,.c-sum,.c-adj),:is(.transfers-table,.inventories-table,.writeoffs-table,.supret-table) td:is(.lines,.sum,.adj){text-align:right}:is(.transfers-table,.inventories-table,.writeoffs-table,.supret-table) td:is(.lines,.sum,.adj){white-space:nowrap}:is(.transfers-table,.inventories-table,.writeoffs-table,.supret-table) td.sum{font-weight:600}:is(.transfers-table,.inventories-table,.writeoffs-table,.supret-table) td.act{text-align:right}:is(.transfers-table,.inventories-table,.writeoffs-table,.supret-table) td.num .only-narrow{display:none}.transfers-table th.c-wh-from{width:30%}.inventories-table th.c-adj{width:140px}.writeoffs-table th.c-wh{width:16%}.writeoffs-table th.c-sum{width:120px}.supret-table th.c-wh{width:13%}.supret-table th.c-reason{width:18%}.supret-table th.c-basis,.supret-table th.c-sum{width:118px}.supret-table td.basis{white-space:nowrap}@media(max-width:1200px){.supret-table .col-wh{display:none}}@media(max-width:1000px){.writeoffs-table .col-wh,.supret-table .col-basis{display:none}}@media(max-width:820px){:is(.transfers-table,.inventories-table,.writeoffs-table,.supret-table) .col-date{display:none}:is(.transfers-table,.inventories-table,.writeoffs-table,.supret-table) .col-lines{display:none}:is(.transfers-table,.inventories-table,.writeoffs-table,.supret-table) td.num .only-narrow{display:block}:is(.transfers-table,.inventories-table,.writeoffs-table,.supret-table) th.c-num{width:92px}:is(.transfers-table,.inventories-table,.writeoffs-table,.supret-table) th.c-act{width:32px}:is(.writeoffs-table,.supret-table) th.c-sum{width:108px}.inventories-table th.c-adj{width:104px}}.routes-table th.c-num{width:104px}.routes-table th.c-date{width:100px}.routes-table th.c-vehicle{width:22%}.routes-table th.c-stops{width:74px}.routes-table th.c-cap{width:150px}.routes-table th.c-status{width:128px}.routes-table th:is(.c-stops,.c-cap),.routes-table td:is(.stops,.cap){text-align:right}.routes-table th.c-status,.routes-table td.status{text-align:right}.routes-table td:is(.stops,.cap){white-space:nowrap}.routes-table td.num .only-narrow{display:none}@media(max-width:1100px){.routes-table .col-cap{display:none}}@media(max-width:900px){.routes-table .col-vehicle{display:none}}@media(max-width:820px){.routes-table .col-date,.routes-table .col-stops{display:none}.routes-table td.num .only-narrow{display:block}.routes-table th.c-num{width:84px}.routes-table th.c-status{width:106px}.routes-table{font-size:13px}.routes-table th,.routes-table td{padding:6px 4px}.routes-table td.status{white-space:normal}}@media(max-width:700px){.orders-table:is(.receipts-table,.transfers-table,.inventories-table,.writeoffs-table,.supret-table) th.c-num{width:92px}.orders-table.routes-table th.c-num{width:84px}.orders-table.routes-table th.c-status{width:106px}}.stock-table th.c-art{width:104px}.stock-table th.c-qty,.stock-table th.c-res{width:92px}.stock-table th.c-free{width:96px}.stock-table th.c-transit{width:84px}.stock-table th.c-exp{width:98px}.stock-table td.art,.stock-table td.exp{white-space:nowrap}.stock-table td.sum{text-align:right;white-space:nowrap;font-weight:600}.stock-table td.sum .hint{font-weight:400}.stock-table td.name{white-space:normal;overflow-wrap:break-word}@media(max-width:1200px){.stock-table .col-exp{display:none}}@media(max-width:1000px){.stock-table .col-transit{display:none}}@media(max-width:760px){.stock-table .col-res,.stock-table .col-free{display:none}.stock-table th.c-art{width:84px}.stock-table th.c-qty{width:92px}}.plan-table th.c-art,.plan-table th.c-vel,.plan-table th.c-stock{width:92px}.plan-table th.c-transit{width:82px}.plan-table th.c-cov{width:88px}.plan-table th.c-spark{width:150px}.plan-table th.c-status{width:138px}.plan-table th.c-act{width:40px}.plan-table td.art{white-space:nowrap}.plan-table td.sum{text-align:right;white-space:nowrap;font-weight:600}.plan-table td.sum .hint{font-weight:400}.plan-table td.name{white-space:normal;overflow-wrap:break-word}.plan-table td.spark{line-height:0}.plan-table td.act{text-align:right}.plan-table td.act button{width:auto;margin:0;padding:2px 8px;font-size:16px;line-height:1.1}.plan-table tbody tr.off td.art,.plan-table tbody tr.off td.name,.plan-table tbody tr.off td.sum{opacity:.55}.plan-table tbody tr.open{background:var(--tg-bg)}.plan-table tbody tr.detail{cursor:default}.plan-table tbody tr.detail:hover{background:transparent}@media(max-width:1300px){.plan-table .col-spark{display:none}}@media(max-width:1050px){.plan-table .col-transit{display:none}}@media(max-width:820px){.plan-table .col-vel{display:none}.plan-table th.c-art{width:78px}.plan-table th.c-stock{width:84px}.plan-table th.c-cov{width:78px}.plan-table th.c-status{width:104px}.plan-table{font-size:13px}.plan-table th,.plan-table td{padding:6px 4px}}@media(max-width:620px){.plan-table .c-stock,.plan-table td.sum,.plan-table .col-cov{display:none}.plan-table th.c-art{width:74px}.plan-table th.c-status{width:104px}.plan-table th.c-act{width:34px}.plan-table td.status span{white-space:normal;display:inline-block}}.contracts-table th.c-num{width:132px}.contracts-table th.c-party{width:100%}.contracts-table th.c-unp{width:112px}.contracts-table th.c-signed{width:108px}.contracts-table th.c-until{width:116px}.contracts-table th.c-delay{width:100px}.contracts-table th.c-limit{width:116px}.contracts-table th.c-kind{width:108px}.contracts-table td.party,.contracts-table td.num{white-space:normal;overflow-wrap:break-word}.contracts-table td.num .hint{margin-left:6px;white-space:nowrap}.contracts-table td.sum,.contracts-table td.num{font-variant-numeric:tabular-nums}.contracts-table td.sum{text-align:right;white-space:nowrap}.contracts-table tbody tr.off td{opacity:.6}.contracts-table .only-narrow{display:none}@media(max-width:1400px){.contracts-table .col-signed{display:none}}@media(max-width:1200px){.contracts-table .col-unp{display:none}}@media(max-width:1000px){.contracts-table .col-limit{display:none}}@media(max-width:820px){.contracts-table .col-delay{display:none}}@media(max-width:620px){.contracts-table .only-narrow{display:block}.contracts-table .col-until,.contracts-table .col-kind{display:none}.contracts-table th.c-num{width:92px}.contracts-table{font-size:13px}.contracts-table th,.contracts-table td{padding:6px 4px}}.statements-table th.c-file{width:100%}.statements-table th.c-period{width:190px}.statements-table th.c-rows{width:100px}.statements-table th.c-state{width:180px}.statements-table th.c-in{width:140px}.statements-table td.file{white-space:normal;overflow-wrap:break-word}.statements-table td.sum,.statements-table td.num{text-align:right;white-space:nowrap;font-weight:600}.statements-table .only-narrow{display:none}@media(max-width:1000px){.statements-table .col-rows{display:none}}@media(max-width:620px){.statements-table .col-period{display:none}.statements-table .only-narrow{display:block}.statements-table{font-size:13px}.statements-table th,.statements-table td{padding:6px 4px}}.stmt-rows-table th.c-party{width:100%}.stmt-rows-table th.c-date{width:104px}.stmt-rows-table th.c-doc{width:110px}.stmt-rows-table th.c-purpose{width:250px}.stmt-rows-table th.c-amount{width:130px}.stmt-rows-table th.c-state{width:230px}.stmt-rows-table td.party{white-space:normal;overflow-wrap:break-word}.stmt-rows-table td.sum{text-align:right;white-space:nowrap;font-weight:600}.stmt-rows-table td.note,.stmt-rows-table td.state{white-space:normal}.stmt-rows-table td.state select{margin:0}.stmt-rows-table td.state button{margin:0;padding:2px 8px}.stmt-rows-table tbody tr.off td:not(.state){opacity:.65}.stmt-rows-table .only-narrow{display:none}@media(max-width:1300px){.stmt-rows-table .col-purpose{display:none}}@media(max-width:1000px){.stmt-rows-table .col-doc{display:none}}@media(max-width:620px){.stmt-rows-table,.stmt-rows-table tbody,.stmt-rows-table tr,.stmt-rows-table td{display:block;width:auto}.stmt-rows-table thead,.stmt-rows-table .only-narrow{display:none}.stmt-rows-table tbody tr{border:1px solid var(--hair, rgba(128,128,128,.2));border-radius:12px;padding:8px 10px;margin-bottom:8px}.stmt-rows-table td{padding:3px 0;text-align:left!important}.stmt-rows-table td.party{font-weight:600}.stmt-rows-table td[data-label]:before{content:attr(data-label) ": ";color:var(--tg-hint);font-size:13px;font-weight:400}.stmt-rows-table td.state select{width:100%}.stmt-rows-table{font-size:13px}}.registry-table th.c-party{width:100%}.registry-table th.c-date{width:100px}.registry-table th.c-doc{width:210px}.registry-table th.c-unp{width:116px}.registry-table th.c-total{width:124px}.registry-table th.c-vat{width:110px}.registry-table th.c-gross{width:124px}.registry-table td.party{white-space:normal;overflow-wrap:break-word}.registry-table td.sum{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.registry-table tbody tr.minus td.party{border-left:3px solid var(--warn)}.registry-table .only-narrow{display:none}@media(max-width:1300px){.registry-table .col-unp{display:none}}@media(max-width:1100px){.registry-table .col-doc{display:none}}@media(max-width:820px){.registry-table .col-vat{display:none}}@media(max-width:620px){.registry-table .only-narrow{display:block}.registry-table :is(.col-rdate,.col-total){display:none}.registry-table th.c-gross{width:116px}.registry-table{font-size:13px}.registry-table th,.registry-table td{padding:6px 4px}}.expenses-table th.c-date{width:104px}.expenses-table th.c-cat{width:100%}.expenses-table th.c-note{width:260px}.expenses-table th.c-pay{width:140px}.expenses-table th.c-amount{width:130px}.expenses-table th.c-act{width:44px}.expenses-table td.cat{white-space:normal;overflow-wrap:break-word}.expenses-table td.sum{text-align:right;white-space:nowrap;font-weight:600}.expenses-table td.act{text-align:right}.expenses-table td.act button{width:auto;margin:0;padding:2px 6px}.expenses-table .only-narrow{display:none}@media(max-width:1100px){.expenses-table .col-note{display:none}}@media(max-width:820px){.expenses-table .col-pay{display:none}}@media(max-width:620px){.expenses-table .only-narrow{display:block}.expenses-table th.c-date{width:84px}.expenses-table th.c-amount{width:104px}.expenses-table{font-size:13px}.expenses-table th,.expenses-table td{padding:6px 4px}}.debts-table th.c-client{width:100%}.debts-table th.c-ship,.debts-table th.c-paid,.debts-table th.c-debt,.debts-table th.c-overdue{width:134px}.debts-table th.c-mgr{width:132px}.debts-table td.client{white-space:normal;overflow-wrap:break-word}.debts-table td.sum{text-align:right;white-space:nowrap;font-weight:600}.debts-table td.sum .hint{font-weight:400}.debts-table .only-narrow{display:none}@media(max-width:1200px){.debts-table .col-mgr{display:none}}@media(max-width:1000px){.debts-table .col-ship{display:none}}@media(max-width:820px){.debts-table .col-paid{display:none}}@media(max-width:620px){.debts-table .only-narrow{display:block}.debts-table .col-overdue{display:none}.debts-table th.c-debt{width:116px}.debts-table{font-size:13px}.debts-table th,.debts-table td{padding:6px 4px}}.payables-table th.c-supplier{width:100%}.payables-table th.c-doc{width:170px}.payables-table th.c-docdate{width:104px}.payables-table th.c-due{width:116px}.payables-table th.c-amount{width:148px}.payables-table th.c-act{width:44px}.payables-table td.supplier{white-space:normal;overflow-wrap:break-word}.payables-table td.sum{text-align:right;white-space:nowrap;font-weight:600}.payables-table td.sum .hint{font-weight:400}.payables-table td.act{text-align:right}.payables-table td.act button{width:auto;margin:0;padding:2px 6px}.payables-table tbody tr.open{background:var(--tg-bg)}.payables-table tbody tr.detail{cursor:default}.payables-table tbody tr.detail:hover{background:transparent}.payables-table .only-narrow{display:none}@media(max-width:1200px){.payables-table .col-docdate{display:none}}@media(max-width:1000px){.payables-table .col-doc{display:none}}@media(max-width:620px){.payables-table .only-narrow{display:block}.payables-table .col-due{display:none}.payables-table th.c-amount{width:128px}.payables-table{font-size:13px}.payables-table th,.payables-table td{padding:6px 4px}}.picking-table th.c-pick{width:34px}.picking-table th.c-order{width:100%}.picking-table th.c-addr{width:200px}.picking-table th.c-note{width:190px}.picking-table th.c-date{width:96px}.picking-table th.c-wh{width:130px}.picking-table th.c-lines{width:88px}.picking-table th.c-status{width:108px}.picking-table td.order{white-space:normal;overflow-wrap:break-word}.picking-table td.lines{text-align:right}.picking-table td.note{white-space:normal}.picking-table td.pick{text-align:center}.picking-table td.pick input{margin:0}.picking-table .only-narrow{display:none}@media(max-width:1400px){.picking-table .col-note{display:none}}@media(max-width:1200px){.picking-table .col-addr{display:none}}@media(max-width:1000px){.picking-table .col-wh{display:none}}@media(max-width:820px){.picking-table .col-date{display:none}.picking-table th.c-status{width:96px}.picking-table th.c-lines{width:72px}}@media(max-width:620px){.picking-table .only-narrow{display:block}.picking-table .col-lines{display:none}.picking-table{font-size:13px}.picking-table th,.picking-table td{padding:6px 4px}}.clients-table th.c-name{width:100%}.clients-table th.c-chan{width:112px}.clients-table th.c-rev,.clients-table th.c-dyn{width:120px}.clients-table th.c-year{width:100px}.clients-table th.c-debt{width:128px}.clients-table th.c-risk{width:150px}.clients-table th.c-mgr{width:116px}.clients-table th.c-act{width:68px}.clients-table td.name{white-space:normal;overflow-wrap:break-word}.clients-table td.sum{text-align:right;white-space:nowrap;font-weight:600}.clients-table td.sum .badge{font-weight:400}.clients-table td.act{text-align:right;white-space:nowrap}.clients-table td.act button{width:auto;margin:0;padding:2px 6px}.clients-table td .pill{white-space:normal;display:inline-block}.clients-table td.col-dyn svg{width:96px}.clients-table td.col-dyn .hint{white-space:nowrap}.clients-table tbody tr.open{background:var(--tg-bg)}.clients-table tbody tr.detail{cursor:default}.clients-table tbody tr.detail:hover{background:transparent}@media(max-width:1500px){.clients-table .col-year{display:none}}@media(max-width:1300px){.clients-table .col-mgr{display:none}}@media(max-width:1120px){.clients-table .col-chan{display:none}}@media(max-width:1000px){.clients-table .col-dyn{display:none}}@media(max-width:820px){.clients-table .col-risk{display:none}.clients-table th.c-debt{width:118px}.clients-table th.c-rev{width:104px}.clients-table th.c-act{width:64px}}.clients-table .only-narrow{display:none}@media(max-width:620px){.clients-table .col-debt{display:none}.clients-table .only-narrow{display:block}.clients-table th.c-rev{width:96px}.clients-table th.c-act{width:44px}.clients-table{font-size:13px}.clients-table th,.clients-table td{padding:6px 4px}}.blanks-table th:nth-child(1),.blanks-table td:nth-child(1){width:17%}.blanks-table th:nth-child(2),.blanks-table td:nth-child(2){width:96px}.blanks-table th:nth-child(5),.blanks-table td:nth-child(5){width:11%}.blanks-table th:nth-child(6),.blanks-table td:nth-child(6){width:84px}.blanks-table td,.price-calc-table th,.price-calc-table td{white-space:normal}.price-calc-table th:nth-child(n+2),.price-calc-table td:nth-child(n+2){width:88px}.price-calc-table th:nth-child(8),.price-calc-table td:nth-child(8),.price-calc-table th:nth-child(9),.price-calc-table td:nth-child(9){width:110px}.supply-table th.c-type{width:34px}.supply-table th.c-country{width:13%}.supply-table th.c-lines{width:92px}.supply-table th.c-qty{width:96px}.supply-table th.c-ordered{width:104px}.supply-table th.c-eta{width:108px}.supply-table th.c-status{width:112px}.supply-table td.type{font-size:16px}.supply-table td.date{white-space:nowrap}.supply-table td.sum{text-align:right;white-space:nowrap;font-weight:600}.supply-table td.status{font-weight:500}.supply-table td.name{white-space:normal;overflow-wrap:break-word}.supply-table td.name .hint,.supply-table td.date .hint{font-weight:400}.supply-table tbody tr.open{background:var(--tg-bg)}.supply-table tbody tr.detail{cursor:default}.supply-table tbody tr.detail:hover{background:transparent}@media(max-width:1100px){.supply-table .col-country{display:none}}@media(max-width:620px){.supply-table .c-lines,.supply-table td.lines,.supply-table .c-qty,.supply-table td.sum{display:none}.supply-table th.c-eta,.supply-table th.c-status{width:88px}}@media(max-width:860px){.supply-table .col-ordered{display:none}.supply-table{font-size:13px}.supply-table th,.supply-table td{padding:6px 4px}.supply-table th.c-lines{width:78px}.supply-table th.c-qty{width:84px}.supply-table th.c-eta,.supply-table th.c-status{width:92px}}.formation-table th.c-check{width:34px}.formation-table th.c-stock{width:104px}.formation-table th.c-qty{width:132px}.formation-table th.c-status{width:168px}.formation-table th.c-sup{width:20%}.formation-table th.c-act{width:122px}.formation-table td.name{white-space:normal;overflow-wrap:break-word}.formation-table td.name .hint{font-weight:400}.formation-table td.sum{text-align:right;white-space:nowrap;font-weight:600}.formation-table td.sum .hint{font-weight:400}.formation-table tbody tr.norow{cursor:default}.formation-table tbody tr.norow:hover{background:transparent}.formation-table td.qty input{width:84px;margin:0}.formation-table .cell-row{display:flex;align-items:center;gap:4px;justify-content:flex-end}.formation-table td.act .cell-row{gap:6px}.formation-table td.status select,.formation-table td.sup input{width:100%;margin:0}.formation-table td.check input{width:auto;margin:0;transform:scale(1.2)}.formation-table td.act button{margin:0}.formation-table td.act .ghost{width:auto;padding:4px 8px}@media(max-width:1000px){.formation-table .col-stock{display:none}}@media(max-width:760px){.formation-table,.formation-table tbody,.formation-table tr,.formation-table td{display:block;width:auto}.formation-table thead{display:none}.formation-table tbody tr{border:1px solid var(--hair, rgba(128,128,128,.2));border-radius:12px;padding:8px 10px;margin-bottom:8px;position:relative}.formation-table td{padding:3px 0;text-align:left!important}.formation-table td.name{font-weight:600;padding-right:34px}.formation-table td.check{position:absolute;top:8px;right:8px}.formation-table td[data-label]:before{content:attr(data-label) ": ";color:var(--tg-hint);font-size:13px;font-weight:400}.formation-table td.sum{font-weight:600}.formation-table .cell-row{justify-content:flex-start}.formation-table td.qty input{width:96px}.formation-table td.status select{width:auto;min-width:160px}.formation-table td.sup input{width:100%}.formation-table td.act .cell-row{margin-top:4px}.formation-table td.sup:empty{display:none}}.lines-card{padding:8px 10px}.lines-table{margin-top:0}.lines-table th{white-space:normal}.lines-table tbody tr{cursor:default}.lines-table tbody tr:hover{background:transparent}.lines-table td{vertical-align:middle}.lines-table td.name{white-space:normal;overflow-wrap:break-word;font-weight:600}.lines-table td input,.lines-table td select{margin:0;width:100%}.lines-table .cell-row{display:flex;align-items:center;gap:6px}.lines-table td.act button.ghost,.lines-table td.del button.ghost{width:auto;padding:4px 8px}.lines-table tr.has-sub td{border-bottom:none}.lines-table tr.sub td{padding-top:0}.lines-table tr.sub .hint{display:block;margin-top:2px}.orders-table.lines-table th.c-del{width:44px}.orders-table.wh-lines-table th.c-qty{width:112px}.orders-table.wh-lines-table th.c-price{width:122px}.orders-table.wh-lines-table th.c-vat{width:118px}.orders-table.wh-lines-table th.c-batch{width:110px}.orders-table.wh-lines-table th.c-expiry{width:158px}.orders-table.wh-lines-table th.c-batchsel{width:260px}.orders-table.inflow-table th.c-date{width:116px}.orders-table.inflow-table th.c-sum{width:128px}.inflow-table td.sum{text-align:right;white-space:nowrap;font-weight:600}.inflow-table td.name{white-space:normal;overflow-wrap:break-word}.inflow-table tbody tr{cursor:default}.inflow-table tbody tr:hover{background:transparent}.orders-table.order-lines-table th.c-qty{width:104px}.orders-table.order-lines-table th.c-unit{width:72px}.orders-table.order-lines-table td.unit select{width:100%;padding:4px 2px}.orders-table.order-lines-table th.c-price{width:112px}.orders-table.order-lines-table th.c-vat{width:64px}.orders-table.order-lines-table th.c-disc{width:78px}.orders-table.order-lines-table th.c-net{width:96px}.orders-table.order-lines-table th.c-tax{width:88px}.orders-table.order-lines-table th.c-gross{width:104px}.order-lines-table td.net,.order-lines-table td.tax,.order-lines-table td.gross{text-align:right;white-space:nowrap}.order-lines-table td.vat{white-space:nowrap}@media(max-width:1240px){.order-lines-table .c-net,.order-lines-table td.net{display:none}.orders-table.order-lines-table th.c-qty{width:88px}.orders-table.order-lines-table th.c-unit{width:60px}.orders-table.order-lines-table th.c-price{width:96px}.orders-table.order-lines-table th.c-vat{width:56px}.orders-table.order-lines-table th.c-disc{width:68px}.orders-table.order-lines-table th.c-gross{width:96px}.orders-table.order-lines-table td.name{min-width:150px}}@media(max-width:1100px){.order-lines-table .c-tax,.order-lines-table td.tax{display:none}}@media(max-width:900px){.order-lines-table .c-net,.order-lines-table td.net,.order-lines-table .c-tax,.order-lines-table td.tax{display:block}.order-lines-table td.net:empty,.order-lines-table td.tax:empty{display:none}}@media(max-width:900px){.lines-table td:empty{display:none}}@media(max-width:900px){.lines-table,.lines-table tbody,.lines-table tr,.lines-table td{display:block;width:auto}.lines-table thead{display:none}.lines-table tbody tr{border:1px solid var(--hair, rgba(128,128,128,.2));border-radius:12px;padding:8px 10px;margin-bottom:8px;position:relative}.lines-table td{padding:3px 0;text-align:left!important;border:none}.lines-table td.name{padding-right:40px}.lines-table td.del{position:absolute;top:6px;right:6px;padding:0}.lines-table td[data-label]:before{content:attr(data-label) ": ";color:var(--tg-hint);font-size:13px;font-weight:400}.lines-table td input,.lines-table td select{width:auto;min-width:120px}.lines-table .cell-row{justify-content:flex-start}.lines-table tbody tr.has-sub{border-bottom:none;border-radius:12px 12px 0 0;margin-bottom:0}.lines-table tbody tr.sub{border-top:none;border-radius:0 0 12px 12px;margin-bottom:8px;padding-top:0}.lines-table td.act{display:inline-block}}.orders-table.order-card-table th.c-qty,.orders-table.order-card-table th.c-picked{width:124px}.order-card-table td.qty,.order-card-table td.picked,.order-card-table td.price{text-align:right;white-space:nowrap}.order-card-table td .hint{display:block;white-space:normal}.order-card-table td.price .hint{display:inline;margin-left:3px}@media(min-width:900px){.order-card-totals{max-width:380px;margin-left:auto}}@media(max-width:900px){.order-card-table td.qty,.order-card-table td.picked,.order-card-table td.price{white-space:normal}.order-card-table td .hint{display:inline;margin-left:4px}}.orders-table.receipt-card-table th.c-qty{width:96px}.orders-table.receipt-card-table th.c-price{width:112px}.orders-table.receipt-card-table th.c-vat{width:64px}.orders-table.receipt-card-table th.c-batch{width:104px}.orders-table.receipt-card-table th.c-expiry{width:96px}.orders-table.receipt-card-table th.c-cur{width:104px}.orders-table.receipt-card-table th.c-net{width:96px}.orders-table.receipt-card-table th.c-tax{width:88px}.orders-table.receipt-card-table th.c-gross{width:104px}.receipt-card-table td:is(.qty,.price,.cur,.net,.tax,.gross){text-align:right;white-space:nowrap}.receipt-card-table td.vat,.receipt-card-table td.expiry{white-space:nowrap}.receipt-card-table td.price .hint{display:inline;margin-left:3px}.receipt-card-table td.price div.hint{display:block;margin-left:0;white-space:normal}.receipt-card-table .only-mid{display:none}@media(max-width:1300px){.receipt-card-table .c-net,.receipt-card-table td.net{display:none}}@media(max-width:1150px){.receipt-card-table .c-tax,.receipt-card-table td.tax{display:none}}@media(max-width:1000px){.receipt-card-table .c-expiry,.receipt-card-table td.expiry{display:none}.receipt-card-table .only-mid{display:block}}@media(max-width:900px){.receipt-card-table .c-net,.receipt-card-table td.net,.receipt-card-table .c-tax,.receipt-card-table td.tax,.receipt-card-table td.expiry:not(:empty){display:block}.receipt-card-table .only-mid{display:none}.receipt-card-table td:is(.qty,.price,.cur,.net,.tax,.gross){white-space:normal}.receipt-card-table td.price div.hint{display:inline;margin-left:4px}.receipt-card-table td.name,.order-card-table td.name{padding-right:0}}.balances-table th.c-art{width:96px}.balances-table th.c-name{width:30%}.balances-table th.c-wh{width:130px}.balances-table th.c-cost{width:116px}.balances-table th.c-value{width:108px}.balances-table th.c-res{width:96px}.balances-table th.c-free{width:100px}.balances-table th.c-qty{width:104px}.balances-table td.art{white-space:nowrap}.balances-table td.name{white-space:normal;overflow-wrap:break-word}.balances-table td.sum{text-align:right;white-space:nowrap;font-weight:600}.balances-table td.sum .hint,.balances-table td.name .hint{font-weight:400}@media(max-width:1300px){.balances-table .col-value{display:none}}.balances-table th.c-reg{width:76px}.balances-table td.reg{text-align:center}@media(max-width:1300px){.balances-table .col-reg{display:none}}@media(max-width:1100px){.balances-table .col-wh{display:none}}@media(max-width:940px){.balances-table .col-cost{display:none}}.balances-table td.name .only-narrow{display:none}@media(max-width:700px){.balances-table .col-res,.balances-table .col-free{display:none}.balances-table td.name .only-narrow{display:block}.balances-table th.c-art{width:74px}.balances-table th.c-qty{width:92px}.balances-table{font-size:13px}.balances-table th,.balances-table td{padding:6px 4px}}.batches-table th.c-art{width:96px}.batches-table th.c-lot{width:170px}.batches-table th.c-exp{width:116px}.batches-table th.c-wh{width:132px}.batches-table th.c-qty{width:112px}.batches-table th.c-in{width:104px}.batches-table th.c-left{width:168px}.batches-table th.c-state{width:176px}.batches-table th.c-doc{width:220px}.batches-table th.c-date{width:104px}.batches-table th.c-wb{width:150px}.batches-table td.art,.batches-table td.date,.batches-table td.exp,.batches-table td.left{white-space:nowrap}.batches-table td.name,.batches-table td.doc{white-space:normal;overflow-wrap:break-word}.batches-table td.lot{white-space:normal;overflow-wrap:break-word;font-weight:600}.batches-table td.lot .hint{font-weight:400}.batches-table td.sum{text-align:right;white-space:nowrap;font-weight:600}.batches-table td.left{font-weight:600}.batches-table td.state{white-space:normal}.batches-table tbody tr.norow{cursor:default}.batches-table tbody tr.norow:hover{background:transparent}@media(max-width:1200px){.batches-table .col-wb{display:none}}@media(max-width:1100px){.batches-table .col-wh{display:none}.batches-table th.c-lot,.batches-table th.c-left{width:132px}.batches-table th.c-qty{width:108px}.batches-table th.c-in{width:96px}.batches-table th.c-exp{width:104px}.batches-table th.c-state{width:140px}.batches-table th.c-doc{width:170px}}@media(max-width:980px){.batches-table .col-art{display:none}}.batches-table td.name .only-narrow{display:none}@media(max-width:700px){.batches-table .col-date,.batches-table .col-lot{display:none}.batches-table td.name .only-narrow{display:block}.batches-table th.c-name{width:40%}.batches-table th.c-lot{width:118px}.batches-table th.c-qty{width:92px}.batches-table th.c-left{width:116px}.batches-table th.c-state{width:120px}.batches-table th.c-in{width:84px}.batches-table th.c-exp{width:96px}.batches-table th.c-doc{width:150px}.batches-table{font-size:13px}.batches-table th,.batches-table td{padding:6px 4px}}.debtors-table th.c-client{width:26%}.debtors-table th.c-debt,.debtors-table th.c-overdue{width:120px}.debtors-table th.c-days{width:78px}.debtors-table th.c-promise{width:30%}.debtors-table td.sum{text-align:right;white-space:nowrap;font-weight:600}.debtors-table td.sum .hint{font-weight:400}.debtors-table tbody tr.open{background:var(--tg-bg)}.debtors-table tbody tr.detail{cursor:default}.debtors-table tbody tr.detail:hover{background:transparent}.debtors-table tbody tr.detail .card{margin:0 0 8px}@media(max-width:900px){.debtors-table .col-promise{display:none}}.waybills-table tbody tr.open{background:var(--tg-bg)}.waybills-table tbody tr.detail{cursor:default}.waybills-table tbody tr.detail:hover{background:transparent}.waybills-table tbody tr.detail .card{margin:0 0 8px}@media(max-width:1300px){.waybills-table .col-outlet{display:none}.waybills-table th.c-legal{width:auto}}@media(max-width:1100px){.waybills-table .col-route{display:none}}@media(max-width:900px){.orders-table .col-comment,.orders-table .c-wh{display:none}}@media(max-width:900px){.waybills-table th.c-doc{width:124px}.waybills-table th.c-date{width:86px}.waybills-table th.c-sum{width:98px}.waybills-table td.clip{white-space:normal;overflow:visible;overflow-wrap:break-word}}@media(max-width:700px){.orders-table .col-sum{display:none}.orders-table{font-size:13px}.orders-table th,.orders-table td{padding:6px 4px}.orders-table th.c-num{width:72px}.orders-table th.c-date{width:82px}.orders-table th.c-status{width:76px}.waybills-table .col-date{display:none}.waybills-table .only-narrow{display:block}.waybills-table .col-status{display:none}.orders-table.waybills-table th.c-pick,.orders-table.waybills-table td.pick{width:26px}.waybills-table th.c-doc{width:92px}.waybills-table th.c-sum{width:98px}.waybills-table td.sum,.waybills-table td.sum .pill{white-space:normal}.waybills-table th.c-sum .th-btn,.waybills-table td.sum .only-narrow{text-align:right}}.datefield{position:relative;display:inline-block;width:100%}.datefield>input[type=date]{width:100%;padding-right:40px}.datefield>input[type=date]::-webkit-calendar-picker-indicator{display:none}.datefield-btn{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:0;background:transparent;cursor:pointer;font-size:15px;line-height:1;padding:3px 5px;border-radius:8px}.datefield-btn:hover{background:var(--tg-secondary-bg)}.datefield-btn:disabled{opacity:.4;cursor:default}.row.dates{flex-wrap:wrap}.row.dates>*{flex:1 1 150px;min-width:0}.row.dates .hint{display:block}.row.dates input[type=date]{min-width:0}@media(max-width:520px){.row.dates>*{flex:0 0 auto}.row.dates .datefield,.row.dates .datefield>input[type=date]{width:150px}}@media(max-width:520px){.datefield>input[type=date]{padding-right:30px;padding-left:8px}.datefield-btn{right:2px;font-size:14px;padding:3px}}.datepop{position:absolute;z-index:50;top:calc(100% + 6px);left:0;width:264px;padding:10px;background:var(--tg-bg);color:var(--tg-text);border:1px solid var(--tg-hint);border-radius:14px;box-shadow:0 12px 32px #0000002e}.datefield.flip .datepop{left:auto;right:0}.datepop-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:14px;font-weight:600}.datepop-head span{text-transform:capitalize}.datepop-head button{border:1px solid var(--tg-hint);background:var(--tg-bg);color:var(--tg-text);width:27px;height:27px;border-radius:8px;font-size:16px;line-height:1;cursor:pointer}.datepop-head button:hover{background:var(--tg-secondary-bg)}.datepop-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.datepop-wd{text-align:center;font-size:11px;color:var(--tg-hint);padding-bottom:3px}.datepop-day{height:34px;border:0;border-radius:8px;cursor:pointer;background:transparent;color:var(--tg-text);font-size:14px}.datepop-day:hover:not(:disabled){background:var(--tg-secondary-bg)}.datepop-day:disabled{color:var(--tg-hint);opacity:.45;cursor:default}.datepop-day.today{box-shadow:inset 0 0 0 1.5px var(--tg-link)}.datepop-day.sel{background:var(--tg-link);color:#fff;font-weight:600}.datepop-foot{display:flex;gap:6px;margin-top:8px}.datepop-foot button{flex:1;padding:7px 5px;font-size:13px;cursor:pointer;border:1px solid var(--tg-hint);border-radius:8px;background:var(--tg-bg);color:var(--tg-link)}.datepop-foot button:hover{background:var(--tg-secondary-bg)}.price-manual{width:100%;border-collapse:collapse}.price-manual th{font-size:12px;font-weight:500;color:var(--tg-hint);text-align:center;padding:0 4px 4px;white-space:nowrap}.price-manual td{padding:2px 4px;vertical-align:middle}.price-manual input{width:100%;min-width:70px;padding:6px 8px;font-size:16px}.staff-actions>button{white-space:nowrap;flex:0 0 auto;width:auto;font-size:14px;padding:6px 8px}.cmdk-back{position:fixed;top:0;right:0;bottom:0;left:0;z-index:75;background:#00000059;display:flex;align-items:flex-start;justify-content:center;padding:10vh 16px 16px}.cmdk{width:100%;max-width:560px;background:var(--tg-bg);border-radius:14px;box-shadow:0 12px 40px #00000040;padding:10px}.cmdk input{width:100%;font-size:16px;height:44px}.cmdk-list{margin-top:8px;max-height:46vh;overflow-y:auto}.cmdk-item{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;margin:0;border:0;border-radius:8px;background:none;color:var(--tg-text);text-align:left;font-size:15px;cursor:pointer}.cmdk-item.on{background:var(--tg-secondary-bg)}.cmdk-icon{width:22px;display:inline-flex;justify-content:center}.cmdk-label{flex:1;min-width:0}.cmdk-foot{margin-top:8px;text-align:center}.form-error{display:flex;align-items:flex-start;gap:8px;margin:8px 0;padding:8px 10px;border-left:3px solid var(--danger);border-radius:0 8px 8px 0;background:var(--danger-bg);color:var(--tg-text);font-size:14px}.sticky-filter-note{display:flex;align-items:center;flex-wrap:wrap;margin:-4px 0 8px;color:var(--warn)}.bulk-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.orders-table th.c-pick,.orders-table td.pick{width:36px;text-align:center}.orders-table td.pick input,.orders-table th.c-pick input{width:18px;height:18px;margin:0}@media(hover:hover)and (pointer:fine){.card.clickable,.clickable-row,.chip,.today-row,.bd-item,button.ghost,button.primary,.create-btn,.seg button,.info-btn,.th-btn,.tabbar-items button,.tabbar-ws button,.orders-table tbody tr:not(.row-details):not(.detail){transition:background-color .12s ease,box-shadow .12s ease,border-color .12s ease,color .12s ease}.card.clickable:hover{background:var(--tg-secondary-bg);background:color-mix(in srgb,var(--tg-link) 5%,var(--tg-secondary-bg));box-shadow:var(--card-shadow-lift)}.clickable-row:hover,.today-row:hover,.bd-item:hover{background:var(--tg-secondary-bg);background:color-mix(in srgb,var(--tg-link) 6%,transparent)}button.primary:hover,.create-btn:hover{filter:brightness(1.06)}button.ghost:hover:not(:disabled),.chip:hover,.seg button:not(.active):hover{background:var(--tg-secondary-bg);background:color-mix(in srgb,var(--tg-link) 8%,var(--tg-secondary-bg));border-color:color-mix(in srgb,var(--tg-link) 35%,var(--tg-hint))}.tabbar-items button:not(.active):hover{background:var(--tg-secondary-bg);background:color-mix(in srgb,var(--tg-link) 7%,transparent);color:var(--tg-text)}.tabbar-ws button:not(.active):hover{background:var(--tg-secondary-bg);background:color-mix(in srgb,var(--tg-link) 8%,var(--tg-bg));border-color:color-mix(in srgb,var(--tg-link) 45%,var(--tg-hint))}.tabbar-ws button.active:hover{filter:brightness(1.06)}.scroll-top:hover{background:var(--tg-secondary-bg);background:color-mix(in srgb,var(--tg-link) 8%,var(--tg-bg));border-color:color-mix(in srgb,var(--tg-link) 45%,var(--tg-secondary-bg))}button.primary:active,.create-btn:active,button.ghost:active,.chip:active{transform:translateY(1px)}}input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:var(--tg-link);outline:2px solid color-mix(in srgb,var(--tg-link) 35%,transparent);outline-offset:0}.modal-back{position:fixed;top:0;right:0;bottom:0;left:0;z-index:70;background:#0006;display:flex;align-items:center;justify-content:center;padding:16px;animation:modalFade .15s ease}.modal{display:flex;flex-direction:column;width:100%;max-width:900px;max-height:86vh;background:var(--tg-bg);border-radius:16px;box-shadow:0 16px 48px #0000004d;outline:none;animation:modalIn .16s ease}.modal-head{display:flex;align-items:center;gap:8px;padding:10px 8px 10px 16px;border-bottom:1px solid var(--hair)}.modal-head h2{flex:1;min-width:0;margin:0;font-size:17px}.modal-head h2>.ico{margin-right:8px}.modal-x{flex:0 0 auto;width:auto}.modal-body{overflow-y:auto;padding:12px 16px 16px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.modal-body>:first-child{margin-top:0}.modal-foot{border-top:1px solid var(--hair);padding:10px 16px}@keyframes modalFade{0%{opacity:0}}@keyframes modalIn{0%{opacity:0;transform:translateY(8px)}}@media(prefers-reduced-motion:reduce){.modal-back,.modal{animation:none}}@media(max-width:640px){.modal-back{padding:0;align-items:flex-end}.modal{max-width:none;max-height:88vh;border-radius:16px 16px 0 0}.modal-body{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}}@media print{@page{size:landscape;margin:10mm}.tabbar,.topbar,.devbar,.toast-host,.scroll-top,.ptr,.offline-banner,.cmdk-back,.back-bar,.sticky-save{display:none!important}.app{max-width:none!important;margin:0!important;padding:0!important;min-height:0}button.primary,button.ghost,button.back-btn,button.danger,.doc-actions,.seg button:not(.active){display:none!important}.seg{border:none;background:none}.seg button.active{background:none;border:none;font-weight:600;padding:0}body{background:#fff;color:#000}.card{box-shadow:none;border-color:#ddd}.skeleton{display:none}.orders-table{table-layout:auto;font-size:11px}.orders-table thead{display:table-header-group}.orders-table tbody tr{break-inside:avoid}.orders-table tbody tr,.orders-table tbody tr+tr.sub{background:none!important}.orders-table td,.orders-table th{border-bottom:1px solid #ddd}.orders-table td.clip,.orders-table .clip{overflow:visible;white-space:normal;text-overflow:clip}h1,h2,.screen-header{break-after:avoid}}
