/* SAH websiteteam systeem \002014 productthema, afgeleid van de Studentaanhuis huisstijl.
   Componentnamen in dit bestand zijn gelijk aan de namen in het designsysteem. */

:root {
  /* Schalen uit de huisstijl */
  --blue-50:#EAF7FD; --blue-100:#DEF2FE; --blue-200:#BDE6FE; --blue-300:#90D7FE; --blue-400:#69C3F3;
  --blue-500:#34AAE1; --blue-600:#008BBF; --blue-700:#016F99; --blue-800:#045474; --blue-900:#01384F;
  --orange-50:#FEF5F0; --orange-100:#FFEADE; --orange-200:#FED8C4; --orange-300:#FEC09D; --orange-400:#FF9554;
  --orange-500:#EE7100; --orange-600:#C75E06; --orange-700:#A44C02;
  --navy-50:#F1F7FB; --navy-100:#E2EBF2; --navy-200:#C8D6E2; --navy-300:#A6BBCA; --navy-400:#829CB0;
  --navy-500:#67849B; --navy-600:#4A6B80; --navy-700:#16577C; --navy-800:#0E4161; --navy-900:#08304C;
  --green-100:#DEF8E2; --green-500:#429C5A; --green-700:#2C6D3E;
  --red-100:#FFEBE9; --red-500:#D33944; --red-700:#A1252F;
  --amber-100:#FFF0D9; --amber-500:#F2B036; --amber-700:#825B0C;

  /* Semantisch, productinterface */
  --app-bg: var(--navy-50);
  --surface: #FFFFFF;
  --surface-sunken: var(--blue-50);
  --surface-dark: var(--navy-900);
  --ink: var(--navy-900);
  --ink-muted: var(--navy-600);
  --border: var(--navy-100);
  --border-strong: var(--navy-200);
  --control-border: var(--navy-500);
  --action: var(--orange-500);
  --on-action: #FFFFFF;
  --action-hover: var(--orange-600);
  --selected-bg: var(--blue-100);
  --focus-ring: var(--blue-700);
  --internal-bg: var(--orange-50);
  --internal-border: var(--orange-300);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius-xs: 4px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-full: 999px;
  --shadow-xs: 0 1px 2px rgba(8,48,76,.06);
  --shadow-card: 0 1px 2px rgba(8,48,76,.05), 0 6px 16px -10px rgba(8,48,76,.16);
  --shadow-pop: 0 2px 4px rgba(8,48,76,.06), 0 24px 48px -20px rgba(8,48,76,.34);
  --shadow-dialog: 0 2px 6px rgba(8,48,76,.08), 0 32px 64px -24px rgba(8,48,76,.45);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Typografie */
.t-pagina { font-family: var(--font-display); font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.t-sectie { font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.t-kaart { font-family: var(--font-display); font-size: 17px; line-height: 24px; font-weight: 600; }
.t-cijfer { font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 700; letter-spacing: -0.02em; }
.t-body { font-size: 16px; line-height: 24px; }
.t-sm { font-size: 14px; line-height: 20px; }
.t-muted { color: var(--ink-muted); }
.t-mono { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 500; }
.t-label { font-size: 14px; line-height: 20px; font-weight: 600; }
.t-kicker { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 8px; }
.t-kicker::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: var(--action); }
a.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--action); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Icoon (Lucide, lijn 2) */
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.i-16 { width: 16px; height: 16px; }
.i-20 { width: 20px; height: 20px; }
.i-24 { width: 24px; height: 24px; }

/* Knop */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 15px; line-height: 20px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; background: transparent; color: var(--ink); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; }
.btn-lg { height: 48px; padding: 0 20px; font-size: 16px; }
.btn-icoon { width: 40px; padding: 0; }
.btn-sm.btn-icoon { width: 32px; }
.btn-primair { background: var(--action); color: var(--on-action); font-weight: 700; }
.btn-primair:hover, .btn-primair.is-hover { background: var(--action-hover); }
.btn-primair.is-actief { background: var(--orange-600); box-shadow: inset 0 2px 0 rgba(8,48,76,.25); }
.btn-secundair { background: var(--surface); border-color: var(--control-border); color: var(--ink); }
.btn-secundair:hover, .btn-secundair.is-hover { background: var(--navy-50); }
.btn-secundair.is-actief { background: var(--navy-100); }
.btn-tekst { color: var(--ink); }
.btn-tekst:hover, .btn-tekst.is-hover { background: var(--navy-100); }
.btn-tekst.is-actief { background: var(--navy-200); }
.btn-gevaar { background: var(--red-700); color: #fff; }
.btn-gevaar:hover, .btn-gevaar.is-hover { background: var(--red-500); }
.btn-gevaar.is-actief { background: var(--red-700); box-shadow: inset 0 2px 0 rgba(8,48,76,.3); }
.btn:focus-visible, .btn.is-focus, .focusbaar:focus-visible, .is-focus-ring { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.btn:disabled, .btn.is-uit { background: var(--navy-100); border-color: var(--navy-100); color: var(--navy-500); cursor: not-allowed; box-shadow: none; }

/* Invoerveld, select, textarea */
.veldgroep { display: flex; flex-direction: column; gap: 6px; }
.lbl { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.lbl .verplicht { color: var(--ink-muted); font-weight: 500; }
.hulp { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.foutmelding { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--red-700); font-weight: 500; }
.veld { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--surface); border: 1px solid var(--control-border); border-radius: var(--radius-sm); font-size: 16px; line-height: 24px; color: var(--ink); box-shadow: var(--shadow-xs); width: 100%; }
.veld .plaatshouder { color: var(--ink-muted); }
.veld:hover, .veld.is-hover { border-color: var(--navy-700); }
.veld.is-focus, .veld:focus-within { border-color: var(--focus-ring); outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.veld.is-fout { border-color: var(--red-700); border-width: 2px; padding: 0 11px; }
.veld.is-uit { background: var(--navy-100); border-color: var(--navy-200); color: var(--navy-600); box-shadow: none; }
.veld input { border: 0; outline: 0; background: transparent; padding: 0; width: 100%; font-size: 16px; }
.veld-area { height: auto; min-height: 96px; align-items: flex-start; padding: 10px 12px; }

/* Checkbox en schakelaar */
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; line-height: 22px; }
.check-vak { width: 20px; height: 20px; border-radius: var(--radius-xs); border: 1.5px solid var(--control-border); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.check-vak.aan { background: var(--navy-900); border-color: var(--navy-900); }
.check-vak.is-hover { border-color: var(--navy-900); }
.check-vak.is-fout { border-color: var(--red-700); border-width: 2px; }
.check-vak.is-uit { background: var(--navy-100); border-color: var(--navy-200); }
.schakel { width: 40px; height: 24px; border-radius: 999px; background: var(--navy-200); border: 1.5px solid var(--control-border); position: relative; flex-shrink: 0; }
.schakel::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(8,48,76,.3); }
.schakel.aan { background: var(--navy-900); border-color: var(--navy-900); }
.schakel.aan::after { left: 18px; }
.schakel.is-uit { background: var(--navy-100); border-color: var(--navy-200); }

/* Statuslabel */
.status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: var(--radius-full); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.status .i { width: 16px; height: 16px; }
.s-info { background: var(--blue-100); } .s-info .i { color: var(--blue-800); }
.s-succes { background: var(--green-100); } .s-succes .i { color: var(--green-700); }
.s-wacht { background: var(--amber-100); } .s-wacht .i { color: var(--amber-700); }
.s-fout { background: var(--red-100); } .s-fout .i { color: var(--red-700); }
.s-neutraal { background: var(--navy-100); } .s-neutraal .i { color: var(--navy-600); }
.s-actie { background: var(--orange-100); } .s-actie .i { color: var(--navy-900); }
.s-bouw { background: var(--surface); box-shadow: inset 0 0 0 1px var(--navy-300); } .s-bouw .i { color: var(--navy-900); }

/* Teller (meldingen, aantallen) */
.teller { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--action); color: #FFFFFF; font-size: 14px; line-height: 20px; font-weight: 700; }
.teller-rustig { background: var(--navy-100); color: var(--ink); }

/* Kaart */
.kaart { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.kaart-klik:hover, .kaart-klik.is-hover { border-color: var(--navy-300); box-shadow: var(--shadow-pop); }
.kaart-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.inzet { background: var(--surface-sunken); border-radius: var(--radius-md); }

/* Tabbladen */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink-muted); text-decoration: none; }
.tab.is-hover { color: var(--ink); }
.tab.actief { color: var(--ink); font-weight: 600; }
.tab.actief::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--action); }
.tab .teller { min-width: 20px; height: 20px; font-size: 14px; }

/* Tabel */
.tabel { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 20px; }
.tabel th { text-align: left; font-weight: 600; color: var(--ink-muted); background: var(--navy-50); padding: 10px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tabel td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--ink); }
.tabel tr.is-hover td { background: var(--blue-50); }
.tabel tr:last-child td { border-bottom: 0; }
.tabel .rechts { text-align: right; font-variant-numeric: tabular-nums; }

/* Zijbalk en bovenbalk */
.zijbalk { width: 248px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 16px 12px; gap: 4px; }
.merk { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; }
.merk-teken { width: 32px; height: 32px; border-radius: 8px; background: var(--navy-900); display: flex; align-items: center; justify-content: center; position: relative; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink-muted); text-decoration: none; }
.nav-item .i { color: var(--navy-500); }
.nav-item.is-hover { background: var(--navy-50); color: var(--ink); }
.nav-item.actief { background: var(--selected-bg); color: var(--ink); font-weight: 600; }
.nav-item.actief .i { color: var(--ink); }
.nav-item .teller { margin-left: auto; }
.nav-sep { height: 1px; background: var(--border); margin: 8px 6px; }
.bovenbalk { height: 64px; flex-shrink: 0; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 24px 0 32px; }
.zoekknop { display: flex; align-items: center; gap: 10px; width: 420px; height: 40px; padding: 0 8px 0 12px; border: 1px solid var(--control-border); border-radius: var(--radius-sm); background: var(--navy-50); color: var(--ink-muted); font-size: 15px; }
.kbd { display: inline-flex; align-items: center; height: 24px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--border-strong); background: #fff; font-family: var(--font-mono); font-size: 14px; color: var(--ink-muted); }
.meldknop { position: relative; }
.meldknop .teller { position: absolute; top: -4px; right: -6px; border: 2px solid #fff; height: 24px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-100); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.avatar-sm { width: 28px; height: 28px; }
.avatar-oranje { background: var(--orange-100); }
.avatar-groen { background: var(--green-100); }

/* Voortgangsbalk */
.balk { height: 8px; border-radius: 999px; background: var(--navy-100); overflow: hidden; }
.balk > span { display: block; height: 100%; border-radius: 999px; background: var(--navy-900); }
.balk.let-op > span { background: var(--amber-700); }
.balk.over > span { background: var(--red-700); }

/* Feedbackteller */
.rondes { display: inline-flex; align-items: center; gap: 6px; }
.ronde { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--control-border); background: #fff; }
.ronde.gebruikt { background: var(--navy-900); border-color: var(--navy-900); }

/* Meldingen */
.melding { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); font-size: 15px; line-height: 22px; }
.m-info { background: var(--blue-100); color: var(--blue-800); }
.m-succes { background: var(--green-100); color: var(--green-700); }
.m-wacht { background: var(--amber-100); color: var(--amber-700); }
.m-fout { background: var(--red-100); color: var(--red-700); }
.melding b, .melding strong { color: inherit; }
.toast { display: flex; gap: 12px; align-items: center; padding: 12px 12px 12px 16px; border-radius: var(--radius-md); background: var(--navy-900); color: #fff; box-shadow: var(--shadow-pop); font-size: 15px; line-height: 22px; }

/* Tijdlijn */
.bericht { border: 1px solid var(--border); background: #fff; border-radius: var(--radius-md); padding: 14px 16px; }
.bericht-intern { background: var(--internal-bg); border: 1.5px dashed var(--internal-border); }
.systeemregel { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.vermelding { display: inline; padding: 1px 6px; border-radius: 6px; background: var(--blue-100); color: var(--ink); font-weight: 600; }

/* Annotatiepunt */
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; background: var(--action); color: #FFFFFF; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(8,48,76,.35); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; position: absolute; }
.pin.gekozen { background: var(--navy-900); color: #fff; outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.pin.afgehandeld { background: #fff; color: var(--green-700); border-color: var(--green-700); }
.pin.nieuw { background: #fff; color: var(--navy-900); border: 2px dashed var(--navy-900); }

/* Overlay */
.overlay { position: absolute; inset: 0; background: rgba(8,48,76,.45); }
.dialoog { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-dialog); }
.popover { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); }

/* Skelet voor laadstaat */
.skelet { background: var(--navy-100); border-radius: 6px; }

/* Klantportaal */
.onderbalk { height: 72px; background: #fff; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-bottom: 8px; }
.onder-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 14px; line-height: 18px; font-weight: 500; color: var(--ink-muted); text-decoration: none; position: relative; }
.onder-item.actief { color: var(--ink); font-weight: 700; }
.onder-item.actief::before { content: ""; position: absolute; top: 0; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--action); }

/* ===== Ronde 2 ===== */

/* Zijbalk v2: groepen, merkstreep, voet met inklapknop. Ingeklapt: .zijbalk.ingeklapt (72px) */
.zijbalk { gap: 2px; padding: 20px 12px 12px; }
.merk { flex-direction: column; align-items: flex-start; gap: 6px; padding: 2px 10px 18px; }
.merk-naam { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 22px; letter-spacing: -0.01em; color: var(--ink); }
.merk-streep { width: 28px; height: 3px; border-radius: 2px; background: var(--action); }
.merk-sub { font-size: 14px; line-height: 18px; color: var(--ink-muted); font-weight: 500; }
.nav-groep { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--ink-muted); padding: 14px 10px 6px; }
.nav-item { height: 40px; }
.nav-item.actief { box-shadow: inset 3px 0 0 var(--action); border-radius: 0 8px 8px 0; }
.zijbalk-voet { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.inklapknop { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-muted); font-size: 15px; font-weight: 500; cursor: pointer; width: 100%; text-align: left; }
.inklapknop:hover, .inklapknop.is-hover { background: var(--navy-50); color: var(--ink); }
.zijbalk.ingeklapt { width: 72px; padding: 20px 12px 12px; align-items: center; }
.zijbalk.ingeklapt .nav-item, .zijbalk.ingeklapt .inklapknop { width: 44px; height: 44px; padding: 0; justify-content: center; position: relative; }
.zijbalk.ingeklapt .nav-item .teller { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; font-size: 12px; padding: 0 4px; border: 2px solid #fff; }
.zijbalk.ingeklapt .nav-item.actief { border-radius: 8px; box-shadow: inset 0 -3px 0 var(--action); }
.zijbalk.ingeklapt .nav-sep { width: 32px; margin: 10px auto; }
.merk-mini { width: 40px; height: 40px; border-radius: 10px; background: var(--navy-900); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; margin-bottom: 16px; }
.merk-mini::after { content: ""; width: 16px; height: 3px; border-radius: 2px; background: var(--action); }

/* Timer */
.timer-start { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--control-border); background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; }
.timer-loopt { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 4px 0 12px; border-radius: 8px; background: var(--navy-900); color: #fff; }
.timer-loopt .punt { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-400); box-shadow: 0 0 0 3px rgba(255,149,84,.25); }
.timer-loopt .tijd { font-family: var(--font-mono); font-size: 15px; font-weight: 500; }
.timer-loopt .stop { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 6px; border: 0; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }

/* Paginakop met lichte merkband (Start-schermen) */
.kopband { background: linear-gradient(180deg, #F2FCFF 0%, #DEF2FE 100%); border-bottom: 1px solid var(--border); }
.ikoontegel { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.it-blauw { background: var(--blue-100); color: var(--blue-800); }
.it-oranje { background: var(--orange-100); color: var(--navy-900); }
.it-groen { background: var(--green-100); color: var(--green-700); }
.it-amber { background: var(--amber-100); color: var(--amber-700); }
.it-rood { background: var(--red-100); color: var(--red-700); }
.it-navy { background: var(--navy-900); color: #fff; }

/* Projectbord v2: rustig */
.bord { display: grid; gap: 16px; align-items: start; }
.bord-kolom { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bord-kop { display: flex; align-items: center; gap: 8px; padding: 4px 4px 8px; border-bottom: 2px solid var(--border); font-size: 14px; font-weight: 600; color: var(--ink); }
.bord-kop .aantal { margin-left: auto; color: var(--ink-muted); font-weight: 500; }
.bord-kop.nu { border-bottom-color: var(--action); }
.bord-kaart { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.bord-kaart:hover, .bord-kaart.is-hover { border-color: var(--navy-300); box-shadow: var(--shadow-card); }
.bord-kaart .titel { font-size: 15px; line-height: 20px; font-weight: 600; }
.bord-kaart .sub { font-size: 14px; line-height: 20px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bord-kaart .voet { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-muted); }
.bord-meer { font-size: 14px; color: var(--ink-muted); padding: 6px 4px; }

/* Afkappen van lange tekst (domeinen, namen) */
.afkap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Segmentknop */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--navy-100); }
.seg-k { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-muted); border: 0; background: transparent; }
.seg-k.aan { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(8,48,76,.12); }

/* Definitielijst */
.dl { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 10px 12px; font-size: 14px; line-height: 20px; margin: 0; }
.dl dt { color: var(--ink-muted); }
.dl dd { margin: 0; color: var(--ink); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

/* ===== App prototype ===== */
html, body { height: 100%; }
body { background: var(--app-bg); color: var(--ink); font-size: 15px; }
#app { min-height: 100%; }
a { color: inherit; }
button { cursor: pointer; }
.muted { color: var(--ink-muted); }
.row { display: flex; align-items: center; gap: 12px; }
.row-top { display: flex; align-items: flex-start; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1 1 auto; min-width: 0; }
.wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: minmax(0, 1fr); } .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid2, .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); } }
.pad { padding: 16px 20px; }
.kaart-body { padding: 16px 20px; }
.lijst { list-style: none; margin: 0; padding: 0; }
.lijst > li { padding: 12px 20px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: center; min-width: 0; }
.lijst > li:last-child { border-bottom: 0; }
.lijst > li.klik { cursor: pointer; }
.lijst > li.klik:hover { background: var(--blue-50); }
.leeg { padding: 28px 20px; text-align: center; color: var(--ink-muted); font-size: 14px; }
.tabelwrap { overflow-x: auto; }
.tabel tr.klik { cursor: pointer; }
.tabel tr.klik:hover td { background: var(--blue-50); }
.hidden-sm { }
.nowrap { white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--navy-100); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip button { all: unset; cursor: pointer; display: inline-flex; }
.sectiekop { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
select.veld, input.veld, textarea.veld { appearance: none; -webkit-appearance: none; font: inherit; font-size: 16px; }
select.veld { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2308304C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; }
textarea.veld { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 22px; }
input.veld:focus, select.veld:focus, textarea.veld:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--focus-ring); }
.veld.fout { border-color: var(--red-700); border-width: 2px; }
.veld-sm { height: 34px; font-size: 14px !important; padding: 0 10px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
input[type=checkbox].vink { width: 20px; height: 20px; accent-color: var(--navy-900); margin: 0; flex-shrink: 0; }

/* Team shell */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.shell .zijbalk { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; }
.shell-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.shell .bovenbalk { position: sticky; top: 0; z-index: 20; padding: 0 20px 0 24px; }
.shell-main { container-type: inline-size; }
/* De inhoud staat gecentreerd en groeit mee op brede schermen; --inhoud-pad is de zijmarge */
.inhoud { --inhoud-pad: 32px; --inhoud-max: 1440px; padding: 24px var(--inhoud-pad) 48px; display: flex; flex-direction: column; gap: 20px; max-width: var(--inhoud-max); width: 100%; margin-inline: auto; }
@media (min-width: 1920px) { .inhoud { --inhoud-max: 1680px; } }
@media (min-width: 2560px) { .inhoud { --inhoud-max: 1920px; } }
.menuknop { display: none; }
@media (max-width: 900px) {
  .shell .zijbalk { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-dialog); }
  .shell.menu-open .zijbalk { transform: none; }
  .menuknop { display: inline-flex; }
  .zoekknop { width: auto !important; flex: 1 1 auto; min-width: 0; }
  .zoekknop .kbd, .zoekknop .zoektekst { display: none; }
  .inhoud { --inhoud-pad: 16px; padding-top: 20px; }
  .acc-naam { display: none !important; }
  .timer-label { display: none; }
}
/* Smalle telefoon met een lopende timer: alles blijft binnen het scherm */
@media (max-width: 520px) {
  .shell .bovenbalk { gap: 8px; padding: 0 12px; }
  .zoekknop { flex: 0 0 40px; width: 40px !important; justify-content: center; padding: 0; }
  .timer-loopt { gap: 6px; padding-left: 10px; }
  .timer-loopt .stop-tekst { display: none; }
  .timer-loopt .stop { padding: 0 8px; }
}
@media (max-width: 360px) {
  .shell .bovenbalk { gap: 4px; padding: 0 8px; }
  .timer-loopt .punt { display: none; }
}
.shell.menu-open .scrim { position: fixed; inset: 0; background: rgba(8,48,76,.4); z-index: 55; }
.pagkop { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.kruimel { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--ink-muted); }
.kruimel button { all: unset; cursor: pointer; text-decoration: underline; text-decoration-color: var(--navy-200); text-underline-offset: 3px; }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs .tab { background: none; border: 0; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.kopband { margin: -24px -32px 0; padding: 28px 32px 24px; }
@media (max-width: 900px) { .kopband { margin: -20px -16px 0; padding: 20px 16px; } }
/* Kopband loopt tot de randen van het hoofdvlak door, ook als de inhoud gecentreerd smaller is */
.inhoud > .kopband { --kop-uit: calc(var(--inhoud-pad) + max(0px, (100cqw - var(--inhoud-max)) / 2)); margin-left: calc(-1 * var(--kop-uit)); margin-right: calc(-1 * var(--kop-uit)); padding-left: var(--kop-uit); padding-right: var(--kop-uit); }

/* Klantportaal */
.portaal { min-height: 100vh; min-height: 100dvh; padding-bottom: 88px; }
.portaal-top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--border); }
.portaal-top-in { max-width: 1184px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 32px; padding: 0 20px; }
.portaal-nav { display: flex; gap: 28px; height: 64px; }
.portaal-nav .tab { height: 64px; padding: 0; background: none; border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 500; }
.portaal-nav .tab.actief { font-weight: 600; }
.portaal-nav .tab:hover { color: var(--ink); }
.portaal-in { max-width: 1184px; margin: 0 auto; padding: 28px 20px 40px; display: flex; flex-direction: column; gap: 24px; }
.portaal .onderbalk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; padding-bottom: env(safe-area-inset-bottom, 0px); height: auto; min-height: 72px; }
.portaal .onder-item { background: none; border: 0; min-height: 64px; }
.portaal .onder-item .teller { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 5px; font-size: 12px; line-height: 16px; border: 2px solid #fff; }
@media (max-width: 760px) {
  .portaal-nav { display: none; }
  .portaal .onderbalk { display: grid; }
  .portaal-in { padding: 20px 16px 32px; }
  .portaal-top-in { height: 56px; }
  .portaal .btn { min-height: 44px; }
}
@media (min-width: 761px) { .portaal { padding-bottom: 0; } }

/* Overlays */
.modal-laag { position: fixed; inset: 0; background: rgba(8,48,76,.45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-dialog); width: 100%; max-width: 520px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal.breed { max-width: 720px; }
.modal-kop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lade-laag { position: fixed; inset: 0; background: rgba(8,48,76,.35); z-index: 100; display: flex; justify-content: flex-end; }
.lade { background: #fff; width: 440px; max-width: 100%; height: 100%; overflow-y: auto; box-shadow: var(--shadow-dialog); display: flex; flex-direction: column; }
.lade-kop { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: 0; background: #fff; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 40px); }
@media (max-width: 760px) { .toasts { bottom: 96px; left: 16px; right: 16px; } }
.pop { position: absolute; z-index: 50; }
.meldpaneel { position: absolute; right: 0; top: 48px; width: 380px; max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; }
.accmenu { position: absolute; right: 0; top: 48px; width: 280px; }

/* Ontwerp */
.ontwerp-vlak { position: relative; width: 100%; max-width: 900px; aspect-ratio: 900 / 720; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(8,48,76,.08), 0 12px 32px -16px rgba(8,48,76,.3); background: #F6F1E7; cursor: crosshair; user-select: none; }
.ontwerp-vlak.alleen-lezen { cursor: default; }
.ontwerp-vlak > .mockschaal { position: absolute; left: 0; top: 0; width: 900px; height: 720px; transform-origin: top left; pointer-events: none; }
.ontwerp-vlak img.upload { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ontwerp-vlak .pin { transform: translate(0, -100%); cursor: pointer; z-index: 3; }
.mock { font-family: Georgia, 'Times New Roman', serif; color: #2F3B31; width: 900px; height: 720px; }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .viewer { grid-template-columns: minmax(0, 1fr); } }

/* Bord */
.bordrol { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.bord-kaart { cursor: grab; }
.bord-kolom.drop { background: var(--blue-50); border-radius: 10px; outline: 2px dashed var(--focus-ring); outline-offset: 2px; }
.bord-kaart.sleept { opacity: .5; }

/* Kalender */
.kal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kal-kop { padding: 8px 10px; font-size: 14px; font-weight: 600; color: var(--ink-muted); background: var(--navy-50); border-bottom: 1px solid var(--border); }
.kal-cel { min-height: 104px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; min-width: 0; background: #fff; }
.kal-cel.buiten { background: var(--navy-50); }
.kal-cel.vandaag .kal-num { background: var(--navy-900); color: #fff; }
.kal-num { font-size: 14px; font-weight: 600; min-width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; padding: 0 6px; }
.ev { display: flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 8px; border-radius: 6px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); overflow: hidden; min-width: 0; border: 0; text-align: left; font-family: inherit; cursor: pointer; width: 100%; }
.ev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ev .i { width: 14px; height: 14px; }
.ev-deadline { background: #fff; box-shadow: inset 0 0 0 1.5px var(--navy-900); }
.ev-oplevering { background: var(--green-100); border-radius: 999px; }
.ev-afspraak { background: var(--blue-100); }
.ev-contract { background: var(--amber-100); outline: 1.5px dashed var(--amber-700); outline-offset: -1.5px; }
@media (max-width: 700px) { .kal-cel { min-height: 64px; } .kal-cel .ev span { display: none; } }

/* Login */
.login { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: linear-gradient(180deg, #F2FCFF 0%, #DEF2FE 100%); }
.login-kaart { width: 100%; max-width: 560px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-pop); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.persona { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; text-align: left; width: 100%; font: inherit; color: inherit; }
.persona:hover { border-color: var(--navy-300); background: var(--blue-50); }
.persona.aan { border: 2px solid var(--navy-900); padding: 11px 13px; background: var(--blue-50); }

.demo-balk { background: var(--navy-900); color: #fff; font-size: 14px; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 6px 12px; flex-wrap: wrap; }
.demo-balk button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; padding: 2px 10px; font: inherit; font-size: 14px; }
.timerbalk { height: 10px; }
.aftel { position: relative; width: 36px; height: 36px; flex-shrink: 0; }
.aftel svg { transform: rotate(-90deg); }
.aftel span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.stappen { display: flex; list-style: none; margin: 0; padding: 0; }
.stap { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; text-align: center; font-size: 14px; line-height: 18px; position: relative; min-width: 0; }
.stap-bol { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--navy-300); color: var(--ink-muted); font-weight: 700; z-index: 1; }
.stap.klaar .stap-bol { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.stap.nu .stap-bol { background: var(--action); border-color: var(--action); color: #fff; outline: 4px solid var(--orange-100); }
.stap::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--navy-300); }
.stap.klaar::before, .stap.nu::before { background: var(--navy-900); }
.stap:first-child::before { display: none; }

.zoeklijst button { all: unset; box-sizing: border-box; display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.zoeklijst button:hover, .zoeklijst button.aan { background: var(--selected-bg); }
.status { flex-shrink: 0; }


/* ===== Ronde 3: audit, moderner en consistenter ===== */
:root { --ease: cubic-bezier(.2,.8,.2,1); --dur-1: 120ms; --dur-2: 200ms; }
body { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[tabindex]:focus-visible, .persona:focus-visible, .seg-k:focus-visible, .tab:focus-visible, .kies:focus-visible, .bestand:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
main h1[tabindex="-1"]:focus { outline: none; }

/* Typografie: vaste schaal 12 / 14 / 15 / 17 / 22 / 32 / 40 */
.t-pagina { font-size: 32px; line-height: 40px; letter-spacing: -0.025em; }
.t-sectie { font-size: 22px; line-height: 30px; }
.t-kaart { font-size: 17px; line-height: 24px; }
.t-cijfer { font-size: 36px; line-height: 40px; }
.kopband .t-pagina { font-size: 36px; line-height: 44px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Beweging */
.btn, .veld, .kaart-klik, .bord-kaart, .nav-item, .tab, .seg-k, .persona, .kies, .lijst > li.klik, .tabel tr td, .pin, .chip, .onder-item { transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-2) var(--ease); }
.kaart-klik:hover, .bord-kaart:hover { transform: translateY(-1px); box-shadow: var(--shadow-pop); }
.tab::after { transition: transform var(--dur-2) var(--ease); }
.tab:not(.actief)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--action); transform: scaleX(0); }
.tab.actief::after { transform: scaleX(1); }
@keyframes opkomen { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes vervagen { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .kaart-klik:hover, .bord-kaart:hover { transform: none; } }

/* Kaarten: gewone kaart alleen rand, verhoogd bij klikbaar en kengetallen */
.kaart { box-shadow: none; }
.kaart-klik, .kpi { box-shadow: var(--shadow-card); }
.hint { background: var(--surface); border: 1px solid var(--blue-200); border-radius: var(--radius-md); padding: 16px 18px; }
.hint h2 { font-size: 16px; }
.inzet { border-radius: var(--radius-md); }
.akkoord-kaart { border: 1.5px solid var(--action) !important; }
.bericht-klein { background: var(--navy-50); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.bericht-klein.team { background: var(--blue-50); border-left: 3px solid var(--blue-500); }

/* Lege staten */
.leeg-blok { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 24px; max-width: 380px; margin: 0 auto; }
.leeg-blok .ikoontegel { width: 48px; height: 48px; margin-bottom: 4px; }

/* Statuslabels: allemaal gevuld */
.s-bouw { background: var(--blue-100); box-shadow: none; } .s-bouw .i { color: var(--blue-800); }

/* Tabellen */
.tabel th { background: transparent; font-size: 12px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; padding: 12px 16px 10px; }
.tabel td { padding: 11px 16px; }
.tabel tbody tr:hover td { background: var(--blue-50); }
.tabel td button[style*="all:unset"] { cursor: pointer; }

/* Budgetbalk met markering op 100 procent */
.balk { position: relative; height: 6px; overflow: visible; background: var(--navy-100); }
.balk > span { position: absolute; left: 0; top: 0; bottom: 0; }
.balk > span.boven { background: var(--red-700) !important; border-radius: 0 999px 999px 0; }
.balk > i.grens { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--navy-900); border-radius: 1px; }
.balk.over > span:first-child { background: var(--navy-900); border-radius: 999px 0 0 999px; }

/* Kopband en paginakop */
.kopband { position: relative; overflow: hidden; background: radial-gradient(600px 220px at 85% 0%, rgba(52,170,225,.20), transparent 70%), linear-gradient(180deg, #F2FCFF 0%, #DEF2FE 100%); }
.pagkop { align-items: flex-start; }
.pagkop > .row, .pagkop > .seg, .pagkop > .btn { margin-top: 2px; }

/* Rasters passen zich aan de breedte aan */
.grid3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 901px) and (max-width: 1320px) {
  .zijbalk:not(.ingeklapt) { width: 232px; }
  .inhoud { --inhoud-pad: 24px; }
  .kopband { margin: -24px -24px 0; padding: 24px; }
}
@media (min-width: 1101px) and (max-width: 1320px) { .split { grid-template-columns: minmax(0, 1fr) 320px; } .viewer { grid-template-columns: minmax(0, 1fr) 340px; } }

/* Projectbord: zes kolommen passen in 1280 */
.bordrol { display: flex; gap: 12px; overflow-x: auto; align-items: flex-start; }
.bordrol > .bord-kolom { flex: 1 1 0; min-width: 150px; }
.bordrol > button.kaart { flex: 0 0 104px; }
.bord-kaart .titel { overflow-wrap: anywhere; }

/* Steppers */
.stap-tekst { overflow-wrap: anywhere; padding: 0 4px; }
.stap-mobiel { display: none; margin: 0; }
@media (max-width: 700px) { .stap-mobiel { display: block; } .stap .stap-tekst { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.stappen-v { flex-direction: column; gap: 0; }
.stappen-v .stap { flex-direction: row; align-items: center; text-align: left; gap: 12px; padding: 6px 0; }
.stappen-v .stap::before { top: -50%; bottom: 50%; left: 13px; right: auto; width: 2px; height: auto; }

/* Kalender */
.kal-meer { all: unset; cursor: pointer; font-size: 13px; color: var(--ink-muted); padding: 0 8px; }
.kal-meer:hover { text-decoration: underline; }
.kal-meer:focus-visible { outline: 2px solid var(--focus-ring); }
.ev { font-size: 13px; background: transparent !important; box-shadow: none !important; outline: 0 !important; border-radius: 4px; border-left: 3px solid; padding: 2px 6px; }
.ev:hover { background: var(--navy-50) !important; }
.ev-deadline { border-left-color: var(--navy-900); }
.ev-oplevering { border-left-color: var(--green-700); }
.ev-afspraak { border-left-color: var(--blue-500); }
.ev-contract { border-left-color: var(--amber-700); border-left-style: dashed; }
.kal-week .ev span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Segmenten en knoppen */
.seg-k { height: 36px; }
.kies { height: 44px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--control-border); background: var(--surface); font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.kies:hover:not(:disabled) { border-color: var(--navy-900); }
.kies.aan { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.kies:disabled { opacity: .5; cursor: not-allowed; }
.bestand { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1.5px dashed var(--navy-300); border-radius: var(--radius-sm); background: var(--navy-50); font-weight: 600; font-size: 15px; cursor: pointer; max-width: 100%; }
.bestand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bestand:hover { border-color: var(--navy-900); }
.scheiding { display: flex; align-items: center; gap: 12px; color: var(--ink-muted); font-size: 14px; }
.scheiding::before, .scheiding::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.cl-actie { width: 100%; padding-left: 44px; }

/* Meldingen */
.lijst > li.ongelezen .t-sm:first-child { font-weight: 600; }
.stip { width: 8px; height: 8px; border-radius: 50%; background: var(--action); flex-shrink: 0; }
.toasts { pointer-events: none; }
.toast { pointer-events: auto; }
.toast:nth-last-child(n+3) { display: none; }

/* Portaal */
.portaal .veld { min-height: 44px; }
.portaal textarea.veld { min-height: 110px; }
.tabs-scroll { overflow-x: auto; -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); scroll-padding: 16px; }
.tabs-scroll .tabs { min-width: max-content; padding-right: 32px; }
@media (min-width: 761px) { .tabs-scroll { -webkit-mask-image: none; mask-image: none; } }
@media (max-width: 760px) {
  .portaal .meldpaneel { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; max-width: none; max-height: 70vh; }
  .portaal .seg-k, .portaal .kruimel button, .portaal .btn { min-height: 44px; }
  .portaal .pin { width: 36px; height: 36px; }
  .portaal .lijst > li.stapel { flex-wrap: wrap; }
  .portaal .lijst > li.stapel > .status { order: 3; margin-left: 48px; }
  .portaal .lijst > li.stapel > .grow { flex-basis: calc(100% - 60px); }
  .portaal .cl-actie { padding-left: 0; }
  .toasts { bottom: 88px; left: 16px; right: 16px; }
}
@media (max-width: 480px) {
  .dl-stapel { grid-template-columns: 1fr !important; row-gap: 2px; }
  .dl-stapel dd { margin-bottom: 10px; overflow-wrap: anywhere; }
}

.veld-sm { height: 36px; }
.kaart-kop { flex-wrap: wrap; row-gap: 8px; } .kaart-kop > * { min-width: 0; }

@media (max-width: 480px) { .meldpaneel { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; max-width: none; } }
@media (max-width: 700px) { .inhoud form.row > .veld, .inhoud form.row > select, .inhoud form.row > input { width: 100% !important; min-width: 0 !important; flex-basis: 100%; } .inhoud .pagkop { flex-wrap: wrap; } }
@media (max-width: 700px) { .inhoud .lijst > li { flex-wrap: wrap; } } .tabelwrap { overflow-x: auto; max-width: 100%; }

/* ---------- ontwerpen als echte HTML ---------- */
.ow-vlak { position: relative; width: 100%; min-height: 240px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(8,48,76,.08), 0 12px 32px -16px rgba(8,48,76,.3); cursor: crosshair; user-select: none; }
.ow-vlak.alleen-lezen { cursor: default; }
.ow-vlak .ow-schaal, .ow-duim .ow-schaal { position: absolute; left: 0; top: 0; transform-origin: top left; pointer-events: none; }
.ow-frame { display: block; border: 0; background: #fff; pointer-events: none; }
.ow-vlak .pin { transform: translate(0, -100%); cursor: pointer; z-index: 3; }
.ow-vlak .ow-laden { position: absolute; left: 16px; top: 16px; }
.ow-vlak.geladen .ow-laden, .ow-duim.geladen .ow-laden { display: none; }
.ow-vlak.ow-nu { outline: 2px dashed var(--navy-300, #8FA8BA); outline-offset: -2px; }
.ow-duim { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: #fff; }
.ow-markering { position: absolute; border: 2px solid var(--action); background: rgba(238,113,0,.10); border-radius: 4px; pointer-events: none; z-index: 2; box-shadow: 0 0 0 4px rgba(238,113,0,.18); }
.pin.uitleg { border-radius: 7px; background: #17709B; }
.pin.uitleg.gekozen { background: var(--navy-900); }
.ow-naast { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 700px) { .ow-naast { grid-template-columns: 1fr; } }
.ow-strip { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 8px; background: #EAF7FD; color: var(--navy-900); font-size: 15px; line-height: 1.5; }
.ow-strip .i { flex-shrink: 0; margin-top: 3px; color: #17709B; }
.ow-target { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border: 1px dashed rgba(23,112,155,.45); border-radius: 8px; background: #fff; font-size: 14px; line-height: 1.45; color: var(--navy-700, #33536B); min-width: 0; }
.ow-target-kop { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #17709B; }
.ow-pad { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: #5C7688; word-break: break-all; }
.ow-code { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; line-height: 1.5; white-space: pre; overflow: auto; }
.modal.modal-breed { max-width: 760px; max-height: calc(100vh - 48px); overflow-y: auto; }
.stappen-uitleg { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.ow-view-tag { font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--navy-100); color: var(--navy-900); }
.ow-code.ow-wrap { white-space: pre-wrap; }
.merk-logo { display: block; width: 188px; height: auto; max-width: 100%; }
.portaal-top .merk-logo { width: 150px; }
@media (max-width: 600px) { .portaal-top .merk-logo { width: 124px; } }
.login-kaart .merk-logo { width: 220px; }

/* ---------- beweging ---------- */
:root { --dur-3: 280ms; --ease-uit: cubic-bezier(.4,0,1,1); --ease-veer: cubic-bezier(.34,1.56,.64,1); }
@keyframes inkomen { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes schaalIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes schaalUit { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(4px) scale(.98); } }
@keyframes vervaagUit { from { opacity: 1; } to { opacity: 0; } }
@keyframes ladeIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes ladeUit { from { transform: none; } to { transform: translateX(100%); } }
@keyframes menuIn { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastUit { to { opacity: 0; transform: translateX(24px); } }
@keyframes plof { 0% { opacity: 0; transform: translate(0, -160%) scale(.6); } 60% { opacity: 1; transform: translate(0, -92%) scale(1.08); } 100% { transform: translate(0, -100%) scale(1); } }
@keyframes wissel { 0% { transform: scale(.85); opacity: .4; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: none; } }
@keyframes groei { from { transform: scaleX(0); } to { transform: none; } }
@keyframes glans { from { background-position: -600px 0; } to { background-position: 600px 0; } }

/* pagina of tabblad wisselt */
#inhoud.pag-in > * { animation: inkomen var(--dur-3) var(--ease) both; }
#inhoud.pag-in > *:nth-child(2) { animation-delay: 40ms; } #inhoud.pag-in > *:nth-child(3) { animation-delay: 80ms; } #inhoud.pag-in > *:nth-child(n+4) { animation-delay: 120ms; }
#inhoud.pag-in :is(.lijst > li, .kpi, .tabel tbody tr, .bord-kaart, .grid3 > .kaart, .grid2 > .kaart, .grid4 > *) { animation: inkomen var(--dur-3) var(--ease) both; animation-delay: 140ms; }
#inhoud.pag-in :is(.lijst > li, .kpi, .tabel tbody tr, .bord-kaart, .grid3 > .kaart, .grid2 > .kaart, .grid4 > *):nth-child(2) { animation-delay: 175ms; }
#inhoud.pag-in :is(.lijst > li, .kpi, .tabel tbody tr, .bord-kaart, .grid3 > .kaart, .grid2 > .kaart, .grid4 > *):nth-child(3) { animation-delay: 210ms; }
#inhoud.pag-in :is(.lijst > li, .kpi, .tabel tbody tr, .bord-kaart, .grid3 > .kaart, .grid2 > .kaart, .grid4 > *):nth-child(4) { animation-delay: 245ms; }
#inhoud.pag-in :is(.lijst > li, .kpi, .tabel tbody tr, .bord-kaart, .grid3 > .kaart, .grid2 > .kaart, .grid4 > *):nth-child(5) { animation-delay: 280ms; }
#inhoud.pag-in :is(.lijst > li, .kpi, .tabel tbody tr, .bord-kaart, .grid3 > .kaart, .grid2 > .kaart, .grid4 > *):nth-child(n+6) { animation-delay: 310ms; }
#inhoud.pag-in .balk > span { transform-origin: left center; animation: groei 700ms var(--ease) 200ms both; }
#inhoud.pag-in .tab.actief::after, #inhoud.pag-in .tab[aria-selected="true"]::after { transform-origin: left center; animation: groei var(--dur-3) var(--ease) both; }

/* vensters, lades, panelen, menu */
.modal-laag.in, .lade-laag.in { animation: vervagen var(--dur-2) var(--ease) both; }
.modal-laag.in .modal { animation: schaalIn var(--dur-3) var(--ease) both; }
.lade-laag.in .lade { animation: ladeIn var(--dur-3) var(--ease) both; }
.modal-laag.uit, .lade-laag.uit { animation: vervaagUit 180ms var(--ease-uit) both; pointer-events: none; }
.modal-laag.uit .modal { animation: schaalUit 180ms var(--ease-uit) both; }
.lade-laag.uit .lade { animation: ladeUit 180ms var(--ease-uit) both; }
.popover.in { transform-origin: top right; animation: popIn var(--dur-2) var(--ease) both; }
@media (max-width: 1100px) { .shell.menu-in .zijbalk { animation: menuIn var(--dur-3) var(--ease) both; } .shell.menu-in .scrim { animation: vervagen var(--dur-2) var(--ease) both; } }

/* meldingen */
.toast.in { animation: toastIn var(--dur-3) var(--ease-veer) both; }
.toast.uit { animation: toastUit 200ms var(--ease-uit) both; }

/* feedback op acties */
.btn:not(:disabled):active, .seg-k:active, .kies:active, .persona:active { transform: scale(.97); transition-duration: 60ms; }
.btn-primair:not(:disabled):hover { box-shadow: 0 6px 16px -8px rgba(238,113,0,.8); }
.kaart-klik:hover, .bord-kaart:hover { transform: translateY(-2px); }
.pin.plof, .ow-vlak .pin.plof { animation: plof 420ms var(--ease-veer) both; }
.pin.nieuw { animation: plof 420ms var(--ease-veer) both; }
.ontwerp-vlak .pin:hover, .ow-vlak .status.wissel { animation: wissel 420ms var(--ease-veer); }
.ow-markering { animation: vervagen var(--dur-2) var(--ease) both; }
input[type=checkbox] { transition: transform var(--dur-1) var(--ease); }
input[type=checkbox]:active { transform: scale(.88); }

/* laden */
.skelet { background: linear-gradient(90deg, #E7EFF5 0, #F4F8FB 40%, #E7EFF5 80%) 0 0 / 1200px 100% #E7EFF5; animation: glans 1.3s linear infinite; border-radius: 8px; }
.ow-vlak:not(.geladen), .ow-duim:not(.geladen) { background: linear-gradient(90deg, #EEF3F7 0, #F8FBFD 40%, #EEF3F7 80%) 0 0 / 1200px 100% #EEF3F7; animation: glans 1.3s linear infinite; }
.ow-vlak .ow-frame, .ow-duim .ow-frame { opacity: 0; transition: opacity var(--dur-3) var(--ease); }
.ow-vlak.geladen .ow-frame, .ow-duim.geladen .ow-frame { opacity: 1; }
.laadscherm { display: flex; min-height: 100vh; background: var(--canvas, #F4F8FB); }
.laadscherm .l-zij { width: 248px; background: #fff; border-right: 1px solid var(--border); padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; }
.laadscherm .l-in { flex: 1; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.laadscherm .l-rij { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
@media (max-width: 800px) { .laadscherm .l-zij { display: none; } .laadscherm .l-in { padding: 20px 16px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .ow-vlak .ow-frame, .ow-duim .ow-frame { opacity: 1; } .btn:active, .kaart-klik:hover, .bord-kaart:hover { transform: none; } .ontwerp-vlak .pin:hover, .ow-vlak .pin:hover { transform: translate(0, -100%); } }

/* ---------- hosting ---------- */
.stappen-lijst { list-style: none; margin: 0; padding: 8px 20px 16px; display: flex; flex-direction: column; }
.stappen-lijst > li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); }
.stappen-lijst > li:first-child { border-top: 0; }
.stappen-lijst .stap-ic { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.stappen-lijst > li.stap-klaar .stap-ic .i { animation: wissel 360ms var(--ease-veer, ease); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #C8D6E2; border-top-color: var(--action); animation: draai .8s linear infinite; display: inline-block; }
@keyframes draai { to { transform: rotate(360deg); } }
.modal .kies { height: auto; padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font-weight: 400; }
.modal .kies.aan { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); background: #FFF6EE; }
.grid2 > .kaart, .grid3 > .kaart { min-width: 0; }
.tabelwrap { position: relative; }
/* ---------- flexibiliteit ---------- */
.recht { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.recht:hover { background: var(--navy-50); }
.recht > span { display: flex; flex-direction: column; gap: 2px; }
.recht .vink { margin-top: 3px; flex-shrink: 0; }
.tm-rij { display: grid; grid-template-columns: minmax(0, 1.4fr) 96px minmax(0, 1.3fr) 150px 36px; gap: 8px; align-items: center; }
.tm-rij.vast { grid-template-columns: minmax(0, 1.4fr) 60px minmax(0, 1.3fr) auto auto; padding: 8px 12px; background: var(--navy-50); border-radius: 8px; }
@media (max-width: 760px) { .tm-rij, .tm-rij.vast { grid-template-columns: 1fr 1fr; padding: 10px; border: 1px solid var(--border); border-radius: 10px; } .tm-rij > :first-child { grid-column: 1 / -1; } }
.taak-titel { all: unset; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; font-weight: inherit; }
.taak-titel .i { opacity: 0; color: var(--ink-muted); transition: opacity var(--dur-1) var(--ease); }
.taak-titel:hover .i, .taak-titel:focus-visible .i { opacity: 1; }
.taak-titel:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
.gesprek { display: flex; flex-direction: column; gap: 8px; }
.briefing-tekst { display: flex; flex-direction: column; gap: 16px; max-width: 68ch; }

/* ronde 7 */
.bericht-acties { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: -10px; }
.bericht-acties .btn { min-height: 32px; }
details > summary { list-style-position: inside; }

/* presentatie in het klantportaal: zijbalk met de pagina's, kop met acties, het ontwerp met opmerkingen */
.pres { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; background: var(--app-bg); }
.pres-zij { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px; padding: 20px 10px 16px; box-sizing: border-box; }
.pres-merk { display: flex; align-items: flex-start; gap: 8px; padding: 0 10px; }
.pres-merk .merk-logo { width: 150px; height: auto; }
.pres-voor { margin: 0 4px; padding: 14px; background: var(--blue-50); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pres-oog { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-700); }
.pres-klant { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.pres-voortgang { padding: 0 10px; display: flex; flex-direction: column; gap: 8px; }
.pres-balk { height: 8px; border-radius: var(--radius-full); background: var(--navy-100); overflow: hidden; }
.pres-balk > span { display: block; height: 100%; border-radius: inherit; background: var(--action); transition: width .3s ease; }
.pres-navlijst { display: flex; flex-direction: column; gap: 2px; }
.pres-kop { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); padding: 0 12px 6px; }
.pres-nav { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; }
.pres-nav:hover { background: var(--navy-50); }
.pres-nav.aan { background: var(--blue-100); font-weight: 600; }
.pres-nr { font-family: var(--font-mono); font-size: 11px; min-width: 20px; color: var(--ink-muted); }
.pres-tel { font-family: var(--font-mono); font-size: 11px; line-height: 18px; padding: 0 7px; border-radius: var(--radius-full); background: var(--orange-100); color: var(--orange-700); }
.pres-stip { width: 9px; height: 9px; border-radius: var(--radius-full); flex-shrink: 0; background: var(--navy-200); }
.pres-stip.wacht { background: var(--action); }
.pres-stip.goed { background: var(--green-500); }
.pres-stip.bezig { background: var(--blue-500); }
.pres-zij-voet { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 4px 0; border-top: 1px solid var(--border); }
.pres-hoofd { min-width: 0; display: flex; flex-direction: column; }
.pres-kopblok { position: sticky; top: 0; z-index: 10; }
.pres-top { background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 12px 24px; }
.pres-titel { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pres-actie { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 10px 24px; background: var(--blue-50); border-bottom: 1px solid var(--border); }
.pres-actie.prikken { background: var(--orange-50); }
.pres-teller { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.pres-ring { width: 30px; height: 30px; border-radius: var(--radius-full); background: var(--action); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; animation: presRing 1.6s ease-in-out infinite; }
@keyframes presRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(238,113,0,.5); } 50% { box-shadow: 0 0 0 9px rgba(238,113,0,0); } }
.pres-podium { width: 100%; max-width: 1480px; margin: 0 auto; padding: 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; }
.pres-pagina { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.pres-pagina.met-paneel { grid-template-columns: minmax(0, 1fr) 360px; }
.pres-paneel { position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow: auto; }
.pres-prikken .ow-vlak, .pres-prikken .ontwerp-vlak { cursor: crosshair; outline: 3px solid var(--action); outline-offset: 3px; }
.pres-volgende { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.pres-volgende .btn { height: auto; min-height: 44px; padding: 10px 16px; text-align: left; }
.pres-groot { height: auto; min-height: 48px; padding: 12px 24px; font-size: 16px; border-radius: var(--radius-full); }
.pres-link { all: unset; color: var(--blue-700); text-decoration: underline; cursor: pointer; }
.pres-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.pres-welkom { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(8px, 4vw, 48px) 0; }
.pres-h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5vw, 64px); letter-spacing: -.035em; line-height: 1.02; margin: 14px 0 0; text-wrap: balance; }
.pres-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.03em; line-height: 1.08; margin: 10px 0 0; text-wrap: balance; }
.pres-h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; line-height: 1.2; margin: 8px 0 6px; }
.pres-lead { font-size: 17px; line-height: 1.6; color: var(--ink-muted); max-width: 46em; margin: 16px 0 0; }
.pres-mono { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); margin: 22px 0 0; }
.pres-stappen { display: flex; flex-direction: column; gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.pres-stappen li { display: flex; gap: 12px; align-items: flex-start; }
.pres-bol { font-family: var(--font-display); font-weight: 700; font-size: 14px; min-width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--blue-50); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pres-vast { margin-top: 20px; padding: 14px; border-radius: var(--radius-md); background: var(--blue-50); display: flex; flex-direction: column; gap: 4px; }
.pres-kaarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pres-kaarten .kaart { padding: 22px; }
.pres-donker { background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.pres-donker .pres-oog { color: var(--blue-300); }
.pres-donker p { color: #B7D9EC; margin: 0; line-height: 1.6; }
.pres-planning { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pres-planning li { display: flex; gap: 12px; align-items: flex-start; }
.pres-planning .pres-bol { min-width: 12px; width: 12px; height: 12px; margin-top: 5px; background: var(--blue-500); }
.pres-planning li:first-child .pres-bol { background: var(--action); }
.pres-menuknop, .pres-menu-dicht { display: none; }
.pres-scrim { display: none; }
@media (max-width: 1100px) { .pres-pagina.met-paneel { grid-template-columns: minmax(0, 1fr); } .pres-paneel { position: static; max-height: none; } }
@media (max-width: 900px) {
  .pres { grid-template-columns: minmax(0, 1fr); }
  .pres-zij { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); z-index: 60; transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow-card); }
  .pres-zij.open { transform: none; }
  .pres-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(8,48,76,.4); }
  .pres-menuknop, .pres-menu-dicht { display: inline-flex; }
  .pres-menu-dicht { margin-left: auto; }
  .pres-top, .pres-actie { padding: 10px 16px; }
  .pres-podium { padding: 16px; }
  .pres-welkom { grid-template-columns: minmax(0, 1fr); }
  .pres-teller { margin-left: 0; width: 100%; }
}
.pres-versies { margin: 0 4px; display: flex; flex-wrap: wrap; }

/* ================= Rondes 8 tot en met 11: dashboard, berichten, kennisbank, voorstel als brief, factuur voor de klant ================= */

/* ronde 8: dashboard */
.db-tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.db-tegel { background: #fff; border: 1px solid var(--navy-100); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.db-tegel.waarsch { border-color: var(--amber-500); }
.db-tegel.waarsch .t-sm:not(.muted) { color: var(--amber-700); font-weight: 600; }
.db-label { font-size: 14px; font-weight: 600; color: var(--navy-600); }
.db-waarde { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 28px; line-height: 34px; color: var(--navy-900); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.db-uitleg { margin-top: 4px; }
.db-uitleg summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue-700); width: fit-content; }
.db-uitleg p { margin-top: 6px; color: var(--navy-700); }
.db-grafieken { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.db-grafiek { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.db-grafiek text { font-family: 'Instrument Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.trechter { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.trechter li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 32px; grid-template-areas: "l b n" ". c c"; gap: 2px 10px; align-items: center; }
.trechter .tr-l { grid-area: l; font-weight: 600; font-size: 14px; }
.trechter .tr-balk { grid-area: b; height: 14px; background: var(--navy-50); border-radius: 4px; overflow: hidden; }
.trechter .tr-balk span { display: block; height: 100%; background: #008BBF; border-radius: 4px; }
.trechter .tr-n { grid-area: n; text-align: right; font-variant-numeric: tabular-nums; }
.trechter .tr-c { grid-area: c; }
.rol-directie .zoekknop, .rol-directie .timer-start, .rol-directie .timer-loopt { display: none; }
button.melding.klik:hover { filter: brightness(0.98); }

/* ---------- Ronde 9 ---------- */
.hist-knoppen { display: inline-flex; gap: 2px; flex-shrink: 0; }
.hist-knoppen .btn[disabled] { opacity: .35; cursor: default; }
.portaal-top-in .hist-knoppen { margin-left: -12px; }
@media (max-width: 760px) { .portaal-top-in .hist-knoppen { display: none; } }
.snelknop { width: 40px; height: 40px; padding: 0; border-radius: 999px; flex-shrink: 0; }
.team-onder { display: none; }
.onder-item { position: relative; }
.onder-item .teller { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 12px; padding: 0 4px; }
@media (max-width: 760px) {
  .team-onder { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--border); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .team-onder .onder-item { background: none; border: 0; min-height: 64px; cursor: pointer; font: inherit; font-size: 13px; }
  .shell .inhoud { padding-bottom: 104px; }
  .shell .btn, .shell .veld, .shell select.veld { min-height: 44px; }
  .shell .btn-sm { min-height: 40px; }
  .shell .bovenbalk { gap: 8px; padding: 0 12px; }
  .shell .bovenbalk .hist-knoppen { display: none; }
  .shell .timer-knop, .shell .acc-knop { flex-shrink: 0; }
  .toasts { bottom: 96px; }
  .bulkbalk { position: sticky; bottom: 80px; }
}
/* tabellen op een telefoon: rijen worden kaarten met labels */
@media (max-width: 640px) {
  table.tabel.mob, table.tabel.mob tbody, table.tabel.mob tr { display: block; width: 100%; }
  table.tabel.mob thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.tabel.mob tr { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
  table.tabel.mob td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: baseline; border: 0 !important; padding: 0 !important; text-align: left !important; white-space: normal !important; width: auto; }
  table.tabel.mob td::before { content: attr(data-l); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .04em; }
  table.tabel.mob td[data-l=""], table.tabel.mob td[colspan], table.tabel.mob td:not([data-l]) { display: block; }
  table.tabel.mob td[data-l=""]::before, table.tabel.mob td[colspan]::before { display: none; }
  table.tabel.mob tr > td:first-child:not([data-a=stop]), table.tabel.mob tr > td[data-a=stop] + td { display: block; font-size: 16px; }
  table.tabel.mob tr > td:first-child:not([data-a=stop])::before, table.tabel.mob tr > td[data-a=stop] + td::before { display: none; }
  table.tabel.mob td[data-a=stop] { position: absolute; right: 12px; margin-top: -2px; }
  table.tabel.mob tr { position: relative; }
  table.tabel.mob td[data-a=stop] + td { padding-right: 44px !important; }
  table.tabel.mob .td-w { min-width: 0; overflow-wrap: anywhere; }
  table.tabel.mob td.rechts .td-w { text-align: left; }
  .tabelwrap { overflow-x: visible; }
}
/* berichten */
.bericht.bericht-team, .bericht.bericht-klant { display: flex; gap: 12px; align-items: flex-start; max-width: 720px; border: 0; background: transparent; padding: 0; }
.bericht-team { align-self: flex-start; }
.bericht-klant { align-self: flex-end; flex-direction: row-reverse; }
.bericht-klant .row { justify-content: flex-end; }
.bericht-team > .grow, .bericht-klant > .grow { background: var(--navy-50, #F4F8FB); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.bericht-klant > .grow { background: #FFF4E8; border-color: #F7D3AE; }
.clamp2 { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* reviews */
.sterren { display: inline-flex; gap: 2px; color: #C7D3DD; font-size: 18px; line-height: 1; }
.sterren.groot { font-size: 28px; }
.sterren .aan { color: #B86100; }
.sterkeuze .ster { width: 48px; height: 48px; border: 1px solid var(--control-border); border-radius: 10px; background: #fff; font-size: 26px; line-height: 1; color: #C7D3DD; cursor: pointer; }
.sterkeuze .ster.aan { color: #B86100; border-color: #B86100; background: #FFF4E8; }
.sterkeuze .ster:focus-visible { outline: 3px solid var(--blue-500, #34AAE1); outline-offset: 2px; }
/* hostingdashboard klant */
.host-tegels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 20px; }
.host-tegel { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.host-tegel .db-waarde { overflow-wrap: anywhere; }
@media (max-width: 1000px) { .host-tegels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .host-tegels { grid-template-columns: minmax(0, 1fr); } }
/* voorstel */
.voorstel-blokken { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.vs-blok { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.vinklijst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vinklijst li { display: flex; gap: 8px; align-items: flex-start; }
.vinklijst li .i { color: #1C7A4A; margin-top: 3px; flex-shrink: 0; }
.kaart.gekozen { box-shadow: inset 0 0 0 2px var(--action); }
/* hulp */
details.faq { border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; background: #fff; }
details.faq > summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; list-style: none; gap: 8px; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::before { content: "+"; font-weight: 700; width: 16px; color: var(--ink-muted); }
details.faq[open] > summary::before { content: "\002212"; }
details.faq > div { padding: 0 0 14px 24px; }
/* startpagina */
.dw-kolommen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 16px 20px 20px; }
@media (max-width: 900px) { .dw-kolommen { grid-template-columns: minmax(0, 1fr); } }
.dw-lijst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dw-lijst li { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); min-height: 40px; cursor: pointer; }
.dw-lijst li:last-child { border-bottom: 0; }
.dw-lijst li:hover .afkap { text-decoration: underline; }
/* weergaven en bulk */
.weergaven { align-items: center; }
.chip-weergave { display: inline-flex; align-items: center; gap: 2px; padding-right: 2px; }
.bulkbalk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; background: #DEF2FE; border: 1px solid #A9DCF4; border-radius: 10px; z-index: 5; }

/* ---------- Kennisbank ---------- */
.kb-zoek { max-width: 640px; height: 48px; }
.kb-zoek input { font-size: 16px; }
.kb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.kb-tegel { display: flex; gap: 14px; align-items: flex-start; padding: 18px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.kb-tegel .ikoontegel { flex-shrink: 0; }
.kb-wrap { max-width: 780px; }
.kb-lead { font-size: 17px; line-height: 26px; color: var(--ink-muted); }
.kb-stappen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.kb-stappen > li { display: flex; gap: 14px; align-items: flex-start; }
.kb-nr { flex-shrink: 0; width: 30px; height: 30px; border-radius: 999px; background: var(--navy-900); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.kb-beeld { margin: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--navy-50); max-width: 640px; }
.kb-beeld img { display: block; width: 100%; height: auto; }
.kb-geenbeeld { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border: 1px dashed var(--navy-300); border-radius: 8px; color: var(--ink-muted); width: fit-content; }
.kb-tip { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-left: 4px solid var(--blue-500); background: #EEF8FD; border-radius: 0 10px 10px 0; }
.km-stap { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.km-knoppen .btn[disabled] { opacity: .35; }
.km-duim { width: 96px; height: 60px; object-fit: cover; border: 1px solid var(--border); border-radius: 6px; }
.km-upload { cursor: pointer; position: relative; }
.km-upload:focus-within { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.km-rel { max-height: 200px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 640px) { .kb-stappen > li { gap: 10px; } .km-stap { flex-wrap: wrap; } .km-knoppen { flex-direction: row; } }
@media (max-width: 640px) { .kb-tegel { padding: 14px; } .kb-tegel .t-sm.muted { display: none; } }

/* ---------- Ronde 10: zijbalk ---------- */
.zijbalk { padding: 22px 14px 12px; gap: 0; }
.zijbalk .merk { padding: 0 10px 22px; gap: 4px; }
.zijbalk .merk-logo { width: 160px; }
.nav-lijst { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; margin: 0 -6px; padding: 2px 6px 12px; scrollbar-width: thin; }
.nav-sectie { display: flex; flex-direction: column; gap: 4px; }
.nav-sectie-items { display: flex; flex-direction: column; gap: 2px; }
.nav-groep { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); padding: 0 12px 4px; }
.zijbalk .nav-item { height: 40px; gap: 12px; padding: 0 12px; border-radius: 10px; font-size: 15px; box-shadow: none; position: relative; }
.zijbalk .nav-item .i { width: 20px; height: 20px; color: var(--navy-500); flex-shrink: 0; }
.zijbalk .nav-item:hover { background: var(--navy-50); color: var(--ink); }
.zijbalk .nav-item.actief { background: var(--selected-bg); color: var(--ink); font-weight: 600; box-shadow: none; border-radius: 10px; }
.zijbalk .nav-item.actief::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--action); }
.zijbalk .nav-item.actief .i { color: var(--ink); }
.nav-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-groep-knop { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 32px; padding: 0 12px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); }
.nav-groep-knop:hover { background: var(--navy-50); color: var(--ink); }
.nav-groep-knop .i { transition: transform var(--dur-1) var(--ease); }
.nav-groep-knop[aria-expanded="false"] .i { transform: rotate(-90deg); }
.zijbalk-voet { margin-top: 0; padding-top: 10px; }
.zijbalk.ingeklapt .nav-lijst { align-items: center; gap: 2px; margin: 0; padding: 0 0 12px; }
.zijbalk.ingeklapt .nav-item { width: 44px; height: 44px; padding: 0; justify-content: center; }
.zijbalk.ingeklapt .nav-item.actief::before { left: -14px; }
.zijbalk.ingeklapt .nav-sep { width: 28px; margin: 10px auto; }

/* ---------- Ronde 10: voorstel als brief ---------- */
.vb-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.vb-brief { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(8,48,76,.06), 0 18px 40px -28px rgba(8,48,76,.35); }
.vb-kop { padding: 32px 40px 28px; background: linear-gradient(180deg, #F1F7FB 0%, #fff 100%); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; position: relative; }
.vb-kop::after { content: ""; position: absolute; left: 40px; bottom: -2px; width: 56px; height: 4px; border-radius: 2px; background: var(--action); }
.vb-logo { width: 150px; height: auto; margin-bottom: 8px; }
.vb-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-700); }
.vb-titel { font-family: var(--font-display); font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.vb-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 6px 0 0; }
.vb-meta div { display: flex; flex-direction: column; gap: 2px; }
.vb-meta dt { font-size: 12px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .05em; }
.vb-meta dd { margin: 0; font-weight: 600; }
.vb-body { padding: 32px 40px 40px; display: flex; flex-direction: column; gap: 28px; max-width: 760px; }
.vb-aanhef { font-size: 18px; font-weight: 600; margin: 0; }
.vb-tekst { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 26px; }
.vb-tekst p { font-size: 16px; line-height: 26px; }
.vb-sectie { display: flex; flex-direction: column; gap: 14px; }
.vb-sectie > h2 { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 700; margin: 0; }
.vb-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.vb-pakket { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 12px; background: var(--navy-900); color: #fff; }
.vb-pakket .vb-label, .vb-pakket .muted { color: #B9CDDA; }
.vb-pakket-naam { font-family: var(--font-display); font-size: 24px; line-height: 30px; }
.vb-bedrag { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vb-bedrag.groot { font-size: 22px; }
.vb-inhoud { padding: 4px 4px 0; }
.vb-regels { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; }
.vb-regel { display: flex; gap: 16px; align-items: flex-start; padding: 14px 18px; border-top: 1px solid var(--border); }
.vb-regel:first-child { border-top: 0; }
.vb-regel-titel { display: block; font-weight: 600; }
.vb-opties { display: grid; gap: 10px; }
.vb-optie { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease); }
.vb-optie:hover { border-color: var(--navy-300); }
.vb-optie.aan { border-color: var(--action); background: #FFF6EC; }
.vb-optie.vast { cursor: default; }
.vb-optie .vink { margin-top: 2px; }
.vb-advies { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #EEF8FD; border: 1px solid #BFE4F6; }
.vb-advies .i { color: var(--blue-700); flex-shrink: 0; margin-top: 2px; }
.vb-periode { align-self: flex-start; }
.vb-hosting { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vb-hosting .vb-host.zelf { grid-column: 1 / -1; padding-block: 14px; }
@media (max-width: 520px) { .vb-hosting { grid-template-columns: 1fr; } }
.vb-host { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 16px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; background: #fff; }
.vb-host:hover { border-color: var(--navy-300); }
.vb-host.aan { border-color: var(--action); box-shadow: 0 0 0 3px rgba(238,113,0,.15); }
.vb-host:focus-within { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.vb-host.vast { cursor: default; }
.vb-host.zelf { justify-content: center; background: var(--navy-50); }
.vb-host-naam { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.vb-host-prijs { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.vb-host-lijst { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--ink-muted); }
.vb-badge { position: absolute; top: -10px; left: 14px; padding: 2px 8px; border-radius: 999px; background: var(--action); color: #fff; font-size: 12px; font-weight: 700; }
.vb-termijnen { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; }
.vb-termijnen li { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border); }
.vb-termijnen li:first-child { border-top: 0; }
.vb-groet { margin: 0; line-height: 26px; }
.vb-totaal { position: sticky; top: 84px; }
.vb-som { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.vb-som div { display: flex; justify-content: space-between; gap: 12px; }
.vb-som dt { color: var(--ink-muted); }
.vb-som dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.vb-som-totaal { padding-top: 10px; border-top: 1px solid var(--border); font-size: 18px; }
.vb-som-totaal dt { color: var(--ink); font-weight: 600; }
.vb-som-totaal dd { font-weight: 700; }
.vb-mobiel { display: none; }
@media (max-width: 1000px) { .vb-wrap { grid-template-columns: minmax(0, 1fr); } .vb-totaal { position: static; } }
@media (max-width: 640px) {
  .vb-kop { padding: 24px 20px 20px; } .vb-kop::after { left: 20px; } .vb-body { padding: 24px 20px 28px; gap: 24px; } .vb-titel { font-size: 26px; line-height: 32px; }
  .vb-pakket { flex-direction: column; align-items: flex-start; }
  .vb-mobiel { display: flex; position: fixed; left: 0; right: 0; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 29; padding: 10px 16px; gap: 12px; align-items: center; justify-content: space-between; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -16px rgba(8,48,76,.4); }
  .portaal .portaal-in:has(.vb-mobiel) { padding-bottom: 96px; }
}
/* voorstel bewerken */
.vse-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.vse-zij { position: sticky; top: 84px; }
@media (max-width: 1100px) { .vse-grid { grid-template-columns: minmax(0, 1fr); } .vse-zij { position: static; } }
.vse-lib, .vse-regels { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; }
.vse-lib li, .vse-regels li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.vse-lib li:first-child, .vse-regels li:first-child { border-top: 0; }
.vse-eigen { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.vse-eigen-rij { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }
@media (max-width: 700px) { .vse-eigen-rij { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Ronde 10: factuur voor de klant ---------- */
.kf-bedragen { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.kf-dl { min-width: 240px; }
.db-waarde.doorgehaald { text-decoration: line-through; color: var(--ink-muted); }
.kf-stappen { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.kf-stappen li { flex: 1; display: flex; gap: 10px; align-items: center; padding-right: 16px; position: relative; }
.kf-bol { width: 28px; height: 28px; border-radius: 999px; border: 2px solid var(--navy-200); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: #fff; }
.kf-stappen li.klaar .kf-bol { background: #1C7A4A; border-color: #1C7A4A; color: #fff; }
.kf-hoort { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.kf-termijnen li { gap: 12px; flex-wrap: wrap; }
.kf-termijnen li.kf-nu { background: #FFF6EC; box-shadow: inset 3px 0 0 var(--action); }
.portaal .kf-rij { cursor: pointer; }

/* ---------- Ronde 10: opleverchecklist ---------- */
.opl-kop { display: flex; gap: 12px; align-items: center; width: 100%; padding: 16px 20px; border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; text-align: left; border-radius: inherit; }
.opl-kop:hover { background: var(--navy-50); }
.opl-kop .i { transition: transform var(--dur-1) var(--ease); flex-shrink: 0; }
.opl-kop[aria-expanded="true"] .i { transform: rotate(180deg); }
.opl-balk { display: block; height: 6px; border-radius: 3px; background: var(--navy-100); overflow: hidden; max-width: 360px; }
.opl-balk span { display: block; height: 100%; background: #1C7A4A; border-radius: 3px; }

/* ---------- Ronde 10: kleinere verbeteringen uit de check ---------- */
@media (min-width: 761px) { .inhoud select.veld, .inhoud .veld-sm { font-size: 15px; } }
@media (max-width: 700px) { .db-tegels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 760px) { .shell .seg-k, .shell button.chip, .portaal .seg-k { min-height: 44px; } .kruimel button { padding: 8px 0; } }
@media (max-width: 700px) { .inhoud .lijst > li > svg.i:last-child { display: none; } }
[hidden] { display: none !important; }
@media (max-width: 700px) { .grid4.kpi-rij { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 760px) {
  .portaal .lijst > li.kf-rij { align-items: center; column-gap: 12px; row-gap: 8px; }
  .portaal .lijst > li.kf-rij > .grow { flex-basis: 100%; }
  .portaal .lijst > li.kf-rij > .col { align-items: flex-start !important; }
  .portaal .lijst > li.kf-rij > .status { order: 0; margin-left: auto; }
}
.kruimel { row-gap: 0; }
@media (max-width: 760px) {
  .kb-acties { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .kb-acties .btn-secundair { justify-content: center; }
  .kb-acties .btn-tekst { grid-column: 1 / -1; justify-content: flex-start; padding-inline: 0; }
}
@media (max-width: 420px) { .kb-acties { grid-template-columns: 1fr; } }
.tw-rij { display: grid; grid-template-columns: 32px 120px 150px 84px auto; align-items: center; column-gap: 8px; }
.tw-rij .btn { justify-self: start; }
@media (max-width: 1100px) { .tw-rij { grid-template-columns: 32px 1fr; row-gap: 2px; } .tw-rij > :nth-child(n+3) { grid-column: 2; } .tw-rij > span[aria-hidden] { display: none; } }
.kal-maand .ev span, .kal-cel .ev span { font-size: 13px; }
@media (min-width: 701px) { .kal-cel .ev { padding: 2px 6px; gap: 4px; } }
.pagkop > .col:first-child { flex: 1 1 320px; min-width: 0; }
.grid3.proj-kpi { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.vse-lib li.gekozen { background: var(--blue-50, #EAF7FD); box-shadow: inset 4px 0 0 var(--navy-900); }
.vse-lib li.gk-opties { box-shadow: inset 4px 0 0 var(--action); background: #FFF4E8; }
.vse-keus .seg-k { height: 32px; padding: 0 10px; }
.vse-keus .seg-k.aan { background: var(--navy-900); color: #fff; box-shadow: none; }
.vse-keus .seg-k.aan[data-s=""] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(8,48,76,.12); }
@media (max-width: 760px) { .vse-keus { width: 100%; } .vse-keus .seg-k { flex: 1; justify-content: center; min-height: 44px; } }
.vse-lib li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 16px; row-gap: 8px; }
.vse-keus .seg-k { white-space: nowrap; gap: 6px; }
@media (max-width: 760px) { .vse-lib li { grid-template-columns: minmax(0, 1fr) auto; } .vse-lib li > .vse-keus { grid-column: 1 / -1; } .vse-keus .seg-k { padding: 0 6px; } }
.wl-acties { flex-shrink: 0; } @media (max-width: 760px) { .lijst > li.klik:has(.wl-acties) { flex-wrap: wrap; } .wl-acties { width: 100%; padding-left: 48px; } }
.rv-nietnu { margin-left: auto; align-items: center; }
@media (max-width: 760px) { .rv-nietnu { margin-left: 0; width: 100%; } .lijst > li.klik:has(.wl-acties) > svg:last-child { display: none; } }
