: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; }

/* compacter, rustiger menu */
.nav-links { gap: 2px; }
.nav-links a { min-height: 38px; font-size: 14px; }
.nav-home { margin-bottom: 6px; }
.nav-group { border-radius: 10px; }
.nav-group.open { background: rgba(255, 255, 255, .03); }
.nav-group-btn { min-height: 34px; }
.nav-group-items { padding: 0 0 6px; }
.nav-group-items a { padding-left: 14px; }
.nav-group-btn .nav-count { background: var(--accent); }

/* Mijn uren: goedgekeurd vs nog niet goedgekeurd, en de indienbalk blijft in beeld */
.stat-sub { display: block; margin-top: 4px; font-size: 12px; color: var(--muted, #4A5F6E); line-height: 1.35; }
.progress.two { display: flex; }
.progress.two span { border-radius: 0; }
.progress.two span:first-child { border-radius: 99px 0 0 99px; }
.progress.two span.pending { background: repeating-linear-gradient(45deg, #9ED3DB 0 6px, #C7E7EC 6px 12px); }
.submit-bar.sticky { position: sticky; bottom: 16px; z-index: 20; box-shadow: 0 10px 30px rgba(13, 35, 64, .18); }
.saved-tag { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: #067647; margin-right: 6px; }
.saved-tag svg { width: 14px; height: 14px; }

/* Rooster: wie kan er? */
.who-can { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line, #D8E1E3); border-radius: 12px; background: #F8FBFB; }
.who-head { font-size: 14px; }
.who-group { display: flex; flex-direction: column; gap: 6px; }
.who-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.who-title.kan { color: #067647; } .who-title.niet, .who-title.vrij { color: #B42318; } .who-title.leeg, .who-title.dienst { color: #4A5F6E; }
.who-list { display: flex; flex-wrap: wrap; gap: 6px; }
.who-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 10px; border-radius: 10px; border: 1px solid #D8E1E3; background: #fff; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.who-chip small { font-size: 11px; color: #4A5F6E; }
.who-chip.kan { border-color: #A6E3C0; background: #ECFDF3; }
.who-chip.niet { border-color: #F5C2BE; background: #FEF3F2; }
.who-chip.vrij { opacity: .55; cursor: not-allowed; text-decoration: line-through; }
.who-chip.on { outline: 2px solid var(--accent, #1D6E7B); outline-offset: 1px; }
.who-chip:not([disabled]):hover { border-color: var(--accent, #1D6E7B); }
.day-count { display: flex; gap: 6px; justify-content: center; margin-top: 3px; font-size: 11px; font-weight: 600; }
.day-count .kan { color: #067647; } .day-count .niet { color: #B42318; }
.av-tag.vast { opacity: .8; border-style: dashed; }

/* Beschikbaarheid: vaste week */
.avp { display: flex; flex-direction: column; gap: 6px; }
.avp-row { display: grid; grid-template-columns: 110px minmax(150px, 200px) 120px auto 120px; gap: 8px; align-items: center; }
.avp-row .input { min-height: 38px; }
@media (max-width: 700px) { .avp-row { grid-template-columns: 1fr 1fr; } .avp-row strong { grid-column: 1 / -1; } .avp-row > span:empty { display: none; } }
.mday.vast { opacity: .85; }
.mday .av-state small { font-weight: 400; opacity: .8; }

/* afgeronde taken openklappen */
.task-det { background: #fff; border: 1px solid var(--line, #D8E1E3); border-radius: 12px; }
.task-det > summary { list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; cursor: pointer; }
.task-det > summary::-webkit-details-marker { display: none; }
.task-det > summary::before { content: "›"; font-size: 18px; line-height: 1; color: var(--muted, #4A5F6E); transition: transform .15s; }
.task-det[open] > summary::before { transform: rotate(90deg); }
.task-det > summary .item-title { flex: 1 1 220px; min-width: 0; text-decoration: line-through; color: var(--muted, #4A5F6E); }
.task-det[open] > summary .item-title { text-decoration: none; color: inherit; font-weight: 600; }
.task-det-body { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 16px 40px; }
.task-det-body .kv { margin: 0; }

/* zijmenu blijft staan; je naam, geluid en uitloggen altijd onderin beeld */
@media (min-width: 701px) {
  .nav { position: sticky; top: 0; align-self: flex-start; height: 100vh; height: 100dvh; overflow: hidden; }
  .nav-links { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2A4466 transparent; margin: 0 -6px; padding: 0 6px; }
  .nav-user { flex: none; margin-top: 0; padding-top: 14px; border-top: 1px solid #1E3858; }
}

/* pauzeregels */
.br-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.br-row .input { width: 76px; min-height: 38px; }

/* ---------- danger zone ---------- */
.danger-zone { border: 2px solid #DC2626; background: #FFF7F7; }
.dz-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #DC2626; padding: 2px 8px; border-radius: 99px; }
.dz-form { border: 1px dashed #F3A6A6; border-radius: 12px; padding: 14px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.kiosk-pinnote { margin: 0 32px 12px; padding: 12px 18px; border-radius: 12px; background: #FEF3C7; color: #78350F; font-weight: 600; font-size: 16px; text-align: center; }

/* ---------- status van collega's (rechts) ---------- */
.presence { flex: 0 0 248px; }
.pres-panel { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #fff; border-left: 1px solid var(--line-2); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; }
.pres-fab, .pres-close { display: none; }
.pres-me { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.pres-me .input { min-height: 38px; padding: 6px 10px; font-size: 14px; }
.pres-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 10px 4px 4px; cursor: default; }
summary.pres-h { cursor: pointer; }
.pres-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pres-row { display: flex; align-items: center; gap: 10px; padding: 6px 6px; border-radius: 8px; }
.pres-row:hover { background: var(--bg); }
.pres-row.off { opacity: .55; }
.pres-av { position: relative; flex: none; display: inline-flex; }
.pres-av .avatar { width: 32px; height: 32px; font-size: 12px; }
.pres-av i { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid #fff; }
.pres-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pres-txt strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pres-txt > span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pres-empty { margin: 0 4px; }
@media (max-width: 1199px) {
  .presence { flex: 0 0 0; }
  .pres-fab { display: inline-flex; position: fixed; right: 18px; bottom: 18px; z-index: 40; align-items: center; gap: 6px; height: 48px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(18,24,43,.25); font-size: 15px; }
  .pres-fab svg { width: 20px; height: 20px; }
  .pres-panel { display: none; position: fixed; right: 0; top: 0; width: min(300px, 88vw); z-index: 50; box-shadow: -8px 0 30px rgba(18,24,43,.18); }
  .presence.open .pres-panel { display: flex; }
  .presence.open .pres-fab { display: none; }
  .pres-close { display: inline-flex; width: 36px; height: 36px; }
}

/* ---------- verlofsaldo ---------- */
.leave-card { display: flex; flex-direction: column; gap: 10px; max-width: none; }
.leave-card > div:first-child { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.leave-big { font-size: 28px; line-height: 1; }
.leave-big.neg { color: #B42318; }
.leave-bar { height: 8px; border-radius: 99px; background: var(--grey-bg); overflow: hidden; }
.leave-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* ---------- rooster: duidelijker ---------- */
.ro-name { display: flex; align-items: center; gap: 10px; }
.ro-bar { height: 5px; border-radius: 99px; background: var(--grey-bg); margin-top: 5px; overflow: hidden; min-width: 60px; }
.ro-bar span { display: block; height: 100%; background: #1D9BAE; }
.ro-bar.over span { background: #F79009; }
.shift.t0 { background: #E0F2FE; border-color: #B9E6FE; color: #0B4A6F; }
.shift.t1 { background: #FEF0C7; border-color: #FEDF89; color: #7A2E0E; }
.shift.t2 { background: #EBE9FE; border-color: #D9D6FE; color: #3E1C96; }
.shift.t3 { background: #DCFAE6; border-color: #ABEFC6; color: #085D3A; }
.shift.t4 { background: #FCE7F6; border-color: #FCCEEE; color: #851651; }
.shift.t5 { background: #FFE6D5; border-color: #FFD6AE; color: #772917; }
.shift.t0 small, .shift.t1 small, .shift.t2 small, .shift.t3 small, .shift.t4 small, .shift.t5 small { color: inherit; opacity: .8; }
.my-week-sum { display: flex; gap: 32px; flex-wrap: wrap; max-width: none; }
.my-week-sum > div { display: flex; flex-direction: column; gap: 2px; }
.my-week-sum strong { font-size: 24px; }
.my-week { display: flex; flex-direction: column; gap: 8px; }
.my-day { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; flex-wrap: wrap; }
.my-day.today { border: 2px solid var(--accent); padding: 13px 15px; }
.my-day.past { opacity: .6; }
.my-day-date { flex: 0 0 150px; display: flex; flex-direction: column; gap: 2px; }
.my-day-date strong { text-transform: capitalize; font-size: 16px; }
.my-day-date span { color: var(--muted); font-size: 14px; }
.my-day-date .badge { align-self: flex-start; margin-top: 4px; color: #067647; }
.my-day-main { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.my-shift { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 10px; background: #DDF0F2; color: #123A4A; border: 1px solid #BFE3E8; }
.my-shift strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.my-shift span { font-size: 13px; opacity: .85; }
.my-shift.t0 { background: #E0F2FE; border-color: #B9E6FE; color: #0B4A6F; }
.my-shift.t1 { background: #FEF0C7; border-color: #FEDF89; color: #7A2E0E; }
.my-shift.t2 { background: #EBE9FE; border-color: #D9D6FE; color: #3E1C96; }
.my-shift.t3 { background: #DCFAE6; border-color: #ABEFC6; color: #085D3A; }
.my-shift.t4 { background: #FCE7F6; border-color: #FCCEEE; color: #851651; }
.my-shift.t5 { background: #FFE6D5; border-color: #FFD6AE; color: #772917; }

/* ---------- profielfoto + instellingen-tabs ---------- */
.avatar.photo { background: #E2E9EA; overflow: hidden; padding: 0; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.photo-row .avatar.xl { width: 72px; height: 72px; font-size: 24px; }
a.nav-user-row { color: inherit; text-decoration: none; border-radius: 10px; padding: 6px; margin: -6px; }
a.nav-user-row:hover, a.nav-user-row:focus-visible { background: rgba(255,255,255,.08); }
.set-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); }
.set-tabs button { border: 0; background: transparent; padding: 10px 14px; font-size: 15px; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; min-height: 44px; }
.set-tabs button.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
.set-cards { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.login-list li.focus { background: #FEF9C3; border-radius: 8px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th, .adm-table td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.adm-table th { font-size: 12px; color: var(--muted); font-weight: 600; border-top: 0; }
.box.muted-box { opacity: .7; }

/* ---------- rooster v3: planner ---------- */
.ro-tools { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ro-palette { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ro-palette .shift { width: auto; margin: 0; cursor: grab; flex-direction: row; gap: 6px; align-items: baseline; padding: 6px 10px; }
.ro-palette .shift small { font-size: 11px; }
.ro-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ro-search { max-width: 200px; min-height: 36px; padding: 6px 10px; font-size: 14px; }
.ro-more { position: relative; }
.ro-more summary { list-style: none; cursor: pointer; }
.ro-more summary::-webkit-details-marker { display: none; }
.ro-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(18,24,43,.15); padding: 8px; display: flex; flex-direction: column; min-width: 260px; }
.ro-menu .link-btn { text-align: left; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.ro-menu .link-btn:hover { background: var(--bg); }
.ro-menu .link-btn[disabled] { opacity: .5; }
.roster-scroll { overflow: auto; max-height: calc(100vh - 140px); background: #fff; border: 1px solid var(--line); border-radius: 16px; }
table.ro2 thead th { position: sticky; top: 0; z-index: 3; background: #fff; box-shadow: 0 1px 0 var(--line); }
table.ro2 tfoot th, table.ro2 tfoot td { position: sticky; bottom: 0; z-index: 3; background: #F7FAFA; box-shadow: 0 -1px 0 var(--line); }
table.ro2 .ro-namecol { position: sticky; left: 0; z-index: 2; background: #fff; min-width: 170px; }
table.ro2 thead .ro-namecol, table.ro2 tfoot .ro-namecol { z-index: 4; }
table.ro2 tfoot .ro-namecol { background: #F7FAFA; }
.ro-dayhead { border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.ro-dayhead:hover { background: var(--bg); text-decoration: underline; }
.ro-cov { display: block; margin: 3px auto 0; width: max-content; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.ro-cov.ok { background: #DCFAE6; color: #067647; } .ro-cov.half { background: #FEF0C7; color: #93370D; } .ro-cov.bad { background: #FEE4E2; color: #B42318; }
td.rc.av-kan { background: #F3FBF6; } td.rc.av-kan_niet { background: #FFF6F5; }
td.rc.drop-over { outline: 2px dashed var(--accent); outline-offset: -3px; background: #E6F4F6 !important; }
body.ro-dragging td[data-cell] .cell-add { opacity: 1; border-color: var(--accent); }
.shift[draggable="true"] { cursor: grab; }
.shift.dragging { opacity: .4; }
.shift.warn { box-shadow: inset 3px 0 0 #F79009; }
.ro-warn { display: inline-flex; width: 16px; height: 16px; border-radius: 50%; background: #F79009; color: #fff; font-size: 11px; align-items: center; justify-content: center; vertical-align: 1px; }
.ro-quick { display: flex; flex-direction: column; gap: 4px; padding: 6px; background: #fff; border: 1px solid var(--accent); border-radius: 10px; box-shadow: 0 8px 22px rgba(18,24,43,.15); position: relative; z-index: 5; min-width: 130px; }
.ro-quick .shift { margin: 0; }
.ro-quick .btn { min-height: 32px; font-size: 13px; }
.ro-foot { text-align: center; font-size: 13px; padding: 8px 4px; }
.ro-foot span { display: block; font-size: 11px; color: var(--muted); }
.ro-undo { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px; position: sticky; top: 8px; z-index: 20; }
.ro-undo span { flex: 1; }
.ro-undo .icon-btn { background: transparent; color: #fff; }
.ro-open { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.ro-open > div:first-child { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ro-prop { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.ro-needs td { padding: 4px; } .ro-needs .input { width: 56px; text-align: center; min-height: 36px; padding: 4px; }
/* dagweergave */
.ro-daynav { display: flex; align-items: center; gap: 10px; }
.ro-daynav strong { min-width: 220px; text-align: center; text-transform: capitalize; }
.tl { padding: 8px 12px; max-width: none; overflow-x: auto; }
.tl-row { display: flex; align-items: center; min-height: 44px; border-top: 1px solid var(--line); min-width: 760px; }
.tl-row.tl-head { border-top: 0; min-height: 26px; }
.tl-row.niet .tl-track { background: repeating-linear-gradient(45deg, transparent 0 6px, #FDECEC 6px 8px); }
.tl-row.abs { opacity: .6; }
.tl-name { flex: 0 0 190px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding-right: 8px; }
.tl-track { flex: 1; position: relative; height: 34px; background-image: linear-gradient(90deg, #EEF2F3 1px, transparent 1px); background-size: calc(100% / 17) 100%; }
.tl-hour { position: absolute; top: 6px; transform: translateX(-50%); font-size: 11px; color: var(--muted); font-weight: 600; }
.tl-av { position: absolute; top: 3px; bottom: 3px; background: #DCFAE6; border-radius: 6px; }
.tl-shift { position: absolute; top: 4px; bottom: 4px; margin: 0; display: flex; align-items: center; padding: 0 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: auto; }
.tl-add { position: absolute; left: 6px; top: 6px; bottom: 6px; border: 1px dashed var(--line-2); background: transparent; border-radius: 7px; color: var(--muted); font-size: 12px; padding: 0 10px; opacity: 0; }
.tl-row:hover .tl-add, .tl-add:focus-visible { opacity: 1; }
.tl-load .tl-track { height: 24px; }
.tl-bar-n { position: absolute; top: 2px; bottom: 2px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border-right: 1px solid #fff; }
.tl-bar-n.zero { background: #F04438; opacity: .35 !important; }
.ro-daynav strong { text-transform: none; }
.ro-daynav strong::first-letter { text-transform: uppercase; }
.tl-bar-n.zero { background: #EEF2F3; color: transparent; opacity: 1 !important; }
/* openingstijden */
.ro-gap { display: block; margin: 3px auto 0; width: max-content; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: #FEE4E2; color: #B42318; }
.ro-gap.ok { background: #DCFAE6; color: #067647; }
.ro-gap.closed { background: #EEF2F3; color: var(--muted); }
.oh-grid { display: flex; flex-direction: column; gap: 6px; }
.oh-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); }
.oh-row .check { min-width: 130px; }
.oh-row .input[type=time] { max-width: 130px; min-height: 38px; }
.oh-min { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.oh-min .input { width: 52px; min-height: 36px; text-align: center; padding: 4px; }
.tl-closed { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, #F2F4F5 0 6px, #E7ECEE 6px 8px); }
.tl-gap { position: absolute; top: 0; bottom: 0; background: rgba(240,68,56,.18); border-left: 2px solid #F04438; border-right: 2px solid #F04438; }

/* ---------- pop-up ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; }
.modal-back { position: fixed; inset: 0; background: rgba(13,35,64,.45); backdrop-filter: blur(2px); }
.modal { position: relative; width: min(860px, 100%); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(13,35,64,.3); animation: modal-in .16s ease-out; }
.modal > section.card { border: 0; box-shadow: none; margin: 0; background: transparent; padding: 22px 24px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal { animation: none; } }
body:has(.modal-wrap) { overflow: hidden; }
@media (max-width: 600px) { .modal-wrap { padding: 0; align-items: stretch; } .modal { border-radius: 0; min-height: 100%; } }
.modal { z-index: 1; }
.entry-reason.soft { color: var(--muted); }

/* ---------- beschikbaarheid v2 ---------- */
.avd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.avd { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.avd.kan { background: #F0FDF4; border-color: #ABEFC6; }
.avd.kan_niet { background: #FFF6F5; border-color: #FECDCA; }
.avd > strong { font-size: 15px; }
.avd-opts { display: flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.avd-opts button { flex: 1; border: 0; background: transparent; padding: 7px 4px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; min-height: 36px; }
.avd-opts button + button { border-left: 1px solid var(--line-2); }
.avd-opts button.on.kan { background: #16A34A; color: #fff; }
.avd-opts button.on.kan_niet { background: #DC2626; color: #fff; }
.avd-opts button.on.leeg { background: #E7ECEE; color: var(--ink); }
.avd-times { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px; align-items: center; }
.avd-times .input { min-height: 36px; padding: 4px 6px; font-size: 14px; min-width: 0; }
.avd-presets { flex-wrap: wrap; align-items: center; gap: 6px; }
.av-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-left: auto; }
.av-legend span { display: inline-flex; align-items: center; gap: 6px; }
.av-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.av-legend i.kan { background: #DCFAE6; } .av-legend i.kan_niet { background: #FEE4E2; }
.av-legend i.vast { background: #fff; border: 1px dashed #98A8B2; } .av-legend i.los { background: #fff; border: 2px solid var(--ink-2); }
.mday.av.kan { background: #ECFDF3; } .mday.av.kan_niet { background: #FEF3F2; }
.mday.av.kan.vast, .mday.av.kan_niet.vast { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 6px, transparent 6px 12px); }
.mday.av.kan_niet .av-state { color: #B42318; }
.mday.av.los .av-state { font-weight: 700; }
.av-bar2 { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; width: min(760px, calc(100% - 24px)); background: #fff; border: 2px solid var(--accent); border-radius: 16px; box-shadow: 0 16px 40px rgba(13,35,64,.25); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; animation: modal-in .15s ease-out; }
.av-bar2-top { display: flex; justify-content: space-between; align-items: center; }
.av-bar2-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.av-bar2-row .field { flex: 0 1 120px; }
.av-bar2-row .input { min-height: 38px; }
body:has(.av-bar2) .main { padding-bottom: 240px; }
.avd-times { grid-template-columns: auto 1fr; row-gap: 6px; column-gap: 6px; }
.avd-times .muted { grid-column: 1; font-size: 12px; }
@keyframes avbar-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.av-bar2 { animation: avbar-in .15s ease-out; }
.seg.small button { padding: 6px 10px; font-size: 13px; min-height: 34px; }
.seg.small .muted { font-weight: 500; font-size: 12px; }
table.ro2 tr.ro-group th { text-align: left; background: #F2F6F7; padding: 8px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); position: sticky; left: 0; }
.ro-group-note { text-transform: none; letter-spacing: 0; font-weight: 600; color: #93370D; margin-left: 8px; }
.ro-group-note.ok { color: #067647; }
.m-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.m-search { flex: 1 1 260px; max-width: 420px; }
.m-search .input { width: 100%; min-height: 40px; }
.m-filter { width: auto; min-height: 40px; max-width: 200px; }
.ro-covs { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; align-items: stretch; }
.ro-cov2 { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; line-height: 1.5; padding: 0 7px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.ro-cov2 b { font-weight: 800; }
.ro-cov2.ok { background: #DCFAE6; color: #067647; } .ro-cov2.half { background: #FEF0C7; color: #93370D; } .ro-cov2.bad { background: #FEE4E2; color: #B42318; }

/* ---------- afdelingen & functies ---------- */
.ro-depts { display: flex; gap: 6px; flex-wrap: wrap; }
.dept-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; min-height: 34px; }
.dept-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); }
.dept-chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.dept-chip.on .muted { color: #BFD6DE; }
.dept-chip[style].on { background: var(--c); border-color: var(--c); }
.shift.has-dept { box-shadow: inset 4px 0 0 var(--dept); }
.shift.has-dept.warn { box-shadow: inset 4px 0 0 var(--dept), inset 7px 0 0 #F79009; }
.func-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .03em; padding: 0 5px; border-radius: 4px; background: #0D2340; color: #fff; text-transform: uppercase; }
.who-head .func-tag { font-size: 11px; margin-left: 6px; }
.ue-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.ue-row { display: flex; gap: 8px; align-items: center; }
.ue-row input[type=color] { width: 38px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; flex: none; cursor: pointer; }
.ue-row .input { flex: 1; min-height: 38px; }
.unit-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.unit-chip { border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.unit-chip.on { background: var(--c, var(--navy)); border-color: var(--c, var(--navy)); color: #fff; font-weight: 600; }
/* concept-pil naast de titel */
.ro-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ro-title h1 { margin: 0; }
.pub-pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #FEF0C7; color: #93370D; border: 1px dashed #F5B94B; }
.pub-pill.on { background: #DCFAE6; color: #067647; border: 1px solid #ABEFC6; }
.ro-title .btn.small { min-height: 30px; padding: 4px 12px; font-size: 13px; }
.ro-title .link-btn { font-size: 13px; color: var(--muted); }

/* bezetting: functie en afdeling per vaste dienst */
.ro-needs .nd-name { display: grid; gap: 2px; min-width: 170px; font-weight: 500; }
.ro-needs .nd-name .muted { font-size: 12.5px; }
.nd-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.nd-tag { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--accent-soft, #DDF0F2); color: var(--accent, #1D6E7B); }
.nd-tag.dept { background: color-mix(in srgb, var(--dept) 18%, #fff); color: #24323F; border-left: 3px solid var(--dept); border-radius: 6px; }
.nd-tag.any { background: #EEF2F4; color: #5B6B78; font-weight: 600; }
.ro-needs thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
.ro-needs th.pad { position: sticky; left: 0; background: #fff; z-index: 1; }

/* bezetting-venster v2: groter en rustiger */
.modal:has(.needs-ed) { width: min(1080px, 100%); }
.needs-ed { padding: 28px; }
.needs-ed h2 { font-size: 22px; }
.nd-tip { background: #F1F8F9; border: 1px solid #CFE6EA; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.nd-wrap { border: 1px solid #DFE6E9; border-radius: 16px; max-height: 62vh; overflow: auto; }
.nd-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.nd-table th, .nd-table td { padding: 10px 6px; border-bottom: 1px solid #EEF2F4; }
.nd-table thead th { position: sticky; top: 0; z-index: 2; background: #F7F9FA; border-bottom: 1px solid #DFE6E9; font-size: 14px; font-weight: 700; color: #3A4B59; padding: 12px 6px; }
.nd-day { text-align: center; min-width: 74px; } .nd-day.we { color: #8A6D2F; }
.nd-row { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; padding-left: 18px !important; min-width: 220px; font-weight: 500; }
.nd-table thead .nd-row { z-index: 3; background: #F7F9FA; }
.nd-grp th { background: #FBFCFC; padding: 14px 18px 6px !important; text-align: left; border-bottom: 0 !important; position: sticky; left: 0; }
.nd-time { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: #0D2340; }
.nd-time::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1D6E7B; }
.nd-name { display: grid; gap: 6px; } .nd-name strong { font-size: 15.5px; }
.nd-cell { text-align: center; } .nd-cell.we { background: #FFFCF6; }
.nd-in { width: 58px !important; min-height: 46px !important; text-align: center; font-size: 18px !important; font-weight: 700; padding: 4px !important; border-radius: 12px !important; }
.nd-in:placeholder-shown { background: #FAFBFB; }
.nd-in:not(:placeholder-shown) { border-color: #1D6E7B; background: #F1F8F9; color: #0D2340; }
.nd-tot { text-align: center; white-space: nowrap; } .nd-tot b { display: block; font-size: 17px; }
.nd-fill { border: 0; background: none; color: #1D6E7B; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.nd-fill:hover { background: #E6F2F4; }
.nd-tag { font-size: 12.5px; padding: 2px 10px; }
.nd-foot { align-items: center; }
@media (max-width: 600px) { .needs-ed { padding: 18px; } .nd-row { min-width: 150px; } .nd-day { min-width: 62px; } .nd-in { width: 48px !important; } }

.danger-link { color: #B3261E !important; }
.danger-link:hover { text-decoration: underline; }

/* vaste diensten: venster */
.modal:has(.tplm) { width: min(820px, 100%); }
.tplm { padding: 28px; }
.tplm h2 { font-size: 22px; }
.tplm-list { display: grid; gap: 8px; max-height: 42vh; overflow: auto; }
.tplm-row { display: grid; grid-template-columns: minmax(160px, 1fr) 1.2fr auto; gap: 14px; align-items: center; padding: 12px 14px 12px 16px; border: 1px solid #DFE6E9; border-left: 4px solid var(--dept, #C9D5DA); border-radius: 14px; background: #fff; }
.tplm-row.on { border-color: #1D6E7B; background: #F1F8F9; }
.tplm-main { display: grid; } .tplm-main strong { font-size: 16px; } .tplm-time { color: #4A5F6E; font-size: 14px; font-variant-numeric: tabular-nums; }
.tplm-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tplm-act { display: flex; gap: 6px; align-items: center; }
.tplm-form { display: grid; gap: 14px; padding: 18px; border-radius: 16px; background: #F7F9FA; border: 1px solid #E6ECEE; }
.tplm-form h3 { margin: 0; font-size: 16px; }
.tplm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tplm-grid .span2 { grid-column: span 2; }
.ro-tpl-edit { border: 1px dashed #B9C6CC; background: transparent; color: #1D6E7B; font: inherit; font-size: 13px; font-weight: 600; border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.ro-tpl-edit:hover { background: #F1F8F9; border-color: #1D6E7B; }
@media (max-width: 640px) { .tplm { padding: 18px; } .tplm-row { grid-template-columns: 1fr auto; } .tplm-tags { grid-column: 1 / -1; grid-row: 2; } .tplm-grid { grid-template-columns: 1fr 1fr; } }

/* dienstkleur per functie */
.shift.has-fc { background: color-mix(in srgb, var(--fc) 20%, #fff); border-color: color-mix(in srgb, var(--fc) 45%, #fff); color: color-mix(in srgb, var(--fc) 55%, #101820); }
.shift.has-fc .func-tag { background: var(--fc); color: #fff; }
.ue-nocol { flex: none; width: 64px; height: 38px; border: 1px dashed #B9C6CC; border-radius: 8px; background: #fff; color: #4A5F6E; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.ue-nocol:hover { border-color: #1D6E7B; color: #1D6E7B; }
