/* Ottensten B2B — stils. Poppins (OFL) un Lucide ikonas glabājas lokāli. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/poppins-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/poppins-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/poppins-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/poppins-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --panel: #ececea;
  --line: #dcdcd8;
  --line-soft: #e9e9e6;
  --ink: #141414;
  --ink-2: #4a4a47;
  --ink-3: #6b6b67;
  --red: #d4161d;          /* pogas un aktīvais stāvoklis (5,3:1 ar baltu) */
  --red-hover: #b51218;
  --red-ink: #b51218;      /* sarkans teksts uz balta */
  --red-wash: #fdecec;
  --ok: #1d6b3a;
  --ok-wash: #e6f3ea;
  --warn: #8a5a00;
  --warn-wash: #fbf1dc;
  --info: #1f4f9c;
  --info-wash: #e7eefa;
  --focus: #1565c0;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 6px 18px -8px rgba(20, 20, 20, .14);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
}
::selection { background: #141414; color: #fff; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 1.5rem; font-weight: 600; }
h2 { font-size: 1.125rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.num { text-align: right; white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }

/* Prototipa josla */
.proto-bar {
  background: #141414; color: #f2f2f0; font-size: 12.5px;
  display: flex; align-items: center; gap: 16px; padding: 6px 20px; flex-wrap: wrap;
}
.proto-bar .stripe { display: inline-flex; gap: 3px; }
.proto-bar .stripe i { width: 12px; height: 6px; border-radius: 1px; transform: skewX(-18deg); display: block; }
.proto-bar .note { color: #bdbdb8; }
.proto-bar .switch { margin-left: auto; display: inline-flex; background: #2a2a28; border-radius: 6px; padding: 2px; }
.proto-bar .switch button {
  font: inherit; color: #d6d6d2; background: none; border: 0; padding: 4px 12px; border-radius: 4px; cursor: pointer;
}
.proto-bar .switch button[aria-pressed="true"] { background: #f2f2f0; color: #141414; font-weight: 500; }
.proto-bar .linkbtn { font: inherit; background: none; border: 0; color: #bdbdb8; text-decoration: underline; cursor: pointer; padding: 0; }
.proto-bar .linkbtn:hover { color: #fff; }

/* Galvene */
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 24px; padding: 0 20px; height: 60px;
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 26px; width: auto; }
.brand span { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); border-left: 1px solid var(--line); padding-left: 10px; }
.nav { display: flex; gap: 4px; height: 100%; }
.nav a {
  display: flex; align-items: center; gap: 8px; padding: 0 12px; text-decoration: none; color: var(--ink-2);
  border-bottom: 2px solid transparent; font-weight: 500;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.nav .count { background: var(--red); color: #fff; font-size: 11px; font-weight: 600; border-radius: 9px; padding: 0 6px; line-height: 18px; }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-weight: 600; font-size: 12px; color: var(--ink); }

main { max-width: 1240px; margin: 0 auto; padding: 24px 20px 80px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--ink-3); margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); text-decoration: none; font-size: 13px; margin-bottom: 8px; }
.crumb:hover { color: var(--ink); }

/* Pogas */
.btn {
  font: 500 14px/1 var(--font); display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 38px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out;
}
.btn:hover { border-color: #b9b9b4; background: #fafaf8; color: var(--ink); }
.btn:active { background: var(--panel); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #333; color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--panel); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 32px; padding: 0; height: 32px; }
.btn.danger:hover { color: var(--red-ink); border-color: #e8b4b6; background: var(--red-wash); }

/* Virsmas */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-body { padding: 16px; }

/* Formas */
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.input, select.input, textarea.input {
  font: 400 14px/1.4 var(--font); color: var(--ink); background: #fff;
  border: 1px solid #c9c9c4; border-radius: var(--radius); height: 38px; padding: 0 10px; width: 100%;
  transition: border-color .15s ease-out;
}
textarea.input { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; }
.input:hover { border-color: #a9a9a4; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,20,20,.08); }
.input::placeholder { color: #8a8a85; }
.input.sm { height: 32px; font-size: 13px; }
.input.price { width: 92px; text-align: right; padding-right: 8px; }
.input.pct { width: 64px; text-align: right; }
.input.invalid { border-color: var(--red); background: var(--red-wash); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 16px; }
.hint { font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.field-error { font-size: 12.5px; color: var(--red-ink); font-weight: 500; }
.search { position: relative; flex: 1; min-width: 220px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search .input { padding-left: 36px; }
.with-suffix { position: relative; display: inline-flex; align-items: center; }
.with-suffix span { position: absolute; right: 8px; color: var(--ink-3); font-size: 12.5px; pointer-events: none; }
.with-suffix .input { padding-right: 22px; }

/* Tabulas */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th {
  text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-3); padding: 10px 12px;
  border-bottom: 1px solid var(--line); background: #fbfbfa; white-space: nowrap; position: sticky; top: 0;
}
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.t tbody tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: #fafaf8; }
.t .thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: contain; background: #fff; border: 1px solid var(--line-soft); }
.t .thumb.ph { display: grid; place-items: center; color: var(--ink-3); background: var(--panel); }
.pname { font-weight: 500; line-height: 1.35; max-width: 460px; }
.pmeta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.strike { text-decoration: line-through; color: var(--ink-3); }

/* Statusi */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1;
  padding: 5px 8px; border-radius: 6px; background: var(--panel); color: var(--ink-2); white-space: nowrap;
}
.chip.ok { background: var(--ok-wash); color: var(--ok); }
.chip.warn { background: var(--warn-wash); color: var(--warn); }
.chip.info { background: var(--info-wash); color: var(--info); }
.chip.red { background: var(--red-wash); color: var(--red-ink); }
.chip.own { background: #141414; color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Cilnes */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button {
  font: 500 14px var(--font); background: none; border: 0; border-bottom: 2px solid transparent; color: var(--ink-3);
  padding: 10px 12px; cursor: pointer; white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }

/* Klienta galvene */
.client-head { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.facts { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 10px; color: var(--ink-2); font-size: 13px; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }

/* Preču izvēlne (no XML) */
.picker { border-top: 1px solid var(--line-soft); background: #fbfbfa; }
.picker-tools { display: flex; gap: 8px; padding: 12px 16px; flex-wrap: wrap; align-items: center; }
.picker-tools select.input { width: auto; min-width: 160px; }
.picker-list { max-height: 420px; overflow: auto; border-top: 1px solid var(--line-soft); background: #fff; }
.picker-foot {
  display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line-soft); flex-wrap: wrap;
  position: sticky; bottom: 0; background: #fbfbfa;
}
.pick-row { display: grid; grid-template-columns: 28px 44px 1fr auto auto; gap: 12px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.pick-row:hover { background: #fafaf8; }
.pick-row.added { opacity: .55; cursor: default; }
.pick-row input { width: 16px; height: 16px; accent-color: var(--ink); }

/* Klienta katalogs */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-chips button {
  font: 500 13px var(--font); border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.cat-chips button:hover { border-color: #b9b9b4; color: var(--ink); }
.cat-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.prow { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px 172px; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.prow:last-child { border-bottom: 0; }
.prow .thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: contain; border: 1px solid var(--line-soft); background: #fff; }
.prices { text-align: right; }
.prices .full { font-size: 12.5px; color: var(--ink-3); }
.prices .full s { text-decoration-thickness: 1px; }
.prices .yours { font-size: 17px; font-weight: 600; }
.prices .save { font-size: 12px; color: var(--ok); font-weight: 500; }
.stock { font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--warn); }
.qty { display: inline-flex; align-items: center; border: 1px solid #c9c9c4; border-radius: var(--radius); height: 38px; background: #fff; }
.qty button { width: 34px; height: 100%; border: 0; background: none; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; border-radius: var(--radius); }
.qty button:hover { background: var(--panel); color: var(--ink); }
.qty input { width: 48px; border: 0; text-align: center; font: 500 14px var(--font); height: 100%; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,20,20,.08); }
.buy { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.in-cart { font-size: 12px; color: var(--ok); font-weight: 500; text-align: right; margin-top: 4px; }

.cart-side { position: sticky; top: 80px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.cart-line:last-child { border-bottom: 0; }
.totals { display: grid; gap: 6px; font-size: 13.5px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-size: 16px; font-weight: 600; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }

.mgr-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 16px; }
.mgr-card .avatar { width: 40px; height: 40px; background: #141414; color: #fff; }

/* E-pasta paraugs */
.mail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.mail-meta { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-size: 13px; display: grid; gap: 4px; background: #fbfbfa; }
.mail-meta b { display: inline-block; min-width: 64px; color: var(--ink-3); font-weight: 500; }
.mail-body { padding: 22px; max-width: 680px; }
.mail-body .mlogo { height: 22px; width: auto; margin-bottom: 18px; }
.mail-body table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 14px 0; }
.mail-body th { text-align: left; font-weight: 500; color: var(--ink-3); border-bottom: 1px solid var(--line); padding: 6px 4px; }
.mail-body td { border-bottom: 1px solid var(--line-soft); padding: 7px 4px; }
.mail-body .mbtn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; padding: 10px 16px; border-radius: 6px; font-weight: 500; margin-top: 8px; }

/* Paziņojumi */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--info-wash); color: var(--info); font-size: 13px; }
.notice.ok { background: var(--ok-wash); color: var(--ok); }
.notice.warn { background: var(--warn-wash); color: var(--warn); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); opacity: 0;
  background: #141414; color: #fff; padding: 10px 16px; border-radius: var(--radius); font-size: 13.5px; z-index: 50;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); transition: opacity .2s ease-out, transform .2s ease-out; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.empty { padding: 40px 20px; text-align: center; color: var(--ink-2); display: grid; gap: 10px; justify-items: center; }
.empty svg { width: 28px; height: 28px; color: var(--ink-3); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.stack { display: grid; gap: 16px; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }

@media (max-width: 960px) {
  .shop { grid-template-columns: 1fr; }
  .cart-side { position: static; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  main { padding: 16px 16px 96px; }
  .topbar { gap: 12px; padding: 0 16px; overflow-x: auto; }
  .brand span, .who .name { display: none; }
  .nav a { padding: 0 8px; }
  .nav a .lbl { display: none; }
  .proto-bar { padding: 6px 16px; }
  .proto-bar .note { display: none; }
  .prow { grid-template-columns: 56px minmax(0, 1fr); }
  .prow .thumb { width: 56px; height: 56px; }
  .prow .prices, .prow .buyc { grid-column: 2; text-align: left; }
  .prow .buy { justify-content: flex-start; }
  .prow .in-cart { text-align: left; }
  .client-head { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .pick-row { grid-template-columns: 24px 40px 1fr; }
  .pick-row .num { grid-column: 3; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* labojumi pēc pirmās apskates */
.pname a { text-decoration: none; }
.pname a:hover { text-decoration: underline; }
.split { align-items: start; }
@media (max-width: 720px) {
  .who label { display: none; }
  .who select { max-width: 150px; }
}
.split-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.split-32 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.shop > *, .split > *, .stack > * { min-width: 0; }
@media (max-width: 960px) { .split-21, .split-32 { grid-template-columns: 1fr; } }

/* labojumi pēc neatkarīgās pārbaudes */
.toast.has-undo { pointer-events: auto; display: flex; gap: 14px; align-items: center; }
.toast button { font: 600 13.5px var(--font); color: #fff; background: none; border: 0; border-left: 1px solid #555; padding: 0 0 0 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.prow { grid-template-columns: 64px minmax(0, 1fr) 150px 228px; }
.prices .per { font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.prices .vatnote { font-size: 12px; color: var(--ink-3); }
.input::placeholder { color: var(--ink-3); }
.btn:disabled { opacity: 1; color: #8f8f8a; background: #f1f1ef; border-color: var(--line-soft); }
.pick-row.added { opacity: 1; background: #f7f7f5; }
.pick-row.added .pname, .pick-row.added .num { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mcart { display: none; }
@media (max-width: 960px) {
  .mcart {
    display: flex; align-items: center; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
    background: #141414; color: #fff; text-decoration: none; padding: 12px 14px; border-radius: 10px; font-size: 13.5px;
    box-shadow: 0 10px 28px -10px rgba(0,0,0,.5);
  }
  .mcart:hover { color: #fff; }
  .mcart .go { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; color: #fff; font-weight: 600; }
  .shop .shop-side { order: -1; }
  .shop .shop-side .card { display: none; }
}
@media (max-width: 720px) {
  .nav a .lbl { display: inline; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: -16px; }
  .cat-chips button { white-space: nowrap; }
  .prow { grid-template-columns: 56px minmax(0, 1fr); }
}

/* ---------- Īstais panelis ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.auth-card .logo { height: 28px; width: auto; margin-bottom: 22px; }
.auth-card h1 { font-size: 1.25rem; margin-bottom: 6px; }
.auth-card form { display: grid; gap: 14px; margin-top: 18px; }
.auth-card .btn { width: 100%; }
.auth-foot { margin-top: 16px; font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flash { margin-bottom: 16px; }
.inline { display: inline; margin: 0; }
.who form { margin: 0; }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.who .btn.icon { color: var(--ink-2); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.sku { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 16px; }
.t td form { margin: 0; }
.saving { opacity: .6; }
.input.saved { border-color: var(--ok); }
.tabs a { font: 500 14px var(--font); border-bottom: 2px solid transparent; color: var(--ink-3); padding: 10px 12px; white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.cb { accent-color: #141414; width: 16px; height: 16px; }
.input.file { height: auto; padding: 7px 8px; }
.card-head form.right { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.chipbtn { font: 500 13px var(--font); border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 6px 12px; text-decoration: none; white-space: nowrap; }
.chipbtn:hover { border-color: #b9b9b4; color: var(--ink); }
.chipbtn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.qty button:disabled { opacity: .35; cursor: default; }
[hidden] { display: none !important; }
/* Menedžera cenu tabula telefonā: katra prece kā kartīte */
@media (max-width: 720px) {
  #itemsTable thead { display: none; }
  #itemsTable, #itemsTable tbody { display: block; }
  #itemsTable tr { display: grid; grid-template-columns: 52px 1fr auto; gap: 6px 10px; padding: 12px; border-bottom: 1px solid var(--line-soft); }
  #itemsTable td { border: 0; padding: 0; }
  #itemsTable td:nth-child(1) { grid-row: span 2; }
  #itemsTable td:nth-child(2) { grid-column: 2; }
  #itemsTable td:nth-child(3) { display: none; }
  #itemsTable td:nth-child(4) { grid-column: 2; text-align: left; }
  #itemsTable td:nth-child(5), #itemsTable td:nth-child(6) { grid-column: auto; text-align: left; }
  #itemsTable td:nth-child(5) { grid-column: 2; }
  #itemsTable td:nth-child(6) { grid-column: 3; text-align: right; }
  #itemsTable td:nth-child(7) { grid-column: 3; grid-row: 1; }
  #itemsTable .thumb { width: 44px; height: 44px; }
}
.cat-chips { scrollbar-width: thin; }
/* Grozs telefonā */
@media (max-width: 720px) {
  #orderForm .t thead { display: none; }
  #orderForm .t, #orderForm .t tbody { display: block; }
  #orderForm .t tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px; border-bottom: 1px solid var(--line-soft); }
  #orderForm .t td { border: 0; padding: 0; }
  #orderForm .t td:nth-child(1) { display: none; }
  #orderForm .t td:nth-child(2) { grid-column: 1; }
  #orderForm .t td:nth-child(3) { grid-column: 2; grid-row: 1; }
  #orderForm .t td:nth-child(4) { grid-column: 1; }
  #orderForm .t td:nth-child(5) { grid-column: 2; grid-row: 2; align-self: center; }
  #orderForm .t td:nth-child(6) { grid-column: 2; grid-row: 3; justify-self: end; }
}
.testbar { background: #fbf1dc; color: #5c3d00; border-bottom: 1px solid #ecd9a8; padding: 8px 20px; font-size: 13px; display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; }
.testbar .ic { width: 16px; height: 16px; }
