/* ============================================================
   tjouly Publieke app - Spike  |  styles.css
   Merk: #1B6DBD (blauw), #0F1620 (ink)
   Twee weergaven in een speelveld: een telefoon (de publieke app)
   en een iPad (de managementapp). Zelfde designtaal als de
   studenten-, stagebeheer-, ouder- en kinderbegeleider-spike.
   ============================================================ */
:root {
  --tjouly: #1B6DBD;            /* merkkleur, zelfde naam als in de globals van dev.tjouly.app */
  --brand: var(--tjouly);
  --brand-600: #155A9E;
  --brand-soft: #E8F1FA;
  --ink: #0F1620;
  --ink-2: #2B3445;
  --muted: #6B7689;
  --faint: #97A1B2;
  --line: #ECEFF5;
  --line-2: #E3E8F0;
  --bg: #EEF1F7;
  --card: #FFFFFF;
  --card-2: #F7F9FC;
  --ok: #16A34A;
  --warn: #D97706;
  --bad: #E11D48;
  --warn-bg: #FEF7EC; --warn-line: #F3DCB8; --warn-ink: #93561A;
  --ok-bg: #E9F8EF; --ok-line: #BBE7CB; --ok-ink: #166534;
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 15px;
  --r-sm: 11px;
  --shadow-card: 0 1px 1px rgba(16,24,40,.03), 0 4px 10px rgba(16,24,40,.04), 0 16px 32px rgba(16,24,40,.05);
  --shadow-soft: 0 1px 2px rgba(16,24,40,.04), 0 2px 6px rgba(16,24,40,.035);
  --shadow-device: 0 8px 24px rgba(15,22,32,.12), 0 44px 88px rgba(15,22,32,.20);
  --ring: 0 0 0 3px var(--brand-soft);
  --ease: cubic-bezier(.22,.61,.36,1);
  /* telefoon */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --m-tabbar-h: 64px;
  --m-switch-h: 52px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1200px 600px at 15% -10%, #F4F1FF 0%, rgba(244,241,255,0) 55%),
    radial-gradient(1100px 700px at 110% 0%, #E6F0FF 0%, rgba(230,240,255,0) 50%),
    linear-gradient(180deg, #EEF1F7 0%, #E9EDF5 100%);
  background-attachment: fixed;
}
.ic { display: inline-flex; vertical-align: middle; flex-shrink: 0; }
/* kleine informatie-tekst leest beter zonder de globale negatieve tracking */
.p-sub, .ab-sub, .note, .field .hint, .docrow .dr-s, .loccard .lc-body small, .slot .sl-uur, .reqcard .rq-meta, .panel-cap, .kv .k { letter-spacing: 0; }
button { font-family: inherit; letter-spacing: inherit; }
/* de focusring volgt de eigen radius van het element (pill, kaart, input) i.p.v. een vaste 8px */
:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------- speelveld ---------- */
.scene {
  min-height: 100vh;
  display: flex; align-items: flex-start; justify-content: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(22px, 4vh, 48px) clamp(16px, 3vw, 30px) 60px;
}
.scene[data-mode="phone"] .ipad { display: none; }
.scene[data-mode="ipad"]  .phone { display: none; }

/* ---------- toelichting links ---------- */
.explain { width: 300px; flex-shrink: 0; padding-top: 14px; position: sticky; top: 44px; }
.ex-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.ex-logo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand);
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 19px;
  box-shadow: 0 6px 16px rgba(27,109,189,.35);
}
.ex-name { font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.ex-name span { color: var(--brand); }
.ex-slogan { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 22px; }
.explain h2 { font-size: 15px; margin: 0 0 8px; letter-spacing: -.01em; }
.explain p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
.ex-toggle { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 4px; margin-bottom: 18px; box-shadow: var(--shadow-soft); }
.ex-toggle button { flex: 1; border: none; background: none; padding: 8px 6px; border-radius: 9px; font-size: 12px; font-weight: 650; color: var(--muted); cursor: pointer; transition: .14s; }
.ex-toggle button.on { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(27,109,189,.3); }
.ex-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ex-list li { display: flex; gap: 11px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.ex-list li .n {
  width: 22px; height: 22px; border-radius: 7px; background: #fff; border: 1px solid var(--line-2);
  display: grid; place-items: center; flex-shrink: 0; color: var(--brand); font-weight: 700; font-size: 11px;
}
.ex-list li b { font-weight: 650; color: var(--ink); }
.ex-foot { font-size: 11px; color: var(--faint); line-height: 1.6; border-top: 1px solid var(--line-2); padding-top: 16px; }

/* ============================================================
   TELEFOON · publieke app
   ============================================================ */
.device.phone {
  width: min(412px, 100%); flex-shrink: 0;
  background: var(--bg);
  border-radius: 46px;
  box-shadow: var(--shadow-device);
  overflow: hidden; position: relative;
  border: 11px solid #0F1620;
  height: min(862px, calc(100vh - 64px));
  min-height: 600px;
  display: flex; flex-direction: column;
}
.device.phone::after {
  content: ''; position: absolute; inset: 0; border-radius: 35px; pointer-events: none; z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.device-bar {
  height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; background: var(--card);
  font-size: 13px; font-weight: 650; color: var(--ink);
}
.db-time { letter-spacing: .01em; }
.db-dots { display: inline-flex; gap: 4px; }
.db-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: .85; }
.db-dots i:last-child { width: 16px; border-radius: 3px; }

.appbar {
  flex-shrink: 0; display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 12px; background: var(--card); border-bottom: 1px solid var(--line);
}
.appbar .ab-back {
  width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line-2);
  background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex-shrink: 0; transition: .12s;
}
.appbar .ab-back:hover { background: var(--card-2); border-color: var(--brand); color: var(--brand); }
.appbar .ab-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.appbar .ab-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.appbar .ab-brand { display: inline-flex; align-items: center; gap: 9px; padding: 2px; border: none; background: none; cursor: default; }
.appbar .ab-brand img { height: 22px; width: auto; display: block; }
.appbar .ab-spacer { margin-left: auto; }
.appbar .ab-loc { font-size: 11px; color: var(--faint); display: inline-flex; align-items: center; gap: 4px; }

.screen { flex: 1; overflow-y: auto; padding: 16px 16px 28px; }
.screen::-webkit-scrollbar { width: 0; }
.screen { scrollbar-width: none; }

/* ---------- home: hero + poorten ---------- */
.hero {
  background: linear-gradient(150deg, #134E86 0%, var(--brand) 60%, #3C8AD6 100%);
  color: #fff; border-radius: var(--r-xl); padding: 20px 18px 22px; position: relative; overflow: hidden;
  box-shadow: 0 10px 26px rgba(27,109,189,.30); margin-bottom: 18px;
}
.hero::after {
  content: ''; position: absolute; right: -18px; top: -18px; width: 120px; height: 120px;
  background: url('tjouly-mark.png') no-repeat center / contain; opacity: .14; transform: rotate(8deg);
}
.hero .h-org { font-size: 12px; font-weight: 600; opacity: .9; display: inline-flex; align-items: center; gap: 6px; }
.hero h1 { font-size: 22px; margin: 8px 0 6px; letter-spacing: -.02em; line-height: 1.15; }
.hero p { font-size: 12.5px; margin: 0; opacity: .92; line-height: 1.5; max-width: 88%; }

.cap { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin: 2px 2px 10px; }

.poorten { display: flex; flex-direction: column; gap: 11px; }
.poort {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft); padding: 15px 14px; cursor: pointer;
  font-family: inherit; transition: transform .12s var(--ease), box-shadow .15s, border-color .15s;
}
.poort:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--line-2); }
.poort:active { transform: translateY(0) scale(.99); }
.poort .p-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0; }
.poort .p-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.poort .p-title { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.poort .p-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.poort .p-chev { color: var(--faint); flex-shrink: 0; }
.poort:hover .p-chev { color: var(--brand); }

.home-foot { text-align: center; font-size: 11px; color: var(--faint); margin-top: 22px; line-height: 1.6; }
.home-foot b { color: var(--brand-600); font-weight: 700; }

/* ---------- flow-intro + secties ---------- */
.flow-intro {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft); padding: 14px; margin-bottom: 16px;
}
.flow-intro .fi-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.flow-intro p { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.flow-intro .fi-loc { font-size: 11px; color: var(--muted); margin-top: 5px; display: inline-flex; align-items: center; gap: 5px; }

.sect-cap { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin: 8px 2px 2px; }
.sect-cap .ln { flex: 1; height: 1px; background: var(--line); }
.sect-cap .ic { color: var(--brand); }

/* ---------- formulieren ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
/* geneste wrappers krijgen hetzelfde verticale ritme als .form, zodat een note nooit tegen het veld of de knop erboven/eronder plakt */
#in-systeem-wrap, #in-kind-wrap, #in-rooster-wrap, #in-ouder2-wrap, #in-maand-wrap, #in-actions { display: flex; flex-direction: column; gap: 14px; }
#in-rooster-wrap .checkrow { margin-top: 0; }
#in-actions .voorwaarden { margin-bottom: 0; }
#in-actions .btn { margin-top: 0; }
.field label { display: block; font-size: 12px; font-weight: 650; color: var(--ink-2); margin-bottom: 7px; letter-spacing: -.005em; }
.field label .req { color: var(--bad); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line-2); border-radius: 12px;
  background: #fff; font-size: 14px; outline: none; font-family: inherit; color: var(--ink);
  transition: border-color .14s var(--ease), box-shadow .14s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover:not(:focus), .field textarea:hover:not(:focus), .field select:hover:not(:focus) { border-color: #CBD5E8; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field textarea { resize: none; min-height: 78px; line-height: 1.5; }
.field .hint { font-size: 11px; color: var(--faint); margin-top: 5px; line-height: 1.4; }
.field input.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(225,29,72,.12); }
.field input.invalid:focus { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(225,29,72,.18); }
.field-err { font-size: 11px; color: var(--bad); font-weight: 650; margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.field-err .ic { flex-shrink: 0; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Geneste rondleiding-wrappers zijn flexkolommen met dezelfde gap als .form, zodat een sect-cap of veld
   nooit tegen het element erboven plakt (de .form-gap bereikt geneste siblings niet). */
#rl-deelnemers-wrap, #rl-zwanger-wrap, #rl-schema-wrap { display: flex; flex-direction: column; gap: 14px; }
#rl-welkom-wrap:empty { display: none; }
.adres-3 { display: grid; grid-template-columns: 1.8fr .7fr .7fr; gap: 10px; }
.sub-cap { font-size: 10.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; margin: 2px 2px 0; }
.kost-split { margin: 12px 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.kost-split .ks-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 13px; font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.kost-split .ks-row:last-child { border-bottom: none; }
.kost-split .ks-row.total { background: var(--brand-soft); color: var(--brand-600); font-weight: 700; }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg .opt {
  flex: 1; min-width: 64px; text-align: center; padding: 11px 10px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: #fff; font-size: 12.5px; font-weight: 650; cursor: pointer; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; -webkit-tap-highlight-color: transparent;
  transition: border-color .14s var(--ease), background .14s var(--ease), color .14s var(--ease), box-shadow .14s var(--ease), transform .12s var(--ease);
}
.seg .opt:hover { border-color: var(--brand); color: var(--brand-600); }
.seg .opt:active { transform: scale(.97); }
.seg .opt.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-600); }
.seg .opt .ic { color: currentColor; }

/* meerkeuze-chips (dagen, leeftijden) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1.5px solid var(--line-2);
  border-radius: 12px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: .12s;
}
.chip small { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.chip .ic { color: var(--faint); }
.chip:active { transform: scale(.97); }
.chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-600); }
.chip.on small { color: #fff; opacity: .9; }
.chip.on .ic { color: #fff; }
/* uitvouwknop: toon de overige chips */
.chip-meer { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: transparent; font: inherit; font-size: 12.5px; font-weight: 650; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .12s, color .12s, background .12s; }
.chip-meer:hover { border-color: var(--brand); color: var(--brand-600); background: var(--brand-soft); }
.chip-meer .ic { color: currentColor; }

/* titel-badges (mama/papa/voogd), aanklikbaar */
.titelbadges { display: flex; flex-wrap: wrap; gap: 10px; }
.titelbadge {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 12px;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff;
  font: inherit; font-size: 12.5px; font-weight: 650; color: var(--ink-2);
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: .14s var(--ease);
}
.titelbadge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-2); transition: .14s var(--ease); flex-shrink: 0;
}
.titelbadge:hover { border-color: var(--brand); color: var(--brand-600); }
.titelbadge:hover::before { background: var(--brand-soft); }
.titelbadge:active { transform: scale(.95); }
.titelbadge.on {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand-600);
}
.titelbadge.on::before { background: var(--brand); }
.titelbadges.badge-err { outline: 2px solid var(--bad); outline-offset: 4px; border-radius: 14px; }

/* locatie-keuzekaarten, aanklikbaar (zelfde taal als de badges) */
.loccards { display: flex; flex-direction: column; gap: 9px; }
.loccard {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: #fff;
  padding: 12px 13px; cursor: pointer; font: inherit;
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), transform .12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.loccard:hover { border-color: var(--brand); }
.loccard:active { transform: scale(.99); }
.loccard .lc-pin {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--card-2); color: var(--muted); flex-shrink: 0; transition: .15s var(--ease);
}
.loccard .lc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.loccard .lc-body b { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.loccard .lc-body small { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.loccard .lc-check {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2);
  display: grid; place-items: center; color: transparent; flex-shrink: 0; transition: .15s var(--ease);
}
.loccard.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 6px 16px rgba(27,109,189,.16); }
.loccard.on .lc-pin { background: var(--brand); color: #fff; box-shadow: 0 5px 12px rgba(27,109,189,.34); }
.loccard.on .lc-body b { color: var(--brand-600); }
.loccard.on .lc-check { background: var(--brand); border-color: var(--brand); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 16px; border-radius: var(--r-md); border: 1px solid transparent;
  font-size: 14px; font-weight: 700; cursor: pointer; width: 100%; font-family: inherit;
  transition: transform .1s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}
.btn:active { transform: scale(.99); }
.btn.primary { background: linear-gradient(180deg, #3C8AD6 0%, var(--brand) 100%); color: #fff; box-shadow: 0 1px 2px rgba(27,109,189,.45), 0 8px 18px rgba(27,109,189,.28); }
.btn.primary:hover { background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%); box-shadow: 0 1px 2px rgba(27,109,189,.5), 0 10px 22px rgba(27,109,189,.34); }
.btn.ghost { background: #fff; color: var(--ink-2); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn.sm { width: auto; padding: 9px 13px; font-size: 12.5px; border-radius: 10px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }

/* ---------- uploadzone + documentenchecklist ---------- */
.upzone {
  display: block; width: 100%; font-family: inherit; color: var(--ink);
  border: 1.5px dashed #C6D3EA; border-radius: var(--r-md); background: linear-gradient(180deg,#F8FAFF,#fff);
  padding: 20px 14px; text-align: center; cursor: pointer; transition: border-color .14s var(--ease), background .14s var(--ease);
}
.upzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.upzone .uz-ic {
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin: 0 auto 10px; transition: .14s var(--ease);
}
.upzone:hover .uz-ic { background: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27,109,189,.18); }
.upzone .uz-t { font-size: 13px; font-weight: 700; }
.upzone .uz-s { font-size: 11px; color: var(--muted); margin-top: 3px; }
/* toegevoegde profielfoto (sollicitatie) */
.foto-done { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 11px 13px; background: var(--card-2); }
.foto-av { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.foto-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.foto-b b { font-size: 13px; font-weight: 650; }
.foto-b small { font-size: 11px; color: var(--muted); margin-top: 1px; }
.foto-del { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); flex-shrink: 0; transition: .12s; }
.foto-del:hover { color: var(--bad); border-color: #F4C9D3; }

.docrow { display: flex; align-items: center; gap: 11px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 12px; box-shadow: var(--shadow-soft); }
.docrow + .docrow { margin-top: 8px; }
.docrow .dr-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: var(--card-2); color: var(--muted); }
.docrow.done .dr-ic { background: #E2F6F2; color: #0B7E6E; }
.docrow .dr-body { flex: 1; min-width: 0; }
.docrow .dr-t { font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.docrow .dr-s { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.docrow .dr-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--brand); flex-shrink: 0; transition: .12s; }
.docrow .dr-btn:hover { background: var(--brand-soft); border-color: var(--brand); }
.docrow.done .dr-btn { color: var(--ok); border-color: #BBE7DC; background: #fff; }
/* extra documenten toevoegen (telefoon) */
.docadd { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.docadd select, .docadd input { width: 100%; padding: 12px 13px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 13.5px; font-family: inherit; color: var(--ink); outline: none; transition: border-color .14s var(--ease), box-shadow .14s var(--ease); }
.docadd select:focus, .docadd input:focus, #st-doctype-new-wrap input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- rondleiding: slots ---------- */
.slot {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  padding: 12px 13px; cursor: pointer; font-family: inherit; transition: .12s;
}
.slot + .slot { margin-top: 9px; }
.slot:hover { border-color: var(--brand); }
.slot.on { border-color: var(--brand); background: var(--brand-soft); }
.slot .sl-cal { width: 46px; height: 50px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.slot.on .sl-cal { border-color: #B9D2FF; }
.slot .sl-cal .d { font-size: 18px; font-weight: 800; line-height: 1; color: var(--ink); }
.slot .sl-cal .m { font-size: 9.5px; font-weight: 700; text-transform: uppercase; color: var(--brand); margin-top: 2px; letter-spacing: .04em; }
.slot .sl-body { flex: 1; min-width: 0; }
.slot .sl-day { font-size: 13.5px; font-weight: 700; }
.slot .sl-uur { font-size: 11.5px; color: var(--muted); margin-top: 2px; display: inline-flex; align-items: center; gap: 5px; }
.slot .sl-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.slot.on .sl-check { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- info / notitie ---------- */
.note { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 13px; font-size: 12px; color: var(--muted); line-height: 1.55; display: flex; gap: 10px; }
.note .ic { color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.note.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.note.warn .ic { color: var(--warn); }
.note.ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.note.ok .ic { color: var(--ok); }
/* live feedback van het opvangplan */
.fbmsg { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.5; border-radius: 11px; padding: 10px 12px; margin-bottom: 8px; font-weight: 600; }
.fbmsg:last-child { margin-bottom: 0; }
.fbmsg .ic { flex-shrink: 0; margin-top: 1px; }
.fbmsg.error { background: #FCE7EC; color: #BE123C; }
.fbmsg.warn { background: #FEF3E2; color: #B45309; }
.fbmsg.ok { background: #E9F8EF; color: #166534; }
.voorwaarden { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-soft); border: 1px solid #C3DCF2; border-radius: var(--r-md); padding: 12px 13px; font-size: 12.5px; color: var(--brand-600); line-height: 1.5; margin-bottom: 10px; }
.voorwaarden .ic { color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.voorwaarden b { color: var(--ink); }
.empty { text-align: center; color: var(--faint); font-size: 12.5px; padding: 26px 10px; }

/* ---------- succes-scherm ---------- */
.success { text-align: center; padding: 26px 12px 12px; }
.success .su-badge { width: 76px; height: 76px; border-radius: 50%; background: #E9F8EF; color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 8px 22px rgba(22,163,74,.22); }
.success h2 { font-size: 19px; margin: 0 0 8px; letter-spacing: -.01em; }
.success p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 auto 14px; max-width: 280px; }
.success .su-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-soft); padding: 14px; text-align: left; margin: 16px 0; }
.su-card .sc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.su-card .sc-row:last-child { border-bottom: none; }
.su-card .sc-row .k { color: var(--muted); } .su-card .sc-row .v { font-weight: 650; color: var(--ink-2); text-align: right; }

/* ---------- sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15,22,32,.42); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; backdrop-filter: blur(2px); }
.sheet-backdrop.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 110%);
  width: 412px; max-width: calc(100vw - 24px);
  background: var(--card); border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 40px rgba(15,22,32,.22); z-index: 41;
  transition: transform .26s cubic-bezier(.22,.61,.36,1);
  max-height: 80vh; display: flex; flex-direction: column; padding-bottom: 18px;
}
.sheet.on { transform: translate(-50%, 0); }
.sheet-grip { width: 38px; height: 4px; border-radius: 3px; background: var(--line-2); margin: 11px auto 4px; flex-shrink: 0; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 8px 18px 12px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { margin: 0; font-size: 16px; }
.sheet-head .sh-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.sheet-head .sh-x { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: .12s; }
.sheet-head .sh-x:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.sheet-body { overflow-y: auto; padding: 14px 18px 6px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 24px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 13px;
  font-size: 13px; font-weight: 600; box-shadow: 0 12px 34px rgba(15,22,32,.34);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: 360px; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.fade-in { animation: fadeIn .22s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ---------- rondleiding: maandkalender ---------- */
.rl-cal { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-soft); padding: 13px 13px 14px; }
.rl-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rl-cal-head .m { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.rl-nav { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: .12s; }
.rl-nav:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.rl-nav:disabled { opacity: .35; cursor: default; }
.rl-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rl-dow { text-align: center; font-size: 10px; font-weight: 700; color: var(--faint); padding-bottom: 5px; }
.rl-cell { aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-2); border: 1px solid transparent; }
.rl-cell.empty { visibility: hidden; }
.rl-cell.muted { color: var(--faint); opacity: .45; }
.rl-cell.avail { cursor: pointer; background: var(--brand-soft); color: var(--brand-600); font-weight: 700; border-color: #C3DCF2; -webkit-tap-highlight-color: transparent; }
.rl-cell.avail:hover { border-color: var(--brand); }
.rl-cell.avail:active { transform: scale(.94); }
.rl-cell.avail .t { font-size: 11px; font-weight: 700; color: var(--brand); margin-top: 3px; line-height: 1; }
.rl-cell.on { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 14px rgba(27,109,189,.35); }
.rl-cell.mr { cursor: pointer; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13px; -webkit-tap-highlight-color: transparent; }
.rl-cell.mr:hover { border-color: var(--brand); }
.rl-cell.mr:active { transform: scale(.94); }
.rl-cell.mr.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.rl-cell.on .t { color: #fff; }
.rl-cal-empty { text-align: center; font-size: 12px; color: var(--muted); padding: 18px 8px; }
.rl-cal-foot { font-size: 10.5px; color: var(--muted); margin-top: 11px; display: flex; align-items: center; gap: 6px; }
.rl-cal-foot .sw { width: 13px; height: 13px; border-radius: 4px; background: var(--brand-soft); border: 1px solid #C3DCF2; }
.rl-pick { margin-top: 11px; display: flex; align-items: center; gap: 12px; background: var(--brand-soft); border: 1px solid #C3DCF2; border-radius: var(--r-md); padding: 12px 13px; }
.rl-pick .pk-ic { width: 34px; height: 34px; border-radius: 11px; background: #fff; color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.rl-pick b { font-size: 13.5px; color: var(--brand-600); } .rl-pick small { display: block; font-size: 11.5px; color: var(--brand-600); opacity: .85; margin-top: 1px; }

/* ---------- weekraster (gewenste dagen, tot op dagdeelniveau) ---------- */
.weekgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.wg-col { display: flex; flex-direction: column; gap: 6px; }
.wg-day { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.wg-pill { border: 1.5px solid var(--line-2); background: #fff; border-radius: 9px; padding: 9px 0; font: inherit; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer; transition: .12s; -webkit-tap-highlight-color: transparent; }
.wg-pill:hover { border-color: var(--brand); }
.wg-pill:active { transform: scale(.94); }
.wg-pill.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-600); }

/* ---------- automatisch berekend totaal (uit het weekraster) ---------- */
.rl-totaal { margin-top: 11px; display: flex; align-items: center; gap: 8px; background: var(--brand-soft); border: 1px solid #C3DCF2; border-radius: var(--r-sm); padding: 10px 12px; font-size: 12.5px; color: var(--brand-600); font-weight: 600; }
.rl-totaal b { font-weight: 800; }
.rl-totaal .ic { color: var(--brand); flex-shrink: 0; }
/* eerstvolgende rondleiding: duidelijk gemarkeerd in de kalender + een aantikbare suggestie */
.rl-cell.avail.next:not(.on) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft), 0 4px 10px rgba(27,109,189,.18); }
.rl-cal-foot .sw.next { background: #fff; border: 2px solid var(--brand); }
.rl-next { width: 100%; margin-top: 11px; display: flex; align-items: center; gap: 12px; background: var(--brand-soft); border: 1px solid var(--brand); border-radius: var(--r-md); padding: 12px 13px; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rl-next:active { transform: scale(.99); }
.rl-next .rln-ic { width: 36px; height: 36px; border-radius: 11px; background: #fff; color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.rl-next .rln-b { flex: 1; min-width: 0; }
.rl-next .rln-k { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.rl-next .rln-b b { font-size: 13.5px; color: var(--brand-600); }
.rl-next .rln-b small { display: block; font-size: 11.5px; color: var(--brand-600); opacity: .85; }
.rl-next .rln-cta { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; color: var(--brand); flex-shrink: 0; }
/* subtiele herkenning van een terugkerende bezoeker */
.rl-welkom { display: flex; gap: 11px; align-items: flex-start; background: #ECFBF6; border: 1px solid #BFEBDF; border-radius: var(--r-md); padding: 12px 14px; margin-top: 2px; }
.rl-welkom .rlw-ic { width: 32px; height: 32px; border-radius: 10px; background: #fff; color: #0E9F8A; display: grid; place-items: center; flex-shrink: 0; }
.rl-welkom .rlw-body b { display: block; font-size: 13px; color: #0B7A6A; margin-bottom: 2px; }
.rl-welkom .rlw-body span { font-size: 12px; color: #2C6B60; line-height: 1.5; }
/* minder prominente annuleerlink in de mail */
.mail-fine { font-size: 11.5px; color: var(--muted); }
.mail-annuleer { text-align: center; }
.link-subtle { background: none; border: none; padding: 7px 4px; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.link-subtle:hover { color: var(--ink-2); }

/* ---------- stepper (dagen per week, flexibel) ---------- */
.stepper { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 10px 18px; }
.stepper .st-btn { background: none; border: none; cursor: pointer; color: var(--brand); display: grid; place-items: center; padding: 0; }
.stepper .st-btn:hover { color: var(--brand-600); }
.stepper .st-btn:active { transform: scale(.9); }
.stepper .st-val { flex: 1; text-align: center; }
.stepper .st-val b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.stepper .st-val small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ---------- aanvink-rij (weet nog niet, ...) ---------- */
.checkrow { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: .12s; margin-top: 8px; }
.checkrow:hover { border-color: var(--brand); }
.checkrow .ck { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: #fff; flex-shrink: 0; transition: .12s; }
.checkrow.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-600); }
.checkrow.on .ck { background: var(--brand); border-color: var(--brand); }
.field input:disabled { background: var(--card-2); color: var(--faint); cursor: not-allowed; }

/* ---------- tjouly-voetnoot: variant A "glas donker", exact zoals de allerlaatste ouderapp-voetnoot (tjouly.app) ----------
   De zone staat onderaan elk scherm (margin-top:auto in de flexkolom .fade-in, met .screen-main erboven), nooit sticky;
   de breedteregels meten de zone via @container. Zelfde klassen, tokens en maten als de ouderapp-productie-CSS. */
:root { --tf-soc: 36px; --tf-tik: 44px; }
.screen > .fade-in { display: flex; flex-direction: column; min-height: 100%; }
.screen-main { flex: 1 0 auto; }
:where(.tf) p { margin: 0; }
.tf-soc-rij { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tf-soc { width: var(--tf-tik); height: var(--tf-tik); display: grid; place-items: center; border-radius: 50%; text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tf-soc-i { width: var(--tf-soc); height: var(--tf-soc); border-radius: 50%; display: grid; place-items: center; background: var(--tf-soc-bg); border: 1px solid var(--tf-soc-bd); color: var(--tf-soc-ink); transition: background .14s var(--ease), border-color .14s var(--ease), color .14s var(--ease), transform .14s var(--ease); }
.tf-soc-i svg { width: 18px; height: 18px; display: block; }
.tf-soc:hover .tf-soc-i { background: var(--tf-soc-bg-h); border-color: var(--tf-soc-bg-h); color: var(--tf-soc-ink-h); transform: translateY(-1px); }
.tf a:focus-visible { outline: 2px solid var(--tf-focus); outline-offset: 2px; border-radius: 10px; box-shadow: none; }
.tf .tf-soc:focus-visible { border-radius: 50%; }
.tf-link { display: inline-flex; align-items: center; min-height: 32px; padding: 0 2px; color: var(--tf-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; touch-action: manipulation; }
.tf-link:hover { color: var(--tf-link-h); }
.tf-nw { white-space: nowrap; }
.tf-a-links > span::after { content: "\00B7"; margin: 0 8px; }
@media (prefers-reduced-motion: reduce) { .tf-soc-i { transition: none; } .tf-soc:hover .tf-soc-i { transform: none; } }
.tf-a-zone {
  --tf-a-glas: rgba(12,20,34,.80);
  --tf-a-glas-vast: #1F2939;
  --tf-a-rand: rgba(255,255,255,.16);
  --tf-a-glans: rgba(255,255,255,.18);
  --tf-a-schaduw: rgba(15,22,32,.30);
  --tf-a-ink: #F3F6FA;
  --tf-a-mut: #C3CCD8;
  --tf-a-lijn: rgba(255,255,255,.12);
  --tf-a-vorm-1: rgba(34,108,255,.70);   /* mascotteblauw, bewust geen merkblauw: decorvorm zoals in de voettekst-spike en de live ouderapp */
  --tf-a-vorm-2: rgba(14,159,138,.55);
  --tf-a-vorm-3: rgba(86,170,255,.60);
  --tf-soc-bg: rgba(255,255,255,.10);
  --tf-soc-bd: rgba(255,255,255,.18);
  --tf-soc-ink: #EEF2F7;
  --tf-soc-bg-h: rgba(255,255,255,.92);
  --tf-soc-ink-h: #0F1620;
  --tf-link: #F3F6FA;
  --tf-link-h: #A9CFF7;
  --tf-focus: #A9CFF7;
  position: relative; margin-top: auto; flex-shrink: 0;
  container-type: inline-size;
}
.tf-a-vormen {
  position: absolute; left: 0; right: 0; top: -24px; bottom: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 62% at 14% 76%, var(--tf-a-vorm-1), transparent 70%),
    radial-gradient(36% 58% at 86% 56%, var(--tf-a-vorm-2), transparent 70%),
    radial-gradient(32% 46% at 52% 100%, var(--tf-a-vorm-3), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 42%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 42%);
}
.tf-a { padding: 36px 0 calc(8px + var(--safe-b)); color: var(--tf-a-ink); }
.tf-a > .tf-in {
  position: relative;
  background: var(--tf-a-glas);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid var(--tf-a-rand);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 var(--tf-a-glans), 0 14px 32px -16px var(--tf-a-schaduw);
  padding: 20px 22px 16px;
}
.tf-a > .tf-in::before { content: ""; position: absolute; left: 14%; right: 14%; top: -1px; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .tf-a > .tf-in { background: var(--tf-a-glas-vast); } }
.tf-a-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; }
.tf-a-merk { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; min-height: var(--tf-tik); text-decoration: none; }
.tf-a-by { font-size: 12px; line-height: 1.2; font-weight: 600; letter-spacing: .01em; color: var(--tf-a-mut); }
.tf-a-logo { display: block; height: 26px; width: auto; transition: transform .14s var(--ease); }
.tf-a-merk:hover .tf-a-logo { transform: translateY(-1px); }
.tf-a .tf-soc-rij { gap: 2px; margin-right: -6px; flex-wrap: nowrap; flex-shrink: 0; }
.tf-a .tf-soc-i { width: 32px; height: 32px; border-radius: 10px; }
.tf-a .tf-soc-i svg { width: 16px; height: 16px; }
.tf-a .tf-soc:focus-visible { border-radius: 14px; }
.tf-a-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--tf-a-lijn); }
.tf-a-slogan { font-size: 12.5px; line-height: 1.4; font-style: italic; color: var(--tf-a-mut); }
.tf-a-links { display: flex; align-items: center; font-size: 12.5px; color: var(--tf-a-mut); }
@container (max-width: 767px) {
  .tf-link { min-height: var(--tf-tik); padding: 0 4px; }
  .tf-a { padding-top: 28px; }
  .tf-a > .tf-in { padding: 16px 16px 12px; border-radius: 20px; }
  .tf-a-meta { flex-direction: column; align-items: flex-start; gap: 0; margin-top: 10px; padding-top: 8px; }
  .tf-a-slogan { font-size: 13px; padding-top: 4px; }
  .tf-a-links { font-size: 13px; }
}
@container (max-width: 379px) {
  .tf-a-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tf-a .tf-soc-rij { margin: 0 0 0 -6px; }
}
.tj-soc { width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; color: var(--muted); transition: .14s; text-decoration: none; }
.tj-soc:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }

/* ---------- bevestigingsmail (voorbeeld, tjouly-thema) ---------- */
.mailprev { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); background: #fff; }
.mailprev-band { background: linear-gradient(150deg, #134E86 0%, var(--brand) 62%, #3C8AD6 100%); color: #fff; padding: 20px 18px; position: relative; overflow: hidden; }
.mailprev-band::after { content: ''; position: absolute; right: -14px; top: -16px; width: 100px; height: 100px; background: url('tjouly-mark.png') no-repeat center / contain; opacity: .16; }
.mailprev-band .mb-logo { height: 21px; margin-bottom: 12px; filter: brightness(0) invert(1); position: relative; z-index: 1; }
.mailprev-band h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; position: relative; z-index: 1; }
.mailprev-band .mb-sub { font-size: 12px; opacity: .92; margin-top: 3px; position: relative; z-index: 1; }
.mailprev-body { padding: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.mailprev-body p { margin: 0 0 12px; }
.mail-detail { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 4px 0 14px; }
.mail-detail .md-row { display: flex; gap: 10px; padding: 5px 0; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.mail-detail .md-row:last-child { border-bottom: none; }
.mail-detail .md-row .k { width: 92px; color: var(--muted); flex-shrink: 0; }
.mail-detail .md-row .v { font-weight: 650; color: var(--ink-2); }
.mailprev-foot { border-top: 1px solid var(--line); padding: 15px 18px 17px; text-align: center; background: var(--card-2); }
.mailprev-foot .mf-logo { height: 22px; margin-bottom: 9px; }
.mailprev-foot .mf-org { font-size: 11px; color: var(--muted); line-height: 1.5; }
.mailprev-foot .mf-socials { display: inline-flex; gap: 8px; margin-top: 11px; }
.mailprev-foot .tj-soc { width: 30px; height: 30px; border-radius: 9px; }
.mail-quote { background: var(--card-2); border-left: 3px solid var(--line-2); border-radius: 0 10px 10px 0; padding: 9px 13px; margin: 2px 0 12px; font-size: 12.5px; color: var(--muted); font-style: italic; }
.mail-answer { background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; padding: 9px 13px; margin: 0 0 14px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.mq-cap { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 4px; font-style: normal; }

/* tjouly-suggestie (slim antwoordvoorstel op basis van de planning) */
.ai-suggest { background: linear-gradient(180deg, #F4F1FF, #F8F9FF); border: 1px solid #E1DAFF; border-radius: 14px; padding: 13px 14px; margin-bottom: 14px; }
.ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #6D28D9; }
.ai-badge .ic { color: #7C3AED; }
.ai-sub { font-size: 11px; color: var(--muted); }
.ai-body { font-size: 13px; color: var(--ink-2); line-height: 1.55; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.ai-acties { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* antwoord op een vraag (in het detail) */
.antwoord-blok { margin-top: 12px; background: #E9F8EF; border: 1px solid #BBE7CB; border-radius: 10px; padding: 11px 13px; font-size: 12.5px; color: #166534; }
.antwoord-blok .ic { color: var(--ok); }
.antwoord-blok b { font-weight: 700; }
.antwoord-tekst { color: var(--ink-2); margin-top: 6px; line-height: 1.5; font-weight: 500; }

/* ============================================================
   iPad · managementapp
   ============================================================ */
.device.ipad {
  position: relative; flex-shrink: 0;
  width: min(1024px, calc(100vw - 380px)); min-width: 640px;
  height: min(calc((100vw - 380px) * 0.75), calc(100vh - 56px));
  background: #0F1620; border-radius: 30px; padding: 13px 16px;
  box-shadow: var(--shadow-device);
  display: flex;
}
.device.ipad .ipad-cam { position: absolute; top: 50%; left: 7px; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: #2A3344; }
.ipad-screen { flex: 1; min-height: 0; background: var(--bg); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }

/* iPad toolbar */
.ip-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.ip-brand { flex-shrink: 0; }
.ip-brand { display: flex; align-items: center; gap: 9px; }
.ip-brand .lg { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 5px 14px rgba(27,109,189,.32); }
.ip-brand .nm { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.ip-brand .nm span { color: var(--brand); }
.ip-brand .md { font-size: 10px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.ip-bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.ip-bar-right::-webkit-scrollbar { height: 0; }
.ip-bar-right .mini-btn { flex-shrink: 0; }
.ip-bar-right .ip-today { flex-shrink: 0; }
.ip-today { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ip-today b { color: var(--ink-2); font-weight: 650; }

/* filterbalk */
.ip-filters { display: flex; gap: 7px; padding: 11px 16px; background: var(--card); border-bottom: 1px solid var(--line); flex-shrink: 0; overflow-x: auto; }
.ip-filters::-webkit-scrollbar { height: 0; }
.fchip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 20px; border: 1px solid var(--line-2); background: #fff; font-size: 12.5px; font-weight: 650; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: .12s; }
.fchip:hover { border-color: var(--brand); color: var(--brand); }
.fchip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fchip .fc-n { background: rgba(15,22,32,.08); color: var(--ink-2); font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 10px; min-width: 18px; text-align: center; }
.fchip.on .fc-n { background: rgba(255,255,255,.22); color: #fff; }
.fchip .dotc { width: 8px; height: 8px; border-radius: 50%; }

/* twee panes */
.ip-panes { flex: 1; display: grid; grid-template-columns: 340px 1fr; min-height: 0; }
.ip-list { border-right: 1px solid var(--line); overflow-y: auto; padding: 12px; background: #F2F5FA; }
.ip-list::-webkit-scrollbar { width: 7px; } .ip-list::-webkit-scrollbar-thumb { background: #D5DCE8; border-radius: 6px; }
.ip-detail { overflow-y: auto; padding: 20px 22px 30px; background: var(--bg); }
.ip-detail::-webkit-scrollbar { width: 8px; } .ip-detail::-webkit-scrollbar-thumb { background: #D5DCE8; border-radius: 6px; }

/* request kaart in lijst */
.reqcard {
  display: flex; gap: 11px; align-items: flex-start; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: var(--r-md); padding: 12px; cursor: pointer; font-family: inherit; transition: .12s; box-shadow: var(--shadow-soft);
}
.reqcard + .reqcard { margin-top: 9px; }
.reqcard:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.reqcard.sel { border-color: var(--brand); border-left-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), var(--shadow-card); }
.reqcard .ava { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.reqcard .rq-body { flex: 1; min-width: 0; }
.reqcard .rq-naam { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.reqcard .rq-meta { font-size: 11px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.reqcard .rq-foot { display: flex; align-items: center; gap: 7px; margin-top: 8px; flex-wrap: wrap; }
.reqcard .rq-when { margin-left: auto; font-size: 10.5px; color: var(--faint); white-space: nowrap; }

.typetag { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.statetag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.statetag.nieuw { background: var(--brand-soft); color: var(--brand-600); }
.statetag.gepland { background: #FBEEDB; color: #B45309; }
.statetag.behandeld { background: #E2F6F2; color: #0B7E6E; }
.statetag.geweigerd { background: #FCE7EC; color: #BE123C; }
.statetag.bezocht { background: #E2F6F2; color: #0B7E6E; }
.statetag.bezoek { background: var(--brand-soft); color: #155A9E; }
.statetag.geannuleerd { background: #FCE7EC; color: #BE123C; }
.statetag.ingeschreven { background: #E2F6F2; color: #0B7E6E; }
.annul-note { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; color: var(--bad); }
.annul-note.org { color: #B45309; }
.annul-note .ic { flex-shrink: 0; }
.vz-slots { display: flex; flex-wrap: wrap; gap: 7px; }
.vz-slot { padding: 8px 11px; border: 1.5px solid var(--line-2); border-radius: 9px; background: #fff; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: .12s; }
.vz-slot:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.list-cap { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 4px 4px 10px; display: flex; align-items: center; gap: 7px; }
.list-cap .n { background: #E1E7F1; color: var(--ink-2); border-radius: 10px; padding: 0 7px; font-size: 11px; }

/* detail pane */
.det-head { display: flex; align-items: flex-start; gap: 15px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 18px; position: relative; overflow: hidden; }
.det-head::after { content: ''; position: absolute; top: -14px; bottom: -14px; right: 14px; width: 60px; background: url('tjouly-mark.png') no-repeat right center / contain; opacity: .08; }
.det-head > * { position: relative; z-index: 1; }
.det-head .ava { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 20px; flex-shrink: 0; }
.det-head h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.det-head .dh-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.det-head .dh-sub a { color: var(--brand-600); text-decoration: none; }
.det-head .dh-contact { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mini-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); cursor: pointer; transition: .12s; }
.mini-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.det-acties { display: flex; gap: 9px; margin: 16px 0 0; flex-wrap: wrap; }
.det-acties .btn { width: auto; }
.det-acties .btn.bad { background: #fff; color: var(--bad); border-color: #F4C9D3; box-shadow: none; }
.det-acties .btn.bad:hover { background: #FCE7EC; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); padding: 16px 18px; margin-top: 14px; }
.panel-cap { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.panel-cap .ic { color: var(--brand); }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; }
.kv .k { font-size: 11px; color: var(--muted); font-weight: 600; }
.kv .v { font-size: 13.5px; font-weight: 650; color: var(--ink-2); margin-top: 2px; }
.kv .wide { grid-column: 1 / -1; }
.quote { background: var(--card-2); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; padding: 11px 13px; font-size: 13px; color: var(--ink-2); line-height: 1.55; font-style: italic; }

/* ---------- bezoeklog (rondleidingen van deze persoon) ---------- */
.log-head { font-size: 12.5px; color: var(--ink-2); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.log-head .ic { color: var(--brand); flex-shrink: 0; }
.log-head b { font-weight: 800; color: var(--ink); }
.log-empty { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.log-empty .ic { color: var(--faint); }
.loglist { position: relative; }
.log-row { display: flex; gap: 11px; padding: 7px 0; position: relative; }
.log-row:not(:last-child)::before { content: ''; position: absolute; left: 6px; top: 22px; bottom: -7px; width: 2px; background: var(--line-2); }
.log-dot { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; background: #fff; box-shadow: 0 0 0 1.5px var(--line-2); z-index: 1; }
.log-dot.done { background: var(--ok); box-shadow: 0 0 0 1.5px var(--ok); }
.log-dot.plan { background: var(--warn); box-shadow: 0 0 0 1.5px var(--warn); }
.log-dot.now { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.log-body { flex: 1; min-width: 0; }
.log-t { font-size: 13px; font-weight: 650; color: var(--ink); }
.log-row.nu .log-t { color: var(--brand-600); }
.log-s { font-size: 11.5px; color: var(--muted); margin-top: 1px; display: flex; align-items: center; gap: 5px; }
.log-s .ic { color: var(--faint); }

.det-docs { display: flex; flex-direction: column; gap: 8px; }
.det-doc { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card-2); }
.det-doc .dd-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #E2F6F2; color: #0B7E6E; flex-shrink: 0; }
.det-doc .dd-t { font-size: 13px; font-weight: 650; flex: 1; }
.det-doc .dd-a { color: var(--brand); cursor: pointer; }
.docs-extra-cap { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin: 16px 0 9px; }
.docs-extra-cap .ic { color: var(--brand); }
.docs-extra-cap .dg-tot { background: var(--brand-soft); color: var(--brand-600); border-radius: 10px; padding: 0 7px; font-size: 11px; }
.docgroup { margin-bottom: 10px; }
.docgroup-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.docgroup-head .dg-n { background: #E1E7F1; color: var(--ink-2); border-radius: 10px; padding: 0 7px; font-size: 11px; font-weight: 700; }

.det-empty { display: grid; place-items: center; height: 100%; text-align: center; color: var(--faint); }
.det-empty .de-ic { width: 64px; height: 64px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--faint); margin: 0 auto 14px; box-shadow: var(--shadow-soft); }
.det-empty h3 { font-size: 15px; color: var(--ink-2); margin: 0 0 5px; }
.det-empty p { font-size: 12.5px; max-width: 240px; margin: 0 auto; line-height: 1.5; }

/* ---------- modal (rondleiding-schema instellen) ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,22,32,.46); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; backdrop-filter: blur(2px); display: grid; place-items: center; padding: 24px; }
.modal-backdrop.on { opacity: 1; pointer-events: auto; }
.modal { width: min(560px, 100%); max-height: 86vh; overflow-y: auto; background: var(--card); border-radius: var(--r-xl); box-shadow: 0 30px 80px rgba(15,22,32,.4); transform: scale(.96); transition: transform .2s var(--ease); }
.modal-backdrop.on .modal { transform: scale(1); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.modal-head .mh-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; background: var(--brand-soft); color: var(--brand); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-head .mh-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.modal-head .mh-x { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: .12s; }
.modal-head .mh-x:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.modal-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; }
.modal-foot .btn { width: auto; }
.loc-tabs { display: flex; gap: 7px; }
.loc-tab { flex: 1; padding: 10px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff; font-size: 12.5px; font-weight: 650; cursor: pointer; color: var(--ink-2); transition: .12s; }
.loc-tab.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-600); }
/* inschrijfbeleid toggles */
.beleid-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.beleid-row > div:first-child { flex: 1; }
.beleid-row .bl-t { font-size: 13.5px; font-weight: 650; }
.beleid-row .bl-s { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.toggle { width: 46px; height: 27px; border-radius: 20px; border: none; background: var(--line-2); position: relative; cursor: pointer; transition: .15s; flex-shrink: 0; }
.toggle .kn { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .15s; }
.toggle.on { background: var(--brand); }
.toggle.on .kn { left: 22px; }
.schema-preview { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 13px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; display: flex; gap: 10px; }
.schema-preview .ic { color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.losrow { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 8px; align-items: center; }
.losrow + .losrow { margin-top: 8px; }
.losrow input { width: 100%; padding: 9px 10px; border: 1.5px solid var(--line-2); border-radius: 12px; font-family: inherit; font-size: 12.5px; outline: none; transition: border-color .14s var(--ease), box-shadow .14s var(--ease); }
.losrow input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.losrow .del { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.losrow .del:hover { color: var(--bad); border-color: #F4C9D3; }
.patroonrow { display: grid; grid-template-columns: 1.1fr 1.1fr .85fr .85fr auto; gap: 7px; align-items: center; }
.patroonrow + .patroonrow { margin-top: 8px; }
.patroonrow select, .patroonrow input { width: 100%; padding: 9px 8px; border: 1.5px solid var(--line-2); border-radius: 12px; font-family: inherit; font-size: 12px; outline: none; background: #fff; }
.patroonrow select:focus, .patroonrow input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.patroonrow .del { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.patroonrow .del:hover { color: var(--bad); border-color: #F4C9D3; }
.patroonrow.head { margin-bottom: 5px; }
.patroonrow.head span { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); padding-left: 3px; }

/* ---------- jaaroverzicht (grafiek rondleidingen) ---------- */
.modal.wide { width: min(780px, 100%); }
.chart-legend { display: flex; gap: 18px; justify-content: center; margin: 2px 0 16px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .sw { width: 12px; height: 12px; border-radius: 3px; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 168px; padding: 6px 2px 0; border-bottom: 2px solid var(--line-2); }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; background: none; border: none; cursor: pointer; padding: 4px 2px 0; border-radius: 8px 8px 0 0; transition: .12s; font-family: inherit; }
.chart-col:hover { background: var(--card-2); }
.chart-col.on { background: var(--brand-soft); }
.chart-col.empty { opacity: .5; }
.chart-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 138px; width: 100%; }
.chart-bw { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 3px; }
.bar-val { font-size: 9.5px; font-weight: 800; min-height: 12px; line-height: 1; }
.bar-val.aanw { color: var(--brand-600); }
.bar-val.kind { color: #0B7E6E; }
.bar-val.insch { color: #6D28D9; }
.chart-bar { width: 12px; border-radius: 5px 5px 0 0; transition: height .25s var(--ease); }
.chart-bar.aanw { background: linear-gradient(180deg, #3C8AD6, #1B6DBD); }
.chart-bar.kind { background: linear-gradient(180deg, #22C3A6, #0E9F8A); }
.chart-bar.insch { background: linear-gradient(180deg, #8B5CF6, #7C3AED); }
.ov-count { background: #EDE9FE; color: #6D28D9; border-radius: 10px; padding: 0 8px; font-size: 11px; font-weight: 800; margin-left: 2px; }
.ov-chip.insch { background: #EDE9FE; color: #6D28D9; }

/* dashboard: funnel aanvragen -> inschrijvingen + slaagpercentage */
.ov-dash { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin-bottom: 16px; }
.ov-funnel { flex: 1 1 320px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.ov-stat { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ov-stat-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.ov-stat-ic.rond { background: var(--brand-soft); color: var(--brand); }
.ov-stat-ic.aanv { background: #FEF3E2; color: #B45309; }
.ov-stat-ic.insch { background: #EDE9FE; color: #6D28D9; }
.ov-stat-b { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.ov-stat-b b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.ov-stat-b span { font-size: 10.5px; color: var(--muted); margin-top: 2px; letter-spacing: 0; }
.ov-fl-arrow { color: var(--faint); flex-shrink: 0; }
.ov-slaag { display: flex; align-items: center; gap: 13px; flex: 1 1 300px; background: linear-gradient(180deg, #F8F6FF, #fff); border: 1px solid #E1DAFF; border-radius: var(--r-md); padding: 13px 16px; }
.ov-ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.ov-ring-in { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.ov-ring-in small { font-size: 11px; font-weight: 700; margin-left: 1px; }
.ov-slaag-b { min-width: 0; }
.ov-slaag-b b { font-size: 14px; font-weight: 700; display: block; color: var(--ink); }
.ov-slaag-b span { font-size: 11.5px; color: var(--muted); line-height: 1.45; display: block; margin-top: 3px; letter-spacing: 0; }
.chart-mlabel { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.chart-col.on .chart-mlabel { color: var(--brand-600); }
.ov-date { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.ov-date-head { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; flex-wrap: wrap; }
.ov-date-head .ic { color: var(--brand); }
.ov-chips { margin-left: auto; display: flex; gap: 7px; flex-wrap: wrap; }
.ov-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.ov-chip.aanw { background: var(--brand-soft); color: #155A9E; }
.ov-chip.kind { background: #E1F6F2; color: #0B7E6E; }
.ov-chip.n { background: #EEF1F7; color: var(--muted); }
.ov-items { margin-top: 8px; }
.ov-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.ov-item .ava { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px; flex-shrink: 0; }
.ov-item-b { display: flex; flex-direction: column; line-height: 1.35; }
.ov-item-b b { font-size: 12.5px; font-weight: 650; }
.ov-item-b span { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }

/* ============================================================
   OPVANGOVEREENKOMST · contractscherm (telefoon) + document + reglement
   ============================================================ */
/* volledig contractscherm als overlay over het formulier (zo blijven de ingevulde velden bewaard) */
.contract-ov { position: absolute; left: 0; right: 0; top: 40px; bottom: 0; z-index: 8; background: var(--bg); overflow-y: auto; border-radius: 0 0 35px 35px; scrollbar-width: none; }
.contract-ov::-webkit-scrollbar { width: 0; }
.cov-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 11px 16px 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cov-bar .ab-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.cov-bar .ab-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.cov-body { padding: 16px 16px 30px; }

/* reglement-kaart (opent het reglement vooraleer je bevestigt) */
.reg-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 14px;
  background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-md); padding: 13px 14px; cursor: pointer; font: inherit;
  transition: border-color .14s var(--ease), box-shadow .14s var(--ease), transform .12s var(--ease); -webkit-tap-highlight-color: transparent; }
.reg-card:hover { border-color: var(--brand); }
.reg-card:active { transform: scale(.99); }
.reg-card .reg-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.reg-card .reg-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.reg-card .reg-tx b { font-size: 13.5px; font-weight: 700; }
.reg-card .reg-tx small { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.reg-card .reg-chev { color: var(--faint); flex-shrink: 0; }
.reg-card.gelezen { border-color: #BBE7CB; background: #F2FBF6; }
.reg-card.gelezen .reg-ic { background: #E2F6F2; color: #0B7E6E; }

/* huishoudelijk reglement (in het sheet) */
.reglement { display: flex; flex-direction: column; gap: 12px; }
.reg-art p { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.reg-art-h { display: flex; align-items: center; gap: 9px; }
.reg-art-h b { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.reg-nr { width: 22px; height: 22px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-600); display: grid; place-items: center; font-size: 11.5px; font-weight: 800; flex-shrink: 0; }

/* het contractdocument zelf (op het scherm: telefoon-overlay, sheet en iPad-modal) */
.cdoc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-soft); padding: 20px 18px; }
.cdoc-head { border-bottom: 2px solid var(--brand); padding-bottom: 13px; margin-bottom: 16px; }
.cdoc-kop { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cdoc-org { font-size: 11.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--brand-600); }
.cdoc-loc { font-size: 11px; color: var(--muted); }
.cdoc h1 { font-size: 21px; margin: 9px 0 3px; letter-spacing: -.02em; }
.cdoc-ref { font-size: 11.5px; color: var(--muted); }
.cdoc-art { margin: 14px 0; }
.cdoc-art h3 { font-size: 13px; margin: 0 0 6px; letter-spacing: -.01em; color: var(--ink); }
.cdoc-art h3 .art-nr { color: var(--brand-600); }
.cdoc-sign { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.cdoc-art p { font-size: 12.5px; line-height: 1.6; margin: 0; color: var(--ink-2); }
.cdoc-parties { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cdoc-party { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 11px 13px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.cdoc-party > span { display: block; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 5px; }
.cdoc-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 12px; }
.cdoc-sig { border-top: 1.5px solid var(--ink); padding-top: 7px; }
.cdoc-sig > span { display: block; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 6px; }
.cdoc-sig b { font-size: 15px; font-family: 'Segoe Script', 'Snell Roundhand', 'Bradley Hand', cursive; font-weight: 600; color: var(--ink); }
.cdoc-sig small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.cdoc-signed { display: flex; gap: 9px; align-items: flex-start; margin-top: 4px; background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-ink); border-radius: 10px; padding: 10px 12px; font-size: 11.5px; line-height: 1.5; }
.cdoc-signed .ic { flex-shrink: 0; margin-top: 1px; }
.cdoc-draft { display: flex; gap: 9px; align-items: flex-start; margin-top: 4px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); border-radius: 10px; padding: 10px 12px; font-size: 11.5px; line-height: 1.5; }
.cdoc-draft .ic { flex-shrink: 0; margin-top: 1px; }
.cdoc-bijlage { margin-top: 22px; padding-top: 18px; border-top: 1px dashed #C6D3EA; }
.cdoc-bijlage h2 { font-size: 16px; margin: 0 0 3px; }
.cdoc-regmeta { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.cdoc-regart { margin-bottom: 10px; }
.cdoc-regart b { font-size: 12px; }
.cdoc-regart p { font-size: 11.5px; line-height: 1.5; margin: 2px 0 0; color: var(--ink-2); }
.cdoc-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; font-size: 10.5px; color: var(--faint); }
/* iPad-modal toont het document op een rustige achtergrond */
.cdoc-wrap { background: var(--bg); border-radius: 14px; padding: 14px; }
.cdoc-wrap .cdoc { max-width: 640px; margin: 0 auto; padding: 30px 34px; }
.cdoc-wrap .cdoc-parties { grid-template-columns: 1fr 1fr; }
/* rol-badge (mama/papa/voogd) achter de oudernaam in het contract */
.cdoc-rol { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--brand-600); background: var(--brand-soft); border-radius: 6px; padding: 1px 7px; vertical-align: middle; }

/* geupload reglement-document (instellingen + reglement-sheet) */
.reg-doc { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 13px; background: var(--card-2); }
.reg-doc > .ic, .reg-doc .reg-doc-ic { color: var(--brand); flex-shrink: 0; display: inline-flex; }
.reg-doc .reg-doc-ic.done { color: #0B7E6E; }
.reg-doc-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.reg-doc-b b { font-size: 13px; font-weight: 650; }
.reg-doc-b small { font-size: 11px; color: var(--muted); margin-top: 1px; }
.reg-doc-a { color: var(--brand); cursor: pointer; flex-shrink: 0; display: inline-flex; }

/* instellingen: artikels van de overeenkomst */
.set-cap { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin: 0; }
.set-cap .ic { color: var(--brand); }
.ca-list { display: flex; flex-direction: column; gap: 10px; }
.ca-row { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 11px 12px; background: var(--card-2); }
.ca-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.ca-nr { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--brand-600); background: var(--brand-soft); border-radius: 6px; padding: 4px 8px; flex-shrink: 0; white-space: nowrap; }
.ca-head input { flex: 1; min-width: 0; padding: 8px 10px; border: 1.5px solid var(--line-2); border-radius: 10px; font-family: inherit; font-size: 13px; font-weight: 650; color: var(--ink); outline: none; background: #fff; transition: border-color .14s var(--ease), box-shadow .14s var(--ease); }
.ca-head input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ca-head .del { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); flex-shrink: 0; transition: .12s; }
.ca-head .del:hover { color: var(--bad); border-color: #F4C9D3; }
.ca-row textarea { width: 100%; padding: 9px 11px; border: 1.5px solid var(--line-2); border-radius: 10px; font-family: inherit; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); outline: none; resize: vertical; min-height: 58px; background: #fff; transition: border-color .14s var(--ease), box-shadow .14s var(--ease); }
.ca-row textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ============================================================
   Bestaande klant ophalen · privacy-kaart · kinderregister
   ============================================================ */
.klant-zoek { border: 1.5px solid #C3DCF2; background: linear-gradient(180deg, #F4F8FF, #fff); border-radius: var(--r-md); padding: 14px 14px 13px; display: flex; flex-direction: column; gap: 11px; }
.kz-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brand-600); }
.kz-head .ic { color: var(--brand); }
.kz-sub { font-size: 12px; color: var(--muted); line-height: 1.5; margin: -4px 0 0; letter-spacing: 0; }
.klant-zoek .field { margin: 0; }
.klant-zoek .btn { width: auto; align-self: flex-start; }
.kz-demo { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--faint); letter-spacing: 0; }
.kz-demo .ic { color: var(--faint); flex-shrink: 0; }
.kz-demo b { color: var(--muted); }

.privacy-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid #BBE7CB; background: #F2FBF6; border-radius: var(--r-md); padding: 13px 14px; cursor: pointer; font: inherit; transition: border-color .14s var(--ease), box-shadow .14s var(--ease), transform .12s var(--ease); -webkit-tap-highlight-color: transparent; }
.privacy-card:hover { border-color: var(--ok); box-shadow: 0 5px 14px rgba(22,163,74,.12); }
.privacy-card:active { transform: scale(.99); }
.privacy-card .pc-ic { width: 38px; height: 38px; border-radius: 11px; background: #E2F6F2; color: #0B7E6E; display: grid; place-items: center; flex-shrink: 0; }
.privacy-card .pc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.privacy-card .pc-tx b { font-size: 13px; font-weight: 700; color: #166534; }
.privacy-card .pc-tx small { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; letter-spacing: 0; }
.privacy-card .pc-chev { color: #0B7E6E; flex-shrink: 0; }
.priv-intro { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin: 0 0 12px; }

.mini-btn.sm { padding: 5px 9px; font-size: 11.5px; }
.kr-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.kr-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.kr-table thead th { text-align: left; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); padding: 10px 12px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.kr-table tbody tr { border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.kr-table tbody tr:last-child { border-bottom: none; }
.kr-table tbody tr:hover { background: var(--card-2); }
.kr-table td { padding: 11px 12px; vertical-align: middle; color: var(--ink-2); }
.kr-table td b { color: var(--ink); font-weight: 650; }
.kr-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.kr-muted { color: var(--faint); }
.kr-geen { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; color: var(--warn); }
.kr-geen .ic { flex-shrink: 0; }
.kr-act { white-space: nowrap; text-align: right; }
.kr-act .mini-btn { margin-left: 5px; }
.kr-empty { text-align: center; color: var(--faint); padding: 26px 10px; }

/* agenda */
.ag-day { margin-bottom: 14px; }
.ag-day:last-child { margin-bottom: 0; }
.ag-day-h { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.ag-day-h .ic { color: var(--brand); }
.ag-item { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-soft); }
.ag-item + .ag-item { margin-top: 8px; }
.ag-item.gesprek { border-left-color: #7C3AED; }
.ag-item.rondleiding { border-left-color: var(--brand); }
.ag-tijd { font-size: 13px; font-weight: 800; color: var(--ink); min-width: 40px; letter-spacing: -.01em; }
.ag-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: var(--card-2); color: var(--muted); }
.ag-item.gesprek .ag-ic { background: #EDE9FE; color: #6D28D9; }
.ag-item.rondleiding .ag-ic { background: var(--brand-soft); color: var(--brand); }
.ag-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ag-b b { font-size: 13px; font-weight: 650; }
.ag-b span { font-size: 11.5px; color: var(--muted); margin-top: 1px; display: inline-flex; align-items: center; gap: 5px; letter-spacing: 0; }
.ag-tag { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 20px; flex-shrink: 0; }
.ag-tag.gesprek { background: #EDE9FE; color: #6D28D9; }
.ag-tag.rondleiding { background: var(--brand-soft); color: var(--brand-600); }

/* vervoer naar het werk: nette keuzekaarten (2 kolommen) */
.vervoerkeuze { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.vk-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: #fff; font: inherit; font-size: 13px; font-weight: 650; color: var(--ink-2); cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; transition: border-color .14s var(--ease), background .14s var(--ease), box-shadow .14s var(--ease), transform .12s var(--ease); }
.vk-opt:hover { border-color: var(--brand); }
.vk-opt:active { transform: scale(.98); }
.vk-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--card-2); color: var(--muted); flex-shrink: 0; transition: .14s var(--ease); }
.vk-l { min-width: 0; }
.vk-opt.on { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 5px 14px rgba(27,109,189,.30); }
.vk-opt.on .vk-ic { background: rgba(255,255,255,.22); color: #fff; }
.vk-opt.meest { box-shadow: 0 6px 18px rgba(27,109,189,.40); }
.vk-hint { margin-bottom: 9px; }
.vk-hint .ic { vertical-align: -1px; color: #E8A317; }
/* "meest gebruikt"-ster binnen elk geselecteerd kaartje */
.vk-star { margin-left: auto; flex-shrink: 0; width: 27px; height: 27px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); background: rgba(255,255,255,.16); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .14s var(--ease), border-color .14s var(--ease), transform .12s var(--ease), box-shadow .14s var(--ease); }
.vk-star .ic { fill: none; }
.vk-star:hover { background: rgba(255,255,255,.30); border-color: #fff; }
.vk-star:active { transform: scale(.9); }
.vk-star.on { background: #fff; border-color: #fff; color: #E8A317; box-shadow: 0 3px 9px rgba(0,0,0,.18); }
.vk-star.on .ic { fill: currentColor; }

/* aantal jaren ervaring */
.jaar-veld { display: flex; align-items: center; gap: 10px; }
.jaar-veld input { width: 120px; padding: 11px 13px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; outline: none; transition: border-color .14s var(--ease), box-shadow .14s var(--ease); }
.jaar-veld input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,109,189,.14); }
.jaar-unit { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }

/* werkuren per dag */
.uur-editor { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 8px 12px; background: var(--card-2); }
.uur-rij { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 9px; padding: 8px 0; }
.uur-rij + .uur-rij { border-top: 1px solid var(--line); }
.uur-dag { width: 70px; flex-shrink: 0; font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.uur-modus { flex: 1; min-width: 120px; padding: 8px 10px; border: 1.5px solid var(--line-2); border-radius: 10px; font-family: inherit; font-size: 12.5px; background: #fff; outline: none; color: var(--ink); transition: border-color .14s var(--ease), box-shadow .14s var(--ease); }
.uur-modus:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.uur-tijden { flex-basis: 100%; display: flex; align-items: center; gap: 7px; padding-left: 79px; }
.uur-tijd { padding: 7px 8px; border: 1.5px solid var(--line-2); border-radius: 9px; font-family: inherit; font-size: 12.5px; outline: none; background: #fff; transition: border-color .14s var(--ease), box-shadow .14s var(--ease); }
.uur-tijd:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.uur-sep { font-size: 11.5px; color: var(--muted); }
.uur-leeg { display: none; }

@media (max-width: 1180px) {
  .scene[data-mode="ipad"] { flex-direction: column; align-items: center; }
  .scene[data-mode="ipad"] .explain { position: static; width: min(420px, 100%); }
  .device.ipad { width: min(1024px, calc(100vw - 36px)); height: min(calc((100vw - 36px) * 0.72), calc(100vh - 40px)); }
}

/* ============================================================
   PERSONEEL · roster + personeelsdossier (management-app)
   ============================================================ */
/* roster */
.pers-list { display: flex; flex-direction: column; gap: 8px; }
.pers-row { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; cursor: pointer; font: inherit; transition: border-color .14s var(--ease), box-shadow .14s var(--ease), transform .12s var(--ease); }
.pers-row:hover { border-color: var(--brand); box-shadow: 0 6px 16px rgba(27,109,189,.12); }
.pers-row:active { transform: scale(.995); }
.pers-ava { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.pers-ava.lg { width: 46px; height: 46px; border-radius: 13px; font-size: 16px; }
.pers-ava.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.pers-id { min-width: 0; flex: 1; }
.pers-id b { display: block; font-size: 14px; color: var(--ink); }
.pers-id span { font-size: 12px; color: var(--muted); }
.pers-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pers-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; padding: 4px 9px; border-radius: 20px; background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line-2); }
.pers-tag.ok { background: #E2F6F2; color: #0B7E6E; border-color: #C5EBE3; }
.pers-tag.warn { background: #FBEEDB; color: #B45309; border-color: #F3DCBC; }
.pers-chev { color: var(--muted); flex-shrink: 0; }

/* dossier head + tabs */
.dossier-modal .modal-body { max-height: min(70vh, 620px); overflow-y: auto; }
.dos-head { display: flex; align-items: center; gap: 13px; }
.dos-head h3 { margin: 0; }
.dos-back { margin-left: auto; }
.dos-tabs { display: flex; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--line); overflow-x: auto; background: var(--card); }
.dos-tab { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 12px 12px; border: 0; border-bottom: 2.5px solid transparent; background: none; font: inherit; font-size: 12.5px; font-weight: 650; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .12s var(--ease), border-color .12s var(--ease); }
.dos-tab:hover { color: var(--ink-2); }
.dos-tab.on { color: var(--brand); border-bottom-color: var(--brand); }
.dos-badge { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; }
.dos-badge.warn { background: #D97706; }
.dos-body { padding-top: 4px; }
.dos-body .panel:first-child { margin-top: 14px; }

/* stat-blok */
.pd-stats { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pd-stat { flex: 1; min-width: 120px; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 11px 13px; background: var(--card-2); }
.pd-stat-v { font-size: 18px; font-weight: 800; color: var(--ink); }
.pd-stat-l { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.pd-light { color: var(--muted); font-weight: 600; font-size: 13px; }

/* generieke rij (educatie/verlof/ziekte/mentaal) */
.pd-list { display: flex; flex-direction: column; gap: 8px; }
.pd-row { display: flex; align-items: flex-start; gap: 11px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; }
.pd-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.pd-row-b { min-width: 0; flex: 1; }
.pd-row-t { font-size: 13.5px; font-weight: 700; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pd-row-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pd-mini { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 6px; border-radius: 6px; background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line-2); }
.pd-mini.krit { background: #FCE7EC; color: #BE123C; border-color: #F6CDD7; }
.pd-mini.ok { background: #E2F6F2; color: #0B7E6E; border-color: #C5EBE3; }
.pd-row .statetag { flex-shrink: 0; margin-top: 2px; }
.pd-att { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pd-att-i { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--brand-600); background: var(--brand-soft); border: 1px solid #D7E6FF; padding: 4px 9px; border-radius: 8px; cursor: pointer; }
.pd-att-i:hover { background: #DCEAFF; }
.pd-quote { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--line-2); font-style: italic; }
.pd-toolbar { display: flex; gap: 8px; margin-top: 12px; }
.pd-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 26px; color: var(--muted); font-size: 13px; background: var(--card-2); border-radius: var(--r-md); border: 1px dashed var(--line-2); }

/* mail & berichten */
.pd-maillist { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.pd-mail { display: flex; gap: 11px; width: 100%; text-align: left; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; cursor: pointer; font: inherit; transition: border-color .12s var(--ease), background .12s var(--ease); }
.pd-mail:hover { border-color: var(--brand); background: #FBFCFF; }
.pd-mail.unread { background: #F6FAFF; border-color: #D7E6FF; }
.pd-mail-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--card-2); color: var(--muted); flex-shrink: 0; }
.pd-mail.unread .pd-mail-ic { background: var(--brand-soft); color: var(--brand); }
.pd-mail-b { min-width: 0; flex: 1; }
.pd-mail-top { display: flex; align-items: baseline; gap: 8px; }
.pd-mail-top b { font-size: 13.5px; color: var(--ink); font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-mail.unread .pd-mail-top b { font-weight: 800; }
.pd-mail-tijd { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.pd-mail-sub { display: flex; align-items: center; gap: 7px; margin: 3px 0; font-size: 11.5px; color: var(--muted); }
.pd-badge { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c) 26%, #fff); }
.pd-clip { color: var(--muted); }
.pd-mail-prev { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* memo */
.pd-compose { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px; background: var(--card-2); margin-bottom: 14px; }
.pd-compose textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 13px; resize: vertical; min-height: 60px; background: #fff; outline: none; }
.pd-compose textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pd-compose-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.pd-check { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.pd-memolist { display: flex; flex-direction: column; gap: 8px; }
.pd-memo { display: flex; gap: 11px; padding: 12px 13px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; }
.pd-memo.pin { border-color: #F3DCBC; background: #FFFCF6; }
.pd-memo-b { min-width: 0; flex: 1; }
.pd-memo-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pd-memo-top b { font-size: 12.5px; color: var(--ink-2); }
.pd-pin { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font-size: 10.5px; font-weight: 700; color: #B45309; }
.pd-memo-t { font-size: 13px; color: var(--ink-2); margin: 5px 0; line-height: 1.45; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.pd-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 650; padding: 3px 8px; border-radius: 7px; background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line-2); }

/* uren */
.pd-uren-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.pd-bar { flex: 1; min-width: 140px; height: 9px; border-radius: 6px; background: var(--line); overflow: hidden; }
.pd-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), #4F86FF); }
.pd-tbl-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.pd-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pd-tbl th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 9px 12px; background: var(--card-2); border-bottom: 1px solid var(--line-2); }
.pd-tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pd-tbl tr:last-child td { border-bottom: 0; }
.pd-tbl .num { text-align: right; }
.pd-src { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: var(--brand-soft); color: var(--brand-600); }
.pd-src.sys { background: var(--card-2); color: var(--muted); }

/* welzijn sub-tabs */
.pd-seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-seg-b { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 650; color: var(--ink-2); cursor: pointer; transition: .12s var(--ease); }
.pd-seg-b:hover { border-color: var(--brand); color: var(--brand-600); }
.pd-seg-b.on { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(27,109,189,.26); }
.pd-seg-n { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--card-2); color: var(--ink-2); font-size: 10px; font-weight: 800; }
.pd-seg-b.on .pd-seg-n { background: rgba(255,255,255,.26); color: #fff; }
.pd-face { flex-shrink: 0; margin-top: 1px; }

/* zorginterventie timeline */
.pd-timeline { display: flex; flex-direction: column; gap: 0; }
.pd-zorg { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.pd-zorg:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--line-2); }
.pd-zorg-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; z-index: 1; }
.pd-zorg-b { min-width: 0; flex: 1; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 11px 13px; background: #fff; }
.pd-zorg-top { display: flex; align-items: center; gap: 9px; }
.pd-zorg-tijd { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pd-zorg-oms { font-size: 13px; color: var(--ink); margin: 7px 0; font-weight: 600; }
.pd-zorg-foot { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pd-zorg-foot .ic { vertical-align: -1px; }

/* ergonomie */
.pd-ergo { border: 1px solid var(--line-2); border-left: 4px solid var(--c, #D97706); border-radius: var(--r-md); padding: 13px 15px; background: #fff; }
.pd-ergo + .pd-ergo { margin-top: 9px; }
.pd-ergo-top { display: flex; align-items: center; gap: 10px; }
.pd-risico { font-size: 10.5px; font-weight: 800; color: #fff; padding: 3px 10px; border-radius: 20px; }
.pd-ergo-datum { font-size: 11.5px; color: var(--muted); }
.pd-ergo-bev { font-size: 13px; color: var(--ink); margin: 9px 0; font-weight: 600; }
.pd-ergo-aanb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.pd-ergo-aanb li { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.pd-ergo-aanb .ic { color: var(--brand); flex-shrink: 0; }
.pd-ergo-foot { font-size: 11.5px; color: var(--muted); margin-top: 9px; display: flex; align-items: center; gap: 5px; }

/* contracten */
.pd-contractlist { display: flex; flex-direction: column; gap: 11px; margin-top: 12px; }
.pd-contract { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px 16px; background: #fff; }
.pd-contract.actief { border-color: #C5EBE3; box-shadow: 0 4px 14px rgba(14,159,138,.12); }
.pd-contract-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pd-contract-t { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--ink); }
.pd-contract-t .ic { color: var(--brand); }
.pd-contract-per { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.pd-contract .kv { margin-bottom: 4px; }

/* ============================================================
   NIEUWE MEDEWERKER · documenten ter inzage + contract e-sign
   ============================================================ */
.mw-docs { margin-top: 14px; }
.mw-docs-cap { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin: 0 0 9px; display: flex; align-items: center; gap: 7px; }
.mw-docs-cap .ic { color: var(--brand); }
.mw-doc { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; cursor: pointer; font: inherit; transition: border-color .14s var(--ease), background .14s var(--ease); }
.mw-doc + .mw-doc { margin-top: 7px; }
.mw-doc:hover { border-color: var(--brand); background: #FBFCFF; }
.mw-doc.static { cursor: default; }
.mw-doc.static:hover { border-color: var(--line-2); background: #fff; }
.mw-doc-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.mw-doc-b { min-width: 0; flex: 1; }
.mw-doc-b b { display: block; font-size: 13px; color: var(--ink); }
.mw-doc-b small { font-size: 11.5px; color: var(--muted); }
.mw-doc-a { color: var(--muted); flex-shrink: 0; }
.mw-doc-a.ok { color: #0B7E6E; }
.mw-contract { margin-top: 14px; border: 1.5px solid #D7E6FF; border-radius: var(--r-md); padding: 14px; background: linear-gradient(180deg, #F6FAFF, #fff); }
.mw-contract-h { display: flex; align-items: center; gap: 11px; }
.mw-contract-h .ic { color: var(--brand); flex-shrink: 0; }
.mw-contract-h b { display: block; font-size: 14px; color: var(--ink); }
.mw-contract-h small { font-size: 12px; color: var(--muted); }
.mw-cstat { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); }
.mw-cstat .ic { flex-shrink: 0; }
.mw-cstat b { display: block; font-size: 13px; color: var(--ink); }
.mw-cstat small { font-size: 11.5px; color: var(--muted); }
.mw-cstat.ok { background: #E2F6F2; border-color: #C5EBE3; } .mw-cstat.ok .ic { color: #0B7E6E; }
.mw-cstat.wait { background: #FBEEDB; border-color: #F3DCBC; } .mw-cstat.wait .ic { color: #B45309; }
.mw-cstat.none { background: #FCE7EC; border-color: #F6CDD7; } .mw-cstat.none .ic { color: #BE123C; }
/* segmented control in 2 kolommen (lange labels, bv. vervangingscontract) */
.seg.seg-2 { display: grid; grid-template-columns: 1fr 1fr; }
.seg.seg-2 .opt { min-width: 0; overflow-wrap: anywhere; }

/* ============================================================
   PERSONEEL · status-groepen, aanwezigheid, startklaar, versies
   ============================================================ */
/* roster-groepen */
.pers-groep + .pers-groep { margin-top: 18px; }
.pers-groep-h { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; }
.pers-groep-h b { font-size: 13px; color: var(--ink); }
.pers-groep-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.pers-groep-n { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--card-2); color: var(--ink-2); font-size: 11px; font-weight: 800; }
.pers-groep-s { font-size: 11.5px; color: var(--muted); }
.pers-row.gedimd { opacity: .68; }
.pers-row.gedimd:hover { opacity: 1; }
.aanw-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 20px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); border: 1px solid color-mix(in srgb, var(--c) 28%, #fff); }
/* dossier-header status + aanwezigheidsbalk */
.dos-statuschip { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; vertical-align: 2px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); border: 1px solid color-mix(in srgb, var(--c) 28%, #fff); }
.dos-aanw { display: flex; flex-wrap: wrap; gap: 7px; padding: 11px 22px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.aanw-opt { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1.5px solid var(--line-2); border-radius: 20px; background: #fff; font: inherit; font-size: 12px; font-weight: 650; color: var(--ink-2); cursor: pointer; transition: .12s var(--ease); }
.aanw-opt:hover { border-color: var(--c); color: var(--c); }
.aanw-opt.on { border-color: var(--c); background: var(--c); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 32%, transparent); }
/* startklaar / administratie */
.adm-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.adm-ring { width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: conic-gradient(var(--bad) calc(var(--pct) * 1%), var(--line) 0); }
.adm-ring.klaar { background: conic-gradient(#0E9F8A calc(var(--pct) * 1%), var(--line) 0); }
.adm-ring-in { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.adm-ring-in b { font-size: 19px; color: var(--ink); line-height: 1; }
.adm-ring-in small { font-size: 10px; color: var(--muted); }
.adm-head-b { min-width: 0; }
.adm-status { font-size: 15px; font-weight: 800; }
.adm-ok { display: inline-flex; align-items: center; gap: 7px; color: #0B7E6E; }
.adm-warn { display: inline-flex; align-items: center; gap: 7px; color: #BE123C; }
.adm-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.adm-cap { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin: 16px 0 8px; display: flex; align-items: center; gap: 7px; }
.adm-cap .ic { color: var(--brand); }
.adm-list { display: flex; flex-direction: column; gap: 7px; }
.adm-item { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; }
.adm-item.ok { border-color: #C5EBE3; background: #F4FBF9; }
.adm-item.mis { border-color: #F6CDD7; background: #FEF6F8; }
.adm-ic { flex-shrink: 0; display: grid; place-items: center; }
.adm-item.ok .adm-ic { color: #0B7E6E; }
.adm-item.mis .adm-ic { color: #BE123C; }
.adm-item.opt .adm-ic { color: var(--muted); }
.adm-item-b { min-width: 0; flex: 1; }
.adm-item-t { font-size: 13px; font-weight: 700; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.adm-item-s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.adm-tag { flex-shrink: 0; font-size: 10.5px; font-weight: 800; color: var(--ink-2); }
.adm-item.ok .adm-tag { color: #0B7E6E; }
.adm-item.mis .adm-tag { color: #BE123C; }
/* contractversies */
.pd-cv-wrap { margin-top: 12px; border-top: 1px dashed var(--line-2); padding-top: 11px; }
.pd-cv-cap { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.pd-cv-cap .ic { color: var(--brand); }
.pd-cv-n { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--card-2); font-size: 10px; font-weight: 800; }
.pd-cv { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--card-2); }
.pd-cv + .pd-cv { margin-top: 6px; }
.pd-cv.actief { background: #F4FBF9; border-color: #C5EBE3; }
.pd-cv-badge { flex-shrink: 0; display: grid; place-items: center; min-width: 30px; height: 26px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; }
.pd-cv-b { min-width: 0; flex: 1; }
.pd-cv-t { font-size: 12.5px; font-weight: 700; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pd-cv-s { font-size: 11px; color: var(--muted); margin-top: 2px; }
.pd-cv .pd-att-i { flex-shrink: 0; }
/* verplichte-documenten instellingen */
.sv-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sv-row:last-of-type { border-bottom: 0; }
.sv-b { flex: 1; min-width: 0; }
.sv-t { font-size: 13px; font-weight: 650; color: var(--ink); }
.sv-s { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.sv-toggle { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 6px 11px; border-radius: 20px; border: 1.5px solid var(--line-2); background: #fff; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--muted); cursor: pointer; transition: .12s var(--ease); }
.sv-toggle.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-600); }
.sv-del { flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.sv-del:hover { border-color: var(--bad); color: var(--bad); }

/* ============================================================
   Aanvraag sociaal secretariaat
   ============================================================ */
.socsec-to { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border: 1px solid #D7E6FF; background: var(--brand-soft); border-radius: var(--r-md); margin-bottom: 14px; }
.socsec-to .ic { color: var(--brand); flex-shrink: 0; }
.socsec-to b { display: block; font-size: 13px; color: var(--ink); }
.socsec-to span { font-size: 12px; color: var(--brand-600); }
.socsec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.socsec-form .field, .socsec-form .field-2 { margin-top: 10px; }
.socsec-form .set-cap { margin-top: 0; }
.socsec-prev { position: sticky; top: 0; }
.socsec-prev .mailprev { margin-top: 10px; max-height: 460px; overflow-y: auto; }
.mail-cap { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-600); margin: 16px 0 7px; display: flex; align-items: center; gap: 6px; }
.mail-cap .ic { color: var(--brand); }
@media (max-width: 720px) { .socsec-grid { grid-template-columns: 1fr; } .socsec-prev { position: static; } }

/* ============================================================
   Aanwerven · uitnodigingsmail
   ============================================================ */
.statetag.aangeworven { background: #E2F6F2; color: #0B7E6E; }
.mail-lijst { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.mail-lijst li { font-size: 13px; color: var(--ink-2); display: flex; align-items: flex-start; gap: 7px; }
.mail-lijst li .ic { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.mail-cta { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 12px; padding: 11px 16px; border-radius: 12px; background: linear-gradient(180deg, var(--brand), var(--brand-600)); color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 6px 16px rgba(27,109,189,.30); }
.mail-cta .ic { color: #fff; }

/* ============================================================
   MEMO'S · lijst + editor
   ============================================================ */
.memo-list { display: flex; flex-direction: column; gap: 8px; }
.memo-row { display: flex; align-items: stretch; gap: 0; width: 100%; text-align: left; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; cursor: pointer; font: inherit; overflow: hidden; transition: border-color .14s var(--ease), box-shadow .14s var(--ease); }
.memo-row:hover { border-color: var(--brand); box-shadow: 0 5px 14px rgba(27,109,189,.10); }
.memo-streep { width: 5px; flex-shrink: 0; }
.memo-row-b { flex: 1; min-width: 0; padding: 11px 13px; }
.memo-row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.memo-row-datum { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.memo-row-t { font-size: 13px; font-weight: 650; color: var(--ink); margin: 6px 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memo-row-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.memo-row-bet, .memo-row-bij { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.memo-row .pers-chev { align-self: center; padding-right: 11px; color: var(--muted); }
.pd-tag.krit { background: #FCE7EC; color: #BE123C; border-color: #F6CDD7; }

/* editor: toggles + subkoppen */
.mo-tog { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.mo-tog .toggle { flex-shrink: 0; }
.mo-tog-t { font-size: 13px; font-weight: 650; color: var(--ink); }
.mo-tog-s { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.mo-sub-cap { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin: 14px 0 6px; display: flex; align-items: center; gap: 6px; }
.mo-sub-cap .ic { color: var(--brand); }
.mo-inset { margin: 2px 0 6px 14px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.mo-bet-groep { margin-bottom: 12px; }
.mo-bet-cap { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.mo-bet-cap .ic { color: var(--brand); }
.mo-bet-n { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-600); font-size: 10.5px; font-weight: 800; }

/* tjouly opgeschoond/voorgesteld kaart */
.mo-clean { border: 1px solid #D7E6FF; background: #F6FAFF; border-radius: var(--r-md); padding: 12px 13px; margin: 4px 0 10px; }
.mo-clean-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--brand-600); display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.mo-clean-h .ic { color: var(--brand); }
.mo-clean-t { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-bottom: 9px; }
.mo-toon { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.mo-toon > span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.mo-toon .seg { flex: 1; }

/* melding-instanties */
.mo-meld { border-top: 1px solid var(--line); padding: 4px 0; }
.mo-meld:first-child { border-top: 0; }
.mo-meld-info { width: 100%; margin: 0 0 8px 14px; max-width: calc(100% - 14px); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 12.5px; resize: vertical; min-height: 44px; background: #fff; outline: none; }
.mo-meld-info:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.mo-bijlage-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* agenda: memo-opvolging */
.ag-item.memo-opvolging .ag-ic { background: #FBEEDB; color: #B45309; }
.ag-tag.memo-opvolging { background: #FBEEDB; color: #B45309; }


/* ---------- doorstroom van de stageaanvraag (tijdlijn) + pauze-rijen ---------- */
.dstroom { display: flex; flex-direction: column; gap: 0; text-align: left; margin: 4px 0 0; }
.ds-step { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.ds-step:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.ds-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.ds-step.done .ds-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.ds-step.now .ds-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px rgba(27,109,189,.14); }
.ds-t { font-size: 13px; font-weight: 700; color: var(--ink); }
.ds-step:not(.done):not(.now) .ds-t { color: var(--ink-2); }
.ds-s { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.np-row { display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.np-row input { font: inherit; font-size: 12.5px; padding: 8px 9px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; min-width: 0; }
.np-tijd { width: 86px; }
.np-sep { font-size: 11px; color: var(--muted); }
.np-del { border: 1px solid var(--line-2); background: #fff; border-radius: 9px; width: 30px; height: 30px; display: grid; place-items: center; color: var(--bad); cursor: pointer; }

/* ---------- wizard (stageaanvraag in stappen) + overzicht ---------- */
.wiz { margin: 2px 0 4px; }
.wiz-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wiz-step { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: none; font: inherit; padding: 4px 0; cursor: pointer; color: var(--faint); -webkit-tap-highlight-color: transparent; }
.wiz-step:disabled { cursor: default; }
.wiz-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); transition: .15s; }
.wiz-step.on .wiz-dot { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(27,109,189,.14); }
.wiz-step.done .wiz-dot { border-color: var(--ok); background: var(--ok); color: #fff; }
.wiz-lbl { font-size: 11px; font-weight: 700; }
.wiz-step.on .wiz-lbl { color: var(--ink); }
.wiz-step.done .wiz-lbl { color: var(--ok-ink); }
.wiz-sub { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.wiz-nav .btn { flex: 1; }
.wiz-nav > span { flex: 1; }
.ov-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 2px 12px; }
.ov-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.ov-row:last-child { border-bottom: 0; }
.ov-row .k { width: 92px; flex-shrink: 0; color: var(--muted); font-weight: 600; font-size: 11.5px; }
.ov-row .v { flex: 1; min-width: 0; color: var(--ink); line-height: 1.4; word-break: break-word; }
.ov-row .v i { color: var(--faint); font-style: normal; }
.ov-edit { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; color: var(--brand); cursor: pointer; flex-shrink: 0; }

/* ---------- telefoon (< 768 px), klassen .m-* ----------
   Speelveld: geen toestelkaders, de gekozen app vult het scherm en een kleine
   dekkende schakelaar (.m-switch) wisselt tussen de publieke app en het beheer.
   Publieke app: formulieren in 1 kolom, velden 16 px, vaste verzendknop.
   Beheer-inbox: lijst naar detail (.m-detail-open, .m-back), filters als chips,
   beheermenu in een sheet (.m-icoknop, .m-menu), modals als bottom sheet (.m-sheet).
   Tablet en desktop blijven ongewijzigd. */
.m-switch, .m-back, .m-icoknop { display: none; }

@media (max-width: 767px) {
  body { font-size: 15px; background-attachment: scroll; }
  button, .chip, .opt, .upzone, select { touch-action: manipulation; }
  .rq-when, .fc-n, .list-cap .n, .st-val b, .rl-cell, .kost-split .ks-row { font-variant-numeric: tabular-nums; }

  /* schakelaar tussen de twee apps */
  .m-switch {
    display: flex; gap: 4px; position: fixed; top: 0; left: 0; right: 0; z-index: 45;
    padding: calc(var(--safe-t) + 7px) 12px 7px; height: calc(var(--m-switch-h) + var(--safe-t));
    background: #0F1620;
  }
  .m-switch button {
    flex: 1; min-width: 0; min-height: 38px; padding: 0 8px; border: 0; border-radius: 10px;
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.72); font-size: 13px; font-weight: 650;
    cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .m-switch button.on { background: #fff; color: var(--ink); }

  /* speelveld: app vult het scherm */
  .scene, .scene[data-mode="ipad"] { display: block; min-height: 100dvh; padding: calc(var(--m-switch-h) + var(--safe-t)) 0 0; }
  .explain, .scene[data-mode="ipad"] .explain { display: none; }
  .device.ipad, .device.phone {
    width: 100%; min-width: 0; height: auto; min-height: calc(100dvh - var(--m-switch-h) - var(--safe-t));
    padding: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--bg); overflow: visible; display: block;
  }
  .device.ipad .ipad-cam, .device.phone::after, .device-bar { display: none; }

  /* ---- publieke app ---- */
  .appbar { position: sticky; top: calc(var(--m-switch-h) + var(--safe-t)); z-index: 20; min-height: 56px; padding: 6px 14px; }
  .appbar > div { min-width: 0; }
  .appbar .ab-back { width: 44px; height: 44px; border-radius: 12px; }
  .appbar .ab-title { font-size: 17px; }
  .appbar .ab-sub { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .appbar .ab-loc { font-size: 12px; }
  .screen { overflow: visible; padding: 16px 16px calc(28px + var(--safe-b)); }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; max-width: none; }
  .cap, .sect-cap { font-size: 11.5px; }
  .poort { min-height: 76px; }
  .poort .p-title { font-size: 16px; }
  .poort .p-sub { font-size: 13px; }
  .flow-intro p { font-size: 14px; }
  .flow-intro .fi-loc { font-size: 12px; }

  .field label { font-size: 13.5px; }
  .field input, .field textarea, .field select { font-size: 16px; }
  .field input, .field select { min-height: 48px; }
  .field .hint, .field-err { font-size: 12px; }
  .field-2 { grid-template-columns: 1fr; }
  .adres-3 { grid-template-columns: 1fr 1fr; }
  .adres-3 > :first-child { grid-column: 1 / -1; }
  .seg .opt { min-height: 44px; font-size: 14px; }
  .chips { gap: 8px; }
  .chip, .chip-meer, .titelbadge { min-height: 44px; font-size: 14px; }
  .chip small { font-size: 12px; }
  .note, .voorwaarden { font-size: 13px; }
  .btn { min-height: 48px; font-size: 15px; }
  .btn.sm { min-height: 40px; font-size: 13.5px; }

  /* uploadzone: groot tikdoel */
  .upzone { min-height: 128px; padding: 22px 16px; }
  .upzone .uz-t { font-size: 15px; }
  .upzone .uz-s { font-size: 12.5px; }
  .docrow .dr-btn { width: 44px; height: 44px; border-radius: 12px; }
  .docrow .dr-t { font-size: 14px; }
  .docrow .dr-s { font-size: 12.5px; }

  /* vaste verzendknop onderaan het formulier */
  #in-actions { display: contents; }
  .form > .btn.primary[data-act="submit"], #in-actions > .btn.primary, .wiz-nav {
    position: sticky; bottom: calc(12px + var(--safe-b)); z-index: 6;
  }
  .form > .btn.primary[data-act="submit"], #in-actions > .btn.primary {
    box-shadow: 0 0 0 6px var(--bg), 0 1px 2px rgba(27,109,189,.45), 0 10px 22px rgba(27,109,189,.32);
  }
  .wiz-nav { background: var(--bg); padding: 8px 0; margin-bottom: -8px; box-shadow: 0 -8px 12px -6px rgba(238,241,247,.9); }

  /* kalenders en weekrasters */
  .rl-nav { width: 44px; height: 44px; border-radius: 12px; }
  .rl-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .rl-cell { min-width: 0; min-height: 44px; font-size: 13px; overflow: hidden; }
  .checkrow { min-height: 44px; }
  .wg-pill { min-height: 44px; }
  .wiz-step { min-height: 44px; }
  .wiz-lbl, .wiz-sub { font-size: 12px; }
  .ov-row { font-size: 13.5px; }
  .ov-row .k { font-size: 12.5px; }
  .ov-edit { width: 40px; height: 40px; border-radius: 10px; }
  .np-row { grid-template-columns: 1fr 1fr auto; }
  .np-row input:first-child { grid-column: 1 / -1; }
  .np-row input { font-size: 16px; min-height: 44px; }
  .np-del { width: 44px; height: 44px; }

  /* ---- beheer-inbox ---- */
  .ipad-screen { border-radius: 0; overflow: visible; display: block; }
  .ip-bar { position: sticky; top: calc(var(--m-switch-h) + var(--safe-t)); z-index: 20; height: 56px; padding: 6px 12px 6px 16px; gap: 8px; }
  .ip-brand { min-width: 0; flex: 1 1 auto; }
  .ip-brand > div:last-child { min-width: 0; }
  .ip-brand .nm { font-size: 16px; }
  .ip-brand .md { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ip-bar-right { display: none; }
  .m-icoknop, .m-back {
    display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
    border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); cursor: pointer;
  }
  .m-back { display: none; }
  .m-detail-open .m-back { display: grid; }
  .m-detail-open .ip-brand .lg { display: none; }

  .ip-filters {
    position: sticky; top: calc(var(--m-switch-h) + var(--safe-t) + 56px); z-index: 19;
    padding: 10px 16px; gap: 8px; scroll-padding-inline: 16px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .fchip { min-height: 38px; font-size: 13.5px; }
  .fchip .fc-n { font-size: 12px; }
  .ip-panes { display: block; }
  .ip-list { border-right: 0; overflow: visible; background: none; padding: 12px 14px calc(24px + var(--safe-b)); }
  .ip-detail { display: none; overflow: visible; padding: 14px 14px calc(28px + var(--safe-b)); }
  .m-detail-open .ip-filters, .m-detail-open .ip-list { display: none; }
  .m-detail-open .ip-detail { display: block; }
  .list-cap { font-size: 11.5px; }
  .reqcard { min-height: 72px; padding: 13px; }
  .reqcard.sel { box-shadow: var(--shadow-soft); border-color: var(--line); }
  .reqcard .rq-naam { font-size: 15.5px; }
  .reqcard .rq-meta { font-size: 12.5px; flex-wrap: wrap; }
  .reqcard .rq-when { font-size: 12px; }
  .typetag, .statetag { font-size: 11.5px; }

  .det-head { padding: 14px; gap: 12px; }
  .det-head::after { display: none; }
  .det-head .ava { width: 48px; height: 48px; border-radius: 14px; font-size: 17px; }
  .det-head h2 { font-size: 19px; gap: 6px 8px; }
  .det-head .dh-sub { font-size: 13px; }
  .det-head .dh-contact .mini-btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mini-btn { min-height: 38px; font-size: 13px; }
  .det-acties { gap: 8px; }
  .det-acties .btn { flex: 1 1 calc(50% - 4px); min-height: 44px; font-size: 14px; padding: 10px 12px; }
  .det-acties .btn.primary { flex-basis: 100%; }
  .panel { padding: 14px; }
  .panel-cap { font-size: 11.5px; }
  .kv { grid-template-columns: 1fr; gap: 10px; }
  .kv .k { font-size: 12px; }
  .kv .v { font-size: 14px; overflow-wrap: anywhere; }
  .quote { font-size: 14px; }
  .log-s, .det-doc .dd-t { font-size: 13px; }

  /* beheermenu in een sheet */
  .m-menu { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
  .m-menu .mini-btn { width: 100%; min-height: 52px; justify-content: flex-start; gap: 12px; padding: 0 14px; border-radius: 14px; font-size: 15px; }
  .m-menu .mini-btn .ic { color: var(--brand); }

  /* sheets en modals als bottom sheet */
  .sheet.m-sheet { width: 100%; max-width: 100%; max-height: calc(100dvh - 24px); border-radius: 22px 22px 0 0; padding-bottom: calc(12px + var(--safe-b)); }
  .sheet-grip { width: 44px; height: 5px; }
  .sheet-head { padding: 6px 16px 12px; }
  .sheet-head .sh-x { width: 44px; height: 44px; }
  .sheet-body { flex: 1; min-height: 0; padding: 14px 16px 8px; overscroll-behavior: contain; }
  .modal-backdrop { place-items: end stretch; padding: 0; }
  .modal.m-sheet {
    width: 100%; max-height: calc(100dvh - 24px); border-radius: 22px 22px 0 0;
    overscroll-behavior: contain; transform: translateY(32px);
  }
  .modal-backdrop.on .modal.m-sheet { transform: none; }
  .m-sheet .modal-head { position: sticky; top: 0; z-index: 3; background: var(--card); padding: 24px 16px 12px; gap: 10px; }
  .m-sheet .modal-head::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); }
  .modal-head h3 { font-size: 16.5px; }
  .modal-head .mh-ic { width: 38px; height: 38px; }
  .modal-head .mh-x { width: 44px; height: 44px; flex-shrink: 0; }
  .modal-body { padding: 14px 16px; }
  .modal-foot { position: sticky; bottom: 0; z-index: 3; background: var(--card); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + var(--safe-b)); }
  .modal-foot .btn { flex: 1; min-height: 48px; }
  .loc-tabs { flex-wrap: wrap; }
  .loc-tab { min-height: 44px; font-size: 14px; }
  .losrow { grid-template-columns: 1fr 1fr auto; }
  .losrow input:first-child { grid-column: 1 / -1; }
  .losrow input { font-size: 16px; min-height: 44px; }
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn { flex: 1 1 auto; }
  .pers-row { flex-wrap: wrap; row-gap: 8px; min-height: 64px; }
  .pers-id { flex: 1 1 calc(100% - 100px); min-width: 0; }
  .pers-chev { order: 2; }
  .pers-meta { order: 3; flex: 1 1 100%; padding-left: 53px; justify-content: flex-start; flex-wrap: wrap; }
  .beleid-row .bl-t { font-size: 14.5px; }
  .beleid-row .bl-s { font-size: 12.5px; }

  /* toasts onderaan, volle breedte */
  .toast { left: 16px; right: 16px; bottom: calc(16px + var(--safe-b)); max-width: none; transform: translateY(24px); font-size: 14px; }
  .toast.on { transform: none; }
}


/* ---------- mailvoorbeeld (mail.js in een iframe) + keuzelijst in bestaande rijen ---------- */
.mail-frame { display: block; width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.keuze-btn.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px #FCE7EC; }
.docadd .keuze, .patroonrow .keuze { min-width: 0; }
.uur-modus-keuze { flex: 1; min-width: 140px; }
.uur-modus-keuze .keuze-btn { min-height: 40px; padding: 8px 10px; font-size: 12.5px; border-radius: 10px; }
.patroonrow .keuze-btn { min-height: 38px; padding: 8px 8px; font-size: 12px; }
.docadd .keuze-btn { min-height: 46px; }
@media (max-width: 767px) { .mail-frame { height: 62vh; } }
/* ---------- keuzelijst (eigen keuzelijst i.p.v. native select, conform de UI-regel van de echte app) ---------- */
.keuze { position: relative; width: 100%; }
.keuze-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 40px; padding: 8px 10px 8px 12px; border: 1px solid var(--line-2, #E3E8F0); border-radius: 10px; background: var(--card, #fff); color: var(--ink, #0F1620); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.keuze-btn:hover { border-color: #CBD5E8; }
.keuze-btn:focus-visible, .keuze-btn[aria-expanded="true"] { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft, #E8F1FA); }
.keuze-btn:disabled { opacity: .55; cursor: not-allowed; }
.keuze-btn.leeg .kz-lbl { color: var(--faint, #97A1B2); }
.keuze-btn .kz-lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keuze-btn .kz-chev { flex-shrink: 0; color: var(--muted, #6B7689); }
.keuze-back { position: fixed; inset: 0; z-index: 2000; }
.keuze-pop { position: fixed; display: flex; flex-direction: column; background: var(--card, #fff); border: 1px solid var(--line-2, #E3E8F0); border-radius: 12px; box-shadow: 0 16px 40px rgba(15,22,32,.18); overflow: hidden; }
.keuze-zoek { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line, #ECEFF5); color: var(--muted, #6B7689); }
.keuze-zoek input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink, #0F1620); }
.keuze-lijst { overflow: auto; overscroll-behavior: contain; padding: 6px; flex: 1; }
.keuze-groep { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint, #97A1B2); padding: 8px 10px 4px; }
.keuze-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13.5px; color: var(--ink, #0F1620); text-align: left; cursor: pointer; }
.keuze-opt:hover, .keuze-opt:focus-visible { background: var(--brand-soft, #E8F1FA); outline: none; }
.keuze-opt.on { color: var(--brand); font-weight: 600; }
.keuze-opt.uit { opacity: .45; cursor: not-allowed; }
.keuze-opt .kzo-b { display: flex; flex-direction: column; min-width: 0; }
.keuze-opt small { font-size: 11.5px; color: var(--muted, #6B7689); font-weight: 400; }
.keuze-leeg { padding: 14px; font-size: 12.5px; color: var(--muted, #6B7689); text-align: center; }
.keuze-grip, .keuze-kop { display: none; }
@media (max-width: 767px) {
  .keuze-back.sheet { background: rgba(15,22,32,.45); }
  .keuze-back.sheet .keuze-pop { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto !important; max-height: calc(100dvh - 24px) !important; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .keuze-grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: #CBD2DD; margin: 8px auto 0; }
  .keuze-kop { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 8px; font-size: 15px; }
  .keuze-x { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--bg, #EEF1F7); font-size: 22px; line-height: 1; color: var(--muted, #6B7689); cursor: pointer; }
  .keuze-opt { min-height: 48px; font-size: 15px; }
  .keuze-btn { min-height: 48px; font-size: 16px; }
}

/* ===== testomgeving: telefoonframe wordt volwaardige pagina ===== */
.scene { display: block; padding: 0; min-height: 100vh; }
.explain, .device-bar, .device.ipad, .desktop, .mailpane, .urlbar { display: none !important; }
.device.phone { width: 100%; max-width: 520px; margin: 0 auto; height: auto; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; overflow: visible; background: var(--bg, #F5F7FA); }
.device.phone::after { display: none; }
.screen { overflow: visible; }
.appbar, .wizbar { position: sticky; top: 0; z-index: 6; }
.rl-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.rl-cell, .wg-pill { min-width: 0; }
.testbanner { background: #FFF6D6; color: #6B5200; font-size: 12px; text-align: center; padding: 6px 12px; border-bottom: 1px solid #F0DE9B; }
@media (min-width: 600px) {
  .scene { padding: 28px 0 48px; }
  .device.phone { min-height: calc(100vh - 76px); border-radius: 28px; box-shadow: var(--shadow-device, 0 30px 80px rgba(15,22,32,.25)); overflow: hidden; }
}
