:root {
  --brand: #a51c1c;
  --brand-light: #c42d2d;
  --brand-glow: rgba(165, 28, 28, .15);
  --bg: #0a0a0c;
  --bg-2: #121214;
  --bg-3: #161619;
  --bg-elev: #1a1a1f;
  --text: #e7e7ea;
  --text-muted: #9a9aa3;
  --text-dim: #6a6a71;
  --border: rgba(255, 255, 255, .07);
  --border-2: rgba(255, 255, 255, .12);
  --green: #2fae6a;
  --green-bg: rgba(47, 174, 106, .12);
  --blue: #3b82c4;
  --blue-bg: rgba(59, 130, 196, .12);
  --radius: 10px;
  --radius-lg: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --sidebar-w: 264px;
  --sidebar-bg: linear-gradient(180deg, #111113 0%, #0c0c0e 100%);
  --sidebar-hover: rgba(255,255,255,.04);
  --sidebar-brand-text: #fff;
  --sidebar-active-text: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
body[data-theme="contrast"] {
  --bg: #000000;
  --bg-2: #070707;
  --bg-3: #111111;
  --text: #ffffff;
  --text-muted: #d7d7d7;
  --text-dim: #adadad;
  --border: rgba(255, 255, 255, .18);
  --border-2: rgba(255, 255, 255, .3);
}
body[data-compact="1"] { font-size: 13px; }
body[data-compact="1"] .card-body { padding: 16px; }
body[data-compact="1"] table.tabel tbody td { padding: 10px 14px; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.14); }

/* ═══ SHELL ═══ */
.admin-shell { display: flex; min-height: 100vh; }

/* ═══ SIDEBAR ═══ */
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); display: flex; flex-direction: column; background: var(--sidebar-bg); border-right: 1px solid var(--border); z-index: 60; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.sidebar-brand img { width: 54px; height: 36px; object-fit: contain; object-position: center; flex-shrink: 0; filter: drop-shadow(0 6px 14px rgba(0,0,0,.28)); }
.brand-copy { display: grid; gap: 1px; min-width: 0; }
.brand-copy strong { font-size: 13px; font-weight: 800; letter-spacing: 0; line-height: 1.15; color: var(--sidebar-brand-text); }
.brand-copy small { font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--text-dim); }
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 18px; flex: 1; overflow-y: auto; }
.nav-groep { display: block; padding: 16px 14px 5px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-dim); user-select: none; }
.sidebar-nav .nav-groep:first-child { padding-top: 8px; }
.sidebar-nav a { position: relative; display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--text-muted); transition: background .18s, color .18s; }
.sidebar-nav a svg { width: 19px; height: 19px; flex-shrink: 0; opacity: .85; }
.sidebar-nav a:hover { background: var(--sidebar-hover); color: var(--text); }
.sidebar-nav a.actief { background: linear-gradient(90deg, var(--brand-glow), rgba(165,28,28,.02)); color: var(--sidebar-active-text); }
.sidebar-nav a.actief::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-light); }
.sidebar-nav a.actief svg { color: var(--brand-light); opacity: 1; }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 11px; font-weight: 700; font-style: normal; line-height: 1; text-align: center; color: #fff; background: var(--brand); }
.sidebar-foot { padding: 14px; border-top: 1px solid var(--border); display: grid; gap: 3px; }
.sidebar-site, .sidebar-logout { display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: var(--radius); font-size: 13.5px; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: background .18s, color .18s; }
.sidebar-site svg, .sidebar-logout svg { width: 18px; height: 18px; }
.sidebar-site:hover { background: var(--sidebar-hover); color: var(--text); }
.sidebar-logout:hover { background: var(--brand-glow); color: var(--brand-light); }

/* Profielblok onderaan de zijbalk */
.sidebar-profiel { display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin-bottom: 4px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-3); cursor: pointer; transition: border-color .18s, background .18s; }
.sidebar-profiel:hover { border-color: var(--border-2); background: var(--bg-elev); }
.sidebar-profiel.actief { border-color: rgba(165,28,28,.45); background: var(--brand-glow); }
.sidebar-profiel .user-avatar { width: 36px; height: 36px; flex-shrink: 0; }
.sidebar-profiel .sp-tekst { min-width: 0; line-height: 1.3; }
.sidebar-profiel .sp-tekst { flex: 1; display: flex; flex-direction: column; }
.sidebar-profiel .sp-naam { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-profiel .sp-rol { display: block; margin-top: 1px; font-size: 11.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-profiel .sp-chevron { margin-left: auto; color: var(--text-dim); }
.sidebar-profiel .sp-chevron svg { width: 16px; height: 16px; }

/* Modal (bv. nieuwe medewerker) */
.modal-overlay { position: fixed; inset: 0; z-index: 120; display: none; align-items: flex-start; justify-content: center; padding: 60px 20px; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { width: 100%; max-width: 560px; border: 1px solid var(--border-2); border-radius: var(--radius-lg); background: var(--bg-2); box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 16px; font-weight: 700; color: #fff; }
.modal-sluit { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; }
.modal-sluit:hover { color: var(--text); border-color: var(--border-2); }
.modal-body { padding: 22px; }

/* Bevestigingsvenster */
.confirm-overlay { align-items: center; }
.confirm-modal { max-width: 420px; }
.confirm-modal .modal-body { padding: 28px; text-align: center; }
.confirm-ico { width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-light); background: var(--brand-glow); border: 1px solid rgba(165,28,28,.3); }
.confirm-ico svg { width: 24px; height: 24px; }
.confirm-modal h3 { font-size: 18px; font-weight: 700; color: #fff; }
.confirm-modal p { margin-top: 8px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.confirm-acties { display: flex; gap: 10px; margin-top: 24px; }
.confirm-acties .btn { flex: 1; }
.btn-danger-solid { color: #fff; background: var(--brand); border-color: var(--brand); }
.btn-danger-solid:hover { background: var(--brand-light); border-color: var(--brand-light); }
.ip-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--text); background: var(--bg-3); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; }

/* ── TEKST-EDITOR (WYSIWYG) ──────────────────────────────── */
.rte { border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); background: #0a0a0c; color: #e7e7ea; overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.rte:focus-within { border-color: rgba(165,28,28,.5); box-shadow: 0 0 0 3px var(--brand-glow); }
.rte-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1px; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.07); background: #161619; }
.rte-blok { height: 30px; padding: 0 10px 0 8px; margin-right: 5px; border: 1px solid rgba(255,255,255,.07); border-radius: 7px; background: #0a0a0c; color: #e7e7ea; font-size: 13px; cursor: pointer; }
.rte-blok option { background: #1a1a1e; color: #e7e7ea; }
.rte-sep { width: 1px; align-self: stretch; margin: 4px 5px; background: rgba(255,255,255,.07); }
.rte-knop { min-width: 30px; height: 30px; padding: 0 7px; display: inline-grid; place-items: center; border: none; border-radius: 7px; background: transparent; color: #9a9aa3; cursor: pointer; font-size: 14px; line-height: 1; transition: background .15s, color .15s; }
.rte-knop:hover { background: rgba(255,255,255,.08); color: #e7e7ea; }
.rte-knop svg { width: 16px; height: 16px; }
.rte-inhoud { min-height: 220px; max-height: 480px; overflow-y: auto; padding: 16px 18px; color: #e7e7ea; font-size: 14px; line-height: 1.7; outline: none; }
.rte-inhoud:empty::before { content: 'Begin hier te typen…'; color: #6a6a71; }
.rte-inhoud h2 { font-size: 20px; font-weight: 700; color: #fff; margin: 16px 0 8px; }
.rte-inhoud h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 16px 0 6px; }
.rte-inhoud p { margin: 0 0 8px; }
.rte-inhoud ul, .rte-inhoud ol { margin: 0 0 8px; padding-left: 24px; }
.rte-inhoud li { margin-bottom: 3px; }
.rte-inhoud blockquote { margin: 0 0 8px; padding: 4px 0 4px 14px; border-left: 3px solid var(--brand); color: var(--text-muted); }
.rte-inhoud a { color: var(--brand-light); }
.rte-inhoud:first-child { margin-top: 0; }

/* ═══ MAIN ═══ */
.admin-main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; height: 70px; padding: 0 28px; background: rgba(10,10,12,.82); border-bottom: 1px solid var(--border); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.topbar-burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); background: transparent; color: var(--text); cursor: pointer; }
.topbar-burger svg { width: 20px; height: 20px; }
.topbar-titel { font-size: 19px; font-weight: 700; letter-spacing: 0; color: #fff; }
.topbar-rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; transform: translateY(4px); }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; object-fit: cover; }
.user-avatar.has-photo { border: 1px solid var(--border-2); background: var(--bg-3); }
.user-naam { font-size: 14px; font-weight: 600; color: var(--text); }
.admin-content { padding: 28px; max-width: none; width: 100%; }

/* ═══ FLASH / TOAST ═══ */
.toast-wrap { position: fixed; top: 82px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 600; border: 1px solid var(--border-2); background: var(--bg-3); box-shadow: 0 18px 40px rgba(0,0,0,.45); animation: toastIn .25s ease; }
.toast.is-ok { color: #7ee0a8; background: var(--green-bg); border-color: rgba(47,174,106,.3); }
.toast.is-fout { color: #f0a3a3; background: var(--brand-glow); border-color: rgba(165,28,28,.35); }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ═══ PAGE HEADER ═══ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .lead { color: var(--text-muted); margin-top: 4px; }
.page-head h2 { font-size: 22px; font-weight: 700; color: #fff; }

/* ═══ STAT CARDS ═══ */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { position: relative; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; transition: border-color .2s, transform .2s; }
.stat-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.stat-card .stat-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius); background: var(--brand-glow); border: 1px solid rgba(165,28,28,.2); color: var(--brand-light); margin-bottom: 16px; }
.stat-card .stat-ico svg { width: 20px; height: 20px; }
.stat-card .stat-num { font-size: 30px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: 0; }
.stat-card .stat-label { margin-top: 7px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.stat-card .stat-tag { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: var(--brand-light); background: var(--brand-glow); }

/* ═══ CARD ═══ */
.card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 15px; font-weight: 700; color: #fff; }
.card-body { padding: 22px; }
.card + .card { margin-top: 20px; }

/* ═══ TABLE ═══ */
.tabel-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
table.tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tabel thead th { text-align: left; padding: 13px 18px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); background: var(--bg-3); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.tabel tbody td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tabel tbody tr { transition: background .15s; }
table.tabel tbody tr:hover { background: rgba(255,255,255,.02); }
table.tabel tbody tr:last-child td { border-bottom: none; }
table.tabel .td-naam { font-weight: 600; color: #fff; }
table.tabel .td-sub { color: var(--text-dim); font-size: 13px; }
.rij-ident { display: flex; align-items: center; gap: 12px; }
.mini-avatar { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), #6e1313); object-fit: cover; }

/* ═══ BADGES ═══ */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-rood { color: #f0a3a3; background: var(--brand-glow); border: 1px solid rgba(165,28,28,.25); }
.badge-groen { color: #7ee0a8; background: var(--green-bg); border: 1px solid rgba(47,174,106,.25); }
.badge-blauw { color: #8fbce8; background: var(--blue-bg); border: 1px solid rgba(59,130,196,.25); }
.badge-grijs { color: var(--text-muted); background: rgba(255,255,255,.05); border: 1px solid var(--border); }
.tag-soft { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--brand-light); background: var(--brand-glow); border: 1px solid rgba(165,28,28,.18); }

/* ═══ BUTTONS ═══ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .18s ease; }
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-light); border-color: var(--brand-light); }
.btn-secondary { color: var(--text); background: transparent; border-color: var(--border-2); }
.btn-secondary:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.22); }
.btn-danger { color: #f0a3a3; background: transparent; border-color: rgba(165,28,28,.4); }
.btn-danger:hover { background: var(--brand-glow); color: #fff; border-color: var(--brand); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; transition: all .18s; }
.btn-icon svg { width: 16px; height: 16px; }
.btn-icon:hover { border-color: var(--border-2); color: var(--text); background: rgba(255,255,255,.04); }
.btn-icon.is-danger:hover { color: #f0a3a3; border-color: rgba(165,28,28,.4); background: var(--brand-glow); }
.actie-knoppen { display: inline-flex; gap: 6px; }

/* ═══ FORMS ═══ */
.form-rij { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.veld { display: grid; gap: 7px; margin-bottom: 18px; }
.veld.vol { grid-column: 1 / -1; }
.veld label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.veld label .ster { color: var(--brand-light); }
.veld input, .veld select, .veld textarea { width: 100%; min-height: 44px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); font-size: 14px; transition: border-color .18s, box-shadow .18s; }
.veld textarea { min-height: 120px; resize: vertical; }
.veld input::placeholder, .veld textarea::placeholder { color: var(--text-dim); }
.veld input:focus, .veld select:focus, .veld textarea:focus { outline: none; border-color: rgba(165,28,28,.5); box-shadow: 0 0 0 3px var(--brand-glow); }
.veld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239a9aa3'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.veld select option { background: #1a1a1e; }
.veld select.rte-blok { border-color: rgba(255,255,255,.07); background-color: #0a0a0c; color: #e7e7ea; }
.veld select.rte-blok option { background: #1a1a1e; color: #e7e7ea; }
.veld .hint { font-size: 12.5px; color: var(--text-dim); }
.name-split { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.name-split .veld { min-width: 0; margin-bottom: 0; }
.form-acties { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--border); }
.form-acties .rechts { margin-left: auto; display: flex; gap: 10px; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 46px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid var(--border); position: relative; transition: background .2s; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .track { background: var(--brand); border-color: var(--brand); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch .switch-tekst { font-size: 14px; font-weight: 600; }
.admin-select { position: relative; width: 100%; min-width: 0; }
.admin-select > select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.admin-select-trigger { width: 100%; min-height: 44px; padding: 11px 12px 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s; }
.admin-select-trigger:hover { border-color: var(--border-2); background: var(--bg-3); }
.admin-select.is-open .admin-select-trigger { border-color: rgba(165,28,28,.55); box-shadow: 0 0 0 3px var(--brand-glow); }
.admin-select-trigger svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-muted); transition: transform .18s, color .18s; }
.admin-select.is-open .admin-select-trigger svg { transform: rotate(180deg); color: var(--brand-light); }
.admin-select-list { position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 180; display: none; max-height: 230px; overflow-y: auto; padding: 6px; border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--bg-3); box-shadow: 0 18px 42px rgba(0,0,0,.42); }
.admin-select.is-open .admin-select-list { display: grid; gap: 2px; }
.admin-select-option { width: 100%; min-height: 34px; padding: 7px 10px; border: none; border-radius: 8px; background: transparent; color: var(--text-muted); text-align: left; cursor: pointer; }
.admin-select-option:hover { color: var(--text); background: rgba(255,255,255,.06); }
.admin-select-option.is-active { color: #fff; background: var(--brand); }
.admin-select.is-inline .admin-select-trigger { min-height: 36px; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.admin-select.is-inline .admin-select-list { top: calc(100% + 5px); bottom: auto; }

/* ═══ FOTO'S ═══ */
.foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.foto-item { position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.foto-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.foto-item .foto-acties { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.foto-item .foto-acties button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(10,10,12,.78); border: 1px solid var(--border-2); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.foto-item .foto-acties button svg { width: 15px; height: 15px; }
.foto-item .foto-acties button:hover { background: var(--brand); }
.foto-item .hoofd-badge { position: absolute; bottom: 8px; left: 8px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--brand); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; border: 1.5px dashed var(--border-2); border-radius: var(--radius); background: var(--bg); color: var(--text-muted); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.over { border-color: var(--brand-light); background: var(--brand-glow); color: var(--text); }
.dropzone svg { width: 26px; height: 26px; color: var(--brand-light); }
.dropzone input { display: none; }

/* ═══ DETAIL ═══ */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.detail-grid > * { min-width: 0; }
.detail-lijst { display: grid; gap: 0; }
.detail-rij { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.detail-rij:last-child { border-bottom: none; }
.detail-rij dt { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.detail-rij dd { font-size: 14px; color: var(--text); word-break: break-word; }
.detail-rij dd a { color: var(--brand-light); }
.bericht-blok { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); line-height: 1.7; }

/* ═══ EMPTY ═══ */
.empty { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.empty .empty-ico { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--border); color: var(--text-dim); }
.empty .empty-ico svg { width: 26px; height: 26px; }
.empty h3 { color: #fff; font-size: 17px; margin-bottom: 6px; }

/* ═══ FILTERS ═══ */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filters a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); border: 1px solid var(--border); background: var(--bg-2); cursor: pointer; transition: all .18s; }
.filters a:hover { color: var(--text); border-color: var(--border-2); }
.filters a.actief { color: #fff; background: var(--brand); border-color: var(--brand); }
.filters a .telb { min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1; text-align: center; background: rgba(255,255,255,.12); }

/* ═══ PAGINATIE ═══ */
.paginatie { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.paginatie a, .paginatie span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; }
.paginatie a:hover { border-color: var(--border-2); color: var(--text); }
.paginatie .actief { background: var(--brand); border-color: var(--brand); color: #fff; }

/* SETTINGS */
.settings-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); }
.settings-tabs a { height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 8px; color: var(--text-muted); font-weight: 600; transition: background .18s, color .18s; }
.settings-tabs a svg { width: 17px; height: 17px; }
.settings-tabs a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.settings-tabs a.actief { color: #fff; background: var(--brand); }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 20px; align-items: start; }
.settings-grid > .card + .card { margin-top: 0; }
.profile-photo-row { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.profile-photo-row .hint { margin-top: 8px; color: var(--text-dim); font-size: 12.5px; }
.profile-photo { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 24px; font-weight: 800; object-fit: cover; border: 1px solid var(--border-2); }
.profile-photo.has-photo { background: var(--bg-3); }
.soft-text { color: var(--text-muted); max-width: 560px; }
#twoFaSetup { max-width: 580px; padding: 16px; display: grid; gap: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); }
#twoFaSetup.hidden { display: none !important; }
.qr-wrap { width: 192px; padding: 12px; border: 1px solid rgba(255,255,255,.9); border-radius: 12px; background: #fff; box-shadow: 0 16px 38px rgba(0,0,0,.28); }
.qr-wrap img { width: 100%; height: auto; border-radius: 6px; image-rendering: pixelated; }
#twoFaSetup > .hint { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-muted); }
#twoFaSetup > .hint code { max-width: 100%; padding: 4px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .03em; word-break: break-all; }
#enable2fa { margin-top: 2px; display: grid; grid-template-columns: minmax(180px, 260px) auto; align-items: end; gap: 14px; }
#enable2fa .veld { margin-bottom: 0; }
#enable2faCode { text-align: center; font-weight: 700; letter-spacing: .18em; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border-2); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.swatch:hover { transform: translateY(-1px); border-color: var(--text-muted); }
.inline-input { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 13px; }
.inline-input:focus { outline: none; border-color: rgba(165,28,28,.5); box-shadow: 0 0 0 3px var(--brand-glow); }
.mini-avatar.has-photo { object-fit: cover; border: 1px solid var(--border-2); }
.employee-name-inputs { width: min(360px, 100%); display: grid; grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr); gap: 8px; }
.medewerkers-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 20px; align-items: start; }
.medewerkers-card,
.medewerker-activity-card { min-width: 0; }
.medewerkers-head { display: grid; grid-template-columns: 1fr; align-items: start; justify-content: stretch; gap: 14px; }
.medewerkers-tools { width: 100%; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(150px, 170px); align-items: center; gap: 14px; }
.table-search { width: 100%; height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text-muted); }
.table-search svg { width: 16px; height: 16px; flex-shrink: 0; }
.table-search input { width: 100%; height: 100%; border: none; outline: none; background: transparent; color: var(--text); font-size: 13px; }
.table-search input::placeholder { color: var(--text-dim); }
.table-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; width: 14px; height: 14px; cursor: pointer; background: var(--brand-light); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='black' d='M11.95 3.46 8.41 7l3.54 3.54-1.41 1.41L7 8.41l-3.54 3.54-1.41-1.41L5.59 7 2.05 3.46l1.41-1.41L7 5.59l3.54-3.54z'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }
.table-search:focus-within { border-color: rgba(165,28,28,.5); box-shadow: 0 0 0 3px var(--brand-glow); }
.rol-filter { width: 100%; min-height: 38px; }
.medewerkers-tools .admin-select { width: 100%; }
.medewerkers-tools .admin-select-trigger { min-height: 38px; padding: 8px 10px 8px 12px; border-radius: var(--radius); font-size: 13px; }
.medewerkers-scroll { overflow: visible; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
table.medewerkers-table { width: 100%; min-width: 1184px; }
table.medewerkers-table thead th,
table.medewerkers-table tbody td { vertical-align: middle; }
table.medewerkers-table thead th,
table.medewerkers-table tbody td { padding-left: 10px; padding-right: 10px; text-align: left; }
.medewerkers-table .med-col-name { width: 30%; }
.medewerkers-table .med-col-email { width: 18%; }
.medewerkers-table .med-col-role { width: 10%; }
.medewerkers-table .med-col-active { width: 8%; }
.medewerkers-table .med-col-password { width: 18%; }
.medewerkers-table .med-col-actions { width: 16%; }
.medewerkers-table tbody td > .inline-input,
.medewerkers-table tbody td > .admin-select,
.medewerkers-table .rij-ident,
.medewerkers-table .switch,
.medewerkers-table .actie-knoppen { margin-top: auto; margin-bottom: auto; }
.medewerkers-table tbody tr[data-medewerker] { cursor: pointer; }
.medewerkers-table tbody tr.is-selected { background: rgba(255,255,255,.035); }
.medewerkers-table th:nth-child(4),
.medewerkers-table td:nth-child(4),
.medewerkers-table th:last-child,
.medewerkers-table td:last-child { text-align: right; }
.medewerkers-table th:nth-child(4),
.medewerkers-table td:nth-child(4) { text-align: center; }
.medewerkers-table td:nth-child(4) .switch { justify-content: center; margin-left: auto; margin-right: auto; }
.medewerkers-table th:last-child,
.medewerkers-table td:last-child { padding-right: 26px; }
.medewerkers-table td:last-child .actie-knoppen { justify-content: flex-end; margin-left: auto; margin-right: 0; }
.medewerker-activity-card { position: sticky; top: 90px; overflow: hidden; }
.medewerker-activity-head { align-items: flex-start; }
.medewerker-activity-head .td-sub { margin-top: 2px; }
.medewerker-activity-body { min-height: 140px; }
.activity-empty { padding: 22px; color: var(--text-muted); }
.medewerker-log-list { display: grid; }
.medewerker-log-modal { max-width: 720px; }
.medewerker-log-modal-body { padding: 0; max-height: min(70vh, 620px); overflow-y: auto; }
.medewerker-log-row { display: grid; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.medewerker-log-row:last-child { border-bottom: none; }
.medewerker-log-action { color: #fff; font-size: 13.5px; font-weight: 700; }
.medewerker-log-detail { color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.medewerker-log-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text-dim); font-size: 12.5px; }
.table-empty-line { padding: 22px; text-align: center; color: var(--text-muted); }
.medewerkers-paginatie-wrap { padding: 18px 22px 22px; border-top: 1px solid var(--border); }
.medewerkers-paginatie { display: flex; align-items: center; justify-content: flex-start; gap: 6px; flex-wrap: wrap; }
.medewerker-page { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .18s; }
.medewerker-page:hover:not(:disabled):not(.is-active):not(.is-dots) { border-color: var(--border-2); background: var(--bg-3); transform: translateY(-1px); }
.medewerker-page.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }
.medewerker-page:disabled { opacity: .45; cursor: not-allowed; }
.medewerker-page.is-dots { cursor: default; background: transparent; border-color: transparent; color: var(--text-muted); }
@media (max-width: 1280px) {
  .medewerkers-layout { grid-template-columns: 1fr; }
  .medewerker-activity-card { position: static; }
}
@media (max-width: 760px) {
  .medewerkers-tools { grid-template-columns: 1fr; }
}

/* ═══ MERKLOGO IN ACCENTKLEUR ═══
   Het (eenkleurige) logo wordt als masker gebruikt en ingekleurd met
   var(--brand): kies je een andere accentkleur, dan kleurt het logo mee. */
.logo-brand {
  display: block; flex-shrink: 0;
  background: var(--brand);
  -webkit-mask: url('logo-fabula-bouw.png') center / contain no-repeat;
  mask: url('logo-fabula-bouw.png') center / contain no-repeat;
  transition: background .25s ease;
}
.sidebar-brand .logo-brand { width: 54px; height: 36px; }

/* ═══ LOGIN ═══ */
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: radial-gradient(800px 500px at 50% -10%, var(--brand-glow), transparent 70%), var(--bg); }
.login-card { width: 100%; max-width: 410px; padding: 38px 34px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-2); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.login-logo { display: flex; justify-content: center; margin-bottom: 22px; }
.login-logo img { height: 52px; width: auto; }
.login-logo .logo-brand { width: 100px; height: 58px; }

/* ═══ LAADSCHERM NA HET INLOGGEN ═══ */
.login-laden {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background: radial-gradient(760px 480px at 50% 32%, var(--brand-glow), transparent 72%), var(--bg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .45s ease, visibility .45s ease;
}
.login-laden.open { opacity: 1; visibility: visible; pointer-events: auto; }
.ll-inner { display: grid; justify-items: center; text-align: center; transform: translateY(-4vh); }
.ll-logo { width: 150px; height: 90px; }
@keyframes llPuls { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: .84; } }
.ll-naam { margin-top: 22px; font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.ll-tekst { margin-top: 7px; font-size: 13.5px; color: var(--text-muted); }
@keyframes llFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ll-balk { position: relative; width: 210px; height: 3px; margin-top: 26px; border-radius: 999px; background: rgba(255,255,255,.09); overflow: hidden; }
.ll-balk::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  border-radius: 999px; background: linear-gradient(90deg, transparent, var(--brand), var(--brand-light), transparent);
}
@keyframes llSchuif { to { left: 100%; } }
/* Animaties draaien alleen terwijl het laadscherm zichtbaar is (spaart CPU). */
.login-laden.open .ll-logo { animation: llPuls 1.8s ease-in-out infinite; }
.login-laden.open .ll-naam { animation: llFadeUp .6s ease both .15s; }
.login-laden.open .ll-tekst { animation: llFadeUp .6s ease both .3s; }
.login-laden.open .ll-balk::after { animation: llSchuif 1.15s ease-in-out infinite; }
.login-card h1 { text-align: center; font-size: 21px; font-weight: 700; color: #fff; }
.login-card .sub { text-align: center; color: var(--text-muted); margin: 6px 0 26px; font-size: 14px; }
.login-card .veld { margin-bottom: 16px; }
.login-card .btn { width: 100%; margin-top: 6px; }
.login-fout { display: flex; align-items: center; gap: 9px; padding: 12px 15px; margin-bottom: 20px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600; color: #f0a3a3; background: var(--brand-glow); border: 1px solid rgba(165,28,28,.3); }
.login-foot { text-align: center; margin-top: 22px; font-size: 13px; color: var(--text-dim); }

/* ═══ DIVERSEN ═══ */
.recent-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.recent-grid > .card { height: 100%; display: flex; flex-direction: column; }
.recent-grid > .card + .card { margin-top: 0; }
.link-meer { color: var(--brand-light); font-size: 13px; font-weight: 600; cursor: pointer; }
.link-meer:hover { color: #fff; }
.thumb-mini { width: 52px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--bg-3); border: 1px solid var(--border); }
.thumb-leeg { display: grid; place-items: center; color: var(--text-dim); }
.thumb-leeg svg { width: 16px; height: 16px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.laad-spinner { width: 30px; height: 30px; margin: 60px auto; border: 3px solid var(--border-2); border-top-color: var(--brand-light); border-radius: 50%; animation: draai .8s linear infinite; }
@keyframes draai { to { transform: rotate(360deg); } }
.mt20 { margin-top: 20px; } .mb0 { margin-bottom: 0; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1240px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1080px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .recent-grid { grid-template-columns: 1fr; } .detail-grid { grid-template-columns: 1fr; } .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .sidebar { transform: translateX(-100%); transition: transform .25s ease; } .sidebar.open { transform: translateX(0); } .admin-main { margin-left: 0; } .topbar-burger { display: inline-flex; } .sidebar-overlay.show { display: block; } }
@media (max-width: 620px) { .admin-content { padding: 18px; } .topbar { padding: 0 16px; } .form-rij { grid-template-columns: 1fr; } .name-split { grid-template-columns: 1fr; } .stat-grid { grid-template-columns: 1fr; } .user-naam { display: none; } .page-head { align-items: flex-start; } .settings-tabs a { flex: 1 1 calc(50% - 8px); justify-content: center; } .profile-photo-row { align-items: flex-start; flex-direction: column; } #enable2fa { grid-template-columns: 1fr; } .qr-wrap { width: 176px; } }

/* ═══ ROLLEN & RECHTEN (rechtenmatrix) ═══ */
.rr-card { padding: 0; overflow: hidden; }
.rr-tabel { min-width: 640px; }
.rr-tabel th, .rr-tabel td { vertical-align: middle; }
.rr-tabel thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.rr-tabel th.rr-rol { text-align: center; }
.rr-vast { display: block; margin-top: 2px; font-size: 10px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--brand-light); }
.rr-module { font-weight: 600; color: var(--text); border-right: 1px solid var(--border); white-space: nowrap; }
.rr-cap { color: var(--text-muted); white-space: nowrap; }
.rr-cap-beheren { color: var(--text); font-weight: 500; }
.rr-cel { text-align: center; }
.rr-check { position: relative; display: inline-flex; cursor: pointer; }
.rr-check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rr-box { width: 22px; height: 22px; display: inline-grid; place-items: center; border: 1.5px solid var(--border-2); border-radius: 6px; color: transparent; transition: background .15s, border-color .15s, color .15s; }
.rr-box svg { width: 14px; height: 14px; }
.rr-check input:checked + .rr-box { background: var(--brand); border-color: var(--brand); color: #fff; }
.rr-check input:disabled + .rr-box { background: var(--green-bg); border-color: rgba(47,174,106,.4); color: var(--green); cursor: not-allowed; }
.rr-check input:disabled { cursor: not-allowed; }
.rr-check input:focus-visible + .rr-box { outline: 2px solid var(--brand-light); outline-offset: 2px; }
.rr-acties { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--border); }
.rr-acties .hint { margin-right: auto; }
@media (max-width: 620px) { .rr-acties { flex-direction: column; align-items: stretch; } .rr-acties .hint { margin-right: 0; text-align: center; } }

/* ═══ WERKPLANNING ═══ */
.wp-balk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.wp-datumnav { display: flex; align-items: center; gap: 8px; }
.wp-datumnav .inline-input { width: auto; min-width: 150px; }
.wp-vandaag-tag { font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-bg); padding: 4px 10px; border-radius: 999px; }
.wp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--text-muted); background: var(--bg-3); border: 1px solid var(--border); padding: 5px 11px; border-radius: 999px; }
.wp-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.wp-dot.badge-groen { background: #2fae6a; } .wp-dot.badge-blauw { background: #3b82c4; }
.wp-dot.badge-rood { background: var(--brand-light); } .wp-dot.badge-grijs { background: var(--text-dim); }
.wp-werkelijk { font-variant-numeric: tabular-nums; }
.wp-klok { margin-top: 6px; }
.wp-status { width: auto; min-width: 130px; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-sm svg { width: 15px; height: 15px; }

/* ═══ KALENDER ═══ */
.kal-balk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.kal-nav { display: flex; align-items: center; gap: 10px; }
.kal-titel { font-size: 19px; font-weight: 700; min-width: 190px; text-align: center; text-transform: capitalize; }
.kal-legenda { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--text-muted); }
.kal-legenda span { display: inline-flex; align-items: center; gap: 7px; }
.kal-leg { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.kal-leg-feest { background: var(--brand); } .kal-leg-afspraak { background: #3b82c4; } .kal-leg-plan { background: #2fae6a; }
.kal-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.kal-card { padding: 0; overflow: hidden; }
.kal-weekdagen { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--border); }
.kal-weekdagen > div { padding: 11px 8px; text-align: center; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.kal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.kal-cel { min-height: 104px; padding: 7px 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.kal-cel:nth-child(7n) { border-right: none; }
.kal-leeg { background: rgba(255,255,255,.012); }
.kal-weekend { background: rgba(255,255,255,.02); }
.kal-isfeest { background: var(--brand-glow); }
.kal-dagnr { font-size: 13px; font-weight: 600; color: var(--text-muted); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.kal-vandaag .kal-dagnr { background: var(--brand); color: #fff; }
.kal-item { display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 1.3; padding: 2px 6px; border-radius: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kal-item svg { width: 11px; height: 11px; flex-shrink: 0; }
.kal-feest { background: var(--brand); color: #fff; font-weight: 600; }
.kal-afspraak { background: var(--blue-bg); color: #8fbce8; }
.kal-plan { background: var(--green-bg); color: #7ee0a8; font-weight: 600; align-self: flex-start; }
.kal-meer { font-size: 10.5px; color: var(--text-dim); padding-left: 6px; }
.kal-zij { padding: 0; }
.kal-feestlijst { list-style: none; margin: 0; padding: 8px 0; }
.kal-feestlijst li { display: flex; gap: 12px; padding: 9px 18px; font-size: 13px; border-bottom: 1px solid var(--border); }
.kal-feestlijst li:last-child { border-bottom: none; }
.kal-feest-datum { color: var(--text-dim); min-width: 78px; font-variant-numeric: tabular-nums; }
@media (max-width: 1080px) { .kal-layout { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .wp-balk, .kal-balk { flex-direction: column; align-items: stretch; }
  .kal-cel { min-height: 78px; padding: 5px; }
  .kal-item { font-size: 10px; }
  .kal-titel { min-width: 0; flex: 1; }
}
.wp-locatie { display: flex; align-items: center; gap: 5px; }
.wp-locatie svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--text-dim); }
.kal-feestlijst li.is-deze-maand { background: var(--brand-glow); }
.kal-feestlijst li.is-deze-maand span:last-child { color: var(--text); font-weight: 600; }
.wp-tijden { display: flex; align-items: center; gap: 6px; }
.wp-tijd { width: 96px; min-width: 96px; font-variant-numeric: tabular-nums; }
.wp-streep { color: var(--text-dim); }
.wp-nu { flex-shrink: 0; }

/* ── DIENSTEN (startpagina-servicekaarten) ────────────────── */
.lead { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.dienst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: stretch; }
.dienst-grid > .card + .card { margin-top: 0; }
.dienst-kaart { display: flex; flex-direction: column; height: 100%; padding: 22px; }
.dienst-kaart.is-verborgen { opacity: .62; }
.dienst-kaart-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dienst-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius); background: var(--brand-glow); border: 1px solid rgba(165,28,28,.2); color: var(--brand-light); margin: 0; }
.dienst-icon svg { width: 22px; height: 22px; }
.dienst-kaart h3 { font-size: 16px; font-weight: 650; color: var(--text); }
.dienst-kaart p { margin-top: 8px; color: var(--text-muted); font-size: 13.5px; line-height: 1.6; }
.dienst-acties { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.dienst-acties-rechts { display: inline-flex; gap: 6px; }

/* Icoonkiezer in het diensten-formulier */
.dienst-icoonkiezer { display: flex; flex-wrap: wrap; gap: 8px; }
.dienst-icoonknop { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text-muted); cursor: pointer; transition: border-color .18s, color .18s, background .18s; }
.dienst-icoonknop svg { width: 22px; height: 22px; }
.dienst-icoonknop:hover { color: var(--text); border-color: var(--border-2); }
.dienst-icoonknop.is-active { color: var(--brand-light); border-color: var(--brand); background: var(--brand-glow); }

/* ── Startpagina-afbeeldingen (instellingen) ──────────────── */
.site-afb-preview { display: grid; place-items: center; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.site-afb-preview img { max-width: 100%; max-height: 220px; height: auto; border-radius: 8px; }
.site-afb-waarom { min-height: 180px; }
.site-afb-leeg { color: var(--text-dim); font-size: 13px; text-align: center; padding: 40px 12px; }
.site-afb-acties { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.site-afb-hint { margin-top: 14px; }

/* ── WEBVERKEER & BEVEILIGING ──────────────────────────────── */
.vk-stats { grid-template-columns: repeat(4, 1fr); }
.vk-stats .stat-card.vk-alarm { border-color: rgba(165,28,28,.55); }
.vk-stats .stat-card.vk-alarm .stat-num { color: var(--brand-light); }
.vk-grafiek-card { margin-bottom: 20px; }
.vk-grafiek-card .card-head .hint { display: inline-flex; align-items: center; gap: 6px; }
.vk-legenda-blok { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: #e0554f; }
.vk-grafiek { display: flex; align-items: flex-end; gap: 2px; height: 150px; }
.vk-balk { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.vk-balk-vul { width: 100%; background: var(--brand); border-radius: 2px 2px 0 0; transition: height .3s ease; }
.vk-balk-blok { position: absolute; left: 0; bottom: 0; width: 100%; background: #e0554f; border-radius: 2px 2px 0 0; }
.vk-balk:hover .vk-balk-vul { background: var(--brand-light); }
.vk-tabellen { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.vk-tabellen > .card { margin-top: 0; }
.vk-beheer { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.vk-beheer-card { width: 100%; }
.vk-pad { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vk-blok-rij { display: flex; gap: 10px; }
.vk-blok-rij input { flex: 1; min-width: 0; }
@media (max-width: 1100px) { .vk-stats { grid-template-columns: repeat(2, 1fr); } .vk-tabellen { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .vk-blok-rij { flex-direction: column; } .vk-blok-rij .btn { width: 100%; } }

/* Pijltjes (spinners) op alle nummervelden verbergen */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* Nette dunne scrollbalk in openklappende lijsten (geen wit blokje) */
.admin-select-list { scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
.admin-select-list::-webkit-scrollbar { width: 8px; }
.admin-select-list::-webkit-scrollbar-track { background: transparent; }
.admin-select-list::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
.admin-select-list::-webkit-scrollbar-corner { background: transparent; }

/* RTE must stay dark, including the native block-style select. */
.rte select.rte-blok,
.veld .rte select.rte-blok {
  min-height: 30px;
  height: 30px;
  border-color: rgba(255,255,255,.07) !important;
  background-color: #0a0a0c !important;
  color: #e7e7ea !important;
  color-scheme: dark;
}
.rte select.rte-blok option {
  background: #1a1a1e !important;
  color: #e7e7ea !important;
}

/* ── Klantformulier (modal): btw-rij, secties, statusregel ── */
.btw-rij { display: flex; gap: 8px; }
.btw-rij .admin-select, .btw-rij select.btw-land { width: 96px; flex: none; }
.btw-rij input { flex: 1; min-width: 0; }
.form-sectie { margin: 22px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.btw-status { display: block; margin-top: 6px; }
.btw-status.bezig { color: var(--text-muted); }
.btw-status.ok { color: #3f9d63; }
.btw-status.fout { color: #d84b4b; }
