/* Chatter beheer · huisstijl (kleuren gelijk aan eerste versie) */
:root {
  --ink: #233c31;
  --bg: #f3f6f2;
  --card: #ffffff;
  --brand: #285b40;
  --brand-dark: #1d4430;
  --line: #dce5dc;
  --line-soft: #edf2ec;
  --muted: #5f6e62;
  --soft: #eaf1e8;
  --ok-bg: #e3efe6;
  --ok: #285b40;
  --warn-bg: #fff6de;
  --warn-line: #e6d4a1;
  --warn: #68531c;
  --bad-bg: #fff0ee;
  --bad-line: #f1d2cd;
  --bad: #992b1e;
  --info-bg: #e6eef7;
  --info-line: #c7d6e8;
  --info: #2b5580;
  --grey-bg: #eef0ee;
  --grey: #55605a;
  --accent: #89b89b;
  --radius: 12px;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--brand-dark); }
h1 { font-size: 26px; letter-spacing: -0.4px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr { position: absolute; left: -9999px; }
.loading { padding: 40px; color: var(--muted); }

/* Knoppen en velden */
button, .btn {
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; min-height: 38px; padding: 0 14px; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px; text-decoration: none; white-space: nowrap;
}
button:hover, .btn:hover { border-color: #bccbbf; color: var(--ink); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-danger { color: var(--bad); border-color: var(--bad-line); }
.btn-small { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn-link { border: 0; background: none; color: var(--brand); padding: 0; min-height: 0; }
button:disabled { opacity: 0.55; cursor: default; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; width: 100%; min-height: 40px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
input[type="checkbox"] { width: auto; min-height: 0; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; margin: 0; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Pills */
.pill {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 20px;
  background: var(--grey-bg); color: var(--grey); white-space: nowrap; border: 0; min-height: 0; line-height: 1.5;
}
button.pill { cursor: pointer; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.dot { width: 10px; height: 10px; border-radius: 5px; display: inline-block; flex: 0 0 10px; background: var(--grey); }
.dot.warn { background: #c9952b; }
.dot.bad { background: #b02020; }
.dot.ok { background: var(--brand); }

/* Shell */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  background: var(--card); border-bottom: 1px solid var(--line); height: 62px; padding: 0 20px;
  display: flex; align-items: center; gap: 20px; position: sticky; top: 0; z-index: 20;
}
.logo { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; flex: 0 0 186px; text-decoration: none; color: var(--ink); }
.logo span { font-weight: 400; color: var(--muted); }
.search { position: relative; flex: 1 1 auto; max-width: 460px; }
.search input { background: var(--bg); }
.search-results {
  position: absolute; top: 44px; left: 0; right: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(21, 40, 27, 0.12); padding: 6px; max-height: 420px; overflow: auto;
}
.search-results a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a.active { background: var(--soft); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.saved { font-size: 13px; color: var(--brand); }
.saved.busy { color: var(--muted); }
.body { display: flex; flex: 1 1 auto; min-height: 0; }
.nav {
  flex: 0 0 210px; background: var(--card); border-right: 1px solid var(--line); padding: 18px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.nav a {
  display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-radius: 8px;
  color: var(--ink); text-decoration: none;
}
.nav a:hover { background: var(--soft); }
.nav a.active { background: var(--brand); color: #fff; font-weight: 600; }
.nav .count { font-size: 12px; background: var(--grey-bg); color: var(--grey); padding: 0 8px; border-radius: 10px; font-weight: 600; }
.nav .count.bad { background: var(--bad-bg); color: var(--bad); }
.nav a.active .count { background: rgba(255, 255, 255, 0.2); color: #fff; }
.nav .spacer { flex: 1 1 auto; }
.nav .sub { font-size: 14px; color: var(--muted); }
.main { flex: 1 1 auto; min-width: 0; padding: 28px 34px 60px; }
.page { max-width: 1240px; display: flex; flex-direction: column; gap: 22px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.page-head .grow { flex: 1 1 auto; }

/* Kaarten */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { flex: 1 1 auto; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px;
}
.kpi:hover { border-color: #bccbbf; color: var(--ink); }
.kpi .label { font-size: 13px; color: var(--brand-dark); font-weight: 600; }
.kpi .value { font-size: 28px; font-weight: 700; }
.kpi .sub { font-size: 13px; color: var(--brand); }
.kpi.bad { background: var(--bad-bg); border-color: var(--bad-line); }
.kpi.bad .label, .kpi.bad .value, .kpi.bad .sub { color: var(--bad); }
.kpi.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.kpi.warn .label, .kpi.warn .value, .kpi.warn .sub { color: var(--warn); }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }

/* Vandaag */
.lesson-row {
  display: flex; align-items: center; gap: 16px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 10px;
}
.lesson-row .time { flex: 0 0 64px; text-align: center; }
.lesson-row .time b { display: block; font-size: 19px; }
.lesson-row .what { flex: 1 1 auto; min-width: 0; }
.lesson-row .what b { display: block; }
.week-mini { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.week-mini > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); font-size: 13px; }
.week-mini b { display: block; color: var(--brand-dark); margin-bottom: 2px; }
.todo-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); }
.todo-item:first-child { border-top: 0; }
.todo-item .dot { margin-top: 6px; }
.todo-item .grow { flex: 1 1 auto; min-width: 0; }
.todo-item b { display: block; font-size: 14px; }
.todo-item .cta { font-size: 13px; color: var(--brand); white-space: nowrap; }
.task { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.task:first-child { border-top: 0; }
.task .grow { flex: 1 1 auto; }
.task.late .due { color: var(--bad); font-weight: 600; }
.task.done b { text-decoration: line-through; color: var(--muted); }

/* Lijst + detail (Groepen) */
.split { display: flex; gap: 0; margin: -28px -34px -60px; min-height: calc(100vh - 62px); }
.split-list { flex: 0 0 330px; background: var(--card); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 10px; }
.split-detail { flex: 1 1 auto; min-width: 0; padding: 26px 32px 60px; display: flex; flex-direction: column; gap: 18px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 32px; padding: 0 12px; border-radius: 16px; font-size: 13px; }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.list-item {
  display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); border: 1px solid transparent;
}
.list-item:hover { background: var(--bg); color: var(--ink); }
.list-item.active { background: var(--ok-bg); border-color: #bccbbf; }
.list-item .row { display: flex; justify-content: space-between; gap: 8px; }
.list-item .row + .row { font-size: 13px; color: var(--muted); }
.list-day { font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); text-transform: uppercase; letter-spacing: 0.6px; padding: 5px 12px; margin: 14px 0 4px; border-radius: 8px; }
.list-day:first-child { margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.stat .label { font-size: 13px; color: var(--brand-dark); font-weight: 600; }
.stat .value { font-size: 21px; font-weight: 700; }
.stat.bad .value { color: var(--bad); }
.stat.warn .value { color: var(--warn); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; }

/* Presentielijst */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { font-size: 12px; color: var(--brand-dark); font-weight: 700; text-align: left; padding: 8px 10px; }
td { padding: 9px 10px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
tbody th { font-size: 14px; color: var(--ink); border-top: 1px solid var(--line-soft); }
thead th { background: var(--soft); }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover td, .data-table tbody tr:hover th { background: #f7faf6; }
.data-table tbody tr.selected td, .data-table tbody tr.selected th { background: var(--soft); }
.roster th.lesson { text-align: center; padding: 6px 4px; }
.roster th.lesson button { font-size: 12px; min-height: 0; padding: 4px 6px; border-color: transparent; background: none; color: var(--brand-dark); font-weight: 700; flex-direction: column; gap: 0; line-height: 1.3; }
.roster th.lesson button span { font-weight: 400; }
.roster th.lesson button:hover { border-color: var(--line); }
.roster th.lesson.today button { background: var(--soft); color: var(--brand); font-weight: 700; }
.roster th.lesson.cancelled button { text-decoration: line-through; }
.roster td.cell { text-align: center; padding: 5px 4px; }
.att { width: 42px; min-height: 34px; padding: 0; font-weight: 700; }
.att.present { background: var(--ok-bg); border-color: #bccbbf; color: var(--ok); }
.att.absent { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.att.open { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.att.future { color: #b0bcb3; }
.att.cancelled { background: var(--grey-bg); color: var(--grey); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 12px; }

/* Planning */
.week-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.active { background: var(--brand); color: #fff; font-weight: 600; }
.planning { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.planning .grid-card { flex: 999 1 640px; min-width: 0; overflow-x: auto; padding: 12px; }
.planning aside { flex: 1 1 280px; max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.cal-head, .cal-notime, .cal-grid { display: grid; grid-template-columns: 52px repeat(7, minmax(104px, 1fr)); min-width: 800px; }
.cal-head div { text-align: center; padding: 4px 4px 8px; font-size: 13px; color: var(--brand-dark); font-weight: 700; }
.cal-head b { display: block; font-size: 19px; color: var(--ink); width: 34px; height: 32px; line-height: 32px; margin: 0 auto; border-radius: 16px; }
.cal-head .today b { background: var(--brand); color: #fff; }
.cal-notime { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-notime > div { padding: 6px 4px; display: flex; flex-direction: column; gap: 4px; min-height: 44px; border-left: 1px solid var(--line); }
.cal-notime > .lbl { border-left: 0; font-size: 11px; color: var(--muted); text-align: right; padding-right: 8px; justify-content: center; }
.cal-grid { grid-auto-rows: 26px; position: relative; }
.cal-col { border-left: 1px solid var(--line); }
.cal-col.today { background: #f7faf6; }
.cal-hour { border-top: 1px solid var(--line-soft); }
.cal-hour-label { font-size: 11px; color: var(--muted); text-align: right; padding-right: 8px; transform: translateY(-8px); }
.ev {
  margin: 1px 3px; border-radius: 7px; padding: 4px 7px; font-size: 12px; line-height: 1.3; text-decoration: none;
  background: var(--ok-bg); color: var(--ink); border: 1px solid #bccbbf; overflow: hidden; text-align: left;
  display: block; min-height: 0; white-space: normal; justify-content: flex-start;
}
.ev b { display: block; font-size: 12.5px; }
.ev.es { background: var(--brand); border-color: var(--brand); color: #fff; }
.ev.en { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.ev.cancelled { opacity: 0.55; text-decoration: line-through; }
.ev.selected { box-shadow: 0 0 0 3px var(--accent); }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; min-width: 760px; }
.month .dow { font-size: 12px; color: var(--brand-dark); font-weight: 700; text-align: center; }
.month .day { border: 1px solid var(--line); border-radius: 8px; min-height: 96px; padding: 6px; background: var(--card); display: flex; flex-direction: column; gap: 3px; }
.month .day.other { background: var(--bg); opacity: 0.7; }
.month .day.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.month .day .n { font-size: 12px; font-weight: 700; color: var(--brand-dark); }
.legend-sw { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; background: var(--ok-bg); border: 1px solid #bccbbf; }
.sw.es { background: var(--brand); border-color: var(--brand); }

/* Klanten */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar .grow { flex: 1 1 auto; }
.toolbar input[type="search"] { width: 280px; }
.table-card { padding: 0; overflow: hidden; }
.table-card .table-wrap { max-width: 100%; }
.table-card td, .table-card tbody th { padding: 9px 12px; }
.table-card thead th { padding: 10px 12px; }
.code { font-size: 12px; color: var(--muted); font-weight: 400; }

/* Zijpaneel en dialoog */
.backdrop { position: fixed; inset: 0; background: rgba(21, 40, 27, 0.28); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--card); z-index: 41;
  box-shadow: -10px 0 30px rgba(21, 40, 27, 0.12); display: flex; flex-direction: column;
}
.drawer.wide { width: min(640px, 100vw); }
.drawer-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; }
.drawer-head .grow { flex: 1 1 auto; min-width: 0; }
.drawer-body { padding: 18px 22px 30px; overflow-y: auto; flex: 1 1 auto; display: flex; flex-direction: column; gap: 18px; }
.drawer-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.avatar { width: 46px; height: 46px; border-radius: 23px; background: var(--ok-bg); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 46px; }
dl.facts { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 14px; }
dl.facts dt { color: var(--brand-dark); font-weight: 600; }
dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.enr { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.enr.open { border-color: var(--bad-line); background: #fff8f6; }
.enr .top { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.enr .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.note { background: var(--bg); border-radius: 8px; padding: 9px 12px; font-size: 14px; white-space: pre-line; }
.note .by { display: block; font-size: 12px; color: var(--muted); }
.member-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.member-list .check { padding: 5px 0; }
details summary { cursor: pointer; color: var(--brand); font-size: 14px; }
pre.mail { white-space: pre-wrap; font: 14px/1.5 system-ui, sans-serif; background: var(--bg); border-radius: 8px; padding: 12px; margin: 0; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 10px; z-index: 60; font-size: 14px; max-width: min(560px, 92vw);
}
.toast.bad { background: var(--bad); }
.banner { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.banner.info { background: var(--soft); border-color: var(--line); color: var(--ink); }

/* Mails */
.mail-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.tpl { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.tpl:hover { background: var(--bg); color: var(--ink); }
.tpl.active { background: var(--ok-bg); }
.tpl .row { display: flex; justify-content: space-between; gap: 8px; }
.recipient { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.recipient .top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.recipient .top .grow { flex: 1 1 auto; }

/* Login */
.login { max-width: 380px; margin: 12vh auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.login h1 { margin-bottom: 18px; }

@media (max-width: 1100px) {
  .kpis, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .week-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mail-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .body { flex-direction: column; }
  .nav { flex: 0 0 auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .nav .spacer { display: none; }
  .logo { flex: 0 0 auto; }
  .main { padding: 18px 16px 40px; }
  .split { flex-direction: column; margin: -18px -16px -40px; }
  .split-list { flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .split-detail { padding: 18px 16px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .search { display: none; }
}
.section-sub { margin: 18px 0 10px; font-size: 14px; color: var(--brand-dark); font-weight: 700; }
.seg .btn { border: 0; border-radius: 0; }
.seg .btn + .btn { border-left: 1px solid var(--line); }
.seg { align-self: flex-start; }
.task b { display: block; }
.week-mini a { text-decoration: none; }
.drawer > form { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.drawer-body { min-height: 0; }
.list-item .row > span:last-child { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.cols.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.even .week-mini { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.lesson-row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.lesson-row .side .btn { min-height: 34px; }
.lesson-row .side .chips { justify-content: flex-end; }
@media (max-width: 1100px) { .cols.even { grid-template-columns: minmax(0, 1fr); } }
.table-card .bulk-head { padding: 12px 14px 4px; margin-bottom: 4px; }
.bulk-head .grow { flex: 1 1 auto; }
.notice {
  position: fixed; left: 24px; bottom: 24px; z-index: 80; max-width: min(460px, 92vw); background: var(--bad-bg); border: 1px solid var(--bad-line);
  color: var(--bad); border-radius: 12px; padding: 12px 44px 12px 16px; font-size: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
.notice p + p { margin-top: 6px; }
.notice-close { position: absolute; top: 8px; right: 8px; min-height: 0; padding: 2px 8px; background: none; border-color: transparent; color: var(--bad); }
.cal-scroll { overflow-y: auto; min-width: 800px; }
.cal-scroll .cal-head { position: sticky; top: 0; z-index: 3; background: var(--card); box-shadow: 0 1px 0 var(--line); }
/* Testomgeving: vaste balk bovenaan */
.env-test body::before {
  content: "TESTOMGEVING · wijzigingen hier komen niet in de echte administratie"; display: block; text-align: center; font-size: 13px; font-weight: 700;
  padding: 6px 12px; background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--warn-line);
}
/* Klanten: sorteerbare kolommen met filter per kolom */
.klanten-wrap { position: relative; }
.klanten-table th.th-col { padding: 0; white-space: nowrap; }
.th-inner { display: flex; align-items: center; }
.th-sort { border: 0; background: none; min-height: 0; padding: 9px 4px 9px 10px; font: inherit; font-size: 12px; font-weight: 700; color: var(--brand-dark); }
.th-sort:hover { color: var(--brand); }
.th-filter { border: 1px solid transparent; background: none; min-height: 0; padding: 0 5px; margin-right: 6px; font-size: 13px; line-height: 20px; color: var(--muted); border-radius: 5px; }
.th-filter:hover { border-color: var(--line); background: #fff; color: var(--brand-dark); }
.th-filter.on { background: var(--brand); color: #fff; }
th.th-col.filtered .th-sort { color: var(--brand); text-decoration: underline; }
.col-filter-backdrop { position: fixed; inset: 0; z-index: 30; }
.col-filter { position: absolute; z-index: 31; width: 270px; padding: 12px 14px; box-shadow: 0 14px 40px rgba(21, 40, 27, 0.18); display: flex; flex-direction: column; gap: 8px; }
.col-filter .row-head, .col-filter .row-foot { display: flex; justify-content: space-between; align-items: center; }
.col-filter .row-foot { justify-content: flex-end; }
.col-filter .sort-row { display: flex; gap: 6px; }
.col-filter .opts { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; }
.col-filter .opts .check { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: 14px; color: var(--ink); margin: 0; }
.col-filter .opts .grow { flex: 1 1 auto; }
.who { display: inline-flex; align-items: center; gap: 10px; }
.who > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.avatar.sm { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 15px; font-size: 12px; }
.avatar.lg { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 26px; font-size: 18px; }
.gtag { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-size: 12.5px; font-weight: 600; background: #fbfcfb; white-space: nowrap; }
.ic { display: inline-flex; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--brand-dark); background: #fff; text-decoration: none; }
/* Klantkaart */
.drawer-body.kaart { background: var(--bg); gap: 12px; }
.kaart-head h2 { font-size: 22px; }
.kaart-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kaart-stats .value.sm { font-size: 15px; }
.kaart-stats .value a { color: inherit; text-decoration: none; }
.kaart-stats .stat.bad { background: var(--bad-bg); border-color: var(--bad-line); }
.kaart-stats .stat.bad .label { color: var(--bad); }
.kaart-card { padding: 14px 16px; }
.kaart-card .card-head { margin-bottom: 8px; }
.kaart-card .card-head h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.kaart-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.kaart-two dl.facts { grid-template-columns: 82px 1fr; font-size: 13px; }
.kaart-two .note { margin-top: 8px; font-size: 13px; }
.kaart-status { margin-top: 10px; }
.kaart-status .row { display: flex; gap: 6px; flex-wrap: wrap; }
.kaart-status select { flex: 1 1 120px; }
.kaart-status input[type="date"] { flex: 1 1 120px; }
.enr-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.enr-row:first-of-type { border-top: 0; }
.enr-row .grow { flex: 1 1 200px; min-width: 0; }
.enr-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.drawer.wide { width: min(660px, 100vw); }
@media (max-width: 700px) { .kaart-two, .kaart-stats { grid-template-columns: 1fr; } }
.chips .grow { flex: 1 1 auto; }
.klanten-page .toolbar input[type="search"] { width: 320px; }

/* Groep verwijderen: onderaan het formulier, met bevestiging */
.delete-zone { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.delete-confirm { padding: 12px; border: 1px solid var(--bad-line); border-radius: 8px; }
.delete-confirm p { margin-bottom: 10px; }

/* Leslink op de groepspagina: zichtbaar en te kopiëren */
.link-row { display: flex; gap: 8px; margin-top: 4px; align-items: center; }
.link-field { flex: 1; min-width: 0; font-size: 13px; }
.delete-confirm .row { display: flex; gap: 8px; }
.card-head h3 label { font: inherit; color: inherit; margin: 0; }

/* Lesinhoud (hoofdstuk) onder de lesdatum in de presentielijst */
.roster th.lesson button span.topic { color: var(--muted); font-size: 11px; }
