:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #1c1c1a;
  --muted: #6f6d66;
  --line: #e4e1da;
  --accent: #1f5c46;
  --accent-ink: #ffffff;
  --on: #e7f1ec;
  --warn: #9a5b00;
  --warn-bg: #fbf1df;
  --bad: #b3261e;
  --bad-bg: #fbe9e7;
  --ok: #1f7a4d;
  --radius: 12px;
  --tap: 44px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
button, input, select, textarea { font: inherit; color: inherit; }
button {
  min-height: var(--tap);
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}
button:hover { border-color: #c9c5bb; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
button.primary:hover { filter: brightness(1.08); }
button.big { min-height: 52px; padding: 0 24px; font-size: 17px; }
button.ghost { background: transparent; }
button.armed { background: var(--bad); border-color: var(--bad); color: #fff; }
button.link { min-height: auto; padding: 0 0 0 12px; border: 0; background: none; color: var(--muted); text-decoration: underline; }
a { color: var(--accent); }
a.btn {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px;
  border-radius: 999px; background: #25d366; color: #fff; font-weight: 600; text-decoration: none;
}
input, select, textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
input.bad { border-color: var(--bad); background: var(--bad-bg); }
label { display: block; margin: 12px 0; color: var(--muted); font-size: 14px; }
label input, label select, label textarea { margin-top: 6px; color: var(--ink); font-size: 16px; }
label.check { display: flex; gap: 8px; align-items: center; }
label.check input { width: auto; min-height: auto; margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h3 { margin: 28px 0 10px; font-size: 18px; }
small { display: block; color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.pad { padding: 20px; }
.empty { padding: 24px 0; color: var(--muted); list-style: none; }
.ok-t { color: var(--ok); }
.warn-t { color: var(--warn); }
.bad-t { color: var(--bad); font-weight: 600; }

/* вход */
.login { max-width: 420px; margin: 0 auto; padding: 18vh 20px 40px; }
.login h1 { font-size: 40px; line-height: 1; margin-bottom: 28px; }
.login h1 span { display: block; color: var(--accent); }

/* шапка */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  padding: 12px max(16px, env(safe-area-inset-left));
  background: rgba(246, 245, 242, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.days { display: flex; align-items: center; gap: 8px; }
.days button { width: var(--tap); padding: 0; font-size: 20px; }
.tabs { display: flex; gap: 6px; width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: none; min-height: 40px; }
.tabs button.on, .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill { padding: 4px 12px; border-radius: 999px; background: var(--line); font-size: 14px; }
.pill.ok { background: var(--on); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }

main.venue, main.admin { max-width: 980px; margin: 0 auto; padding: 16px 16px 120px; }
.hint { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.notice { padding: 14px 16px; border-radius: var(--radius); background: var(--warn-bg); color: #5c3a00; }
.notice.ok { background: var(--on); color: var(--ok); }
.search { margin-bottom: 10px; font-size: 17px; }
.chips { display: flex; gap: 8px; margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; min-height: 38px; }

/* строки товаров у точки */
.rows { margin: 0; padding: 0; list-style: none; }
.rows .cat { padding: 18px 0 6px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.row {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--line);
}
.row.on .name { font-weight: 600; }
.row.on .stepper input { border-color: var(--accent); background: var(--on); font-weight: 600; }
.name { flex: 1; min-width: 0; }
.stepper { display: flex; gap: 6px; align-items: center; }
.stepper button { width: var(--tap); padding: 0; font-size: 20px; }
.stepper input { width: 76px; text-align: center; font-size: 17px; }
.comment textarea { min-height: 70px; }

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(246, 245, 242, .96); border-top: 1px solid var(--line);
}
.bar .primary { flex: 1; max-width: 520px; }

/* таблицы-сетки */
.grid {
  display: grid; gap: 8px; align-items: center;
  grid-template-columns: minmax(0, 1fr) 70px 70px 90px;
  min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--line);
}
.grid.head { min-height: 0; padding: 8px 0; color: var(--muted); font-size: 13px; border-bottom-color: var(--ink); }
.grid input { text-align: center; padding: 6px; }
.grid.off { background: var(--bad-bg); }
.grid.buy { grid-template-columns: minmax(0, 1fr) 64px 64px 72px 84px 84px; }
.grid.issue { grid-template-columns: minmax(0, 1fr) 76px 84px 100px; }
.grid.issue:has(> span:nth-child(5)) { grid-template-columns: minmax(0, 1fr) 76px 84px 90px 90px; }
.grid.stock { grid-template-columns: minmax(0, 1fr) 90px 110px; }
.grid.move { grid-template-columns: 96px 110px minmax(0, 1fr) 70px 110px; font-size: 14px; min-height: 44px; }

/* склад: сводка и карточки */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.stats div { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stats b { font-size: 30px; line-height: 1.1; }
.stats .warn { background: var(--warn-bg); border-color: #efd9b0; }
.cards { margin: 12px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--line);
}
.card p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.card.open { border-left-color: var(--accent); }
.card.issued { border-left-color: var(--warn); }
.card.received { border-left-color: var(--ok); }
.card.none { opacity: .7; }
.code { font: 600 22px/1.2 ui-monospace, Menlo, monospace !important; color: var(--ink) !important; letter-spacing: .08em; }

.group { margin: 18px 0; padding: 4px 16px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.group header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 0; }
.group header b { font-size: 18px; }
.group footer { display: flex; justify-content: flex-end; padding-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.sheet-head h2 { margin: 10px 0 4px; font-size: 24px; }
.sheet-head p { margin: 4px 0 12px; color: var(--muted); }
.sheet-head .link { padding-left: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.prow { display: flex; gap: 12px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); }
.prow.off { opacity: .55; }
.pform { margin: 12px 0 20px; padding: 4px 16px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pform h3 { margin-top: 14px; }

/* бот */
.bot { margin: 8px 0 4px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ok); }
.bot.warn { border-left-color: #d89614; }
.bot.bad { border-left-color: var(--bad); }
.bot header small { margin-top: 2px; }
.bot details { margin-top: 10px; }
.bot summary { cursor: pointer; color: var(--muted); font-size: 14px; min-height: 32px; }
.pair { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); }
.pair p { margin: 0 0 8px; }
.pair .code { font-size: 34px !important; }
.grid.groups { grid-template-columns: minmax(0, 1fr) 220px; }
.inbox { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.msgphoto { display: block; max-width: 100%; max-height: 320px; margin-top: 8px; border-radius: 8px; }
.msg { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.msg p { margin: 8px 0 0; font-size: 15px; color: var(--ink); }
.msg.review { border-left: 4px solid #d89614; }
.msg.added { border-left: 4px solid var(--ok); }
.msg.ignored, .msg.done { opacity: .6; }
.msg .pill { margin-left: 4px; }

/* заявки из WhatsApp */
.wa { margin: 16px 0; display: grid; gap: 8px; }
.wa-row {
  display: grid; gap: 10px 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start; padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ok);
}
.wa-row.warn { border-left-color: #d89614; }
.wa-row.wa-compact { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) auto; align-items: center; }
.wa-compact .wa-raw { font-weight: 400; color: var(--muted); }
.wa-row.bad { border-left-color: var(--bad); background: #fffafa; }
.wa-row.skip { opacity: .5; border-left-color: var(--line); }
.wa-raw { font-weight: 600; }
.wa-raw small { font-weight: 400; }
.wa-pick small { margin-top: 4px; }
.wa-pick .link { padding: 0 10px 0 0; }
.wa-qty { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wa-qty > input { width: 96px; text-align: center; }
.wa-qty small { width: 100%; }
.wa-row.bad .wa-qty small { color: var(--bad); }
.wa-row.warn .wa-qty small { color: var(--warn); }
label.inline { display: flex; gap: 6px; align-items: center; margin: 0; color: var(--ink); font-size: 15px; }
label.inline input { width: 70px; margin: 0; text-align: center; }

#toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 10; transform: translate(-50%, 20px);
  max-width: min(92vw, 480px); padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--bad); }

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stats div { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; }
  .stats b { font-size: 22px; }
  .grid { grid-template-columns: minmax(0, 1fr) 56px 56px 76px; font-size: 15px; }
  .grid.buy { grid-template-columns: minmax(0, 1fr) 52px 52px 70px 70px; }
  .grid.buy > :nth-child(3) { display: none; }
  .grid.issue { grid-template-columns: minmax(0, 1fr) 60px 64px 84px; }
  .grid.move { grid-template-columns: 1fr 70px; }
  .grid.move > :nth-child(1), .grid.move > :nth-child(2), .grid.move > :nth-child(5) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .wa-row { grid-template-columns: 1fr; }
  .grid.groups { grid-template-columns: 1fr; }
  .msg { flex-direction: column; }
  .stepper input { width: 64px; }
  .card { flex-wrap: wrap; }
}

/* листы точек и заказы поставщикам */
.print-actions { margin: 8px 0 4px; }
.vsheets { display: grid; gap: 14px; margin: 14px 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); align-items: start; }
.vcard { padding: 4px 16px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.vsheet header h2 { margin: 12px 0 2px; font-size: 22px; }
.vsheet header p { margin: 0 0 6px; color: var(--muted); }
.vsheet h3, .group h4 { margin: 14px 0 4px; font-size: 15px; }
.vsheet h3 small { font-weight: 400; color: var(--muted); }
table.lines { width: 100%; border-collapse: collapse; font-size: 15px; }
table.lines td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.lines td.q { text-align: right; white-space: nowrap; font-weight: 600; }
table.lines td.q small { display: inline; margin: 0; font-weight: 400; color: var(--muted); }
table.lines td.box { width: 18px; }
table.lines td.box::before { content: ''; display: inline-block; width: 12px; height: 12px; border: 1.5px solid var(--muted); border-radius: 2px; }
.signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; font-size: 13px; color: var(--muted); }
.signs span { border-top: 1px solid var(--ink); padding-top: 4px; }
.by-venue { display: grid; gap: 4px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.parties { display: grid; gap: 4px; margin: 10px 0 12px; }
.parties div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.parties dt { color: var(--muted); }
.parties dd { margin: 0; }
table.act-lines th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--ink); }
table.act-lines th.q { text-align: right; }
table.act-lines tr.off td { background: var(--bad-bg); }
.act-sum { margin: 10px 0 0; }
.supplier-recv .grid { grid-template-columns: minmax(0, 1fr) 84px 100px; }
#print { display: none; }
.sheet-draft { border: 2px solid #111; padding: 8px 10px; margin: 0 0 12px; font-weight: 800; text-align: center; color: #111; }

@media print {
  .top, .bar, .link, #toast, .tabs { display: none !important; }
  body.printing > :not(#print) { display: none !important; }
  body.printing #print { display: block; }
  #print .vsheet { break-after: page; font-size: 12pt; color: #000; }
  #print .vsheet:last-child { break-after: auto; }
  #print .vsheet section { break-inside: avoid; }
  #print table.act-lines tr.off td { background: none; font-weight: 700; }
  #print table.lines td { padding: 4px 2px; border-bottom-color: #bbb; }
  #print .muted, #print small { color: #444; }
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; }
  main.admin { padding: 0; max-width: none; }
  .grid { min-height: 34px; }
  .grid input { border: 0; }
}

/* Единый склад и листы */
.primary-areas{display:flex;gap:8px;margin:16px 0 8px}.primary-areas button{font-size:19px;padding:10px 28px;border-color:transparent;background:transparent}.primary-areas button.on{background:#245c44;color:white}.warehouse-workspace{--green:#245c44}.wh-title{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:20px}.wh-title h1,.wh-title h2,.wh-title h3{margin:0}.eyebrow{font-size:11px;letter-spacing:1.5px;color:#6b716b;font-weight:600}.wh-nav{display:flex;gap:8px;margin:20px 0}.wh-nav .on{background:#e0ebe2;border-color:#245c44;color:#245c44}.wh-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}.wh-stats button{text-align:left;border:1px solid #e1e4dd;border-radius:12px;padding:20px;background:#fff}.wh-stats b{display:block;font-size:30px;line-height:1.3}.wh-stats .selected{outline:2px solid #245c44}.wh-stats .red b{color:#aa3832}.wh-stats .yellow b{color:#986918}.wh-stats .gray b{color:#778078}.wh-stats .green b{color:#245c44}.wh-filters{display:flex;gap:10px;margin-bottom:16px}.wh-filters input{max-width:420px;flex:1}.wh-filters select{max-width:260px}.wh-table-wrap{overflow-x:auto;background:white;border:1px solid #e0e3dc;border-radius:12px;margin-bottom:20px}.wh-table{width:100%;border-collapse:collapse;font-size:14px}.wh-table th{text-align:left;background:#f0f2ec;color:#60695e;white-space:nowrap;font-size:12px;font-weight:600;padding:14px 16px}.wh-table td{padding:16px;border-bottom:1px solid #eef0ea;vertical-align:top}.wh-table small,.wh-supply small{display:block;max-width:270px;color:#7a8077;font-size:12px;line-height:1.5;margin-top:5px}.wh-table td:first-child{min-width:200px}.wh-table input{min-width:75px;max-width:160px;padding:8px}.wh-table [data-supplier],.wh-table [data-carrier]{min-width:140px}.stock-badge{display:inline-block;padding:4px 10px;border-radius:6px;white-space:nowrap;font-size:12px;font-weight:600}.stock-badge.red{background:#fce4de;color:#9a392b}.stock-badge.yellow{background:#fff0cc;color:#896413}.stock-badge.green{background:#e2efe2;color:#285937}.stock-badge.gray{background:#edf0eb;color:#687164}.wh-editor{padding:24px;border:1px solid #d5ddd1;background:#fff;border-radius:14px;margin-top:24px;scroll-margin-top:25px}.wh-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.wh-editor label{display:flex;flex-direction:column;gap:7px;margin-bottom:15px;font-size:14px}.wh-editor input,.wh-editor select{width:100%}.wh-editor .check{display:flex;flex-direction:row;align-items:center;gap:10px;margin:20px 0}.wh-editor .check input{width:auto;flex:none}.wh-line{display:flex;align-items:center;gap:12px}.wh-line label:first-child{flex:2}.wh-line label{flex:1;min-width:0}.wh-line select{max-width:100%}.wh-empty{padding:40px;text-align:center;color:#76806f}.wh-supplies{display:grid;gap:20px}.wh-supply{border:1px solid #e1e5da;border-radius:12px;padding:22px;background:white}.wh-source{border-bottom:1px solid #e8eade;padding:15px 0}.wh-source pre{font:inherit;white-space:pre-wrap;color:#53614f}.wh-supply summary{cursor:pointer;color:#56684f;margin-top:15px}.review-banner{padding:14px;border-radius:8px;background:#fff1d0;color:#6c551b;margin-bottom:12px}.review-banner.good{background:#e2eee1;color:#2a5835}.review-banner button{margin-left:12px}
@media(max-width:700px){.wh-title{gap:12px}.wh-title h1{font-size:27px}.wh-title .actions{width:100%;flex-wrap:wrap}.wh-stats{grid-template-columns:repeat(2,1fr);gap:8px}.wh-stats button{padding:14px}.wh-stats b{font-size:25px}.wh-nav{overflow-x:auto;white-space:nowrap}.wh-filters{flex-wrap:wrap}.wh-filters input{min-width:180px}.wh-grid{grid-template-columns:1fr}.wh-editor{padding:16px}.wh-line{flex-wrap:wrap;border-bottom:1px solid #eee;padding:10px 0}.wh-line label:first-child{flex-basis:100%}.wh-table td{padding:12px}.primary-areas button{font-size:18px;padding:10px 24px}}
.wh-line{align-items:flex-start;margin-bottom:18px}
.wh-editor{scroll-margin-top:170px}
.wh-product-picker{flex:2;min-width:0}
.wh-product-picker select{min-height:60px;padding:6px;font-size:16px}
.wh-product-picker label{margin-bottom:8px}
.wh-product-picker small{display:block;color:#66705f;font-size:12px;line-height:1.5}
.wh-line>button[data-remove]{margin-top:26px}
@media(max-width:700px){.wh-editor{scroll-margin-top:220px}.wh-product-picker{flex-basis:100%}.wh-product-picker select{font-size:16px}.wh-line>button[data-remove]{margin-top:26px}}
.wh-balance-filters{flex-wrap:wrap;align-items:flex-end}.wh-balance-filters label{display:flex;flex-direction:column;gap:6px;flex:1 1 170px;font-size:13px;color:#60695e}.wh-balance-filters .wh-filter-search{flex:2 1 300px}.wh-balance-filters input,.wh-balance-filters select{width:100%;max-width:none;min-width:0;margin:0}.wh-balance-filters button{margin-bottom:0}.wh-table .wh-group th{background:#e6ede3;color:#245c44;font-size:15px;padding:14px 16px;white-space:normal}.wh-group span{font-size:12px;font-weight:400}.wh-balances tr.wh-group{display:table-row}
@media(max-width:700px){.wh-balance-filters label{flex-basis:calc(50% - 10px);min-width:0}.wh-balance-filters .wh-filter-search{flex-basis:100%}.wh-balances tr.wh-group{display:block;padding:0}.wh-balances .wh-group th{display:block;width:100%}}
@media print{.primary-areas,.wh-nav,.wh-filters,.wh-editor,.wh-stats,.wh-table button{display:none!important}.wh-table-wrap{overflow:visible;border:0}.wh-table td{padding:5px;font-size:10px}}
.wh-review-table td:first-child{min-width:150px}
.wh-review-plan{font-weight:600;color:#245c44}
.wh-review-problem{background:#fff8ed}
.wh-review-problem .wh-review-plan{color:#9b5d19}
.wh-review-edit{margin-top:8px}
.wh-review-edit summary{cursor:pointer;color:#526958}
.wh-review-fields{display:grid;grid-template-columns:repeat(3,minmax(110px,1fr));gap:8px;margin-top:12px}
.wh-review-fields label{margin:0;font-size:12px}
.wh-review-fields input{width:100%;max-width:none;min-width:0}
@media(max-width:700px){.wa-row.wa-compact{grid-template-columns:1fr}.wh-review-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
.demo-banner{background:#fff0ca;border:1px solid #ddc66f;border-radius:8px;padding:12px 18px;font-size:13px;color:#755918;margin:0 0 22px}
@media(max-width:700px){.wh-balances,.wh-balances tbody{display:block}.wh-balances thead{display:none}.wh-balances tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #d8e0d4;padding:10px 6px}.wh-balances td{display:block;padding:8px;border:0;min-width:0!important}.wh-balances td:before{display:block;font-size:11px;color:#7d8478;margin-bottom:4px}.wh-balances td:first-child{grid-column:1/-1}.wh-balances td:nth-child(2):before{content:'На складе сейчас'}.wh-balances td:nth-child(3):before{content:'Сегодня выдано'}.wh-balances td:nth-child(4){grid-column:1/-1}.wh-balances td:nth-child(4):before{content:'Ожидаем от поставщиков'}.wh-balances td:last-child{grid-column:1/-1}.wh-balances small{max-width:none}}
.wh-supplies{grid-template-columns:minmax(0,1fr)}.wh-supply{min-width:0}.warehouse-receive{display:block}.warehouse-receive input{max-width:100%}

.wh-stock-status{margin-top:10px}.wh-allocation{margin-top:10px}.wh-allocation summary{cursor:pointer;font-size:12px;color:#56684f}.wh-allocation small{margin-top:7px}

/* кабинеты для заказа на склад (вкладка «Точки») */
.z-adm { margin-top: 28px; }
.z-adm-name { display: flex; gap: 6px; align-items: center; margin: 0; }
.z-adm-name input { min-width: 220px; min-height: 36px; }
.z-adm td button { min-height: 34px; padding: 0 12px; font-size: 14px; }
.z-adm td .code { font-size: 18px !important; }
.z-adm-day { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.z-adm-day h3 { margin: 0 0 4px; font-size: 16px; }
.z-adm-day ul { margin: 8px 0 0; padding-left: 18px; }
.z-adm-day li { margin: 6px 0; }
.z-adm-day .pill { padding: 2px 8px; font-size: 12px; }
.z-adm-day .pill.bad { background: var(--bad); color: #fff; }
.z-adm-fix { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.z-adm-fix button, .z-adm-ok button { min-height: 34px; padding: 0 12px; font-size: 14px; }
.z-adm-pick { margin-top: 8px; display: grid; gap: 6px; max-width: 520px; }
.z-adm-pick input { min-height: 38px; }
.z-adm-hit { text-align: left; min-height: 36px; font-weight: 400; }
.z-adm-hit small { color: var(--muted); }
.z-adm-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; }
.z-adm-ok input { width: 110px; min-height: 36px; }
.z-adm-ok input[name=name] { width: 260px; }
.z-adm-ok select { min-height: 36px; }
.z-adm-day img { display: block; width: 96px; height: 96px; margin-top: 4px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.sku-tag { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--line); color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
