/* ==========================================================================
   ZS Ecom — opmaak van de hele app.

   Eén stelsel voor elke pagina. De kleuren, afstanden en hoeken staan hieronder
   als variabelen; gebruik die en nooit een losse hexcode, anders loopt de ene
   pagina langzaam uit de pas met de andere.

   Het donkere vlak is de rustplek; kaarten en panelen komen er met een trapje
   bovenuit (surface-1 t/m surface-3) in plaats van met slagschaduw. Er is één
   accentkleur — het paarsblauw — en die is spaarzaam: knoppen, focus, en de
   pagina waar je bent. Groen en rood zijn geen accenten maar betekenis: winst
   en verlies, gelukt en mislukt.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* ---- vlakken: van diep naar opgetild ---- */
  --canvas: #010102;
  --surface-1: #0f1011;
  --surface-2: #141516;
  --surface-3: #18191a;
  --hairline: #23252a;
  --hairline-strong: #34343a;

  /* ---- tekst: van fel naar fluisterend ---- */
  --ink: #f7f8f8;
  --ink-muted: #d0d6e0;
  --ink-subtle: #8a8f98;
  --ink-tertiary: #62666d;

  /* ---- het enige accent ---- */
  --accent: #5e6ad2;
  --accent-hover: #828fff;
  --accent-focus: #5e69d1;
  --accent-wash: rgba(94, 106, 210, 0.12);

  /* ---- betekenis, geen sier ----
     Dezelfde stappen als de staafjes in de PnL-grafiek, zodat een groen getal
     in de tabel en een groene staaf hetzelfde groen zijn. */
  --pos: #199e70;
  --neg: #e66767;
  --warn: #c98500;
  --info: #3987e5;

  /* ---- maatvoering: alles een veelvoud van 4 ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 9999px;

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Kort genoeg om niet in de weg te zitten, lang genoeg om te zien dat er
     iets gebeurde. */
  --snel: 140ms cubic-bezier(0.4, 0, 0.2, 1);
  --rustig: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  --z-inhoud: 1;
  --z-zijbalk: 10;
  --z-zwevend: 20;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: var(--accent-wash);
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }

/* Wie met het toetsenbord werkt moet altijd kunnen zien waar hij is. Eén ring
   voor de hele app, in het accent. */
:focus-visible {
  outline: 2px solid var(--accent-focus);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection { background: var(--accent-wash); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- meteen naar de inhoud ----------
   Onzichtbaar tot je hem met tab aanspringt: dan hoef je niet eerst door de
   hele zijbalk heen voor je bij de tabel bent. */
.skip {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: var(--z-zwevend);
  background: var(--accent);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  font-weight: 500;
  transition: top var(--snel);
}
.skip:focus { top: var(--sp-4); color: #fff; }

/* ==========================================================================
   Raamwerk
   ========================================================================== */
.shell { display: flex; min-height: 100dvh; }

/* ---------- zijbalk ----------
   Blijft staan bij het scrollen: in een lange PnL-tabel wil je niet eerst naar
   boven om naar Taken te kunnen springen. */
.side {
  width: 224px;
  flex: 0 0 224px;
  background: var(--canvas);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) var(--sp-3) var(--sp-4);
  position: sticky;
  top: 0;
  height: 100dvh;
  z-index: var(--z-zijbalk);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-3) var(--sp-6);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: var(--r-sm);
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.side nav { display: flex; flex-direction: column; gap: 1px; }
.side nav a {
  display: flex;
  align-items: center;
  padding: 7px var(--sp-3);
  border-radius: var(--r-sm);
  color: var(--ink-subtle);
  font-size: 13.5px;
  font-weight: 450;
  transition: background var(--snel), color var(--snel);
}
.side nav a:hover { background: var(--surface-1); color: var(--ink); }
.side nav a.on {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 550;
}
/* Het haakje naar het tooldashboard tekenen we met een randje in plaats van
   met een pijltjesteken: niet elk lettertype heeft dat teken, en dan staat er
   een leeg blokje. */
.side nav a.sub {
  font-size: 12.5px;
  padding-left: var(--sp-6);
  color: var(--ink-tertiary);
  position: relative;
}
.side nav a.sub::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 6px;
  bottom: 50%;
  width: 6px;
  border-left: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
  border-bottom-left-radius: 3px;
}
.side nav a.sub:hover { color: var(--ink-subtle); }

.sep { height: 1px; background: var(--hairline); margin: var(--sp-3); }

.side-foot {
  margin-top: auto;
  padding: var(--sp-3) var(--sp-3) 0;
  font-size: 12px;
  color: var(--ink-tertiary);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  border-top: 1px solid var(--hairline);
}
.side-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot a { color: var(--ink-subtle); width: fit-content; }
.side-foot a:hover { color: var(--accent-hover); }

/* ---------- hoofdgebied ---------- */
.main {
  flex: 1;
  min-width: 0;
  padding: var(--sp-8) var(--sp-8) var(--sp-12);
}
.main > * { max-width: 1440px; }

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--hairline);
}
.head h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.head-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }

.section { margin-top: var(--sp-8); }
.section h2 {
  font-size: 11px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-tertiary);
  margin: 0 0 var(--sp-3);
}

/* ==========================================================================
   Kaarten
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--sp-3);
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  /* Het randje licht bovenop is wat een vlak op een donkere ondergrond het
     gevoel geeft dat het er echt bovenop ligt, zonder slagschaduw. */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card .label {
  color: var(--ink-tertiary);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.card .value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.card p {
  color: var(--ink-subtle);
  font-size: 13px;
  margin: var(--sp-2) 0 0;
  text-wrap: pretty;
}

.card.link {
  display: block;
  transition: background var(--snel), border-color var(--snel), transform var(--snel);
}
.card.link:hover {
  background: var(--surface-2);
  border-color: var(--hairline-strong);
  transform: translateY(-1px);
}
.card.link:active { transform: translateY(0); }
.card.link .label {
  color: var(--ink);
  font-size: 14px;
  text-transform: none;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Tabellen
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

table { width: 100%; border-collapse: collapse; font-size: 13px; }

th {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-tertiary);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

td {
  text-align: left;
  padding: 11px var(--sp-4);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-muted);
}
td:first-child { color: var(--ink); font-weight: 450; }

tbody tr:last-child td { border-bottom: none; }
tbody tr {
  content-visibility: auto;
  contain-intrinsic-size: auto 41px;
}
tbody tr { transition: background var(--snel); }
tbody tr:hover { background: var(--surface-2); }

/* Getallen in een kolom moeten onder elkaar uitlijnen, ook als er een 1 en een
   8 boven elkaar staan. */
tr.klikbaar { cursor: pointer; }
tr.klikbaar td:first-child a { color: inherit; }
tr.klikbaar:hover td:first-child a { text-decoration: underline; text-underline-offset: 2px; }

td.num, th.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
}

/* ==========================================================================
   Merkjes
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px var(--sp-2);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--ink-subtle);
  white-space: nowrap;
}
/* Een stipje ervoor, zodat de staat ook zonder kleur af te lezen is. */
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 5px;
}
.badge.done { color: var(--pos); border-color: rgba(25, 158, 112, 0.35); }
.badge.failed { color: var(--neg); border-color: rgba(230, 103, 103, 0.35); }
.badge.running { color: var(--info); border-color: rgba(57, 135, 229, 0.35); }
.badge.review,
.badge.wachtend { color: var(--warn); border-color: rgba(201, 133, 0, 0.35); }
.badge.queued { color: var(--ink-subtle); }
.badge.skipped { color: var(--ink-tertiary); border-style: dashed; }

.pos { color: var(--pos); }
.neg { color: var(--neg); }
.muted { color: var(--ink-subtle); }

/* ==========================================================================
   Formulieren
   ========================================================================== */
form.stack { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 520px; }

label {
  font-size: 12.5px;
  color: var(--ink-subtle);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 450;
}

input, select, textarea {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  font-family: inherit;
  font-size: 13.5px;
  width: 100%;
  min-height: 36px;
  transition: border-color var(--snel), background var(--snel), box-shadow var(--snel);
}
input::placeholder, textarea::placeholder { color: var(--ink-tertiary); }
input:hover, select:hover, textarea:hover { border-color: var(--hairline-strong); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--accent-focus);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
input[type="file"] { padding: 6px var(--sp-2); color: var(--ink-subtle); }
input[type="file"]::file-selector-button {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  margin-right: var(--sp-3);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--surface-3); }

textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
}

.check { flex-direction: row; align-items: center; gap: var(--sp-2); color: var(--ink-muted); }
.check input { width: auto; min-height: 0; accent-color: var(--accent); }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: var(--sp-2) 14px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  min-height: 36px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--snel), border-color var(--snel), transform var(--snel);
}
.btn:hover { background: var(--accent-hover); color: #fff; }
/* Een duwtje omlaag bij het indrukken: dan voelt de knop als een knop. */
.btn:active { background: var(--accent-focus); transform: translateY(1px); }

.btn.ghost {
  background: var(--surface-1);
  border-color: var(--hairline);
  color: var(--ink-muted);
}
.btn.ghost:hover { background: var(--surface-2); border-color: var(--hairline-strong); color: var(--ink); }
.btn.ghost.on { background: var(--surface-2); border-color: var(--hairline-strong); color: var(--ink); }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ==========================================================================
   Berichten en lege plekken
   ========================================================================== */
.notice {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-6);
  font-size: 13px;
  color: var(--ink-muted);
}

.empty {
  color: var(--ink-subtle);
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
  font-size: 13px;
}
.empty a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 2px; }

.error { color: var(--neg); font-size: 12.5px; }

.paneel {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Inloggen
   ========================================================================== */
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--sp-6);
}
.login .box {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  width: 100%;
  max-width: 380px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.login h1 { font-size: 18px; margin: 0 0 var(--sp-1); letter-spacing: -0.03em; }
.login .box > p { color: var(--ink-subtle); font-size: 13px; margin: 0 0 var(--sp-6); }
.login form.stack { max-width: none; }
.login .btn { width: 100%; margin-top: var(--sp-1); }

/* ==========================================================================
   De ketting: importer -> verwerking -> Shopify
   ========================================================================== */
.chain {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.chain .step {
  color: var(--ink-tertiary);
  padding: 3px 10px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
}
.chain .step.on {
  color: var(--ink);
  background: var(--surface-2);
  border-color: var(--hairline);
  font-weight: 500;
}
.chain .arrow { color: var(--ink-tertiary); }
.chain .muted { font-size: 12.5px; }

/* ==========================================================================
   Smalle schermen
   ========================================================================== */
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .side {
    width: 100%;
    flex: none;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-2);
    overflow-x: auto;
    padding: var(--sp-3) var(--sp-4);
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
  .brand { padding: 0 var(--sp-3) 0 0; }
  .side nav { flex-direction: row; gap: var(--sp-1); }
  .side nav a.sub { padding-left: var(--sp-3); }
  .side-foot {
    margin-left: auto;
    margin-top: 0;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-3);
    border-top: none;
    padding: 0;
  }
  .side-foot span:first-child { display: none; }
  .sep { display: none; }
  .main {
    padding: var(--sp-6) max(var(--sp-4), env(safe-area-inset-right))
             var(--sp-12) max(var(--sp-4), env(safe-area-inset-left));
  }
  .head h1 { font-size: 19px; }
}

/* Aanraakschermen: elke knop en elk veld minstens 44px hoog om te raken. */
@media (pointer: coarse) {
  .btn, input, select { min-height: 44px; }
  .side nav a { padding: 11px var(--sp-3); }
}

/* ==========================================================================
   Accounts en rechten
   ========================================================================== */
/* wie je bent, onderin het menu */
.side-foot .wie {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2);
  margin: 0 calc(var(--sp-2) * -1) var(--sp-1);
  border-radius: var(--r-md);
  color: var(--ink-muted);
  min-width: 0;
}
.side-foot .wie:hover { background: var(--surface-1); color: var(--ink); }
.side-foot .wie.on { background: var(--surface-1); color: var(--ink); }
.side-foot .cirkel {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.side-foot .wie-tekst { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.side-foot .wie-tekst strong {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-foot .wie-tekst em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* formulieren die naast elkaar mogen staan */
.raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
  align-items: end;
}
.raster .knoprij { grid-column: 1 / -1; }
.knoprij { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.knoprij.onderaan { margin-top: var(--sp-6); }
.uitleg { font-size: 12.5px; margin: calc(var(--sp-3) * -1) 0 var(--sp-4); max-width: 70ch; }
.klein { font-size: 12px; margin: var(--sp-4) 0 0; }
.hint { display: block; font-size: 11.5px; color: var(--ink-tertiary); font-weight: 400; margin-top: 2px; }
.check.aanzet { margin-top: var(--sp-5); }

/* de vinkjes per recht */
.rechten { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-4); }
.rechten .groep {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin: 0;
}
.rechten legend {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-tertiary);
  padding: 0 var(--sp-2);
}
.rechten .recht {
  display: flex;
  /* zonder deze regel wint de kolomrichting van de algemene label-stijl en
     staat het vinkje bóven de tekst in plaats van ernaast */
  flex-direction: row;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  font-weight: 400;
  cursor: pointer;
}
.rechten .groep .recht:first-of-type { border-top: 0; padding-top: var(--sp-1); }
.rechten .recht input { width: auto; min-height: 0; margin-top: 3px; accent-color: var(--accent); }
.rechten .recht strong { display: block; font-size: 13px; font-weight: 500; }
.rechten .recht em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--ink-subtle);
  margin-top: 2px;
}
.rechten.lezen .recht { cursor: default; }
.rechten .recht .teken {
  width: 16px;
  text-align: center;
  font-size: 13px;
  margin-top: 1px;
  color: var(--ink-tertiary);
}
.rechten .recht.aan .teken { color: var(--pos); }
.rechten .recht.uit strong,
.rechten .recht.uit em { color: var(--ink-tertiary); }

/* het rollenoverzicht */
table.rollen th.smal { width: 96px; text-align: center; }
table.rollen td.midden { text-align: center; }
table.rollen .ja { color: var(--pos); }
table.rollen .nee { color: var(--ink-tertiary); }

/* op slot */
.paneel.slot { max-width: 640px; }
.paneel.slot h2 { margin: var(--sp-4) 0 var(--sp-2); font-size: 15px; letter-spacing: -0.02em; }
.paneel.slot p { color: var(--ink-subtle); font-size: 13px; margin: 0 0 var(--sp-3); max-width: 60ch; }
.slot-teken {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--warn);
}
.paneel .rij { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.paneel.gevaar { border-color: rgba(230, 103, 103, 0.28); }
.paneel.gevaar p { color: var(--ink-subtle); font-size: 13px; margin: 0 0 var(--sp-4); max-width: 60ch; }
.btn.ghost.rood { color: var(--neg); border-color: rgba(230, 103, 103, 0.35); }
.btn.ghost.rood:hover { background: rgba(230, 103, 103, 0.1); color: var(--neg); }

.notice.let-op { border-left-color: var(--warn); }
/* al verlopen, niet alleen bijna: dat is geen waarschuwing meer maar een storing */
.notice.fout { border-left-color: var(--neg); }
.notice a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 2px; }

.jij {
  font-size: 10.5px;
  color: var(--ink-tertiary);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: var(--sp-2);
}
td.rechts { text-align: right; }

/* onderaan de inlog- en aanmeldpagina */
.login .onder { font-size: 12.5px; color: var(--ink-subtle); margin: var(--sp-5) 0 0; text-align: center; }
.login .onder a { color: var(--accent-hover); }
.login .box > .btn { display: block; text-align: center; width: 100%; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* de stand van de Drive-koppeling */
.drive-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2) var(--sp-4);
  margin: 0 0 var(--sp-4);
  font-size: 12.5px;
}
.drive-status dt { color: var(--ink-tertiary); }
.drive-status dd { margin: 0; color: var(--ink-muted); }
.drive-status code { font-size: 11.5px; word-break: break-all; }

/* ==========================================================================
   Concurrenten

   Drie pagina's delen deze opmaak (winkels, producten, één winkel), daarom
   staat hij hier en niet in één template. Alles hangt onder #conc zodat het
   nooit een andere pagina raakt.
   ========================================================================== */

/* ---- tabbladen ---- */
#conc .tabs {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--sp-6);
}
#conc .tabs a {
  padding: var(--sp-2) var(--sp-3);
  font-size: 13px;
  color: var(--ink-subtle);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
#conc .tabs a:hover { color: var(--ink); }
#conc .tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }

/* ---- filterknoppen ---- */
#conc .filters { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
#conc .filters + .filters { margin-top: var(--sp-2); }
#conc .filters .kop { font-size: 11px; color: var(--ink-tertiary); text-transform: uppercase; letter-spacing: 0.07em; min-width: 62px; }
#conc .filters a, #conc .filters button.pil {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--surface-1);
  color: var(--ink-subtle);
  font-family: inherit;
  cursor: pointer;
}
#conc .filters a:hover, #conc .filters button.pil:hover { border-color: var(--hairline-strong); color: var(--ink); }
#conc .filters a.on, #conc .filters button.pil.on {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--ink);
}
#conc .eigenperiode { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
#conc .eigenperiode input[type="date"] { width: auto; font-size: 12px; padding: 3px var(--sp-2); }
#conc .eigenperiode span { font-size: 12px; color: var(--ink-tertiary); }

/* ---- staafjes: nieuwe producten per dag ---- */
#conc .grafiek {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 56px;
  margin: var(--sp-4) 0 var(--sp-2);
}
#conc .grafiek .staaf {
  flex: 1 1 0;
  min-width: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}
#conc .grafiek .staaf.leeg { height: 2px; background: var(--hairline); }
#conc .asrand { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-tertiary); }

/* ---- de blokken met vondsten ---- */
#conc .dagkop {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  margin: var(--sp-6) 0 var(--sp-3);
}
#conc .dagkop h3 { margin: 0; font-size: 13px; font-weight: 550; letter-spacing: -0.01em; }
#conc .dagkop span { font-size: 11.5px; color: var(--ink-tertiary); }

#conc .vondsten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--sp-3);
}
#conc .vondst {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  transition: border-color var(--snel), transform var(--snel);
}
#conc .vondst:hover { border-color: var(--hairline-strong); transform: translateY(-1px); }
#conc .vondst .plaatje { aspect-ratio: 1 / 1; background: var(--surface-2); display: block; object-fit: cover; width: 100%; }
#conc .vondst .geen-plaatje {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink-tertiary);
  font-size: 11px;
}
#conc .vondst .tekst { padding: var(--sp-3); display: flex; flex-direction: column; gap: 5px; flex: 1; }
#conc .vondst .titel {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink);
  /* twee regels en dan afkappen: anders wordt de ene kaart twee keer zo hoog
     als de andere en oogt het rooster rommelig */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#conc .vondst .onder {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-2);
  font-size: 11.5px;
  color: var(--ink-tertiary);
}
#conc .vondst .prijs { font-family: var(--font-mono); color: var(--ink-muted); }
#conc .vondst .van { color: var(--ink-subtle); }

/* ---- tabel met winkels ---- */
#conc td .sub { display: block; font-size: 11px; color: var(--ink-tertiary); margin-top: 2px; }
#conc .rijacties { display: flex; gap: var(--sp-1); justify-content: flex-end; }
#conc .rijacties button {
  background: none;
  border: 0;
  color: var(--ink-tertiary);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--r-xs);
}
#conc .rijacties button:hover { background: var(--surface-3); color: var(--ink); }
#conc .rijacties button.weg:hover { color: var(--neg); }

/* ---- formulieren ---- */
#conc .rijform { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: flex-end; }
#conc .rijform label { flex: 1 1 170px; }
#conc .rijform .btn { flex: 0 0 auto; }
#conc details.vouw summary { cursor: pointer; font-size: 12.5px; color: var(--ink-subtle); list-style: none; }
#conc details.vouw summary::-webkit-details-marker { display: none; }
#conc details.vouw summary::before { content: "▸ "; color: var(--ink-tertiary); }
#conc details.vouw[open] summary::before { content: "▾ "; }
#conc details.vouw .inhoud { margin-top: var(--sp-4); }

/* ---- detailpagina ---- */
#conc .terug { font-size: 12.5px; color: var(--ink-subtle); margin-bottom: var(--sp-4); display: inline-block; }
#conc .lijn { width: 100%; height: 130px; display: block; }
#conc .legenda { display: flex; gap: var(--sp-4); font-size: 11.5px; color: var(--ink-tertiary); margin-top: var(--sp-2); }
#conc .legenda span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 2px;
  margin-right: 6px;
  vertical-align: middle;
  background: currentColor;
}
#conc .legenda .bez { color: var(--accent); }
#conc .legenda .ads { color: var(--info); }
#conc .apps { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-2); }
