:root {
  --ink: #0D2340;
  --ink-2: #2E4560;
  --muted: #4A5F6E;
  --line: #D8E1E3;
  --line-2: #BCCAD0;
  --bg: #F4F7F7;
  --card: #FFFFFF;
  --navy: #0D2340;
  --navy-2: #1B3557;
  --nav-text: #B9C6D3;
  --accent: #1D6E7B;
  --accent-soft: #DDF0F2;
  --red: #B3261E; --red-bg: #FBE6E4;
  --orange: #8A5A0B; --orange-bg: #FBF0DB;
  --green: #2F7A4D; --green-bg: #E3F3E8;
  --blue: #1D4ED8; --blue-bg: #DBEAFE;
  --grey-bg: #EAF0F1;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, "Inter Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #1D6E7B; outline-offset: 2px; }

/* ---------- inlog ---------- */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-brand {
  flex: 1 1 420px; background: var(--navy); color: #fff; padding: 56px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.brand-name { font-size: 22px; font-weight: 700; }
.brand-name span { font-weight: 400; color: var(--nav-text); }
.brand-sub { font-size: 13px; color: var(--nav-text); margin-top: 4px; }
.login-brand h1 { margin: 0 0 16px; font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; max-width: 460px; }
.login-brand p { margin: 0; color: var(--nav-text); max-width: 460px; }
.spark { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--nav-text); }
.spark strong { color: #fff; }
.login-main { flex: 999 1 520px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.login-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.login-card h2 { margin: 0; font-size: 24px; }
.hint-box { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--bg); border-radius: 10px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 700px) { .login-brand { padding: 32px 24px; } .login-brand h1 { font-size: 32px; } .login-card { padding: 28px; } }

/* ---------- layout ---------- */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.nav { flex: 1 1 232px; max-width: 100%; background: var(--navy); color: #fff; padding: 28px 16px; display: flex; flex-direction: column; gap: 24px; }
.nav-brand { padding: 0 12px; }
.nav-brand .brand-name { font-size: 17px; }
.nav-brand .brand-sub { font-size: 12px; margin-top: 2px; }
.nav-links { display: flex; flex-direction: column; gap: 4px; }
.nav-links a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--nav-text); text-decoration: none; font-size: 14px; }
.nav-links a:hover { background: #163050; color: #fff; }
.nav-links a.active { background: var(--navy-2); color: #fff; font-weight: 600; }
.nav-count { font-size: 12px; color: #fff; padding: 2px 8px; border-radius: 99px; }
.nav-links a.active .nav-count { background: var(--accent); }
.nav-user { margin-top: auto; padding: 0 12px; display: flex; flex-direction: column; gap: 12px; }
.nav-user-row { display: flex; align-items: center; gap: 10px; }
.nav-user-row small { display: block; font-size: 12px; color: var(--nav-text); }
.avatar { width: 34px; height: 34px; border-radius: 99px; background: #3A5272; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; border: 2px solid #fff; margin-right: -6px; }
.link-btn { background: none; border: 0; color: var(--nav-text); text-align: left; padding: 8px 0; font-size: 13px; text-decoration: underline; }
.main { flex: 999 1 560px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 700px) { .main { padding: 20px 16px; } .nav { padding: 16px; } .nav-links { flex-direction: row; flex-wrap: wrap; } .nav-user { margin-top: 0; } }

.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -0.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.btn:hover { background: #F7FAFA; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #EDE8DC; }
.btn.primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.ghost { border-color: transparent; background: var(--bg); }
.btn.small { min-height: 38px; padding: 0 12px; font-size: 13px; }
.btn.on { border: 2px solid var(--accent); background: var(--accent-soft); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; flex: none; }

.seg { display: inline-flex; align-self: flex-start; padding: 4px; gap: 4px; background: #E2E9EA; border-radius: 12px; flex-wrap: wrap; }
.seg button { min-height: 40px; padding: 0 16px; border-radius: 9px; border: 0; background: transparent; color: var(--ink-2); font-size: 14px; }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(18,24,43,.12); }
.seg .cnt { font-size: 12px; color: var(--muted); margin-left: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.person-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; }
.person-chip.on { border: 2px solid var(--accent); background: var(--accent-soft); font-weight: 600; }
.person-chip .avatar { width: 26px; height: 26px; font-size: 10px; }

/* ---------- kaarten ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat span { display: block; font-size: 12px; color: var(--muted); }
.stat strong { font-size: 26px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .list { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.split > .detail { flex: 1 1 360px; min-width: 0; position: sticky; top: 16px; }
@media (max-width: 900px) { .split > .detail { position: static; } }

.item { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.item:hover { border-color: var(--line-2); }
.item.sel { border: 2px solid var(--accent); padding: 15px; }
.item-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.item-title { font-size: 16px; font-weight: 600; }
.item-sub { font-size: 13px; color: var(--ink-2); }
.item-meta { font-size: 12px; color: var(--muted); }

.badge { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; background: var(--grey-bg); color: var(--ink-2); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.orange { background: var(--orange-bg); color: var(--orange); }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.blue { background: var(--blue-bg); color: var(--blue); }
.badge.dark { background: var(--ink); color: #fff; }

.empty { padding: 28px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 14px; }

.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 0; }
.dl dt { font-size: 12px; color: var(--muted); }
.dl dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.dl .full { grid-column: 1 / -1; }
.dl .full dd { font-weight: 400; white-space: pre-wrap; }
.attempts { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.attempts div { display: flex; gap: 10px; }
.attempts time { color: var(--muted); flex: none; min-width: 92px; }
.detail-section { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > select, .row > input { flex: 1 1 160px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* ---------- formulieren ---------- */
.form { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .legend { font-size: 13px; font-weight: 600; }
.legend small { font-weight: 400; color: var(--muted); }
.input, select.input, textarea.input { min-height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: #fff; font-size: 14px; width: 100%; }
textarea.input { padding: 12px; resize: vertical; min-height: 84px; }
.input.bad { border: 2px solid var(--red); background: #FFFBFA; }
.err-text { font-size: 12px; color: var(--red); }
.fields2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields2, .fields3, .grid2, .dl { grid-template-columns: minmax(0, 1fr); } }
.box { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #F7FAFA; display: flex; flex-direction: column; gap: 12px; }
.box.bad { border: 2px solid var(--red); }
.mode-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mode-choice button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; }
.mode-choice button.on { border: 2px solid var(--accent); background: var(--accent-soft); }
.mode-choice small { color: var(--muted); font-size: 12px; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.alert.error { background: #FEF3F2; border: 1px solid #FDA29B; color: #912018; }
.alert.ok { background: #ECFDF3; border: 1px solid #75E0A7; color: #085D3A; align-items: center; }
.alert.info { background: var(--accent-soft); border: 1px solid #7FC4CF; color: #123A4A; }
.alert strong { display: block; }
.code-big { font-size: 28px; font-weight: 700; letter-spacing: .2em; font-variant-numeric: tabular-nums; }

/* ---------- taken ---------- */
.task { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; }
.task input[type=checkbox] { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.task-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.task.done { align-items: center; flex-wrap: wrap; }
.task.done .item-title { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: 15px; }
.task.archived { background: #F7FAFA; border-style: dashed; align-items: center; flex-wrap: wrap; }
.people { display: flex; align-items: center; }
.section-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.section-title h2 { margin: 0; font-size: 15px; color: var(--ink-2); }
.stack { display: flex; flex-direction: column; gap: 10px; max-width: 920px; }
.search { display: flex; align-items: center; gap: 10px; min-height: 48px; border: 2px solid var(--accent); border-radius: 12px; padding: 0 14px; background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 15px; background: transparent; min-height: 44px; }
.result { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: #F7FAFA; border: 1px solid var(--line); }

/* ---------- tabel ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 460px; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 14px 20px; border-bottom: 1px solid var(--line); }
td { padding: 0; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
td button.rowbtn { width: 100%; min-height: 52px; padding: 14px 20px; border: 0; background: transparent; text-align: left; font-size: 14px; }
tr.sel td { background: var(--accent-soft); }
tr.admin td { background: #EEF7F8; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.error { background: var(--red); }

/* ---------- uitbreidingen ---------- */
.nav-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #A3B3BE; padding: 14px 12px 4px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; }
.main.wide { max-width: none; }
.search.soft { border: 1px solid var(--line-2); max-width: 920px; }
.search.soft:focus-within { border: 2px solid var(--accent); }
.icon-btn.small { width: 36px; height: 36px; }
.btn.danger { border-color: #FDA29B; color: var(--red); background: #fff; }
.btn.danger:hover { background: #FEF3F2; }
.alert.warn { background: #FFFAEB; border: 1px solid #FEC84B; color: #7A2E0E; }
.repeat { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-2); font-weight: 600; }
.chip.quick { min-height: 34px; font-size: 12px; padding: 0 10px; }
.chip.quick:hover { border-color: var(--ink-2); }

.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.col { flex: 0 0 280px; background: #E6EDEE; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; min-height: 200px; }
.col.over { border-color: var(--accent); background: var(--accent-soft); }
.col-head { display: flex; gap: 10px; align-items: center; padding: 4px 4px 6px; }
.col-head strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-head small { display: block; font-size: 12px; color: var(--muted); }
.col-body { display: flex; flex-direction: column; gap: 8px; }
.mini { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; cursor: grab; font-size: 14px; }
.mini:hover { border-color: var(--line-2); }
.mini.dragging { opacity: .45; }
.col-tasks { display: flex; flex-direction: column; gap: 6px; padding: 8px 4px 2px; border-top: 1px dashed var(--line-2); margin-top: 4px; }
.mini-task { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; background: rgba(255,255,255,.6); border-radius: 8px; padding: 6px 8px; }
.mini-task .badge { font-size: 11px; }

.chart { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 8px; overflow-x: auto; }
.bar-group { flex: 1 0 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 14px; }
.bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.bar { width: 45%; max-width: 16px; min-height: 2px; border-radius: 3px 3px 0 0; }
.bar.blue, .dot.blue { background: #2563EB; }
.bar.green, .dot.green { background: #16A34A; }
.bar-label { font-size: 10px; color: var(--muted); white-space: nowrap; height: 12px; }
.legend-row { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.hbar { display: grid; grid-template-columns: 120px 1fr 32px; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; }
.hbar-track { height: 10px; background: var(--grey-bg); border-radius: 99px; overflow: hidden; }
.hbar-track span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
td.pad { padding: 12px 14px; }

.log-day { font-size: 12px; font-weight: 700; color: var(--muted); padding: 14px 20px 6px; text-transform: uppercase; letter-spacing: .05em; }
.log-row { display: grid; grid-template-columns: 48px 118px 1fr auto; gap: 12px; align-items: center; padding: 8px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.log-row time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.log-row .badge { justify-self: start; }
.log-text { min-width: 0; word-break: break-word; }
@media (max-width: 640px) { .log-row { grid-template-columns: 44px 1fr; } .log-row .badge { grid-column: 2; } .log-row .log-text, .log-row > .small { grid-column: 2; } }


/* ---------- Crewdeck ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -0.01em; }
.logo svg { flex: none; }
.nav-brand .logo { font-size: 18px; }
.nav-org { font-size: 12px; color: var(--nav-text); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links a.soon { color: #72889A; cursor: default; }
.nav-links a.soon:hover { background: transparent; color: #72889A; }
.soon-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid #3A5578; border-radius: 99px; padding: 1px 7px; }
.login-brand { background: radial-gradient(1200px 600px at -10% 110%, #123A4A 0%, transparent 60%), var(--navy); }
.login-brand .logo { font-size: 24px; }
.login-card .switch { font-size: 14px; text-align: center; margin: 0; }
.login-card .switch a, .link { color: var(--accent); font-weight: 600; }
.feature-list { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--nav-text); font-size: 15px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list svg { flex: none; margin-top: 3px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hello { display: flex; flex-direction: column; gap: 4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card h2 { margin: 0 0 12px; font-size: 16px; }
.card .more { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 14px; padding: 8px 10px; border-radius: 8px; background: #F6F9F9; text-decoration: none; color: inherit; }
.mini-row:hover { background: #F1F5F9; }
.perm-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.perm-group h3 { margin: 0 0 4px; font-size: 13px; color: var(--ink-2); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.role-list { display: flex; flex-direction: column; gap: 8px; }
.role-item { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.role-item.sel { border: 2px solid var(--accent); padding: 11px 13px; }
.role-item small { display: block; color: var(--muted); font-size: 12px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.code-input { letter-spacing: .2em; }
.tabs-inline { display: flex; gap: 6px; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } }

.nav-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.menu-btn { display: none; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #2A4466; background: transparent; color: #fff; font-size: 14px; font-weight: 600; align-items: center; gap: 8px; }
@media (max-width: 700px) {
  .nav { position: sticky; top: 0; z-index: 30; gap: 12px; }
  .menu-btn { display: inline-flex; }
  .nav:not(.open) .nav-links, .nav:not(.open) .nav-user { display: none; }
  .nav.open .nav-links { flex-direction: column; flex-wrap: nowrap; }
  .nav-top .nav-org { margin-top: 2px; }
}

/* ---------- menu in groepen ---------- */
.nav-links { gap: 6px; }
.nav-group { display: flex; flex-direction: column; }
.nav-group-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent;
  color: #A3B3BE; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.nav-group-btn:hover { color: #fff; background: #11253F; }
.nav-group-btn[data-locked] { cursor: default; }
.nav-group-btn[data-locked]:hover { background: transparent; color: #A3B3BE; }
.nav-group-end { display: inline-flex; align-items: center; gap: 8px; }
.nav-group-btn .chev { transition: transform .15s; transform: rotate(-90deg); }
.nav-group.open .nav-group-btn .chev { transform: none; }
.nav-group-btn[data-locked] .chev { opacity: .35; }
.nav-group-items { display: none; flex-direction: column; gap: 2px; padding-bottom: 6px; }
.nav-group.open .nav-group-items { display: flex; }
.nav-label { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.nav-label svg { flex: none; opacity: .8; }
.nav-links a.active .nav-label svg { opacity: 1; color: #7FC4CF; }
.nav-group-btn .nav-count { text-transform: none; letter-spacing: 0; background: #203B5E; }
.live-dot { width: 9px; height: 9px; border-radius: 99px; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.25); flex: none; display: inline-block; }
.nav-clock { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #fff; text-decoration: none; padding: 8px 10px; border-radius: 8px; background: #14301F; border: 1px solid #1F5133; }
.nav-clock:hover { background: #183B26; }

/* ---------- uren ---------- */
.weeknav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.weeknav strong { min-width: 190px; text-align: center; font-size: 15px; }
.weeknav .icon-btn { background: #fff; border: 1px solid var(--line-2); }
.clock { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 24px; }
.clock.on { border: 2px solid #75E0A7; background: #F6FEF9; padding: 17px 23px; }
.clock-text { display: flex; flex-direction: column; gap: 2px; }
.clock-text .small { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 600; }
.clock-text strong { font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.clock:not(.on) .clock-text strong { font-size: 20px; }
.clock-mini { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; color: var(--green); }
.progress { height: 8px; background: var(--grey-bg); border-radius: 99px; overflow: hidden; margin-top: -10px; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.days { display: flex; flex-direction: column; gap: 10px; }
.day { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.day.today { border-color: #93C5FD; box-shadow: inset 3px 0 0 #2563EB; }
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.day-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.day-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.entry { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; padding: 8px 10px; background: #F6F9F9; border-radius: 8px; }
.entry.bad { background: #FEF3F2; }
.entry-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-width: 0; }
.entry-time { font-weight: 600; font-variant-numeric: tabular-nums; }
.entry-note { color: var(--ink-2); }
.entry-side { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.entry-reason { flex-basis: 100%; font-size: 13px; color: var(--red); }
.entry-form { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 2px solid var(--accent); border-radius: 10px; background: var(--accent-soft); }
.fields4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .fields4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.add-line { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px dashed var(--line-2); border-radius: 8px; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.add-line:hover { border-color: var(--accent); color: var(--accent); }
.submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 2px solid #7FC4CF; background: var(--accent-soft); }

table.roster { min-width: 900px; }
table.roster th.is-today, table.roster td.is-today { background: #F0F7FF; }
table.roster tr.me td { background: #F4FAFA; }
td.rc { padding: 6px; vertical-align: top; min-width: 100px; }
td.rc { position: relative; }
.shift { display: flex; flex-direction: column; width: 100%; text-align: left; margin-bottom: 4px; padding: 5px 8px; border-radius: 7px; border: 1px solid #BFE3E8; background: #DDF0F2; color: #123A4A; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
button.shift:hover { border-color: var(--accent); }
.shift small { font-weight: 400; font-size: 11px; color: #1D6E7B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-add { width: 100%; min-height: 30px; border: 1px dashed var(--line-2); border-radius: 7px; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; opacity: .55; }
.cell-add:hover, .cell-add:focus-visible { opacity: 1; border-color: var(--accent); color: var(--accent); }

.approve .table-wrap table { min-width: 560px; }
.approve input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.reject-box { margin-top: 12px; padding: 14px; border-radius: 10px; background: #FEF3F2; border: 1px solid #FDA29B; display: flex; flex-direction: column; gap: 10px; }

/* ---------- kennisbank ---------- */
.card .kb-title, .kb-title { margin: 8px 0 4px; font-size: 24px; letter-spacing: -0.01em; }
.prose { font-size: 15px; line-height: 1.6; color: var(--ink); }
.prose h2 { font-size: 19px; margin: 18px 0 6px; }
.prose h3 { font-size: 16px; margin: 16px 0 4px; }
.prose h4 { font-size: 15px; margin: 14px 0 4px; }
.prose p { margin: 0 0 10px; }
.prose ul, .prose ol { margin: 0 0 10px; padding-left: 22px; }
.prose li { margin: 2px 0; }
.prose > :first-child { margin-top: 0; }
.item-title svg { color: var(--accent); }

/* ---------- documenten ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.crumbs a { color: var(--accent); font-weight: 600; text-decoration: none; }
.upload-btn { position: relative; }
.upload-btn:focus-within { outline: 3px solid #1D6E7B; outline-offset: 2px; }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.folder { display: flex; align-items: center; gap: 12px; text-align: left; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.folder:hover { border-color: var(--accent); }
.folder svg { color: var(--accent); flex: none; }
.folder small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.doc-list { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.doc:first-child { border-top: 0; }
.doc-ext { flex: none; width: 46px; height: 46px; border-radius: 10px; background: var(--grey-bg); color: var(--ink-2); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .04em; }
.doc-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.doc-main strong { word-break: break-word; }
.doc-act { display: flex; gap: 8px; align-items: center; }

/* ---------- uit dienst ---------- */
.reason-grid { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.reason-grid .legend { margin-bottom: 6px; grid-column: 1 / -1; padding: 0; }
.reason { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 14px; cursor: pointer; }
.reason.on { border: 2px solid var(--accent); background: var(--accent-soft); padding: 10px 13px; font-weight: 600; }
.reason.disabled { cursor: default; opacity: .7; }
.reason input { margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.reason small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.src-tag { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: #E0F2FE; color: #075985; }
.src-tag.soft { background: var(--grey-bg); color: var(--ink-2); }

/* ---------- prikklok-scherm ---------- */
.kiosk { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1400px 700px at 110% -10%, #123A4A 0%, transparent 55%), var(--navy); color: #fff; }
.kiosk-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 32px; flex-wrap: wrap; }
.kiosk-head .logo { font-size: 22px; }
.kiosk-org { font-size: 14px; color: var(--nav-text); margin-top: 4px; }
.kiosk-clock { text-align: right; }
.kiosk-clock strong { display: block; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kiosk-clock span { color: var(--nav-text); font-size: 15px; }
.kiosk-main { flex: 1; display: flex; justify-content: center; padding: 8px 24px 24px; }
.kiosk-foot { text-align: center; color: #7B90A1; font-size: 13px; padding: 14px 24px 22px; }
.kiosk-list { width: 100%; max-width: 1200px; display: flex; flex-direction: column; gap: 18px; }
.kiosk-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kiosk-bar h1 { margin: 0; font-size: 28px; }
.kiosk-bar .input { flex: 0 1 320px; margin-left: auto; min-height: 52px; font-size: 17px; background: #fff; color: var(--ink); }
.kiosk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.kiosk-person { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 14px; border-radius: 18px; border: 1px solid #244266; background: #10233C; color: #fff; text-align: center; min-height: 170px; justify-content: center; }
.kiosk-person:hover, .kiosk-person:focus-visible { border-color: #7FC4CF; background: #132A48; }
.kiosk-person.in { border-color: #1F7A4C; background: #0F2A21; }
.kiosk-person strong { font-size: 17px; }
.kiosk-person small { display: inline-flex; align-items: center; gap: 6px; color: var(--nav-text); font-size: 13px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl { width: 76px; height: 76px; font-size: 26px; }
.kiosk-pad { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.kiosk-pad > .btn.ghost { align-self: flex-start; background: #17304E; color: #fff; }
.kiosk-who { display: flex; align-items: center; gap: 16px; }
.kiosk-who h1 { margin: 0; font-size: 28px; }
.kiosk-who p { margin: 4px 0 0; color: var(--nav-text); }
.kiosk-label { font-size: 15px; color: var(--nav-text); margin-top: 6px; }
.kiosk-dots { min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 14px; border-radius: 14px; background: #0C1F38; border: 2px solid #244266; }
.kiosk-dots span { width: 16px; height: 16px; border-radius: 99px; background: #fff; }
.kiosk-dots em { font-style: normal; color: #3A5578; letter-spacing: .3em; font-size: 22px; }
.kiosk-dots.bad { border-color: #F97066; }
.kiosk-err { margin: -6px 0 0; color: #FDA29B; font-weight: 600; text-align: center; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.keypad button { min-height: 74px; border-radius: 16px; border: 1px solid #244266; background: #142B4A; color: #fff; font-size: 28px; font-weight: 600; }
.keypad button:active { background: #203B5E; }
.keypad button.ok { font-size: 17px; border: 0; }
.keypad button.ok.in { background: #16A34A; }
.keypad button.ok.out { background: #F59E0B; color: #1F1300; }
.keypad button:disabled { opacity: .4; cursor: not-allowed; }
.kiosk-done, .kiosk-msg { align-self: center; text-align: center; max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.kiosk-done h1, .kiosk-msg h1 { margin: 0; font-size: 34px; }
.kiosk-done p, .kiosk-msg p { margin: 0; color: var(--nav-text); font-size: 18px; }
.kiosk-check { width: 110px; height: 110px; border-radius: 99px; display: flex; align-items: center; justify-content: center; background: #16A34A; margin-bottom: 8px; }
.kiosk-done.out .kiosk-check { background: #F59E0B; }
.kiosk-check svg { width: 58px; height: 58px; stroke: #fff; }
@media (max-width: 640px) { .kiosk-head { padding: 18px; } .kiosk-clock strong { font-size: 34px; } .kiosk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .keypad button { min-height: 64px; } }

/* ---------- vertrek-label ---------- */
.leave-tag { display: inline-flex; align-items: center; margin-top: 4px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--red-bg); color: var(--red); white-space: nowrap; }
.person-chip .leave-tag { margin: 0 0 0 4px; }
td.rc.gone { background: repeating-linear-gradient(135deg, #F6F9F9 0 8px, #EAF0F1 8px 16px); }
.gone-txt { display: block; font-size: 11px; color: var(--muted); text-align: center; padding: 6px 0; }

/* ---------- rooster per maand ---------- */
.roster-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.roster-bar .seg { align-self: auto; }
.month { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.month-head, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-head span { padding: 10px 12px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.mday { position: relative; min-height: 132px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mday:nth-child(7n) { border-right: 0; }
.mday.out { background: #F8FAFA; }
.mday.out .mday-num { color: #98A8B2; }
.mday.today { background: #F0F7FF; }
.mday.today .mday-num { background: #2563EB; color: #fff; }
.mday.gone { background: repeating-linear-gradient(135deg, #F6F9F9 0 8px, #EAF0F1 8px 16px); }
.mday-top { display: flex; align-items: center; justify-content: space-between; }
.mday-num { min-width: 28px; height: 28px; border-radius: 99px; border: 0; background: transparent; font-weight: 700; font-size: 13px; }
.mday-num:hover { background: var(--grey-bg); }
.mday-count { display: none; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.mday-list { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mday .shift { margin: 0; padding: 3px 6px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.mday .shift b { font-weight: 700; }
.mday .shift small { display: none; }
.mday-more { border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 600; text-align: left; padding: 2px 4px; }
.mday-add { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 7px; border: 1px dashed var(--line-2); background: #fff; color: var(--muted); opacity: 0; }
.mday:hover .mday-add, .mday-add:focus-visible { opacity: 1; }
@media (hover: none) { .mday-add { opacity: .6; } }
@media (max-width: 760px) {
  .mday { min-height: 64px; padding: 4px; }
  .mday-list, .mday-add { display: none; }
  .mday-count { display: inline-block; }
  .month-head span { padding: 8px 4px; text-align: center; }
}
.month-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.month-person { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.month-person:hover { border-color: var(--accent); }
.month-person small { display: block; font-size: 12px; color: var(--muted); }
.avatar.sm2 { width: 32px; height: 32px; font-size: 11px; }
.leave-badge { display: inline-flex; flex-direction: column; white-space: normal; line-height: 1.25; }
.leave-badge small { font-weight: 500; font-size: 11px; }

/* ---------- verlof, ziek, beschikbaarheid ---------- */
.abs-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin: 0 4px 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.abs-chip.verlof, .abs-chip.bijzonder { background: #EDE9FE; color: #5B21B6; }
.abs-chip.ziek { background: var(--red-bg); color: var(--red); }
.abs-chip.pending { background: #fff; border: 1px dashed currentColor; }
.abs-chip.big { font-size: 12px; padding: 6px 10px; margin: 0; flex: none; min-width: 64px; text-align: center; }
td.rc.absent { background: #FAF8FF; }
.av-tag { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-2); margin-bottom: 4px; }
.av-tag.kan_niet { color: var(--muted); text-decoration: line-through; text-decoration-color: #BCCAD0; }
.av-dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; flex: none; }
.av-dot.kan { background: #16A34A; }
.av-dot.kan_niet { background: #94A3B8; }
.wk { display: block; font-size: 11px; font-weight: 600; padding: 3px 6px; border-radius: 6px; margin-bottom: 4px; }
.wk small { display: block; font-weight: 500; }
.wk.ok { background: #F0FDF4; color: #15803D; }
.wk.warn { background: var(--orange-bg); color: var(--orange); }
.wk.bad { background: var(--red-bg); color: var(--red); }
.compare-toggle { min-height: 40px; margin-left: auto; }
.legend-bar { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.legend-bar > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-bar .abs-chip, .legend-bar .wk { margin: 0; display: inline-block; }
.pub-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; border: 1px dashed #F59E0B; background: #FFFBEB; color: #78350F; font-size: 14px; }
.pub-bar.on { border: 1px solid #75E0A7; background: #ECFDF3; color: #085D3A; }
.tpl-card { padding: 0; }
.tpl-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border: 0; background: transparent; text-align: left; }
.tpl-head .chev { transform: rotate(-90deg); transition: transform .15s; flex: none; }
.tpl-head[aria-expanded="true"] .chev { transform: none; }
.tpl-card .tpl-list, .tpl-card > .row { padding: 0 20px 16px; }
.tpl-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-item { display: flex; align-items: center; gap: 4px; }
.tpl-item .shift { width: auto; margin: 0; }
.sick-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 2px solid #FDA29B; background: #FFF7F6; }
.abs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
.abs-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.link-btn.dark { color: var(--accent); font-weight: 600; text-decoration: none; padding: 0 0 0 8px; }

.av-month .month-head button { padding: 10px 12px; font-size: 12px; font-weight: 600; color: var(--accent); border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.av-month .month-head button:hover { background: var(--accent-soft); }
.mday.av { text-align: left; background: #fff; border-top: 0; border-left: 0; font: inherit; color: inherit; min-height: 104px; cursor: pointer; align-items: flex-start; }
.mday.av:disabled { cursor: default; }
.mday.av.past { background: #F8FAFA; color: #98A8B2; }
.mday.av.kan { background: #F0FDF4; }
.mday.av.kan_niet { background: #F1F5F9; }
.mday.av.picked { box-shadow: inset 0 0 0 3px var(--accent); }
.mday.av .mday-num { display: inline-flex; align-items: center; justify-content: center; }
.av-state { font-size: 12px; font-weight: 700; }
.mday.av.kan .av-state { color: #15803D; }
.mday.av.kan_niet .av-state { color: #3F566A; }
.av-note, .av-shift { font-size: 11px; color: var(--muted); }
.av-shift { color: #123A4A; }
.av-bar { display: flex; flex-direction: column; gap: 12px; position: sticky; bottom: 12px; box-shadow: 0 8px 24px rgba(16,24,40,.08); }
.av-bar.on { border: 2px solid var(--accent); }
@media (max-width: 760px) { .mday.av { min-height: 70px; padding: 4px; } .mday.av .av-note, .mday.av .av-shift { display: none; } .av-state { font-size: 10px; } }

.notif { width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: #fff; }
.notif:first-child { border-top: 0; }
.notif.unread { background: var(--accent-soft); }
.notif-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--grey-bg); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--ink-2); }
.notif-ico.ziek { background: var(--red-bg); color: var(--red); }
.notif-ico.verlof { background: #EDE9FE; color: #5B21B6; }
.notif-ico.rooster { background: var(--accent-soft); color: var(--accent); }

/* ---------- home-knop en prikklok ---------- */
.nav-home { padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid #18304F; }
.nav-home a { font-weight: 600; color: #fff; }
.kiosk, .kiosk * { caret-color: transparent; }
.kiosk { -webkit-user-select: none; user-select: none; }
.kiosk input, .kiosk textarea { caret-color: auto; -webkit-user-select: text; user-select: text; }
.kiosk-logo { cursor: default; -webkit-tap-highlight-color: transparent; }
.kiosk *:focus:not(:focus-visible) { outline: none; }
.kiosk-exit { width: 100%; max-width: 420px; background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-self: center; }
.kiosk-exit h1 { margin: 0; font-size: 24px; }
.kiosk-exit p { margin: 0; color: var(--muted); font-size: 14px; }
.kiosk-exit .kiosk-err { color: var(--red); text-align: left; margin: 0; }

/* ---------- eenvoudige app-weergave ---------- */
.m-app { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.m-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--navy); color: #fff; }
.m-top .logo { font-size: 18px; }
.m-org { font-size: 13px; color: var(--nav-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; max-width: 620px; width: 100%; margin: 0 auto; }
.m-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.m-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 56px; justify-content: center; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 600; border-radius: 10px; }
.m-tabs button svg { width: 22px; height: 22px; }
.m-tabs button.on { color: var(--accent); background: var(--accent-soft); }
.m-tabs i { position: absolute; top: 4px; left: 50%; margin-left: 6px; font-style: normal; font-size: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.m-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.m-h1 { margin: 4px 0 0; font-size: 24px; }
.m-h2 { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.m-label { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; display: block; }
.m-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.m-empty { padding: 26px 16px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line-2); border-radius: 14px; }
.m-codecard { text-align: center; padding: 26px 18px; background: var(--navy); color: #fff; border: 0; }
.m-codecard .m-label { color: var(--nav-text); }
.m-code { font-size: 56px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; margin: 4px 0 14px; }
.m-timer { height: 6px; background: #1B3557; border-radius: 99px; overflow: hidden; }
.m-timer span { display: block; height: 100%; background: #7FC4CF; border-radius: 99px; transition: width 1s linear; }
.m-codecard .m-sub { color: var(--nav-text); }
.m-help { margin: 14px 0 0; font-size: 14px; color: #E2E8F0; }
.m-status { display: flex; align-items: center; gap: 12px; }
.m-status > div { flex: 1; display: flex; flex-direction: column; }
.m-status span:not(.live-dot) { font-size: 13px; color: var(--muted); }
.m-status.in { border-color: #75E0A7; background: #F6FEF9; }
.m-item { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%; text-align: left; }
.m-item.done .m-item-body strong { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.m-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; border: 0; background: transparent; padding: 0; text-align: left; }
.m-item-body p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); white-space: pre-wrap; }
.m-item-body small { font-size: 12px; color: var(--muted); }
.m-check { flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 8px; border: 2px solid var(--line-2); background: #fff; color: #fff; font-weight: 800; }
.m-check.on { background: var(--green); border-color: var(--green); }
.m-cb { align-items: center; }
.m-cb > svg { color: var(--muted); flex: none; }
.m-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--accent); font-weight: 600; padding: 4px 0; }
.m-call { width: 100%; min-height: 54px; font-size: 16px; margin: 4px 0 12px; }
.m-call svg { width: 20px; height: 20px; }
.m-dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.m-dl dt { color: var(--muted); }
.m-dl dd { margin: 0; word-break: break-word; }
.m-attempts { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.m-attempts time { color: var(--muted); }
.m-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.m-big { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-big small { font-size: 16px; color: var(--muted); font-weight: 600; }
.m-days { display: flex; flex-direction: column; }
.m-day { display: grid; grid-template-columns: 74px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.m-day:first-child { border-top: 0; }
.m-day.today .m-dname { color: #2563EB; font-weight: 700; }
.m-dplan { color: var(--muted); font-size: 13px; min-width: 0; }
.m-dplan .abs-chip { margin: 0 4px 0 0; }
.m-dtot { font-weight: 700; font-variant-numeric: tabular-nums; }
.m-row { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; font-size: 14px; }
.m-row > span:first-child { width: 74px; color: var(--muted); }
.m-site { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0; }
.m-site a { color: var(--accent); font-weight: 600; }
.m-me { display: flex; align-items: center; gap: 14px; }
.m-me div { display: flex; flex-direction: column; gap: 2px; }
.m-me span { font-size: 13px; color: var(--muted); }
.m-link { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 52px; border: 0; border-top: 1px solid var(--line); background: transparent; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 0 2px; }
.m-link:first-child { border-top: 0; }
.m-link span { color: var(--muted); font-weight: 500; }
.m-link svg { color: var(--muted); }
.m-link.danger { color: var(--red); }

/* ---------- Crewdeck Beheer ---------- */
.adm { min-height: 100vh; }
.adm-top { background: var(--navy); color: #fff; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.adm-brand { display: flex; align-items: flex-end; gap: 12px; font-size: 18px; }
.adm-me { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--nav-text); }
.adm-me .btn.ghost { background: var(--navy-2); color: #fff; }
.adm-main { max-width: 1040px; margin: 0 auto; padding: 28px 32px 64px; display: flex; flex-direction: column; gap: 18px; }
.adm-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-list { display: flex; flex-direction: column; gap: 12px; }
.adm-req, .adm-org, .adm-create, .adm-done { display: flex; flex-direction: column; gap: 14px; }
.adm-org.blocked { border-color: #FDA29B; background: #FFFBFA; }
.adm-done { border: 2px solid var(--accent); }
.adm-done textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.adm-log { display: grid; grid-template-columns: 140px 120px 1fr; gap: 12px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.adm-log:last-child { border-bottom: 0; }
@media (max-width: 640px) {
  .adm-top { padding: 12px 16px; } .adm-main { padding: 20px 16px 48px; }
  .adm-log { grid-template-columns: 1fr; gap: 2px; }
}
.adm .item-top > .row { align-items: center; }
.adm-del { margin-left: auto; color: var(--red); }

/* geen knipperende tekstcursor buiten invoervelden */
body { caret-color: transparent; }
input, textarea, select, [contenteditable="true"] { caret-color: auto; }
.logo, .login-brand, .nav-brand, .adm-top, .page-head h1 { -webkit-user-select: none; user-select: none; }

/* ---------- CrewHarbor-huisstijl ---------- */
body { font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.logo { --logo-top: #EDE8DC; --logo-water: #7FC4CF; gap: 0; }
.ch-logo { display: block; flex: none; overflow: visible; }
.ch-logo .lt { fill: var(--logo-top); }
.ch-logo .lw { fill: var(--logo-water); }
h1, h2, .page-head h1, .login-brand h1, .kiosk-clock strong { letter-spacing: -0.02em; }
.login-brand h1 { padding-bottom: 22px; background: no-repeat left bottom / 168px 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 10'%3E%3Cpath d='M2 5 Q12 0 22 5 T42 5 T62 5 T82 5 T102 5 T122 5 T142 5 T162 5' fill='none' stroke='%237FC4CF' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.adm-brand { gap: 12px; }
.adm-sub { color: var(--nav-text); font-weight: 500; font-size: 16px; line-height: 1; padding: 2px 0 0 12px; margin-bottom: 0; border-left: 1px solid #2E4C72; }
.nav-brand .logo { margin-bottom: 6px; }
/* telefonie */
.bar.water, .dot.water { background: #2B8C9B; }
.bar.red, .dot.red { background: #B3261E; }
.bar.navy, .dot.navy { background: #0D2340; }
.bars.three .bar { width: 30%; }
.empty-state { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.empty-state h2, .empty-state p { margin: 0; }
.ph-missed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ph-missed li { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.ph-missed li:last-child { border-bottom: 0; }
.ph-missed a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ph-missed a:hover { color: var(--accent); text-decoration: underline; }
.stat small { margin-left: 4px; }
@media (max-width: 520px) { .ph-missed li { grid-template-columns: 1fr auto; } .ph-missed li > span:first-child { grid-column: 1 / -1; color: var(--muted); font-size: 12px; } }
.ph-btns { display: flex; gap: 8px; flex-wrap: wrap; } .kv dd { overflow-wrap: anywhere; min-width: 0; }

/* ---------- inloggen met e-mail, tweestapsverificatie, account ---------- */
.linkbtn { background: none; border: 0; padding: 4px 2px; font: inherit; font-weight: 600; color: var(--accent, #1D6E7B); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.linkbtn:hover { color: var(--ink); }
.linkbtn:focus-visible { outline: 2px solid var(--accent, #1D6E7B); outline-offset: 2px; border-radius: 4px; }
.card-sub { margin: 8px 0 -4px; font-size: 15px; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line, #D8E1E3); }
.mfa-steps { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; display: grid; gap: 4px; }
.mfa-qr { display: flex; justify-content: center; padding: 12px; background: #fff; border: 1px solid var(--line, #D8E1E3); border-radius: 12px; }
.mfa-qr img { display: block; width: 184px; height: 184px; }
.mfa-secret { display: block; margin-top: 8px; padding: 10px 12px; background: var(--bg, #F4F7F7); border-radius: 8px; font-size: 14px; letter-spacing: .04em; overflow-wrap: anywhere; word-break: break-all; }
details summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.small-table { font-size: 13px; }
.small-table td, .small-table th { padding: 8px 10px; }
.login-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.login-list li { display: grid; gap: 2px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 14px; min-width: 0; }
.login-list li:first-child { border-top: 0; }
.login-list .ll-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.login-list .small { overflow-wrap: anywhere; }

/* ---------- abonnement, vestigingen, salaris, import, startwizard ---------- */
.plan-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.plan-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; min-width: 0; }
.plan-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.plan-opt span { display: grid; gap: 2px; min-width: 0; }
.plan-opt small { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.plan-opt.on { border: 2px solid var(--accent); background: var(--accent-soft); padding: 11px 13px; }
.plan-opt.disabled { opacity: .6; cursor: not-allowed; }
.plan-opt:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.loc-filter { min-height: 40px; }
.progress { height: 8px; border-radius: 99px; background: var(--grey-bg); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.wiz { min-height: 100vh; background: var(--bg); }
.wiz-top { background: var(--navy); padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wiz-top .linkbtn { color: var(--nav-text); }
.wiz-main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; display: flex; flex-direction: column; gap: 20px; }
.wiz-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.wiz-steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.wiz-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--grey-bg); color: var(--ink); }
.wiz-steps li.on { color: var(--ink); font-weight: 600; border-color: var(--accent); }
.wiz-steps li.on span { background: var(--ink); color: #fff; }
.wiz-steps li.done span { background: var(--accent); color: #fff; }
.wiz-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.wiz-card h1 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
.wiz-card .lead { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.wiz-rows { display: grid; gap: 10px; }
.wiz-row { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 10px; }
.wiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wiz-tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.wiz-tips li { display: flex; gap: 10px; align-items: flex-start; }
.wiz-tips svg { stroke: var(--accent); margin-top: 2px; flex: none; }
@media (max-width: 640px) {
  .wiz-top { padding: 12px 16px; } .wiz-card { padding: 20px 16px; }
  .wiz-row { grid-template-columns: 1fr; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .wiz-card h1 { font-size: 24px; }
}

/* Beheer · inklapbare pakketten */
.plan-card > summary.plan-sum { list-style: none; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; min-height: 0; }
.plan-card > summary.plan-sum::-webkit-details-marker { display: none; }
.plan-card .plan-chev { display: inline-block; font-size: 20px; line-height: 1; transition: transform .15s ease; color: var(--muted, #4A5F6E); }
.plan-card[open] .plan-chev { transform: rotate(90deg); }
.plan-card .plan-badges { margin-left: auto; display: flex; gap: 6px; }
