@font-face {
  font-family: "Plex";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 85% 100%;
  font-display: swap;
  src: url(../fonts/plex-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 85% 100%;
  font-display: swap;
  src: url(../fonts/plex-latin.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 {
  --blue: #2a74d1;
  --blue-t: #1f66c1;
  --blue-d: #1a559f;
  --blue-l: #e8f0fa;
  --blue-ll: #f3f7fc;
  --red: #c8352a;
  --red-l: #fdeceb;
  --green: #2c7a39;
  --green-l: #e6f4e8;
  --amber: #7a5300;
  --amber-l: #fff6dc;
  --ink: #1c2631;
  --ink-2: #414c59;
  --ink-3: #5d6773;
  --line: #dce1e6;
  --line-2: #c5cdd5;
  --line-3: #eceff2;
  --bg: #f3f5f7;
  --bg-2: #f8f9fb;
  --white: #fff;
  --top: 56px;
  --nav-w: 214px;
  --r: 6px;
  --font: "Plex", "Segoe UI", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(20, 30, 45, .06), 0 2px 8px rgba(20, 30, 45, .05);
  --shadow-l: 0 8px 28px rgba(20, 30, 45, .18), 0 2px 6px rgba(20, 30, 45, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--bg); overflow-x: hidden; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
a { color: var(--blue-t); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
code { overflow-wrap: anywhere; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 1px 4px; }
kbd { font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; line-height: 18px; display: inline-block; white-space: nowrap; }
mark { background: #ffe58a; color: inherit; border-radius: 2px; padding: 0 1px; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-3); }
.sp { flex: 1; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--bg-2); border-color: #aeb8c3; text-decoration: none; }
.btn .ic { width: 16px; height: 16px; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-xs { height: 26px; padding: 0 8px; font-size: 12.5px; }
.btn-lg { height: 42px; font-size: 15px; padding: 0 18px; }
.btn-p { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-p:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn-d { background: var(--red); border-color: var(--red); color: #fff; }
.btn-d:hover { background: #a92c22; border-color: #a92c22; }
.btn-dl { color: var(--red); }
.btn-dl:hover { background: var(--red-l); border-color: #e7b3ae; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg); border-color: var(--line); color: var(--ink-3); cursor: not-allowed; }
.btn kbd { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); margin-left: 4px; }
.ib { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: var(--r); background: none; color: var(--ink-2); flex: none; }
.ib:hover { background: var(--bg-2); border-color: var(--line); color: var(--ink); }
.ib:disabled { color: #a3abb4; cursor: not-allowed; background: none; border-color: transparent; }
.ib-xs { width: 22px; height: 22px; }
.ib-xs .ic { width: 14px; height: 14px; }
.ib-del:hover { color: var(--red); background: var(--red-l); border-color: #efc6c2; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--blue-t); font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn:hover { color: var(--blue-d); }

/* ---------- form fields ---------- */
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld > span:first-child { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.fld > span i { color: var(--red); font-style: normal; }
input[type=text], input[type=search], input[type=password], input[type=tel], input[type=email], input:not([type]), select, textarea { height: 34px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; padding: 0 10px; min-width: 0; width: 100%; }
textarea { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
select { padding-right: 6px; }
input::placeholder, textarea::placeholder { color: #6f7883; }
input[aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.err { color: var(--red); font-size: 12.5px; font-style: normal; }
.hint { color: var(--ink-3); font-size: 12.5px; }
.warn { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--amber); background: var(--amber-l); border: 1px solid #f0dca0; border-radius: 4px; padding: 6px 8px; }
.warn .ic { width: 16px; height: 16px; margin-top: 1px; }
.inp-ic { position: relative; flex: 1; min-width: 0; }
.inp-ic .ic { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.inp-ic input { padding-left: 32px; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); flex: none; }

/* switch */
.sw-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 3px 2px; border-radius: 4px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.sw { position: relative; width: 32px; height: 18px; border-radius: 9px; background: #a8b1bb; flex: none; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.sw-btn[aria-checked="true"] .sw { background: var(--green); }
.sw-btn[aria-checked="true"] .sw::after { transform: translateX(14px); }
.sw-btn[aria-checked="true"] .sw-t { color: var(--green); font-weight: 600; }
.sw-btn[aria-checked="false"] .sw-t { color: var(--ink-3); }
.sw-btn.sw-blue[aria-checked="true"] .sw { background: var(--blue); }
.sw-btn.sw-blue .sw-t { color: var(--ink-2) !important; font-weight: 500 !important; }
.sw-lg { font-size: 14px; padding: 6px 2px; }

/* pills, tags */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; background: var(--green-l); color: var(--green); white-space: nowrap; }
.pill-off { background: #eef0f2; color: var(--ink-2); }
.pill-warn { background: var(--amber-l); color: var(--amber); }
.pill-blue { background: var(--blue-l); color: var(--blue-d); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 3px; background: #eef0f2; color: var(--ink-2); }
.tag-p { background: var(--blue); color: #fff; }
.tag-w { background: var(--amber-l); color: var(--amber); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #eef3f9 0%, #f6f7f9 55%, #eef1f4 100%); }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-l); padding: 32px 32px 24px; display: flex; flex-direction: column; gap: 14px; }
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.login-logo svg { width: 44px; height: 34px; }
.login-card h1 { font-size: 21px; }
.login-sub { color: var(--ink-3); margin-top: -6px; }
.login-card .btn-lg { margin-top: 4px; width: 100%; }
.login-note { font-size: 12.5px; color: var(--ink-3); text-align: center; }
.nojs { font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.nojs h2 { font-size: 14px; margin-top: 6px; color: var(--ink); }
.brand-t { font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.brand-t span { color: var(--blue-t); }

/* ---------- app shell ---------- */
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 4px; box-shadow: var(--shadow-l); }
.skip:focus { top: 8px; }
.top { position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 16px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
.nav-btn { display: none; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none !important; flex: none; width: calc(var(--nav-w) - 16px); }
.brand svg { width: 34px; height: 26px; flex: none; }
.brand-s { display: none; }
.gs { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); color: var(--ink-3); text-align: left; min-width: 0; }
.gs:hover { border-color: #aeb8c3; background: #fff; }
.gs-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); }
.top-shop { margin-left: auto; }
.user { display: flex; align-items: center; gap: 8px; flex: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-l); color: var(--blue-d); display: grid; place-items: center; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.user-n { font-weight: 500; }

.demo { display: flex; align-items: center; gap: 10px; padding: 7px 16px; background: var(--amber-l); border-bottom: 1px solid #f0dca0; color: #5c4400; font-size: 13px; }
.demo p { flex: 1; min-width: 0; }
.demo > .ic { width: 18px; height: 18px; color: var(--amber); }
.demo .btn { background: #fff; border-color: #e4cf90; color: #5c4400; }
.demo .btn:hover { background: #fffaf0; }

.shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: calc(100vh - var(--top) - 38px); }
.nav { position: sticky; top: var(--top); align-self: start; height: calc(100vh - var(--top)); display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 0 10px; height: 38px; border-radius: var(--r); color: var(--ink-2); font-weight: 500; text-decoration: none; }
.nav a span:first-of-type { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--blue-l); color: var(--blue-d); font-weight: 600; }
.nav a[aria-current="page"] .ic { color: var(--blue-t); }
.nb { font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--bg); border-radius: 9px; padding: 0 6px; line-height: 18px; font-variant-numeric: tabular-nums; }
.nav a[aria-current="page"] .nb { background: #fff; }
.nav-help { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--line-3); font-size: 12px; color: var(--ink-3); display: flex; flex-direction: column; gap: 6px; }
.nav-help-t { font-weight: 600; color: var(--ink-2); }
.nav-help kbd { margin-right: 4px; }
.credit { margin: 0; padding: 10px 10px 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-3); }
.nav .credit a { display: block; height: auto; padding: 0; border-radius: 0; background: none; color: var(--ink-2); font-weight: 600; }
.nav .credit a:hover { background: none; color: var(--blue-t); }
@media (min-width: 901px) { .nav { padding-bottom: 59px; } }
.nav-help + .credit { border-top: 1px solid var(--line-3); }
.credit a { color: var(--ink-2); font-weight: 600; }
.credit a:hover { color: var(--blue-t); text-decoration: underline; }
.credit-login { text-align: center; padding: 0; }
.main { padding: 20px 24px 64px; min-width: 0; outline: none; }
.loading { color: var(--ink-3); padding: 40px 0; }

/* view header */
.vh { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.vh > div:first-child { flex: 1; min-width: 220px; }
.vh-sub { color: var(--ink-3); margin-top: 4px; }
.vh-a { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card > h2 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h h2 { flex: 1; }

/* ---------- catalog view ---------- */
.cv { display: grid; grid-template-columns: clamp(300px, 23vw, 440px) minmax(0, 1fr); gap: 20px; align-items: start; }
.tp { position: sticky; top: calc(var(--top) + 12px); max-height: calc(100vh - var(--top) - 24px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); min-width: 0; }
.tp-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.tp-head h1 { flex: 1; font-size: 20px; }
.tp-tools { display: flex; gap: 6px; padding: 0 14px 10px; flex-wrap: wrap; }
.tp-tools .inp-ic { flex: 1 1 100%; }
.tp-tools .btn { flex: 1 1 0; }
.tp-tools input { height: 30px; font-size: 13px; }
.tp-legend { display: flex; justify-content: space-between; padding: 6px 16px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); border-top: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); background: var(--bg-2); text-transform: uppercase; letter-spacing: .04em; }
.tree { overflow: auto; flex: 1 1 auto; min-height: 160px; padding: 6px 0; overscroll-behavior: contain; }
.tp-hint { padding: 8px 14px 12px; border-top: 1px solid var(--line-3); font-size: 12px; color: var(--ink-3); }
.trow { position: relative; display: flex; align-items: center; gap: 2px; min-height: 34px; margin: 0 6px; padding: 0 6px 0 calc(4px + var(--d, 0) * 18px); border-radius: 5px; }
.trow::before { content: ""; position: absolute; left: calc(15px + (var(--d, 0) - 1) * 18px); top: 0; bottom: 0; border-left: 1px solid var(--line-3); }
.trow[data-depth="0"]::before { display: none; }
.trow:hover { background: var(--blue-ll); }
.trow.is-sel { background: var(--blue-l); }
.trow.is-sel::after { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--blue); }
.tw { width: 22px; height: 22px; border: 0; background: none; padding: 0; display: grid; place-items: center; border-radius: 4px; color: var(--ink-3); flex: none; }
.tw:hover { background: #dfe7f1; color: var(--ink); }
.tw .ic { width: 15px; height: 15px; transition: transform .12s; }
.tw[aria-expanded="true"] .ic { transform: rotate(90deg); }
.tw-sp { width: 22px; flex: none; }
.tname { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; border: 0; background: none; padding: 7px 4px; text-align: left; border-radius: 4px; color: var(--ink); cursor: pointer; }
.tname > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.trow[data-depth="0"] .tname { font-weight: 600; }
.trow.is-sel .tname { color: var(--blue-d); font-weight: 600; }
.trow.is-hid .tname > span:first-child { color: var(--ink-3); text-decoration: line-through; text-decoration-color: #a3abb4; }
.trow.is-hid.is-hid-p .tname > span:first-child { text-decoration: none; font-style: italic; }
.trow.is-alias .tname > span:first-child { font-style: italic; }
.t-ali { color: var(--blue-t); width: 15px; height: 15px; margin-left: 2px; }
.t-tgt { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; font-style: normal; min-width: 0; flex: 1 1 0; }
.tbadge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink-2); background: #eceff2; border: 0; border-radius: 3px; padding: 0 5px; line-height: 18px; flex: none; }
.tbadge .ic { width: 12px; height: 12px; }
button.tbadge:hover { background: #dfe3e8; }
.tcnt { flex: none; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-left: 6px; white-space: nowrap; }
.tcnt b { color: var(--ink-2); font-weight: 600; }
.tact { display: none; pointer-events: none; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); align-items: center; gap: 1px; padding-left: 18px; background: linear-gradient(90deg, rgba(243,247,252,0), var(--blue-ll) 16px); border-radius: 0 5px 5px 0; }
.trow.is-sel .tact { background: linear-gradient(90deg, rgba(232,240,250,0), var(--blue-l) 16px); }
.tact .ib { width: 26px; height: 26px; pointer-events: auto; }
.tact .ib .ic { width: 16px; height: 16px; }
.trow:hover .tact, .trow:focus-within .tact { display: flex; }
.trow.is-editing .tact { display: none !important; }
.tin { height: 28px !important; font-size: 13.5px; flex: 1; margin: 3px 4px; }
.trow.is-new { background: var(--blue-ll); gap: 6px; padding-right: 6px; }
.trow.is-drag { opacity: .45; }
.trow.drop-in { background: #d6e5f7; box-shadow: inset 0 0 0 2px var(--blue); }
.trow.drop-before { box-shadow: inset 0 2px 0 var(--blue); }
.trow.drop-after { box-shadow: inset 0 -2px 0 var(--blue); }
.tree-empty { padding: 20px 16px; color: var(--ink-3); }
@media (hover: none) {
  .tact { display: flex; position: static; transform: none; background: none !important; padding-left: 4px; }
  .tcnt { display: none; }
}

.cp { min-width: 0; }
.cp-head { margin-bottom: 14px; }
.bc { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; min-height: 18px; }
.bc span { color: #8a929c; }
.cp-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-title h2 { font-size: 22px; display: flex; align-items: center; gap: 8px; }
.cp-title h2 .ic { color: var(--blue-t); width: 20px; height: 20px; }
.cp-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cp-cnt { color: var(--ink-3); font-size: 13px; }
.note { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 8px 12px; background: var(--blue-ll); border: 1px solid #cfdff2; border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.note .ic { color: var(--blue-t); width: 16px; height: 16px; margin-top: 2px; }
.ov { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 16px; }
.ov a, .ov div.ov-i { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.ov a:hover { border-color: var(--blue); }
.ov b { display: block; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ov span { font-size: 13px; color: var(--ink-3); }
.empty-p { padding: 28px; background: #fff; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--ink-2); }
.empty-p h2 { margin-bottom: 6px; }

/* ---------- product table ---------- */
.tbl-host { container-type: inline-size; min-width: 0; }
.tt { background: #fff; border: 1px solid var(--line); border-radius: 8px 8px 0 0; border-bottom: 0; padding: 12px 14px 10px; }
.tt-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.tt-row + .tt-row { margin-top: 10px; }
.tt .fld { flex: 1 1 120px; }
.tt .fld-q { flex: 3 1 180px; }
.tt .fld-sm { flex: 1 1 110px; max-width: 170px; }
.tt .fld-price { flex: 1 1 140px; max-width: 180px; }
.tt input, .tt select { height: 32px; font-size: 13.5px; }
.fld-price > div { display: flex; gap: 6px; }
.fld-price input { width: 50%; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; font-size: 13px; cursor: pointer; user-select: none; white-space: nowrap; }
.chip:hover { border-color: #aeb8c3; }
.chip:has(input:checked) { background: var(--blue-l); border-color: #9fc0e8; color: var(--blue-d); font-weight: 500; }
.chip:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
.chip .cnt { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip input { width: 14px; height: 14px; }
.tmeta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 14px; background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0; font-size: 13px; color: var(--ink-2); }
.tmeta .tcount { font-weight: 600; color: var(--ink); }
.tmeta select { height: 28px; width: auto; font-size: 13px; }
.tmeta label { display: inline-flex; align-items: center; gap: 6px; }
.ord-info { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.bulk { position: sticky; top: var(--top); z-index: 15; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 14px; background: #183f6f; color: #fff; border: 1px solid #183f6f; font-size: 13px; }
.bulk strong { margin-right: 6px; }
.bulk .btn { height: 28px; font-size: 13px; padding: 0 10px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.bulk .btn:hover { background: rgba(255,255,255,.2); }
.bulk .btn-bd { background: #a92c22; border-color: #c8574d; }
.bulk .linkbtn { color: #cfe0f6; }
.bulk .ib { color: #fff; }
.bulk .ib:hover { background: rgba(255,255,255,.15); border-color: transparent; color: #fff; }
.twrap { position: relative; overflow-x: auto; background: #fff; border: 1px solid var(--line); }
.pt { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pt th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-2); background: #fbfcfd; border-bottom: 1px solid var(--line); padding: 0 8px; height: 38px; white-space: nowrap; }
.pt th.num { text-align: right; }
.th-s { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; padding: 4px 4px; margin: 0 -4px; border-radius: 4px; font-weight: 600; color: var(--ink-2); }
.th-s:hover { background: var(--bg); color: var(--ink); }
.th-s .ic { width: 14px; height: 14px; color: #8a929c; }
.th-s.on { color: var(--blue-d); }
.th-s.on .ic { color: var(--blue-t); }
.pt td { padding: 6px 8px; border-bottom: 1px solid var(--line-3); vertical-align: middle; }
.pt tbody tr:hover { background: #fafbfd; }
.pt tbody tr.is-sel { background: #eef4fc; }
.pt tbody tr.is-off .pname, .pt tbody tr.is-off .c-img img { opacity: .55; }
.pt tbody tr.drop-before td { box-shadow: inset 0 2px 0 var(--blue); }
.pt tbody tr.drop-after td { box-shadow: inset 0 -2px 0 var(--blue); }
.pt tbody tr.is-drag { opacity: .4; }
.c-chk { width: 36px; padding-left: 14px !important; }
.c-ord { width: 34px; padding: 0 2px !important; }
.c-ord .ib { display: grid; width: 26px; height: 20px; }
.c-ord + .c-img img, .c-ord + .c-img .noimg { cursor: grab; }
.c-ord .grip { display: inline-grid; place-items: center; width: 16px; height: 24px; color: #8a929c; cursor: grab; vertical-align: middle; }
.c-ord .grip .ic { width: 16px; height: 16px; }
.c-img { width: 56px; }
.c-img img, .noimg { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line-3); border-radius: 4px; background: #fff; display: grid; place-items: center; color: #a3abb4; }
.noimg .ic { width: 18px; height: 18px; }
.c-name { min-width: 200px; }
.pname { color: var(--ink); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pname:hover { color: var(--blue-t); }
.nm-brand { display: none; font-size: 12px; color: var(--ink-3); }
.c-code { white-space: nowrap; }
.code { overflow-wrap: anywhere; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; color: var(--ink-2); }
.dupw { display: inline-block; margin-left: 4px; color: var(--amber); font-weight: 700; font-size: 12px; background: var(--amber-l); border-radius: 3px; padding: 0 4px; }
.c-brand { white-space: nowrap; color: var(--ink-2); max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.c-kw { white-space: nowrap; color: var(--ink-2); }
.c-price { white-space: nowrap; width: 104px; }
.pbtn { border: 1px dashed transparent; background: none; padding: 4px 6px; margin: -4px -6px; border-radius: 4px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); cursor: text; }
.pbtn:hover { border-color: var(--line-2); background: #fff; }
.pin { width: 104px !important; height: 30px !important; text-align: right; font-weight: 600; }
.c-cat { min-width: 150px; }
.c-cat-in { max-width: 240px; }
.c-cat-in { display: flex; align-items: center; gap: 6px; }
.cpath { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--ink); line-height: 1.3; }
.cpath b, .cpath small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpath b { font-weight: 500; }
.cpath small { font-size: 11.5px; color: var(--ink-3); }
.badge-b { flex: none; border: 1px solid #9fc0e8; background: var(--blue-l); color: var(--blue-d); border-radius: 10px; padding: 0 7px; height: 20px; font-size: 12px; font-weight: 600; }
.badge-b:hover { background: #d6e5f7; }
.c-st { width: 110px; }
.c-act { width: 72px; white-space: nowrap; text-align: right; padding-right: 10px !important; }
.c-act .ib { width: 28px; height: 28px; }
.c-act .ib .ic { width: 16px; height: 16px; }
.t-empty { padding: 36px 16px !important; text-align: center; color: var(--ink-3); }
.pager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; font-size: 13px; color: var(--ink-2); }
.pager .pg-i { font-variant-numeric: tabular-nums; }
@container (max-width: 1040px) {
  .c-brand { display: none; }
  .nm-brand { display: block; }
}
@container (max-width: 960px) {
  .c-st .sw-t { display: none; }
  .c-st { width: 52px; }
  .c-name { min-width: 160px; }
  .c-cat-in { max-width: 160px; }
  .c-img { width: 50px; }
  .c-act { width: 62px; padding-right: 6px !important; }
  .c-act .ib { width: 26px; height: 26px; }
  .pt td, .pt th { padding-left: 6px; padding-right: 6px; }
  .c-chk { padding-left: 10px !important; }
}

/* popover / menu */
.pop { position: absolute; z-index: 60; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow-l); min-width: 220px; max-width: min(420px, calc(100vw - 16px)); padding: 6px; font-size: 13px; }
.pop-h { font-weight: 600; font-size: 12px; color: var(--ink-3); padding: 6px 8px 4px; text-transform: uppercase; letter-spacing: .04em; }
.pop-l { list-style: none; margin: 0; padding: 0; }
.pop-l li { display: flex; gap: 6px; align-items: baseline; padding: 6px 8px; border-radius: 4px; }
.pop-l li:hover { background: var(--bg-2); }
.pop-f { display: block; padding: 8px; border-top: 1px solid var(--line-3); margin-top: 4px; }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: none; padding: 7px 10px; border-radius: 4px; text-align: left; font-size: 13.5px; color: var(--ink); }
.menu button:hover, .menu button:focus-visible { background: var(--blue-l); outline: none; }
.menu button .ic { width: 16px; height: 16px; color: var(--ink-3); }
.menu button.danger { color: var(--red); }
.menu button.danger .ic { color: var(--red); }
.menu button kbd { margin-left: auto; }
.menu hr { border: 0; border-top: 1px solid var(--line-3); margin: 4px 0; }

/* ---------- dialogs ---------- */
dialog.dlg { border: 0; padding: 0; border-radius: 10px; box-shadow: var(--shadow-l); width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 48px); color: var(--ink); overflow: hidden; }
dialog.dlg-w { width: min(640px, calc(100vw - 24px)); }
dialog.dlg::backdrop { background: rgba(20, 30, 45, .45); }
.dlg-in { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.dlg-h { display: flex; align-items: center; gap: 10px; padding: 16px 16px 8px 20px; }
.dlg-h h2 { flex: 1; font-size: 17px; }
.dlg-b { padding: 4px 20px 16px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.dlg-b ul { margin: 0; padding-left: 18px; }
.dlg-b li + li { margin-top: 3px; }
.dlg-a { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line-3); background: var(--bg-2); flex-wrap: wrap; }
.dlg-intro { color: var(--ink-2); }
.dlg-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dlg-row .fld { flex: 1 1 160px; }
.pk { border: 1px solid var(--line); border-radius: 6px; max-height: min(52vh, 460px); overflow: auto; padding: 4px; }
.pk-i { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: left; padding: 6px 8px 6px calc(8px + var(--d, 0) * 18px); border-radius: 4px; font-size: 13.5px; color: var(--ink); }
.pk-i:hover:not(:disabled), .pk-i:focus-visible { background: var(--blue-l); outline: none; }
.pk-i:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); }
.pk-i .ic { width: 16px; height: 16px; color: var(--ink-3); }
.pk-i span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-i small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pk-i em { font-size: 11.5px; color: var(--ink-3); }
.pk-i:disabled { color: var(--ink-3); cursor: not-allowed; }
.pk-i.is-cur { font-weight: 600; }
.pk-i.is-cur::after { content: "pašreizējā"; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.pk-e { padding: 16px; color: var(--ink-3); }
.pct-prev { font-size: 13px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.pct-prev div { display: flex; gap: 12px; padding: 6px 10px; border-top: 1px solid var(--line-3); }
.pct-prev div:first-child { border-top: 0; }
.pct-prev span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.pct-prev b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.del-sum { background: var(--red-l); border: 1px solid #f2c4bf; border-radius: 6px; padding: 10px 12px; color: #5f1a14; }

/* palette */
dialog.pal { width: min(640px, calc(100vw - 24px)); margin-top: 10vh; }
dialog.pal .dlg-h { display: none; }
dialog.pal .dlg-b { padding: 0; gap: 0; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.pal-in .ic { color: var(--ink-3); }
.pal-q { border: 0 !important; height: 54px !important; font-size: 16px; padding: 0 !important; outline: none !important; }
.pal-l { max-height: min(56vh, 480px); overflow: auto; padding: 6px; }
.pal-s { font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px 4px; }
.pal-o { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.pal-o[aria-selected="true"] { background: var(--blue-l); box-shadow: inset 3px 0 0 var(--blue); }
.pal-o img, .pal-o .pal-ph { width: 34px; height: 34px; object-fit: contain; border: 1px solid var(--line-3); border-radius: 4px; flex: none; background: #fff; display: grid; place-items: center; color: var(--ink-3); }
.pal-o .pal-ph .ic { width: 16px; height: 16px; }
.pal-t { flex: 1; min-width: 0; }
.pal-t b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-t small { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-p { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pal-h { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 12px; color: var(--ink-3); }
.pal-e { padding: 18px 12px; color: var(--ink-3); }

/* toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; max-width: calc(100vw - 32px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: #1c2631; color: #fff; padding: 9px 8px 9px 14px; border-radius: 8px; box-shadow: var(--shadow-l); font-size: 13.5px; max-width: 460px; animation: tin .18s ease-out; }
.toast .ic { width: 18px; height: 18px; color: #7fd18b; }
.toast-err .ic { color: #ff9b91; }
.toast span { flex: 1; min-width: 0; }
.toast-u { border: 1px solid rgba(255,255,255,.4); background: none; color: #fff; border-radius: 5px; height: 28px; padding: 0 10px; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.toast-u:hover { background: rgba(255,255,255,.12); }
.toast-u .ic { color: #fff; width: 15px; height: 15px; }
.toast .ib { color: #c9d1da; width: 26px; height: 26px; }
.toast .ib:hover { background: rgba(255,255,255,.12); border-color: transparent; color: #fff; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- product editor ---------- */
.ed-top { position: sticky; top: var(--top); z-index: 20; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -20px -24px 18px; padding: 12px 24px; background: rgba(243,245,247,.96); backdrop-filter: blur(4px); border-bottom: 1px solid var(--line); }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-2); font-weight: 500; font-size: 13px; }
.back .ic { width: 16px; height: 16px; }
.ed-t { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ed-t h1 { font-size: 19px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.dirty { font-size: 12.5px; font-weight: 600; color: var(--amber); background: var(--amber-l); border-radius: 11px; padding: 2px 9px; }
.ed-b { display: flex; gap: 6px; flex-wrap: wrap; }
.ed-g { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.ed-m, .ed-s { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ed-s { position: sticky; top: calc(var(--top) + 76px); }
.fg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.fg .fld-w { grid-column: 1 / -1; }
.fg .fld-2 { grid-column: span 2; }
.price-io { display: flex; flex-direction: column; gap: 3px; }
.rte-bar { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; background: var(--bg-2); flex-wrap: wrap; }
.rte-bar .hint { margin-left: 8px; }
.rte-bar + textarea { border-radius: 0 0 var(--r) var(--r); min-height: 120px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.chip-b { height: 26px; padding: 0 10px; border: 1px dashed #9fb3c8; border-radius: 13px; background: #fff; font-size: 12.5px; color: var(--blue-d); }
.chip-b:hover { background: var(--blue-l); border-style: solid; }
.chip-b:disabled { color: var(--ink-3); border-color: var(--line); background: var(--bg); cursor: default; }
.prms { display: flex; flex-direction: column; gap: 6px; }
.prm { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1.6fr) auto auto auto; gap: 6px; align-items: center; padding: 2px; border-radius: 6px; }
.prm .grip { display: grid; place-items: center; color: #8a929c; cursor: grab; height: 30px; }
.prm .grip .ic { width: 16px; height: 16px; }
.prm input { height: 32px; }
.prm .ib { width: 28px; height: 28px; }
.prm .ib .ic { width: 15px; height: 15px; }
.prm.is-drag { opacity: .4; }
.prm.drop-before { box-shadow: 0 -2px 0 var(--blue); }
.prm.drop-after { box-shadow: 0 2px 0 var(--blue); }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.im { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.im.is-main { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.im-f { aspect-ratio: 1; display: grid; place-items: center; padding: 8px; background: #fff; }
.im-f img { max-width: 100%; max-height: 100%; object-fit: contain; }
.im figcaption { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 6px; border-top: 1px solid var(--line-3); background: var(--bg-2); min-height: 40px; }
.im-up { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; padding: 12px; border: 2px dashed var(--line-2); border-radius: 8px; color: var(--ink-2); font-size: 12.5px; text-align: center; cursor: pointer; background: var(--bg-2); }
.im-up:hover, .im-up.is-over { border-color: var(--blue); background: var(--blue-ll); color: var(--blue-d); }
.im-up:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.im-up .ic { width: 24px; height: 24px; color: var(--blue-t); }
.im-up b { color: var(--blue-d); font-size: 13.5px; }
.info { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); background: var(--blue-ll); border: 1px solid #cfdff2; border-radius: 6px; padding: 8px 10px; margin-bottom: 12px; }
.info .ic { color: var(--blue-t); width: 16px; height: 16px; margin-top: 2px; }
.plc { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plc-i { border: 1px solid var(--line); border-radius: 6px; padding: 8px 8px 8px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; background: #fff; }
.plc-i.is-main { border-color: #9fc0e8; background: var(--blue-ll); }
.plc-t { display: flex; gap: 4px; flex-wrap: wrap; grid-column: 1; }
.plc-bc { grid-column: 1; font-size: 13px; color: var(--ink); line-height: 1.4; }
.plc-bc span { color: #8a929c; }
.plc-a { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 2px; }
.plc-none { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--amber); background: var(--amber-l); border: 1px solid #f0dca0; border-radius: 6px; padding: 8px 10px; }
.plc-none .ic { width: 16px; height: 16px; margin-top: 2px; }
/* shop card preview */
.pc { position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; max-width: 260px; margin: 0 auto; }
.pc.is-off { filter: grayscale(.7); }
.pc-off { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 1; background: rgba(28,38,49,.88); color: #fff; font-size: 12px; font-weight: 600; text-align: center; padding: 4px; border-radius: 3px; }
.pc-img { aspect-ratio: 1; display: grid; place-items: center; padding: 18px; border-bottom: 1px solid var(--line-3); }
.pc-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pc-img .ic { width: 40px; height: 40px; color: #b9c0c8; }
.pc-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.pc-br { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pc-n { font-size: 14px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-c { font-size: 12px; color: var(--ink-3); }
.pc-p { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.pc-p b { font-size: 19px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pc-p span { font-size: 12px; color: var(--ink-3); }
.pc-btn { margin-top: 8px; height: 36px; border-radius: 4px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 13.5px; }
.pc-btn .ic { width: 16px; height: 16px; }
.pc-where { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* ---------- import / export ---------- */
.ie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.ie .card { display: flex; flex-direction: column; gap: 12px; }
.ie .card > h2 { margin-bottom: 0; }
.ie .card > h2 .ic { color: var(--blue-t); }
.rad { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px 10px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rad legend { font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 0 4px; }
.rad label { display: flex; align-items: center; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ie textarea { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; }
.ie-res { margin-top: 18px; }
.sumc { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sumc div { border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; min-width: 130px; }
.sumc b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.sumc span { font-size: 12.5px; color: var(--ink-3); }
.sumc .s-ch { border-color: #9fc0e8; background: var(--blue-ll); }
.sumc .s-un { border-color: #f0dca0; background: var(--amber-l); }
.diffw { overflow: auto; max-height: 480px; border: 1px solid var(--line); border-radius: 6px; }
.diff { width: 100%; border-collapse: collapse; font-size: 13px; }
.diff th { position: sticky; top: 0; background: #fbfcfd; text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.diff td { padding: 6px 10px; border-bottom: 1px solid var(--line-3); }
.diff .old { color: var(--ink-3); text-decoration: line-through; }
.diff .up { color: var(--red); font-weight: 600; }
.diff .dn { color: var(--green); font-weight: 600; }
.unk { margin-top: 12px; font-size: 13px; }
.unk code { margin: 2px; display: inline-block; }
.res-a { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }

/* ---------- log ---------- */
.log { padding: 0; overflow: hidden; }
.log-d { padding: 10px 20px 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; background: var(--bg-2); border-bottom: 1px solid var(--line-3); }
.log-i { display: grid; grid-template-columns: 56px 130px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line-3); font-size: 13.5px; }
.log-i time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.log-e { padding: 40px 20px; text-align: center; color: var(--ink-3); }

/* ---------- shared: thumbs, sale price ---------- */
.th { width: 36px; height: 36px; object-fit: contain; border: 1px solid var(--line-3); border-radius: 4px; background: #fff; flex: none; display: grid; place-items: center; color: #a3abb4; }
.th-ph .ic { width: 16px; height: 16px; }
.old { color: var(--ink-3); font-weight: 400; }
.sale-p { color: var(--red); font-weight: 700; }
.badge-sale { display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 3px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 18px; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.sl { display: block; margin-top: 3px; font-size: 12.5px; white-space: nowrap; }
.sl b { color: var(--red); font-weight: 700; }
.sl-soon { color: var(--amber); }
.sl-over { color: var(--ink-3); }
.chip-sale:has(input:checked) { background: var(--red-l); border-color: #efb3ad; color: #8c2219; }
.nb-new { background: var(--blue); color: #fff; }
.nav a[aria-current="page"] .nb-new { background: var(--blue); }
.card h2 .nb { margin-left: 2px; }
.card > h2 .ic, .card-h h2 .ic { color: var(--blue-t); }
.card-h h2 { display: flex; align-items: center; gap: 8px; }
.sq { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ck { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.ck .ic { width: 16px; height: 16px; color: var(--blue-t); }

/* product picker */
.pp-l { border: 1px solid var(--line); border-radius: 6px; max-height: min(50vh, 440px); overflow: auto; padding: 4px; }
.pp-o { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 6px 8px; border-radius: 6px; color: var(--ink); font-size: 13.5px; }
.pp-o:hover, .pp-o:focus-visible { background: var(--blue-l); outline: none; }
.pp-o:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); }
.pp-o[aria-pressed="true"] { background: var(--blue-ll); box-shadow: inset 3px 0 0 var(--blue); }
.pp-o[aria-disabled="true"] { opacity: .7; cursor: default; }
.pp-o .pal-p { font-size: 13px; }
.pp-s { font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px 4px; }
.pp-n { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--green); font-weight: 600; white-space: nowrap; }
.pp-n .ic { width: 14px; height: 14px; }
.pp-ck { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--blue-t); flex: none; }
.pp-ck .ic { width: 14px; height: 14px; }
.pp-o[aria-pressed="true"] .pp-ck { background: var(--blue); border-color: var(--blue); color: #fff; }
.pp-ch { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 26px; }
.pp-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 0 2px 0 9px; border-radius: 13px; background: var(--blue-l); color: var(--blue-d); font-size: 12.5px; font-weight: 500; }
.pp-chip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }

/* ---------- montāža (Katalogs) ---------- */
.t-mont { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; color: var(--blue-t); }
.t-mont .ic { width: 14px; height: 14px; }
.t-mont.is-inh { color: #7f8b98; }
.mont { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 12px 10px; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.mont legend { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 0 4px; }
.mont legend .ic { width: 15px; height: 15px; color: var(--blue-t); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; align-self: flex-start; max-width: 100%; }
.seg-o { position: relative; display: flex; align-items: center; cursor: pointer; }
.seg-o + .seg-o { border-left: 1px solid var(--line-2); }
.seg-o input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-o span { display: block; padding: 5px 12px; font-size: 13px; color: var(--ink-2); }
.seg-o small { color: var(--ink-3); font-size: 12px; }
.seg-o:hover span { background: var(--bg-2); }
.seg-o input:checked + span { background: var(--blue); color: #fff; font-weight: 600; }
.seg-o input:checked + span small { color: #e3edf9; }
.seg-o input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: -3px; box-shadow: inset 0 0 0 4px #fff; }

/* ---------- product editor: akcija, saistītās preces, montāža ---------- */
.sale { display: flex; flex-direction: column; gap: 12px; }
.sale-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sale-o { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px 10px; background: var(--bg-2); }
.sale-o label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.sale-o.is-on { border-color: #9fc0e8; background: var(--blue-ll); }
.sale-o input[type=text] { font-weight: 600; font-variant-numeric: tabular-nums; }
.sale-d { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; }
.sale-d .sq { grid-column: 1 / -1; }
.sale-pv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 6px; background: #fff; border: 1px dashed var(--line-2); font-size: 13.5px; min-height: 38px; font-variant-numeric: tabular-nums; }
.rel-h { margin: -4px 0 10px; }
.rel-s { margin-bottom: 10px; }
.rel-r { margin-top: 6px; border: 1px solid var(--line-2); border-radius: 6px; padding: 4px; box-shadow: var(--shadow); background: #fff; max-height: 420px; overflow: auto; }
.rel-rf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; padding: 6px 8px 2px; border-top: 1px solid var(--line-3); margin-top: 4px; }
.rel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rel-i { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.rel-i.is-new { animation: relin .6s ease-out; }
@keyframes relin { from { background: var(--blue-l); } to { background: #fff; } }
.rel-i .grip { display: grid; place-items: center; color: #8a929c; cursor: grab; height: 30px; width: 16px; flex: none; }
.rel-i .grip .ic { width: 16px; height: 16px; }
.rel-n { width: 18px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-3); flex: none; font-variant-numeric: tabular-nums; }
.rel-i .pal-t a { color: var(--ink); }
.rel-i .pal-t a:hover { color: var(--blue-t); }
.rel-i .pal-p { font-size: 13px; }
.rel-a { display: flex; gap: 0; flex: none; }
.rel-a .ib { width: 28px; height: 28px; }
.rel-a .ib .ic { width: 15px; height: 15px; }
.rel-i.is-drag { opacity: .4; }
.rel-i.drop-before { box-shadow: 0 -2px 0 var(--blue); }
.rel-i.drop-after { box-shadow: 0 2px 0 var(--blue); }
.rel-e { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border: 1px dashed var(--line-2); border-radius: 6px; color: var(--ink-3); font-size: 13px; }
.rel-e .ic { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.mont-p { border: 0; padding: 0; }
.mont-p small { color: var(--ink-3); }
.pc-img { position: relative; }
.pc-sale { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-weight: 700; font-size: 12.5px; padding: 2px 7px; border-radius: 3px; }
.pc-p s { color: var(--ink-3); font-size: 13px; }
.pc-p .badge-sale { margin-left: 0; color: #fff; font-size: 11.5px; }
.pc-u { font-size: 12px; color: var(--red); font-weight: 600; }
.pc-btn2 { background: #fff; color: var(--blue-d); border: 1px solid #9fc0e8; margin-top: 6px; }
.pc-rel { max-width: 260px; margin: 12px auto 0; }
.pc-rel > p { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 6px; }
.pc-rel-l { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pc-rel-i { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: 4px; padding: 5px; background: #fff; font-size: 10.5px; line-height: 1.25; min-width: 0; }
.pc-rel-i .th { width: 100%; height: auto; aspect-ratio: 1; border: 0; }
.pc-rel-i span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); }
.pc-rel-i b { font-size: 11px; font-variant-numeric: tabular-nums; }
.pc-rel-m { font-size: 12px; color: var(--ink-3); margin-top: 4px; text-align: center; }

/* ---------- orders list ---------- */
.ost-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ost-sum .ov-i { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; box-shadow: var(--shadow); text-align: left; color: var(--ink); min-width: 0; }
.ost-sum b { display: block; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ost-sum span { font-size: 13px; color: var(--ink-3); }
.ov-b { font: inherit; cursor: pointer; }
.ov-b:hover { border-color: var(--blue); }
.otabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.otab { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 15px; background: #fff; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.otab:hover { border-color: #aeb8c3; color: var(--ink); }
.otab .cnt { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.otab[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.otab[aria-pressed="true"] .cnt { color: #e3edf9; }
.tt .fld-dt { flex: 1 1 220px; max-width: 300px; }
.ot td { padding-top: 9px; padding-bottom: 9px; }
.ot tbody tr { cursor: pointer; }
.ot tbody tr.is-new { background: #f7fafe; }
.ot tbody tr.is-new .c-no .pname { color: var(--blue-d); }
.ot .c-no { white-space: nowrap; width: 150px; }
.ot .c-no .pname { font-weight: 600; font-variant-numeric: tabular-nums; }
.o-unl { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--amber); font-weight: 600; margin-top: 2px; }
.o-unl .ic { width: 13px; height: 13px; }
.ot .c-dt { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; width: 140px; }
.ot .c-cl b { font-weight: 500; display: block; }
.ot .c-cl small, .ot .c-sum small { display: block; font-size: 12px; color: var(--ink-3); }
.ot .c-sum { white-space: nowrap; width: 130px; }
.ot .c-sum b { font-weight: 600; }
.ot .c-ost { width: 170px; }
.ot .c-paid { width: 100px; }
.osrc { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 6px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #eef0f2; color: var(--ink-2); }
.osrc .ic { width: 14px; height: 14px; }
.osrc-veikals { background: var(--blue-l); color: var(--blue-d); }
.osrc-saraksts { background: #f1ebfa; color: #5b3a8c; }
.osrc-telefons { background: var(--green-l); color: var(--green); }
.ost { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ost::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.ost-jauns { background: var(--blue-l); color: var(--blue-d); }
.ost-apstrade { background: var(--amber-l); color: var(--amber); }
.ost-rekins { background: #f1ebfa; color: #5b3a8c; }
.ost-apmaksats { background: #e3f3f4; color: #11636a; }
.ost-gatavs { background: var(--green-l); color: var(--green); }
.ost-piegadats { background: #eef0f2; color: var(--ink-2); }
.ost-atcelts { background: var(--red-l); color: #a02a20; }
.paid { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-weight: 600; }
.paid .ic { width: 15px; height: 15px; }

/* ---------- order detail ---------- */
.ed-t .ost, .ed-t .osrc { flex: none; }
.ost-row { display: flex; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; }
.ost-row > .fld:first-child { width: 220px; }
.ost-q { display: flex; gap: 6px; flex-wrap: wrap; }
.ost-q .btn { height: 34px; }
.ost-card .hint { margin-top: 10px; }
.fg-1 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.oi-w { border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; }
.oi { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.oi th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: #fbfcfd; border-bottom: 1px solid var(--line); padding: 8px; white-space: nowrap; }
.oi th.num { text-align: right; }
.oi td { padding: 8px; border-bottom: 1px solid var(--line-3); vertical-align: middle; }
.oi tbody tr:last-child td { border-bottom: 0; }
.oi tr.is-unl td { background: #fffbec; }
.oi tr.is-unl td:first-child { box-shadow: inset 3px 0 0 #e0b23c; }
.oi-p { min-width: 240px; }
.oi-pi { display: flex; gap: 10px; align-items: flex-start; }
.oi-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.oi-t a { color: var(--ink); font-weight: 500; }
.oi-t a:hover { color: var(--blue-t); }
.oi-t small { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ink-3); }
.oi-link { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.oi-link .btn { max-width: 100%; }
.oi-bn { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; font-weight: 600; }
.oi-pr input { width: 96px; text-align: right; font-variant-numeric: tabular-nums; }
.oi-q { white-space: nowrap; }
.oi-q input { width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.oi-u { display: inline-block; margin-left: 5px; font-size: 12px; color: var(--ink-3); min-width: 24px; text-align: left; }
.oi-s { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.oi-a { width: 40px; text-align: right; }
.oi td.t-empty { padding: 24px 12px; }
#oUnl .warn { margin-bottom: 10px; }
.otot { margin: 12px 0 0 auto; width: min(360px, 100%); display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.otot div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.otot dt { color: var(--ink-2); }
.otot dd { margin: 0; white-space: nowrap; }
.otot .otot-n { font-size: 13px; color: var(--ink-3); }
.otot .otot-n dt { color: var(--ink-3); }
.otot .otot-t { border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 6px; font-size: 16px; font-weight: 700; }
.otot .otot-t dt { color: var(--ink); }
.ohist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 360px; overflow: auto; }
.ohist li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 8px; padding: 7px 0; border-bottom: 1px solid var(--line-3); font-size: 13px; }
.ohist li:last-child { border-bottom: 0; }
.ohist time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.oh-w { font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: right; }
.oh-t { grid-column: 1 / -1; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .ed-g { grid-template-columns: minmax(0, 1fr) 320px; }
  .fg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fg .fld-2 { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .ost-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv { grid-template-columns: minmax(0, 1fr); }
  .tp { position: static; max-height: 62vh; }
  .ed-g { grid-template-columns: minmax(0, 1fr); }
  .ed-s { position: static; }
  .ie { grid-template-columns: minmax(0, 1fr); }
  .gs-t { font-size: 13px; }
}
@media (max-width: 900px) {
  :root { --nav-w: 0px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .nav-btn { display: inline-grid; }
  .nav { position: fixed; z-index: 50; top: var(--top); left: 0; bottom: 0; height: auto; width: 260px; transform: translateX(-102%); transition: transform .18s; box-shadow: var(--shadow-l); }
  .nav.is-open { transform: none; }
  .brand { width: auto; }
  .top { gap: 10px; padding: 0 10px; }
  .main { padding: 16px 14px 56px; }
  .ed-top { margin: -16px -14px 16px; padding: 10px 14px; }
  .user-n { display: none; }
  .gs kbd { display: none; }
}
@media (max-width: 640px) {
  .brand-t { display: none; }
  .top-shop { padding: 0 8px; }
  .top-shop-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .avatar { display: none; }
  .demo { flex-wrap: wrap; padding: 8px 12px; }
  .demo p { flex: 1 1 calc(100% - 30px); }
  .demo .btn { margin-left: 28px; }
  .fg { grid-template-columns: minmax(0, 1fr); }
  .tp-head h1 { font-size: 18px; }
  .ed-t h1 { white-space: normal; font-size: 17px; }
  .ed-b { width: 100%; }
  .ed-b .btn { flex: 1 1 auto; }
  .prm { grid-template-columns: 18px minmax(0, 1fr) minmax(0, 1fr) auto; }
  .prm [data-pm="up"], .prm [data-pm="down"] { display: none; }
  .log-i { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .log-i .tag { display: none; }
  .vh h1 { font-size: 20px; }
  .tt .fld, .tt .fld-q, .tt .fld-sm { flex: 1 1 100%; }
  .toasts { left: 12px; right: 12px; align-items: stretch; }
  .toast { max-width: none; }
  .sale-g, .sale-d { grid-template-columns: minmax(0, 1fr); }
  .rel-i { flex-wrap: wrap; }
  .rel-i .pal-t { flex: 1 1 calc(100% - 110px); }
  .rel-i .pal-p { margin-left: 50px; }
  .rel-a { margin-left: auto; }
  .ost-sum { gap: 8px; }
  .otabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px 10px; padding: 0 14px 4px; scrollbar-width: thin; }
  .ost-sum .ov-i { padding: 10px 12px; }
  .ost-sum b { font-size: 18px; }
  .ost-row > .fld:first-child { width: 100%; }
  .tt .fld-dt { max-width: none; }
  /* order list as cards */
  .ot thead { display: none; }
  .ot, .ot tbody { display: block; }
  .ot tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-3); }
  .ot td { display: block; padding: 0 !important; border: 0; width: auto !important; }
  .ot .c-no { grid-column: 1; grid-row: 1; }
  .ot .c-sum { grid-column: 2; grid-row: 1; text-align: right; }
  .ot .c-cl { grid-column: 1 / -1; grid-row: 2; }
  .ot .c-dt { grid-column: 1; grid-row: 3; font-size: 12.5px; }
  .ot .c-src { grid-column: 2; grid-row: 3; text-align: right; }
  .ot .c-ost { grid-column: 1; grid-row: 4; margin-top: 4px; }
  .ot .c-paid { grid-column: 2; grid-row: 4; text-align: right; margin-top: 4px; font-size: 13px; }
  .ot .c-paid .muted::before { content: "Apmaksāts: "; }
  .ot .c-paid .paid::after { content: ", apmaksāts"; font-weight: 400; }
  .ot td.t-empty { grid-column: 1 / -1; padding: 24px 0 !important; }
  /* order lines as cards */
  .oi thead { display: none; }
  .oi, .oi tbody { display: block; }
  .oi tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 8px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line-3); }
  .oi tr.is-unl { background: #fffbec; box-shadow: inset 3px 0 0 #e0b23c; }
  .oi tr.is-unl td, .oi tr.is-unl td:first-child { background: none; box-shadow: none; }
  .oi td { display: block; padding: 0; border: 0; }
  .oi-p { grid-column: 1 / -1; min-width: 0; }
  .oi-pr { grid-column: 1; text-align: left !important; }
  .oi-q { grid-column: 2; }
  .oi-s { grid-column: 1 / 3; text-align: left !important; }
  .oi-a { grid-column: 3; grid-row: 2 / 4; }
  .oi-pr::before { content: "Cena, € "; font-size: 12px; color: var(--ink-3); }
  .oi-s::before { content: "Summa: "; font-weight: 400; font-size: 12px; color: var(--ink-3); }
  .oi-bn { max-width: 160px; }
}
@media print {
  .top, .nav, .demo, .toasts, .bulk, .tt, .pager { display: none !important; }
  .shell { display: block; }
  .tp { position: static; max-height: none; }
  .tree { overflow: visible; }
}
