/* Hub admin — light admin theme (white sidebar, purple accent, soft cards).
   Hand-written, no build step needed on the server. */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --ink: #2b2b3c;
  --muted: #6f7488;
  --faint: #9aa0b2;
  --line: #e8eaf1;
  --line-soft: #f0f1f6;
  --primary: #7366ff;
  --primary-hover: #5f51f5;
  --primary-tint: #efedff;
  --secondary: #f73164;
  --good: #3da343;
  --good-tint: #e8f6e6;
  --warn: #d98a00;
  --warn-tint: #fff4dd;
  --bad: #e5463a;
  --bad-tint: #fdeceb;
  --info: #0ea5d8;
  --info-tint: #e2f6fd;
  --focus: #7366ff;
  --radius: 6px;
  --card-radius: 14px;
  --shadow: 0 2px 24px rgba(30, 36, 90, .06);
  --side-w: 252px;
  --top-h: 70px;
  --font: 'Commissioner', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum' 1;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: 22px; line-height: 1.3; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }

/* ---------- Shell: white sidebar + top bar ---------- */
.shell { min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--surface);
  box-shadow: 1px 0 0 var(--line); display: flex; flex-direction: column; z-index: 20; overflow-y: auto;
}
.brand { height: var(--top-h); display: flex; align-items: center; gap: 10px; padding: 0 24px; color: var(--ink); font-weight: 700; font-size: 21px; letter-spacing: .02em; border-bottom: 1px solid var(--line-soft); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(from 210deg, #7366ff, #b05cff, #f73164, #7366ff); position: relative; }
.brand-mark::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.nav-label { padding: 22px 24px 8px; font-size: 11.5px; font-weight: 600; color: var(--ink); letter-spacing: .06em; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.nav a {
  color: #4a4f63; padding: 10px 12px; border-radius: 8px; display: flex; gap: 12px; align-items: center; font-weight: 500; position: relative;
}
.nav a:hover { background: var(--primary-tint); color: var(--primary); }
.nav a.on { background: var(--primary-tint); color: var(--primary); }
.nav a.on::after { content: ''; position: absolute; right: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px 0 0 3px; background: var(--primary); }
.nav .count { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: var(--primary-tint); color: var(--primary); }
.nav .count.alert { background: var(--bad-tint); color: var(--bad); }
.side-foot { margin-top: auto; padding: 16px 24px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--muted); }

.topbar {
  position: fixed; top: 0; left: var(--side-w); right: 0; height: var(--top-h); background: var(--surface); z-index: 10;
  display: flex; align-items: center; gap: 16px; padding: 0 28px; box-shadow: 0 1px 0 var(--line);
}
.topbar .tb-search { position: relative; width: min(420px, 40vw); }
.topbar .tb-search input { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 9px 12px 9px 38px; font: inherit; color: var(--ink); }
.topbar .tb-search input:focus { outline: none; border-color: var(--primary); background: #fff; }
.topbar .tb-search svg { position: absolute; left: 12px; top: 10px; color: var(--faint); }
.topbar .tb-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.tb-icon { position: relative; color: #5b6075; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.tb-icon:hover { background: var(--bg); color: var(--primary); }
.tb-icon .dot { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--secondary); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }
.tb-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #7366ff, #b05cff); color: #fff; font-weight: 600; display: grid; place-items: center; }
.tb-user b { display: block; font-size: 13.5px; line-height: 1.2; }
.tb-user small { color: var(--muted); font-size: 12px; }
.tb-user button { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; }
.tb-user button:hover { color: var(--bad); }

.main { margin-left: var(--side-w); padding-top: var(--top-h); min-width: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 28px 20px; }
.top .sub { color: var(--muted); margin-top: 4px; max-width: 760px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.page { padding: 0 28px 40px; display: flex; flex-direction: column; gap: 24px; }

/* ---------- Cards ---------- */
.panel { background: var(--surface); border-radius: var(--card-radius); box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.panel-head h2 { font-size: 17px; }
.panel-body { padding: 20px 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-hero { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 24px; }
@media (max-width: 1200px) { .grid-hero { grid-template-columns: 1fr 1fr; } .grid-hero > .welcome { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Welcome card */
.welcome { border-radius: var(--card-radius); padding: 26px 28px; color: #fff; position: relative; overflow: hidden; min-height: 168px;
  background: linear-gradient(120deg, #6a5cff 0%, #8f6bff 55%, #b57bff 100%); box-shadow: 0 10px 30px rgba(115, 102, 255, .25); }
.welcome h1 { font-size: 23px; color: #fff; }
.welcome p { color: rgba(255,255,255,.9); margin-top: 8px; max-width: 62%; }
.welcome h1 { max-width: 64%; }
.welcome .btn { margin-top: 18px; background: transparent; border: 1px solid rgba(255,255,255,.85); color: #fff; }
.welcome .btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.welcome .orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.welcome .clock { position: absolute; right: 26px; top: 22px; text-align: right; font-size: 12.5px; color: rgba(255,255,255,.85); max-width: 34%; }
.welcome .clock b { display: block; font-size: 26px; font-weight: 600; color: #fff; }

/* Stat cards with a coloured ring around the icon */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat { background: var(--surface); border-radius: var(--card-radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; align-items: center; gap: 16px; color: inherit; }
.stat:hover { color: inherit; box-shadow: 0 4px 28px rgba(30, 36, 90, .1); }
.ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none; position: relative;
  background: conic-gradient(var(--c) calc(var(--p, 70) * 1%), #edeef4 0); }
.ring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.ring svg { position: relative; color: var(--c); width: 22px; height: 22px; }
.stat b { display: block; font-size: 20px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }

/* Figures strip (detail pages) */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.figure { background: var(--surface); border-radius: var(--card-radius); box-shadow: var(--shadow); padding: 18px 20px; border-left: 4px solid var(--fc, var(--primary)); color: inherit; }
.figure:nth-child(2) { --fc: var(--info); }
.figure:nth-child(3) { --fc: var(--warn); }
.figure:nth-child(4) { --fc: var(--good); }
.figure:nth-child(5) { --fc: var(--secondary); }
.figure b { display: block; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.figure span { color: var(--muted); font-size: 13px; }
.figure.alert b { color: var(--warn); }
@media (max-width: 900px) { .figures { grid-template-columns: 1fr 1fr !important; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-weight: 600; color: var(--ink); font-size: 13px; padding: 12px 16px; background: #f8f8fc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t th.num { text-align: right; }
.t th button { all: unset; cursor: pointer; }
.t th button:hover { color: var(--primary); }
.t th .arrow { color: var(--primary); }
.t td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #fafaff; }
.t .title-cell { max-width: 520px; }
.t .title-cell a { color: var(--ink); font-weight: 500; }
.t .title-cell a:hover { color: var(--primary); }
.t .title-cell .meta { color: var(--faint); font-size: 12px; margin-top: 2px; }
.t tr.out td { color: var(--muted); }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty b { color: var(--ink); display: block; margin-bottom: 4px; }

/* Supplier colour swatch */
.sup { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.sw { width: 10px; height: 10px; border-radius: 3px; background: var(--c, #888); flex: none; }
.offer-row td:first-child { box-shadow: inset 3px 0 0 var(--c, transparent); }

/* Status labels as tinted pills */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; padding: 3px 10px; border-radius: 6px; background: var(--line-soft); color: var(--muted); }
.st.good { color: var(--good); background: var(--good-tint); }
.st.warn { color: var(--warn); background: var(--warn-tint); }
.st.bad { color: var(--bad); background: var(--bad-tint); }
.st.info, .st.idle { color: var(--info); background: var(--info-tint); }
.note { padding: 14px 18px; border-radius: 10px; font-size: 13.5px; }
.note.warn { background: var(--warn-tint); color: #6b4500; border-left: 4px solid var(--warn); }
.note.bad { background: var(--bad-tint); color: #8a1d14; border-left: 4px solid var(--bad); }
.note.good { background: var(--good-tint); color: #1f5d22; border-left: 4px solid var(--good); }
.note.info { background: var(--primary-tint); color: #3a2fb5; border-left: 4px solid var(--primary); }

/* ---------- Forms & buttons ---------- */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink); font-weight: 500; }
.in, select.in, textarea.in {
  font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #dfe1ea; border-radius: var(--radius);
  padding: 8px 12px; min-height: 38px; width: 100%;
}
.in:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.in.color { padding: 3px; width: 46px; }
.row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.row > .grow { flex: 1 1 220px; }
.error { color: var(--bad); font-size: 12.5px; }

.btn { font: inherit; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; border-radius: var(--radius); padding: 8px 18px; min-height: 38px; border: 1px solid #dfe1ea; background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(115, 102, 255, .3); }
.btn.primary:hover { background: var(--primary-hover); color: #fff; }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 30px; padding: 4px 12px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: default; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); }
.filters .search { flex: 1 1 280px; position: relative; }
.filters .search .in { padding-left: 36px; }
.filters .search svg { position: absolute; left: 12px; top: 11px; color: var(--faint); }
.filters select.in { width: auto; min-width: 150px; }
.filters .result { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.chk { display: inline-flex; gap: 7px; align-items: center; color: var(--ink); font-size: 13.5px; cursor: pointer; }
.chk input { accent-color: var(--primary); width: 16px; height: 16px; }

/* Mapping screen */
.map-grid { display: grid; grid-template-columns: 230px 1fr 1fr; }
.map-grid > div { padding: 12px 22px; border-bottom: 1px solid var(--line-soft); }
.map-grid .head { font-weight: 600; font-size: 13px; background: #f8f8fc; border-bottom: 1px solid var(--line); }
.map-grid .req { color: var(--bad); }
.sample { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }

dl.facts { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
dl.facts dt, dl.facts dd { padding: 8px 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
dl.facts dt { color: var(--muted); }

/* Supplier bars on the dashboard */
.bars { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 120px; gap: 14px; align-items: center; font-size: 13px; }
.bar-track { height: 10px; border-radius: 6px; background: #eef0f6; overflow: hidden; display: flex; }
.bar-track i { display: block; height: 100%; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; }
.pager .btns { display: flex; gap: 6px; }

.loading-bar { height: 3px; background: var(--primary); position: absolute; left: 0; right: 0; top: 0; border-radius: 3px; animation: lb 1s ease-in-out infinite; transform-origin: left; }
@keyframes lb { 0% { transform: scaleX(0); } 60% { transform: scaleX(.8); } 100% { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .loading-bar { animation: none; } }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #f1efff, #f5f6fa 60%); padding: 16px; }
.login form { background: #fff; border-radius: var(--card-radius); box-shadow: 0 10px 40px rgba(30, 36, 90, .1); padding: 34px; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.login .brand { border: 0; padding: 0; height: auto; justify-content: center; }

@media (max-width: 900px) {
  .side { position: static; width: auto; box-shadow: none; border-bottom: 1px solid var(--line); }
  .side .nav-label, .side-foot { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; padding: 8px 12px; }
  .nav a.on::after { display: none; }
  .topbar { position: static; padding: 0 16px; }
  .topbar .tb-search { display: none; }
  .main { margin-left: 0; padding-top: 0; }
  .top, .page { padding-left: 16px; padding-right: 16px; }
  .map-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Category mapping (eshop ↔ suppliers) ---------- */
.split { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
.tree-panel { position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 32px); display: flex; flex-direction: column; overflow: hidden; }
.tree { overflow-y: auto; padding: 6px 0 12px; }
.tree-item { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 14px; cursor: pointer; font-size: 13.5px; color: var(--ink); border-left: 3px solid transparent; }
.tree-item:hover { background: #f7f7fd; }
.tree-item.on { background: var(--primary-tint); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.tree-item.gone .tree-name { text-decoration: line-through; color: var(--faint); }
.tree-item.overview { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-weight: 600; }
.tree-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tree-rules { font-size: 11px; font-weight: 600; color: var(--primary); background: var(--primary-tint); border-radius: 9px; padding: 0 7px; }
.rules { display: flex; flex-direction: column; }
.rule { display: flex; gap: 18px; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); }
.rule:last-child { border-bottom: 0; }
.rule-main { min-width: 0; flex: 1; }
.rule-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rule-side b { font-size: 20px; }
.rule-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 10px; border-radius: 6px; background: #f3f4f9; color: var(--ink); cursor: pointer; }
.chip:hover { background: var(--primary-tint); }
.chip.on { background: var(--primary-tint); color: #3a2fb5; }
.cat-picker { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cat-list { max-height: 320px; overflow-y: auto; }
.cat-row { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: 13.5px; }
.cat-row:hover { background: #fafaff; }
.cat-check { width: 16px; height: 16px; border: 1.5px solid #c9cce0; border-radius: 4px; flex: none; }
.cat-row:hover .cat-check { border-color: var(--primary); }
.cat-path { flex: 1; min-width: 0; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .filter-grid { grid-template-columns: 1fr; } }

/* Skroutz content */
button.figure.pick { all: unset; box-sizing: border-box; background: var(--surface); border-radius: var(--card-radius); box-shadow: var(--shadow); padding: 18px 20px; border-left: 4px solid var(--fc, var(--primary)); cursor: pointer; }
button.figure.pick:hover { box-shadow: 0 4px 28px rgba(30, 36, 90, .1); }
button.figure.pick.on { outline: 2px solid var(--fc); outline-offset: -2px; }
.thumb { width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: block; }
.empty-thumb { background: repeating-linear-gradient(45deg, #fafafd, #fafafd 6px, #f3f4f9 6px, #f3f4f9 12px); }
.content-row td { vertical-align: top; }
.content-open td { background: #fafafe; }
.candidates { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.cand { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.cand img { width: 48px; height: 48px; object-fit: contain; }
.cand .grow { flex: 1; min-width: 0; font-size: 13.5px; }
.gallery { display: flex; gap: 12px; flex-wrap: wrap; }
.gallery figure { margin: 0; }
.gallery img { width: 150px; height: 150px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: block; }
.gallery figcaption { font-size: 11.5px; color: var(--muted); margin-top: 4px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desc { font-size: 14px; line-height: 1.6; }
.desc ul { padding-left: 20px; margin: 8px 0; }
.desc p { margin: 0 0 8px; }
.specs { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.specs th { text-align: left; font-weight: 600; padding: 12px 0 6px; color: var(--ink); border-bottom: 1px solid var(--line); }
.specs td { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.specs td:first-child { color: var(--muted); width: 45%; padding-right: 12px; }
.sync-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sync-opts .chk { align-items: baseline; }
/* Products table: SupplyDesk columns with a filter row */
.products-t .col-filters th { padding: 6px 6px 10px; background: var(--surface); }
.products-t .col-filters .in { width: 100%; min-width: 70px; padding: 6px 8px; font-size: 12.5px; min-height: 0; }
.products-t .col-filters .price-range { display: flex; gap: 4px; }
.products-t .col-filters .price-range .in { min-width: 54px; }
.products-t td { vertical-align: top; }
.products-t .thumb { width: 44px; height: 44px; }
.products-t { font-size: 13px; }
.products-t th, .products-t td { padding-left: 8px; padding-right: 8px; }
.products-t td.title-cell { min-width: 240px; }
.products-t td.small { max-width: 130px; overflow-wrap: anywhere; }
.products-t .col-filters .in { min-width: 56px; }
.products-t .with-thumb { display: flex; gap: 10px; align-items: flex-start; }
.products-t .with-thumb .thumb { flex: none; }
.products-t td.title-cell { min-width: 200px; }
.products-t .col-filters .in { min-width: 48px; }
.products-t .col-filters .price-range .in { min-width: 44px; width: 52px; }
.products-t th { white-space: nowrap; }
.products-t { table-layout: fixed; width: 100%; }
.products-t td, .products-t th { overflow-wrap: anywhere; }
.products-t td.title-cell { min-width: 0; }
.products-t .col-filters .in, .products-t .col-filters .price-range .in { min-width: 0; width: 100%; }
.products-t th button { white-space: normal; text-align: left; }
.products-t thead th { overflow-wrap: normal; word-break: keep-all; font-size: 12.5px; }

/* Skroutz content marker in the products list */
.info-mark { display: inline-flex; align-items: center; gap: 3px; margin-right: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.info-mark.ok { color: var(--good); }
.info-mark.warn { color: var(--warn); text-decoration: none; }
.info-mark.warn:hover { text-decoration: underline; }

/* Rule editor: collapsible steps */
[x-cloak] { display: none !important; }
.step { border: 1px solid var(--line); border-radius: 8px; background: var(--surface, #fff); }
.step-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.step-head:hover { background: var(--line-soft); }
.step-n { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--line-soft); color: var(--muted); flex: none; }
.step.is-open .step-n { background: var(--primary); color: #fff; }
.step-title { font-weight: 600; font-size: 15px; }
.step-sum { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.step .chev { flex: none; color: var(--muted); transition: transform .15s; }
.step.is-open .chev { transform: rotate(180deg); }
.step-body { padding: 4px 14px 16px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
@media (max-width: 640px) { .step-sum { display: none; } }
.note.plain { background: var(--line-soft); color: var(--muted); }

/* Eshop sync */
.progress { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; margin-top: 10px; }
.progress > span { display: block; height: 100%; background: var(--primary); transition: width .4s; }
.mini-bar { height: 5px; width: 90px; border-radius: 3px; background: var(--line-soft); overflow: hidden; margin-bottom: 3px; }
.mini-bar > span { display: block; height: 100%; background: var(--good); }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--primary); cursor: pointer; text-align: left; }
.linklike:hover { text-decoration: underline; }
tr.is-open > td { background: var(--line-soft); }
tr.detail-row > td { background: #fafafc; padding: 10px 14px 14px; }
table.t.inner { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 6px; }
.chg { display: inline-block; margin-right: 12px; white-space: nowrap; }
.chg b { font-weight: 600; margin-right: 4px; }
tr.muted-row td { color: var(--muted); }
.pin-form { border-top: 1px solid var(--line-soft); }
