/* BytesNel WaaS — designsysteem (Bouwplan hoofdstuk 2)
   Licht, clean, professioneel — à la Linear/Vercel. Teal als signatuurkleur.
   Systeemfonts als fallback zodat de CSP 'self'-only kan blijven; Inter/JetBrains
   Mono worden in een latere UI-stap self-hosted toegevoegd. */

:root {
  /* Kleuren (Bouwplan 2.1 — pro-refresh: rijkere neutralen + gelaagde diepte) */
  --kleur-primair: #0F766E;        /* Teal — logo, actieve nav, primaire knoppen */
  --kleur-primair-donker: #0b5e57;
  --kleur-primair-licht: #d5f5ef;
  --kleur-primair-zacht: #eafaf6;
  --kleur-success: #10B981;
  --kleur-warning: #D97706;
  --kleur-info: #3B82F6;
  --kleur-error: #EF4444;

  --kleur-canvas: #F6F8FA;          /* App-achtergrond waarop kaarten 'zweven' */
  --kleur-achtergrond: #FFFFFF;     /* Kaarten & content */
  --kleur-sidebar: #FBFCFD;         /* Zijbalk, subtiele panelen */
  --kleur-tekst: #0F172A;           /* Primaire tekst, koppen (slate-900) */
  --kleur-tekst-zacht: #64748B;     /* Labels, metadata (slate-500) */
  --kleur-rand: #E7E9EE;            /* Kaartranden, scheidingslijnen */
  --kleur-rand-zacht: #EEF1F5;      /* Rij-hover, subtiele vlakken */
  --kleur-console: #0B0F19;         /* Live console-paneel (donker contrast) */

  /* Typografie (Bouwplan 2.2) */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;

  /* Vorm & ruimte */
  --radius: 16px;
  --radius-klein: 9px;
  --radius-groot: 20px;
  --schaduw: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 6px rgba(15, 23, 42, 0.05);
  --schaduw-hover: 0 8px 24px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.06);
  --top-glas: rgba(255, 255, 255, 0.72);  /* sticky topbar-glas (donker in dark-thema) */
  --accent-licht: var(--kleur-primair);    /* heldere accent voor tekst/links (dark: teal-glow) */

  /* Statuskleuren (pills, badges, meldingen). Licht = pastel; het donkere thema
     zet dit om naar transparante tint + heldere tekst, zodat het niet vloekt. */
  --chip-groen-bg: #ECFDF5; --chip-groen-tx: #047857; --chip-groen-rand: #A7F3D0;
  --chip-amber-bg: #FFFBEB; --chip-amber-tx: #B45309; --chip-amber-rand: #FDE68A;
  --chip-blauw-bg: #EFF6FF; --chip-blauw-tx: #1D4ED8; --chip-blauw-rand: #BFDBFE;
  --chip-rood-bg:  #FEF2F2; --chip-rood-tx:  #B91C1C; --chip-rood-rand:  #FECACA;
  --chip-grijs-bg: #F3F4F6; --chip-grijs-tx: #374151; --chip-grijs-rand: #E5E7EB;

  --ruimte-2: 8px;
  --ruimte-3: 12px;
  --ruimte-4: 16px;
  --ruimte-6: 24px;
  --ruimte-8: 32px;

  --sidebar-breedte: 240px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  color: var(--kleur-tekst);
  background-color: var(--kleur-achtergrond);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--ruimte-4); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 19px; }
p { margin: 0 0 var(--ruimte-4); color: var(--kleur-tekst-zacht); max-width: 60ch; }
a { color: var(--kleur-primair); text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--kleur-primair);
  outline-offset: 2px;
  border-radius: var(--radius-klein);
}

.mono { font-family: var(--font-mono); font-size: 13px; }

/* --- Knoppen -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-klein);
  font-family: inherit; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn { transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 120ms ease; }
.btn:active { transform: translateY(1px); }
.btn-primair { background: var(--kleur-primair); color: #fff; box-shadow: 0 1px 2px rgba(15,23,42,0.14), inset 0 1px 0 rgba(255,255,255,0.14); }
.btn-primair:hover { background: var(--kleur-primair-donker); box-shadow: 0 4px 12px rgba(15,118,110,0.28), inset 0 1px 0 rgba(255,255,255,0.14); }
.btn-secundair { background: var(--kleur-achtergrond); color: var(--kleur-tekst); border-color: var(--kleur-rand); box-shadow: var(--schaduw); }
.btn-secundair:hover { background: var(--kleur-sidebar); border-color: #d7dbe2; }
.btn svg { width: 18px; height: 18px; }

/* --- Formuliervelden ------------------------------------------------------ */
.veld { margin-bottom: var(--ruimte-4); text-align: left; }
.veld label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--kleur-tekst); }
.veld input {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 14px;
  border: 1px solid var(--kleur-rand); border-radius: var(--radius-klein);
  background: var(--kleur-achtergrond); color: var(--kleur-tekst); transition: border-color 160ms ease, box-shadow 160ms ease;
}
.veld input:focus { outline: none; border-color: var(--kleur-primair); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12); }

/* --- Meldingen ------------------------------------------------------------ */
.melding { padding: 12px 14px; border-radius: var(--radius-klein); font-size: 14px; margin-bottom: var(--ruimte-4); border: 1px solid transparent; }
.melding-fout { background: var(--chip-rood-bg); color: var(--chip-rood-tx); border-color: var(--chip-rood-rand); }
.melding-info { background: var(--chip-blauw-bg); color: var(--chip-blauw-tx); border-color: var(--chip-blauw-rand); }

/* --- Badges & pills ------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.badge-positief { background: var(--chip-groen-bg); color: var(--chip-groen-tx); }
.badge-neutraal { background: var(--kleur-sidebar); color: var(--kleur-tekst-zacht); }
.badge-status { background: var(--chip-groen-bg); color: var(--chip-groen-tx); }
.badge .stip, .pil .stip { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.pil {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.pil-geslaagd { background: var(--chip-groen-bg); color: var(--chip-groen-tx); }
.pil-bezig    { background: var(--chip-amber-bg); color: var(--chip-amber-tx); }
.pil-gepland  { background: var(--chip-blauw-bg); color: var(--chip-blauw-tx); }

/* --- Kaarten -------------------------------------------------------------- */
.kaart {
  background: var(--kleur-achtergrond); border: 1px solid var(--kleur-rand);
  border-radius: var(--radius); padding: var(--ruimte-6);
  box-shadow: var(--schaduw);
}
.kaart h3 { font-size: 16px; }

/* ========================================================================== */
/* Dashboard-layout                                                           */
/* ========================================================================== */
/* Dashboard = donker AI-control-center by default. Publiek/portaal/login blijven
   licht (die dragen geen .dash-body). De toggle in de topbar zet data-theme. */
.dash-body {
  --kleur-canvas: #0A0C11;
  --kleur-achtergrond: #12151C;   /* kaarten, inputs, knoppen, surfaces */
  --kleur-sidebar: #0C0F16;
  --kleur-tekst: #E7EAF0;
  --kleur-tekst-zacht: #8A93A7;
  --kleur-rand: rgba(255, 255, 255, 0.08);
  --kleur-rand-zacht: rgba(255, 255, 255, 0.05);
  --kleur-primair-licht: rgba(45, 212, 191, 0.14);  /* subtiele teal-tint (actieve nav) */
  --accent-licht: #5EEAD4;         /* heldere teal voor tekst/links/iconen op donker */
  --accent-teal: #2DD4BF; --accent-violet: #8B7BFF;
  --glow: 0 0 0 1px rgba(45,212,191,.22), 0 10px 34px rgba(45,212,191,.14);
  --top-glas: rgba(10, 12, 17, 0.72);
  --schaduw: 0 1px 2px rgba(0,0,0,.3), 0 2px 10px rgba(0,0,0,.35);
  --schaduw-hover: 0 10px 30px rgba(0,0,0,.5);
  /* Statuskleuren donker: transparante tint + heldere tekst i.p.v. felle pastel. */
  --chip-groen-bg: rgba(52,211,153,.14);  --chip-groen-tx: #34D399; --chip-groen-rand: rgba(52,211,153,.28);
  --chip-amber-bg: rgba(251,191,36,.14);  --chip-amber-tx: #FBBF24; --chip-amber-rand: rgba(251,191,36,.28);
  --chip-blauw-bg: rgba(96,165,250,.14);  --chip-blauw-tx: #60A5FA; --chip-blauw-rand: rgba(96,165,250,.28);
  --chip-rood-bg:  rgba(248,113,113,.14); --chip-rood-tx:  #F87171; --chip-rood-rand:  rgba(248,113,113,.28);
  --chip-grijs-bg: rgba(255,255,255,.07); --chip-grijs-tx: #AEB6C6; --chip-grijs-rand: rgba(255,255,255,.12);
  background: var(--kleur-canvas);
  background-image:
    radial-gradient(900px 520px at 85% -8%, rgba(139,123,255,.10), transparent 60%),
    radial-gradient(700px 460px at 4% 2%, rgba(45,212,191,.08), transparent 55%);
  background-attachment: fixed;
}
/* Licht thema terug voor wie de toggle op licht zet (herstelt de :root-waarden). */
.dash-body[data-theme="light"] {
  --kleur-canvas: #F6F8FA;
  --kleur-achtergrond: #FFFFFF;
  --kleur-sidebar: #FBFCFD;
  --kleur-tekst: #0F172A;
  --kleur-tekst-zacht: #64748B;
  --kleur-rand: #E7E9EE;
  --kleur-rand-zacht: #EEF1F5;
  --kleur-primair-licht: #d5f5ef;
  --accent-licht: var(--kleur-primair);
  --accent-teal: #0F766E; --accent-violet: #7C5CFF;
  --glow: 0 0 0 1px rgba(15,118,110,.18), 0 10px 30px rgba(15,118,110,.10);
  --top-glas: rgba(255, 255, 255, 0.72);
  --schaduw: 0 1px 2px rgba(15,23,42,.04), 0 2px 6px rgba(15,23,42,.05);
  --schaduw-hover: 0 8px 24px rgba(15,23,42,.10), 0 2px 8px rgba(15,23,42,.06);
  --chip-groen-bg: #ECFDF5; --chip-groen-tx: #047857; --chip-groen-rand: #A7F3D0;
  --chip-amber-bg: #FFFBEB; --chip-amber-tx: #B45309; --chip-amber-rand: #FDE68A;
  --chip-blauw-bg: #EFF6FF; --chip-blauw-tx: #1D4ED8; --chip-blauw-rand: #BFDBFE;
  --chip-rood-bg:  #FEF2F2; --chip-rood-tx:  #B91C1C; --chip-rood-rand:  #FECACA;
  --chip-grijs-bg: #F3F4F6; --chip-grijs-tx: #374151; --chip-grijs-rand: #E5E7EB;
  background-image: none;
}
.dash-layout { display: flex; min-height: 100vh; }

/* Donker-thema contrast-correcties (waar tokens overladen zijn). */
.dash-body .dash-nav-item.actief { color: var(--accent-licht); }
.dash-body .agent-avatar { color: var(--accent-licht); }
.dash-body a { color: var(--accent-licht); }
.dash-body .kaart-link, .dash-body .link, .dash-body .terug-link:hover { color: var(--accent-licht); }

/* Sidebar */
.dash-sidebar {
  width: var(--sidebar-breedte); flex-shrink: 0;
  background: var(--kleur-sidebar); border-right: 1px solid var(--kleur-rand);
  display: flex; flex-direction: column; padding: var(--ruimte-6) var(--ruimte-4);
  position: sticky; top: 0; height: 100vh;
}
.dash-logo { display: flex; align-items: center; gap: 10px; margin-bottom: var(--ruimte-8); color: var(--kleur-tekst); }
.dash-logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, var(--accent-teal, #14857b), var(--accent-violet, var(--kleur-primair-donker))); color: #04120f;
  box-shadow: 0 4px 18px rgba(45, 212, 191, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.dash-logo-mark svg { width: 20px; height: 20px; }
.dash-logo-tekst { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; line-height: 1.1; }
.dash-logo-tekst small { display: block; font-size: 11px; font-weight: 500; color: var(--kleur-tekst-zacht); }

.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: var(--radius-klein);
  color: var(--kleur-tekst-zacht); font-size: 14px; font-weight: 500;
  border-left: 3px solid transparent; transition: background-color 160ms ease, color 160ms ease;
}
.dash-nav-item:hover { background: rgba(15, 118, 110, 0.06); color: var(--kleur-tekst); }
.dash-nav-item.actief { background: linear-gradient(90deg, var(--kleur-primair-licht), transparent); color: var(--kleur-primair-donker); border-left-color: var(--accent-teal, var(--kleur-primair)); font-weight: 600; }
.dash-nav-icon { display: inline-flex; }
.dash-nav-icon svg { width: 18px; height: 18px; }
.dash-nav-uit { margin-top: auto; padding-top: var(--ruimte-6); }

/* Hoofdkolom + topbar */
.dash-hoofd { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--ruimte-8); border-bottom: 1px solid var(--kleur-rand);
  background: var(--top-glas); position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.dash-topbar-titel h1 { font-size: 20px; margin: 0; }
.dash-topbar-acties { display: flex; align-items: center; gap: 14px; }
.icoon-knop {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  background: var(--kleur-achtergrond); border: 1px solid var(--kleur-rand); color: var(--kleur-tekst-zacht);
  cursor: pointer; transition: background-color 160ms ease, color 160ms ease;
}
.icoon-knop:hover { background: var(--kleur-sidebar); color: var(--kleur-tekst); }
.icoon-knop svg { width: 18px; height: 18px; }
.dash-gebruiker {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-teal, var(--kleur-primair)), var(--accent-violet, var(--kleur-primair-donker))); color: #04120f; font-weight: 700; font-size: 14px;
}
.dash-main { padding: var(--ruimte-8); flex: 1; background: var(--kleur-canvas); }

/* KPI-kaarten */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ruimte-6); margin-bottom: var(--ruimte-6); }
.kpi-kaart { display: flex; flex-direction: column; gap: 14px; transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease; }
.kpi-kaart:hover { box-shadow: var(--schaduw-hover); transform: translateY(-2px); border-color: #dce0e7; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: 13px; color: var(--kleur-tekst-zacht); font-weight: 500; }
.kpi-waarde { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font-mono); }

/* Twee-koloms layout: tabel + console */
.dash-2kol { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--ruimte-6); align-items: start; }
.kaart-kop { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--ruimte-4); }
.kaart-sub { margin: 4px 0 0; font-size: 13px; }
.kaart-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.kaart-link svg { width: 16px; height: 16px; }

/* Tabel */
.tabel-omhulsel { overflow-x: auto; }
.tabel { width: 100%; border-collapse: collapse; }
.tabel th {
  text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--kleur-tekst-zacht); padding: 0 12px 10px; border-bottom: 1px solid var(--kleur-rand);
}
.tabel td { padding: 14px 12px; border-bottom: 1px solid var(--kleur-rand); font-size: 14px; vertical-align: middle; }
.tabel tr:last-child td { border-bottom: none; }
.tabel tbody tr { transition: background-color 120ms ease; }
.tabel tbody tr:hover { background: var(--kleur-rand-zacht); }

.agent-cel { display: flex; align-items: center; gap: 11px; }
.agent-avatar {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--kleur-primair-licht); color: var(--kleur-primair-donker);
}
.agent-naam { font-weight: 600; }
.agent-rol { font-size: 12px; color: var(--kleur-tekst-zacht); }

.balk { display: inline-block; width: 84px; height: 6px; border-radius: 999px; background: var(--kleur-rand); vertical-align: middle; overflow: hidden; }
.balk-vul { display: block; height: 100%; background: var(--kleur-primair); border-radius: 999px; }
.balk-cijfer { margin-left: 8px; font-size: 13px; font-family: var(--font-mono); color: var(--kleur-tekst-zacht); }

/* Live console-paneel */
.console {
  background: var(--kleur-console); border-radius: var(--radius); overflow: hidden;
  border: 1px solid #0f1626; box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
}
.console-balk { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #0f1626; border-bottom: 1px solid #1e293b; }
.console-stip { width: 11px; height: 11px; border-radius: 50%; }
.console-stip.rood { background: #ff5f57; } .console-stip.geel { background: #febc2e; } .console-stip.groen { background: #28c840; }
.console-titel { margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: #64748B; }
.console-body { padding: 14px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; max-height: 360px; overflow-y: auto; }
.console-regel { display: flex; gap: 8px; margin-bottom: 10px; }
.console-tijd { color: #64748B; flex-shrink: 0; }
.console-niveau { font-weight: 700; flex-shrink: 0; }
.n-sys { color: #60A5FA; } .n-warn { color: #FBBF24; } .n-info { color: #22D3EE; }
.n-data { color: #94A3B8; font-style: italic; }
.console-tekst { color: #E5E7EB; }
.console-cursor { width: 8px; height: 15px; background: var(--kleur-success); animation: knipper 1.1s steps(2) infinite; }
@keyframes knipper { 50% { opacity: 0; } }

/* ========================================================================== */
/* Login                                                                      */
/* ========================================================================== */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--ruimte-8);
  background:
    radial-gradient(1000px 520px at 50% -10%, rgba(15, 118, 110, 0.10), transparent 70%),
    var(--kleur-sidebar);
}
.login-wrap { width: 100%; max-width: 380px; }
.login-kaart { box-shadow: var(--schaduw-hover); }
.login-merk { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; margin-bottom: var(--ruimte-6); }
.login-merk .dash-logo-mark { width: 32px; height: 32px; }
.login-titel { font-size: 22px; margin-bottom: 4px; }
.login-sub { margin-bottom: var(--ruimte-6); font-size: 14px; }

/* --- Stap 1: eenvoudige landingspagina ----------------------------------- */
.fundament { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--ruimte-8);
  background: radial-gradient(1000px 500px at 50% -10%, rgba(15, 118, 110, 0.08), transparent 70%); }
.fundament .kaart { max-width: 520px; text-align: center; }
.fundament .kaart p { margin-left: auto; margin-right: auto; }
.fundament .logo { font-size: 22px; font-weight: 700; color: var(--kleur-primair); letter-spacing: -0.02em; margin-bottom: var(--ruimte-6); }

/* ========================================================================== */
/* Klanten, formulieren & detail                                              */
/* ========================================================================== */
.pagina-kop { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--ruimte-6); flex-wrap: wrap; }
.pagina-kop-acties { display: flex; align-items: center; gap: 10px; }
.pagina-tel { margin: 0; color: var(--kleur-tekst-zacht); font-size: 14px; }
.terug-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--kleur-tekst-zacht); }
.terug-link:hover { color: var(--kleur-primair); }
.terug-link svg { width: 16px; height: 16px; }

/* Pill-kleurvarianten voor klant-status */
.pil-grijs { background: var(--chip-grijs-bg); color: var(--chip-grijs-tx); }
.pil-blauw { background: var(--chip-blauw-bg); color: var(--chip-blauw-tx); }
.pil-amber { background: var(--chip-amber-bg); color: var(--chip-amber-tx); }
.pil-groen { background: var(--chip-groen-bg); color: var(--chip-groen-tx); }
.pil-rood  { background: var(--chip-rood-bg); color: var(--chip-rood-tx); }

/* Filterbalk */
.filterbalk { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; }
.filterbalk .veld-zoek { margin: 0; flex: 1; min-width: 200px; }
.filterbalk select, .filterbalk .veld-zoek input { margin: 0; width: auto; }
.filterbalk .veld-zoek input { width: 100%; }
.filter-wis { font-size: 13px; color: var(--kleur-tekst-zacht); }

/* Select & textarea in dezelfde stijl als inputs */
select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 14px;
  border: 1px solid var(--kleur-rand); border-radius: var(--radius-klein);
  background: var(--kleur-achtergrond); color: var(--kleur-tekst); transition: border-color 160ms ease, box-shadow 160ms ease;
}
select:focus, textarea:focus { outline: none; border-color: var(--kleur-primair); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12); }
textarea { resize: vertical; }

/* Tabel-rij links */
.rij-link { font-weight: 600; color: var(--kleur-tekst); }
.rij-link:hover { color: var(--kleur-primair); }
.rij-sub { font-size: 12px; color: var(--kleur-tekst-zacht); margin-top: 2px; }

/* Lege staat */
.leeg { text-align: center; padding: 40px 20px; }
.leeg p { color: var(--kleur-tekst-zacht); margin-bottom: 16px; }

/* Formulier */
.form-kaart { max-width: 820px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .veld-breed { grid-column: 1 / -1; }
.form-sectie { margin: 24px 0 4px; font-size: 15px; }
.form-subsectie { margin: 20px 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--kleur-tekst-zacht); }
.form-hint { font-size: 13px; margin-bottom: 16px; max-width: none; }
.form-acties { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--kleur-rand); }
.verplicht { color: var(--kleur-error); }
.veld-fout { display: block; margin-top: 6px; font-size: 12.5px; color: var(--chip-rood-tx); }

/* Gevaar-knop (verwijderen) */
.btn-gevaar { background: var(--kleur-achtergrond); color: var(--chip-rood-tx); border-color: var(--chip-rood-rand); }
.btn-gevaar:hover { background: var(--chip-rood-bg); }

/* Detailpagina */
.detail-kop { display: flex; align-items: center; justify-content: space-between; }
.detail-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.detail-plaats { color: var(--kleur-tekst-zacht); font-size: 14px; }
.def-lijst { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; margin: 0; }
.def-lijst dt { color: var(--kleur-tekst-zacht); font-size: 13px; }
.def-lijst dd { margin: 0; font-size: 14px; word-break: break-word; }

/* ========================================================================== */
/* Takenbord                                                                  */
/* ========================================================================== */
.btn-klein { padding: 6px 10px; font-size: 12.5px; }

.bord { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.bord-kolom { background: var(--kleur-sidebar); border: 1px solid var(--kleur-rand); border-radius: var(--radius); padding: 12px; }
.bord-kop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bord-aantal { font-size: 13px; font-weight: 600; color: var(--kleur-tekst-zacht); font-family: var(--font-mono); }
.bord-lijst { display: flex; flex-direction: column; gap: 10px; min-height: 40px; }
.bord-leeg { text-align: center; color: var(--kleur-tekst-zacht); margin: 8px 0; }

.taak-kaart { background: var(--kleur-achtergrond); border: 1px solid var(--kleur-rand); border-radius: var(--radius-klein); padding: 12px; box-shadow: var(--schaduw); }
.taak-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.taak-agent { font-weight: 600; }
.taak-prio { font-size: 11px; font-weight: 700; color: var(--chip-amber-tx); background: var(--chip-amber-bg); padding: 2px 7px; border-radius: 999px; }
.taak-rol { font-size: 12px; color: var(--kleur-tekst-zacht); }
.taak-klant { margin-top: 8px; font-size: 13px; font-weight: 500; }
.taak-opdracht { margin: 8px 0 0; font-size: 13px; color: var(--kleur-tekst); }
.taak-fout { margin: 8px 0 0; font-size: 12.5px; color: var(--chip-rood-tx); background: var(--chip-rood-bg); border-radius: 6px; padding: 6px 8px; }
.taak-voet { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; color: var(--kleur-tekst-zacht); }
.taak-opnieuw { margin-top: 10px; }

/* ========================================================================== */
/* Agents-overzicht                                                           */
/* ========================================================================== */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--ruimte-6); }
.agent-kaart { display: flex; flex-direction: column; gap: 10px; transition: box-shadow 180ms ease; }
.agent-kaart:hover { box-shadow: var(--schaduw-hover); }
.agent-kaart-kop { display: flex; align-items: center; gap: 11px; }
.agent-kaart .agent-avatar { width: 38px; height: 38px; }
.agent-omschrijving { font-size: 13px; margin: 0; }
.agent-stats { display: flex; align-items: center; justify-content: space-between; }
.agent-succes { font-size: 12px; color: var(--kleur-tekst-zacht); }
.agent-laatste { font-size: 12px; color: var(--kleur-tekst-zacht); }

/* ========================================================================== */
/* Publieke website                                                           */
/* ========================================================================== */
.pub-body { background: var(--kleur-achtergrond); }
.pub-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.pub-smal { max-width: 720px; }
.btn-groot { padding: 14px 24px; font-size: 16px; }

/* Header */
.pub-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--kleur-rand); }
.pub-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.pub-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--kleur-tekst); }
.pub-logo .dash-logo-mark { width: 30px; height: 30px; }
.pub-nav { display: flex; align-items: center; gap: 22px; }
.pub-nav a { color: var(--kleur-tekst-zacht); font-weight: 500; font-size: 15px; }
.pub-nav a:hover { color: var(--kleur-tekst); }
.pub-nav a.btn { color: #fff; }

/* Hero */
.hero { padding: 80px 0 64px; text-align: center;
  background: radial-gradient(1100px 520px at 50% -20%, rgba(15, 118, 110, 0.10), transparent 70%); }
.hero-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--kleur-primair); margin-bottom: 18px; }
.hero-titel { font-size: 44px; line-height: 1.1; max-width: 16ch; margin: 0 auto 20px; letter-spacing: -0.02em; }
.hero-sub { font-size: 18px; max-width: 60ch; margin: 0 auto 28px; }
.hero-acties { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-vanaf { margin-top: 16px; font-size: 14px; color: var(--kleur-tekst-zacht); }

/* Secties */
.pub-sectie { padding: 64px 0; }
.pub-sectie-grijs { background: var(--kleur-sidebar); }
.pub-sectie-kop { padding-bottom: 24px; text-align: center; }
.sectie-titel { font-size: 30px; text-align: center; margin-bottom: 12px; letter-spacing: -0.02em; }
.sectie-sub { text-align: center; max-width: 55ch; margin: 0 auto; font-size: 16px; }

/* Hoe het werkt */
.stappen { list-style: none; counter-reset: stap; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding: 0; margin: 32px 0 0; }
.stappen li { text-align: center; }
.stap-nr { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--kleur-primair-licht); color: var(--kleur-primair-donker); font-weight: 700; margin-bottom: 12px; }
.stappen h3 { font-size: 16px; margin-bottom: 6px; }
.stappen p { font-size: 14px; margin: 0; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.feature { background: var(--kleur-achtergrond); border: 1px solid var(--kleur-rand); border-radius: var(--radius); padding: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; margin: 0; }

/* Prijskaarten */
.prijs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; align-items: start; }
.prijs-kaart { position: relative; background: var(--kleur-achtergrond); border: 1px solid var(--kleur-rand); border-radius: var(--radius); padding: 28px 24px; }
.prijs-kaart-populair { border-color: var(--kleur-primair); box-shadow: var(--schaduw-hover); }
.prijs-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--kleur-primair); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.prijs-kaart h3 { font-size: 20px; margin-bottom: 8px; }
.prijs-bedrag { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.prijs-bedrag span { font-size: 15px; font-weight: 500; color: var(--kleur-tekst-zacht); }
.prijs-tagline { font-size: 14px; margin: 8px 0 18px; }
.prijs-features { list-style: none; padding: 0; margin: 0 0 20px; }
.prijs-features li { font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--kleur-rand); }
.prijs-features li.niet { color: var(--kleur-tekst-zacht); }
.prijs-meer { text-align: center; margin-top: 28px; }

/* Vergelijkingstabel */
.vergelijk-omhulsel { margin-top: 48px; }
.vergelijk th, .vergelijk td { text-align: left; }
.vergelijk-cel { text-align: center; }
.vergelijk thead th { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--kleur-tekst); }

/* FAQ */
.faq { border: 1px solid var(--kleur-rand); border-radius: var(--radius-klein); padding: 14px 16px; margin-bottom: 10px; background: var(--kleur-achtergrond); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 10px 0 0; font-size: 14px; }

/* CTA-blok */
.pub-cta { background: var(--kleur-primair); color: #fff; padding: 64px 0; text-align: center; }
.pub-cta h2 { color: #fff; font-size: 30px; }
.pub-cta p { color: rgba(255, 255, 255, 0.85); margin: 0 auto 24px; max-width: 50ch; }
.pub-cta .btn-primair { background: var(--kleur-achtergrond); color: var(--kleur-primair-donker); }
.pub-cta .btn-primair:hover { background: var(--kleur-sidebar); }

/* Footer */
.pub-footer { border-top: 1px solid var(--kleur-rand); padding: 40px 0 24px; }
.pub-footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pub-logo-voet { font-size: 18px; }
.pub-footer p { font-size: 14px; margin: 6px 0 0; }
.pub-footer-nav { display: flex; gap: 18px; }
.pub-footer-nav a { color: var(--kleur-tekst-zacht); font-size: 14px; }
.pub-copy { margin-top: 24px; font-size: 13px; color: var(--kleur-tekst-zacht); }

/* Intake-wizard */
.wizard-voortgang { display: flex; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: dot; }
.wizard-voortgang li { flex: 1; text-align: center; font-size: 13px; color: var(--kleur-tekst-zacht); position: relative; padding-top: 28px; }
.wizard-voortgang li::before { counter-increment: dot; content: counter(dot); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--kleur-rand); color: #fff; font-size: 12px; display: grid; place-items: center; }
.wizard-voortgang li.actief { color: var(--kleur-tekst); font-weight: 600; }
.wizard-voortgang li.actief::before { background: var(--kleur-primair); }
.wizard { border: 1px solid var(--kleur-rand); }
.wizard-stap { border: 0; padding: 0; margin: 0; }
.wizard-stap h2 { font-size: 20px; margin-bottom: 18px; }
.wizard-knoppen { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--kleur-rand); }
.wizard-overzicht { margin-bottom: 18px; }

.keuze-rij { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keuze-kaart { display: block; cursor: pointer; }
.keuze-kaart input { position: absolute; opacity: 0; }
.keuze-kaart span { display: block; border: 1px solid var(--kleur-rand); border-radius: var(--radius-klein); padding: 12px; text-align: center; transition: border-color 150ms ease, background-color 150ms ease; }
.keuze-kaart span small { display: block; color: var(--kleur-tekst-zacht); font-size: 12px; margin-top: 2px; }
.keuze-kaart input:checked + span { border-color: var(--kleur-primair); background: var(--kleur-primair-licht); }
.keuze-kaart input:focus-visible + span { outline: 2px solid var(--kleur-primair); outline-offset: 2px; }

.checkbox-rij { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.checkbox-item { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.checkbox-item input { width: auto; }
.bevestig { margin: 8px 0; font-weight: 500; }

/* Bedankpagina */
.pub-bedankt { padding: 80px 0; }
.bedankt-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--kleur-primair-licht); color: var(--kleur-primair); margin-bottom: 16px; }

/* ========================================================================== */
/* Agent Command Center                                                       */
/* ========================================================================== */
.cc-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--kleur-rand); }
.cc-tab { padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--kleur-tekst-zacht); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cc-tab:hover { color: var(--kleur-tekst); }
.cc-tab.actief { color: var(--kleur-primair); border-bottom-color: var(--kleur-primair); }

.net-wrap { display: grid; grid-template-columns: 1fr 220px; gap: 16px; align-items: start; }
.net-svg { width: 100%; height: auto; }
.net-lijn { stroke: var(--kleur-rand); stroke-width: 1.5; }
.net-lijn-stippel { stroke-dasharray: 4 4; }
.net-node text { text-anchor: middle; font-size: 12px; font-weight: 600; fill: #fff; font-family: var(--font-ui); }
.net-node .net-label { fill: var(--kleur-tekst-zacht); font-weight: 500; }
.net-jij circle { fill: var(--kleur-tekst); }
.net-ceo circle { fill: var(--kleur-primair); }
.net-agent { cursor: pointer; }
.net-agent:focus-visible { outline: none; }
.net-agent:focus-visible .net-cirkel, .net-agent.geselecteerd .net-cirkel { stroke: var(--kleur-primair); stroke-width: 3; }
.net-cirkel { fill: var(--kleur-tekst-zacht); stroke: #fff; stroke-width: 2; transition: fill 200ms ease; }
.net-cirkel.status-groen { fill: var(--kleur-success); }
.net-cirkel.status-amber { fill: var(--kleur-warning); }
.net-cirkel.status-rood  { fill: var(--kleur-error); }
.net-cirkel.status-blauw { fill: var(--kleur-info); }
.net-cirkel.status-grijs { fill: #9CA3AF; }
.net-cirkel.draait { animation: netpuls 1.2s ease-in-out infinite; }
@keyframes netpuls { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.net-detail { background: var(--kleur-sidebar); border: 1px solid var(--kleur-rand); border-radius: var(--radius-klein); padding: 16px; }
.net-detail h3 { margin-bottom: 2px; font-size: 16px; }
.net-detail-rol { font-size: 13px; color: var(--kleur-primair); font-weight: 600; margin-bottom: 10px; }
.net-detail p { font-size: 13px; }

/* Gesprek-assistent (chat) */
.chat-kaart { display: flex; flex-direction: column; height: calc(100vh - 220px); min-height: 420px; padding: 0; overflow: hidden; }
.chat-verloop { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.chat-leeg { color: var(--kleur-tekst-zacht); font-size: 14px; }
.chat-regel { display: flex; flex-direction: column; max-width: 82%; }
.chat-gebruiker { align-self: flex-end; align-items: flex-end; }
.chat-assistent { align-self: flex-start; align-items: flex-start; }
.chat-bubbel { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.chat-gebruiker .chat-bubbel { background: var(--kleur-primair); color: #fff; border-bottom-right-radius: 4px; }
.chat-assistent .chat-bubbel { background: var(--kleur-sidebar); color: var(--kleur-tekst); border-bottom-left-radius: 4px; }
.chat-voorstel { margin-top: 8px; background: var(--kleur-achtergrond); border: 1px solid var(--kleur-primair-licht); border-left: 3px solid var(--kleur-primair); border-radius: 8px; padding: 12px; }
.chat-voorstel-kop { font-size: 13px; margin-bottom: 6px; }
.chat-voorstel-opdracht { font-size: 13px; color: var(--kleur-tekst-zacht); margin-bottom: 10px; }
.chat-invoer { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--kleur-rand); background: var(--kleur-achtergrond); }
.chat-invoer input { flex: 1; }

/* Plugins */
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.plugin-kaart { display: flex; flex-direction: column; gap: 10px; }
.plugin-kop { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plugin-kop h2 { font-size: 18px; margin: 0; }
.plugin-prijs { font-weight: 700; font-size: 18px; white-space: nowrap; }
.plugin-prijs small { font-size: 12px; font-weight: 500; color: var(--kleur-tekst-zacht); }
.plugin-beschrijving { font-size: 14px; margin: 0; }
.plugin-sectoren { display: flex; flex-wrap: wrap; gap: 6px; }
.plugin-voet { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--kleur-rand); font-size: 12px; color: var(--kleur-tekst-zacht); }

/* Leads-acties & inline toggle */
.lead-acties { display: flex; align-items: center; gap: 6px; }
.lead-status select { width: auto; padding: 6px 8px; font-size: 12.5px; }
.toggle-form input { width: 18px; height: 18px; }

/* ========================================================================== */
/* Klantportaal                                                               */
/* ========================================================================== */
.portaal-body { background: var(--kleur-sidebar); min-height: 100vh; }
.portaal-container { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.portaal-header { background: var(--kleur-achtergrond); border-bottom: 1px solid var(--kleur-rand); position: sticky; top: 0; z-index: 20; }
.portaal-header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.portaal-header-rechts { display: flex; align-items: center; gap: 10px; }
.wa-knop { color: #0b7a63; border-color: #a7f3d0; }
.wa-knop:hover { background: #ecfdf5; }
.portaal-nav-inner { display: flex; gap: 4px; overflow-x: auto; }
.portaal-nav a { padding: 12px; font-size: 14px; font-weight: 500; color: var(--kleur-tekst-zacht); border-bottom: 2px solid transparent; white-space: nowrap; }
.portaal-nav a:hover { color: var(--kleur-tekst); }
.portaal-nav a.actief { color: var(--kleur-primair); border-bottom-color: var(--kleur-primair); }
.portaal-main { padding: 28px 20px 60px; }
.portaal-welkom { margin-bottom: 24px; }
.portaal-welkom h1 { font-size: 26px; margin-bottom: 6px; }
.portaal-kaarten { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.portaal-tegel { display: flex; flex-direction: column; gap: 6px; color: var(--kleur-tekst); transition: box-shadow 180ms ease; }
.portaal-tegel:hover { box-shadow: var(--schaduw-hover); }
.portaal-tegel-cijfer { font-size: 34px; font-weight: 700; color: var(--kleur-primair); line-height: 1; }
.portaal-tegel-cijfer svg { width: 30px; height: 30px; }
.portaal-tegel-label { font-size: 14px; color: var(--kleur-tekst-zacht); }
.portaal-content-kop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.portaal-content-kop h2 { font-size: 18px; margin: 6px 0 0; }
.portaal-content-tekst { white-space: pre-wrap; font-size: 14px; line-height: 1.7; max-height: 320px; overflow: auto; background: var(--kleur-sidebar); border-radius: var(--radius-klein); padding: 14px; }
.portaal-content-acties { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.portaal-subkop { font-size: 16px; margin: 28px 0 12px; }
.portaal-rapport-tekst { white-space: pre-wrap; font-size: 14px; line-height: 1.7; }
.portaal-gegevens-hint { margin-top: 16px; font-size: 13px; }

/* ========================================================================== */
/* Responsive                                                                 */
/* ========================================================================== */
@media (max-width: 1024px) {
  .dash-2kol { grid-template-columns: 1fr; }
  .bord { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  /* De sidebar wordt op mobiel een off-canvas drawer (zie de 1024px-query
     verderop); de oude horizontale-balk-aanpak is daarom verwijderd. */
  .kpi-grid { grid-template-columns: 1fr; }
  .dash-main, .dash-topbar { padding-left: var(--ruimte-4); padding-right: var(--ruimte-4); }
  .form-grid { grid-template-columns: 1fr; }
  .def-lijst { grid-template-columns: 1fr; gap: 2px 0; }
  .def-lijst dt { margin-top: 10px; }
  .bord { grid-template-columns: 1fr; }
  /* Publieke site */
  .hero { padding: 56px 0 40px; }
  .hero-titel { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .stappen { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .prijs-grid { grid-template-columns: 1fr; }
  .keuze-rij { grid-template-columns: 1fr; }
  .sectie-titel { font-size: 24px; }
  .net-wrap { grid-template-columns: 1fr; }
  .portaal-kaarten { grid-template-columns: 1fr; }
}

/* Reduced motion: geen knipperende cursor of transities forceren */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ========================================================================== */
/* Traject, groei, statusbalk (Fase 4–6)                                      */
/* ========================================================================== */
.blok-kop { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--kleur-tekst-zacht); margin: 0 0 12px; }

/* Traject-tijdlijn + checklist (Fase 5) */
.tijdlijn { display: flex; list-style: none; padding: 0; margin: 0; gap: 4px; overflow-x: auto; }
.tijdlijn-stap { flex: 1 1 0; min-width: 92px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; padding-top: 18px; }
.tijdlijn-stap::before { content: ''; position: absolute; top: 6px; left: 50%; width: 100%; height: 2px; background: var(--kleur-rand); z-index: 0; }
.tijdlijn-stap:last-child::before { display: none; }
.tijdlijn-stip { width: 12px; height: 12px; border-radius: 50%; background: var(--kleur-rand); position: absolute; top: 1px; z-index: 1; }
.tijdlijn-gedaan .tijdlijn-stip { background: var(--kleur-success); }
.tijdlijn-gedaan::before { background: var(--kleur-success); }
.tijdlijn-huidig .tijdlijn-stip { background: var(--kleur-primair); box-shadow: 0 0 0 4px var(--kleur-primair-licht); }
.tijdlijn-label { font-size: 12px; color: var(--kleur-tekst); line-height: 1.3; }
.tijdlijn-huidig .tijdlijn-label { font-weight: 600; color: var(--kleur-primair); }
.tijdlijn-open .tijdlijn-label { color: var(--kleur-tekst-zacht); }
.tijdlijn-sinds { font-size: 11px; color: var(--kleur-tekst-zacht); margin-top: 2px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--kleur-rand); font-size: 14px; }
.checklist li:last-child { border-bottom: none; }

/* Groeigrafiek (Fase 6) */
.groei-grafiek { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 8px 0; }
.groei-kolom { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.groei-balk { width: 100%; max-width: 32px; background: var(--kleur-primair); border-radius: 4px 4px 0 0; transition: height 0.3s ease; }
.groei-kolom:hover .groei-balk { background: var(--kleur-primair-donker); }
.groei-x { font-size: 10px; color: var(--kleur-tekst-zacht); margin-top: 6px; }

/* Publicatie-statusbalk (Fase 4) */
.statusbalk { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.statusbalk-item { display: flex; align-items: center; gap: 8px; }
.statusbalk-label { font-size: 13px; color: var(--kleur-tekst-zacht); }
.statusbalk-acties { margin-left: auto; }

/* ========================================================================== */
/* UI-verbeteringen: kaart-ritme, nav-groepen, modals, CEO-drawer             */
/* ========================================================================== */

/* Verticaal ritme tussen top-level blokken in de hoofdkolom, zodat kaarten
   niet meer tegen elkaar plakken. Grid-kinderen (kpi-grid, dash-2kol) regelen
   hun eigen tussenruimte via gap. */
.dash-main > * + * { margin-top: var(--ruimte-6); }

/* --- Zijbalk: platte secties met kopje (altijd zichtbaar) ----------------- */
.dash-nav-groep { display: flex; flex-direction: column; gap: 2px; margin-top: var(--ruimte-4); }
.dash-nav-kop {
  margin: 0 0 4px; padding: 0 12px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--kleur-tekst-zacht);
}

/* --- Modals (<dialog>) ---------------------------------------------------- */
dialog.modal {
  border: none; padding: 0; color: var(--kleur-tekst); background: var(--kleur-achtergrond);
  border-radius: var(--radius); width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 64px); overflow: hidden;
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.28);
}
dialog.modal-groot { width: min(820px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(17, 24, 39, 0.45); }
.modal-kop {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--kleur-rand);
  position: sticky; top: 0; background: var(--kleur-achtergrond); z-index: 1;
}
.modal-kop h2 { margin: 0; font-size: 18px; }
.modal-body { padding: 24px; overflow-y: auto; max-height: calc(100vh - 64px - 62px); }
.modal-body .form-acties { margin-bottom: 0; }

/* --- Zwevende CEO-agent --------------------------------------------------- */
.ceo-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--kleur-primair); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.35);
  transition: background-color 160ms ease, transform 160ms ease;
}
.ceo-fab:hover { background: var(--kleur-primair-donker); transform: translateY(-1px); }
.ceo-fab-icon { display: inline-flex; }
.ceo-fab-icon svg { width: 18px; height: 18px; }

.ceo-overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.45); z-index: 60; }

.ceo-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(440px, 100vw);
  background: var(--kleur-achtergrond); border-left: 1px solid var(--kleur-rand); z-index: 70;
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(17, 24, 39, 0.14);
  transform: translateX(100%); transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ceo-drawer.open { transform: translateX(0); }
.ceo-drawer-kop {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px; border-bottom: 1px solid var(--kleur-rand);
}
.ceo-drawer-titel { display: flex; gap: 12px; align-items: flex-start; }
.ceo-drawer-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  background: var(--kleur-primair-licht); color: var(--kleur-primair-donker); flex-shrink: 0;
}
.ceo-drawer-mark svg { width: 20px; height: 20px; }
.ceo-drawer-titel strong { font-size: 15px; }
.ceo-drawer-titel p { margin: 2px 0 0; font-size: 12.5px; color: var(--kleur-tekst-zacht); }
.ceo-drawer-body { padding: 20px; overflow-y: auto; flex: 1; }
.ceo-doel-acties { display: flex; align-items: center; gap: 14px; }
.ceo-drawer-link { font-size: 13px; font-weight: 600; color: var(--kleur-primair-donker); }
.ceo-resultaat { margin-top: 20px; }
.ceo-analyse {
  font-size: 13.5px; color: var(--kleur-tekst); background: var(--kleur-sidebar);
  padding: 12px 14px; border-radius: var(--radius-klein); margin: 0 0 14px;
}
.ceo-taken { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.ceo-taken li { border: 1px solid var(--kleur-rand); border-radius: var(--radius-klein); padding: 12px 14px; }
.ceo-taak-kop { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ceo-taak-agent { font-weight: 600; font-size: 13.5px; }
.ceo-taak-klant { font-size: 12px; color: var(--kleur-tekst-zacht); background: var(--kleur-sidebar); padding: 2px 8px; border-radius: 999px; }
.ceo-taak-opdracht { margin: 0; font-size: 13px; }
.ceo-taak-reden { margin: 4px 0 0; font-size: 12px; color: var(--kleur-tekst-zacht); }
.ceo-resultaat > .btn { width: 100%; }

.melding-succes { background: var(--chip-groen-bg); color: var(--chip-groen-tx); border-color: var(--chip-groen-rand); }

@media (max-width: 860px) {
  /* Zijbalk is horizontaal op mobiel: groepen platslaan tot losse icoontjes. */
  .dash-nav-groep { display: contents; }
  .dash-nav-kop { display: none; }
  .ceo-drawer { width: 100vw; }
  .ceo-fab { right: 16px; bottom: 16px; }
}

/* Klikbare tabelrijen (openen een modal) + actie-kolom */
.tabel tr.rij-klikbaar { cursor: pointer; }
.tabel tr.rij-klikbaar:hover td { background: rgba(15, 118, 110, 0.04); }
.tabel td.tabel-actie { text-align: right; white-space: nowrap; }

/* Meta-regel bovenin een detail-modal (klant, status, datum) */
.modal-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: var(--ruimte-4); }
.modal-meta-datum { color: var(--kleur-tekst-zacht); font-size: 12.5px; }

/* ========================================================================== */
/* Soepelheid: paginawissels, modal-animatie, toasts                          */
/* ========================================================================== */

/* 1. Soepele paginawissels (View Transitions API) — zachte cross-fade tussen
   dashboardpagina's. Werkt in Chromium/Edge; degradeert netjes elders. */
@view-transition { navigation: auto; }

/* 2. Modal-animatie: fade + lichte schaal bij openen/sluiten. Gebruikt
   @starting-style + allow-discrete; oudere browsers tonen 'm gewoon direct. */
dialog.modal {
  opacity: 0; transform: translateY(8px) scale(0.98);
  transition: opacity 180ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
              overlay 200ms allow-discrete, display 200ms allow-discrete;
}
dialog.modal[open] { opacity: 1; transform: translateY(0) scale(1); }
@starting-style { dialog.modal[open] { opacity: 0; transform: translateY(8px) scale(0.98); } }
dialog.modal::backdrop { opacity: 0; transition: opacity 180ms ease, overlay 180ms allow-discrete, display 180ms allow-discrete; }
dialog.modal[open]::backdrop { opacity: 1; }
@starting-style { dialog.modal[open]::backdrop { opacity: 0; } }

/* 3. Toasts: korte bevestigingen rechtsonder (boven de zwevende CEO-knop). */
.toast-laag {
  position: fixed; right: 20px; bottom: 84px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  pointer-events: none;
}
.toast {
  pointer-events: auto; max-width: 320px;
  background: var(--kleur-tekst); color: #fff;
  padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.2);
  opacity: 0; transform: translateY(8px); transition: opacity 200ms ease, transform 200ms ease;
}
.toast.zichtbaar { opacity: 1; transform: translateY(0); }
.toast-succes { background: #065F46; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 0.001ms !important; }
}

/* Zakelijk overzicht (Fase 30) — compacte KPI-tegels binnen één kaart */
.zaken-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ruimte-6); }
.zaken-kpi { display: flex; flex-direction: column; gap: 4px; }
.zaken-kpi .kpi-waarde { font-size: 26px; }
.kpi-waarde.groen { color: #047857; }
.kpi-waarde.rood { color: #B91C1C; }
@media (max-width: 860px) { .zaken-grid { grid-template-columns: 1fr 1fr; } }

/* Uiterlijk-pagina (portaal): kleurkiezer, presets, embed-codes */
.thema-kiezer { display: flex; align-items: center; gap: 10px; }
.thema-kiezer input[type="color"] { width: 46px; height: 38px; padding: 2px; border: 1px solid var(--kleur-rand); border-radius: var(--radius-klein); background: var(--kleur-achtergrond); cursor: pointer; }
.thema-kiezer input[type="text"] { width: 120px; margin: 0; font-family: var(--font-mono); }
.thema-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thema-preset { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--kleur-rand); cursor: pointer; padding: 0; }
.thema-preset:hover { transform: scale(1.1); }
.embed-blok { margin-top: var(--ruimte-4); }
.embed-kop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.embed-code { background: var(--kleur-console); color: #e2e8f0; padding: 12px 14px; border-radius: var(--radius-klein); font-family: var(--font-mono); font-size: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 0; }

/* --- Ontwerp-automatisering (Fase 1): design-flow op klant/ontwerp-pagina --- */
.veld-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.veld-inline select { padding: 8px 10px; border: 1px solid var(--kleur-rand); border-radius: var(--radius-klein); background: var(--kleur-achtergrond); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.kaart-rand { border: 1px solid var(--kleur-rand); border-radius: var(--radius); }
.kaart-gekozen { border-color: var(--kleur-primair); box-shadow: 0 0 0 2px var(--kleur-primair-licht); }

/* --- Zichtbaarheidsscore + databron-blok (Fase 2) --- */
.score-sub { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--ruimte-4); }
.score-sub-item { display: flex; flex-direction: column; min-width: 96px; padding: 8px 12px; border: 1px solid var(--kleur-rand); border-radius: var(--radius-klein); background: var(--kleur-achtergrond); }
.score-sub-label { font-size: 12px; color: var(--kleur-tekst-zacht); }
.score-sub-waarde { font-size: 18px; font-weight: 600; }
.databron-blok { margin-top: var(--ruimte-6); padding-top: var(--ruimte-4); border-top: 1px solid var(--kleur-rand); }

/* --- Ontwerp: multi-pagina design-richtingen (0039) --- */
.pagina-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.pagina-thumb { width: 90px; height: auto; border-radius: 6px; border: 1px solid var(--kleur-rand); }
.pagina-fig { margin: 0; width: 120px; text-align: center; }
.pagina-fig img { width: 100%; border-radius: 6px; border: 1px solid var(--kleur-rand); }
.pagina-fig figcaption { font-size: 11px; color: var(--kleur-tekst-zacht); margin-top: 4px; }

/* --- Inklapbare sidebar-groepen (details/summary, CSP-veilig) --- */
details.dash-nav-groep { margin-top: 6px; }
details.dash-nav-groep > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-klein); color: var(--kleur-tekst-zacht);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; user-select: none;
}
details.dash-nav-groep > summary::-webkit-details-marker { display: none; }
details.dash-nav-groep > summary:hover { color: var(--kleur-tekst); background: var(--kleur-rand); }
.dash-nav-pijl { margin-left: auto; transition: transform 0.15s ease; }
details.dash-nav-groep[open] > summary .dash-nav-pijl { transform: rotate(180deg); }

/* --- Profielmenu in de topbar --- */
.profiel-menu { position: relative; }
.profiel-menu > summary { list-style: none; cursor: pointer; }
.profiel-menu > summary::-webkit-details-marker { display: none; }
.profiel-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 220px;
  background: var(--kleur-achtergrond); border: 1px solid var(--kleur-rand); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12); padding: 6px; display: flex; flex-direction: column;
}
.profiel-email { margin: 4px 10px 8px; font-size: 12px; color: var(--kleur-tekst-zacht); word-break: break-all; }
.profiel-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: var(--radius-klein); color: var(--kleur-tekst);
  background: none; border: 0; cursor: pointer; font-size: 14px; font-family: inherit;
}
.profiel-item:hover { background: var(--kleur-rand); }
.profiel-uit { color: #b91c1c; }

/* --- Mobiele navigatie (drawer) + responsive dashboard --- */
.dash-hamburger { display: none; }
.dash-overlay { display: none; }
@media (max-width: 1024px) {
  .dash-sidebar {
    position: fixed; top: 0; left: 0; z-index: 60; height: 100vh; width: 250px;
    transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
  }
  .dash-sidebar.open { transform: none; }
  .dash-overlay {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .dash-overlay.open { opacity: 1; pointer-events: auto; }
  .dash-hamburger { display: grid; }
}
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .dash-2kol { grid-template-columns: 1fr; }
  .dash-main { padding: var(--ruimte-6); }
  .dash-topbar { padding: 14px var(--ruimte-6); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .zoek-inline, .dash-topbar-acties .badge { display: none; }
}

/* --- Control-center accenten (concept-look op het echte dashboard) --- */
.dash-body .kpi-kaart:hover { border-color: var(--accent-teal); box-shadow: var(--glow); }
.dash-body .agent-avatar { background: linear-gradient(145deg, rgba(45,212,191,.20), rgba(139,123,255,.20)); }
.dash-body tr[data-agent]:hover { box-shadow: inset 3px 0 0 var(--accent-teal); }
.dash-body .kpi-ico, .dash-body .icoon-knop:hover { color: var(--accent-licht); }
/* CEO-paneel op het control center: gradient-rand + glow (zoals in het concept) */
.dash-body .cc-ceo {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--kleur-achtergrond), var(--kleur-achtergrond)) padding-box,
    linear-gradient(135deg, var(--accent-teal), var(--accent-violet)) border-box;
  box-shadow: var(--glow);
}
/* Status-chip onderaan de sidebar */
.dash-status { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 11px 12px;
  border: 1px solid var(--kleur-rand); border-radius: var(--radius-klein);
  background: var(--kleur-achtergrond); font-size: 12px; color: var(--kleur-tekst-zacht); }
.dash-puls { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-teal, var(--kleur-primair));
  box-shadow: 0 0 0 0 rgba(45,212,191,.5); animation: dashPuls 2.2s infinite; }
@keyframes dashPuls { 0%{box-shadow:0 0 0 0 rgba(45,212,191,.5);} 70%{box-shadow:0 0 0 7px rgba(45,212,191,0);} 100%{box-shadow:0 0 0 0 rgba(45,212,191,0);} }
@media (prefers-reduced-motion: reduce){ .dash-puls{ animation:none; } }
/* Status-badge in de topbar volgt het teal-accent i.p.v. groen (past bij de dash). */
.dash-body .badge-status { background: rgba(45,212,191,.14); color: var(--accent-licht); }

/* ========================================================================== */
/* Publieke site + login in dezelfde donkere premium-identiteit als de dash    */
/* ========================================================================== */
.pub-body, .login-body {
  --kleur-canvas: #0A0C11;
  --kleur-achtergrond: #12151C;
  --kleur-sidebar: #0C0F16;
  --kleur-tekst: #E7EAF0;
  --kleur-tekst-zacht: #8A93A7;
  --kleur-rand: rgba(255, 255, 255, 0.08);
  --kleur-rand-zacht: rgba(255, 255, 255, 0.05);
  --kleur-primair-licht: rgba(45, 212, 191, 0.14);
  --accent-licht: #5EEAD4;
  --accent-teal: #2DD4BF; --accent-violet: #8B7BFF;
  --glow: 0 0 0 1px rgba(45,212,191,.22), 0 10px 34px rgba(45,212,191,.14);
  --top-glas: rgba(10, 12, 17, 0.72);
  --schaduw: 0 1px 2px rgba(0,0,0,.3), 0 2px 10px rgba(0,0,0,.35);
  --schaduw-hover: 0 10px 30px rgba(0,0,0,.5);
  /* Statuskleuren donker: transparante tint + heldere tekst i.p.v. felle pastel. */
  --chip-groen-bg: rgba(52,211,153,.14);  --chip-groen-tx: #34D399; --chip-groen-rand: rgba(52,211,153,.28);
  --chip-amber-bg: rgba(251,191,36,.14);  --chip-amber-tx: #FBBF24; --chip-amber-rand: rgba(251,191,36,.28);
  --chip-blauw-bg: rgba(96,165,250,.14);  --chip-blauw-tx: #60A5FA; --chip-blauw-rand: rgba(96,165,250,.28);
  --chip-rood-bg:  rgba(248,113,113,.14); --chip-rood-tx:  #F87171; --chip-rood-rand:  rgba(248,113,113,.28);
  --chip-grijs-bg: rgba(255,255,255,.07); --chip-grijs-tx: #AEB6C6; --chip-grijs-rand: rgba(255,255,255,.12);
  background: var(--kleur-canvas);
  color: var(--kleur-tekst);
}
/* Sticky header als donker glas */
.pub-body .pub-header { background: var(--top-glas); }
/* Hero: teal + violet glow i.p.v. de vlakke teal-waas */
.pub-body .hero {
  background:
    radial-gradient(1100px 560px at 50% -20%, rgba(45,212,191,.16), transparent 70%),
    radial-gradient(820px 420px at 82% 0%, rgba(139,123,255,.14), transparent 65%);
}
.pub-body .hero-eyebrow { color: var(--accent-licht); }
.pub-body a { color: var(--accent-licht); }
.pub-body .stap-nr { color: var(--accent-licht); }
/* Uitgelicht pakket krijgt de teal-glow */
.pub-body .prijs-kaart-populair { border-color: var(--accent-teal); box-shadow: var(--glow); }
.pub-body .feature { transition: border-color .18s ease, box-shadow .18s ease; }
.pub-body .feature:hover { border-color: var(--accent-teal); box-shadow: var(--glow); }
/* Slot-CTA als diepe teal→violet gradient (witte tekst blijft leesbaar) */
.pub-body .pub-cta { background: linear-gradient(135deg, #0F766E, #6D28D9); }
.pub-body .pub-cta .btn-primair { background: #fff; color: #0b1220; }
.pub-body .pub-cta .btn-primair:hover { background: #e8ecf3; }
/* Login in dezelfde sfeer */
.login-body {
  background:
    radial-gradient(1000px 520px at 50% -10%, rgba(45,212,191,.14), transparent 70%),
    radial-gradient(700px 400px at 80% 10%, rgba(139,123,255,.12), transparent 65%),
    var(--kleur-canvas);
}

/* --- Overflow-fixes: brede tabellen mogen de pagina niet oprekken ---------- */
/* Grid/flex-kinderen krijgen standaard min-width:auto en groeien mee met een
   brede tabel; daardoor scrollde de hele pagina horizontaal op mobiel. */
.dash-main { min-width: 0; }
.dash-2kol > *, .kpi-grid > *, .bord > * { min-width: 0; }
.kaart { min-width: 0; }
.tabel-omhulsel { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.btn { white-space: nowrap; }

/* --- Publieke header op telefoon ------------------------------------------ */
@media (max-width: 760px) {
  .pub-header-inner { height: 58px; gap: 10px; }
  .pub-nav { gap: 14px; }
  .pub-nav a:not(.btn) { display: none; }   /* alleen logo + CTA op smal scherm */
  .pub-logo { font-size: 16px; }
  .pub-logo .dash-logo-mark { width: 28px; height: 28px; }
  .pub-nav .btn { padding: 9px 14px; font-size: 14px; }
  .hero-titel { font-size: 28px; }
  .hero-acties .btn { width: 100%; justify-content: center; }
  .hero-acties { flex-direction: column; align-items: stretch; }
}

/* --- Small multiples: groei & zichtbaarheid -------------------------------- */
/* Grafiekkleur #0D9488 is gevalideerd voor licht én donker (lightness-band,
   chroma-floor en contrast >= 3:1 op beide oppervlakken). */
.dash-body { --grafiek: #0D9488; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ruimte-4); margin-top: var(--ruimte-4); }
.mini { margin: 0; padding: 12px 14px; border: 1px solid var(--kleur-rand); border-radius: var(--radius-klein); background: var(--kleur-achtergrond); min-width: 0; }
.mini-kop { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.mini-label { font-size: 12.5px; color: var(--kleur-tekst-zacht); font-weight: 500; }
.mini-hint { font-size: 11px; opacity: .75; }
.mini-cijfers { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.mini-waarde { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-delta { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--kleur-tekst-zacht); }
.mini-delta.op { color: var(--chip-groen-tx); }
.mini-delta.af { color: var(--chip-rood-tx); }
.mini-svg { display: block; width: 100%; height: 64px; }
.mini-lijn { fill: none; stroke: var(--grafiek); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mini-vlak { fill: var(--grafiek); opacity: .14; stroke: none; }
.mini-punt { fill: var(--grafiek); stroke: var(--kleur-achtergrond); stroke-width: 2; }
.mini-raak { fill: transparent; cursor: help; }   /* ruim raakvlak voor de tooltip */
.mini-raak:hover { fill: var(--grafiek); fill-opacity: .18; }
.mini-tabel { margin-top: var(--ruimte-4); }
.mini-tabel > summary { cursor: pointer; font-size: 13px; color: var(--kleur-tekst-zacht); }
.mini-tabel > summary:hover { color: var(--kleur-tekst); }
@media (max-width: 860px) { .mini-grid { grid-template-columns: 1fr; } }
