:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --surface-2: #f0f2ef;
  --border: #dfe3dc;
  --text: #1c2420;
  --muted: #65706a;
  --accent: #1f6f5c;
  --accent-ink: #ffffff;
  --accent-soft: #e2f0eb;
  --ok: #217a4b;
  --ok-soft: #e3f3e9;
  --err: #b4372f;
  --err-soft: #fbe9e7;
  --warn: #946200;
  --warn-soft: #fbf1db;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 4px 16px rgba(20, 30, 25, .04);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614;
    --surface: #1a201d;
    --surface-2: #222a26;
    --border: #2e3833;
    --text: #e6ece8;
    --muted: #94a19a;
    --accent: #4fb596;
    --accent-ink: #0e1a15;
    --accent-soft: #1e3a31;
    --ok: #5cc98b;
    --ok-soft: #173023;
    --err: #ef7b72;
    --err-soft: #3a1e1c;
    --warn: #e0b04d;
    --warn-soft: #362b14;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
a { color: var(--accent); }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; word-break: break-all; }
.muted { color: var(--muted); }

/* layout */
.shell { --nav-w: 230px; display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100vh; background: linear-gradient(to right, var(--surface) calc(var(--nav-w) - 1px), var(--border) calc(var(--nav-w) - 1px), var(--border) var(--nav-w), var(--bg) var(--nav-w)); transition: grid-template-columns .18s ease; }
@media (min-width: 761px) {
  .shell.collapsed { --nav-w: 64px; }
  .shell.collapsed .view { max-width: none; }
}
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { text-decoration: none; color: var(--text); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.sidebar nav a:hover { background: var(--surface-2); }
.sidebar nav a.active { background: var(--accent-soft); color: var(--accent); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.logout { margin-top: 0; }
.version-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 6px; }
.version-btn { font: inherit; font-size: .82rem; font-variant-numeric: tabular-nums; color: var(--muted); background: none; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.version-btn:hover { color: var(--accent); border-color: var(--accent); }
.agent-btn { font: inherit; font-size: .82rem; font-variant-numeric: tabular-nums; text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; display: inline-flex; align-items: center; gap: 6px; background: none; color: var(--muted); }
.agent-btn:hover { filter: brightness(0.97); }
.agent-btn.online { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); background: var(--ok-soft); }
.agent-btn.offline { color: var(--err); border-color: color-mix(in srgb, var(--err) 45%, var(--border)); background: var(--err-soft); }
.agent-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.new-dot { font-size: .7rem; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 0 6px; }

/* release notes */
.modal { border: 1px solid var(--border); border-radius: 14px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 760px); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(10, 16, 13, .45); }
.modal[open] { display: flex; flex-direction: column; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--border); }
.modal-body { overflow-y: auto; padding: 6px 22px 22px; }
.release { padding: 18px 0; border-bottom: 1px solid var(--border); }
.release:last-child { border-bottom: 0; }
.release-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.release-head h3 { margin: 0; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.release-head .date { color: var(--muted); font-size: .85rem; }
.release h4 { margin: 12px 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.release h4.toegevoegd { color: var(--ok); }
.release h4.opgelost { color: var(--accent); }
.release h4.gewijzigd { color: var(--warn); }
.release h4.verwijderd, .release h4.beveiliging { color: var(--err); }
.release ul { margin: 0; padding-left: 20px; }
.release li { margin: 3px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem; padding: 0 6px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.brand-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; display: block; flex-shrink: 0; background: #fff; }
.brand-logo.amstelpark { border-radius: 6px; background: #e30613; }
.view { padding: 32px 40px 64px; max-width: 1080px; width: 100%; min-width: 0; }
.page-head { margin-bottom: 24px; }
.crumbs { font-size: .9rem; margin-bottom: 6px; }
.crumbs a { text-decoration: none; }

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; background: var(--bg); }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 12px; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar-foot { margin-top: 0; margin-left: auto; flex-direction: row; align-items: center; }
  .view { padding: 20px 16px 48px; }
}

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.grid > .card + .card { margin-top: 0; }
.int-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: border-color .15s; }
a.int-card:hover { border-color: var(--accent); }
.int-card.planned { opacity: .62; }
.int-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.category { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.section-title { margin: 28px 0 12px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.fout { background: var(--err-soft); color: var(--err); }
.badge.warn, .badge.niet-getest { background: var(--warn-soft); color: var(--warn); }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-weight: 600; font-size: .9rem; }
.field small { color: var(--muted); font-size: .82rem; }
input[type=text], input[type=password], input[type=url], input[type=email], input[type=search], input[type=date], select {
  font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.secret-wrap { display: flex; gap: 8px; align-items: center; }
.secret-wrap input { flex: 1; }
.secret-state { font-size: .8rem; color: var(--ok); }
details.advanced { grid-column: 1 / -1; border-top: 1px dashed var(--border); padding-top: 12px; }
details.advanced summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: .9rem; }
details.advanced .form-grid { margin-top: 14px; }

.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.toggle input { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--border); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { transform: translateX(18px); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.btn { font: inherit; font-weight: 600; border-radius: 8px; padding: 9px 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-small { padding: 5px 10px; font-size: .85rem; }

/* test results */
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.step { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); }
.step .icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; }
.step.ok .icon { background: var(--ok); }
.step.fail .icon { background: var(--err); }
.step.warn .icon { background: var(--warn); }
.step .name { font-weight: 600; }
.step .detail { color: var(--muted); font-size: .88rem; word-break: break-word; white-space: pre-wrap; }
.step .ms { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.result-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.history { width: 100%; border-collapse: collapse; font-size: .88rem; }
.history th, .history td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.history th { color: var(--muted); font-weight: 600; }
.history td { vertical-align: top; }
.history td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.history .badge { white-space: normal; }

.callout { padding: 12px 14px; border-radius: 8px; background: var(--surface-2); font-size: .9rem; }
.callout.ok { background: var(--ok-soft); }
.callout.err { background: var(--err-soft); }
.callout.warn { background: var(--warn-soft); }

.layout-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.layout-2 > .card + .card { margin-top: 0; }
@media (max-width: 980px) { .layout-2 { grid-template-columns: 1fr; } }

/* gegevens */
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .78rem; }
.ds-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.ds-set legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px 5px 9px; cursor: pointer; font-size: .9rem; background: var(--surface); }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.chip input { accent-color: var(--accent); margin: 0; }

.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.table-wrap.tall { max-height: 70vh; }
table.data { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .88rem; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.data thead th { background: var(--surface-2); font-weight: 600; color: var(--text); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.probe td:first-child { max-width: 260px; }
table.probe td:first-child .mono { word-break: break-all; }
table.probe td:nth-child(2) { max-width: 170px; }
table.probe td:last-child { min-width: 240px; }
table.emp td { white-space: nowrap; }
table.emp tbody tr { cursor: pointer; }
table.emp tbody tr:hover td, table.emp tbody tr:focus td { background: var(--accent-soft); outline: none; }
table.emp td.name { font-weight: 600; }
table.emp th[data-sort] { cursor: pointer; user-select: none; }
table.emp th[data-sort]::after { content: attr(data-dir); margin-left: 4px; font-size: .7rem; color: var(--accent); }
table.emp .group-row th { top: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 10px; border-bottom: 0; }
table.emp .group-row th.grp { border-left: 2px solid var(--border); }
table.emp thead tr:nth-child(2) th { top: 29px; }
table.emp th:nth-child(1), table.emp td:nth-child(1) { position: sticky; left: 0; z-index: 2; background: var(--surface); }
table.emp th:nth-child(2), table.emp td:nth-child(2) { position: sticky; left: 120px; z-index: 2; background: var(--surface); box-shadow: 1px 0 0 var(--border); }
table.emp thead th:nth-child(1), table.emp thead th:nth-child(2) { background: var(--surface-2); z-index: 3; }
table.emp td:nth-child(1) { min-width: 120px; }

.field-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.field-chips span { font-size: .78rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; }

.ds-status { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.toolbar input[type=search] { flex: 1 1 220px; width: auto; }
.toolbar select { width: auto; }
.col-picker { position: relative; }
.col-picker summary { list-style: none; }
.col-picker summary::-webkit-details-marker { display: none; }
.col-menu { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; width: min(420px, 85vw); max-height: 60vh; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 12px 14px; }
.col-menu-actions { display: flex; gap: 6px; margin-bottom: 8px; }
.col-menu fieldset { border: 0; padding: 0; margin: 10px 0 0; }
.col-menu legend { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 0; margin-bottom: 4px; }
.col-menu label { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; font-size: .9rem; cursor: pointer; }
.col-menu label .mono { margin-left: auto; }
.col-menu input { accent-color: var(--accent); }

.filter-panel { border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; margin-bottom: 10px; background: var(--surface-2); }
.filter-panel summary { cursor: pointer; padding: 10px 0; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-panel summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
.filter-panel[open] summary::before { transform: rotate(90deg); }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 12px; }
.filter { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; }
.filter span { font-weight: 600; color: var(--muted); }
.filter select, .filter input[type=date] { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; width: 100%; }
.filter select:focus, .filter input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0; }
.filter-actions .chip { font-size: .85rem; padding: 3px 10px 3px 8px; }
.filter-actions #clear-filters { margin-left: auto; }

/* kerncijfers */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { font: inherit; color: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.kpi.static { cursor: default; }
.kpi:not(.static):hover { border-color: var(--accent); }
.kpi.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.kpi-num { font-size: 1.9rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi-label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.kpi-sub { font-size: .8rem; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--border); flex: none; }
.dot.ok { background: var(--ok); }
.dot.fout { background: var(--err); }
.dot.niet-getest { background: var(--warn); }
.dot.start { background: var(--accent); }
.dot.leave { background: var(--warn); }
.dot.sick { background: var(--err); }
.dot.jub { background: #7a5bb5; }
.dot.bday { background: #c2577a; }
.dash-celebrate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.dash-celebrate.single { grid-template-columns: 1fr; }
.dash-celebrate.only-bday { grid-template-columns: minmax(0, 720px); }
.celebrate.compact { padding: 14px 16px; }
.celebrate.compact h2 { font-size: 1rem; }
.bday-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--rows, 1), auto); grid-auto-flow: column; column-gap: 20px; }
@media (max-width: 560px) { .bday-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }
.bday-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: .9rem; }
.bday-row { border-bottom: 1px solid var(--border); }
.bday-row:hover, .bday-row:focus-visible { background: var(--surface-2); outline: none; }
.bday-date { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.bday-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bday-age { font-size: .78rem; font-weight: 700; color: #a23d62; background: #fbe9ef; border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.bday-age::before { content: "wordt "; font-weight: 400; }
.bday-row.today { background: #fbe9ef; }
.bday-row.today .bday-date { color: #a23d62; font-weight: 700; }
.bday-row.today { border-bottom-color: transparent; }
.dash-celebrate > .card + .card { margin-top: 0; }
@media (max-width: 900px) { .dash-celebrate { grid-template-columns: 1fr; } }
.celebrate-list { margin-top: 12px; }
.dash-celebrate.single .celebrate-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px; }
.mover.today { border-width: 2px; }
.celebrate.jub .mover.today { border-color: #7a5bb5; }
.celebrate.bday .mover.today { border-color: #c2577a; }
.date-block.jub { background: #efeaf8; color: #5c4396; }
.date-block.bday { background: #fbe9ef; color: #a23d62; }
.cel-badge { font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.cel-badge.jub { color: #5c4396; background: #efeaf8; }
.cel-badge.bday { color: #a23d62; background: #fbe9ef; }
@media (prefers-color-scheme: dark) {
  .dot.jub { background: #b49be6; }
  .dot.bday { background: #e88fae; }
  .date-block.jub, .cel-badge.jub { background: #2d2540; color: #c9b6f2; }
  .date-block.bday, .cel-badge.bday, .bday-age, .bday-row.today { background: #3a2029; color: #f0a9c2; }
  .bday-row.today .bday-date { color: #f0a9c2; }
}

/* overzichten */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin: 4px 0 16px; }
.tab { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.mgr-list { display: flex; flex-direction: column; gap: 8px; }
.mgr { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.mgr > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 11px 14px; flex-wrap: wrap; }
.mgr > summary::-webkit-details-marker { display: none; }
.mgr > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
.mgr[open] > summary::before { transform: rotate(90deg); }
.mgr[open] > summary { border-bottom: 1px solid var(--border); }
.mgr-name { font-weight: 700; }
.mgr-mail { font-size: .85rem; }
.mgr > summary .badge { margin-left: auto; }
.mgr .table-wrap { border: 0; border-radius: 0 0 10px 10px; }
table.ov-table td { white-space: nowrap; }
table.ov-table.sortable th[data-sort] { cursor: pointer; user-select: none; }
table.ov-table.sortable th[data-sort]::after { content: attr(data-dir); margin-left: 4px; font-size: .7rem; color: var(--accent); }
.podium { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.podium-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; }
.podium-row:hover, .podium-row:focus-visible { border-color: var(--accent); outline: none; }
.rank { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); font-variant-numeric: tabular-nums; }
.podium-row:nth-child(1) .rank { background: var(--accent); color: var(--accent-ink); }
.podium-main { display: flex; flex-direction: column; min-width: 0; }
.podium-sub { font-size: .85rem; }
.podium-years { display: flex; flex-direction: column; align-items: flex-end; font-size: .85rem; white-space: nowrap; }
.podium-years strong { font-size: 1.05rem; }
.dash-sick { margin-top: 16px; }
table.sick-table td { vertical-align: middle; }
table.sick-table td:first-child, table.sick-table td:nth-child(3) { white-space: nowrap; }

/* endpoint-tabel */
table.probe .svc-row th { position: static; background: var(--accent-soft); color: var(--accent); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.mono-strong { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .84rem; word-break: break-all; }

/* dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.dash-head p { margin: 0; }
.dash-controls { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.dash-controls .filter { min-width: 170px; }
.dash-meta { font-size: .85rem; margin: 0 0 12px; }
.dash-errors { margin-bottom: 14px; }
.dash-errors summary { cursor: pointer; font-weight: 600; }
.dash-errors ul { margin: 8px 0 0; padding-left: 20px; }
.err-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .88rem; }
.err-table th, .err-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); vertical-align: top; }
.err-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.err-table code { background: var(--surface); }
.err-hint { margin: 10px 0 2px; font-size: .86rem; }
.dash-kpis { margin-bottom: 16px; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.dash-cols > .card + .card { margin-top: 0; }
@media (max-width: 900px) { .dash-cols { grid-template-columns: 1fr; } }
.dash-col h2 { display: flex; align-items: center; gap: 8px; }
.dash-empty { margin: 14px 0 4px; }
.week-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; font-weight: 700; }
.week-label.past { color: var(--muted); opacity: .8; }
.movers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mover { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.mover.past { opacity: .68; }
.clickable { cursor: pointer; transition: border-color .15s, background .15s; }
.mover.clickable:hover, .mover.clickable:focus-visible { border-color: var(--accent); outline: none; }
tr.clickable:hover td, tr.clickable:focus-visible td { background: var(--accent-soft); outline: none; }
.sendtest { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.sendtest input[type=email] { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; width: 100%; }
.detail-summary { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; border-bottom: 0; margin-top: 12px; }
.date-block { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; padding: 4px 0; line-height: 1.1; }
.date-block.start { background: var(--accent-soft); color: var(--accent); }
.date-block.leave { background: var(--warn-soft); color: var(--warn); }
.date-block .dow, .date-block .mon { font-size: .7rem; text-transform: uppercase; font-weight: 600; letter-spacing: .03em; }
.date-block .dnum { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.mover-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.mover-top { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.mover-top .rel { margin-left: auto; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.mover-sub { display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.mover-flags { margin-top: 4px; }

.status-pill { display: inline-block; font-size: .76rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.status-pill.s-in-dienst { background: var(--ok-soft); color: var(--ok); }
.status-pill.s-start-binnenkort { background: var(--accent-soft); color: var(--accent); }
.status-pill.s-vertrekt { background: var(--warn-soft); color: var(--warn); }
.status-pill.s-uit-dienst { background: var(--err-soft); color: var(--err); }

.detail-group { padding: 14px 0; border-bottom: 1px solid var(--border); }
.detail-group:last-child { border-bottom: 0; }
.detail-group h4 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.detail-group dl { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; gap: 4px 14px; margin: 0; font-size: .9rem; }
.detail-group dt { color: var(--muted); }
.detail-group dd { margin: 0; word-break: break-word; }

.toast { position: fixed; bottom: 20px; right: 20px; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.2); z-index: 10; }
.form-error { color: var(--err); margin: 0; font-size: .9rem; }

/* publieke poort: wachtwoordreset voor medewerkers, beheer rechtsboven */
.gate-body { --gate-wellness: #1f6f5c; --gate-clay: #c45a3a; --gate-sage: #d8e4dc; height: 100dvh; max-height: 100dvh; margin: 0; display: flex; flex-direction: column; position: relative; background: #c5d4c8; overflow: hidden; color-scheme: light; }
.gate-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.gate-scene-photo {
  position: absolute; inset: -4%;
  background:
    linear-gradient(105deg, rgba(31, 111, 92, .28) 0%, transparent 42%, rgba(196, 90, 58, .22) 100%),
    url("/assets/brand/login-wellness-tennis.jpg") center / cover no-repeat;
  transform-origin: center;
  animation: gate-scene-drift 28s ease-in-out infinite alternate;
}
.gate-scene-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 18%, rgba(255, 255, 255, .22), transparent 55%),
    linear-gradient(180deg, rgba(18, 36, 30, .18) 0%, rgba(18, 36, 30, .08) 35%, rgba(18, 36, 30, .28) 100%);
  animation: gate-veil-breathe 10s ease-in-out infinite alternate;
}
@keyframes gate-scene-drift {
  from { transform: scale(1.04) translate3d(-1.2%, 0, 0); }
  to { transform: scale(1.08) translate3d(1.4%, -0.8%, 0); }
}
@keyframes gate-veil-breathe {
  from { opacity: .92; }
  to { opacity: 1; }
}
@keyframes gate-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .gate-scene-photo, .gate-scene-veil { animation: none; }
  .login-card { animation: none; }
}
.gate-bar { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 14px; flex-shrink: 0; background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .45); }
.gate-bar .brand { padding: 0; min-width: 0; gap: 8px; }
.gate-brand-left { justify-self: start; }
.gate-brand-right { justify-self: end; }
.gate-brand-short { font-size: .88rem; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gate-portal-title { margin: 0; text-align: center; font-size: .88rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; color: var(--text); max-width: 42vw; }
.gate-foot { position: relative; z-index: 1; flex-shrink: 0; display: flex; justify-content: flex-start; padding: 6px 14px 10px; }
.gate-foot .btn { background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); padding: 7px 12px; font-size: .9rem; }
@media (max-width: 720px) {
  .gate-bar { gap: 8px; padding: 6px 10px; }
  .gate-brand-short { display: none; }
  .gate-portal-title { font-size: .76rem; max-width: none; }
  .gate-foot { padding: 4px 10px 8px; }
}
.gate-main { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; place-items: center; padding: 4px 14px 4px; overflow: hidden; }
.login-card { width: 100%; max-width: 400px; max-height: 100%; background: rgba(255, 255, 255, .94); border: 1px solid rgba(255, 255, 255, .7); border-radius: 12px; padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 12px 40px rgba(18, 36, 30, .18); overflow: hidden; animation: gate-card-in .55s ease-out both; }
.login-card h1 { margin: 0; font-size: 1.1rem; letter-spacing: -.02em; }
.login-card .btn-primary { align-self: stretch; justify-content: center; }
.login-card > .muted { margin: 0; font-size: .84rem; line-height: 1.3; }
.gate-card-head { display: flex; align-items: center; gap: 8px; margin: 0; }
.gate-kicker { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.gate-ok { color: var(--ok); margin: 0; font-size: .86rem; }
.gate-back { font-size: .86rem; }
.gate-hero-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; display: block; background: #fff; flex-shrink: 0; }
.gate-hero-logo.amstelpark { background: #e30613; border-radius: 6px; }
.gate-bar .brand-logo { width: 26px; height: 26px; }
.gate-tabs { display: flex; gap: 3px; padding: 3px; background: var(--bg); border-radius: 8px; border: 1px solid var(--border); flex-shrink: 0; }
.gate-tab { flex: 1; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 600; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.gate-tab:hover { color: var(--text); }
.gate-tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.login-card #change, .login-card #ask { display: flex; flex-direction: column; gap: 5px; min-height: 0; }
.login-card #change[hidden], .login-card #ask[hidden] { display: none; }
.login-card .field { gap: 2px; }
.login-card .field > span { font-size: .78rem; }
.login-card input[type=text],
.login-card input[type=password],
.login-card input[type=email] { padding: 6px 9px; }
.login-card .btn { padding: 7px 12px; }
.login-card .cmp-sub { font-size: .74rem; line-height: 1.3; margin: 0; }

@media (max-height: 700px) {
  .gate-bar { padding: 5px 10px; }
  .gate-portal-title { font-size: .78rem; }
  .gate-main { padding: 2px 10px; }
  .gate-foot { padding: 2px 10px 6px; }
  .login-card { padding: 10px 12px 8px; gap: 5px; }
  .login-card #change, .login-card #ask { gap: 4px; }
  .login-card input[type=text],
  .login-card input[type=password],
  .login-card input[type=email] { padding: 5px 8px; }
}
.gate-admin { border: 1px solid var(--border); border-radius: 14px; padding: 0; width: min(380px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.gate-admin::backdrop { background: rgba(10, 16, 13, .45); }
.gate-admin-form { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px; }
.gate-admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gate-admin-head h2 { margin: 0; font-size: 1.1rem; }
.gate-admin .btn-primary { align-self: stretch; justify-content: center; }

/* organogram */
.og-card { padding-bottom: 12px; }
.og-toolbar input[type=search] { flex: 1 1 260px; }
.seg { display: inline-flex; }
.seg .btn { border-radius: 0; }
.seg .btn:first-child { border-radius: 8px 0 0 8px; }
.seg .btn:last-child { border-radius: 0 8px 8px 0; margin-left: -1px; }
.btn.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); position: relative; z-index: 1; }
.og-zoom { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--muted); }
#og-meta[data-hits]::after { content: " · " attr(data-hits); color: var(--accent); font-weight: 600; }
.og-canvas { overflow: auto; max-height: 72vh; border: 1px solid var(--border); border-radius: 10px; padding: 20px; background:
  radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0) 0 0 / 18px 18px, var(--surface-2); }

.og-node { position: relative; display: inline-flex; align-items: center; gap: 10px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; min-width: 190px; max-width: 240px; box-shadow: var(--shadow); cursor: default; }
.og-node[data-open] { cursor: pointer; }
.og-node[data-open]:hover, .og-node[data-open]:focus-visible { border-color: var(--accent); outline: none; }
.og-node.manager { border-top: 3px solid var(--accent); }
.og-node.virtual { border-style: dashed; background: var(--surface-2); }
.og-node.group { border-top-color: var(--border); }
.og-node.hit { box-shadow: 0 0 0 3px var(--accent); border-color: var(--accent); }
.og-node.dim { opacity: .45; }
.og-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: var(--accent-soft); color: var(--accent); }
.og-node.virtual .og-avatar { background: var(--surface); color: var(--muted); border: 1px dashed var(--border); }
.og-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.og-name { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-sub { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.og-note { font-size: .7rem; color: var(--muted); font-style: italic; }
.og-toggle { position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); z-index: 2; font: inherit; font-size: .72rem; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--accent); background: var(--surface); color: var(--accent); cursor: pointer; }
.og-toggle span { font-weight: 600; color: var(--muted); }
.og-toggle:hover { background: var(--accent); color: var(--accent-ink); }
.og-toggle:hover span { color: inherit; }

/* boomweergave (top-down) met verbindingslijnen */
.og-chart { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; width: max-content; min-width: 100%; }
.og-tree, .og-tree ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.og-tree ul { padding-top: 26px; position: relative; }
.og-tree li { position: relative; padding: 26px 6px 0; display: flex; flex-direction: column; align-items: center; }
.og-tree > li { padding-top: 0; }
.og-tree li::before, .og-tree li::after { content: ""; position: absolute; top: 0; height: 26px; border-top: 2px solid var(--border); width: 50%; }
.og-tree li::before { right: 50%; }
.og-tree li::after { left: 50%; border-left: 2px solid var(--border); }
.og-tree li:only-child::before, .og-tree li:only-child::after { border-top: 0; }
.og-tree li:only-child::after { left: 50%; width: 0; }
.og-tree li:first-child::before, .og-tree li:last-child::after { border-top: 0; }
.og-tree li:last-child::before { border-right: 2px solid var(--border); border-radius: 0 8px 0 0; }
.og-tree li:first-child::after { border-radius: 8px 0 0 0; }
.og-tree > li::before, .og-tree > li::after { display: none; }
.og-tree ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 26px; border-left: 2px solid var(--border); }
.og-tree li:has(> .og-node .og-toggle) > ul::before { top: 13px; height: 13px; }

/* lijstweergave (ingesprongen) */
.og-list, .og-list ul { list-style: none; margin: 0; padding: 0; }
.og-list ul { margin-left: 22px; padding-left: 18px; border-left: 2px solid var(--border); }
.og-list li { padding: 6px 0; }
.og-list .og-node { max-width: 420px; min-width: 260px; }
.og-list .og-toggle { position: static; transform: none; margin-left: auto; }
.og-count { font-size: .74rem; color: var(--accent); font-weight: 600; margin-top: 2px; }
.og-node.hit-team { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
.og-node { cursor: pointer; }
.og-node:hover, .og-node:focus-visible { border-color: var(--accent); outline: none; }
.og-team-head { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.og-team-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.og-member { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.og-member:hover, .og-member:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.og-member.hit { box-shadow: 0 0 0 2px var(--accent); }
.og-member .og-text { flex: 1; }
.og-member .og-sub { -webkit-line-clamp: 1; }
.og-unlinked { color: var(--warn); font-weight: 600; }
.og-link { margin-top: 14px; padding: 14px; border: 1px dashed var(--border); border-radius: 10px; background: var(--surface-2); }
.og-link select { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; width: 100%; }

/* inklapbaar menu */
.brand { position: relative; }
.collapse-btn { margin-left: auto; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.collapse-btn:hover { color: var(--accent); border-color: var(--accent); }
.collapse-btn svg { transition: transform .18s; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; }
.nav-ico { width: 18px; height: 18px; flex: none; }
.logout { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width: 761px) {
  .shell.collapsed .sidebar { padding: 16px 10px; align-items: center; overflow: hidden; }
  .shell.collapsed .nav-label, .shell.collapsed .version-row { display: none; }
  .shell.collapsed .brand { flex-direction: column; gap: 10px; padding: 0; }
  .shell.collapsed .collapse-btn { margin-left: 0; }
  .shell.collapsed .collapse-btn svg { transform: rotate(180deg); }
  .shell.collapsed .sidebar nav a { justify-content: center; padding: 10px; }
  .shell.collapsed .sidebar-foot { align-items: center; }
  .shell.collapsed .logout { padding: 9px; }
}
@media (max-width: 760px) {
  .collapse-btn { display: none; }
  .shell.collapsed { --nav-w: 100%; }
}

/* synchronisatie en Microsoft 365 */
#sync-admin { margin-bottom: 16px; }
table.sync-table td { vertical-align: middle; }
.sku-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sku { font: inherit; color: inherit; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.sku:hover { border-color: var(--accent); }
.sku.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sku-name { font-weight: 700; font-size: .9rem; }
.sku-nums { font-size: .85rem; font-variant-numeric: tabular-nums; }
.sku-full { color: var(--warn); font-weight: 600; }
.sku-over { color: var(--err); font-weight: 600; }
.sku-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.sku-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.sku-bar span.full { background: var(--warn); }
.sku-warn { font-size: .78rem; color: var(--warn); font-weight: 600; }
table.m365-table td { vertical-align: middle; }
table.m365-table tr.disabled td { color: var(--muted); }
table.m365-table th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
table.m365-table th[data-sort]::after { content: attr(data-dir); margin-left: 4px; font-size: .7rem; color: var(--accent); }
.mono-sm { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .8rem; }
table.m365-table .field-chips { min-width: 200px; }
table.m365-table .field-chips span { white-space: nowrap; }
table.m365-table td:first-child { white-space: nowrap; }
table.m365-table td.mono-sm { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal.wide { width: min(820px, calc(100vw - 32px)); }
input.ro { background: var(--surface-2); color: var(--muted); }
.lic-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.lic { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.lic:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.lic.nofree { opacity: .55; cursor: not-allowed; }
.lic input { accent-color: var(--accent); margin: 0; }
.lic-name { flex: 1; font-weight: 600; font-size: .9rem; }
.lic-free { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.lic-free.none { color: var(--warn); font-weight: 600; }
ul.diff { margin: 6px 0 0; padding-left: 20px; }
ul.diff li { margin: 2px 0; }
.neg { color: var(--err); font-weight: 600; }
ul.audit { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
ul.audit > li { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.audit-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

/* ---------- menugroepen ---------- */
.nav-group { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.nav-group-head { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 8px 12px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; text-align: left; }
.nav-group-head:hover { background: var(--surface-2); color: var(--text); }
.nav-group.has-active .nav-group-head { color: var(--text); }
.nav-caret { width: 14px; height: 14px; margin-left: auto; transition: transform .15s ease; }
.nav-group.closed .nav-caret { transform: rotate(-90deg); }
.nav-group.closed .nav-sub { display: none; }
.nav-sub { display: flex; flex-direction: column; gap: 2px; margin-left: 20px; padding-left: 8px; border-left: 1px solid var(--border); }
.sidebar nav a.sub { padding: 7px 10px; font-size: .94rem; }
@media (min-width: 761px) {
  /* ingeklapt: groepskop verbergen, alle subitems tonen met een scheidingslijn */
  .shell.collapsed .nav-group-head { display: none; }
  .shell.collapsed .nav-group.closed .nav-sub, .shell.collapsed .nav-sub { display: flex; margin-left: 0; padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: 6px; }
}
@media (max-width: 760px) {
  .nav-group { flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 0; }
  .nav-sub { flex-direction: row; flex-wrap: wrap; margin-left: 0; border-left: 0; padding-left: 0; }
}
.lic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lic-chips .chip { padding: 5px 12px; }
.lic-chips .chip strong { color: var(--muted); font-weight: 600; }
.lic-chips .chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.lic-chips .chip.on strong { color: var(--accent); }

/* ---------- Active Directory ---------- */
.agent-line { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .9rem; }
.input-suffix { display: flex; align-items: stretch; }
.input-suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; flex: 1; }
.input-suffix select { width: auto; max-width: 55%; border-left: 0; border-radius: 0 8px 8px 0; background: var(--surface-2); }
.input-suffix span { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--border); border-left: 0; border-radius: 0 8px 8px 0; background: var(--surface-2); color: var(--muted); font-size: .88rem; white-space: nowrap; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
ol.plan { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.pick-list { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.pick-list:empty { display: none; }
.pick-list li + li { border-top: 1px solid var(--border); }
.pick-list button { width: 100%; text-align: left; background: var(--surface); border: 0; padding: 9px 12px; font: inherit; color: var(--text); cursor: pointer; }
.pick-list button:hover { background: var(--surface-2); }
.picked { padding: 12px 14px; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 10px; margin: 14px 0; }
.flow-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.flow-list button { width: 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; color: var(--text); cursor: pointer; }
.flow-list button:hover { border-color: var(--accent); }
.flow-kind { font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.flow-kind.offboard { background: var(--warn-soft); color: var(--warn); }
.flow-main { flex: 1; min-width: 200px; }
.flow-meta { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.job-res { max-width: 380px; font-size: .85rem; color: var(--muted); }
.pw-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 10px; }
.pw-box > span { font-weight: 600; }
.pw-box code { font-size: 1rem; }
.pw-box small { flex-basis: 100%; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0 0; font-size: .9rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }
ol.install { padding-left: 20px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
ol.install .btn { margin-top: 6px; }
pre.cmd { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-size: .82rem; margin: 6px 0; white-space: pre-wrap; word-break: break-all; }

[hidden] { display: none !important; }

.tpl { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-top: 12px; }
.tpl-foot { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ---------- Vergelijken ---------- */
.src-bar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-bottom: 14px; font-size: .9rem; }
.src-item { display: inline-flex; align-items: center; gap: 6px; }
.cmp-fields { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cmp-fields .chip { font-size: .85rem; padding: 3px 10px 3px 8px; }
.cmp-fields .chip.dim { opacity: .7; }
.cmp-fields .chip strong { color: var(--muted); font-weight: 700; }
.cmp-fields .chip:has(input:checked) strong { color: var(--accent); }
.cmp-fields-hint { font-size: .82rem; margin: 6px 0 0; }
.cmp-table td { vertical-align: top; }
.cmp-sub { font-size: .8rem; margin-top: 2px; }
.cmp-acc { font-size: .88rem; word-break: break-all; }
.cmp-changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cmp-changes label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; font-size: .88rem; }
.cmp-changes input { margin-top: 3px; accent-color: var(--accent); }
.cmp-from { color: var(--muted); text-decoration: line-through; }
.cmp-to { color: var(--accent); font-weight: 600; }
.cmp-note { font-size: .8rem; color: var(--warn); margin-top: 4px; }
.cmp-noacc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-bar { position: sticky; bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 14px; padding: 10px 14px; border: 1px solid var(--accent); background: var(--surface); border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.cmp-bar #cmp-bar-text { margin-right: auto; font-weight: 600; }
ul.cmp-confirm { margin: 12px 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
ul.cmp-confirm ul { margin: 4px 0 0; padding-left: 18px; font-size: .9rem; }

/* ---------- Mailtemplates ---------- */
.tpl-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 980px) { .tpl-edit { grid-template-columns: 1fr; } }
textarea { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; width: 100%; resize: vertical; line-height: 1.5; }
textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.ph-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ph-list .chip { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; padding: 3px 8px; }
.mail-preview { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 6px; background: #fff; }
.mail-subject { padding: 10px 14px; border-bottom: 1px solid var(--border); font-weight: 600; background: var(--surface-2); color: var(--text); }
.mail-preview iframe { width: 100%; height: 470px; border: 0; display: block; background: #fff; }

/* Beheer-subpagina's: kop van het blok niet dubbel tonen */
#beheer-section > .result-head:first-child > h2, #beheer-section > h2:first-child { display: none; }
#beheer-section > .result-head:first-child { justify-content: flex-end !important; }
/* lang menu: menu scrollt, voet blijft zichtbaar */
@media (min-width: 761px) {
  .sidebar nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  .sidebar-foot { margin-top: 0; }
}

/* ---------- meldingenteller, kerncijfers, kaart ---------- */
.sidebar nav a { position: relative; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #c2412d; color: #fff; font-size: .74rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.shell.collapsed .nav-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; font-size: .66rem; }
.badge.new { background: #fde7e3; color: #c2412d; }
.kpi-num small { font-size: .6em; font-weight: 600; color: var(--muted); }
.gender-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--border); margin: 6px 0 2px; }
.gender-bar .m { background: #3f7cac; }
.gender-bar .v { background: #c2577a; }
.map-wrap { margin-top: 12px; }
#dash-map { height: 420px; border-radius: 10px; border: 1px solid var(--border); overflow: hidden; background: var(--surface-2); }
#dash-map .leaflet-heatmap-layer { pointer-events: none !important; }
#dash-map .leaflet-tooltip.dash-names {
  white-space: normal;
  width: max-content;
  max-width: 200px;
  padding: 6px 8px;
  border-radius: 10px;
  line-height: 1.25;
  font-size: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .14);
}
#dash-map .dash-map-person { display: flex; flex-direction: column; gap: 1px; padding: 3px 2px; }
#dash-map .dash-map-person + .dash-map-person { border-top: 1px solid var(--border); padding-top: 5px; margin-top: 2px; }
#dash-map .dash-map-person strong { font-size: 12.5px; font-weight: 650; line-height: 1.25; }
#dash-map .dash-map-person span { font-size: 11px; color: var(--muted); line-height: 1.2; }
#dash-map .dash-map-more { font-size: 11px; color: var(--muted); padding: 4px 2px 0; }
ol.place-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: p; }
ol.place-top li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-size: .9rem; }
#dash-map-card { margin-top: 16px; }

/* jubilea en verjaardagen: compacte lijsten naast elkaar */
.bday-list.one { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
.bday-row.jub .bday-age { background: #efe9f8; color: #6a4ea6; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.bday-row.jub.today { background: #f1ecfa; }
.bday-row.jub.today .bday-date { color: #6a4ea6; }
.bday-row[hidden] { display: none; }
.more-btn { margin-top: 8px; font-size: .85rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bday-row.jub .bday-age { background: #2c2440; color: #c8b5f0; } }
.bday-row.jub .bday-age::before { content: none; }
.bday-row.jub { grid-template-columns: 88px 1fr auto; }

.cel-pending { margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 4px; }
ul.cel-groups { margin: 6px 0 10px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
ul.cel-groups ul { margin: 4px 0 0; padding-left: 16px; font-size: .9rem; }

/* ---------- Logboek ---------- */
.log-table td { vertical-align: top; }
.log-sub { font-size: .8rem; }
.log-table .log-actor { white-space: nowrap; }
td.nowrap { white-space: nowrap; }
.badge.log-mail { background: #e6eef8; color: #2f5f8f; }
.badge.log-sync { background: var(--surface-2); color: var(--muted); }
.badge.log-indienst { background: var(--ok-soft); color: var(--ok); }
.badge.log-uitdienst { background: var(--warn-soft); color: var(--warn); }
.badge.log-ad, .badge.log-m365 { background: var(--accent-soft); color: var(--accent); }
.tpl-toggle.off { color: var(--err); }

.bday-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bday-dept { color: var(--muted); font-size: .8rem; margin-left: 8px; font-weight: 400; }
/* ---------- Export xPlan ---------- */
.xp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.xp-map td { vertical-align: middle; }
.xp-map select, .xp-map input[type=text] { min-width: 180px; }
.xp-map .xp-const, .xp-map .xp-mapv { margin-top: 4px; }
.xp-map .xp-date { min-width: 120px; }
.xp-sample { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.xp-preview td, .xp-preview th { white-space: nowrap; font-size: .82rem; }
.badge.log-export { background: #e6eef8; color: #2f5f8f; }
.badge.log-portaal { background: #eef6e8; color: #3d6b2e; }
.badge.log-wachtwoord { background: #f5efe6; color: #7a5a2e; }

.xp-fmt { display: flex; gap: 6px; }
.xp-fmt .xp-date { min-width: 110px; width: 120px; }
.xp-fmt .xp-mapv { margin-top: 0; min-width: 150px; }
.xp-map td { padding-top: 6px; padding-bottom: 6px; }
.xp-map select, .xp-map input[type=text] { padding: 6px 9px; }

/* Vergelijken: handmatig koppelen */
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent, #2f6f4f); text-decoration: underline; cursor: pointer; font: inherit; font-size: .82rem; }
.cmp-sug { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.cmp-sug .chip { cursor: pointer; font-size: .8rem; }
.cmp-orphans td { vertical-align: top; }
tr.sel td { background: color-mix(in srgb, var(--accent, #2f6f4f) 8%, transparent); }
.cmp-ignored summary { cursor: pointer; color: var(--muted, #65706a); font-size: .88rem; }
.cmp-orphans .cmp-oname { min-width: 150px; }
.cmp-acts { display: flex; flex-wrap: wrap; gap: 4px; }
.cmp-acts .btn { white-space: nowrap; }

/* Microsoft → Licenties */
.lic-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.lic-badge { display: flex; flex-direction: column; gap: 3px; text-align: left; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.lic-badge:hover { border-color: var(--accent); }
.lic-badge.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.lic-badge-name { font-weight: 600; line-height: 1.3; }
.lic-badge-num { font-size: .95rem; }
.lic-badge-num strong { font-size: 1.35rem; color: var(--accent); }
.lic-badge-sub { font-size: .8rem; color: var(--muted); }
.lic-badge.full .lic-badge-sub { color: #a8551b; }
.cmp-obar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 8px; border: 1px dashed var(--border); border-radius: 10px; font-size: .88rem; }
.cmp-obar.on { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.cmp-obar span { flex: 1; min-width: 200px; }
.cmp-orphans th.cb, .cmp-orphans td.cb { width: 28px; padding-right: 0; }
.man-preview iframe { height: 720px; background: #fff; }

/* Vergelijken: koppeling via personeelsnummer */
.ldot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; background: var(--border); }
.ldot.ok { background: #2e9d5b; box-shadow: 0 0 0 3px color-mix(in srgb, #2e9d5b 18%, transparent); }
.ldot.fout { background: #d64545; box-shadow: 0 0 0 3px color-mix(in srgb, #d64545 18%, transparent); }
.ldot.skip { background: #a3aba6; }
.lk-table td.cb, .lk-table th.cb { width: 26px; padding-right: 0; }
.lk-table td { vertical-align: top; }
.btn-danger { background: #c53b3b; border-color: #c53b3b; color: #fff; }
.btn-danger:hover:not(:disabled) { background: #a92f2f; border-color: #a92f2f; }
.btn-danger:disabled { opacity: .45; }
.cmp-obar .obar-sep { flex: 0 0 1px; min-width: 0; align-self: stretch; background: var(--border); margin: 0 4px; }
.ldot.start { background: #2f6fd6; box-shadow: 0 0 0 3px color-mix(in srgb, #2f6fd6 18%, transparent); }
.badge.start { background: color-mix(in srgb, #2f6fd6 14%, transparent); color: #2456a8; }
.emp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 22px; border-bottom: 1px solid var(--border); font-size: .88rem; }
.emp-actions[hidden] { display: none; }
.au-table td.cb, .au-table th.cb { width: 28px; padding-right: 0; }
tr.lnk-leaver td { background: color-mix(in srgb, #d64545 5%, transparent); }

/* Vergelijken → Overzicht */
.ldot.warn { background: #d98a1c; box-shadow: 0 0 0 3px color-mix(in srgb, #d98a1c 18%, transparent); }
.ov-kpis { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.ov-kpis .kpi { padding: 10px 12px; }
.ov-kpis .kpi-num { font-size: 1.5rem; }
.ov-grid td { vertical-align: top; }
.ov-difflist { gap: 2px; }
.ov-difflist li { font-size: .82rem; }
.ov-grid td.cb, .ov-grid th.cb { width: 28px; padding-right: 0; }
.ov-grid tr.ov-acc td:nth-child(2) { color: var(--muted); }
.modal.xwide { width: min(1100px, calc(100vw - 32px)); max-width: none; }
.ov-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.ov-cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .ov-cols, .ov-cols.two { grid-template-columns: 1fr; } }
.ov-col { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); min-width: 0; }
.ov-col h3 { margin: 0 0 8px; font-size: .95rem; }
.ov-kv { grid-template-columns: max-content 1fr; font-size: .88rem; }
.ov-kv dd { overflow-wrap: anywhere; }
.ov-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ov-typechips { margin: 0 0 8px; }
.ov-changes li { padding: 4px 0; }
.cmp-refreshing { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 8%, transparent); font-size: .88rem; display: flex; align-items: center; gap: 8px; }
.cmp-refreshing[hidden] { display: none; }
.ldot { flex: none; }
.ov-cols.one { grid-template-columns: 1fr; }
.ov-nmbrs { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 12px; }
.ov-nmbrs > summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--accent); }
.ov-nmbrs-body { margin-top: 10px; }
.ov-changes li { display: flex; align-items: flex-start; gap: 10px; }
.ov-changes li label { flex: 1; }
.ov-ign { font-size: .8rem; color: var(--muted); }
.ov-ignored { margin-top: 10px; }
/* medewerkerskaart compact: alles in één scherm */
.modal.xwide { max-height: calc(100vh - 32px); }
#ov-dlg .modal-head { padding: 14px 20px 10px; align-items: center; }
#ov-dlg .modal-head h2 { font-size: 1.25rem; }
#ov-dlg .ov-head-text { flex: 1; min-width: 0; }
.ov-photo-slot:empty { display: none; }
.ov-photo-slot--edit { display: flex; flex: none; }
.ov-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.ov-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.ov-photo-ph { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--accent); font-weight: 700; font-size: .95rem; }
.ov-photo-upload { font-size: .72rem !important; padding: 2px 6px !important; line-height: 1.2; }
.ov-photo-zoom { cursor: zoom-in; }
.ov-head-text { flex: 1; min-width: 0; }

.photo-lightbox { border: 0; padding: 0; background: transparent; max-width: none; }
.photo-lightbox::backdrop { background: rgba(12, 18, 16, .72); }
.photo-lightbox-inner { position: relative; margin: 0; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0; }
.photo-lightbox-inner img { max-width: min(520px, calc(100vw - 48px)); max-height: min(70vh, 520px); width: auto; height: auto; border-radius: 12px; object-fit: contain; background: var(--surface); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.photo-lightbox-inner #photo-lightbox-name { color: #fff; margin: 0; text-align: center; }
.photo-lightbox-acts { display: flex; gap: 8px; }
.photo-lightbox-acts .btn { background: rgba(255,255,255,.92); }
.photo-lightbox-close { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.92) !important; }

.wiw-dept { margin: 0 0 22px; }
.wiw-dept-title { margin: 0 0 10px; font-size: 1.05rem; display: flex; align-items: baseline; gap: 8px; }
.wiw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.wiw-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; min-width: 0; }
.wiw-card:hover, .wiw-card:focus { border-color: var(--accent); outline: none; }
.wiw-avatar { flex: none; width: 64px; height: 64px; }
.wiw-avatar-sm { flex: none; width: 36px; height: 36px; }
.wiw-photo, .wiw-initials { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; background: var(--surface-2); }
.wiw-initials { display: grid; place-items: center; font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.wiw-avatar-sm .wiw-initials { font-size: .78rem; }
.wiw-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wiw-name { font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiw-fn { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiw-sub { font-size: .78rem; }
.wiw-cols { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.wiw-cols .chip { cursor: pointer; user-select: none; }
.wiw-cols .chip input { margin: 0 4px 0 0; }
.wiw-table th.wiw-th-photo, .wiw-table td.wiw-td-photo { width: 48px; }
.wiw-row { cursor: pointer; }
.wiw-row:hover td, .wiw-row:focus td { background: var(--accent-soft); }
.wiw-row:focus { outline: none; }
#ov-dlg .modal-body { padding: 4px 20px 16px; }
#ov-dlg .detail-summary { padding: 8px 12px; margin-top: 10px; }
#ov-dlg .ov-cols { gap: 10px; margin-top: 10px; }
#ov-dlg .ov-col { padding: 10px 12px; display: flex; flex-direction: column; }
#ov-dlg .ov-col h3 { margin: 0 0 4px; font-size: .9rem; }
#ov-dlg .ov-col .ov-acts { margin-top: auto; padding-top: 8px; }
#ov-dlg .ov-kv { font-size: .84rem; gap: 2px 10px; margin-top: 4px; }
#ov-dlg .ov-kv dt { font-size: .8rem; }
#ov-dlg .ov-kv dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#ov-dlg .ov-kv { grid-template-columns: max-content minmax(0, 1fr); }
#ov-dlg .section-title { margin: 14px 0 6px; }
#ov-dlg .actions { margin-top: 8px; }
#ov-dlg .ov-nmbrs { margin-top: 12px; padding-top: 8px; }
.ov-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: .88rem; }
.ov-okline { color: var(--ok, #1f7a4d); font-weight: 600; }
.ov-ignored summary { cursor: pointer; color: var(--muted); font-size: .88rem; }

/* Beheer → Instellingen: inklapbare onderdelen */
details.set-fold { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin: 0 0 10px; }
details.set-fold > summary { cursor: pointer; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 16px; list-style: none; }
details.set-fold > summary::-webkit-details-marker { display: none; }
details.set-fold > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); flex: none; transition: transform .15s; }
details.set-fold[open] > summary::after { transform: rotate(-135deg); }
.set-fold-title { font-weight: 650; font-size: 1.02rem; }
.set-fold-meta { font-size: .82rem; }
.set-fold-body { padding: 0 16px 16px; border-top: 1px solid var(--border); }
#beheer-section:has(.set-fold) { padding: 12px; background: transparent; border: 0; box-shadow: none; }

/* Beheer → Instellingen: automatiseringen */
.auto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .auto-grid { grid-template-columns: 1fr; } }
.auto-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.auto-card.on { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.auto-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.auto-head h3 { margin: 0 0 4px; font-size: 1rem; }
.auto-head p { margin: 0; font-size: .88rem; }
.auto-card details { margin-top: 10px; }
.auto-card summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .88rem; }
.dept-map td { vertical-align: middle; }
.dept-map select { min-width: 220px; }
.m365del:not(.on) .m365del-opts { display: none !important; }
.ov-pwbox { margin-top: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: .88rem; background: var(--surface-2); }
.ov-pwbox.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.ov-pwbox.ok { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.ov-pwbox.err { border-color: var(--err); background: var(--err-soft); }
.ov-pwbox.warn { border-color: var(--warn); background: var(--warn-soft); }
.ov-pwrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ov-pwrow > span { font-weight: 600; }
.ov-pwcode { font-size: 1.05rem; padding: 3px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); letter-spacing: .04em; user-select: all; }
/* Applicaties: Nmbrs, Microsoft en Active Directory als subgroepen */
.nav-apps > .nav-sub { margin-left: 14px; padding-left: 4px; }
.nav-apps .nav-group .nav-sub { margin-left: 12px; }
.nav-apps .nav-sub a.sub { padding: 6px 8px; }
.nav-apps .nav-group { margin-top: 2px; }
.nav-apps .nav-group .nav-group-head { padding: 7px 10px; font-size: .94rem; }
@media (min-width: 761px) { .shell.collapsed .nav-apps > .nav-sub { border-top: 0; padding-top: 0; } }
/* Opzoeken */
.lookup-bar input { width: 100%; font-size: 1.05rem; padding: 12px 14px; }
.lookup-table td { vertical-align: top; }
.tabs.tabs-fit { flex-wrap: wrap; overflow: visible; row-gap: 0; }
.tabs.tabs-fit .tab { white-space: nowrap; }
.fn-table input { width: 100%; min-width: 220px; }
.fn-table td { vertical-align: middle; }
.btn.ov-del { color: var(--err); }
.btn.ov-del:hover { background: var(--err-soft); }
.sidebar nav a { position: relative; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.nav-badge.fail { background: var(--err); }
.nav-badge[hidden] { display: none; }
@media (min-width: 761px) { .shell.collapsed .nav-badge { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; font-size: .65rem; padding: 0 4px; } }
.pw-mailrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.pw-mailrow input[type=email] { flex: 1; min-width: 220px; max-width: 360px; }
.acc-from { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2, color-mix(in srgb, var(--text) 3%, var(--surface))); }
.acc-lu-list { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); max-height: 240px; overflow-y: auto; }
.acc-lu-hit { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 8px 12px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.acc-lu-hit:hover, .acc-lu-hit:focus { background: var(--accent-soft, #e3f3e9); }
.acc-person { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.acc-assign { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.acc-assign select { max-width: 220px; }
.acc-bar { flex-wrap: wrap; }
.acc-list { display: flex; flex-direction: column; gap: 8px; }
.acc-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.acc-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.acc-card-head h3 { margin: 0; font-size: 1rem; }
.acc-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
@media (max-width: 720px) { .acc-lanes { grid-template-columns: 1fr; } }
.acc-lane { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; background: var(--surface-2, color-mix(in srgb, var(--text) 3%, var(--surface))); min-height: 52px; }
.acc-lane-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.acc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; }
.acc-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.acc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 4px; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; background: var(--surface); max-width: 100%; }
.acc-chip.has-desc { align-items: flex-start; border-radius: 12px; padding: 5px 6px 5px 4px; }
.acc-chip-body { display: flex; flex-direction: column; min-width: 0; gap: 1px; padding-right: 2px; }
.acc-chip-name { line-height: 1.25; }
.acc-chip .acc-desc { font-size: .72rem; color: var(--muted); font-weight: 400; line-height: 1.3; max-width: 280px; }
.acc-chip .acc-src { font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.acc-chip.m365 .acc-src, .gchip.m365 .acc-src { background: color-mix(in srgb, #2f6fd6 14%, transparent); color: #2456a8; }
.acc-chip.kind-m365 .acc-src, .gchip.kind-m365 .acc-src { background: color-mix(in srgb, #2f6fd6 14%, transparent); color: #2456a8; }
.acc-chip.kind-team .acc-src, .gchip.kind-team .acc-src { background: color-mix(in srgb, #5b5fc7 18%, transparent); color: #464eb8; }
.acc-chip.kind-dl .acc-src, .gchip.kind-dl .acc-src { background: color-mix(in srgb, #c2410c 14%, transparent); color: #9a3412; }
.acc-chip.kind-mailsec .acc-src, .gchip.kind-mailsec .acc-src { background: color-mix(in srgb, #0f766e 14%, transparent); color: #0f766e; }
.acc-chip.kind-sec .acc-src, .gchip.kind-sec .acc-src { background: color-mix(in srgb, #475569 14%, transparent); color: #334155; }
.acc-chip.mailbox .acc-src, .gchip.mailbox .acc-src { background: color-mix(in srgb, #7c3aed 14%, transparent); color: #5b21b6; }
.acc-chip.ad .acc-src, .gchip.ad .acc-src { background: var(--accent-soft, #e3f3e9); color: var(--accent); }
.acc-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 12px; font-size: .8rem; color: var(--muted); }
.acc-legend .acc-chip { cursor: default; padding: 2px 8px 2px 3px; }
.acc-legend .acc-chip .acc-src { pointer-events: none; }
.acc-x { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1; padding: 0 4px; }
.acc-x:hover { color: var(--err); }
.acc-table td { vertical-align: middle; }
.gchip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 3px; border-radius: 999px; font-size: .82rem; border: 1px solid var(--border); background: var(--surface); }
.gchip.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); color: var(--ok); }
.gchip.miss { border-color: color-mix(in srgb, var(--err) 40%, transparent); background: var(--err-soft); color: var(--err); }
.gchip.extra { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); color: var(--warn); }
.gchip.unk { color: var(--muted); }
.gchip .acc-src { font-size: .65rem; font-weight: 700; padding: 1px 5px; border-radius: 999px; background: rgba(255,255,255,.7); color: inherit; }
.ov-groups { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }

/* Dashboard: eerstvolgende starters en vertrekkers */
.dash-nextup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
@media (max-width: 900px) { .dash-nextup { grid-template-columns: 1fr; } }
.dash-nextup > .card + .card { margin-top: 0; }
.nextup { padding: 16px 18px; border-top: 4px solid var(--nu); }
.nextup.start { --nu: #217a4b; --nu-soft: #e3f3e9; }
.nextup.leave { --nu: #a3620b; --nu-soft: #fbf1db; }
.nextup-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; }
.nextup-count { margin-left: auto; font-weight: 400; font-size: .8rem; color: var(--muted); }
.nextup-main { display: flex; gap: 16px; align-items: center; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--nu-soft); }
.nextup-main:hover { filter: brightness(.98); }
.nextup-date { flex: none; width: 64px; height: 64px; border-radius: 12px; background: var(--nu); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.nd-day { font-size: 1.7rem; font-weight: 800; }
.nd-mon { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.nextup-who { min-width: 0; }
.nextup-name { font-size: 1.15rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nextup-sub { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nextup-when { margin-top: 6px; font-size: .84rem; }
.nextup-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface); color: var(--nu); font-weight: 700; border: 1px solid color-mix(in srgb, var(--nu) 30%, transparent); }
.nextup-pill.soon { background: var(--nu); color: #fff; }
.nextup-rest { list-style: none; margin: 10px 0 0; padding: 0; }
.nextup-rest li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--border); font-size: .9rem; border-radius: 6px; }
.nextup-rest li:hover { background: var(--surface-2); }
.nr-date { color: var(--muted); font-size: .84rem; }
.nr-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-when { font-size: .8rem; }
.nextup-all { display: inline-block; margin-top: 10px; font-size: .85rem; color: var(--accent); }
@media (prefers-color-scheme: dark) { .nextup.start { --nu-soft: #1d3327; } .nextup.leave { --nu-soft: #3a2e17; } }
.dash-top { padding-top: 4px; }
