:root {
  --bg: #f6f1ea; --card: #ffffff; --ink: #2b2118; --muted: #7c6d5f; --line: #e8ddcf;
  --brand: #8a5a2b; --brand-2: #b07a45; --brand-soft: #f1e4d3; --ok: #2f7d4f; --ok-soft: #e3f2e8;
  --warn: #a8641b; --warn-soft: #fbefdc; --bad: #b3392f; --bad-soft: #f9e3e0;
  --card-x: 0; --field: #ffffff; --brand-ink: #ffffff; --radius: 16px; --shadow: 0 1px 2px rgba(60,40,20,.06), 0 4px 14px rgba(60,40,20,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body { min-height: 100vh; -webkit-tap-highlight-color: transparent; }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 96px; }
h1 { font-size: 22px; margin: 4px 0 4px; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 18px 0 10px; }
p.sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.brand b { display: block; font-size: 15px; }
.brand small { color: var(--muted); font-size: 12px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
input[type=text], input[type=tel], input[type=password], input[type=search], input[type=number], select {
  width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px;
  font: inherit; background: var(--field); color: var(--ink); outline: none; }
input:focus, select:focus { border-color: var(--brand-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 18px;
  border: 0; border-radius: 14px; font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: var(--brand-soft); color: var(--brand); }
.btn.ok { background: var(--ok); }
.btn.bad { background: var(--bad-soft); color: var(--bad); }
.btn.sm { height: 40px; font-size: 14px; border-radius: 11px; width: auto; }
.sections { display: grid; gap: 10px; }
.sec { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line);
  border-radius: 14px; background: var(--card); cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.sec .num { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; flex: none; }
.sec b { display: block; font-size: 15px; }
.sec small { color: var(--muted); font-size: 13px; }
.sec[aria-pressed=true] { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.sec[aria-pressed=true] .num { background: var(--brand); color: var(--brand-ink); }
.err { color: var(--bad); font-size: 14px; margin-top: 12px; min-height: 1em; }
.banner { border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.pending { text-align: center; padding: 28px 18px; }
.pending .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--warn-soft); color: var(--warn);
  display: grid; place-items: center; margin: 0 auto 12px; font-size: 30px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.rc { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; cursor: pointer; border: 0;
  padding: 0; text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; }
.rc img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #f4ede3; display: block; }
.rc .b { padding: 9px 10px 11px; }
.rc .n { font-weight: 600; font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.rc .w { color: var(--brand); font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
/* "N ta mumkin": how many the warehouse stock allows (shef 2026-11-16) */
.rc .cap { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 99px; font-size: 12px; font-weight: 700;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc .cap.ok { background: var(--ok-soft); color: var(--ok); }
.rc .cap.no { background: var(--bad-soft); color: var(--bad); }
.rc .cap.wait { background: var(--bg); color: var(--muted); font-weight: 500; }
.rc { min-width: 0; }
.rc.no { opacity: .55; filter: grayscale(.6); }
.grid-h { grid-column: 1 / -1; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 700;
  border-top: 1.5px dashed var(--line); padding-top: 12px; }
.cap-meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.ux-h, .ux { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 5px 0; }
.ux-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line); }
.ux + .ux { border-top: 1px solid var(--line); }
.ux span:first-child { color: var(--ink); overflow-wrap: anywhere; }
.ux > span:nth-child(2), .ux > b, .ux-h > span:not(:first-child) { text-align: right; white-space: nowrap; }
.ux.short, .ux.short span:first-child, .ux.short b { color: var(--bad); }
.ux-f { margin-top: 8px; padding-top: 8px; border-top: 1.5px solid var(--line); font-size: 15px; font-weight: 700; }
.ux-f.ok { color: var(--ok); } .ux-f.no { color: var(--bad); }
.ux-f small { font-weight: 500; color: var(--muted); font-size: 12px; }
.ux-wait { margin-top: 6px; font-style: italic; }
.ux-first { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--line); color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.capwarn { color: var(--warn); font-size: 13.5px; margin-top: 8px; min-height: 0; }
.capwarn:empty { display: none; }
.sheet-bg { position: fixed; inset: 0; background: rgba(30,20,10,.45); display: none; z-index: 10; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-radius: 22px 22px 0 0; z-index: 11;
  max-width: 560px; margin: 0 auto; padding: 14px 16px 22px; transform: translateY(105%); transition: transform .22s ease, visibility .22s;
  max-height: 92vh; overflow: auto; visibility: hidden; }
.sheet.open { transform: none; visibility: visible; }
.sheet-bg.open { display: block; }
.grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 12px; }
.sh-head { display: flex; gap: 12px; align-items: center; }
.sh-head img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: #f4ede3; flex: none; }
.sh-head b { font-size: 16px; display: block; }
.uses { margin: 12px 0 0; padding: 10px 12px; background: var(--bg); border-radius: 12px; font-size: 13px; color: var(--muted); }
.uses b { color: var(--ink); font-weight: 600; }
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; gap: 10px; margin-top: 8px; }
.stepper button { height: 56px; border-radius: 14px; border: 0; background: var(--brand-soft); color: var(--brand);
  font-size: 26px; font-weight: 600; cursor: pointer; }
.stepper input { height: 56px; text-align: center; font-size: 24px; font-weight: 700; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 2px; font-size: 14px; color: var(--muted); }
.total b { font-size: 20px; color: var(--ink); }
.toast { position: fixed; left: 16px; right: 16px; bottom: 18px; max-width: 528px; margin: 0 auto; padding: 14px 16px;
  border-radius: 14px; background: #24331f; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 20;
  font-size: 14px; display: none; white-space: pre-line; }
.toast.show { display: block; }
.toast.bad { background: #5a1f1a; }
.tabs { display: flex; gap: 6px; background: var(--brand-soft); padding: 4px; border-radius: 12px; margin: 6px 0 12px; }
.tabs button { flex: auto; padding: 0 6px; white-space: nowrap; height: 38px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 13.5px;
  font-family: inherit; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.wk { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; margin-bottom: 10px; }
.wk .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.wk b { font-size: 15.5px; }
.wk .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.wk .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.wk select { height: 40px; margin-top: 10px; font-size: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; word-break: break-all; }
details.call { background: var(--card); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
details.call summary { cursor: pointer; font-size: 13px; font-weight: 600; }
details.call pre { white-space: pre-wrap; margin: 8px 0 0; }
.hidden { display: none !important; }
.search { margin-top: 4px; }

/* Telegram Mini App: native MainButton/BackButton replace the in-page ones */
.in-tg .tg-hide { display: none !important; }
.in-tg .wrap { padding-bottom: 24px; }

/* My entries */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; min-width: 0; }
.stat small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.stat b { display: block; font-size: 18px; margin: 2px 0; }
.stat span { color: var(--muted); font-size: 12.5px; }
.stat.wide { grid-column: 1 / -1; }
.day-h { font-size: 13px; font-weight: 700; color: var(--muted); margin: 16px 2px 8px; text-transform: uppercase; letter-spacing: .03em; }
.en { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 8px; }
.en .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.en .n { font-weight: 600; font-size: 14.5px; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.en .meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.en .wg { font-weight: 700; font-size: 14px; white-space: nowrap; }
.en.cancelled .n, .en.cancelled .wg { text-decoration: line-through; color: var(--muted); }
.en .btn.sm { margin-top: 10px; width: 100%; }
.top .btn.sm { flex: none; white-space: nowrap; }
/* long kind titles ("1 BOLIM · Zagatofka + svarka") must not push the header past the screen */
.top > div { min-width: 0; }
.top > div > .chip { white-space: normal; max-width: 100%; }
.pay-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; font-size: 13.5px; }
.pay-g span { background: var(--bg); border-radius: 10px; padding: 8px; min-width: 0; overflow-wrap: anywhere; }
.pay-g small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; }
/* work sites: PROM ZONA / PARSEZD / Honadonlar group headers */
.grp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 18px 2px 8px; }
.grp-h b { font-size: 16px; }
.grp-h span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.grp-t { margin: 0 0 10px; }
.grp-t span { background: var(--card); box-shadow: var(--shadow); }
.empty.sm { padding: 8px 10px 4px; }
.wk .two { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 8px; }
.wk .two select { min-width: 0; }
/* dastafchik: one-screen transfer */
.mv-route { display: grid; gap: 4px; padding: 6px 14px 14px; position: relative; }
.mv-route label { margin-top: 10px; }
.mv-route select { height: 52px; font-size: 16px; font-weight: 600; -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.mv-route select.bad { border-color: var(--bad); }
.mv-swap { justify-self: end; width: 44px; height: 34px; margin: 8px 0 -30px; border-radius: 10px; border: 0;
  background: var(--brand-soft); color: var(--brand); font-size: 18px; font-weight: 700; cursor: pointer; position: relative; z-index: 1; }
.mv-route .err { margin-top: 8px; }
.meta.warn { color: var(--warn); font-weight: 600; }
.mv-block { margin: 10px 0 0; font-size: 14px; line-height: 1.35; font-weight: 600; }
#mv-pending-t { white-space: pre-line; display: block; }
.mv-make { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px;
  background: var(--brand-soft); cursor: pointer; }
.mv-make input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.mv-make b { display: block; font-size: 14.5px; }
.mv-make small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; overflow-wrap: anywhere; }
.mv-route label.mv-make { margin-top: 12px; }
.pr-i small.mk { color: var(--brand); font-weight: 600; }
.pr-i small.mk.no { color: var(--muted); font-weight: 400; }
.mv-mat { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px dashed var(--line, #d9cbb8);
  font-size: 13.5px; line-height: 1.4; }
.mv-mat div { display: flex; justify-content: space-between; gap: 10px; }
.mv-mat span { min-width: 0; overflow-wrap: anywhere; }
.mv-mat b { white-space: nowrap; }
.mv-mat .neg { color: var(--bad); }
.mv-mat small { display: block; color: var(--muted); font-size: 12px; }
.mv-models { margin: 10px 0 0; }
.mv-gh { margin: 14px 2px 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mv-meta { color: var(--muted); font-size: 13px; margin: 10px 2px 8px; }
.pr { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  padding: 10px 10px 10px 14px; margin-bottom: 8px; border: 1.5px solid transparent; }
.pr.sel { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 55%, var(--card)); }
.pr-i { flex: 1; min-width: 0; }
.pr-i b { display: block; font-size: 14.5px; line-height: 1.25; overflow-wrap: anywhere; }
.pr-i small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pr-i small .amt { color: var(--ink); font-weight: 700; }
.pr-i .pr-err { color: var(--bad); font-weight: 600; }
.pr-i .pr-err:empty { display: none; }
.pr-q { display: grid; grid-template-columns: 44px 58px 44px; gap: 6px; flex: none; }
.pr-q .pm { height: 46px; border-radius: 12px; border: 0; background: var(--brand-soft); color: var(--brand);
  font-size: 24px; font-weight: 600; cursor: pointer; padding: 0; }
.pr-q .pm:disabled { opacity: .35; cursor: default; }
.pr-q input[type=text] { height: 46px; padding: 0 4px; text-align: center; font-size: 18px; font-weight: 700; border-radius: 12px; }
.mv-bar { position: sticky; bottom: 0; margin: 12px -16px 0; padding: 10px 16px 14px; background: var(--card);
  box-shadow: 0 -4px 16px rgba(60,40,20,.10); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; z-index: 5; }
.mv-sum b { display: block; font-size: 15px; }
.mv-sum small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.mv-bar .btn.ok { grid-column: 1 / -1; grid-row: 2; }
.mv-items { margin-top: 8px; display: grid; gap: 4px; font-size: 13.5px; }
.mv-items div { display: flex; justify-content: space-between; gap: 10px; }
.mv-items span { min-width: 0; overflow-wrap: anywhere; }
.mv-items b { white-space: nowrap; }
.meta.bad { color: var(--bad); }
/* admin sale: models -> sizes / colours -> cart (shef 2026-11-17) */
.sa-head { display: grid; gap: 0; padding: 4px 14px 14px; margin-bottom: 12px; }
.sa-head select { height: 50px; font-weight: 600; }
.sa-cust { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 50px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink); font: inherit;
  font-weight: 600; cursor: pointer; text-align: left; width: 100%; min-width: 0; }
.sa-cust span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-cust small { color: var(--brand); font-size: 13px; flex: none; }
.sa-m { padding: 12px 14px; }
.sa-m .sa-mi { flex: 1; min-width: 0; }
.sa-m .sa-mi b { overflow-wrap: anywhere; }
.sa-m small .ok { color: var(--ok); font-weight: 700; }
.sa-m .sa-go { color: var(--muted); font-size: 24px; flex: none; }
.sa-m.none { opacity: .6; }
.sa-mhead { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sa-mhead b { font-size: 18px; min-width: 0; overflow-wrap: anywhere; }
.pr.none { opacity: .55; }
.pr-i .sa-kit { font-size: 11.5px; overflow-wrap: anywhere; }
.ct-l .row { align-items: center; }
.ct-x { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--bad-soft); color: var(--bad);
  font-size: 15px; cursor: pointer; }
.ct-g { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: end; margin-top: 4px; }
.ct-g label { margin: 8px 0 4px; font-size: 12px; }
.ct-g .pr-q { grid-template-columns: 40px 50px 40px; }
.ct-g .pr-q.svc { grid-template-columns: 34px 80px 34px; }  /* seryo: a fraction (127.4) must fit */
.ct-g .pr-q.svc input[type=text] { font-size: 16px; }
.ct-g .ct-p { height: 46px; font-size: 17px; font-weight: 700; text-align: right; }
.ct-sum { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.ct-sum b { color: var(--ink); font-size: 15px; white-space: nowrap; }
.ct-pay { margin-top: 12px; }
.ct-pay .tabs { margin-top: 0; }
.cs-title { display: block; font-size: 17px; margin-bottom: 8px; }
#cs-list { max-height: 52vh; overflow: auto; gap: 6px; }
/* sale v2 (shef 2026-11-20): warehouse switch, size chips, customers listed at once, price hint, payment modes */
.sa-whs { margin: 2px 0 6px; }
.sa-whs button { height: 44px; font-size: 15px; }
.sa-cust.set { border-color: var(--brand); background: var(--brand-soft); }
.sa-div { margin: 14px 2px 2px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.sz-h { margin: 6px 2px 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sz-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.sz { position: relative; display: grid; gap: 1px; min-width: 0; max-width: 100%; padding: 8px 12px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sz b { font-size: 14.5px; white-space: nowrap; }
.sz small { font-size: 11.5px; color: var(--ok); font-weight: 600; white-space: nowrap; }
.sz.none { opacity: .5; }
.sz.none small { color: var(--muted); font-weight: 400; }
.sz[aria-pressed=true] { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); opacity: 1; }
.sz i { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--brand); color: var(--brand-ink); font-style: normal; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.pr-i .sa-pr { color: var(--brand); font-weight: 600; }
.pr-i .sa-pr i { font-style: normal; font-weight: 400; color: var(--muted); }
.cs-c { padding: 10px 12px; }
.cs-c .num { width: 32px; height: 32px; }
.cs-c .cs-n { min-width: 0; flex: 1; }
.cs-c b { overflow-wrap: anywhere; }
.cs-c .warn { color: var(--warn); font-weight: 600; }
.cs-c.on { border-color: var(--brand); background: var(--brand-soft); }
.cs-add { width: 100%; margin-top: 8px; }
.cs-new label small { font-weight: 400; }
.cs-new .btn.ok { margin-top: 4px; }
.linkbtn { border: 0; background: none; padding: 0 2px; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }
.ct-hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.ct-g .ct-p.sug { color: var(--brand); }
.ct-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ct-modes button { padding: 0 2px; font-size: 12.5px; }
.ct-modes button.off { opacity: .45; }
.ct-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ct-two label { margin: 8px 0 4px; font-size: 12px; }
.ct-two input { height: 46px; font-size: 17px; font-weight: 700; text-align: right; }
#ct-debtrow b { white-space: nowrap; font-size: 18px; }
#ct-debtrow span { min-width: 0; }
#ct-debtrow.bad b { color: var(--bad); }
b.warn { color: var(--warn); }
#sl-list { margin-top: 12px; }
/* admin "✍️ Ish kiritish" (static/admin_ish.js) */
button.wk.ai-w { display: block; width: 100%; text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; }
button.wk.ai-w .chip { margin-top: 8px; font-size: 12px; }
.ai-go { font-size: 24px; color: var(--muted); line-height: 1; }
.ai-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.ai-head > div { min-width: 0; }
.ai-head small { display: block; color: var(--muted); font-size: 12px; }
.ai-head b { display: block; font-size: 16px; overflow-wrap: anywhere; }
.ai-head .meta { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ai-head .btn { flex: none; width: auto; }
.ai-for { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.ai-for b { color: var(--ink); }
/* 🛒 Sotuv v3 (shef 2026-11-22): Komplekt / Stol / Stul -> variant -> size -> colour tiles -> add sheet */
.sa-top { margin: 6px 0 2px; }
.sa-topr { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-tm { height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--brand); background: var(--brand-soft);
  color: var(--brand); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-tm.none { opacity: .55; }
.sa-mhead .chip { flex: none; margin-left: auto; }
.sa-mhead .btn.sm { flex: none; padding: 0 12px; }
.sa-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 4px 0 10px; }
.sa-kinds button { height: 56px; display: grid; place-content: center; gap: 1px; padding: 0 2px; font-size: 15px; }
.sa-kinds button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-kinds button small { font-size: 11.5px; font-weight: 600; color: var(--ok); }
.sa-kinds button[aria-selected=true] small { color: var(--ok); }
.sa-var { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 0 0 10px; }
.sa-var button { height: 42px; }
.sa-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.cl { position: relative; display: grid; gap: 2px; align-content: start; min-width: 0; min-height: 84px; padding: 10px 12px;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit;
  text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.cl b { font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.cl small { font-size: 12.5px; color: var(--muted); }
.cl small.ok { color: var(--ok); font-weight: 700; }
.cl .cl-c { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.cl .cl-p { color: var(--brand); font-weight: 600; }
.cl.none { opacity: .5; box-shadow: none; }
.cl.sel { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); opacity: 1; }
.cl.gone { border-style: dashed; box-shadow: none; background: transparent; cursor: default; opacity: .7; }
.cl.gone small { color: var(--bad); }
.cl i { position: absolute; top: -7px; right: -7px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  background: var(--brand); color: var(--brand-ink); font-style: normal; font-size: 13px; font-weight: 700; line-height: 24px; text-align: center; }
.sa-miss { margin-top: 10px; font-size: 12.5px; }
.sa-miss:empty { display: none; }
.ad-kind { font-size: 13px; font-weight: 700; color: var(--brand); }
.ad-title { display: block; font-size: 18px; line-height: 1.25; margin-top: 2px; overflow-wrap: anywhere; }
.ad-stock { margin-top: 10px; padding: 10px 12px; background: var(--bg); border-radius: 12px; font-size: 14px; color: var(--muted); }
.ad-stock b { color: var(--ok); }
.ad-stock .warn { color: var(--warn); }
.ad-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.ad-quick button { height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font: inherit;
  font-weight: 700; font-size: 16px; color: var(--ink); cursor: pointer; }
.ad-quick button[aria-pressed=true] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.ad-quick button:disabled { opacity: .35; }
#ad-p { height: 52px; font-size: 20px; font-weight: 700; text-align: right; }
#ad-p.sug { color: var(--brand); }
#ad .total { margin: 12px 2px 4px; }
.ct-k { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.ct-n { display: block; margin-top: 2px; font-weight: 700; font-size: 15.5px; overflow-wrap: anywhere; }
.ct-n span { display: block; font-weight: 600; font-size: 14px; color: var(--ink); }
#ct-where b { color: var(--ink); }

/* manual wage (5 BOLIM chevars): the worker types the price of one piece */
.pricebox input { height: 56px; width: 100%; text-align: center; font-size: 22px; font-weight: 700; }
.pricebox .qf { margin-top: 8px; width: 100%; min-height: 44px; border: 1px dashed var(--brand); border-radius: 12px;
  background: var(--brand-soft); color: var(--brand); font-size: 15px; font-weight: 600; }
.total small { display: block; font-size: 13px; margin-top: 2px; }
.total small:empty { display: none; }
