: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: 256px; 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; min-height: 0; overflow-y: auto; }
.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: 1480px; 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: minmax(0, 1fr); background: var(--bg); }
  .sidebar, .sidebar nav { min-width: 0; max-width: 100%; box-sizing: border-box; }
  .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; flex-wrap: wrap; align-items: center; max-width: 100%; }
  .sidebar-foot .admin-who { display: none; }
  .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], input[type=number], input[type=datetime-local], input[type=tel], 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-x: hidden; overflow-y: auto; }
.gate-main { align-content: safe center; gap: 10px; }
.gate-portal { gap: 4px; }
.gate-portal-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gate-portal-text { min-width: 0; flex: 1 1 180px; }
.gate-portal h2 { margin: 1px 0 0; font-size: .92rem; line-height: 1.25; letter-spacing: -.01em; }
.gate-portal .gate-ms-btn { display: inline-flex; align-items: center; gap: 7px; align-self: center; white-space: nowrap; text-decoration: none; }
.gate-portal .gate-ms-btn.is-disabled { opacity: .5; pointer-events: none; cursor: default; }
.gate-portal-note { margin: 0; font-size: .78rem; }
.gate-portal .form-error { margin: 0; font-size: .84rem; }
.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; }
#confirm { overflow-y: auto; }
.gate-secret { display: flex; flex-direction: column; gap: 6px; }
.gate-secret[hidden] { display: none; }
.gate-secret input[readonly] { font-weight: 650; }
.gate-secret input::placeholder { color: #8a948e; font-weight: 500; }
.gate-secret [hidden] { display: none; }
.gate-sent { margin: 2px 0 0; font-size: 1.08rem; font-weight: 750; color: var(--ok); }
.gate-wait { margin: 0; padding: 8px 10px; border-radius: 8px; background: #f3f6f4; border: 1px solid #d5e0da; color: #244034; font-size: .84rem; line-height: 1.35; }
.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; }
#login-pw { display: flex; flex-direction: column; gap: 10px; }
#login-pw > p { margin: 0; }
.gate-admin .gate-ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: stretch; }
.gate-admin [value=login] { align-self: stretch; justify-content: center; }
.gate-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; margin: 6px 0 2px; }
.gate-or::before, .gate-or::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.portal-beheer { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; background: var(--surface); text-decoration: none; }
.portal-beheer:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 640px) { .portal-beheer span { display: none; } .portal-beheer { padding: 8px; } }
.admin-who { display: block; font-size: .78rem; color: var(--muted); padding: 0 12px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell.collapsed .admin-who { display: none; }
.pu-role.role-beheer { background: #eef2f7; color: #34495e; }

/* 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; height: calc(100vh - 290px); min-height: 420px; 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-x: hidden; overflow-y: auto; }
  .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; }
.sig-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .sig-grid { grid-template-columns: 1fr; } }
.sig-side { display: grid; grid-template-columns: minmax(260px, max-content) minmax(220px, 1fr); gap: 8px 32px; align-items: start; }
.sig-side h3 { margin-top: 0; }
@media (max-width: 860px) { .sig-side { grid-template-columns: 1fr; } }
.sig-preview { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 16px 8px; color: #3d4742; }
.sig-steps { margin: 8px 0 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 6px; }
.sig-preview img { max-width: 72px; height: auto; }

/* 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 */
/* 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; } }
.priv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px 24px; }
.priv-grid select { max-width: 220px; }
.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-org { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.acc-org-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; padding: 12px 14px; background: var(--surface-2, color-mix(in srgb, var(--text) 3%, var(--surface))); }
.acc-org-head h3 { margin: 0; font-size: 1rem; }
.acc-org-dept { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: min(100%, 320px); }
.acc-org-funcs { list-style: none; margin: 0; padding: 0; }
.acc-org-func { display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); gap: 8px 16px; padding: 10px 14px; border-top: 1px solid var(--border); align-items: start; }
.acc-org-inherit { margin-top: 4px; font-size: .8rem; color: var(--muted); }
@media (max-width: 720px) {
  .acc-org-func { grid-template-columns: 1fr; }
  .acc-org-dept { align-items: flex-start; }
}
.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; }

/* ---------- Portaal Gesprekscyclus (Microsoft 365-login) ---------- */
.portal-body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); }
.portal-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
.portal-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.portal-brand .brand-logo { width: 30px; height: 30px; }
.portal-title { font-weight: 700; letter-spacing: -.01em; margin-left: 4px; }
.portal-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.portal-user-text { display: flex; flex-direction: column; line-height: 1.25; text-align: right; min-width: 0; }
.portal-user-name { font-weight: 650; font-size: .92rem; }
.portal-user-mail { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-main { max-width: 1720px; margin: 0 auto; padding: 28px 20px 48px; display: flex; flex-direction: column; gap: 16px; }
.portal-main .page-head { margin-bottom: 4px; }
.portal-main .page-head h1 { margin: 0 0 4px; }
/* De inleiding ligt op de bedrijfsfoto. Zelfde inkt als de titel, anders valt de grijze zin weg. */
.portal-main .page-head .muted { color: #1c2420; }
.portal-main h2 { margin: 0 0 8px; font-size: 1.05rem; }
.portal-roles { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.portal-role { background: var(--accent-soft); color: var(--accent); }
.portal-role.role-hr { background: var(--ok-soft); color: var(--ok); }
.portal-rights { margin: 0 0 8px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.portal-source { margin: 0; font-size: .84rem; }
.portal-tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 560px) { .portal-tiles { grid-template-columns: 1fr; } }
.portal-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.portal-tile-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.portal-tile-copy { flex: 1; min-width: 0; }
.portal-tile-copy h3 { margin: 0; font-size: 1rem; }
.view-as { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 auto 12px; padding: 8px 14px; max-width: 1200px; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface); font-size: .88rem; }
.view-as.on { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.view-as-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.view-as-pick { position: relative; }
.view-as-pick input { width: 240px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: var(--surface); color: var(--text); }
.view-as-hits { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; width: 360px; max-height: 320px; overflow: auto; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.view-as-hits button { display: block; width: 100%; text-align: left; padding: 6px 10px; border: 0; background: none; border-radius: 6px; font: inherit; color: var(--text); cursor: pointer; }
.view-as-hits button:hover, .view-as-hits button:focus-visible { background: var(--accent-soft); }
/* tegels per rol (leidinggevende, HR, ICT/TD): kopje en gekleurde rand per groep */
.tile-group { --grp: var(--muted); --grp-soft: var(--surface-2); margin-top: 18px; }
.tile-group-leidinggevende { --grp: var(--warn); --grp-soft: var(--warn-soft); }
.tile-group-hr { --grp: var(--ok); --grp-soft: var(--ok-soft); }
.tile-group-ict { --grp: #2f5fa7; --grp-soft: #e4ecf8; }
.tile-group-td { --grp: #6b4fa7; --grp-soft: #eee8f8; }
@media (prefers-color-scheme: dark) { .tile-group-ict { --grp: #7aa7e8; --grp-soft: #1b2638; } .tile-group-td { --grp: #b39be8; --grp-soft: #261d38; } }
.tile-group-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--grp); }
.tile-group-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grp); }
.tile-group:not(.tile-group-all) .portal-tile { border-left: 4px solid var(--grp); }
.tile-group:not(.tile-group-all) .portal-tile-ico { background: var(--grp-soft); color: var(--grp); }
.portal-tile-copy .tile-soon { display: inline-block; margin-top: 4px; font-size: .75rem; }
.portal-tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.portal-tile-head h3 { margin: 0; font-size: 1rem; }
.portal-dept { margin: 16px 0 6px; font-size: .92rem; }
.portal-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 18px; }
.portal-people li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .9rem; min-width: 0; }
.portal-person { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .portal-bar { padding: 8px 14px; }
  .portal-user-text { display: none; }
  .portal-main { padding: 20px 14px 40px; }
}

/* Beheer → Gebruikers (portaal Gesprekscyclus) */
.pu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.pu-block h2 { margin: 0 0 6px; font-size: 1.05rem; }
.pu-block > p { margin: 0 0 12px; font-size: .9rem; }
.pu-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin: 14px 0; }
.pu-stats div { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.pu-stats strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.pu-stats span { font-size: .78rem; overflow-wrap: anywhere; }
.pu-table td:nth-child(4) { min-width: 170px; }
.pu-denied { white-space: normal; }
.pu-setup { margin-top: 10px; font-size: .88rem; }
.pu-setup summary { cursor: pointer; font-weight: 600; }
.pu-setup ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.pu-code { word-break: break-all; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.pu-depts .chip { font-size: .86rem; }
.pu-legend { font-size: .86rem; margin: -4px 0 10px; }
.pu-sub { font-size: .8rem; }
.pu-role { background: var(--accent-soft); color: var(--accent); }
.pu-role.role-medewerker { background: var(--surface-2); color: var(--muted); }
.pu-role.role-hr { background: var(--ok-soft); color: var(--ok); }
.pu-acts { white-space: nowrap; }
.pu-chip { padding: 3px 9px 3px 7px; font-size: .82rem; }
.pu-chip:has(input:disabled) { opacity: .6; cursor: default; }

/* ---------- Portaal Gesprekscyclus: gesprekken, formulieren, cycli ---------- */
.callout.info { background: var(--accent-soft); }
.portal-crumb { margin: 0; font-size: .9rem; }
.portal-crumb { margin: 0 0 4px; }
.portal-back { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .88rem; font-weight: 600; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: border-color .15s, color .15s, transform .15s; }
.portal-back svg { color: var(--accent); transition: transform .15s; }
.portal-back:hover { border-color: var(--accent); color: var(--accent); }
.portal-back:hover svg { transform: translateX(-2px); }
.portal-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.portal-tile-link { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.portal-tile-link:hover, .portal-tile-link:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.portal-tile-go { flex: none; color: var(--accent); font-weight: 700; }
.gc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.gc-head h1, .gc-head h2 { margin: 0 0 4px; }
.gc-head-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.gc-kicker { margin: 0 0 2px; font-size: .85rem; }
.gc-sub { font-size: .8rem; }
.gc-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; background: var(--surface-2); border-radius: 10px; align-self: flex-start; }
.gc-tab { padding: 7px 14px; border-radius: 7px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.gc-tab.active { background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.08); color: var(--accent); }
.gc-st.ok { background: var(--ok-soft); color: var(--ok); }
.gc-st.warn { background: var(--warn-soft); color: var(--warn); }
.gc-st.info { background: var(--accent-soft); color: var(--accent); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.gc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.gc-step { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: .86rem; line-height: 1.3; }
.gc-step.done { border-color: var(--ok); background: var(--ok-soft); }
.gc-step-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; }
.gc-step.done .gc-step-dot { background: var(--ok); border-color: var(--ok); }
.gc-step-at { display: block; font-size: .78rem; }
.gc-note { margin: 0; }
.gc-form { display: flex; flex-direction: column; gap: 12px; }
.gc-section { margin: 12px 0 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.gc-q { display: flex; flex-direction: column; gap: 10px; }
.gc-q-prompt { margin: 0; font-weight: 650; font-size: 1rem; }
.gc-q-meta { margin: -6px 0 0; font-size: .8rem; }
.gc-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.gc-answer { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--surface-2); min-width: 0; }
.gc-answer.mine { background: var(--surface); border-color: var(--accent); }
.gc-answer-who { font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.gc-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.gc-input { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); resize: vertical; }
.gc-scale { display: flex; gap: 6px; flex-wrap: wrap; }
.gc-scale-opt { position: relative; }
.gc-scale-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gc-scale-opt span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 8px; font-weight: 700; background: var(--surface); }
.gc-scale-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gc-scale-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.gc-scale-read { color: var(--accent); letter-spacing: 2px; }
.gc-actions { position: sticky; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.gc-sign h2, .gc-cycle h2 { margin: 0 0 6px; font-size: 1.05rem; }
.gc-sign { display: flex; flex-direction: column; gap: 10px; }
.gc-sign > .btn { align-self: flex-start; }
.gc-inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.gc-inline .field { flex: 1 1 200px; margin: 0; }
.gc-signoffs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gc-signoffs li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.gc-comment { margin-top: 6px; padding: 8px 10px; background: var(--surface-2); border-radius: 6px; }
.gc-qedit-list { display: flex; flex-direction: column; gap: 10px; }
.gc-qedit { display: flex; flex-direction: column; gap: 10px; }
.gc-qedit-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gc-qedit-acts { display: flex; gap: 4px; }
.gc-qedit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.gc-qedit .field { margin: 0; }
.gc-qedit textarea, .gc-qedit input[type=text], .gc-qedit select, .gc-title-field input { width: 100%; box-sizing: border-box; }
.gc-req { align-self: end; justify-self: start; height: 38px; }
.gc-title-field { margin: 0 0 4px; max-width: 520px; }
.gc-title-field input { font-size: 1.2rem; font-weight: 700; }
.gc-add { align-self: flex-start; }
.gc-danger { color: var(--err); }
.gc-progress { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; }
.gc-bar-label { display: flex; justify-content: space-between; gap: 8px; font-size: .86rem; margin-bottom: 4px; }
.gc-bar-track { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.gc-bar-fill { height: 100%; background: var(--accent); border-radius: 5px; }
.gc-table td { vertical-align: middle; }
.toast.err { background: var(--err); color: #fff; }
.pu-db { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.pu-db-head { display: flex; align-items: center; gap: 10px; }
.pu-db-head h2 { margin: 0; }
.pu-db-sync { font-size: .84rem; margin: 0 0 10px; }
.pu-err { color: var(--err); }

/* ---------- Portaal: afspraak, score, planning, scores, normering ---------- */
.gc-meet h2, .gc-rate h2 { margin: 0 0 6px; font-size: 1.05rem; }
.gc-meet-when { margin: 0 0 10px; }
.gc-meet-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.gc-meet-note { font-size: .82rem; margin: 10px 0 0; }
.gc-meet .gc-inline .field { flex: 1 1 150px; }
.gc-rate { display: flex; flex-direction: column; gap: 12px; }
.gc-rate > p { margin: 0; }
.gc-rate > .btn { align-self: flex-start; }
.gc-rate-edit { display: flex; flex-direction: column; gap: 10px; }
.gc-rate-crit { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--border); }
.gc-rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 18px; }
.gc-rate-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.gc-rate-result { display: flex; gap: 24px; flex-wrap: wrap; padding: 12px 14px; border-radius: 8px; background: var(--accent-soft); }
.gc-rate-result > div { display: flex; flex-direction: column; }
.gc-rate-result strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.gc-rate-result .muted { font-size: .8rem; }
.gc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.gc-tiles .card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.gc-tiles strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.gc-tiles .muted { font-size: .82rem; }
.gc-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.gc-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.gc-stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.gc-stack-held { background: var(--accent); }
.gc-stack-planned { background: #7fb3aa; }
.gc-stack-open { background: #e2c48f; }
.gc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.gc-cols h2 { margin: 0 0 10px; font-size: 1.05rem; }
.gc-dist { display: flex; align-items: flex-end; gap: 10px; min-height: 190px; padding-top: 6px; border-bottom: 1px solid var(--border); }
.gc-dist-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; text-align: center; padding-bottom: 6px; }
.gc-dist-bar { width: 100%; max-width: 56px; min-height: 3px; background: var(--accent); border-radius: 6px 6px 0 0; }
.gc-dist-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.gc-dist-l { font-size: .8rem; font-weight: 600; overflow-wrap: anywhere; }
.gc-hrow { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 40px; gap: 10px; align-items: center; padding: 5px 0; font-size: .9rem; }
.gc-hrow strong { text-align: right; font-variant-numeric: tabular-nums; }
.gc-hbar { position: relative; height: 12px; border-radius: 6px; background: var(--surface-2); }
.gc-hbar-fill { height: 100%; border-radius: 6px; background: var(--accent); }
.gc-hbar-fill.warn { background: #c27c0e; }
.gc-hbar-ref { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); }
.gc-norm-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.gc-norm-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); }
.gc-norm-row > .btn { margin-bottom: 6px; }
.gc-norm-row .field { margin: 0; flex: 1 1 160px; }
.gc-norm-row .gc-norm-num, .gc-inline .gc-norm-num { flex: 0 1 150px; }
.gc-norm-row .gc-norm-wide { flex: 3 1 260px; }
.gc-norm-status p { margin: 0 0 10px; }
.gc-err { color: var(--err); }
.chip.is-disabled { opacity: .55; cursor: default; }
.gc-tiles > .card, .gc-cols > .card { margin: 0; }
.gc-dist-l { overflow-wrap: normal; hyphens: auto; -webkit-hyphens: auto; font-size: .76rem; }

/* Beheer → Mailtemplates: mails per groep met duidelijke aan/uit-status */
.tpl-picker { margin: 14px 0 18px; display: grid; gap: 10px; }
.tpl-legend { margin: 0; font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tpl-legend { column-gap: 16px; }
.tpl-legend > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tpl-group { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px 12px; background: var(--surface); }
.tpl-group-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tpl-group-h h3 { margin: 0; font-size: .95rem; }
.tpl-count { font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tpl-count.all { background: var(--ok-soft); color: var(--ok); }
.tpl-count.some { background: var(--accent-soft); color: var(--accent); }
.tpl-group-h .tpl-bulk { margin-left: auto; padding: 4px 10px; font-size: .82rem; }
.tpl-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); font-size: .88rem; font-weight: 600; background: var(--surface); }
.tpl-pill:hover { border-color: var(--accent); }
.tpl-pill.is-off .tpl-name { color: var(--muted); }
.tpl-pill.sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.tpl-st { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tpl-pill.is-on .tpl-st { background: var(--ok-soft); color: var(--ok); }
.tpl-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--muted); flex: none; display: inline-block; box-sizing: border-box; }
.tpl-dot.on { background: var(--ok); border-color: var(--ok); }
.gc-edit-callout { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gc-report .field + .field { margin-top: 10px; }
.gc-report textarea { width: 100%; font: inherit; }
.gc-report-saved { margin: 8px 0 0; font-size: .85rem; }
.gc-report-h { font-size: .9rem; margin: 12px 0 4px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* Organogram: volle breedte, onderste laag onder elkaar, slepen om te schuiven */
.view.view-wide { max-width: none; }
.og-canvas { cursor: grab; }
.og-canvas.panning { cursor: grabbing; user-select: none; }
.og-chart { align-items: center; }
.og-tree ul.og-wrap { display: grid; grid-template-columns: repeat(var(--cols), max-content); gap: 20px 12px; padding: 14px 14px 20px; margin-top: 26px; border: 2px solid var(--border); border-radius: 12px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.og-tree li > ul.og-wrap::before { top: -15px; height: 13px; }
.og-tree ul.og-wrap > li { padding: 0; }
.og-tree ul.og-wrap > li::before, .og-tree ul.og-wrap > li::after { display: none; }
.og-tree ul.og-wrap .og-node { width: 240px; }
.og-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.og-head h1 { margin-bottom: 2px; }
.og-head p { margin: 0; }
.og-head-acts { display: flex; gap: 8px; align-items: center; }
.og-head-acts select { width: auto; min-width: 170px; padding: 6px 10px; }
.og-canvas { height: calc(100vh - 250px); }
@media (max-width: 700px) { .og-canvas { height: auto; max-height: none; min-height: 0; padding: 12px; } .og-list .og-node { min-width: 0; width: 100%; max-width: none; } .og-list ul { margin-left: 8px; padding-left: 10px; } }
/* Organogram: profielfoto's */
.og-avatar { position: relative; overflow: hidden; }
.og-avatar, .og-avatar.has-photo { width: 38px; height: 38px; }
.og-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.og-node.manager .og-avatar.has-photo { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--accent-soft); }

/* Startpagina: medewerkersportaal met wachtwoordknoppen */
.gate-home { max-width: 420px; padding: 22px 22px 16px; gap: 8px; text-align: center; align-items: stretch; }
.gate-home-logos { display: flex; justify-content: center; gap: 10px; margin-bottom: 2px; }
.gate-home-logos img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.gate-home-logos img.amstelpark { background: #e30613; }
.gate-avatar[hidden] { display: none; }
.gate-home.has-person { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; align-items: center; text-align: left; }
.gate-home.has-person .gate-avatar { display: block; grid-column: 1; grid-row: 1 / span 3; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(18, 36, 30, .18); }
.gate-home.has-person .gate-home-logos { display: none; }
.gate-home.has-person .gate-kicker, .gate-home.has-person #portal-title, .gate-home.has-person #notme { grid-column: 2; text-align: left; justify-self: start; margin-top: 0; }
.gate-home.has-person > :not(.gate-avatar):not(.gate-kicker):not(#portal-title):not(#notme):not(.gate-home-logos) { grid-column: 1 / -1; text-align: center; }
.gate-home .gate-kicker { margin-top: 4px; }
.gate-home h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; }
.gate-home-lead { margin: 0 0 6px; font-size: .92rem; }
.gate-home .gate-ms-btn { justify-content: center; padding: 12px 16px; font-size: 1rem; align-self: stretch; }
.gate-home .gate-portal-note { font-size: .8rem; }
.gate-divider { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gate-divider::before, .gate-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.gate-pw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gate-pw-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 10px; font-size: .88rem; }
.gate-pw-note { margin: 2px 0 0; font-size: .76rem; }
.gate-back-btn { align-self: flex-start; border: 0; background: none; padding: 0; margin: 0 0 4px; font: inherit; font-size: .84rem; color: var(--accent); cursor: pointer; }
.gate-back-btn:hover { text-decoration: underline; }
@media (max-width: 380px) { .gate-pw-actions { grid-template-columns: 1fr; } }
.gate-home { max-width: 440px; max-height: none; overflow: visible; }
.gate-pw-actions .btn { white-space: nowrap; font-size: .85rem; padding: 9px 8px; }
@media (max-width: 520px) { .gate-portal-title { display: none; } .gate-bar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gate-pw-actions { grid-template-columns: 1fr; } }

/* Portaal: profiel met foto, diensttijd en leidinggevende */
.pp-av { position: relative; flex: none; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.pp-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-av-lg { width: 96px; height: 96px; font-size: 1.9rem; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent-soft); }
.pp-av-md { width: 56px; height: 56px; font-size: 1.1rem; }
.pp-av-sm { width: 32px; height: 32px; font-size: .72rem; }
.pp-av-xs { width: 34px; height: 34px; font-size: .74rem; }
.portal-profile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; padding: 22px 24px; background: linear-gradient(135deg, var(--surface) 55%, var(--accent-soft)); }
.pp-me { display: flex; align-items: center; gap: 20px; min-width: 0; }
.pp-me-text { min-width: 0; }
.pp-kicker { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.portal-profile h1 { margin: 2px 0 2px; font-size: 1.6rem; letter-spacing: -.02em; }
.pp-sub { margin: 0 0 10px; }
.pp-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-fact { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.pp-fact svg { color: var(--muted); }
.pp-fact-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.pp-fact-accent svg { color: currentColor; }
.pp-mgr { min-width: 260px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.pp-label { margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pp-mgr-row { display: flex; align-items: center; gap: 12px; }
.pp-mgr-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pp-mgr-text .muted { font-size: .85rem; }
.pp-mail { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-mgr-acts { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pp-mgr-acts .btn { display: inline-flex; align-items: center; gap: 6px; }
.portal-people li { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.pp-person-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.portal-user .pp-av-xs { order: -1; }
@media (max-width: 760px) {
  .portal-profile { grid-template-columns: 1fr; padding: 18px; }
  .pp-me { flex-direction: column; text-align: center; gap: 12px; }
  .pp-facts { justify-content: center; }
  .pp-mgr { min-width: 0; }
  .portal-user .pp-av-xs { display: none; }
}

/* Portaal: achtergrond per bedrijf, één logo, foto wijzigen */
.portal-body.brand-zuiver, .portal-body.brand-amstelpark { background-color: var(--bg); background-attachment: fixed; background-size: cover; background-position: center; }
.portal-body.brand-zuiver { background-image: linear-gradient(rgba(246, 245, 241, .94), rgba(246, 245, 241, .92) 280px, rgba(246, 245, 241, .72) 62%), url("/assets/brand/bg-zuiver-wellness-2.jpg"); }
.portal-body.brand-amstelpark { background-image: linear-gradient(rgba(246, 245, 241, .94), rgba(246, 245, 241, .92) 280px, rgba(246, 245, 241, .7) 62%), url("/assets/brand/bg-tennis.jpg"); }
.portal-body.brand-zuiver .portal-main .page-head,
.portal-body.brand-amstelpark .portal-main .page-head {
  background: rgba(246, 245, 241, .92);
  border-radius: 12px;
  padding: 2px 0 6px;
}
.portal-body .portal-bar { background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); }
.portal-brand .brand-logo { width: 38px; height: 38px; border-radius: 9px; object-fit: contain; background: #fff; }
.portal-brand .brand-logo.amstelpark { background: #e30613; }
.portal-profile { background: linear-gradient(135deg, rgba(255,255,255,.96) 55%, color-mix(in srgb, var(--accent-soft) 85%, transparent)); }
.pp-me-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.pp-photo-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.pp-photo-btn:hover { border-color: var(--accent); color: var(--accent); }
.pp-photo-btn:disabled { opacity: .6; cursor: default; }
.pp-own-mail { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 10px; font-size: .86rem; color: var(--muted); }
@media (max-width: 760px) { .pp-own-mail { justify-content: center; } }

/* Beheer → Personeelshandboek */
.hb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.hb-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: var(--surface); }
.hb-head { display: flex; align-items: center; gap: 10px; }
.hb-head h3 { margin: 0; font-size: 1rem; flex: 1; }
.hb-logo { border-radius: 8px; object-fit: contain; background: #fff; }
.hb-logo.amstelpark { background: #e30613; }
.hb-file { margin: 12px 0; font-size: .9rem; }

/* Portaal: kopbalk-titel, berichten, personeelshandboek */
.portal-brand .portal-title { margin-left: 6px; font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.portal-bell { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); border: 1px solid var(--border); background: var(--surface); }
.portal-bell:hover { color: var(--accent); border-color: var(--accent); }
.portal-bell.has-new { color: var(--accent); border-color: var(--accent); animation: bell-ring 1.2s ease-in-out 2; }
.portal-bell-n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #d93025; color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .portal-bell.has-new { animation: none; } }
.portal-msgs.has-new { border: 2px solid var(--accent); box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 22%, transparent); }
.portal-msgs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.portal-msgs-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.portal-msgs-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.msg-count { font-size: .74rem; font-weight: 700; background: #d93025; color: #fff; padding: 2px 9px; border-radius: 999px; }
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.msg.is-new { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); border-left: 5px solid var(--accent); }
.msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-head h3 { margin: 0; font-size: 1rem; }
.msg-new { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #d93025; color: #fff; padding: 2px 8px; border-radius: 999px; }
.msg-pin { font-size: .85rem; }
.msg-meta { margin: 2px 0 8px; font-size: .8rem; color: var(--muted); }
.msg-body { font-size: .92rem; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; cursor: pointer; }
.msg.is-full .msg-body { display: block; -webkit-line-clamp: unset; cursor: default; }
.msg-acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.msg-acts:empty { display: none; }
.msg-form .field + .field { margin-top: 10px; }
.msg-form .gc-inline { margin-top: 10px; align-items: center; }
.portal-handbook { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 16px 18px; }
.portal-handbook:hover { border-color: var(--accent); }
.portal-handbook-ico { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.portal-handbook-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.portal-handbook-text .muted { font-size: .86rem; }
@media (max-width: 760px) { .portal-brand .portal-title { font-size: .9rem; } .portal-user-text { display: none; } }
@media (max-width: 760px) {
  .portal-bar { flex-wrap: nowrap; padding: 8px 12px; gap: 8px; }
  .portal-brand { min-width: 0; flex: 1; }
  .portal-brand .portal-title { font-size: .86rem; line-height: 1.2; }
  .portal-user { gap: 8px; flex: none; }
}

/* Portaal: wijzigingen doorgeven */
.ch-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ch-type { display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 14px; margin: 0; position: relative; }
.ch-type:hover, .ch-type.on { border-color: var(--accent); }
.ch-type.on { box-shadow: 0 0 0 2px var(--accent); }
.ch-type.needs { border-color: #d93025; }
.ch-types > .card { margin: 0; }
.ch-type .msg-new { align-self: flex-start; margin-top: 4px; }
.ch-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ch-ico.sm { width: 34px; height: 34px; border-radius: 9px; }
.ch-type-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ch-type-text .muted { font-size: .82rem; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 10px; }
.ch-adres { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
@media (max-width: 640px) { .ch-adres { grid-template-columns: 1fr 1fr; } }
.ch-current { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); font-size: .9rem; }
.ch-hint { font-size: .84rem; margin: 6px 0 10px; }
.ch-contact { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 0; margin: 0 0 10px; }
.ch-contact legend { font-weight: 600; font-size: .88rem; padding: 0 4px; }
.ch-form textarea { width: 100%; }
.ch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ch-list li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ch-list li:last-child { border-bottom: 0; }
.ch-list-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .9rem; }
.ch-meta { font-size: .8rem; }
.ch-hrnote { font-size: .84rem; color: var(--accent); }
.ch-hr { display: flex; flex-direction: column; gap: 10px; }
.ch-hr-head { display: flex; align-items: center; gap: 10px; }
.ch-hr-head > div { flex: 1; }
.ch-hr-what { margin: 10px 0 4px; }
.ch-hr-note { margin: 0 0 4px; font-style: italic; color: var(--muted); }
.ch-hr-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.ch-hr-input { flex: 1 1 240px; }
.msg.msg-system { border-color: #d93025; border-left-color: #d93025; background: #fff4f2; }
.msg-system .msg-new { background: #d93025; }

/* Mijn gegevens: huidige gegevens */
.ch-current-card h2 { margin-bottom: 6px; }
.ch-dl { margin: 0; }
.ch-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ch-row:last-child { border-bottom: 0; }
.ch-row dt { font-weight: 600; font-size: .9rem; color: var(--muted); }
.ch-row dd { margin: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.ch-row dd input { max-width: 240px; }
.ch-row dd.plate-dd { flex-direction: row; align-items: center; gap: 14px; }
.plate-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ch-vehicle { font-size: .88rem; line-height: 1.35; }
.nl-plate { display: flex; align-items: stretch; flex: none; width: 168px; height: 34px; background: #f5c518; color-scheme: light; border: 1.5px solid #1c1c1c; border-radius: 3px; overflow: hidden; }
.nl-plate:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.plate-eu { width: 18px; flex: none; background: #003399; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1; }
.plate-eu span { font-size: 7px; font-weight: 800; letter-spacing: .04em; }
#k-plate { flex: 1; width: auto; min-width: 0; max-width: none; height: 100%; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0 7px 0 4px; color: #141414; font-family: "Arial Narrow", "Liberation Sans Narrow", "Nimbus Sans Narrow", Arial, sans-serif; font-weight: 800; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
#k-plate:focus { outline: none; }
#k-plate::placeholder { text-transform: none; letter-spacing: 0; font-weight: 650; font-size: .68rem; color: rgba(20, 20, 20, .45); }
@media (max-width: 640px) { .ch-row dd.plate-dd { flex-wrap: wrap; align-items: flex-start; } .plate-meta { flex-basis: 140px; } }
.ch-pending { font-size: .8rem; color: #8a5a00; background: #fff4d6; border-radius: 6px; padding: 2px 8px; align-self: flex-start; }
.ch-missing { color: #d93025; font-weight: 700; }
.ch-sub { margin: 6px 0 -4px; font-size: 1.05rem; }
@media (max-width: 640px) { .ch-row { grid-template-columns: 1fr auto; } .ch-row dt { grid-column: 1 / -1; } }

/* Startpagina: compacte berichten */
.portal-msgs { padding: 14px 18px; }
.portal-msgs.has-new { border-width: 1px; box-shadow: 0 0 0 1px var(--accent); }
.portal-msgs-head { margin-bottom: 6px; }
.portal-msgs-head h2 { font-size: 1rem; }
.msg-list.compact { gap: 0; }
.msg-list.compact .msg { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); padding: 0; background: none; }
.msg-list.compact .msg:last-child { border-bottom: 0; }
.msg-list.compact .msg.is-new { border-left: 0; background: none; }
.msg-line-head { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; color: inherit; text-align: left; padding: 8px 2px; cursor: pointer; }
.msg-line-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.msg.is-new .msg-line-title { font-weight: 700; }
.msg-line-date { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.msg-line-body { padding: 0 2px 10px; }
.msg-line-body .msg-body { display: block; -webkit-line-clamp: unset; cursor: default; font-size: .9rem; }
.msg-line-body .msg-meta { margin: 4px 0 0; }
.msg-list.compact .msg.msg-system { padding: 8px 10px; margin: 2px 0 6px; border: 1px solid #d93025; border-radius: 10px; background: #fff4f2; }
.msg-list.compact .msg-system .msg-head h3 { font-size: .92rem; }
.msg-list.compact .msg-system .msg-meta { display: none; }
.msg-list.compact .msg-system .msg-body { font-size: .85rem; -webkit-line-clamp: 2; }
.msg-list.compact .msg-system .msg-acts { margin-top: 6px; }
/* Startpagina: geplande gesprekken en nog te doen */
.portal-todo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; padding: 16px 20px; }
.portal-todo h2 { font-size: 1rem; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.todo-count { font-size: .74rem; font-weight: 700; background: var(--accent); color: #fff; padding: 1px 8px; border-radius: 999px; }
.todo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.todo-item a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: inherit; background: var(--surface); }
.todo-item a:hover { border-color: var(--accent); }
.todo-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.todo-item.urgent a { border-color: #f1b8b2; background: #fff7f6; }
.todo-item.urgent .todo-dot { background: #d93025; }
.todo-text { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.todo-text strong { font-size: .9rem; }
.todo-text .muted { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-due { font-size: .76rem; color: var(--muted); white-space: nowrap; }
.todo-due.late { color: #d93025; font-weight: 700; }
.todo-empty { margin: 0; font-size: .9rem; }
.todo-more { margin: 6px 0 0; font-size: .82rem; }
.meet-date { flex: none; width: 44px; height: 46px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.meet-date span:first-child { font-size: 1.15rem; font-weight: 800; }
.meet-date span:last-child { font-size: .7rem; text-transform: uppercase; font-weight: 700; }
@media (max-width: 760px) { .portal-todo { grid-template-columns: 1fr; } }
.portal-todo > .todo-col { min-width: 0; }
.todo-item a { min-width: 0; }
@media (max-width: 760px) { .todo-item a { flex-wrap: wrap; } .todo-due { flex-basis: 100%; padding-left: 19px; } .portal-todo { padding: 14px; } }
.pp-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 150px; }
.pp-roles .badge { font-size: .7rem; padding: 2px 8px; }
.pp-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: -4px 0 10px; }
.pp-links .pp-own-mail { margin: 0; }
.pp-handbook { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; background: var(--surface); }
.pp-handbook:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 760px) { .pp-links { justify-content: center; } }
.ch-adres input.is-locked { background: var(--surface-2); color: var(--text); cursor: default; }
.ch-lookup { margin: -2px 0 10px; font-size: .86rem; min-height: 1.2em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ch-lookup.ok { color: var(--ok); }
.ch-lookup.err { color: #d93025; }

/* Profielkaart: rustiger opmaak */
.portal-profile { align-items: center; }
.pp-me { gap: 26px; align-items: center; }
.pp-me-photo { gap: 10px; }
.pp-photo-wrap { position: relative; }
.pp-photo-wrap .pp-photo-btn { position: absolute; right: 2px; bottom: 2px; width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.pp-photo-wrap .pp-photo-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pp-sub { margin: 2px 0 12px; color: var(--muted); font-size: .98rem; }
.pp-info { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 7px 28px; }
.pp-info li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text); min-width: 0; }
.pp-info li svg { flex: none; color: var(--accent); }
.pp-info li span, .pp-info li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-info li a { color: var(--accent); text-decoration: none; font-weight: 600; }
.pp-info li a:hover { text-decoration: underline; }
.pp-info strong { font-weight: 700; }
.pp-mgr-text strong { font-size: 1rem; }
@media (max-width: 980px) { .pp-info { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .pp-info { justify-items: center; } .pp-info li span { white-space: normal; text-align: center; } }
.pp-info { grid-template-columns: repeat(2, max-content); grid-template-rows: repeat(2, auto); grid-auto-flow: column; }
.pp-info li span, .pp-info li a { white-space: normal; overflow: visible; }
@media (max-width: 980px) { .pp-info { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; } }
/* profielkaart: info in twee groepen die netjes onder elkaar vallen als het smal wordt */
.pp-me, .pp-me-text { min-width: 0; }
.pp-info { display: flex; flex-wrap: wrap; gap: 7px 28px; grid-template-columns: none; grid-template-rows: none; }
.pp-info ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pp-info li span, .pp-info li a { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 760px) { .pp-info { flex-direction: column; align-items: center; } .pp-info ul { align-items: center; } }
.badge.log-beheer { background: #eee8f6; color: #5b3f8c; }
.badge.log-instellingen { background: #eef0f3; color: #46505c; }
.badge.log-automatisering { background: #eef6e8; color: #3d6b2e; }

/* Beheer → Backup en herstel */
.bk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-bottom: 8px; }
.bk-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bk-row input[type=password], .bk-row input[type=file] { flex: 1 1 160px; min-width: 0; }
.bk-sched { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 12px 0 6px; }
.bk-note { font-size: .85rem; margin: 6px 0 10px; }
.bk-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.bk-dialog { width: min(460px, calc(100vw - 32px)); }
.bk-dialog .actions { display: flex; gap: 8px; }
.bk-sched input[type=time], .bk-sched input[type=number], .bk-sched select { width: 100%; box-sizing: border-box; min-height: 42px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
@media (max-width: 640px) {
  .bk-table th:nth-child(3), .bk-table td:nth-child(3), .bk-table th:nth-child(4), .bk-table td:nth-child(4) { display: none; }
  .bk-acts { flex-direction: column; align-items: stretch; }
}

/* Beheer-menu in groepen */
.sidebar nav .nav-sec { display: block; margin: 10px 0 2px; padding: 0 10px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sidebar nav .nav-sub > .nav-sec:first-child { margin-top: 4px; }
@media (min-width: 761px) { .shell.collapsed .sidebar nav .nav-sec { height: 0; margin: 6px 8px; padding: 0; overflow: hidden; border-top: 1px solid var(--border); } .shell.collapsed .sidebar nav .nav-sub > .nav-sec:first-child { display: none; } }
@media (max-width: 760px) { .sidebar nav .nav-sec { display: none; } }

/* Mailtemplates: editor in een popup */
.tpl-dialog { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: auto; }
.tpl-dialog::backdrop { background: rgba(10, 16, 13, .45); }
.tpl-dialog .tpl-dlg-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.tpl-dialog .tpl-dlg-head h2 { margin: 0 0 6px; font-size: 1.15rem; }
.tpl-dialog .tpl-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-dialog .tpl-edit { padding: 16px 20px 20px; margin-top: 0; }
@media (max-width: 760px) { .tpl-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; } }

/* ---------- MTO (tevredenheidsonderzoek) ---------- */
:root { --mto-1: #d93f3e; --mto-2: #ef8f8d; --mto-3: #d3d1cb; --mto-4: #7aa9e6; --mto-5: #2a6fc9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mto-1: #f07c7b; --mto-2: #a24f4e; --mto-3: #4a4a46; --mto-4: #4a78ba; --mto-5: #86b6f2; } }
:root[data-theme="dark"] { --mto-1: #f07c7b; --mto-2: #a24f4e; --mto-3: #4a4a46; --mto-4: #4a78ba; --mto-5: #86b6f2; }
.mto-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.mto-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mto-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.mto-row:first-child { border-top: 0; }
.mto-row > div { display: flex; flex-direction: column; gap: 2px; }
.mto-anon { margin-bottom: 14px; }
.mto-form { display: flex; flex-direction: column; gap: 12px; }
.mto-q.missing { border-color: var(--danger, #c0392b); box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger, #c0392b) 25%, transparent); }
.mto-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mto-enps { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.mto-opt { position: relative; }
.mto-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mto-opt span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 6px 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); text-align: center; cursor: pointer; }
.mto-opt span b { font-size: 1rem; }
.mto-opt span small { font-size: .72rem; color: var(--muted); line-height: 1.15; }
.mto-opt-sm span { min-height: 42px; }
.mto-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mto-opt input:checked + span small { color: inherit; }
.mto-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.mto-enps-legend { display: flex; justify-content: space-between; font-size: .78rem; }
.mto-choice { display: flex; flex-wrap: wrap; gap: 6px; }
.mto-q textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }
.mto-opt-tag { font-weight: 400; font-size: .85rem; }
.mto-submit { position: sticky; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 2; }
.mto-progress { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.mto-progress-bar { flex: 1; max-width: 260px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.mto-progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .2s; }
.mto-done { text-align: center; padding: 32px 20px; }
.mto-stats { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.mto-stats > div { display: flex; flex-direction: column; }
.mto-stats strong { font-size: 1.5rem; }
.mto-stats .btn { margin-left: auto; }
.mto-settings { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.mto-row-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.mto-row-fields select, .mto-row-fields input, .mto-settings input[type=text], .mto-settings textarea { width: 100%; box-sizing: border-box; }
.mto-note { font-size: .85rem; margin: 4px 0 10px; }
.mto-qe { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-top: 8px; }
.mto-qe.ro { display: block; }
.mto-qe-main { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mto-qe-prompt { width: 100%; box-sizing: border-box; font-weight: 600; }
.mto-qe-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mto-qe-sec { width: 200px; max-width: 100%; }
.mto-qe-opts { flex: 1; min-width: 160px; }
.mto-qe-acts { display: flex; gap: 2px; }
.mto-qe-add { margin: 12px 0; }
.mto-bar { position: sticky; bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; z-index: 2; }
.mto-resp { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mto-resp li { display: grid; grid-template-columns: minmax(110px, 200px) 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.mto-resp-bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.mto-resp-bar span { display: block; height: 100%; background: var(--mto-5); border-radius: 0 4px 4px 0; }
.mto-groups { margin-bottom: 8px; }
.mto-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.mto-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.mto-kpi strong { font-size: 1.7rem; line-height: 1.1; }
.mto-kpi .muted { font-size: .8rem; }
.mto-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); margin: 6px 0 4px; }
.mto-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.mto-res { display: flex; flex-direction: column; gap: 0; padding: 4px 16px; }
.mto-res-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 120px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.mto-res > :first-child { border-top: 0; }
.mto-res-wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 120px; }
.mto-res-q { margin: 0; font-size: .92rem; }
.mto-res-num { margin: 0; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.mto-res-num strong { font-size: 1.15rem; }
.mto-res-num .muted { font-size: .76rem; }
.mto-stack { display: flex; gap: 2px; height: 14px; }
.mto-stack span { min-width: 3px; }
.mto-stack span:first-child { border-radius: 4px 0 0 4px; }
.mto-stack span:last-child { border-radius: 0 4px 4px 0; }
.mto-stack span:only-child { border-radius: 4px; }
.mto-hist { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; align-items: end; height: 60px; }
.mto-hist span { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; }
.mto-hist i { display: block; min-height: 2px; border-radius: 4px 4px 0 0; }
.mto-hist b { font-size: .68rem; font-weight: 500; text-align: center; color: var(--muted); }
.mto-texts { padding: 12px 0; border-top: 1px solid var(--border); }
.mto-texts summary { cursor: pointer; display: flex; gap: 8px; align-items: center; }
.mto-texts ul { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.mto-texts li { font-size: .92rem; }
@media (max-width: 640px) {
  .mto-scale { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .mto-opt span small { font-size: .62rem; }
  .mto-enps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mto-res-row, .mto-res-wide { grid-template-columns: 1fr auto; }
  .mto-res-row .mto-res-q { grid-column: 1 / -1; }
  .mto-resp li { grid-template-columns: 1fr auto; }
  .mto-resp li .mto-resp-bar { grid-column: 1 / -1; grid-row: 2; }
  .mto-qe { flex-direction: column; }
  .mto-submit { flex-direction: column; align-items: stretch; }
}
.mto-qe-meta > input, .mto-qe-meta > select { width: auto; flex: 0 1 220px; min-width: 0; padding: 6px 8px; font-size: .88rem; }
.mto-qe-meta > .mto-qe-opts { flex: 1 1 220px; }
.mto-qe-meta .chip { margin: 0; }
.mto-qe-prompt { padding: 8px 10px; }
@media (max-width: 640px) { .mto-qe-meta > input, .mto-qe-meta > select { flex: 1 1 100%; } }
.mto-kpis > .card, .mto-stats + .card { margin-top: 0; }
.mto-kpis > .card + .card { margin-top: 0; }

/* ---------- Uitnodigingen (personeelsfeest) ---------- */
.ev-cards { display: flex; flex-direction: column; gap: 10px; }
.ev-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 14px 16px; }
.ev-cards > .card + .card { margin-top: 0; }
.ev-card:hover { border-color: var(--accent); }
.ev-card.is-cancelled { opacity: .7; }
.ev-card-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-mini { font-size: .85rem; color: var(--muted); }
.ev-mini .ok { color: var(--accent); font-weight: 600; }
.ev-date { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 60px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.ev-date span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ev-date b { font-size: 1.5rem; line-height: 1; }
.ev-hero { display: flex; gap: 18px; align-items: flex-start; padding: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 60%); }
.ev-hero .ev-date { width: 72px; height: 78px; }
.ev-hero .ev-date b { font-size: 2rem; }
.ev-hero.is-cancelled { opacity: .75; }
.ev-hero-text { flex: 1; min-width: 0; }
.ev-hero h1 { margin: 2px 0 10px; }
.ev-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ev-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-facts li { display: flex; gap: 8px; align-items: baseline; }
.ev-desc { margin: 14px 0 0; line-height: 1.55; }
.ev-answer, .ev-status { margin-top: 14px; }
.ev-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.ev-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.ev-btn:hover { border-color: var(--accent); }
.ev-btn.yes.sel { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ev-btn.no.sel { background: var(--surface-2); border-color: var(--text); }
.ev-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ev-extra { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.ev-extra select, .ev-extra textarea { width: 100%; box-sizing: border-box; }
.ev-status.yes { border-color: var(--accent); }
.ev-status h2 { margin-top: 0; }
.ev-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.ev-stats > .card + .card { margin-top: 0; }
.ev-stat { display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 14px 16px; border-left: 4px solid var(--border); }
.ev-stat strong { font-size: 2rem; line-height: 1.1; }
.ev-stat .muted { font-size: .82rem; }
.ev-stat.yes { border-left-color: var(--accent); }
.ev-stat.no { border-left-color: var(--mto-1); }
.ev-stat.pending { border-left-color: var(--mto-3); }
.ev-stat.sel { box-shadow: 0 0 0 2px var(--accent); }
.ev-bar { display: flex; gap: 2px; height: 12px; margin: 4px 0; }
.ev-bar span:first-child { border-radius: 4px 0 0 4px; }
.ev-bar span:last-child { border-radius: 0 4px 4px 0; }
.ev-bar span:only-child { border-radius: 4px; }
.ev-bar .yes, .ev-i.yes { background: var(--accent); }
.ev-bar .no, .ev-i.no { background: var(--mto-1); }
.ev-bar .pending, .ev-i.pending { background: var(--mto-3); }
.ev-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ev-toolbar .gc-tabs { margin: 0; }
.ev-toolbar button.gc-tab { font-family: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; border: 0; background: transparent; }
.ev-toolbar button.gc-tab.active { background: var(--surface); }
.ev-toolbar input[type=search] { flex: 0 1 260px; min-width: 0; }
.ev-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ev-form input[type=text], .ev-form textarea, .ev-form select, .ev-form input[type=date], .ev-form input[type=datetime-local] { width: 100%; box-sizing: border-box; }
.ev-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ev-steps { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0 0 14px; padding: 0; }
.ev-steps li { padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .82rem; font-weight: 600; }
.ev-steps li.on { background: var(--accent-soft); color: var(--accent); }
.ev-steps li.done { color: var(--text); }
.ev-slotrow { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.ev-people { max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; }
.ev-people h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: .85rem; }
.ev-person { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; }
.ev-slotpick { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--border); }
.ev-slotpick.best { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); border-radius: 12px; padding: 12px; margin-top: 8px; }
.ev-votes { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-votes .chip { cursor: pointer; font: inherit; }
.ev-votes .chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.ev-section { margin-top: 22px; }
.ev-section h2 { margin: 0 0 8px; }
.ev-count { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; cursor: default; }
.ev-count strong { font-size: 2rem; line-height: 1.1; }
@media (max-width: 640px) {
  .ev-hero { flex-direction: column; padding: 18px; }
  .ev-stats { grid-template-columns: 1fr; }
  .ev-stat { flex-direction: row; align-items: baseline; gap: 10px; }
  .ev-stat strong { font-size: 1.5rem; order: -1; }
  .ev-toolbar input[type=search] { flex: 1 1 100%; }
  .ev-slotrow { grid-template-columns: 1fr; }
  .ev-choice.three { grid-template-columns: 1fr; }
}

/* ---------- Mijn documenten ---------- */
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-list > .card + .card { margin-top: 0; }
.doc-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.doc-card.is-open { border-left: 4px solid var(--accent); }
.doc-icon { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 54px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .04em; border: 1px solid var(--border); }
.doc-icon.book { font-size: 1.5rem; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.doc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.doc-main h3 { margin: 0; font-size: 1rem; }
.doc-meta { margin: 0; font-size: .82rem; }
.doc-note { margin: 4px 0 0; font-size: .92rem; white-space: pre-line; }
.doc-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.doc-when { font-size: .82rem; }
.doc-ack { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.doc-check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .92rem; }
.doc-check input:disabled + * { opacity: .6; }
.doc-hint { font-size: .8rem; }
.doc-acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.doc-upload { margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.doc-upload h2 { margin: 0; }
.doc-up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc-up-wide { grid-column: 1 / -1; }
.doc-up-grid input[type=text], .doc-up-grid textarea { width: 100%; box-sizing: border-box; }
.doc-drop input[type=file] { padding: 10px; border: 1px dashed var(--border); border-radius: 10px; background: var(--surface-2); width: 100%; box-sizing: border-box; }
.doc-up-opts { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.doc-up-due { margin: 0; }
.hc-head { display: flex; gap: 18px; align-items: center; margin-bottom: 0; }
.hc-id { flex: 1; min-width: 0; }
.hc-id h1 { margin: 0; }
.hc-id > p { margin: 2px 0 8px; }
.hc-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 16px; font-size: .9rem; }
.hc-facts li { display: flex; flex-direction: column; }
.hc-facts li > span.muted:first-child { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.iban-tail, .hc-iban { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.hc-ask { margin-top: 6px; align-self: flex-start; text-transform: none; letter-spacing: 0; font-weight: 600; }
.hc-facts .msg-new { align-self: flex-start; margin-top: 6px; }
.plate-meta .msg-new { align-self: flex-start; margin-top: 4px; }
.hc-vehicle { display: flex; flex-direction: column; gap: 1px; font-size: .82rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.hl-table tr.clickable { cursor: pointer; }
.hl-table tr.clickable:hover td { background: var(--surface-2); }
.hl-person { display: flex; gap: 10px; align-items: center; }
.hl-person > span:last-child { display: flex; flex-direction: column; }
.hb-brand { margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.hb-brand-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hb-brand-head h2 { margin: 0; }
.hb-progress p { margin: 6px 0 0; }
.hb-who summary { cursor: pointer; font-weight: 600; }
.hb-names { margin: 8px 0 0; padding-left: 18px; columns: 2; column-gap: 24px; }
.hb-names li { margin-bottom: 4px; break-inside: avoid; }
.hb-ack { margin: 8px 0; }
@media (max-width: 640px) {
  .doc-card { flex-wrap: wrap; }
  .doc-acts { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .doc-up-grid { grid-template-columns: 1fr; }
  .hc-head { flex-direction: column; align-items: flex-start; }
  .hb-names { columns: 1; }
}

/* tellers op de tegels van de startpagina */
.tile-count { flex: 0 0 auto; display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; box-sizing: border-box; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .85rem; line-height: 1; }
.tile-count.urgent { background: #c0392b; color: #fff; }
.tile-hint { margin: 2px 0 0; font-size: .84rem; font-weight: 600; color: var(--accent); }
.tile-hint.urgent { color: #c0392b; }
@media (prefers-color-scheme: dark) { .tile-count.urgent { background: #e5675c; color: #1a1a19; } .tile-hint.urgent { color: #f08a80; } }

/* startpagina: portaal in testfase (alleen ICT) */
.gate-soon { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; margin: 0 0 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, #a28259 45%, transparent); background: color-mix(in srgb, #a28259 12%, var(--surface)); text-align: left; }
.gate-soon strong { color: #7d6040; font-size: .95rem; }
.gate-soon span { font-size: .9rem; color: var(--text); }
@media (prefers-color-scheme: dark) { .gate-soon strong { color: #d7b98f; } }
.pu-testmode { border-color: #a28259; background: color-mix(in srgb, #a28259 14%, var(--surface)); }
.gate-soon.is-refused { box-shadow: 0 0 0 3px color-mix(in srgb, #a28259 35%, transparent); }

/* wachtwoord: synchronisatie naar Microsoft 365 */
.pw-sync.synced { color: var(--ok); }
.pw-sync.failed { color: var(--err); }
.pw-sync.checking, .pw-sync.waiting { color: var(--muted); }

/* AD-agent: nieuwere versie beschikbaar */
.agent-btn { position: relative; }
.agent-upd { font-size: .72rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: #a28259; color: #fff; margin-left: 2px; white-space: nowrap; }
.agent-btn.has-update { animation: agent-upd-pulse 2.4s ease-in-out 3; }
@keyframes agent-upd-pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, #a28259 35%, transparent); } }

/* Inlogpagina: inlogkaart in het midden, apps eronder, Authenticator-QR subtiel rechts (alleen op brede schermen) */
.gate-apps { width: 100%; max-width: 440px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; animation: gate-card-in .55s ease-out both; }
.gate-app { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 4px 8px; border-radius: 12px; background: rgba(255, 255, 255, .88); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 6px 20px rgba(18, 36, 30, .12); color: var(--text); text-decoration: none; font-size: .78rem; font-weight: 600; transition: transform .15s, box-shadow .15s; }
.gate-app:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(18, 36, 30, .18); }
.gate-app:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gate-app-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--app, #888) 12%, #fff); color: var(--app, var(--text)); overflow: hidden; }
.gate-app-ico img { width: 40px; height: 40px; object-fit: contain; }
#portal-card[hidden] ~ .gate-apps, #portal-card[hidden] ~ .gate-auth { display: none; }

.gate-auth { width: 100%; max-width: 270px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 6px; color: var(--text); opacity: .92; animation: gate-card-in .55s ease-out both; }
.gate-auth:hover { opacity: 1; }
.gate-auth h2 { margin: 0; font-size: .86rem; letter-spacing: -.01em; }
.gate-auth-lead, .gate-auth-foot { margin: 0; font-size: .74rem; line-height: 1.35; color: var(--muted); }
.gate-auth-foot { font-size: .7rem; }
.gate-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gate-auth-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 8px; background: rgba(255, 255, 255, .8); color: var(--text); text-decoration: none; text-align: center; }
.gate-auth-item img { width: 88px; height: 88px; image-rendering: pixelated; }
.gate-auth-item strong { font-size: .78rem; }
.gate-auth-item span { font-size: .66rem; line-height: 1.25; color: var(--muted); }
.gate-auth-mobile .gate-pw-actions .btn { text-decoration: none; }

@media (min-width: 1000px) and (min-height: 600px) {
  .gate-main { grid-template-columns: 1fr minmax(0, 440px) 1fr; justify-items: center; align-content: safe center; overflow-y: auto; column-gap: 24px; row-gap: 12px; }
  .gate-main > * { grid-column: 2; }
  .gate-main > .gate-apps { grid-row: 2; }
  .gate-main > .gate-auth { grid-column: 3; grid-row: 1 / span 2; justify-self: start; align-self: center; }
  .gate-auth-mobile { display: none; }
}
@media (max-width: 999px), (max-height: 599px) {
  .gate-auth { display: none; }
  .gate-main { overflow-y: auto; align-content: safe center; padding-top: 12px; padding-bottom: 12px; }
}
@media (max-width: 420px) {
  .gate-apps { gap: 6px; }
  .gate-app { font-size: .7rem; padding: 7px 2px; }
  .gate-app-ico, .gate-app-ico img { width: 34px; height: 34px; }
}

.gate-notme { margin: -2px 0 2px; font-size: .8rem; color: var(--muted); }
.gate-notme .linklike { font: inherit; font-size: .8rem; }
.gate-out { font-size: .8rem; margin: -2px 0 2px; }

/* Inlogpagina per merk (ingelogd Microsoft 365-account): alleen Amstelpark of alleen Zuiver */
.brand-amstelpark .gate-brand-left, .brand-zuiver .gate-brand-right { visibility: hidden; }
.brand-amstelpark .gate-home-logos img:not(.amstelpark), .brand-zuiver .gate-home-logos img.amstelpark { display: none; }
.brand-amstelpark .gate-scene-photo { background: linear-gradient(105deg, rgba(196, 90, 58, .16), rgba(196, 90, 58, .28)), url("/assets/brand/bg-tennis.jpg") center / cover no-repeat; }
.brand-zuiver .gate-scene-photo { background: linear-gradient(180deg, rgba(18, 36, 30, .10), rgba(18, 36, 30, .22)), url("/assets/brand/bg-zuiver-wellness-2.jpg") center 40% / cover no-repeat; }

.pp-info li.pp-pw-soon { color: var(--warn-text, #8a5a00); }
.pp-info li.pp-pw-soon a { font-weight: 600; }

/* Dashboard ICT */
.ict-findings { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ict-f { border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 10px; background: var(--surface); }
.ict-f.sev-hoog { border-left-color: #c0392b; }
.ict-f.sev-midden { border-left-color: #d68910; }
.ict-f.sev-laag { border-left-color: #7f9c8f; }
.ict-f-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ict-f-title { flex: 1; font-weight: 600; }
.ict-f-count { min-width: 28px; text-align: center; font-weight: 700; font-size: .9rem; padding: 2px 8px; border-radius: 999px; background: var(--bg); }
.ict-f-chev { transition: transform .15s; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.ict-f.open .ict-f-chev { transform: rotate(90deg); }
.ict-f-body { padding: 0 12px 12px 12px; }
.ict-f-body > p { margin: 0 0 8px; font-size: .88rem; }
.ict-f-items { margin: 0 0 8px; padding-left: 18px; font-size: .88rem; display: grid; gap: 3px; }
table.data.compact td { padding: 6px 8px; font-size: .88rem; vertical-align: top; }
.ict-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ict-storage { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.ict-storage .kpi-num { font-size: 1.45rem; }
@media (max-width: 900px) { .ict-storage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1200px) { .ict-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ict-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.perm-help .perm-group { margin: 10px 0 4px; }
.perm-help .perm-table { background: rgba(255,255,255,.6); border-radius: 8px; }
.perm-help .perm-table code { font-size: .86rem; }
.perm-help .perm-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: .9rem; }

.perm-help .perm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.perm-help .perm-list li { background: rgba(255,255,255,.65); border-radius: 8px; padding: 7px 10px; }
.perm-help .perm-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.perm-help .perm-name code { font-size: .86rem; font-weight: 600; word-break: break-all; }
.perm-help .perm-name .linklike { font-size: .8rem; }
.perm-help .perm-why { font-size: .84rem; color: var(--muted); margin-top: 2px; }

.ict-f-items li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ict-fix { margin: 10px 0 8px; padding: 10px 12px; border-radius: 8px; background: var(--bg); }
.ict-fix h4 { margin: 0 0 6px; font-size: .9rem; }
.ict-fix ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: .88rem; }
.ict-ps { margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ict-ps-head { display: flex; justify-content: space-between; padding: 5px 10px; font-size: .78rem; color: var(--muted); background: var(--surface); }
.ict-ps pre { margin: 0; padding: 8px 10px; background: #1f2a27; color: #e6efe9; font-size: .8rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.ict-fix-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ict-ps pre code { background: none; color: inherit; padding: 0; border: 0; font-size: inherit; }
.lic-use { display: grid; gap: 4px; font-size: .88rem; }

.ict-tabs .tab { background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ict-tabs .tab.on { color: var(--text); border-bottom-color: var(--accent); }
.tab-n { font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.tab-n.err { background: var(--err-soft); color: var(--err); }
.ict-top { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ict-top li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); }
.ict-top li:hover, .ict-glance li.clickable:hover { background: var(--bg); }
.ict-glance { list-style: none; margin: 0; padding: 0; }
.ict-glance li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.ict-glance li:last-child { border-bottom: 0; }
.ict-glance li.clickable { cursor: pointer; }
.ict-mb { scroll-margin-top: 12px; }
.ict-mb .table-wrap table.data { width: max-content; min-width: 100%; }
.ict-mb tr.clickable { cursor: pointer; }
.ict-mb tr.clickable.on td { background: var(--accent-soft); }
.ict-storage-chev { margin-left: 8px; color: var(--muted); }
.ict-storage-detail { scroll-margin-top: 12px; }

/* Beheer: overzicht van alle onderdelen */
.beheer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 8px; }
.beheer-tile { display: flex; align-items: flex-start; gap: 12px; text-decoration: none; color: inherit; margin: 0; padding: 14px 16px; transition: border-color .15s, transform .15s; }
.beheer-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.beheer-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.beheer-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.beheer-txt .muted { font-size: .85rem; line-height: 1.35; }
.beheer-status:empty { display: none; }
.beheer-status { margin-top: 4px; }
.beheer-go { color: var(--muted); font-size: 1.4rem; line-height: 1; align-self: center; }
.beheer-grid > .card.beheer-tile, .beheer-grid > .card + .card { margin: 0; }
.beheer-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: stretch; }

.apps-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.apps-head .section-title { margin-right: 4px; }
.apps-status a.badge { text-decoration: none; }

.beheer-h2 { margin: 22px 0 2px; font-size: 1.15rem; }
.beheer-jump { margin: 0 0 4px; }
.beheer-jump .chip { text-decoration: none; }
.beheer-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.beheer-tile { padding: 12px 14px; }
.uitleg-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.uitleg-stage { margin-top: 14px; background: #163f36; border-radius: 12px; overflow: hidden; }
.uitleg-stage video { display: block; width: 100%; height: auto; background: #163f36; }
.beheer-txt .muted { font-size: .82rem; }
.task-filter { margin: 12px 0 4px; }

.info-table .info-row:hover td { background: var(--bg); }
.info-table .info-chev { width: 18px; color: var(--muted); font-size: 1.1rem; transition: transform .15s; }
.info-table .info-row.open .info-chev { transform: rotate(90deg); }
.info-table .info-detail td { padding: 0 6px 10px; background: transparent; }
.info-table .ict-fix p { margin: 0 0 8px; font-size: .88rem; }
.info-table .ict-fix h4 { margin: 8px 0 4px; }
.info-table .ict-fix h4:first-child { margin-top: 0; }
.keep-mb { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 10px; }
.keep-mb-opts { margin-top: 8px; display: grid; gap: 6px; }

/* Portaal: Mijn apparaten — tekenen voor ontvangst */
.dev-sign { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.dev-sign h4 { margin: 0; font-size: .95rem; }
.dev-terms { font-size: .9rem; line-height: 1.5; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; max-height: 220px; overflow: auto; }
.dev-terms p { margin: 0 0 6px; } .dev-terms ul { margin: 0; padding-left: 20px; }
.sig-wrap { position: relative; }
.sig-pad { display: block; width: 100%; height: 170px; background: #fff; border: 1px solid var(--border); border-radius: 10px; touch-action: none; cursor: crosshair; }
.sig-line { position: absolute; left: 18px; right: 18px; bottom: 38px; border-bottom: 1px dashed #c9cfcb; pointer-events: none; }
.sig-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .85rem; margin-top: 4px; }
.sign-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sign-kind { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.sign-kind.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sign-letter { display: flex; flex-direction: column; gap: 8px; line-height: 1.55; margin: 12px 0; }
.sign-letter h2 { margin: 8px 0 0; font-size: 1.05rem; }
.sign-letter p { margin: 0; }
.cm-hand { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.doc-icon.dev-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }

/* CMDB: productafbeeldingen en tijdlijn */
.cm-devcell { display: flex; gap: 10px; align-items: flex-start; }
.cm-thumb { width: 44px; height: 34px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--border); flex: none; }
.cm-thumb-none { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: var(--surface-2); }
.cm-thumb-none.big { width: 120px; height: 90px; border-radius: 10px; }
.cm-thumb-none.big svg { width: 40px; height: 40px; }
.cm-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.cm-hero-img img { width: 160px; height: 110px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 10px; display: block; }
.cm-hero-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm-pick { padding: 12px; border-radius: 10px; background: var(--surface-2); margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.cm-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.cm-pick-item { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; font-size: .78rem; }
.cm-pick-item:hover { border-color: var(--accent); }
.cm-pick-item img { width: 100%; height: 90px; object-fit: contain; background: #fff; border-radius: 4px; }
.cm-pick-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-pick-more { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cm-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.cm-tl::before { content: ''; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.cm-tl li { display: flex; gap: 10px; padding: 6px 0; position: relative; font-size: .9rem; }
.cm-tl-ico { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; z-index: 1; }
.cm-tl-when { font-size: .8rem; color: var(--muted); }
.cm-tl-ingeleverd .cm-tl-ico, .cm-tl-getekend .cm-tl-ico { border-color: var(--ok); color: var(--ok); }
.cm-tl-weg .cm-tl-ico { border-color: var(--err); color: var(--err); }
.cm-histbar .chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.cm-histbar .chip.on strong { color: var(--accent); }
.cm-periods { display: flex; flex-direction: column; gap: 12px; }
.cm-periods .card + .card { margin-top: 0; }
.cm-period { padding: 14px 16px; }
.cm-period h3 { margin: 0 0 10px; font-size: 1rem; }
.cm-period h3 .muted { font-weight: 400; font-size: .85rem; }
.cm-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .cm-hero { flex-direction: column; align-items: flex-start; } }
.dev-photo { width: 72px; height: 54px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 8px; flex: none; }

/* Uitnodigingen: extra vragen */
.ev-qs { display: flex; flex-direction: column; gap: 12px; }
.ev-q { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ev-q-label { flex: 1 1 260px; }
.ev-yn { display: inline-flex; gap: 6px; }
.ev-yn .chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ev-req { color: var(--err); font-weight: 700; }
.ev-answers { margin: 8px 0 0; padding-left: 18px; font-size: .92rem; }
.ev-qedit { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 6px 8px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: center; }
.ev-qedit-opts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ev-qstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 12px 0; }
.ev-qstat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin: 0; }
.ev-qstat strong { font-size: 1.5rem; }
@media (max-width: 640px) { .ev-qedit { grid-template-columns: 1fr; } }

/* Zoeken (Ctrl+K) */
.search-btn { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--border, #dfe3e0); border-radius: 8px; background: var(--surface, #fff); color: var(--muted, #65706a); font: inherit; cursor: pointer; text-align: left; }
.search-btn:hover { border-color: var(--accent, #2f6f4e); color: var(--text); }
.search-btn .nav-ico { width: 18px; height: 18px; flex: none; }
.search-btn kbd { margin-left: auto; font-size: .72rem; padding: 1px 6px; border: 1px solid var(--border, #dfe3e0); border-radius: 4px; background: var(--surface-2, #f4f6f5); }
.shell.collapsed .search-btn { justify-content: center; padding: 8px; }
.search-dlg { width: min(640px, calc(100vw - 32px)); padding: 0; margin-top: 12vh; }
.search-box { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border, #dfe3e0); color: var(--muted, #65706a); }
.search-box input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.05rem; background: none; color: var(--text); padding: 4px 0; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-dlg kbd { font-size: .72rem; padding: 1px 6px; border: 1px solid var(--border, #dfe3e0); border-radius: 4px; background: var(--surface-2, #f4f6f5); }
.search-res { list-style: none; margin: 0; padding: 6px; max-height: 55vh; overflow: auto; }
.search-res li[data-i] { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.search-res li.on { background: var(--surface-2, #eef3f0); }
.search-res li.person .search-t { font-style: italic; }
.search-res li.empty { padding: 14px 12px; }
.search-t { font-weight: 600; }
.search-p { font-size: .82rem; }
.search-foot { margin: 0; padding: 8px 16px; border-top: 1px solid var(--border, #dfe3e0); font-size: .78rem; }
.search-flash { animation: search-flash 2s ease-out; }
@keyframes search-flash { 0%, 30% { box-shadow: 0 0 0 3px var(--accent, #2f6f4e); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* Mailtemplates: zoeken, filter en een rij per mail */
.tpl-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.tpl-search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); }
.tpl-search:focus-within { border-color: var(--accent); }
.tpl-search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; color: var(--text); }
.tpl-top .chip strong { margin-left: 4px; }
.tpl-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 6px; }
.tpl-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tpl-row:hover { border-color: var(--accent); background: var(--accent-soft); }
.tpl-row[hidden], .tpl-group[hidden] { display: none; }
.tpl-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tpl-row .tpl-name { font-weight: 600; }
.tpl-row.is-off .tpl-name { color: var(--muted); }
.tpl-row-sub { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.tpl-row-sub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-row-sub b { font-weight: 600; color: var(--text); opacity: .7; margin-right: 4px; }
.tpl-row.is-on .tpl-st { background: var(--ok-soft); color: var(--ok); }
.tpl-go { color: var(--muted); font-size: 1.2rem; }
.tpl-overview { margin-top: 16px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.tpl-overview summary { cursor: pointer; font-weight: 600; }

.avg-org select, .avg-org input[type=date] { font: inherit; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); }
.avg-org textarea { width: 100%; min-width: 180px; font: inherit; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); box-sizing: border-box; }

.avg-how { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; background: var(--surface); margin: 12px 0; }
.avg-how ol { margin: 6px 0 0; padding-left: 20px; }
.avg-how li { margin: 3px 0; }
.avg-todo { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.avg-todo li { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "b t a" "b d a"; column-gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.avg-todo li > .badge { grid-area: b; align-self: start; margin-top: 2px; }
.avg-todo li > strong { grid-area: t; }
.avg-todo li > .muted { grid-area: d; }
.avg-todo li > a, .avg-todo li > span.muted { grid-area: a; white-space: nowrap; }
@media (max-width: 760px) { .avg-todo li { grid-template-columns: auto 1fr; grid-template-areas: "b t" "b d" "b a"; } .avg-todo li > a { justify-self: start; margin-top: 6px; } }

.pw-modes { display: grid; gap: 8px; margin: 10px 0; }
.pw-mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.pw-mode.on { border-color: var(--accent); background: var(--accent-soft); }
.pw-mode > span { display: flex; flex-direction: column; gap: 2px; }
.pw-mode input { margin-top: 4px; }
select[data-pov] { width: auto; min-width: 120px; padding: 3px 6px; font: inherit; }

/* Portaal: woon-werkafstand en reiskosten */
.travel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 6px; }
.travel-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2, #f4f6f3); }
.travel-grid strong { font-size: 1.25rem; }
.travel-grid .travel-amount { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- spullen, opruimlijst, toegangscontrole, eerste werkdag, exitvragenlijst (xr-) ---------- */
.badge.err { background: var(--err-soft); color: var(--err, #b42318); }
.xr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.xr-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.xr-kpi-n { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.xr-kpi.warn { background: var(--warn-soft); }
.xr-kpi.err { background: var(--err-soft); }
.xr-items { list-style: none; margin: 6px 0 0; padding: 0; }
.xr-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.xr-item:last-child { border-bottom: 0; }
.xr-item > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xr-item-act, .xr-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.xr-item-act select { padding: 4px 6px; font-size: .85rem; }
.xr-item.dec-ok { background: var(--ok-soft); }
.xr-item.dec-weg { background: var(--err-soft); }
.xr-item.dec-ok, .xr-item.dec-weg { padding-left: 8px; padding-right: 8px; border-radius: 6px; }
.xr-leaver { margin-bottom: 12px; }
.xr-leaver.xr-late { border-left: 3px solid var(--err, #b42318); }
.xr-leaver-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
tr.xr-click { cursor: pointer; }
tr.xr-click:hover td, tr.xr-click.open td { background: var(--surface-2); }
.xr-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.xr-chips .chip.xr-chip-on { border-color: var(--accent); background: var(--accent-soft); }
.xr-reason { margin: 2px 0; }
.xr-reason.acked { opacity: .6; }
.xr-ack { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; padding: 8px; background: var(--surface-2); border-radius: 8px; }
.xr-ack input[type=text] { flex: 1 1 240px; }
.xr-bar { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; min-width: 60px; }
.xr-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.xr-welcome-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.xr-welcome-grid .card:first-child { grid-row: span 2; }
.xr-todo { list-style: none; margin: 0; padding: 0; }
.xr-todo li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--border); }
.xr-todo li:last-child { border-bottom: 0; }
.xr-todo-mark { flex: 0 0 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }
.xr-todo li.done .xr-todo-mark { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.xr-todo li.done a { color: var(--muted); text-decoration: line-through; }
.xr-todo li.info .xr-todo-mark { border-style: dashed; }
.xr-person { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.xr-person:last-child { border-bottom: 0; }
.xr-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.xr-dl dt { color: var(--muted); }
.xr-dl dd { margin: 0; font-weight: 600; }
.xr-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 12px 0; }
.xr-brand { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.xr-q { border: 0; border-bottom: 1px solid var(--border); padding: 12px 0; margin: 0; }
.xr-q legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.xr-q textarea { width: 100%; }
.xr-opts, .xr-scale { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.xr-res { padding: 12px 0; border-bottom: 1px solid var(--border); }
.xr-res h3 { margin: 0; font-size: 1rem; }
.xr-dist { display: flex; gap: 10px; align-items: flex-end; height: 90px; }
.xr-dist > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; width: 32px; text-align: center; }
.xr-dist > div > span { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; }
.xr-bars { list-style: none; margin: 6px 0 0; padding: 0; }
.xr-bars li { display: grid; grid-template-columns: minmax(140px, 260px) 1fr 32px; gap: 10px; align-items: center; padding: 3px 0; font-size: .9rem; }
.xr-texts { margin: 6px 0 0; padding-left: 18px; }
.xr-texts li { margin: 4px 0; }
.xr-qedit { display: grid; grid-template-columns: 170px 1fr 1fr auto; gap: 8px; align-items: start; padding: 6px 0; border-bottom: 1px solid var(--border); }
.xr-qbtns { display: flex; gap: 4px; }
@media (max-width: 760px) { .xr-qedit { grid-template-columns: 1fr; } .xr-bars li { grid-template-columns: 1fr 60px 28px; } }
.xr-buddy { margin-top: 16px; }
.xr-kpis > .card { margin: 0; }
.xr-section { margin: 20px 0; }
.xr-item-act select, .xr-ack select { width: auto; }
.xr-chips select { width: auto; }

/* medewerkerskaart → uit dienst */
.ud { margin-top: 14px; border-left: 3px solid var(--warn); }
.ud-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ud-head h3 { margin: 0; }
.ud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 12px; }
.ud-block h4 { margin: 0 0 8px; font-size: .95rem; }
.ud-list { list-style: none; margin: 0 0 8px; padding: 0; }
.ud-list li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.ud-list li:last-child { border-bottom: 0; }
.ud-list li.ud-item { flex-wrap: wrap; }
.ud-manual label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; width: 100%; }
.ud-manual input { margin-top: 3px; }
.ud-mark { flex: 0 0 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.ud-mark.ok { background: var(--ok-soft); color: var(--ok); }
.ud-mark.warn { background: var(--warn-soft); color: var(--warn); }
.ud-mark.info { background: var(--accent-soft); color: var(--accent); }
.ud-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ud-ret { display: flex; gap: 6px; margin-left: 28px; }
.ud-ret select { width: auto; padding: 3px 6px; font-size: .82rem; }
.ud-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ud-mb { flex-direction: column; align-items: flex-start; }
.ud-sub { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-left: 18px; border-left: 2px solid var(--border); }
.ud-opt { font-size: .85rem; }
.ud-opt.custom { border-color: var(--accent); }
.ud-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ud-access { max-width: 320px; }
.ud-actions { display: flex; gap: 8px; margin: 6px 0; }
.ud-note { margin: 0 0 8px; padding: 8px 10px; }
.ud-listedit { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }

/* pushmeldingen */
.push-enable { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.push-enable .field { max-width: 280px; margin: 0; }
.push-steps { margin: 8px 0 0; padding-left: 20px; }
.push-steps li { margin: 4px 0; }
.push-dev { margin: 0 0 12px; }
.push-dev.current { border-color: var(--accent); }
.push-dev-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.push-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.push-evs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.push-quiet { font-size: .85rem; }
.push-err { color: var(--err, #b42318); }
.push-ntfy { margin-top: 12px; }
.push-help dt { font-weight: 600; margin-top: 8px; }
.push-help dd { margin: 2px 0 0; color: var(--muted); }

/* formulieren (portaal) */
.fm-new { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.fm-templates { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fm-section { margin: 18px 0; }
.fm-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; text-decoration: none; color: inherit; }
a.fm-card { flex-direction: row; }
a.fm-card > span.cmp-sub { flex: 1; }
a.fm-card:hover { border-color: var(--accent); }
.fm-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fm-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.fm-link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.fm-link input { flex: 1 1 280px; min-width: 0; }
.fm-builder { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 980px) { .fm-builder { grid-template-columns: 1fr; } }
.fm-head { border-top: 6px solid var(--accent); }
.fm-title { font-size: 1.5rem; font-weight: 700; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 4px 0; width: 100%; background: transparent; }
.fm-head textarea { width: 100%; margin-top: 8px; }
.fm-q { margin: 10px 0; cursor: pointer; border-left: 3px solid transparent; }
.fm-q.active { cursor: default; border-left-color: var(--accent); }
.fm-q.fm-sec { background: var(--surface-2); }
.fm-q-sum { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fm-ico { display: inline-flex; min-width: 22px; justify-content: center; font-size: .8rem; color: var(--muted); }
.fm-req { color: var(--err, #b42318); font-weight: 700; }
.fm-q-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 8px; }
@media (max-width: 600px) { .fm-q-row { grid-template-columns: 1fr; } }
.fm-q-row input { font-weight: 600; }
.fm-help { margin-top: 6px; width: 100%; font-size: .9rem; }
.fm-opts { list-style: none; margin: 10px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fm-opts li { display: flex; gap: 6px; align-items: center; }
.fm-opts li input { flex: 1; min-width: 0; }
.fm-opts li select { width: auto; max-width: 45%; font-size: .85rem; }
.fm-bullet { width: 20px; text-align: center; color: var(--muted); }
.fm-inline { display: inline-flex; gap: 6px; align-items: center; margin: 8px 12px 0 0; }
.fm-inline input, .fm-inline select { width: 80px; }
.fm-inline-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.fm-inline-row > input { flex: 1 1 180px; }
.fm-q-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.fm-q-tools { display: flex; gap: 2px; }
.fm-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fm-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.fm-settings h3 { font-size: .95rem; margin: 14px 0 6px; }
.fm-settings h3:first-child { margin-top: 0; }
.fm-settings > .chip { display: flex; margin: 4px 0; }
.fm-pick { display: flex; flex-wrap: wrap; gap: 4px; max-height: 220px; overflow: auto; margin-top: 6px; }
.fm-people .chip { font-size: .82rem; }
.fm-color input { width: 60px; height: 32px; padding: 2px; }
.fm-fill-head h1 { margin: 0 0 6px; }
.fm-anon { font-size: .9rem; color: var(--ok); }
.fm-fill-q { margin: 12px 0; border: 1px solid var(--border); }
.fm-fill-q legend { font-weight: 600; padding: 0 4px; }
.fm-fill-q input[type=text], .fm-fill-q textarea, .fm-fill-q select { width: 100%; }
.fm-fill-q input[type=number], .fm-fill-q input[type=date] { max-width: 220px; }
.fm-fill-sec { margin: 22px 0 6px; }
.fm-fill-sec h2 { margin: 0; }
.fm-choices { display: flex; flex-direction: column; gap: 6px; }
.fm-choice { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.fm-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.fm-stars { display: flex; gap: 4px; }
.fm-stars input { position: absolute; opacity: 0; pointer-events: none; }
.fm-stars span { font-size: 1.8rem; color: var(--border); cursor: pointer; line-height: 1; }
.fm-stars span.on { color: #e3a008; }
.fm-scale { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fm-scale-row { display: flex; flex-wrap: wrap; gap: 4px; }
.fm-scale-row input { position: absolute; opacity: 0; pointer-events: none; }
.fm-scale-row span { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.fm-scale-row input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.fm-scale-row input:focus-visible + span, .fm-stars input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fm-err { color: var(--err, #b42318); margin: 6px 0 0; font-size: .88rem; }
.fm-thanks { text-align: center; padding: 28px; }
.fm-res { margin-bottom: 12px; }
.fm-res h3 { margin: 0; font-size: 1rem; }
.fm-big { font-size: 1.6rem; }
.fm-table td { max-width: 320px; vertical-align: top; }
.fm-notyet { columns: 2 260px; margin: 0; padding-left: 18px; }
.fm-head input.fm-title { font-size: 1.5rem; font-weight: 700; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 4px 0; box-shadow: none; }
.fm-fill-q legend { float: left; width: 100%; margin-bottom: 10px; }
.fm-fill-q > :not(legend) { clear: both; }

/* intranet: wie is wie, over mij, afdelingen */
.pp-about { margin: 4px 0 0; font-size: .88rem; }
.ww-nudge { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ww-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; position: sticky; top: 8px; z-index: 2; }
.ww-filters input[type=search] { flex: 1 1 280px; min-width: 0; }
.ww-filters select { width: auto; }
.ww-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ww-card { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; margin: 0; padding: 12px 14px; }
.ww-card:hover { border-color: var(--accent); }
.ww-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ww-text strong, .ww-text span { overflow: hidden; text-overflow: ellipsis; }
.ww-skills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ww-tag { font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); text-decoration: none; white-space: nowrap; }
.ww-group { font-size: 1rem; margin: 18px 0 8px; }
.ww-group a { color: inherit; text-decoration: none; }
.ww-profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ww-profile-head h1 { margin: 0; }
.ww-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; margin-top: 18px; }
@media (max-width: 820px) { .ww-grid { grid-template-columns: 1fr; } }
.ww-grid h2 { font-size: 1rem; margin: 14px 0 6px; }
.ww-grid > div > h2:first-child { margin-top: 0; }
.ww-bio p { margin: 0 0 8px; }
.ww-bio ul { margin: 0 0 8px; padding-left: 20px; }
.ww-contact { border-left: 1px solid var(--border); padding-left: 20px; }
@media (max-width: 820px) { .ww-contact { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 12px; } }
.ww-edit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .ww-edit { grid-template-columns: 1fr; } }
.ww-edit form .field { margin-bottom: 14px; }
.ww-edit textarea { width: 100%; }
.ww-preview { position: sticky; top: 12px; }
.dp-mine { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; border-left: 4px solid var(--accent); margin-bottom: 14px; }
.dp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dp-tile { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; text-decoration: none; color: inherit; margin: 0; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.dp-tile:hover, .dp-mine:hover { border-color: var(--accent); }
.dp-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .08); }
.dp-tile-top { display: flex; align-items: center; gap: 12px; padding: 16px 16px 0; }
.dp-tile-ico { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.dp-tile-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dp-tile-flag { font-weight: 600; color: var(--accent); white-space: nowrap; }
.dp-tile-mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.dp-tile-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; flex: 1; }
.dp-tile-name { font-size: 1.05rem; }
.dp-tile-intro { font-size: .86rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dp-tile-news { display: flex; flex-direction: column; gap: 1px; font-size: .84rem; padding: 6px 9px; border-radius: 8px; background: var(--surface-2); border-left: 3px solid var(--accent); }
.dp-tile-news .pp-label { color: var(--accent); }
.dp-tile-foot { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border); min-height: 49px; }
.dp-tile-edit { margin-left: auto; color: var(--muted); font-size: .95rem; }
.dp-faces { display: flex; align-items: center; }
.dp-faces .pp-av { width: 28px; height: 28px; font-size: .62rem; border: 2px solid var(--surface); margin-left: -8px; }
.dp-faces .pp-av:first-child { margin-left: 0; }
.dp-more { margin-left: -8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 600; background: var(--surface-2); border: 2px solid var(--surface); color: var(--muted); }
.ih-start { display: block; font-size: .78rem; color: var(--ok); margin-top: 1px; }
.dp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; border-top: 6px solid var(--accent); }
.dp-head h1 { margin: 0 0 4px; }
.dp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-top: 14px; }
@media (max-width: 900px) { .dp-layout { grid-template-columns: 1fr; } }
.dp-block { margin: 0 0 14px; }
.dp-block h2 { font-size: 1.05rem; margin: 0 0 10px; }
.dp-block textarea { width: 100%; }
.dp-empty { border-style: dashed; }
.dp-person { display: flex; gap: 10px; align-items: center; padding: 6px 0; text-decoration: none; color: inherit; }
.dp-person > span:not(.pp-av) { display: flex; flex-direction: column; min-width: 0; }
.dp-person:hover strong { text-decoration: underline; }
.dp-team { max-height: 520px; overflow: auto; }
.dp-links { margin: 0; padding-left: 18px; }
.dp-links li { margin: 4px 0; }
.dp-link-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 6px; margin-bottom: 6px; }
.dp-news { padding: 10px 0; border-top: 1px solid var(--border); }
.dp-news-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.dp-news-head .btn { margin-left: auto; }
.dp-news-new { margin-bottom: 10px; }
.dp-news-new summary { list-style: none; display: inline-flex; }
.ww-cards > .ww-card.card, .dp-grid > .dp-tile.card { margin: 0; }
.ww-name { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ww-name .badge { font-size: .7rem; }

/* ---------- intranet-startpagina en menubalk (portaal) ---------- */
.pnav { position: sticky; top: 0; z-index: 30; background: var(--surface, #fff); border-bottom: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.pnav-items { display: flex; align-items: stretch; gap: 2px; max-width: 1720px; margin: 0 auto; padding: 0 16px; }
.pnav-link, .pnav-menu > summary { display: inline-flex; align-items: center; gap: 6px; padding: 12px 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; list-style: none; }
.pnav-menu > summary::-webkit-details-marker { display: none; }
.pnav-menu > summary::after { content: '▾'; font-size: .7rem; color: var(--muted); }
.pnav-link:hover, .pnav-menu > summary:hover { color: var(--accent); }
.pnav-link.active, .pnav-menu.active > summary { border-bottom-color: var(--accent); color: var(--accent); }
.pnav-link[href="#/alles"] { margin-left: auto; }
.pnav-menu { position: relative; }
.pnav-drop { position: absolute; top: 100%; left: 0; min-width: 340px; max-width: 420px; max-height: 70vh; overflow: auto; background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px; z-index: 40; }
.pnav-drop a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: inherit; }
.pnav-drop a:hover { background: var(--accent-soft); }
.pnav-drop a > span:not(.tile-count):not(.portal-tile-ico) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pnav-drop .muted { font-size: .8rem; line-height: 1.3; }
.pnav-drop .portal-tile-ico, .pnav-drop svg { flex: 0 0 auto; }
.pnav-n { background: var(--accent); color: #fff; border-radius: 99px; font-size: .7rem; padding: 1px 6px; }
.pnav-toggle { display: none; background: none; border: 0; font-weight: 600; padding: 12px 16px; cursor: pointer; color: var(--text); }
@media (max-width: 900px) {
  .pnav-toggle { display: block; }
  .pnav-items { display: none; flex-direction: column; padding: 0 8px 10px; }
  .pnav.open .pnav-items { display: flex; }
  .pnav-link, .pnav-menu > summary { border-bottom: 0; border-left: 3px solid transparent; padding: 10px 12px; }
  .pnav-link.active, .pnav-menu.active > summary { border-left-color: var(--accent); }
  .pnav-link[href="#/alles"] { margin-left: 0; }
  .pnav-drop { position: static; min-width: 0; max-width: none; box-shadow: none; border: 0; padding: 0 0 0 12px; max-height: none; }
}
.ih-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; padding: 26px 26px 22px; border-radius: 16px; margin-bottom: 18px; color: #fff;
  background: linear-gradient(120deg, rgba(31,73,60,.92), rgba(47,107,87,.78)), var(--hero-img, none) center/cover; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.brand-amstelpark .ih-hero { background: linear-gradient(120deg, rgba(40,55,85,.92), rgba(70,95,140,.78)); }
.ih-date { margin: 0; opacity: .85; text-transform: capitalize; font-size: .9rem; }
.ih-hero h1 { margin: 2px 0 14px; color: #fff; font-size: 1.9rem; }
.ih-search { position: relative; max-width: 560px; }
.ih-search input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 0; font-size: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.ih-hits { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface, #fff); color: var(--text); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 6px; z-index: 20; max-height: 60vh; overflow: auto; }
.ih-hits a { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: inherit; }
.ih-hits a:hover, .ih-hits a:focus { background: var(--accent-soft); }
.ih-hits-h { margin: 6px 10px 2px; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ih-me { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.96); color: var(--text); border-radius: 12px; padding: 12px 14px; min-width: 280px; }
.ih-me-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ih-me-links { font-size: .82rem; }
.ih-me-extra { list-style: none; margin: 8px 0 0; padding: 8px 12px; background: rgba(255,255,255,.96); color: var(--text); border-radius: 10px; font-size: .85rem; }
.ih-me-extra li { display: flex; gap: 6px; align-items: center; }
.ih-hero-me .pp-roles { margin-top: 4px; }
@media (max-width: 760px) { .ih-hero { grid-template-columns: 1fr; padding: 20px 16px; } .ih-me { min-width: 0; } .ih-hero h1 { font-size: 1.5rem; } }
.ih-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 960px) { .ih-grid { grid-template-columns: 1fr; } }
.ih-main > .card, .ih-side > .card { margin: 0 0 16px; }
.ih-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.ih-head h2, .ih-side h2 { margin: 0; font-size: 1.1rem; }
.ih-todo-list { list-style: none; margin: 0; padding: 0; }
.ih-todo-list a { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; border-radius: 6px; }
.ih-todo-list li:last-child a { border-bottom: 0; }
.ih-todo-list a:hover { background: var(--accent-soft); }
.ih-todo-list a > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ih-none { margin: 0; }
.ih-dnews article { padding: 10px 0; border-top: 1px solid var(--border); }
.ih-dnews article:first-of-type { border-top: 0; padding-top: 0; }
.ih-dnews article > a { text-decoration: none; color: inherit; }
.ih-dnews p { margin: 4px 0; }
.ih-tag { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ih-quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ih-quick-grid a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 8px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: inherit; font-weight: 600; font-size: .88rem; }
.ih-quick-grid a:hover { border-color: var(--accent); background: var(--accent-soft); }
.ih-dept { border-top: 4px solid var(--accent); }
.ih-dept h2 a { color: inherit; text-decoration: none; }
.ih-about { background: var(--accent-soft); border-color: transparent; }
.portal-body .portal-msgs { margin: 0 0 16px; }
.ih-me .pp-photo-wrap { flex: 0 0 64px; width: 64px; height: 64px; }
.ih-me .pp-photo-wrap .pp-av { width: 64px; height: 64px; }
.ih-me .pp-photo-wrap .pp-photo-btn { width: 24px; height: 24px; right: -2px; bottom: -2px; }
.ih-me .pp-roles { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-start; margin-top: 4px; }
.ih-search input { color: var(--text); background: #fff; }
.pnav-drop .portal-tile-ico, .ih-todo-list .portal-tile-ico, .ih-hits .portal-tile-ico { flex: 0 0 34px; width: 34px; height: 34px; margin: 0; }
.ih-quick-grid .portal-tile-ico { width: 40px; height: 40px; margin: 0; }

/* ---------- zoeken in het portaal ---------- */
.pnav-search { margin: 6px 0 6px 10px; align-self: center; width: 230px; max-width: 100%; }
.pnav-search input { padding: 7px 12px 7px 32px; font-size: .9rem; border-radius: 999px; border: 1px solid var(--border); box-shadow: none; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2365706a' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center / 16px; color: var(--text); transition: width .15s ease, background-color .15s ease; }
.pnav-search input:focus { background-color: var(--surface); border-color: var(--accent); outline: none; }
.pnav-search .ih-hits { left: auto; right: 0; width: 400px; max-width: calc(100vw - 24px); }
.pnav-home .pnav-search { display: none; }
.ih-hits-all { justify-content: center; margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 8px 8px !important; font-weight: 600; color: var(--accent) !important; font-size: .88rem; }
.ih-hits mark, .zk-group mark { background: hsl(48 100% 70% / .55); color: inherit; border-radius: 2px; padding: 0 1px; }
.zk-form { display: flex; gap: 8px; max-width: 680px; margin: 0 0 14px; }
.zk-form input { flex: 1; padding: 11px 14px; font-size: 1rem; border-radius: 10px; }
.zk-tabs { margin-bottom: 10px; }
.zk-tabs a { text-decoration: none; }
.zk-group { margin: 18px 0 6px; }
.zk-group h2 { font-size: 1.05rem; margin: 0 0 10px; }
.zk-group h2 .muted { font-weight: 400; font-size: .9rem; }
.zk-row { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: inherit; margin: 0 0 8px; padding: 12px 14px; }
.zk-row:hover, .zk-person:hover { border-color: var(--accent); }
.zk-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zk-snip { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.zk-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.zk-people > .zk-person { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: inherit; margin: 0; padding: 12px 14px; }
@media (max-width: 900px) {
  .pnav-search { width: auto; margin: 8px 16px; }
  .pnav-search .ih-hits { left: 0; right: 0; width: auto; }
}

/* ---------- kennisbank: FAQ en procedures ---------- */
.kb-tools { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.kb-tools input[type=search] { max-width: 560px; padding: 10px 14px; border-radius: 10px; font-size: 1rem; }
.kb-cat { margin: 18px 0 8px; }
.kb-cat > h2 { font-size: 1.05rem; margin: 0 0 10px; }
.faq-item { margin: 0 0 8px; padding: 0; }
.faq-item > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::before { content: '+'; flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.faq-item[open] > summary::before { content: '–'; }
.faq-item[open] > summary { border-bottom: 1px solid var(--border); }
.faq-answer { padding: 12px 16px 2px 48px; }
.faq-foot { margin: 0; padding: 0 16px 12px 48px; font-size: .8rem; color: var(--muted); }
.pr-md p { margin: 0 0 10px; line-height: 1.55; }
.pr-md ul, .pr-md ol { margin: 0 0 10px; padding-left: 20px; line-height: 1.55; }
.pr-md > :last-child { margin-bottom: 0; }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pr-card { display: flex; flex-direction: column; gap: 6px; margin: 0; text-decoration: none; color: inherit; border-left: 4px solid var(--accent); }
.pr-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(0, 0, 0, .07); }
.pr-card-doel { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.pr-kicker { display: flex; gap: 8px; align-items: center; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pr-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--text); letter-spacing: 0; text-transform: none; }
.pr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.pr-doc { min-width: 0; }
.pr-head { border-top: 6px solid var(--accent); margin: 0 0 14px; }
.pr-head h1 { margin: 6px 0 12px; }
.pr-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding-top: 12px; border-top: 1px solid var(--border); }
.pr-meta dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pr-meta dd { margin: 2px 0 0; font-weight: 600; }
.pr-sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 12px; }
.pr-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; margin: 0 0 10px; }
.pr-sec-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.pr-sec-letop { border-left: 4px solid var(--warn); background: var(--warn-soft); }
.pr-sec-letop .pr-sec-ico { background: var(--surface); color: var(--warn); }
.pr-steps { list-style: none; margin: 0; padding: 0; }
.pr-steps > li { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.pr-steps > li + li { border-top: 1px dashed var(--border); }
.pr-steps .pr-md { margin-top: 3px; color: var(--text); }
.pr-step-n { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .85rem; }
.pr-links { margin: 0; padding-left: 18px; }
.pr-links li { margin: 4px 0; }
.pr-side { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 10px; }
.pr-side .card { margin: 0; }
.pr-side h2 { font-size: 1rem; margin: 0 0 8px; }
.pr-hist { list-style: none; margin: 0; padding: 0; }
.pr-hist li { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 8px; }
.pr-hist li.on { background: var(--accent-soft); }
.pr-hist a { color: inherit; text-decoration: none; }
.pr-hist-note { font-size: .84rem; }
@media (max-width: 900px) { .pr-layout { grid-template-columns: 1fr; } .pr-side { position: static; } }
@media print {
  .portal-bar, .pnav, .portal-crumb, .pr-side, .callout, #toast { display: none !important; }
  .pr-layout { display: block; }
  .pr-sec, .pr-head { break-inside: avoid; box-shadow: none; }
  body { background: #fff !important; }
}

/* ---------- Beheer → Connect ---------- */
.cx-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.cx-row .field { flex: 1 1 220px; }
.cx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; }
.cx-preview { border: 1px dashed var(--border); border-radius: 8px; padding: 10px 12px; min-height: 120px; background: var(--surface-2); }
.cx-edit { border-top: 4px solid var(--accent); }
.cx-edit .field { margin-bottom: 10px; }
.cx-bar { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.cx-cats { position: relative; }
.cx-cats > summary { list-style: none; }
.cx-cats > summary::-webkit-details-marker { display: none; }
.cx-cats > .card { position: absolute; z-index: 20; width: 360px; margin-top: 6px; }
.cx-cats textarea { width: 100%; }
.cx-faq-list { list-style: none; margin: 0; padding: 0; }
.cx-faq-list li { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--border); }
.cx-faq-q { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0; padding: 10px 4px; cursor: pointer; color: inherit; font: inherit; }
.cx-faq-q:hover strong { text-decoration: underline; }
.cx-move { display: inline-flex; flex-direction: column; gap: 0; }
.cx-move .linkbtn { font-size: .7rem; line-height: 1.1; padding: 1px 4px; }
.cx-move .linkbtn:disabled { opacity: .25; cursor: default; }
.cx-tabs { margin: 10px 0 14px; }
.cx-late { color: var(--err); font-weight: 600; }
.pr-ed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.pr-ed-layout aside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.pr-ed-layout aside .card { margin: 0; }
.pr-ed-layout aside .field { margin-bottom: 8px; }
.pr-ed-sec { margin: 0 0 12px; }
.pr-ed-sec h2 { font-size: 1rem; margin: 0 0 2px; }
.pr-ed-sec textarea { width: 100%; margin-top: 8px; }
.pr-step-ed { display: flex; gap: 10px; align-items: flex-start; padding: 10px; margin: 8px 0; box-shadow: none; }
.pr-step-ed .pr-step-n { margin-top: 4px; }
.pr-step-fields { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pr-step-fields textarea { margin: 0; }
.pr-note { min-width: 260px; padding: 6px 10px; }
@media (max-width: 1000px) { .pr-ed-layout, .cx-split { grid-template-columns: 1fr; } .pr-ed-layout aside { position: static; } }
.cx-move .linkbtn { text-decoration: none; }

/* ---------- bredere pagina's, grotere foto's, banner, afdelingspagina ---------- */
.ww-cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.ww-card .pp-av-md { width: 92px; height: 92px; font-size: 1.6rem; }
.ww-card { gap: 14px; padding: 12px 14px; min-width: 0; }
.ww-profile-head .pp-av-lg { width: 150px; height: 150px; font-size: 2.8rem; }
.dp-person .pp-av-sm, .ih-new .dp-person .pp-av-sm { width: 64px; height: 64px; font-size: 1.1rem; }
.dp-person { gap: 14px; padding: 8px 0; }
.dp-team { max-height: 760px; }
.dp-lead { background: var(--accent-soft); border-radius: 10px; padding: 8px 10px; margin: 0 -10px 6px; }
.dp-lead-tag { align-self: flex-start; margin-top: 3px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.dp-head-main { display: flex; gap: 16px; align-items: center; }
.dp-head-ico { flex-basis: 60px; width: 60px; height: 60px; border-radius: 14px; }
.dp-newsbox-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.dp-newsbox-head h2 { margin: 0; }
.dp-newsbox .dp-news-new { margin: 0; }
.dp-newsbox .dp-news-new[open] { flex-basis: 100%; }
.dp-news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 0 24px; }
.dp-news-acts { margin-left: auto; display: inline-flex; gap: 4px; }
.dp-news-head .dp-news-acts .btn { margin-left: 0; }
@media (min-width: 901px) { .dp-layout { grid-template-columns: minmax(0, 1fr) 380px; } }
@media (min-width: 961px) { .ih-grid { grid-template-columns: minmax(0, 1fr) 400px; } }
.bn-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0; }
.bn-until { display: inline-flex; gap: 6px; align-items: center; font-size: .88rem; color: var(--muted); }
.bn-until input { width: auto; padding: 5px 8px; }
.pbanner { background: var(--accent); color: var(--accent-ink); position: relative; z-index: 25; }
.pbanner-in { display: flex; align-items: center; gap: 10px; max-width: none; margin: 0; padding: 0 16px; height: 40px; }
.pbanner-label { flex: none; font-size: 1.05rem; }
.pbanner-view { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.pbanner-track { display: inline-flex; align-items: center; white-space: nowrap; width: max-content; animation: pbanner-scroll var(--pb-dur, 30s) linear infinite; }
.pbanner-half { display: inline-flex; align-items: center; flex: none; }
.pbanner:hover .pbanner-track, .pbanner:focus-within .pbanner-track { animation-play-state: paused; }
.pbanner-item { color: inherit; text-decoration: none; font-weight: 600; font-size: .92rem; display: inline-flex; gap: 8px; align-items: center; }
.pbanner-item:hover { text-decoration: underline; }
.pbanner-src { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .2); font-weight: 700; }
.pbanner-sep { margin: 0 22px; opacity: .6; }
.pbanner-x { flex: none; background: none; border: 0; color: inherit; opacity: .75; cursor: pointer; font-size: .95rem; padding: 6px; }
.pbanner-x:hover { opacity: 1; }
@keyframes pbanner-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pbanner-track { animation: none; } .pbanner-view { overflow-x: auto; } }
@media (max-width: 700px) {
  .ww-card .pp-av-md { width: 80px; height: 80px; }
  .ww-profile-head .pp-av-lg { width: 140px; height: 140px; }
  .dp-news-list { grid-template-columns: 1fr; }
}

/* ---------- tickets ---------- */
.tk-tools { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.tk-tools input[type=search] { max-width: 320px; }
.tk-list { display: flex; flex-direction: column; gap: 8px; }
.tk-row { display: flex; gap: 14px; align-items: center; margin: 0; padding: 12px 16px; text-decoration: none; color: inherit; }
.tk-row:hover { border-color: var(--accent); }
.tk-nr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; color: var(--muted); min-width: 44px; }
.tk-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tk-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tk-form { max-width: 760px; }
.tk-form .field { margin-bottom: 12px; }
.tk-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.tk-seg label { padding: 8px 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.tk-seg label:has(input:checked) { background: var(--accent-soft); color: var(--accent); }
.tk-seg input { accent-color: var(--accent); }
.tk-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.tk-layout .card { margin: 0 0 14px; }
.tk-head { border-top: 6px solid var(--accent); }
.tk-head h1 { margin: 8px 0 12px; }
.tk-kicker { display: flex; gap: 8px; align-items: center; }
.tk-text { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); line-height: 1.55; }
.tk-events { list-style: none; margin: 0 0 12px; padding: 0; }
.tk-ev { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.tk-log { font-size: .88rem; color: var(--muted); padding-left: 8px; }
.tk-log strong { color: var(--text); }
.tk-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--border); margin-top: 5px; }
.tk-note { margin-top: 4px; color: var(--text); }
.tk-bubble { flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.tk-comment.from-req .tk-bubble { background: var(--accent-soft); border-color: transparent; }
.tk-ev-head { margin-bottom: 3px; }
.tk-reply textarea { width: 100%; }
.tk-side { position: sticky; top: 70px; }
.tk-side h2 { font-size: 1rem; margin: 0 0 10px; }
.tk-acts { display: flex; flex-direction: column; gap: 6px; }
.tk-side select { width: 100%; }
@media (max-width: 900px) { .tk-layout, .tk-row2 { grid-template-columns: 1fr; } .tk-side { position: static; } .tk-row { flex-wrap: wrap; } }

.dp-lead .pp-av { background: var(--surface); }
.dp-news-head { flex-wrap: nowrap; align-items: flex-start; }
.dp-news-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dp-news-acts { flex: none; }

/* ---------- BHV ---------- */
.bhv-tag { display: inline-flex; align-items: center; font-size: .68rem; font-weight: 700; letter-spacing: .03em; padding: 2px 7px; border-radius: 99px; background: #e8f5e9; color: #1b7a3a; border: 1px solid #b9dfc2; text-decoration: none; white-space: nowrap; }
.bhv-tag.lead { background: #fff4e0; color: #8a5a00; border-color: #f0d49a; }
h1 .bhv-tag { font-size: .8rem; vertical-align: middle; }
.bhv-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.bhv-top > .card { margin: 0; }
.bhv-alarm { border-left: 6px solid var(--err); background: var(--err-soft); }
.bhv-alarm .pp-label { color: var(--err); }
.bhv-alarm-main { font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin: 4px 0 10px; }
.bhv-info h2, .bhv-section h2 { font-size: 1.05rem; margin: 0 0 10px; }
.bhv-section { margin-top: 18px; }
.bhv-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bhv-section-head h2 { margin: 0; }
.bhv-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.bhv-person { display: flex; gap: 16px; align-items: center; margin: 0; padding: 14px 16px; }
.bhv-person .pp-av-md { width: 96px; height: 96px; font-size: 1.7rem; }
.bhv-person-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bhv-name { color: inherit; text-decoration: none; }
.bhv-name:hover { text-decoration: underline; }
.bhv-types { display: flex; gap: 4px; flex-wrap: wrap; }
.bhv-contact { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.bhv-eq { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bhv-eq > .card { margin: 0; }
.bhv-eq h3 { margin: 0 0 6px; font-size: .95rem; }
.bhv-eq ul { margin: 0; padding-left: 18px; }
.bhv-tabs { margin-bottom: 14px; }
.bhv-tabs a { text-decoration: none; }
.bhv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.bhv-kpis .xr-kpi { margin: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.bhv-kpis .xr-kpi.warn { border-left: 4px solid var(--warn); }
.bhv-kpis .xr-kpi.err { border-left: 4px solid var(--err); }
.bhv-kpi-date { font-size: 1.15rem !important; }
.bhv-cov { list-style: none; margin: 0 0 8px; padding: 0; }
.bhv-cov li { display: grid; grid-template-columns: minmax(160px, 260px) 1fr minmax(150px, auto); gap: 12px; align-items: center; padding: 6px 0; }
.bhv-cov .xr-bar { height: 10px; }
.bhv-cov .xr-bar .low { background: var(--err); }
.bhv-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.bhv-bar input[type=search] { max-width: 260px; }
.bhv-form .field { margin-bottom: 10px; }
.bhv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 14px; }
.bhv-old td { opacity: .6; }
.bhv-drill { margin: 0 0 10px; }
.bhv-drill-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 6px; }
@media (max-width: 700px) { .bhv-cov li { grid-template-columns: 1fr; gap: 4px; } .bhv-person .pp-av-md { width: 72px; height: 72px; } }
.bhv-cov-n { display: inline-flex; gap: 8px; align-items: center; justify-content: flex-end; }

/* Wie is wie: kaart iets compacter, lange e-mailadressen binnen het kader, BHV-icoon op de foto */
.ww-cards { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.ww-text { flex: 1; }
.ww-text strong, .ww-text > span { overflow-wrap: break-word; hyphens: auto; }
.ww-profile { max-width: 1100px; }
.ww-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.ww-contact { min-width: 0; }
.ww-contact .xr-dl { grid-template-columns: max-content minmax(0, 1fr); }
.ww-contact .xr-dl dd { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.ww-contact .pp-mgr-acts { flex-wrap: wrap; }
.av-wrap { position: relative; display: inline-flex; flex: none; }
.bhv-ico { position: absolute; right: 2%; bottom: 2%; width: 30%; height: 30%; min-width: 18px; min-height: 18px; max-width: 34px; max-height: 34px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.bhv-ico svg { width: 62%; height: 62%; }
@media (max-width: 820px) { .ww-grid { grid-template-columns: 1fr; } }

/* online status (Teams) */
.av-wrap .bhv-ico { bottom: auto; top: 2%; }
.pres-dot { position: absolute; right: 3%; bottom: 3%; width: 22%; height: 22%; min-width: 12px; min-height: 12px; max-width: 26px; max-height: 26px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); background: #9aa3a0; }
.pres-beschikbaar { background: #13a10e; }
.pres-bezet, .pres-nietstoren { background: #c4314b; }
.pres-afwezig { background: #f8c100; }
.pres-offline { background: #9aa3a0; }
.pres-nietstoren::after { content: ''; position: absolute; left: 25%; right: 25%; top: 45%; height: 12%; background: #fff; border-radius: 2px; }
.pres-line { margin: 4px 0 0; }
.pres-text { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; background: none !important; }
.pres-text::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #9aa3a0; }
.pres-text.pres-beschikbaar { color: #107c0c; } .pres-text.pres-beschikbaar::before { background: #13a10e; }
.pres-text.pres-bezet, .pres-text.pres-nietstoren { color: #a4262c; } .pres-text.pres-bezet::before, .pres-text.pres-nietstoren::before { background: #c4314b; }
.pres-text.pres-afwezig { color: #8a6d00; } .pres-text.pres-afwezig::before { background: #f8c100; }
.pres-text.pres-offline { color: var(--muted); }
.pres-text.pres-nietstoren::after { display: none; }
.ww-phone { font-size: .82rem; color: var(--text); margin-top: 2px; }

/* ---------- Mijn bestanden ---------- */
.bf-connect { display: flex; gap: 20px; align-items: flex-start; max-width: 760px; }
.bf-connect h2 { margin: 0 0 8px; }
.bf-connect-ico { flex: 0 0 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: #e7f0fb; color: #0364b8; }
.bf-connect-ico svg { width: 40px; height: 40px; }
.bf-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.bf-bar input[type=search] { flex: 1 1 260px; max-width: 420px; }
.bf-off { margin-left: auto; color: var(--muted); }
.bf-crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0 10px; font-size: .92rem; min-height: 4px; }
.bf-crumbs .linkbtn { font-size: .92rem; }
.bf-list { list-style: none; margin: 0; padding: 4px 0; }
.bf-row { display: grid; grid-template-columns: var(--bf-cols, 36px minmax(0, 1fr) 150px 170px 100px 84px); gap: 12px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--border); }
.bf-row:first-child { border-top: 0; }
.bf-row:hover { background: var(--surface-2); }
.bf-name { display: flex; flex-direction: column; min-width: 0; }
.bf-name a, .bf-open { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; text-align: left; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
.bf-name a:hover, .bf-open:hover { text-decoration: underline; color: var(--accent); }
.bf-mod { display: flex; flex-direction: column; font-size: .86rem; }
.bf-size { font-size: .86rem; text-align: right; }
.bf-acts { display: flex; gap: 2px; justify-content: flex-end; }
.bf-ico { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: #fff; background: #8a9590; }
.bf-ico svg { width: 26px; height: 26px; }
.bf-folder { background: none; color: #e8b33c; }
.bf-word { background: #185abd; } .bf-excel { background: #107c41; } .bf-ppt { background: #c43e1c; } .bf-pdf { background: #d93025; font-size: .58rem; }
.bf-img { background: #7b4fc4; } .bf-video { background: #333; } .bf-zip { background: #8a6d00; font-size: .58rem; } .bf-one { background: #7719aa; } .bf-txt { background: #5f6b66; font-size: .58rem; }
.bf-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.bf-site { display: flex; gap: 12px; align-items: center; margin: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.bf-site:hover { border-color: var(--accent); }
.bf-site > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.bf-site-ico { flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #036c70; color: #fff; font-weight: 700; }
@media (max-width: 760px) { .bf-row { grid-template-columns: 32px minmax(0, 1fr) 84px; } .bf-mod, .bf-size { display: none; } .bf-connect { flex-direction: column; } }

/* Mijn bestanden: weergave */
.bf-view { position: relative; }
.bf-view > summary { list-style: none; }
.bf-view > summary::-webkit-details-marker { display: none; }
.bf-view-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 300px; margin: 0; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); }
.bf-view-pop .pp-label { margin: 4px 0 0; }
.bf-seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.bf-seg button { background: none; border: 0; padding: 7px 4px; font: inherit; cursor: pointer; color: var(--text); }
.bf-seg button + button { border-left: 1px solid var(--border); }
.bf-seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.bf-sortrow { display: flex; gap: 6px; }
.bf-sortrow select { flex: 1; }
.bf-colchk { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-head { background: var(--surface-2); border-top: 0 !important; padding-top: 6px; padding-bottom: 6px; }
.bf-head:hover { background: var(--surface-2); }
.bf-th { background: none; border: 0; padding: 0; font: inherit; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: left; cursor: pointer; }
.bf-th.bf-size { text-align: right; }
.bf-th.on { color: var(--accent); }
span.bf-th { cursor: default; }
.bf-by { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-compact .bf-row { padding-top: 3px; padding-bottom: 3px; }
.bf-compact .bf-ico { width: 22px; height: 22px; font-size: .5rem; border-radius: 5px; }
.bf-compact .bf-ico svg { width: 20px; height: 20px; }
.bf-compact .bf-name a, .bf-compact .bf-open { font-weight: 500; }
.bf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.bf-tile { margin: 0; padding: 10px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.bf-tile:hover { border-color: var(--accent); }
.bf-thumb { height: 120px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.bf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bf-thumb .bf-ico { width: 56px; height: 56px; font-size: .9rem; border-radius: 12px; }
.bf-thumb .bf-ico svg { width: 52px; height: 52px; }
.bf-tile-name { font-size: .92rem; min-width: 0; }
.bf-tile-name a, .bf-tile-name .bf-open { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bf-tile-meta { font-size: .78rem; }
.bf-tile .bf-acts { position: absolute; top: 14px; right: 14px; opacity: 0; transition: opacity .15s; background: var(--surface); border-radius: 8px; }
.bf-tile:hover .bf-acts, .bf-tile:focus-within .bf-acts { opacity: 1; }
@media (max-width: 760px) { .bf-list .bf-row { grid-template-columns: 32px minmax(0, 1fr) 84px !important; } .bf-list .bf-mod, .bf-list .bf-by, .bf-list .bf-size, .bf-head .bf-th:not([data-sort=naam]) { display: none; } .bf-view-pop { right: auto; left: 0; } }
.bf-tiles > .bf-tile.card { margin: 0; }
.bf-tile-name a, .bf-tile-name .bf-open { color: var(--text); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.bf-tile-name a:hover, .bf-tile-name .bf-open:hover { color: var(--accent); text-decoration: underline; }

/* Mijn bestanden: SharePoint overzichtelijker */
.bf-sp-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.bf-sp-tools input { max-width: 320px; }
.bf-sitesec { margin: 14px 0 6px; }
.bf-sitesec h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }
.bf-sitegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.bf-sitegrid > .bf-sitecard.card { margin: 0; }
.bf-sitecard { display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 8px; }
.bf-sitecard:hover { border-color: var(--accent); }
.bf-sitecard-main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.bf-sitecard-t { display: flex; flex-direction: column; min-width: 0; }
.bf-sitecard-t strong, .bf-sitecard-t .cmp-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-site-ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: hsl(var(--h, 180) 45% 38%); color: #fff; font-weight: 700; font-size: .85rem; }
.bf-site-ico.lg { flex-basis: 52px; width: 52px; height: 52px; font-size: 1.05rem; border-radius: 12px; }
.bf-sitehead { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; padding: 14px 16px; }
.bf-sitehead-t { flex: 1; min-width: 0; }
.bf-sitehead h2 { margin: 2px 0 0; font-size: 1.2rem; }
.bf-back { font-size: .82rem; }
.bf-libs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin: 0 0 10px; }
.bf-lib { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 12px 7px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.bf-lib .bf-ico { width: 20px; height: 20px; }
.bf-lib .bf-ico svg { width: 18px; height: 18px; }
.bf-lib:hover { color: var(--text); }
.bf-lib.on { color: var(--accent); border-bottom-color: var(--accent); }
