/* hf-commerce beheer — Voorrd house style.
   One file, no JavaScript, no inline styles (CSP style-src 'self').
   Fonts are self-hosted under /static/fonts (SIL Open Font License). */

@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Syne"; src: url("fonts/syne-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Syne"; src: url("fonts/syne-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---- tokens --------------------------------------------------------------- */
.dash {
  --bg: #060a12;
  --surface: #0c1220;
  --card: #101828;
  --raised: #13203a;
  --line: #1a2d4a;
  --line-soft: #16243c;
  --field-line: #24395c;
  --text: #e2eeff;
  --text-2: #b4c7e3;
  --muted: #7d9cc8;          /* small text: passes 4.5:1 on cards */
  --brand-muted: #4a7ab5;    /* icons and borders only */
  --accent: #3b82f6;
  --accent-strong: #2563eb;  /* filled buttons: white text stays readable */
  --link: #60a5fa;
  --link-hover: #93c5fd;
  --nav-active: #13223d;

  --ok: #10b981;      --ok-bg: #0d2a24;   --ok-line: #145c48;   --ok-text: #a7f3d0;   --ok-strong: #d1fae5;
  --warn: #f59e0b;    --warn-bg: #2a1f0b; --warn-line: #5c4410; --warn-text: #fde68a; --warn-strong: #fef3c7;
  --err: #ef4444;     --err-bg: #2c1215;  --err-line: #6b2228;  --err-text: #fca5a5;  --err-strong: #fee2e2;
  --info-bg: #10213f; --info-line: #1e3a6b; --info-text: #bfdbfe; --info-chip: #93c5fd;

  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Syne", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 8px;
  --radius-lg: 12px;
}

/* ---- base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.dash {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}
.dash a { color: var(--link); text-underline-offset: 2px; }
.dash a:hover { color: var(--link-hover); }
.dash :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dash h1, .dash h2, .dash h3 { font-family: var(--display); letter-spacing: -0.01em; line-height: 1.2; }
.dash h1 { font-size: 28px; font-weight: 700; margin: 4px 0 16px; }
.dash h2 { font-size: 18px; font-weight: 600; margin: 28px 0 12px; }
.dash h3 { font-size: 16px; font-weight: 600; margin: 22px 0 10px; }
.dash p { margin: 0 0 12px; }
.dash small, .dash .muted { color: var(--muted); font-size: 13px; }
.dash strong { font-weight: 600; }
.dash code, .dash .mono { font-family: var(--mono); font-size: 0.92em; }
.dash code { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.dash hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.dash img { max-width: 100%; height: auto; border-radius: 6px; }
.dash ul { padding-left: 20px; }
.dash li { margin: 4px 0; }
.dash dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0 0 16px; }
.dash dt { color: var(--muted); }
.dash dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.dash details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px; }
.dash summary { cursor: pointer; font-weight: 500; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--accent-strong); color: #fff; padding: 8px 12px; border-radius: var(--radius); }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header --------------------------------------------------------------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; min-height: 58px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.dash a.brand { color: var(--text); }
.brand span { color: var(--accent); }
.dash .brand-logo { display: block; height: 18px; width: auto; max-width: none; border-radius: 0; }
.topbar-in .brand { flex: none; display: block; }
.dash .bare-wrap .brand-logo { height: 22px; }
.brand-sub { color: var(--muted); font-size: 13px; padding-left: 12px; border-left: 1px solid var(--line); margin-left: -12px; }
.mainnav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; padding: 8px 0; }
.dash .mainnav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-weight: 500; }
.dash .mainnav a:hover { color: var(--text); background: var(--card); }
.dash .mainnav a[aria-current="page"] { color: var(--text); background: var(--nav-active); }
.logout { margin: 0; }

/* ---- page frame ----------------------------------------------------------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px 20px 64px; }
.wrap > p:first-child > a:only-child { color: var(--muted); text-decoration: none; font-size: 14px; }  /* "← Producten" back links */
.wrap > p:first-child > a:only-child:hover { color: var(--text); }

/* login and two-step pages */
.bare-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px 16px; }
.bare-card { width: 100%; max-width: 440px; }
.bare-card h1 { font-size: 24px; }
.bare-card form p > label > :is(input:not([type="checkbox"]), select) { width: 100%; }
.bare-card button.primary { width: 100%; }

/* ---- cards and layout helpers (used as pages are rebuilt) ------------------ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; margin: 0 0 18px; }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: -18px -20px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 300px; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---- forms ---------------------------------------------------------------- */
.dash form { margin: 0 0 12px; }
.dash label { color: var(--text-2); font-size: 14px; font-weight: 500; }
.dash form p > label { display: block; max-width: 100%; }
.dash form p > label > :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { display: block; margin-top: 6px; }
.dash label.check { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; font-weight: 400; }
.form-grid > p > label > :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { width: 100%; }
.dash input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.dash select,
.dash textarea {
  max-width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
.dash textarea { padding: 10px 12px; min-height: 96px; resize: vertical; line-height: 1.5; }
.dash select { padding-right: 32px; }
.dash input::placeholder, .dash textarea::placeholder { color: #5b6f8e; }
.dash :is(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--info-line); }
.dash input[type="checkbox"], .dash input[type="radio"] { width: 16px; height: 16px; accent-color: var(--accent); vertical-align: -3px; margin: 0 6px 0 0; }
.dash input[type="file"] { color: var(--text-2); font: inherit; font-size: 14px; }
.dash input[type="file"]::file-selector-button { font: inherit; font-weight: 500; color: var(--text); background: var(--card); border: 1px solid var(--field-line); border-radius: var(--radius); padding: 8px 14px; margin-right: 12px; cursor: pointer; }
.dash input[name="sku"], .dash input[name="ean"] { font-family: var(--mono); }
.dash fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 14px; padding: 12px 14px 14px; }
.dash legend { padding: 0 6px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.dash fieldset label { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0 14px 4px 0; }
.dash fieldset label > :is(input, select):not([type="checkbox"]) { margin-left: 4px; }
.dash [aria-invalid="true"] { border-color: var(--err) !important; border-width: 2px !important; }
.dash .err { display: block; margin-top: 6px; color: var(--err-text); font-size: 13px; font-weight: 400; }
.dash p.err { margin: 0 0 12px; }

/* ---- buttons -------------------------------------------------------------- */
.dash button, .dash .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--field-line); border-radius: var(--radius);
  background: var(--card); color: var(--text);
  font: inherit; font-weight: 500; line-height: 1.2; text-decoration: none;
  cursor: pointer;
}
.dash button:hover, .dash .btn:hover { border-color: var(--brand-muted); color: var(--text); }
.dash button.primary, .dash .btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.dash button.primary:hover, .dash .btn.primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.dash button.danger, .dash .btn.danger { background: transparent; border-color: #7f2a30; color: var(--err-text); }
.dash button.danger:hover, .dash .btn.danger:hover { background: var(--err-bg); border-color: var(--err); }
.dash button:disabled { background: var(--surface); border-color: var(--line); color: #5b6f8e; cursor: not-allowed; }
.dash button.linkbtn { min-height: 36px; padding: 0 8px; border: 0; background: none; color: var(--text-2); font-size: 14px; }
.dash button.linkbtn:hover { color: var(--text); text-decoration: underline; }
.dash button.small, .dash .btn.small { min-height: 32px; padding: 0 10px; font-size: 13px; }
/* small inline forms (↑ ↓, weghalen) sit next to each other */
.dash td form, .dash li form { display: inline-block; margin: 0 4px 4px 0; vertical-align: middle; }
.dash td button { min-height: 32px; padding: 0 10px; font-size: 13px; }

/* ---- tables --------------------------------------------------------------- */
.dash table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: 14px; margin: 0 0 18px; }
.dash caption { text-align: left; padding: 0 0 8px; font-weight: 600; }
.dash th { text-align: left; font-weight: 500; }
.dash thead th { background: var(--surface); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 12px; }
.dash td, .dash tbody th { padding: 10px 12px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.dash tbody th { color: var(--text-2); }
.dash thead + tbody tr:first-child > * { border-top: 0; }
.dash tbody tr:first-child > * { border-top: 0; }
.dash tbody tr:hover > td { background: #0e1626; }
.dash td.num, .dash th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; margin: 0 0 18px; }
.table-scroll > table { margin: 0; min-width: 640px; }

/* ---- messages ------------------------------------------------------------- */
.dash p[role="status"], .dash p[role="alert"], .dash .msg {
  border: 1px solid; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; font-size: 14px;
}
.dash p[role="status"], .dash .msg.ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-text); }
.dash p[role="status"] strong, .dash .msg.ok strong { color: var(--ok-strong); }
.dash p[role="alert"], .dash .msg.error { background: var(--err-bg); border-color: var(--err-line); color: var(--err-text); }
.dash p[role="alert"] strong, .dash .msg.error strong { color: var(--err-strong); }
.dash .msg.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-text); }
.dash .msg.warn strong { color: var(--warn-strong); }
.dash .msg.info { background: var(--info-bg); border-color: var(--info-line); color: var(--info-text); }
.dash .msg.info strong { color: #dbeafe; }
.dash p[role] a, .dash .msg a { color: inherit; }

/* ---- chips and badges ----------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.draft { background: #1a2438; color: var(--text-2); }
.chip.active { background: var(--ok-bg); color: #6ee7b7; }
.chip.archived { background: #161c26; color: #9aa6b8; }
.badge { display: inline-block; border-radius: 4px; padding: 0 6px; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.badge.bol { background: var(--info-bg); color: var(--info-chip); }
.badge.small-photo { background: var(--warn-bg); color: #fcd34d; }

/* ---- status tabs and filter bar ------------------------------------------- */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px 14px; margin: 0 0 16px; }
.filterbar form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; flex: 1 1 520px; margin: 0; }
.filterbar label { display: inline-flex; align-items: center; gap: 8px; }
.filterbar .search { flex: 1 1 220px; }
.filterbar .search input { width: 100%; }
.filterbar select { max-width: 220px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: var(--radius); }
.dash .tabs a { padding: 6px 12px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-size: 14px; white-space: nowrap; }
.dash .tabs a span { color: var(--muted); }
.dash .tabs a:hover { color: var(--text); background: var(--card); }
.dash .tabs a[aria-current="page"] { background: var(--line); color: var(--text); font-weight: 500; }

/* ---- list rows ------------------------------------------------------------ */
.thumb-col { width: 68px; }
.thumb { display: block; width: 44px; height: 44px; border-radius: var(--radius); object-fit: cover; background: var(--surface); border: 1px solid var(--line); }
.dash img.thumb { border-radius: var(--radius); }
.dash a.row-title { color: var(--text); font-weight: 500; text-decoration: none; }
.dash a.row-title:hover { text-decoration: underline; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.dash table.dense td { padding-top: 7px; padding-bottom: 7px; }
.dash td.center, .dash th.center { text-align: center; }
.tag { display: inline-block; border-radius: 4px; padding: 1px 7px; font-size: 12.5px; background: var(--raised); color: var(--text-2); white-space: nowrap; }
.yes { color: var(--ok); font-weight: 600; }
.dash .empty { background: var(--card); border: 1px dashed var(--field-line); border-radius: var(--radius-lg); padding: 24px; text-align: center; color: var(--text-2); }

/* ---- paging --------------------------------------------------------------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; color: var(--muted); font-size: 14px; margin: -6px 0 18px; }
.pager nav { display: flex; flex-wrap: wrap; gap: 4px; }
.dash .pager a, .pager .gap { min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: var(--radius); }
.dash .pager a { border: 1px solid var(--field-line); color: var(--text); text-decoration: none; }
.dash .pager a:hover { border-color: var(--brand-muted); }
.dash .pager a[aria-current="page"] { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }

/* ---- categories: groups on the left, subcategories as tiles ---------------- */
.card.flush { padding: 0; overflow: hidden; }
.split > .catnav { flex: 1 1 260px; max-width: 340px; }
.catsearch { padding: 12px; border-bottom: 1px solid var(--line-soft); }
.dash form.catsearch { margin: 0; }
.catsearch label { display: block; }
.catsearch input { width: 100%; }
.catnav ul { list-style: none; margin: 0; padding: 6px; }
.catnav li { margin: 0; display: flex; align-items: center; gap: 4px; }
.dash .catnav li > a { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); color: var(--text-2); text-decoration: none; }
.catnav li > a span { flex: 1; }
.dash .catnav li > a:hover { background: var(--surface); color: var(--text); }
.dash .catnav li > a[aria-current="true"] { background: var(--nav-active); color: var(--text); font-weight: 500; }
.dash .catnav li > a[aria-current="true"] small { color: var(--info-chip); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0 0 14px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tile.has-products { border-color: var(--info-line); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dash .tile-top a { color: var(--text); font-weight: 500; text-decoration: none; }
.dash .tile-top a:hover { text-decoration: underline; }
.tile .count { font-size: 13px; color: var(--brand-muted); font-variant-numeric: tabular-nums; }
.tile.has-products .count { color: #6ee7b7; }
.tile-kids { font-size: 13px; color: var(--muted); }
.dash .tile-kids a { color: var(--text-2); }
.tile-order { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; }
.tile-order li { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0; }
.move { display: inline-flex; gap: 4px; flex: none; }
.dash .move form { margin: 0; }
.dash .move button { min-height: 30px; min-width: 30px; padding: 0 8px; font-size: 13px; }
.results { list-style: none; margin: 0; padding: 0; }
.results li { margin: 0; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.results li:first-child { border-top: 0; }

/* ---- product page --------------------------------------------------------- */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.dash .crumbs a { color: var(--muted); text-decoration: none; }
.dash .crumbs a:hover { color: var(--text); }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; }
.title-row h1 { overflow-wrap: anywhere; }
.card-head small { display: block; margin-top: 2px; }

/* an input with a unit or prefix glued to it: "30 | l (liter)", "€ | 29,95" */
.with-unit { display: flex; align-items: stretch; max-width: 100%; margin-top: 6px; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.dash .with-unit > input { flex: 1 1 auto; min-width: 0; width: auto; margin: 0; border: 0; border-radius: 0; background: transparent; }
.dash .with-unit > input:focus { box-shadow: none; }
.with-unit:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--info-line); }
.with-unit .unit { display: flex; align-items: center; padding: 0 12px; background: var(--raised); color: var(--text-2); font-weight: 400; font-size: 14px; white-space: nowrap; border-left: 1px solid var(--field-line); }
.with-unit.prefix .unit { border-left: 0; border-right: 1px solid var(--field-line); }
.with-unit:has([aria-invalid="true"]) { border: 2px solid var(--err); }
.dash .with-unit > [aria-invalid="true"] { border: 0 !important; box-shadow: none; }

/* <hf-choices>: plain checkbox grid without JS; filter box + chips with JS */
.dash hf-choices { display: block; }
.dash hf-choices fieldset { margin: 0; }
.hfc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 14px; }
.dash .hfc-list label { display: flex; margin: 0; min-height: 34px; font-weight: 400; color: var(--text); }
.dash .hfc-list label[hidden] { display: none; }
hf-choices.is-enhanced .hfc-list { max-height: 224px; overflow-y: auto; padding: 4px 10px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.hfc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 2px 0 10px; }
.dash .hfc-filter { display: block; flex: 1 1 220px; margin: 0; }
.dash .hfc-filter input { width: 100%; min-height: 36px; }
.hfc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 999 1 240px; font-size: 13px; }
.dash button.hfc-chip { min-height: 28px; padding: 0 6px 0 10px; border-radius: 999px; border-color: var(--info-line); background: var(--nav-active); color: #bfdbfe; font-size: 13px; font-weight: 500; gap: 6px; }
.dash button.hfc-chip::after { content: "\00d7"; font-size: 15px; line-height: 1; color: var(--info-chip); }
.dash button.hfc-chip:hover { border-color: var(--accent); }

/* photos */
.photo-grid { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.dash .photo { position: relative; margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.photo-img { display: block; aspect-ratio: 1 / 1; background: #0a1020; }
.dash .photo-img img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.photo-main { position: absolute; top: 6px; left: 6px; background: var(--accent-strong); color: #fff; font-size: 11.5px; border-radius: 4px; padding: 1px 6px; }
.photo-meta { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px 0; }
.badge.plain { background: var(--raised); color: var(--text-2); }
.photo-actions { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px; }
.dash .photo-actions form { margin: 0; }
.dash .photo-actions button { min-height: 30px; min-width: 30px; padding: 0 8px; font-size: 13px; }
.dash .photo-edit { margin: 0 8px 8px; padding: 6px 8px; font-size: 13px; }
.dash .photo-edit summary { font-weight: 400; color: var(--text-2); }
.dash .photo-edit form { margin: 8px 0 0; }
.dash .photo-edit p { margin: 0 0 8px; }
.dash .photo-edit input, .dash .photo-edit select { width: 100%; min-height: 34px; font-size: 13px; }
.dash form.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.dash form.upload small { flex-basis: 100%; }
.dash form.upload .err { flex-basis: 100%; }

/* variants and options */
.dash .variant-form { margin: 0 0 12px; }
.dash .variant-form fieldset { margin: 0; background: var(--surface); }
.dash .variant-form.is-archived fieldset { opacity: 0.75; }
.dash .variant-form.is-new fieldset { border-style: dashed; background: transparent; }
.variant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; align-items: end; }
.dash .variant-grid > label { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; min-height: 0; }
.dash .variant-grid > label > :is(input, select) { width: 100%; margin: 6px 0 0; }
.dash .variant-grid .with-unit > input { margin: 0; }
.variant-save { display: flex; align-items: flex-end; }
.dash form.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin: 8px 0 12px; }
.dash form.inline-form label { display: flex; flex-direction: column; gap: 0; }
.dash form.inline-form label > input { margin-top: 6px; }
.dash form.inline-form > span { align-self: center; color: var(--text-2); font-size: 14px; }
.dash h3 small { font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 6px; }
.dash .option-box { background: var(--surface); }
.value-list { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dash .value-list li { margin: 0; display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: var(--card); }
.dash .value-list li.muted { padding: 2px 10px; }
.dash .value-list form { margin: 0; display: inline; }
.dash button.chip-x { min-height: 24px; min-width: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 15px; }
.dash button.chip-x:hover { color: var(--err-text); background: var(--err-bg); }

/* sidebar */
.checklist { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.dash .checklist li { margin: 0; display: grid; grid-template-columns: 20px 1fr; column-gap: 8px; }
.checklist li::before { grid-row: 1 / span 2; font-weight: 700; text-align: center; }
.checklist li.ok::before { content: "\2713"; color: var(--ok); }
.checklist li.warn::before { content: "!"; color: var(--warn); }
.checklist li.bad::before { content: "\2717"; color: var(--err); }
.checklist li small { grid-column: 2; }
.side .card select { width: 100%; }

/* ---- bol import and settings ---------------------------------------------- */
.dash form.lookup { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 0 0 8px; }
.dash form.lookup label { display: block; flex: 1 1 260px; max-width: 420px; }
.dash form.lookup input { display: block; width: 100%; margin-top: 6px; min-height: 44px; font-family: var(--mono); font-size: 16px; }
.dash form.lookup button { min-height: 44px; }
.desc-box { max-height: 280px; overflow-y: auto; padding: 12px 14px; margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; color: var(--text-2); }
.desc-box p:last-child { margin-bottom: 0; }
.dash dl.facts { grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 14px; }
/* Narrow side column: label above value, so long values (e-mail addresses, hostnames) keep the full width. */
.dash .side dl.facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.dash .side dl.facts dd + dt { margin-top: 8px; }
.dash .msg.hint { display: block; margin: 8px 0 0; padding: 8px 10px; font-size: 13px; }
.dash button.wide { width: 100%; }
.dash .side .card input:not([type="checkbox"]):not([type="hidden"]) { width: 100%; }
.conn-state { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.conn-state .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-muted); flex: none; }
.conn-state.on .dot { background: var(--ok); }
.conn-state.bad .dot { background: var(--err); }
.conn-state.off { color: var(--text-2); font-weight: 500; }

/* ---- publish confirmation ------------------------------------------------- */
.dash .publish-confirm p { margin: 0 0 8px; }
.dash .publish-confirm label { color: inherit; }
.dash .publish-confirm label.reason { display: block; margin-top: 8px; }
.dash .publish-confirm label.reason input { display: block; width: 100%; margin-top: 6px; }

/* ---- dashboard home (Overzicht) ------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 18px; }
.dash a.tile { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; color: var(--text); text-decoration: none; }
.dash a.tile:hover { border-color: var(--field-line); background: #121c2e; }
.tile-label { font-size: 13px; color: var(--muted); }
.tile-n { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-sub { font-size: 13px; color: var(--text-2); }
.t-active { color: #6ee7b7; }
.t-ready { color: #93c5fd; }
.t-blocked { color: #fcd34d; }

.chart-row { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: stretch; }
.chart-row > .chart-card { flex: 1 1 380px; min-width: 0; }
.chart-row > .chart-card + .chart-card { flex: 2 1 480px; }
.donut-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.donut { flex: none; }
.donut-track { stroke: var(--line-soft); }
.donut-n { fill: var(--text); font-family: var(--display); font-weight: 700; font-size: 26px; }
.donut-sub { fill: var(--muted); font-family: var(--sans); font-size: 11px; }
circle.seg-active { stroke: #10b981; }
circle.seg-ready { stroke: #60a5fa; }
circle.seg-blocked { stroke: #f59e0b; }
circle.seg-archived { stroke: #64748b; }
.key.seg-active { background: #10b981; }
.key.seg-ready { background: #60a5fa; }
.key.seg-blocked { background: #f59e0b; }
.key.seg-archived { background: #64748b; }
.dash ul.legend { list-style: none; margin: 0; padding: 0; flex: 1 1 200px; min-width: 0; }
.dash .legend li { margin: 0; border-top: 1px solid var(--line-soft); }
.dash .legend li:first-child { border-top: 0; }
.dash .legend a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--text); text-decoration: none; font-size: 14px; }
.dash .legend a:hover .legend-label { text-decoration: underline; }
.legend .key { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.legend-label { flex: 1; min-width: 0; }
.legend-n { font-weight: 600; font-variant-numeric: tabular-nums; }
.legend-pct { width: 40px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.card.placeholder { background: var(--surface); border-style: dashed; border-color: var(--field-line); }
.pill { background: var(--raised); color: var(--text-2); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; }

.dash ul.todo { list-style: none; margin: 0; padding: 0; }
.dash .todo li { margin: 0; border-top: 1px solid var(--line-soft); }
.dash .todo li:first-child { border-top: 0; }
.dash .todo a { display: flex; align-items: center; gap: 14px; padding: 12px 20px; color: var(--text); text-decoration: none; }
.dash .todo a:hover { background: #0e1626; }
.dash .todo a:hover .todo-title { text-decoration: underline; }
.todo-n { min-width: 52px; text-align: right; font-family: var(--display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.tone-warn { color: #fcd34d; }
.tone-info { color: #93c5fd; }
.tone-err { color: var(--err-text); }
.todo-text { flex: 1; min-width: 0; }
.todo-title { display: block; font-weight: 500; }
.todo-sub { display: block; font-size: 13px; color: var(--muted); }
.todo-go { color: var(--brand-muted); font-size: 18px; }
.dash .todo-none { margin: 0; padding: 14px 20px; color: var(--muted); font-size: 14px; }
.card.flush > .card-head { margin: 0; }

.dash ul.conn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.dash .conn-list li { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.conn-list .conn-state { font-weight: 500; color: var(--text); }
.conn-list .conn-text { flex: 1; color: var(--text-2); }
.conn-list .muted { font-size: 13px; }

.dash ul.feed { list-style: none; margin: 0; padding: 6px 18px 12px; font-size: 14px; }
.dash .feed li { margin: 0; display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.dash .feed li:last-child { border-bottom: 0; }
.feed-when { flex: none; width: 60px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.feed-what { flex: 1; min-width: 0; color: var(--text-2); overflow-wrap: anywhere; }

/* ---- settings sub-menu ---------------------------------------------------- */
.dash .subnav { display: inline-flex; margin: 0 0 18px; }

/* ---- small screens -------------------------------------------------------- */
@media (max-width: 760px) {
  .split > .catnav { max-width: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 18px 16px 48px; }
  .dash h1 { font-size: 24px; }
  .topbar-in { padding: 0 16px; }
  .dash dl { grid-template-columns: 1fr; }
  .dash dt { margin-top: 6px; }
}

/* Bulk publish (product list + check page) */
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.bulkbar form { margin: 0; }
.select-col { width: 36px; text-align: center; }
.select-col input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-strong); }
.publish-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; max-height: 360px; overflow-y: auto; }
.publish-confirm { display: flex; flex-direction: column; gap: 10px; }
.publish-confirm p { margin: 0; }
.publish-confirm .actions { display: flex; align-items: center; gap: 16px; }
.publish-confirm input[name="reason"] { width: 100%; max-width: 520px; }

/* Retourkansje (product page, product list) + prices on one line */
.badge.retour { background: #1a7a43; color: #fff; }
.product-table td.num { white-space: nowrap; }

/* Bestellingen */
.chip.order-paid { background: var(--ok-bg); color: #6ee7b7; }
.chip.order-awaiting_payment { background: #2a2410; color: #fcd34d; }
.chip.order-cancelled, .chip.order-expired, .chip.order-failed { background: #161c26; color: #9aa6b8; }
.order-sums { margin-top: 12px; max-width: 360px; margin-left: auto; }
.chip.order-refunded { background: #1a2438; color: #93c5fd; }
.dash .refund-form fieldset label > input[name="amount"] { width: 7em; display: inline-block; margin-top: 0; }
.dash .refund-form input[name="reason"] { width: 100%; max-width: 520px; }
.dash .refund-confirm p { margin: 0 0 8px; }
.dash .refund-confirm form { margin-top: 10px; }

.badge.sale { background: #b4330f; color: #fff; }
.choice { border: 0; padding: 0; margin: 8px 0 4px; }
.choice legend { font-weight: 600; margin-bottom: 6px; }
.choice p { margin: 4px 0; }

/* Gebruikers (1 Nov 2026) */
.dash .row-actions { white-space: nowrap; }
.dash .row-actions form { display: inline-block; margin: 2px 4px 2px 0; }
.dash .users-table form.inline-form { margin: 0; flex-wrap: nowrap; align-items: center; }
.dash .users-table select { min-height: 32px; padding: 2px 8px; }
.dash .users-table th { white-space: nowrap; }

/* Acties (14 Nov 2026): campaign list, themes, states */
.swatch { display: inline-block; width: 22px; height: 16px; border-radius: 4px; vertical-align: -3px; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.swatch::after { content: ""; position: absolute; right: 3px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--sw-accent); }
.sw-standaard { background: #164a3f; --sw-accent: #f2b632; }
.sw-blackfriday { background: #111111; --sw-accent: #ffd400; }
.sw-valentijn { background: #8f1d3a; --sw-accent: #ffc2d1; }
.sw-koningsdag { background: #c2410c; --sw-accent: #1e3a8a; }
.sw-sinterklaas { background: #a51d24; --sw-accent: #f2c14e; }
.sw-kerst { background: #0d3b2e; --sw-accent: #c8102e; }
.sw-lente { background: #e6f2dc; --sw-accent: #2f7d3a; }
.sw-zomer { background: #d6eef8; --sw-accent: #0b6e99; }
.sw-herfst { background: #7c3a12; --sw-accent: #f4a259; }
.sw-winter { background: #12304f; --sw-accent: #ffffff; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; margin: 2px 0 6px; }
.theme-opt { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.theme-opt:has(input:checked) { border-color: var(--accent-strong); background: var(--info-bg); }
.theme-opt input { margin: 0; }
.chip.camp-running { background: var(--ok-bg); color: #6ee7b7; }
.chip.camp-planned { background: var(--info-bg); color: var(--info-chip); }
.chip.camp-concept { background: var(--raised); color: var(--text-2); }
.chip.camp-over { background: #161c26; color: #9aa6b8; }
.page-head h1 .chip { vertical-align: middle; margin-left: 6px; }
.backlink { margin: 0 0 6px; font-size: 14px; }
.backlink a { color: var(--text-2); }
.campaign-actions { margin: 0 0 18px; }
.confirm-box p { margin: 0 0 10px; }
.badge.warn-badge { background: var(--warn-bg); color: #fcd34d; }

/* Nieuwsbrief */
.chip.nl-draft { background: var(--raised); color: var(--text-2); }
.chip.nl-sending { background: var(--info-bg); color: var(--info-chip); }
.chip.nl-sent { background: var(--ok-bg); color: #6ee7b7; }
.nl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 18px; }
.nl-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; }
.nl-stat b { display: block; font-size: 26px; color: var(--text); }
.nl-stat span { color: var(--muted); font-size: 13px; }
.nl-new { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0 0 18px; }
.nl-new p { margin: 0; }
.nl-new input { min-width: min(420px, 80vw); }
.nl-editor { display: grid; gap: 18px; }
@media (min-width: 1100px) { .nl-editor { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; } .nl-preview { position: sticky; top: 12px; } }
.nl-editor textarea { width: 100%; min-height: 150px; }
.nl-prods { list-style: none; margin: 0 0 10px; padding: 0; }
.nl-prods li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.nl-prods .thumb { width: 36px; height: 36px; }
.nl-prod-btns { margin-left: auto; display: flex; gap: 2px; }
.nl-prod-btns form { margin: 0; }
.nl-sendbox p { margin: 0 0 10px; }
.nl-sendbox .actions form { margin: 0; }
.nl-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.nl-dl dt { color: var(--muted); }
.nl-dl dd { margin: 0; }
.nl-pre { white-space: pre-line; }
/* the preview: the mail's look, in light colours, drawn with classes */
.nlp { background: #f5f2ec; border-radius: 12px; padding: 12px; color: #1d2420; font-size: 14px; max-height: 88vh; overflow: auto; }
.nlp-inbox { background: #fff; border: 1px solid #e6e0d4; border-radius: 8px; padding: 8px 10px; margin: 0 0 10px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nlp-inbox span { color: #6b706c; }
.nlp-mail { background: #fff; border: 1px solid #e6e0d4; border-radius: 12px; padding: 16px 18px 20px; }
.nlp-mark { font-size: 19px; font-weight: 800; margin: 0 0 10px; }
.nlp-mark span { color: #164a3f; }
.nlp-band { border-radius: 10px; padding: 14px 16px; margin: 0 0 14px; background: #164a3f; color: #fff; }
.nlp-band-t { font-weight: 700; }
.nlp-band-n { font-size: 32px; font-weight: 800; line-height: 1.1; color: #f2b632; }
.nlp-band-w { font-size: 12px; color: #cfe0da; }
.nlp-band.th-blackfriday { background: #111; } .th-blackfriday .nlp-band-n { color: #ffd400; } .th-blackfriday .nlp-band-w { color: #bdbdbd; }
.nlp-band.th-valentijn { background: #8f1d3a; } .th-valentijn .nlp-band-n { color: #ffc2d1; } .th-valentijn .nlp-band-w { color: #f3c4d0; }
.nlp-band.th-koningsdag { background: #c2410c; } .th-koningsdag .nlp-band-n { color: #fff; } .th-koningsdag .nlp-band-w { color: #fde3d3; }
.nlp-band.th-sinterklaas { background: #a51d24; } .th-sinterklaas .nlp-band-n { color: #f2c14e; } .th-sinterklaas .nlp-band-w { color: #f6cfcf; }
.nlp-band.th-kerst { background: #0d3b2e; } .th-kerst .nlp-band-n { color: #f3e9d2; } .th-kerst .nlp-band-w { color: #c6d8cf; }
.nlp-band.th-lente { background: #e6f2dc; color: #1f3d26; } .th-lente .nlp-band-n { color: #2f7d3a; } .th-lente .nlp-band-w { color: #46624d; }
.nlp-band.th-zomer { background: #d6eef8; color: #0b3a52; } .th-zomer .nlp-band-n { color: #0b6e99; } .th-zomer .nlp-band-w { color: #3d6578; }
.nlp-band.th-herfst { background: #7c3a12; } .th-herfst .nlp-band-n { color: #f4a259; } .th-herfst .nlp-band-w { color: #f1d2bd; }
.nlp-band.th-winter { background: #12304f; } .th-winter .nlp-band-n { color: #fff; } .th-winter .nlp-band-w { color: #c9d9ea; }
.nlp-h { margin: 0 0 6px; font-size: 18px; color: #1d2420; }
.nlp-p { margin: 0 0 8px; line-height: 1.55; }
.nlp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 0; }
.nlp-grid.one { grid-template-columns: 1fr; }
.nlp-card img, .nlp-noimg { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid #eee; background: #faf8f4; }
.nlp-noimg { display: grid; place-items: center; color: #999; font-size: 12px; }
.nlp-ct { font-weight: 700; margin: 6px 0 2px; font-size: 13px; }
.nlp-pr { font-size: 13px; }
.nlp-pr s { color: #6b706c; }
.nlp-pr .sale { color: #b4330f; }
.nlp-pct { background: #b4330f; color: #fff; border-radius: 99px; padding: 1px 6px; font-size: 11px; font-weight: 800; }
.nlp-btnrow { text-align: center; margin: 14px 0 0; }
.nlp-btn { display: inline-block; background: #f2b632; color: #1d2420; font-weight: 800; padding: 11px 20px; border-radius: 8px; }
.nlp-foot { font-size: 11px; color: #6b706c; margin: 10px 2px 0; line-height: 1.5; }
