/* =====================================================================
   Vandeputte · Réclamations & CAPA — huisstijl
   Kleuren via variabelen; wijzig --accent om te herbranden.
   ===================================================================== */
:root {
  --bg: #f3f4f6; --card: #ffffff; --line: #e5e7eb; --line-2: #d1d5db;
  --text: #1c2431; --muted: #6b7280; --muted-2: #9ca3af;
  --accent: #52a035; --accent-2: #448a2b; --accent-soft: #e6f3df; --accent-deep: #2f6b1c;
  --sidebar: #ffffff; --sidebar-2: #eef6ea; --sidebar-text: #3b4a36; --sidebar-line: #e3ebdf;
  --blue: #2563eb; --blue-soft: #dbeafe; --amber: #b45309; --amber-soft: #fef3c7;
  --orange: #c2410c; --orange-soft: #ffedd5; --purple: #6d28d9; --purple-soft: #ede9fe;
  --green: #3a7d24; --green-soft: #e6f3df; --red: #b91c1c; --red-soft: #fee2e2;
  --grey: #4b5563; --grey-soft: #f3f4f6;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --sidebar-w: 240px;
}
* { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }

/* ---------- Schermgrootte per persoon ----------
   data-ui op <html> zet de factor --ui; zoom vergroot daarmee het hele scherm in één keer:
   tekst, knoppen, tabellen en beelden samen, net zoals de zoom van de browser zelf.
   Schermmaten rekenen in --uvh/--uvw, want vh en vw groeien anders mee en lopen uit beeld.
   Op papier telt de keuze niet mee: een afdruk blijft een afdruk. */
html { --ui: 1; --uvh: calc(1vh / var(--ui)); --uvw: calc(1vw / var(--ui)); zoom: var(--ui); }
html[data-ui="115"] { --ui: 1.15; }
html[data-ui="130"] { --ui: 1.3; }
html[data-ui="150"] { --ui: 1.5; }
html[data-ui="175"] { --ui: 1.75; }
/* Een lange dossiertitel mag de balk niet opeten als het scherm groter staat */
html[data-ui] .page-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media print { html, html[data-ui] { --ui: 1; } }
body { margin: 0; background-image: linear-gradient(180deg, #eef5ea 0, var(--bg) 220px); background-repeat: no-repeat; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.45; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.nowrap { white-space: nowrap; } .right { text-align: right; } .hidden { display: none !important; }
[hidden] { display: none !important; }   /* knoppen en blokken met hidden ook echt verbergen */
.mt { margin-top: 1rem; } .mb { margin-bottom: 1rem; } .mb-0 { margin-bottom: 0; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: calc(100 * var(--uvh)); }
.sidebar { width: var(--sidebar-w); background: var(--sidebar); color: var(--sidebar-text); display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 30; border-right: 1px solid var(--sidebar-line); }
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.5rem; background: var(--card); border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 10; }
.page-title { font-size: 1.25rem; margin: 0; flex: 1; }
.topbar-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.topbar-search input { width: 260px; padding: .45rem .8rem .45rem 2rem; border: 1px solid var(--line-2); border-radius: 99px; font: inherit; font-size: .88rem; background: var(--grey-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='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") .7rem center / 15px no-repeat; }
.topbar-search input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); background-color: #fff; }
@media (max-width: 1000px) { .topbar-search input { width: 160px; } } @media (max-width: 600px) { .topbar-search { display: none; } }
details > summary { list-style: none; cursor: pointer; display: inline-flex; } details > summary::-webkit-details-marker { display: none; }
.content { padding: 1.5rem; max-width: 1400px; width: 100%; }
.burger { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }
.nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 25; }

.brand { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem .9rem; border-bottom: 1px solid var(--sidebar-line); }
.brand img { width: 196px; height: auto; display: block; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--text); font-size: 1rem; } .brand-text small { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; line-height: 1.3; }
.nav { padding: .6rem; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.sidebar-foot { flex: none; }
.nav a { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: 7px; color: var(--sidebar-text); font-size: .93rem; margin-bottom: 2px; }
.nav a:hover { background: var(--sidebar-2); text-decoration: none; color: var(--accent-deep); }
.nav a.active { background: var(--accent); color: #fff; }
.nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); padding: 1rem .7rem .35rem; }
.nav-badge { margin-left: auto; background: var(--red); color: #fff; font-size: .7rem; padding: .05rem .45rem; border-radius: 99px; font-weight: 600; }
.sidebar-foot { padding: .75rem; border-top: 1px solid var(--sidebar-line); display: flex; flex-direction: column; gap: .6rem; }
.me { display: flex; align-items: center; gap: .6rem; color: var(--sidebar-text); min-width: 0; }
.me:hover { text-decoration: none; color: var(--accent-deep); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff; flex: none; }
.me-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.me-text strong { font-size: .85rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text small { font-size: .7rem; color: var(--muted); }
.lang-switch { display: flex; gap: 2px; }
.lang-switch button { background: none; border: 1px solid var(--line-2); color: var(--muted); font-size: .7rem; padding: .2rem .35rem; border-radius: 4px; cursor: pointer; }
.lang-switch button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.lang-center { justify-content: center; margin-top: 1.5rem; }
.lang-center button { color: var(--muted); border-color: var(--line-2); padding: .3rem .6rem; }
.logout { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .5rem .75rem; border: 1px solid var(--sidebar-line); border-radius: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); background: #fff; } .logout:hover { color: var(--red); border-color: var(--red); text-decoration: none; }

/* ---------- Icons (inline SVG masks) ---------- */
.ic { width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ic-home   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8v9a2 2 0 01-2 2h-4v-7H9v7H5a2 2 0 01-2-2z'/%3E%3C/svg%3E"); }
.ic-check  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E"); }
.ic-folder { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2z'/%3E%3C/svg%3E"); }
.ic-list   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); }
.ic-shield { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.ic-chart  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E"); }
.ic-users  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2 20c0-3.5 3-6 7-6s7 2.5 7 6M16 4.5a3.5 3.5 0 010 7M22 20c0-3-2-5-5-5.6'/%3E%3C/svg%3E"); }
.ic-user   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.5-7 8-7s8 3 8 7'/%3E%3C/svg%3E"); }
.ic-tags   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l9 9-8 8z'/%3E%3Ccircle cx='7.5' cy='8.5' r='1.2' fill='black'/%3E%3C/svg%3E"); }
.ic-cog    { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 00.3 1.8l.1.1a2 2 0 01-2.8 2.8l-.1-.1a1.7 1.7 0 00-1.8-.3 1.7 1.7 0 00-1 1.5V21a2 2 0 01-4 0v-.1a1.7 1.7 0 00-1.1-1.5 1.7 1.7 0 00-1.8.3l-.1.1a2 2 0 01-2.8-2.8l.1-.1a1.7 1.7 0 00.3-1.8 1.7 1.7 0 00-1.5-1H3a2 2 0 010-4h.1a1.7 1.7 0 001.5-1.1 1.7 1.7 0 00-.3-1.8l-.1-.1a2 2 0 012.8-2.8l.1.1a1.7 1.7 0 001.8.3H9a1.7 1.7 0 001-1.5V3a2 2 0 014 0v.1a1.7 1.7 0 001 1.5 1.7 1.7 0 001.8-.3l.1-.1a2 2 0 012.8 2.8l-.1.1a1.7 1.7 0 00-.3 1.8V9a1.7 1.7 0 001.5 1H21a2 2 0 010 4h-.1a1.7 1.7 0 00-1.5 1z'/%3E%3C/svg%3E"); }
.ic-scale  { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M4 21h16M3 7l9-2 9 2M6 7l-3 7a3 3 0 006 0zM18 7l-3 7a3 3 0 006 0z'/%3E%3C/svg%3E"); }
.ic-box    { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 2l9 5v10l-9 5-9-5V7z'/%3E%3Cpath d='M3 7l9 5 9-5M12 12v10'/%3E%3C/svg%3E"); }
.ic-download { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M6 11l6 6 6-6M4 21h16'/%3E%3C/svg%3E"); }
.ic-upload { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17V5M6 9l6-6 6 6M4 21h16'/%3E%3C/svg%3E"); }
.ic-info   { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 7.5v.01'/%3E%3C/svg%3E"); }
.ic-warning { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v5M12 18h.01'/%3E%3C/svg%3E"); }
.ic-mail { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.ic-red { color: var(--red); } .ic-green { color: var(--green); } .ic-muted { color: var(--muted); }
.btn .ic, .badge .ic, td .ic, th .ic, .ok .ic { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; } .badge .ic { width: 13px; height: 13px; vertical-align: -2px; }
.ic-file { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 002-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E"); }
.ic-spark { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z'/%3E%3Cpath d='M19 16l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7zM5 2l.5 1.5L7 4l-1.5.5L5 6l-.5-1.5L3 4l1.5-.5z'/%3E%3C/svg%3E"); }
.ic-refresh { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.7'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E"); }
.ic-paperclip { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5l-8.5 8.5a5.5 5.5 0 0 1-7.8-7.8l9-9a3.5 3.5 0 0 1 5 5l-9 9a1.5 1.5 0 0 1-2.1-2.1l8.3-8.3'/%3E%3C/svg%3E"); }
.ic-send { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l16-8-6 16-2-6z'/%3E%3C/svg%3E"); }
.ic-learn { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4L2 8.5l10 4.5 10-4.5z'/%3E%3Cpath d='M6 11v5c0 1.2 2.7 2.5 6 2.5s6-1.3 6-2.5v-5M20 9.5V15'/%3E%3C/svg%3E"); }
.ic-lock { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E"); }
.ic-sound { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5h3l4.5-3.5v12L7 14.5H4z'/%3E%3Cpath d='M16 9a4 4 0 0 1 0 6M18.5 6.5a7.5 7.5 0 0 1 0 11'/%3E%3C/svg%3E"); }
.ic-arrow-right { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.ic-arrow-left { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H6M11 6l-6 6 6 6'/%3E%3C/svg%3E"); }
.ic-calendar { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ic-chat { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 21l1.9-5.4A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.ic-hash { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h16M4 15h16M10 3L8 21M16 3l-2 18'/%3E%3C/svg%3E"); }
.ic-clipboard { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M8.5 12l2 2 4-4M8.5 17h7'/%3E%3C/svg%3E"); }
.ic-camera { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E"); }
.ic-out    { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }

/* ---------- Cards, grid ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card.empty, .empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); } .empty .btn { margin-top: .5rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); display: block; color: inherit; }
.kpi:hover { text-decoration: none; border-color: var(--accent); }
.kpi .kpi-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kpi .kpi-value { font-size: 1.8rem; font-weight: 700; line-height: 1.2; margin-top: .2rem; color: var(--accent-deep); }
.kpi .kpi-sub { font-size: .8rem; color: var(--muted); }
.kpi.warn .kpi-value { color: var(--red); } .kpi.good .kpi-value { color: var(--green); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { padding: .55rem .7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--grey-soft); white-space: nowrap; }
.tbl tbody tr:hover { background: #f9fafb; }
.tbl tr.row-link { cursor: pointer; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .actions-col { white-space: nowrap; text-align: right; }
.tbl tfoot td { font-weight: 600; background: var(--grey-soft); }
.tbl-compact th, .tbl-compact td { padding: .35rem .5rem; }
.overdue-row td:first-child { box-shadow: inset 3px 0 0 var(--red); }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: .12rem .55rem; border-radius: 99px; font-size: .74rem; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.badge-blue { background: var(--blue-soft); color: var(--blue); } .badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-orange { background: var(--orange-soft); color: var(--orange); } .badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-green { background: var(--green-soft); color: var(--green); } .badge-red { background: var(--red-soft); color: var(--red); }
.badge-grey { background: var(--grey-soft); color: var(--grey); } .badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-type { font-family: ui-monospace, Menlo, monospace; font-weight: 700; }
.badge-RC { background: var(--blue-soft); color: var(--blue); } .badge-NC { background: var(--amber-soft); color: var(--amber); } .badge-GC { background: var(--red-soft); color: var(--red); }
.due { font-variant-numeric: tabular-nums; } .due-late { color: var(--red); font-weight: 600; } .due-soon { color: var(--amber); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 7px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font-size: .9rem; font-weight: 500; cursor: pointer; line-height: 1.2; white-space: nowrap; }
.btn:hover { background: var(--grey-soft); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; } .btn-primary:hover { background: var(--accent-2); }
.btn-danger { color: var(--red); border-color: #fca5a5; } .btn-danger:hover { background: var(--red-soft); }
.btn-sm { padding: .3rem .6rem; font-size: .8rem; } .btn-block { width: 100%; justify-content: center; }
.btn-link { border: 0; background: none; color: var(--accent); padding: .2rem .3rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-group { display: inline-flex; gap: .4rem; flex-wrap: wrap; }

/* ---------- Forms ---------- */
form label, .lbl { display: block; font-size: .82rem; font-weight: 600; color: var(--grey); margin-bottom: .9rem; }
label > input, label > select, label > textarea, .input { display: block; width: 100%; margin-top: .3rem; padding: .5rem .65rem; border: 1px solid var(--line-2); border-radius: 7px; font: inherit; font-weight: 400; color: var(--text); background: #fff; }
label > input:focus, label > select:focus, label > textarea:focus, .input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; display: inline; margin: 0 .4rem 0 0; }
label.check { display: flex; align-items: center; gap: .4rem; font-weight: 500; cursor: pointer; }
label.check input { margin-top: 0; }

/* ---------- Schakelaar die meteen bewaart ----------
   Een schuifje in plaats van een vinkje, want hij wacht niet op de knop Opslaan. De bevestiging
   verschijnt ernaast en verdwijnt weer; een weigering blijft staan tot men het opnieuw probeert. */
.swi-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .2rem 0; }
.swi { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-weight: 500; }
.swi input { position: absolute; opacity: 0; width: 0; height: 0; }
.swi-track { position: relative; flex: none; width: 2.3rem; height: 1.3rem; border-radius: 99px; background: var(--line-2); transition: background .15s; }
.swi-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: calc(1.3rem - 4px); height: calc(1.3rem - 4px);
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.25); transition: transform .15s; }
.swi input:checked + .swi-track { background: var(--accent); }
.swi input:checked + .swi-track::after { transform: translateX(1rem); }
.swi input:focus-visible + .swi-track { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.swi.busy { pointer-events: none; opacity: .6; }
.swi-note { font-size: .82rem; color: var(--green); }
.swi-note.bad { color: var(--red); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-all { grid-column: 1 / -1; }
.form-actions { display: flex; gap: .6rem; align-items: center; margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.form-actions .spacer { flex: 1; }
.hint { font-size: .78rem; color: var(--muted); font-weight: 400; margin-top: .25rem; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .4rem; max-height: 320px; overflow: auto; padding: .2rem; border: 1px solid var(--line); border-radius: 10px; }
.pick { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border-radius: 8px; cursor: pointer; font-size: .9rem; }
.pick:hover { background: var(--grey-soft); } .pick.match { background: var(--green-soft); }
.pick span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pick small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick input { accent-color: var(--accent); flex: none; }
.open-answer { margin: .7rem 0 0 36px; padding: .6rem .8rem; background: var(--grey-soft); border-left: 3px solid var(--line-2); border-radius: 0 8px 8px 0; font-size: .92rem; }
.inline-points { display: flex; align-items: center; gap: .5rem; margin: .7rem 0 0 36px; font-size: .88rem; }
.inline-points input { width: 90px; margin: 0; }
.pick-line { display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 .5rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.pick-line:has(input:checked) { border-color: var(--accent); background: var(--green-soft); }
.pick-line input { margin-top: .2rem; accent-color: var(--accent); flex: none; }
.pick-line span { display: flex; flex-direction: column; line-height: 1.35; }
.pick-line small { color: var(--muted); font-size: .8rem; }
.sub-h { margin: 1.4rem 0 .5rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.req::after { content: " *"; color: var(--red); }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filters label { margin: 0; min-width: 120px; } .filters label > select, .filters label > input { margin-top: .2rem; padding: .4rem .55rem; font-size: .88rem; }
.filters .btn { align-self: flex-end; padding: .4rem .9rem; font-size: .88rem; }
.filters label.grow { flex: 1 1 240px; min-width: 200px; } .filters label { font-size: .78rem; color: var(--muted); font-weight: 600; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem 0; margin: 0 0 1.25rem; }
legend { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); padding: 0 .4rem; }
.progress { height: 8px; background: var(--grey-soft); border-radius: 99px; overflow: hidden; min-width: 60px; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.progress-wrap { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--accent); }

/* ---------- Pills (meervoudige keuze) ---------- */
.pills { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .35rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border: 1px solid var(--line-2); border-radius: 99px; font-size: .85rem; font-weight: 500; cursor: pointer; background: #fff; margin: 0; }
.pill input { margin: 0; accent-color: var(--accent); } .pill.on, .pill:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }

/* ---------- Rolkaarten + rechtenmatrix ---------- */
.role-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.role-card { display: grid; grid-template-columns: auto 1fr; gap: 0 .55rem; align-items: start; border: 2px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; cursor: pointer; margin: 0; font-weight: 400; background: #fff; }
.role-card:hover { border-color: var(--line-2); } .role-card.on, .role-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
/* Het bolletje blijft zichtbaar: het kader alleen laat te veel ruimte voor twijfel over wat gekozen is. */
.role-card input { grid-column: 1; grid-row: 1; width: 1.05rem; height: 1.05rem; margin: .15rem 0 0; accent-color: var(--accent); }
.role-card strong { grid-column: 2; display: block; font-size: 1rem; color: var(--text); margin-bottom: .2rem; }
.role-card .role-desc { grid-column: 2; display: block; font-size: .82rem; color: var(--muted); margin-bottom: .5rem; }
.role-card ul { grid-column: 2; margin: 0; padding-left: 1.1rem; font-size: .82rem; color: var(--grey); display: grid; gap: .2rem; }
.roles-matrix .ok { color: var(--green); font-weight: 700; } .roles-matrix .no { color: var(--muted-2); } .roles-matrix td.center, .roles-matrix th.center { text-align: center; }
@media (max-width: 860px) { .role-cards { grid-template-columns: 1fr; } }

/* ---------- Meldingen, vermeldingen ---------- */
.bell { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); }
.bell:hover { background: var(--grey-soft); text-decoration: none; color: var(--text); } .bell.has { color: var(--accent-deep); }
.bell-count { position: absolute; top: 2px; right: 0; background: var(--red); color: #fff; font-size: .65rem; font-weight: 700; padding: 0 .35rem; border-radius: 99px; line-height: 1.5; }
.ic-bell { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 00-12 0c0 7-3 9-3 9h18s-3-2-3-9M13.7 21a2 2 0 01-3.4 0'/%3E%3C/svg%3E"); }
.notif-card { padding: 0; overflow: hidden; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-day { padding: .7rem 1.1rem .35rem; font-size: .72rem; font-weight: 600; color: var(--muted); background: #fbfcfa; border-bottom: 1px solid var(--line); }
.notif-list li + li:not(.notif-day) a { border-top: 1px solid var(--line); }
.notif-list a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .9rem; padding: .85rem 1.1rem; color: inherit; border-left: 3px solid transparent; }
.notif-list a:hover { background: #fafbf9; text-decoration: none; }
.notif-list li.unread a { border-left-color: var(--accent); background: linear-gradient(90deg, var(--green-soft), #fff 60%); }
.notif-av { position: relative; width: 40px; height: 40px; } .notif-av .avatar { width: 40px; height: 40px; font-size: .78rem; }
.avatar-sys { background: var(--grey-soft) !important; color: var(--muted) !important; } .avatar-sys .ic { width: 18px; height: 18px; }
.notif-ic { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; }
.notif-ic .ic { width: 11px; height: 11px; }
.tone-accent { background: var(--accent); color: #fff; } .tone-purple { background: #7c3aed; color: #fff; } .tone-blue { background: #2563eb; color: #fff; } .tone-grey { background: var(--grey); color: #fff; }
.notif-main { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.notif-head { display: flex; align-items: baseline; gap: .8rem; } .notif-head strong { font-size: .95rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-head time { margin-left: auto; flex: none; font-size: .75rem; color: var(--muted-2); }
.notif-body { font-size: .88rem; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-foot { font-size: .75rem; color: var(--muted-2); }
.seg-filter { margin-bottom: 1rem; } .seg-filter label { padding: 0; } .seg-filter a { display: block; padding: .42rem .9rem; color: inherit; } .seg-filter a:hover { text-decoration: none; }
.seg-filter label.on { background: var(--green); } .seg-filter label.on a, .seg-filter label.on .muted { color: #fff; } .seg-filter .muted { opacity: .75; }
.state { text-align: center; padding: 2.5rem 1rem; } .state-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 1rem; } .state-ic .ic { width: 28px; height: 28px; }
.state h3 { margin: 0 0 .3rem; } .state p { color: var(--muted); margin: 0; }
@media (max-width: 600px) { .notif-head { flex-wrap: wrap; } .notif-head time { margin-left: 0; } }

.mention { color: var(--accent-deep); background: var(--accent-soft); border-radius: 4px; padding: 0 .3rem; font-weight: 600; }
.mention-box { position: absolute; z-index: 40; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 6px 20px rgba(16,24,40,.12); max-height: 220px; overflow: auto; min-width: 240px; }
.mention-box div { padding: .45rem .7rem; cursor: pointer; font-size: .88rem; } .mention-box div.on, .mention-box div:hover { background: var(--accent-soft); } .mention-box b { font-family: ui-monospace, Menlo, monospace; margin-right: .5rem; }
.followers { display: flex; flex-wrap: wrap; gap: .4rem; } .follower { display: inline-flex; align-items: center; gap: .4rem; background: var(--grey-soft); border-radius: 99px; padding: .2rem .6rem .2rem .3rem; font-size: .85rem; }
.follower .avatar { width: 22px; height: 22px; font-size: .6rem; } .follower form { display: inline; } .follower button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 .1rem; } .follower button:hover { color: var(--red); }

/* ---------- Beveiliging: sterktemeter, QR, codes ---------- */
.pw-check { margin: -.3rem 0 .9rem; }
.pw-rules { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .25rem; }
.pw-rules li { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.pw-rules li i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; }
.pw-rules li.ok { color: var(--green); } .pw-rules li.ok i { background: var(--green); border-color: var(--green); }
.pw-rules li.ok i::after { content: ''; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pw-rules li.bad { color: var(--red); } .pw-rules li.bad i { border-color: var(--red); }
.pw-rules li.bad i::after { content: ''; position: absolute; left: 6.5px; top: 3px; width: 2px; height: 8px; background: var(--red); box-shadow: none; transform: rotate(45deg); }
.pw-rules li.bad i::before { content: ''; position: absolute; left: 6.5px; top: 3px; width: 2px; height: 8px; background: var(--red); transform: rotate(-45deg); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: -.4rem 0 .5rem; } .pw-meter span { height: 5px; border-radius: 3px; background: var(--line); }
.pw-meter.s1 span:nth-child(-n+1) { background: var(--red); } .pw-meter.s2 span:nth-child(-n+2) { background: var(--amber); } .pw-meter.s3 span:nth-child(-n+3) { background: var(--accent); } .pw-meter.s4 span { background: var(--green); }
.code-input { font-family: ui-monospace, Menlo, monospace; font-size: 1.3rem; letter-spacing: .15em; text-align: center; }
.qr { margin: .6rem 0; } .qr svg, .qr img, .qr canvas { width: 180px; height: 180px; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; box-sizing: border-box; }
.secret { display: inline-block; font-size: .95rem; letter-spacing: .05em; background: var(--grey-soft); padding: .2rem .5rem; border-radius: 4px; overflow-wrap: anywhere; }
.steps { padding-left: 1.3rem; display: grid; gap: .8rem; } .steps li::marker { color: var(--accent); font-weight: 700; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; } .codes code { font-size: 1rem; background: var(--grey-soft); padding: .4rem .6rem; border-radius: 6px; text-align: center; letter-spacing: .08em; }
@media print { .codes code { border: 1px solid #999; } }

/* ---------- Bijlagen: omschrijving, tags ---------- */
.upload-meta { display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; margin-top: .6rem; align-items: center; } .upload-meta .input { margin: 0; padding: .45rem .6rem; font-size: .88rem; }
.tags { display: inline-flex; gap: .3rem; flex-wrap: wrap; margin-left: .4rem; vertical-align: middle; } .tag { display: inline-block; background: var(--accent-soft); color: var(--accent-deep); border-radius: 99px; padding: 0 .5rem; font-size: .72rem; font-weight: 600; line-height: 1.6; } a.tag:hover { background: var(--accent); color: #fff; text-decoration: none; }
.files { display: grid; gap: .35rem; margin-bottom: .5rem; }
.file-row { display: grid; grid-template-columns: 40px 1fr auto; gap: .8rem; align-items: center; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.file-row:hover { border-color: var(--line-2); }
.file-thumb { width: 40px; height: 40px; border-radius: 6px; background: var(--grey-soft); display: grid; place-items: center; overflow: hidden; flex: none; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; } .file-ext { font-size: .7rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.file-body { min-width: 0; } .file-title { font-weight: 600; word-break: break-word; } .file-title a { color: var(--text); } .file-title a:hover { color: var(--accent-deep); }
.file-meta-line { margin-top: .15rem; word-break: break-word; }
.file-actions { display: flex; gap: .25rem; align-items: center; } .file-actions .btn { padding: .3rem .45rem; border-color: transparent; background: none; } .file-actions .btn:hover { background: var(--grey-soft); border-color: var(--line-2); } .file-actions form { display: inline; }
.file-meta { display: grid; grid-template-columns: 1fr 1fr auto; gap: .6rem; align-items: end; margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--line); }
.file-meta label { margin: 0; } .file-meta label > input { margin-top: .25rem; padding: .4rem .6rem; font-size: .88rem; } .file-meta .btn-group { padding-bottom: .1rem; }
.ic-edit { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 013 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E"); }
.ic-trash { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14M10 11v6M14 11v6'/%3E%3C/svg%3E"); }
@media (max-width: 700px) { .upload-meta, .file-meta { grid-template-columns: 1fr; } .file-row { grid-template-columns: 44px 1fr; } .file-actions { grid-column: 2; } }

/* ---------- Drive (mappen) ---------- */
.crumbs { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; font-size: .95rem; } .crumbs a { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-weight: 500; } .crumbs a.on { color: var(--text); font-weight: 700; } .crumbs .sep { color: var(--muted-2); }
.drive-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: .9rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.drive-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.drive-panel { background: var(--grey-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; display: grid; gap: .6rem; }
.drive-panel label { margin: 0; max-width: 420px; } .drive-panel .hint { margin: 0; } .drive-panel .dropzone { background: #fff; }
.drive-section { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: .25rem 0 .5rem; }
.menu { position: relative; } .menu summary { list-style: none; } .menu-body { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.12); padding: .8rem; min-width: 260px; display: grid; gap: .6rem; }
/* ---------- Leeromgeving: rustiger tempo, meer te doen ---------- */
/* Extra uitleg onder de dia: wat de spreker erbij zou zeggen */
.slide-note { flex: none; margin: 1.3rem 0 0; padding: .9rem 1.15rem; background: linear-gradient(135deg, var(--accent-soft), #f1f8ec);
  border: 1px solid #cde5bf; border-radius: 14px; font-size: clamp(.92rem, calc(1.15 * var(--uvw)), 1.05rem); line-height: 1.6; }
.slide-note .note-head { display: inline-flex; align-items: center; gap: .45rem; font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .09em; color: var(--accent-deep); margin-bottom: .4rem; }
.slide-note .note-ic { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--accent); color: #fff; }
.slide-note .note-ic .ic { width: .85rem; height: .85rem; }
.slide-note p { margin: 0 0 .5rem; } .slide-note p:last-child { margin-bottom: 0; }
/* Antwoord op een oefening: pas zichtbaar als men zelf nagedacht heeft */
.slide-more { flex: none; margin-top: auto; padding-top: .8rem; border-top: 1px dashed var(--line-2); }
.slide-more > summary { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600;
  color: var(--accent-deep); background: var(--accent-soft); padding: .35rem .8rem; border-radius: 99px; cursor: pointer; }
.slide-more > summary:hover { background: var(--accent); color: #fff; }
.slide-more > summary .ic { width: 1rem; height: 1rem; }
.slide-more > div { margin-top: .7rem; font-size: 1rem; line-height: 1.6; color: var(--text); }
.slide-more > div p { margin: 0 0 .6rem; }

/* Wachten tussen twee schermen: een stil balkje in plaats van een aftellende knop */
.deck-next { position: relative; overflow: hidden; }
.deck-next.waiting::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w, 0%);
  background: rgba(255,255,255,.8); transition: width var(--t, 3s) linear; }
.deck-next[disabled] { opacity: .75; cursor: default; }

.deck-count { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.deck-done { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0 0 .7rem;
  padding: .6rem .9rem; background: var(--green-soft); color: var(--green); border-radius: 10px; font-weight: 600; font-size: .95rem; }
.deck-done .ic { width: 1.1rem; height: 1.1rem; }

/* Hoofdstukkenlijst: hoe lang duurt het, en waarom staat dit nog op slot */
.lx-chapters .ch-meta { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); margin-top: .1rem; }

/* ---------- Auditkalender: per categorie de check-lists, per maand wat er valt ---------- */
.plan-cal th.plan-m, .plan-cal td.plan-m { width: 4.6%; text-align: center; padding: .3rem .15rem; }
.plan-cal td.plan-name { width: 30%; } .plan-cal td.plan-freq { width: 11%; color: var(--muted); white-space: nowrap; }
.plan-cal tr.plan-group td { background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .04em; padding: .35rem .6rem; }
.plan-blk { display: inline-block; min-width: 1.5rem; padding: .1rem .3rem; margin: .1rem .05rem; border-radius: 5px;
  font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.4; }
.plan-blk:hover { text-decoration: none; filter: brightness(.95); }
.plan-done, .plan-closed { background: var(--green-soft); color: var(--green); }
.plan-planned, .plan-in_progress { background: var(--blue-soft); color: var(--blue); }
.plan-todo { background: var(--grey-soft); color: var(--muted-2); font-weight: 400; }
.plan-late { background: var(--red-soft); color: var(--red); }
/* De lopende maand: een lichte kolom door de hele tabel, zodat men meteen ziet waar men staat */
.plan-cal th.plan-now, .plan-cal td.plan-now { background-color: #fffbeb; box-shadow: inset 1px 0 0 #fcd34d, inset -1px 0 0 #fcd34d; }
.plan-cal thead th.plan-now { color: var(--amber); }
/* Dagelijks of wekelijks: geen twaalf voorstellen maar een doorlopende streep achter de maanden */
.plan-cal tr.plan-cont td.plan-m { background-image: linear-gradient(to bottom, transparent calc(50% - 2px), var(--grey-soft) calc(50% - 2px), var(--grey-soft) calc(50% + 2px), transparent calc(50% + 2px)); }
.plan-group .plan-gn { float: right; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.plan-legend { display: flex; flex-wrap: wrap; gap: .1rem 1rem; font-size: .8rem; color: var(--muted); }
.plan-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.plan-key { width: .85rem; height: .85rem; border-radius: 4px; display: inline-block; }
.plan-key.plan-done { background: var(--green-soft); border: 1px solid var(--green); }
.plan-key.plan-planned { background: var(--blue-soft); border: 1px solid var(--blue); }
.plan-key.plan-late { background: var(--red-soft); border: 1px solid var(--red); }
.plan-key.plan-todo { background: var(--grey-soft); border: 1px solid var(--line-2); }
@media (max-width: 900px) { .plan-cal td.plan-freq, .plan-cal th.plan-freq { display: none; } }

/* Filter waarin men meerdere waarden tegelijk aanvinkt: de knop lijkt op een gewone keuzelijst */
.multi > summary { position: relative; display: block; margin-top: .2rem; padding: .4rem 1.5rem .4rem .55rem; border: 1px solid var(--line-2); border-radius: 7px;
  background: #fff; font-size: .88rem; font-weight: 400; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.multi > summary::after { content: ''; position: absolute; right: .55rem; top: 50%; margin-top: -2px; border: 4px solid transparent; border-top-color: var(--muted); }
.multi[open] > summary { border-color: var(--accent); }
.multi .menu-body { left: 0; right: auto; min-width: 200px; gap: .35rem; }
.menu-form { display: grid; gap: .4rem; } .menu-form label { margin: 0; } .menu-form input { margin-top: .25rem; padding: .4rem .55rem; font-size: .88rem; }
.ic-more { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E"); }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.folder { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: #fff; }
.folder:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; } .folder .ic-folder-big { width: 30px; height: 30px; color: var(--accent); flex: none; }
.folder-text { display: flex; flex-direction: column; min-width: 0; } .folder-name { font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .folder-text .small { white-space: nowrap; }
.ic-folder-big { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 6a2 2 0 012-2h4.6a2 2 0 011.4.6L12.4 6H19a2 2 0 012 2v10a2 2 0 01-2 2H5a2 2 0 01-2-2z'/%3E%3C/svg%3E"); }
.ic-folder-plus { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2zM12 10v6M9 13h6'/%3E%3C/svg%3E"); }
.file-meta-4 { grid-template-columns: 1fr 1fr 1fr auto; }
@media (max-width: 700px) { .file-meta-4 { grid-template-columns: 1fr; } .inline-form .input { width: 150px; } }

/* ---------- Drive: drag & drop ---------- */
.file-row[draggable] { cursor: grab; } .file-row.dragging { opacity: .45; }
.folder.drop-over, .crumbs a.drop-over { outline: 2px dashed var(--accent); outline-offset: 2px; background: var(--accent-soft); border-radius: 6px; }
.ic-eye { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }

/* ---------- Live zoekpopup ---------- */
.topbar-search { position: relative; }
.search-pop { position: absolute; top: calc(100% + 6px); right: 0; width: 520px; max-width: calc(90 * var(--uvw)); max-height: calc(70 * var(--uvh)); overflow: auto; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 12px 32px rgba(16,24,40,.16); z-index: 50; padding: .4rem; }
.sp-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .5rem .7rem .25rem; }
.sp-item { display: grid; grid-template-columns: 32px 1fr auto; gap: .6rem; align-items: center; padding: .45rem .7rem; border-radius: 6px; color: var(--text); }
.sp-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; } .sp-ico .ic { width: 16px; height: 16px; }
.sp-item:hover, .sp-item.on { background: var(--accent-soft); text-decoration: none; }
.sp-code { display: inline-block; font-family: ui-monospace, Menlo, monospace; font-size: .72rem; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); border-radius: 4px; padding: 0 .35rem; margin-right: .45rem; vertical-align: 1px; }
.sp-main { min-width: 0; display: flex; flex-direction: column; } .sp-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sp-sub { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-more { display: block; text-align: center; padding: .6rem; margin-top: .3rem; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 600; border-radius: 0 0 6px 6px; } .sp-more.on, .sp-more:hover { background: var(--accent-soft); text-decoration: none; }
.sp-empty { padding: .8rem; color: var(--muted); font-size: .88rem; text-align: center; }
@media (max-width: 600px) { .search-pop { right: auto; left: 0; } }

/* ---------- Avatars ---------- */
img.avatar { object-fit: cover; } .avatar-sm { width: 26px; height: 26px; font-size: .62rem; } .avatar-xl { width: 88px; height: 88px; font-size: 1.6rem; }
.avatar-inline { display: inline-block; vertical-align: middle; margin-right: .5rem; } .avatar-inline .avatar { display: inline-grid; background: var(--grey-soft); color: var(--text); }
.avatar-edit { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1rem; } .avatar-edit .avatar { flex: none; }
.mention-box div { display: flex; align-items: center; gap: .5rem; } .mention-box .avatar { display: inline-grid; background: var(--accent); color: #fff; }
.timeline .who { display: inline-flex; align-items: center; gap: .35rem; vertical-align: middle; } .timeline .who .avatar { display: inline-grid; width: 20px; height: 20px; font-size: .55rem; background: var(--accent); color: #fff; }

.batch-table th, .batch-table td { white-space: normal; } .batch-table input, .batch-table select { min-width: 0; }

/* ---------- Audits ---------- */
.audit-section h3 { margin-bottom: .75rem; }
.audit-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.audit-head, .audit-row { display: grid; grid-template-columns: 52px minmax(0, 1.5fr) auto minmax(0, 1.4fr) 270px 36px; gap: 0 .9rem; align-items: start; }
.audit-list--text .audit-head, .audit-list--text .audit-row { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.7fr) 270px 36px; }
.audit-head { padding: .45rem 1rem; background: #f3f5f1; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-bottom: 1px solid var(--line); }
.audit-sub { padding: .45rem 1rem; background: #f8faf6; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-deep); border-bottom: 1px solid var(--line); }
.audit-row { padding: .7rem 1rem; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.audit-row:last-child { border-bottom: 0; } .audit-row:hover { background: #fbfcfa; }
.audit-row.is-finding { border-left-color: var(--red); background: #fffafa; }
.ar-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74rem; color: var(--muted); padding-top: .55rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-q { font-size: .9rem; line-height: 1.4; padding-top: .4rem; }
.ar-ans { padding-top: .1rem; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #fff; }
.seg label { position: relative; margin: 0; padding: .42rem .7rem; font-size: .78rem; font-weight: 600; color: var(--muted); cursor: pointer; border-right: 1px solid var(--line-2); white-space: nowrap; }
.seg label:last-child { border-right: 0; } .seg label:hover { background: #f3f5f1; color: var(--text); }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg label.on { color: #fff; } .seg label.on.badge-green { background: var(--green); } .seg label.on.badge-red { background: var(--red); } .seg label.on.badge-amber { background: var(--amber); } .seg label.on.badge-grey { background: var(--grey); }
.ar-obs textarea.obs { margin: 0; width: 100%; min-height: 38px; height: 38px; padding: .45rem .6rem; font-size: .85rem; line-height: 1.4; resize: none; overflow: hidden; border-color: var(--line); background: #fff; font-family: inherit; }
.ar-obs textarea.obs::placeholder { color: #b5bbb2; } .ar-obs textarea.obs:focus { border-color: var(--accent); }
.ar-obs .small { padding-top: .45rem; white-space: pre-line; }
.ar-photos { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .4rem; } .ar-photos img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.ar-find { display: flex; align-items: center; gap: .4rem; min-height: 38px; flex-wrap: wrap; }
.ar-find-ctl { display: none; align-items: center; gap: .35rem; } .is-finding .ar-find-ctl { display: flex; }
.ar-find-ctl select { margin: 0; padding: .4rem 1.6rem .4rem .5rem; font-size: .78rem; width: auto; max-width: 135px; }
.ar-find-ctl .fno { margin: 0; padding: .4rem .45rem; font-size: .78rem; width: 52px; text-align: center; font-family: ui-monospace, Menlo, monospace; }
.ar-add { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 1px dashed var(--line-2); border-radius: 8px; padding: .38rem .6rem; font-size: .76rem; color: var(--muted); cursor: pointer; font-family: inherit; }
.ar-add:hover { color: var(--red); border-color: var(--red); } .is-finding .ar-add { display: none; }
.ar-photo { margin: 0; padding: .38rem .45rem; border: 1px solid var(--line-2); border-radius: 8px; color: var(--muted); cursor: pointer; display: inline-flex; background: #fff; }
.ar-photo:hover { color: var(--accent-deep); border-color: var(--accent); } .ar-photo input[type=file] { display: none !important; }
.ar-find .badge { font-size: .72rem; }
@media (max-width: 1100px) { .audit-head { display: none; } .audit-head, .audit-row, .audit-list--text .audit-row { grid-template-columns: 1fr; gap: .5rem; } .ar-code { padding: 0; } .ar-q { padding: 0; } }

/* ---------- Voortgang in stappen (0/25/50/75/100) ---------- */
.prog-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin: .2rem 0 1rem; }
.prog-steps label { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .3rem; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; margin: 0; text-align: center; }
.prog-steps label b { font-size: .95rem; } .prog-steps label span { font-size: .7rem; color: var(--muted); line-height: 1.2; }
.prog-steps label:hover { border-color: var(--accent); }
.prog-steps label.on { background: var(--green-soft); border-color: var(--green); color: var(--green); } .prog-steps label.on span { color: var(--green); }
.prog-steps label:last-child.on { background: var(--green); color: #fff; } .prog-steps label:last-child.on span { color: #fff; }
.prog-steps input { position: absolute; opacity: 0; width: 0; height: 0; }
@media (max-width: 600px) { .prog-steps { gap: .25rem; } .prog-steps label span { display: none; } }

/* ---------- Instellingen ---------- */
.card-narrow { max-width: 760px; } .card-narrow h3 { margin-bottom: .2rem; } .card-narrow > .hint { margin: 0 0 1.1rem; }
h4.sub { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-deep); margin: 1.1rem 0 .5rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
h4.sub:first-of-type { margin-top: .4rem; }

/* ---------- Escalatieniveaus (instellingen) ---------- */
.esc-level { display: grid; grid-template-columns: 28px 1fr; gap: .2rem .8rem; align-items: start; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; background: #fbfcfa; }
.esc-level > b { grid-row: 1 / span 3; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .85rem; margin-top: .15rem; }
.esc-level label { margin-bottom: .35rem; }

/* ---------- Verwijderen / bulkselectie ---------- */
.btn-danger-ghost { background: #fff; color: var(--red); border-color: #fca5a5; } .btn-danger-ghost:hover { background: var(--red-soft); border-color: var(--red); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); } .btn-danger:hover { background: #991b1b; }
form.inline { display: inline; }
.tbl th.sel, .tbl td.sel { width: 34px; padding-right: 0; } .tbl td.sel input, .tbl th.sel input { margin: 0; width: 15px; height: 15px; cursor: pointer; }
.tbl tr.selected td { background: var(--green-soft); }
.bulk-bar { position: sticky; bottom: 1rem; display: flex; align-items: center; gap: .6rem; margin: .8rem 0 0; padding: .55rem .6rem .55rem 1rem; background: #1c2431; color: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); width: fit-content; }
.bulk-bar[hidden] { display: none; }
.bulk-bar .bulk-count { font-weight: 600; font-size: .9rem; margin-right: .4rem; } .bulk-bar .btn { border-color: transparent; } .bulk-bar .btn:not(.btn-danger) { background: #2b3444; color: #fff; }

/* ---------- AI-assistent ---------- */
.ai-card { border-left: 3px solid var(--accent); background: linear-gradient(180deg, #fbfdf9 0%, #fff 60%); }
.ai-card .card-head h2 { display: flex; align-items: center; gap: .45rem; } .ai-card .card-head h2 .ic { color: var(--accent); }
.ai-card .card-head { gap: .6rem; } .ai-card .ai-meta { margin-left: auto; } .ai-refresh { padding: .3rem .45rem; }
.ai-loading { display: flex; align-items: center; gap: .6rem; color: var(--muted); padding: .6rem 0; font-size: .9rem; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: none; } @keyframes spin { to { transform: rotate(360deg); } }
.ai-greet { font-size: 1.05rem; font-weight: 600; margin: 0 0 .25rem; } .ai-headline { margin: 0 0 .9rem; color: var(--text); } .ai-summary { margin: 0 0 .9rem; line-height: 1.55; }
.ai-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem 1.25rem; margin-bottom: .6rem; }
.ai-section h4, .ai-h { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-deep); margin: .6rem 0 .35rem; }
.ai-section ul, .ai-list { margin: 0; padding-left: 1.1rem; font-size: .9rem; line-height: 1.5; } .ai-section li, .ai-list li { margin-bottom: .15rem; }
.ai-todos { list-style: none; margin: 0; padding: 0; } .ai-todos li { display: flex; align-items: flex-start; gap: .6rem; padding: .45rem .2rem; border-top: 1px solid var(--line); font-size: .92rem; line-height: 1.45; }
.ai-todos li > div { flex: 1; } .ai-todos .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grey); flex: none; margin-top: .5rem; }
.ai-todos li.p-high .dot { background: var(--red); } .ai-todos li.p-normal .dot { background: var(--amber); } .ai-todos li.p-low .dot { background: var(--green); }
.ai-todos .ai-mk { flex: none; white-space: nowrap; } .ai-toggle { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; background: none; border: 0; padding: .25rem 0; font: inherit; font-size: .82rem; font-weight: 600; color: var(--accent-deep); cursor: pointer; }
.ai-toggle:hover { text-decoration: underline; } .ai-toggle .chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform .15s; } .ai-toggle[aria-expanded="true"] .chev { transform: rotate(-135deg); margin-top: 3px; }
.ai-headline { margin-bottom: .3rem; } .ai-details { margin-top: .6rem; }
.ai-error { color: var(--red); font-size: .9rem; margin: 0; } .ai-empty { color: var(--muted); font-size: .9rem; margin: 0; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* ---------- Berichten ---------- */
.chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1rem; height: calc(100 * var(--uvh) - 108px); min-height: 520px; }
.chat-side { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.chat-side-title { font-size: .72rem; font-weight: 600; color: var(--muted); padding: .9rem .75rem .35rem; }
.chat-item { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .7rem; border-radius: 10px; color: var(--text); background: none; border: 0; font: inherit; text-align: left; cursor: pointer; text-decoration: none; }
.chat-item:hover { background: var(--sidebar-2); text-decoration: none; } .chat-item.on { background: var(--green-soft); }
.chat-item-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--grey-soft); color: var(--muted); display: grid; place-items: center; flex: none; } .chat-item.on .chat-item-ic { background: var(--accent); color: #fff; }
.chat-item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.chat-item-name { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chat-item-prev { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item.unread .chat-item-name, .chat-item.unread .chat-item-prev { color: var(--text); font-weight: 600; }
.chat-item-end { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; flex: none; } .chat-item-end time { font-size: .7rem; color: var(--muted-2); } .chat-item-end b { min-width: 18px; height: 18px; padding: 0 .35rem; border-radius: 99px; background: var(--accent); color: #fff; font-size: .68rem; display: grid; place-items: center; }
.chat-people { margin-top: .4rem; } .chat-people summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--accent-deep); padding: .55rem .75rem; border-radius: 10px; } .chat-people summary::-webkit-details-marker { display: none; } .chat-people summary:hover { background: var(--sidebar-2); } .chat-people form { margin: 0; }
.chat-main { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; min-height: 0; overflow: hidden; }
.chat-head { padding: .75rem 1.25rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .8rem; }
.chat-head h2 { margin: 0; font-size: 1.05rem; line-height: 1.2; } .chat-head-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.avatar-stack { margin-left: auto; display: flex; } .avatar-stack .avatar { margin-left: -8px; border: 2px solid #fff; box-shadow: none; } .avatar-stack .avatar:first-child { margin-left: 0; } .avatar-stack .more { background: var(--grey-soft); color: var(--muted); font-size: .65rem; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; background: linear-gradient(180deg, #fafbf9, #fff 120px); }
.chat-day { align-self: center; margin: 1rem 0 .6rem; font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--grey-soft); border-radius: 99px; padding: .2rem .7rem; }
.chat-msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .6rem; margin-top: .85rem; } .chat-msg.grouped { margin-top: .15rem; }
.chat-msg.own { grid-template-columns: minmax(0, 1fr) 34px; } .chat-msg.own .chat-av { order: 2; } .chat-msg.own .chat-col { align-items: flex-end; }
.chat-av { width: 34px; } .chat-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.chat-meta { display: flex; align-items: baseline; gap: .5rem; margin: 0 .2rem .2rem; font-size: .78rem; } .chat-meta b { color: var(--text); } .chat-meta time { color: var(--muted-2); font-size: .72rem; }
.chat-bubble { position: relative; background: #f3f5f1; border-radius: 4px 14px 14px 14px; padding: .55rem .85rem; max-width: min(72%, 680px); min-width: 0; } .chat-msg.grouped .chat-bubble { border-radius: 14px; }
.chat-msg.own .chat-bubble { background: var(--green-soft); border-radius: 14px 4px 14px 14px; } .chat-msg.own.grouped .chat-bubble { border-radius: 14px; }
.chat-msg.flash .chat-bubble { box-shadow: 0 0 0 3px rgba(82,160,53,.35); }
.chat-body { font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; } .chat-body:empty { display: none; }
.chat-body a.ref { font-family: ui-monospace, Menlo, monospace; font-size: .85em; background: #fff; border: 1px solid var(--line-2); border-radius: 5px; padding: 0 .3rem; color: var(--accent-deep); }
.chat-msg.deleted .chat-bubble { background: transparent; border: 1px dashed var(--line-2); } .chat-msg.deleted .chat-body { font-style: italic; }
.chat-refs { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--line-2); border-radius: 9px; padding: .3rem .6rem; font-size: .8rem; color: var(--text); max-width: 100%; } a.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip-ref .mono { color: var(--accent-deep); font-weight: 700; } .chip-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.chat-gallery { display: grid; gap: 4px; margin-top: .5rem; border-radius: 10px; overflow: hidden; max-width: 420px; } .chat-gallery.n1 { grid-template-columns: 1fr; } .chat-gallery.n2 { grid-template-columns: 1fr 1fr; } .chat-gallery.n3 { grid-template-columns: repeat(3, 1fr); }
.chat-gallery a { display: block; aspect-ratio: 4 / 3; background: #e5e7eb; } .chat-gallery.n1 a { aspect-ratio: auto; max-height: 320px; } .chat-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-docs { display: flex; flex-direction: column; gap: .35rem; margin-top: .5rem; }
.chat-doc { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: .45rem .6rem; color: var(--text); max-width: 360px; } .chat-doc:hover { border-color: var(--accent); text-decoration: none; }
.chat-doc .ext, .chip-file .ext { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; } .chip-file .ext { width: 26px; height: 26px; }
.chat-doc .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; font-weight: 600; }
.chat-tools { position: absolute; top: -12px; right: 8px; display: none; align-items: center; gap: .1rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .1rem .2rem; box-shadow: 0 2px 8px rgba(0,0,0,.08); } .chat-msg.own .chat-tools { right: auto; left: 8px; }
.chat-msg:hover .chat-tools, .chat-tools:focus-within { display: inline-flex; }
.chat-tools .tool { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; padding: .25rem .4rem; border-radius: 6px; color: var(--muted); cursor: pointer; font: inherit; font-size: .75rem; font-weight: 600; text-decoration: none; } .chat-tools .tool:hover { background: var(--grey-soft); color: var(--text); } .chat-tools .tool .ic { width: 14px; height: 14px; }
.chat-editform { margin-top: .4rem; } .chat-editform textarea { margin: 0 0 .4rem; }
.chat-empty { margin: auto; text-align: center; max-width: 420px; padding: 2rem 1rem; }
.chat-empty-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 1rem; } .chat-empty-ic .ic { width: 30px; height: 30px; }
.chat-empty h3 { margin: 0 0 .3rem; } .chat-empty p { color: var(--muted); margin: 0 0 1.2rem; }
.chat-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; text-align: left; }
.chat-tips li { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; font-size: .88rem; } .chat-tips kbd { flex: none; width: 28px; height: 28px; border-radius: 7px; background: var(--grey-soft); color: var(--accent-deep); font-weight: 700; display: grid; place-items: center; font-family: inherit; } .chat-tips kbd .ic { width: 15px; height: 15px; }
.chat-compose { border-top: 1px solid var(--line); padding: .75rem 1.25rem .6rem; background: #fff; }
.chat-pending { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; } .chip-file .name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chip-file button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .1rem; } .chip-file button:hover { color: var(--red); }
.chat-box { display: flex; align-items: flex-end; gap: .4rem; border: 1px solid var(--line-2); border-radius: 14px; padding: .35rem .4rem .35rem .5rem; background: #fff; transition: border-color .15s, box-shadow .15s; }
.chat-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(82,160,53,.15); } .chat-box.drag { border-style: dashed; border-color: var(--accent); background: var(--green-soft); }
.chat-box textarea { flex: 1; margin: 0; border: 0; padding: .5rem .3rem; resize: none; font: inherit; font-size: .95rem; line-height: 1.45; min-height: 38px; max-height: 160px; background: transparent; box-shadow: none; } .chat-box textarea:focus { outline: none; box-shadow: none; border: 0; }
.chat-attach, .chat-send { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; border: 0; margin: 0; }
.chat-attach { background: transparent; color: var(--muted); } .chat-attach:hover { background: var(--grey-soft); color: var(--accent-deep); } .chat-attach input { display: none; }
.chat-send { background: var(--accent); color: #fff; } .chat-send:hover { background: var(--accent-2); } .chat-send .ic { width: 18px; height: 18px; } .chat-compose.sending .chat-send { opacity: .5; pointer-events: none; }
.chat-compose-hint { font-size: .72rem; color: var(--muted-2); margin: .4rem .3rem 0; } .chat-compose.failed .chat-compose-hint { color: var(--red); }
@media (max-width: 960px) { .chat { grid-template-columns: 1fr; height: auto; } .chat-side { max-height: 220px; } .chat-log { max-height: calc(58 * var(--uvh)); min-height: 300px; } .chat-bubble { max-width: 92%; } .avatar-stack { display: none; } .chat-gallery, .chat-doc { max-width: 100%; } }

/* ---------- Meldingsvoorkeuren ---------- */
.pref-list { display: flex; flex-direction: column; gap: .4rem; margin: .6rem 0 .2rem; }
.pref { display: flex; align-items: flex-start; gap: .7rem; margin: 0; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.pref:hover { border-color: var(--line-2); background: #fafbf9; } .pref input { margin: .2rem 0 0; flex: none; width: 16px; height: 16px; }
.pref input:checked ~ .pref-txt b { color: var(--accent-deep); } .pref:has(input:checked) { border-color: var(--accent); background: var(--green-soft); }
.pref-txt { display: flex; flex-direction: column; line-height: 1.35; } .pref-txt b { font-size: .9rem; font-weight: 600; } .pref-txt small { font-size: .8rem; color: var(--muted); }

/* ---------- Geblokkeerde toegang (wachtwoord / 2FA nog in te stellen) ---------- */
.blocker { border-left: 4px solid var(--amber); background: #fffbeb; margin-bottom: 1.25rem; }
.blocker h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; color: #92400e; } .blocker h3 .ic { color: var(--amber); }
.blocker p { margin: 0 0 .7rem; color: #78350f; }
.blocker-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; } .blocker-steps li::marker { color: var(--amber); font-weight: 700; }
.blocker-steps b { display: block; font-size: .92rem; } .blocker-steps span { font-size: .85rem; color: var(--muted); }
.card-focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(82,160,53,.12); }

/* ---------- Leeromgeving ---------- */
.preview-bar { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .5rem 1rem; background: #fff6e3; border-bottom: 1px solid #f3dca8; font-size: .85rem; color: #7a5a12; }
.preview-bar .ic { width: 15px; height: 15px; vertical-align: -2px; } .preview-bar a { color: #7a5a12; font-weight: 600; text-decoration: underline; }
.nav-lock { width: 13px; height: 13px; margin-left: auto; opacity: .55; }
.space-link { display: flex; align-items: center; gap: .6rem; margin: .4rem .6rem .2rem; padding: .65rem .7rem; border-radius: 10px; background: #1f3b2c; color: #fff; }
.space-link:hover { background: #27492f; text-decoration: none; } .space-link > .ic:first-child { color: #9fd389; }
.space-link span { flex: 1; display: flex; flex-direction: column; line-height: 1.2; } .space-link strong { font-size: .88rem; } .space-link small { font-size: .72rem; opacity: .75; }
.space-link > .ic:last-child { width: 15px; height: 15px; opacity: .7; }
body.learn .sidebar { background: #16281f; border-right-color: #1f3b2c; }
body.learn .brand { filter: brightness(0) invert(1); opacity: .95; }
body.learn .nav a { color: #cfe0d4; } body.learn .nav a:hover { background: #1f3b2c; color: #fff; } body.learn .nav a.active { background: var(--accent); color: #fff; }
body.learn .nav a .ic { color: #8fbf7c; } body.learn .nav a.active .ic { color: #fff; }
body.learn .sidebar-foot { border-top-color: #1f3b2c; } body.learn .me-text strong { color: #fff; } body.learn .me-text small { color: #9fb3a4; } body.learn .avatar { background: var(--accent); }
body.learn .topbar { border-bottom-color: #1f3b2c; }
.space-badge { margin: 0 .75rem .4rem; padding: .3rem .55rem; border-radius: 99px; background: #1f3b2c; color: #9fd389; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; }
.space-badge .ic { width: 14px; height: 14px; }
.btn-back { justify-content: center; background: #1f3b2c; color: #fff; border-color: transparent; } .btn-back:hover { background: #27492f; color: #fff; }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .9rem; }
.learn-card { display: block; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; color: inherit; background: #fff; }
.learn-card:hover { border-color: var(--accent); text-decoration: none; box-shadow: 0 2px 10px rgba(16,24,40,.06); }
.learn-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3rem; }
.learn-card h3 { margin: 0 0 .5rem; font-size: 1rem; line-height: 1.3; }
.learn-meta { display: flex; flex-direction: column; gap: .15rem; font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.learn-flags { display: flex; flex-wrap: wrap; gap: .3rem; }
.chapter .card-head h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; }
.chapter-num { width: 28px; height: 28px; border-radius: 8px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: .85rem; font-weight: 700; flex: none; }
.chapter-body { font-size: .93rem; line-height: 1.6; } .chapter-body h4 { margin: 1.2rem 0 .4rem; font-size: .88rem; color: var(--accent-deep); }
.chapter-body ul { margin: .3rem 0 .7rem; padding-left: 1.2rem; } .chapter-body p { margin: .3rem 0 .6rem; }
/* Uitleg onder het scherm (<aside>) en antwoord achter een knopje (<aside class="ask">)
   worden hier als voorbeeld getoond, zodat Kwaliteit ze in het overzicht herkent. */
.chapter-body aside { margin: .5rem 0 .8rem; padding: .5rem .75rem; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 8px 8px 0; font-size: .9em; }
.chapter-body aside > :first-child { margin-top: 0; } .chapter-body aside > :last-child { margin-bottom: 0; }
.chapter-body aside.ask { border-left-color: var(--green); background: var(--green-soft); }
.chapter-body aside[data-label]::before { content: attr(data-label); display: block; font-size: .72em; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: .2rem; }
.chapter-body figure { margin: .6rem 0; } .chapter-body img { max-width: 100%; max-height: 260px; width: auto; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); }
.question { border-left: 3px solid var(--green); } .question.is-draft { border-left-color: var(--amber); background: #fffdf6; }
.q-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: .8rem; align-items: start; }
.q-code { font-family: ui-monospace, Menlo, monospace; font-weight: 700; color: var(--accent-deep); }
.q-text { font-size: .95rem; line-height: 1.45; } .q-side { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.q-options { list-style: none; margin: .7rem 0 0 44px; padding: 0; display: grid; gap: .3rem; }
.q-options li { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--muted); }
.q-options li i { width: 15px; height: 15px; border: 1.5px solid var(--line-2); border-radius: 4px; flex: none; }
.q-options li.ok { color: var(--text); } .q-options li.ok i { background: var(--green); border-color: var(--green); position: relative; }
.q-options li.ok i::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.q-pos { width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: .72rem; font-weight: 700; display: grid; place-items: center; flex: none; }
.q-actions { margin: .8rem 0 0 44px; }
@media (max-width: 760px) { .q-head { grid-template-columns: 1fr; } .q-options, .q-actions { margin-left: 0; } }

/* ---------- Opleiding volgen (deelnemer) ---------- */
body.learner { background: #eef3ea; background-image: radial-gradient(1100px 520px at 50% -200px, #dcebd3 0, rgba(220,235,211,0) 70%); background-attachment: fixed; }
.lx-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.1rem; background: #fff; border-bottom: 3px solid var(--accent); }
.lx-brand img { height: 30px; display: block; } .lx-title { font-weight: 600; font-size: .95rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-who { display: flex; align-items: center; gap: .5rem; margin: 0; } .lx-name { font-size: .88rem; font-weight: 600; } @media (max-width: 600px) { .lx-name, .lx-title { display: none; } }
/* Groter of kleiner zetten blijft op elk scherm bereikbaar, ook op een smalle tablet */
.lx-zoom { display: flex; align-items: center; gap: .3rem; margin: 0; }
.lx-zoom button { font-weight: 700; line-height: 1; padding: .4rem .55rem; }
.lx-zoom .a-small { font-size: .8em; } .lx-zoom .a-big { font-size: 1.15em; }
.lx-main { max-width: 780px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.lx-wrap h1 { font-size: 1.4rem; margin: 0 0 .3rem; display: flex; align-items: center; gap: .6rem; }
.lx-back { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); margin-bottom: .8rem; } .lx-back .ic { width: 15px; height: 15px; }
.lx-pick h1 { font-size: 1.6rem; } .lx-search { display: flex; gap: .5rem; margin: 1rem 0 1.2rem; } .lx-search input { margin: 0; font-size: 1.05rem; padding: .7rem .9rem; }
.lx-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; } .lx-people form { margin: 0; }
.lx-person { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font: inherit; text-align: left; }
.lx-person:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(16,24,40,.07); }
.lx-person .avatar { width: 42px; height: 42px; font-size: .85rem; } .lx-person-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.lx-person-txt strong { font-size: 1rem; } .lx-person-txt small { color: var(--muted); font-size: .78rem; }
.lx-cards { display: grid; gap: .8rem; margin-top: 1rem; }
.lx-card { display: block; padding: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: inherit; border-left: 4px solid var(--accent); }
.lx-card:hover { text-decoration: none; box-shadow: 0 2px 12px rgba(16,24,40,.08); } .lx-card.passed { border-left-color: var(--green); } .lx-card.failed { border-left-color: var(--red); }
.lx-card-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.lx-card h2 { margin: 0 0 .7rem; font-size: 1.08rem; line-height: 1.35; }
.lx-progress .bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; } .lx-progress .bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.lx-progress small { display: block; margin-top: .3rem; color: var(--muted); font-size: .8rem; } .lx-progress.big { margin: .8rem 0 1.2rem; }
.lx-cert { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--green); } .lx-cert .ic { width: 15px; height: 15px; }
.lx-go { display: inline-flex; align-items: center; gap: .3rem; margin-top: .7rem; font-size: .88rem; font-weight: 600; color: var(--accent-deep); } .lx-go .ic { width: 15px; height: 15px; }
.lx-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.lx-chapters a { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: inherit; }
.lx-chapters a:hover { border-color: var(--accent); text-decoration: none; } .lx-chapters .n { width: 32px; height: 32px; border-radius: 9px; background: var(--grey-soft); color: var(--muted); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.lx-chapters li.done .n { background: var(--green); color: #fff; } .lx-chapters li.done .n .ic { width: 16px; height: 16px; }
.lx-chapters .ch-row { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; background: #fff; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); }
.lx-chapters li.locked .n { background: var(--grey-soft); color: var(--muted-2); } .lx-chapters li.locked .ic { width: 15px; height: 15px; color: var(--muted-2); }
.lx-chapters .t { flex: 1; font-size: .95rem; } .lx-chapters a > .ic:last-child { width: 16px; height: 16px; color: var(--muted-2); }
.lx-test { margin-top: 1.4rem; padding: 1.2rem; border-radius: 14px; background: #fff; border: 1px dashed var(--line-2); text-align: center; }
.lx-test.open { border-style: solid; border-color: var(--accent); background: var(--green-soft); }
.lx-test h3 { margin: 0 0 .3rem; } .lx-test p { margin: 0 0 .9rem; color: var(--muted); }
.btn-lg { padding: .75rem 1.4rem; font-size: 1rem; }
.lx-steps { display: flex; gap: 4px; margin-bottom: 1rem; } .lx-steps span { flex: 1; height: 5px; border-radius: 99px; background: var(--line); } .lx-steps span.done { background: var(--green); } .lx-steps span.now { background: var(--accent); }
.lx-body { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; font-size: 1rem; line-height: 1.65; }
.lx-body img { max-height: 420px; } .lx-reading h1 .chapter-num { width: 34px; height: 34px; }
.lx-next { display: flex; align-items: center; gap: .9rem; margin-top: 1.1rem; flex-wrap: wrap; }
@media (max-width: 600px) { .lx-next .btn { width: 100%; } .lx-main { padding: 1rem .8rem 2.5rem; } }

/* ---------- De opleiding als presentatie ---------- */
.lx-reading { max-width: 980px; margin: 0 auto; }
.deck-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.deck-top .lx-back { margin: 0; } .deck-chapter { font-size: .8rem; color: var(--muted); font-weight: 600; }
/* Vaste hoogte: de knoppen blijven op hun plaats, hoe lang de dia ook is */
.deck { position: relative; margin: .9rem 0 1rem; height: clamp(380px, calc(64 * var(--uvh)), 600px); }
.slide { display: none; position: relative; background: #fff; border: 1px solid rgba(16,24,40,.06); border-radius: 22px;
  box-shadow: 0 2px 4px rgba(16,24,40,.04), 0 18px 44px -12px rgba(16,24,40,.16);
  height: 100%; overflow-y: auto; padding: 2.4rem 2.6rem; }
.slide::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, var(--accent), #8cc76b); }
.slide.on { display: flex; flex-direction: column; animation: slide-in .26s cubic-bezier(.2,.7,.3,1); }
@keyframes slide-in { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }
/* De titel: het nummer als eigen plaatje, de tekst daarnaast */
.slide-title { display: flex; align-items: center; gap: .7rem; font-size: clamp(1.25rem, calc(2.4 * var(--uvw)), 1.8rem);
  line-height: 1.2; letter-spacing: -.01em; margin: 0 0 1.4rem; align-self: flex-start; max-width: 100%; }
.slide-num { flex: none; display: inline-grid; place-items: center; min-width: 2.3em; height: 2.3em; padding: 0 .5em;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent-deep); font-size: .62em; font-weight: 800; letter-spacing: 0; }
.slide-body { display: flex; flex: none; gap: 2rem; align-items: flex-start; min-height: 0; margin-block: auto; width: 100%; }
.slide-text { flex: 1; min-width: 0; font-size: clamp(1rem, calc(1.35 * var(--uvw)), 1.2rem); line-height: 1.6; }
.slide-text p { margin: 0 0 .9rem; }
.slide-text ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.slide-text li { position: relative; padding-left: 1.9rem; }
.slide-text li::before { content: ''; position: absolute; left: .15rem; top: .45em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
/* Alles verschijnt kort na elkaar: dat leest rustiger dan een scherm dat in één klap vol staat */
.slide.on .slide-text > p, .slide.on .slide-text li, .slide.on .slide-img figure, .slide.on .slide-note, .slide.on .slide-more {
  animation: rise .42s cubic-bezier(.2,.7,.3,1) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.slide.on .slide-text > :nth-child(1) { animation-delay: .06s; } .slide.on .slide-text > :nth-child(2) { animation-delay: .12s; }
.slide.on .slide-text li:nth-child(1) { animation-delay: .06s; } .slide.on .slide-text li:nth-child(2) { animation-delay: .13s; }
.slide.on .slide-text li:nth-child(3) { animation-delay: .20s; } .slide.on .slide-text li:nth-child(4) { animation-delay: .27s; }
.slide.on .slide-text li:nth-child(5) { animation-delay: .34s; } .slide.on .slide-text li:nth-child(6) { animation-delay: .41s; }
.slide.on .slide-img figure:nth-child(2) { animation-delay: .10s; } .slide.on .slide-img figure:nth-child(3) { animation-delay: .18s; }
.slide.on .slide-note { animation-delay: .34s; }
@media (prefers-reduced-motion: reduce) { .slide.on, .slide.on * { animation: none !important; } }
@media print { .slide, .slide.on, .slide.on * { animation: none !important; } }
/* Weinig tekst op het scherm? Dan mag ze groot. */
.slide[data-len="short"] .slide-text { font-size: clamp(1.2rem, calc(2 * var(--uvw)), 1.7rem); line-height: 1.5; font-weight: 500; }
.slide[data-len="short"] .slide-text ul { gap: 1.1rem; }
/* Eén enkele regel op een ruim scherm is een zin, geen opsomming: dan hoort er geen stip bij */
.slide[data-len="short"] .slide-text li:only-child { padding-left: 0; }
.slide[data-len="short"] .slide-text li:only-child::before { display: none; }
.slide-img { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.slide-img figure { margin: 0; min-width: 0; }
/* Nooit een beeld dat het scherm uit loopt: alles past binnen de dia */
.slide-img img { display: block; max-width: 100%; width: auto; max-height: clamp(150px, calc(34 * var(--uvh)), 320px); object-fit: contain;
  border-radius: 14px; background: #fff; padding: .4rem; box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 10px 26px -8px rgba(16,24,40,.18); margin: 0 auto; }
.slide-split .slide-img { flex: 0 0 40%; } .slide-split .slide-img img { width: 100%; max-height: min(calc(46 * var(--uvh)), 340px); }
.slide-gallery .slide-body { flex-direction: column; } .slide-gallery .slide-img { flex-direction: row; flex-wrap: nowrap; justify-content: center; width: 100%; }
.slide-gallery .slide-img figure { flex: 1 1 0; display: flex; justify-content: center; }
.slide-gallery .slide-img img { max-height: clamp(110px, calc(24 * var(--uvh)), 220px); }
/* Enkel beeld, zonder tekst: naast elkaar, en hoe meer beelden hoe kleiner */
.slide-image .slide-body { justify-content: center; }
.slide-image .slide-img { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; width: 100%; }
.slide-image .slide-img figure { flex: 0 1 auto; display: flex; justify-content: center; }
.slide-image[data-media="1"] .slide-img img { max-height: min(calc(50 * var(--uvh)), 420px); }
.slide-image[data-media="2"] .slide-img img { max-height: min(calc(38 * var(--uvh)), 320px); }
.slide-image:not([data-media="1"]):not([data-media="2"]) .slide-img img { max-height: min(calc(26 * var(--uvh)), 220px); }
/* film en geluid krijgen het hele scherm */
.slide-media .slide-body { flex-direction: column; } .slide-media .slide-img { width: 100%; }
.slide-media video { width: 100%; max-height: min(calc(52 * var(--uvh)), 420px); border-radius: 12px; background: #0d1b12; display: block; }
.slide-media figure.audio { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; background: var(--green-soft); border-radius: 12px; }
.slide-media figure.audio .ic { width: 26px; height: 26px; color: var(--green); flex: none; }
.slide-media figure.audio audio { flex: 1; width: 100%; }
.slide-img video { max-width: 100%; border-radius: 10px; }
.slide-cover { background: linear-gradient(135deg, var(--accent-deep), var(--accent)); border: 0; color: #fff; justify-content: center; align-items: flex-start; }
.cover-inner { max-width: 32ch; } .slide-cover h1 { color: #fff; font-size: clamp(1.7rem, calc(3.6 * var(--uvw)), 2.6rem); line-height: 1.15; margin: 0 0 .7rem; }
.cover-num { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.18);
  font-size: 1.5rem; font-weight: 700; margin-bottom: 1.1rem; }
.cover-sub { color: rgba(255,255,255,.85); margin: 0 0 1.6rem; font-size: 1rem; }
.cover-go { font-size: .85rem; color: rgba(255,255,255,.75); }
/* Bevestigingsvenster in de huisstijl */
/* Bevestigingsvenster. Let op: de klasse heet bewust niet ".ask" — cursusteksten bevatten
   <aside class="ask"> voor een antwoord achter een knopje, en dat mag deze laag niet erven. */
.ask-wrap { position: fixed; inset: 0; z-index: 240; background: rgba(12,20,15,.45); display: grid; place-items: center; padding: 1.2rem; animation: fade-in .12s ease-out; }
.ask-card { background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(16,24,40,.28); padding: 1.3rem 1.4rem 1.1rem; max-width: 420px; width: 100%; }
.ask-text { margin: 0 0 1.1rem; font-size: 1rem; line-height: 1.5; }
.ask-actions { display: flex; gap: .5rem; justify-content: flex-end; }
.ask-actions .btn { min-width: 110px; justify-content: center; }
@media (max-width: 520px) { .ask-actions { flex-direction: column-reverse; } .ask-actions .btn { width: 100%; } }

/* Foto schermvullend bekijken */
.slide-img img, .chapter-body img, .lx-body img, .slide-img-item img { cursor: zoom-in; }
.img-zoom { position: fixed; inset: 0; z-index: 200; background: rgba(12,20,15,.86); display: grid; place-items: center; padding: 2.5rem 1.2rem; cursor: zoom-out; animation: fade-in .12s ease-out; }
.img-zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.45); background: #fff; }
.img-zoom-close { position: absolute; top: .8rem; right: 1rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.img-zoom-close:hover { background: rgba(255,255,255,.26); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
body.no-scroll { overflow: hidden; }
.role-form { margin: 0; } .role-form select { margin: 0; padding: .3rem .5rem; font-size: .85rem; max-width: 260px; }
.portal { max-width: 460px; margin: 1.5rem auto; text-align: center; }
.portal-badge { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px; background: var(--green-soft); display: grid; place-items: center; }
.portal-badge .ic { width: 32px; height: 32px; color: var(--green); }
.portal h1 { justify-content: center; font-size: 1.5rem; margin: 0 0 .4rem; } .portal > p.muted { margin: 0 0 1.4rem; }
.portal-card { text-align: left; } .portal-card h2 { font-size: 1.02rem; margin: 0 0 .2rem; }
.portal-card .auth-form { margin-top: .9rem; }
.portal-link { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.deck-resumed { text-align: center; margin: -.4rem 0 .8rem; }
.deck-nav { display: flex; align-items: center; gap: 1rem; }
.deck-nav .btn { min-width: 120px; justify-content: center; }
.deck-nav [hidden] { display: none !important; }
.deck-dots { flex: 1; display: flex; gap: 5px; align-items: center; justify-content: center; flex-wrap: wrap; }
.deck-dots span { flex: 1 1 0; max-width: 30px; height: 4px; border-radius: 99px; background: var(--line-2); cursor: default; transition: background .2s, transform .2s; }
.deck-dots span.seen { background: #a9d292; cursor: pointer; } .deck-dots span.seen:hover { background: var(--accent); }
.deck-dots span.on { background: var(--accent); transform: scaleY(1.8); }
.deck-finish { margin: 0; }
@media (max-width: 760px) {
  .deck { height: auto; }
  .slide { padding: 1.4rem 1.2rem; height: auto; min-height: 320px; border-radius: 14px; }
  .slide-body { flex-direction: column; gap: 1.1rem; }
  .slide-split .slide-img { flex: none; width: 100%; } .slide-split .slide-img img { max-height: 240px; margin: 0 auto; }
  .deck-nav { flex-wrap: wrap; } .deck-nav .btn { flex: 1; min-width: 0; } .deck-dots { order: -1; width: 100%; flex-basis: 100%; }
  .deck-finish { width: 100%; } .deck-finish .btn { width: 100%; }
}

/* toets en resultaat */
.lx-quiz { display: grid; gap: .9rem; margin-top: 1.2rem; }
.lx-quiz .lx-q, .lx-review .lx-q { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.05rem 1.15rem; }
.lx-q-head { display: flex; gap: .8rem; align-items: flex-start; }
.lx-q-n { width: 28px; height: 28px; border-radius: 9px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.lx-q-text { margin: 0 0 .15rem; font-size: 1rem; line-height: 1.45; font-weight: 600; }
.lx-choices { display: grid; gap: .45rem; margin: .85rem 0 0 36px; }
.lx-choice { display: flex; align-items: flex-start; gap: .65rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: .95rem; line-height: 1.4; transition: border-color .12s, background .12s; }
.lx-choice:hover { border-color: var(--accent); background: #fafdf8; }
.lx-choice input { margin: .15rem 0 0; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.lx-choice span { font-weight: 400; }
.lx-q > .muted.small { margin: .6rem 0 0 36px; }
.lx-choice:has(input:checked) { border-color: var(--accent); background: var(--green-soft); }
.lx-choice:has(input:disabled) { opacity: .5; cursor: default; }
.lx-order { list-style: none; counter-reset: step; margin: .85rem 0 0 36px; padding: 0; display: grid; gap: .45rem; }
.lx-order li { counter-increment: step; display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; background: #fff; border: 1px solid var(--line); border-radius: 11px; font-size: .95rem; cursor: grab; }
.lx-order li::before { content: counter(step); width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; flex: none; }
.lx-order li .grip { width: 10px; height: 16px; flex: none; background:
  radial-gradient(circle, var(--muted-2) 1.2px, transparent 1.3px) 0 0 / 5px 5px repeat; opacity: .8; }
.lx-order li.dragging { opacity: .45; border-color: var(--accent); }
.lx-order li .mv { margin-left: auto; width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: .9rem; line-height: 1; flex: none; }
.lx-order li .mv:hover { border-color: var(--accent); color: var(--accent); }
.lx-order li .mv + .mv { margin-left: .3rem; }
.lx-quiz-foot { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-top: .4rem; }
.lx-result { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 16px; padding: 1.6rem 1.3rem; text-align: center; margin-top: 1rem; }
.lx-result.ok { border-top-color: var(--green); } .lx-result.nok { border-top-color: var(--red); } .lx-result.review { border-top-color: var(--amber); }
.lx-result h1 { justify-content: center; font-size: 1.3rem; margin: 0 0 .3rem; } .lx-result p { color: var(--muted); margin: 0 0 1.1rem; }
.lx-score { width: 104px; height: 104px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-content: center; background: var(--grey-soft); }
.lx-result.ok .lx-score { background: var(--green-soft); } .lx-result.nok .lx-score { background: var(--red-soft); } .lx-result.review .lx-score { background: #fff6e3; }
.lx-score strong { display: block; font-size: 2.1rem; line-height: 1; } .lx-score span { font-size: .8rem; color: var(--muted); }
.lx-h2 { font-size: 1.05rem; margin: 1.8rem 0 .6rem; }
.lx-review { display: grid; gap: .7rem; }
.lx-review .lx-q.good { border-left: 4px solid var(--green); } .lx-review .lx-q.bad { border-left: 4px solid var(--red); }
.lx-review .q-options { margin-left: 36px; }
.lx-review .q-options li.chosen { font-weight: 600; } .lx-review .q-options li .badge { margin-left: .2rem; }
.q-order { list-style: none; margin: .7rem 0 0 36px; padding: 0; display: grid; gap: .3rem; }
.q-order li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.q-order li.ok .q-pos { background: var(--green-soft); color: var(--green); }
.q-order li.bad .q-pos { background: var(--red-soft); color: var(--red); }
.q-right { margin: .6rem 0 0 36px; line-height: 1.6; }
@media (max-width: 600px) { .lx-choices, .lx-order, .lx-review .q-options { margin-left: 0; } .lx-quiz-foot .btn { width: 100%; } }

.lock-form { margin: .4rem 0 0; } .lock-form .btn-link { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .82rem; color: var(--muted); }
.lock-form .btn-link:hover { color: var(--accent); } .lock-form .ic { width: 14px; height: 14px; }
.lock-badge { width: 52px; height: 52px; margin: 0 auto .9rem; border-radius: 14px; background: var(--green-soft); display: grid; place-items: center; }
.lock-badge .ic { width: 26px; height: 26px; color: var(--green); }
.lock-who { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; margin: 0 0 1rem; background: var(--grey-soft); border-radius: 10px; }
.lock-who span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.lock-who small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; }
.lock-who .avatar { width: 34px; height: 34px; font-size: .75rem; flex: none; }

.lx-open textarea { width: 100%; margin: .85rem 0 0 36px; max-width: calc(100% - 36px); font: inherit; font-size: .95rem; padding: .7rem .85rem; border: 1px solid var(--line-2); border-radius: 10px; }
.lx-intro { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: .8rem 1rem; margin: 0 0 1rem; line-height: 1.55; }
.q-explain { display: flex; gap: .55rem; margin: .7rem 0 0 36px; padding: .6rem .8rem; background: var(--green-soft); border-radius: 8px; font-size: .88rem; color: var(--accent-deep); }
.q-explain .ic { width: 15px; height: 15px; flex: none; margin-top: .15rem; }
.ready-card { border-left: 4px solid var(--amber); } .ready-card.good { border-left-color: var(--green); }
.ready-list { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .35rem; }
.ready-list li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.ready-list li .ic { width: 16px; height: 16px; flex: none; }
.ready-list li.ok { color: var(--muted); } .ready-list li.ok .ic { color: var(--green); }
.ready-list li.todo { color: var(--text); font-weight: 500; } .ready-list li.todo .ic { color: var(--amber); }
.ready-list a { margin-left: auto; font-size: .82rem; font-weight: 600; }

/* ---------- Opleiding samenstellen (dia's en vragen) ---------- */
.editor-head { margin: 1.4rem 0 .6rem; } .editor-head h2 { font-size: 1.05rem; margin: 0 0 .2rem; }
.slide-editor { display: grid; gap: .8rem; }
.slide-edit { border-left: 4px solid var(--accent); }
.slide-edit-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.slide-no { width: 26px; height: 26px; border-radius: 8px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.slide-tools { display: flex; gap: .25rem; }
.slide-edit textarea { min-height: 120px; font-family: inherit; }
.slide-imgs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 .6rem; }
.slide-img-item { position: relative; margin: 0; width: 120px; height: 90px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--grey-soft); }
.slide-img-item img { width: 100%; height: 100%; object-fit: contain; display: block; }
.slide-img-item.is-video, .slide-img-item.is-audio { display: grid; place-items: center; background: var(--green-soft); }
.media-tag { display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; color: var(--green); }
.media-tag .ic { width: 20px; height: 20px; }
.img-del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(17,24,39,.72); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.file-pick { display: inline-flex; align-items: center; gap: .5rem; margin: 0; cursor: pointer; font-size: .85rem; color: var(--accent-deep); }
.file-pick > span { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .7rem; border: 1px dashed var(--line-2); border-radius: 8px; }
.file-pick:hover > span { border-color: var(--accent); background: #fafdf8; }
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-pick.has > span { border-style: solid; border-color: var(--accent); background: var(--green-soft); }
.opt-list { display: grid; gap: .35rem; max-width: 760px; }
.opt-row { display: flex; align-items: center; gap: .5rem; }
.opt-row input[data-text] { flex: 1; margin: 0; padding: .45rem .6rem; }
.opt-grip { width: 18px; text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); }
.opt-ok { position: relative; margin: 0; flex: none; width: 22px; height: 22px; }
.opt-ok input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt-ok span { display: block; width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 6px; background: #fff; cursor: pointer; transition: background .12s, border-color .12s; }
.opt-ok:hover span { border-color: var(--accent); }
.opt-ok input:checked + span { background: var(--accent); border-color: var(--accent); }
.opt-ok input:checked + span::after { content: ''; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.opt-tools { display: flex; gap: .2rem; flex: none; }
.opt-tools .tool { border-color: transparent; background: none; color: var(--muted-2); padding: .3rem .4rem; }
.opt-tools .tool:hover { background: var(--grey-soft); color: var(--text); }
.opt-tools [data-opt-del]:hover { background: var(--red-soft); color: var(--red); }
.opt-bucket { flex: none; width: 170px; margin: 0; padding: .45rem .5rem; }
.opt-list:not(.as-match) .opt-bucket { display: none; }
.as-match .opt-ok { display: none; }
[data-bins] input[data-bin-text] { flex: 1; margin: 0; padding: .45rem .6rem; }
[data-bins] .opt-grip { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent-deep); }
.as-order .opt-ok { display: none; } .as-single .opt-ok span { border-radius: 50%; }
.as-single .opt-ok input:checked + span::after { left: 8px; top: 4px; }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; background: #fff; border: 1px solid var(--line); padding: .3rem .5rem; border-radius: 7px; color: var(--muted); cursor: pointer; font: inherit; font-size: .82rem; line-height: 1; }
.tool:hover { border-color: var(--accent); color: var(--accent); } .tool .ic { width: 14px; height: 14px; }
.tool.danger { color: var(--red); } .tool.danger:hover { border-color: var(--red); } .tool[disabled] { opacity: .35; cursor: default; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; } .grid-3 .span-2 { grid-column: span 2; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } .grid-3 .span-2 { grid-column: auto; } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs button, .tabs a { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: .6rem .9rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.on, .tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .cnt.warn { background: var(--red); color: #fff; }
.tabs .cnt { background: var(--grey-soft); color: var(--muted); border-radius: 99px; padding: 0 .4rem; font-size: .72rem; margin-left: .3rem; }
.tab-pane { display: none; } .tab-pane.on { display: block; }

/* ---------- Flash ---------- */
.flash { margin: 1rem 1.5rem 0; padding: .7rem 1rem; border-radius: 8px; font-size: .9rem; border: 1px solid; }
.flash-success { background: var(--green-soft); color: var(--green); border-color: #86efac; }
.flash-error { background: var(--red-soft); color: var(--red); border-color: #fca5a5; }
.flash-info { background: var(--blue-soft); color: var(--blue); border-color: #93c5fd; }
.bare .flash { margin: 0 0 1rem; }
.alert { padding: .8rem 1rem; border-radius: 8px; font-size: .9rem; border: 1px solid; margin-bottom: 1rem; }
.alert-warn { background: var(--amber-soft); color: var(--amber); border-color: #fcd34d; }
.alert-info { background: var(--blue-soft); color: var(--blue); border-color: #93c5fd; }
.alert-error { background: var(--red-soft); color: var(--red); border-color: #fca5a5; }
.alert ul { margin: .3rem 0 0 1.2rem; padding: 0; }

/* ---------- Detail view ---------- */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; font-size: .9rem; margin: 0; }
.dl dt { color: var(--muted); font-weight: 500; } .dl dd { margin: 0; }
.dl-3 { grid-template-columns: repeat(3, max-content 1fr); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: .6rem 0 .6rem 1.2rem; border-left: 2px solid var(--line); position: relative; font-size: .88rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .95rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline .when { color: var(--muted); font-size: .78rem; }
.timeline .body { margin-top: .2rem; white-space: pre-wrap; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.file-list li { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; display: flex; gap: .6rem; align-items: center; font-size: .85rem; }
.file-list .thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; background: var(--grey-soft); }
.file-list .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 1.4rem 1rem 1.2rem; text-align: center; color: var(--muted); font-size: .88rem; cursor: pointer; background: #fafbf9; transition: border-color .15s, background .15s; }
.dropzone::before { content: ""; display: block; width: 26px; height: 26px; margin: 0 auto .4rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17V6M7 11l5-5 5 5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17V6M7 11l5-5 5 5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .6; }
.dropzone:hover { border-color: var(--accent); color: var(--accent-deep); }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { display: none; }
.dropzone .chosen { margin-top: .5rem; font-size: .8rem; color: var(--text); }
.head-meta { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.head-meta .num { font-family: ui-monospace, Menlo, monospace; font-size: 1.15rem; font-weight: 700; }
.section-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin: 1.25rem 0 .6rem; }
.repeat-table { table-layout: fixed; width: 100%; } .repeat-table th { white-space: normal; } .repeat-table td { padding: .25rem .3rem; } .repeat-table input, .repeat-table select { margin: 0; padding: .4rem .5rem; font-size: .88rem; width: 100%; min-width: 0; }
.repeat-table .rm, .rep-item .rm { color: var(--muted); background: none; border: 0; cursor: pointer; font-size: 1.2rem; line-height: 1; } .repeat-table .rm:hover, .rep-item .rm:hover { color: var(--red); }
.rep-items { display: grid; gap: .75rem; }
.rep-item { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 2.4rem 0 1rem; background: #fafbf9; }
.rep-item .rm { position: absolute; top: .5rem; right: .6rem; }
.rep-item .form-grid label { margin-bottom: .8rem; } .rep-item .rep-check { margin-top: 1.7rem; }

/* ---------- Charts (CSS bars) ---------- */
.bars { display: grid; gap: .4rem; font-size: .85rem; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr max-content; gap: .6rem; align-items: center; }
.bar-row .bar { height: 14px; background: var(--grey-soft); border-radius: 4px; overflow: hidden; }
.bar-row .bar > span { display: block; height: 100%; background: var(--accent); }
.bar-row .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cols { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 1rem; }
.cols .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .7rem; color: var(--muted); }
.cols .col > b { width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.cols .col > b::after { content: attr(data-v); position: absolute; top: -1.1rem; left: 0; right: 0; text-align: center; font-size: .7rem; color: var(--text); }
.cols .col > b.nc { background: var(--amber); } .cols .col > b.gc { background: var(--red); }
.cols .col.stack > b { border-radius: 0; } .cols .col.stack > b:first-of-type { border-radius: 3px 3px 0 0; }
.legend { display: flex; gap: 1rem; font-size: .78rem; color: var(--muted); margin-top: .5rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .3rem; vertical-align: middle; }

/* ---------- Auth ---------- */
body.bare { background: var(--bg); background-image: none; }
.auth { display: grid; grid-template-columns: minmax(320px, 46%) 1fr; min-height: calc(100 * var(--uvh)); }
.auth-side { background: linear-gradient(160deg, #2f6b1c 0%, var(--accent) 70%, #6cb84d 100%); color: #fff; padding: 3rem 3.25rem; display: flex; flex-direction: column; gap: 2rem; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.07); }
.auth-logo { width: 300px; max-width: 100%; height: auto; }
.auth-side-text h1 { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .5rem; color: #fff; }
.auth-side-text p { font-size: 1.05rem; opacity: .92; max-width: 34ch; margin: 0; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; max-width: 40ch; }
.auth-points li { padding-left: 1.6rem; position: relative; font-size: .95rem; opacity: .95; }
.auth-points li::before { content: "✓"; position: absolute; left: 0; top: .1rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: rgba(255,255,255,.2); font-size: .7rem; display: grid; place-items: center; font-weight: 700; }
.auth-foot { margin-top: auto; font-size: .78rem; opacity: .7; }
.auth-main { display: grid; place-items: center; padding: 2rem 1.5rem; }
.auth-box { width: 100%; max-width: 380px; }
.auth-logo-small { display: none; width: 240px; margin: 0 auto 1.5rem; }
.auth-box h2 { font-size: 1.6rem; margin-bottom: .25rem; }
.auth-intro { margin-bottom: 1.5rem; }
.auth-form label > input { padding: .7rem .8rem; font-size: 1rem; }
.btn-lg { padding: .8rem 1rem; font-size: 1rem; font-weight: 600; margin: .5rem 0 1rem; }
.bare .flash { margin: 0 0 1rem; }
.auth-card h2 { margin-bottom: 1rem; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-logo-small { display: block; } .auth-main { align-items: start; padding-top: 3rem; } }

/* ---------- Pagination ---------- */
.pager { display: flex; gap: .3rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.pager a, .pager span { padding: .3rem .65rem; border: 1px solid var(--line-2); border-radius: 6px; font-size: .85rem; }
.pager span.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Print ---------- */
@media print { .sidebar, .topbar, .nav-backdrop, .no-print { display: none !important; } .main { margin: 0; } .content { padding: 0; max-width: none; } .card { box-shadow: none; break-inside: avoid; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } .card-narrow { max-width: none; } }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid-3, .form-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main { grid-template-columns: 1fr; } .dl-3 { grid-template-columns: max-content 1fr; } }
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; } body.nav-open .sidebar { transform: none; } body.nav-open .nav-backdrop { display: block; }
  .main { margin-left: 0; } .burger { display: block; } .content { padding: 1rem; } .topbar { padding: .7rem 1rem; gap: .6rem; }
  .topbar-search input { width: 180px; } .page-title { font-size: 1.1rem; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4, .form-grid, .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; } .span-2, .span-3 { grid-column: auto; }
  .content { padding: .8rem; } .page-title { font-size: 1rem; } .kpis { grid-template-columns: repeat(2, 1fr); } .bar-row { grid-template-columns: 80px 1fr max-content; }
  .filters { flex-direction: column; align-items: stretch; } .filters label, .filters .btn { width: 100%; }
  .topbar { flex-wrap: wrap; } .topbar-search { order: 3; width: 100%; } .topbar-search input { width: 100%; }
  .page-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-actions { order: 4; width: 100%; display: flex; gap: .4rem; flex-wrap: wrap; } .topbar-actions .btn, .topbar-actions form { flex: 1 1 auto; } .topbar-actions .btn { width: 100%; justify-content: center; }
  .head-meta { gap: .4rem; } .esc-level { grid-template-columns: 1fr; } .esc-level > b { grid-row: auto; }
  .card { padding: .9rem; } .prog-steps { grid-template-columns: repeat(5, 1fr); }
}

/* Tussenvragen in de presentatie: oefenen zonder punten */
.slide-exercise.on { justify-content: center; gap: .9rem; }   /* verbergen blijft bij .slide, anders staan alle oefeningen tegelijk op het scherm */
.slide-exercise .lx-q { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.05rem 1.15rem; max-width: 760px; width: 100%; margin: 0 auto; }
.slide-exercise .lx-q-text { font-size: 1.05rem; font-weight: 600; margin: 0 0 .9rem; }
.slide-exercise .lx-choices { display: grid; gap: .5rem; }
.slide-exercise .lx-order { margin-left: 0; }
.slide-exercise .lx-order li { cursor: default; }
.slide-exercise .lx-open textarea { width: 100%; }

/* ---------- Sorteervraag: etiketten in de juiste bak ---------- */
.mx { display: grid; gap: .8rem; margin-top: .3rem; }
.mx-hint { margin: 0; }
.mx-pool { display: flex; flex-wrap: wrap; gap: .45rem; min-height: 54px; padding: .55rem; border: 1.5px dashed var(--line-2);
  border-radius: 12px; background: var(--grey-soft); align-content: flex-start; transition: border-color .12s, background .12s; }
.mx-pool.is-over { border-color: var(--accent); background: var(--accent-soft); }
.mx.is-done .mx-pool { min-height: 0; padding: .25rem; border-style: solid; border-color: transparent; background: none; }
.mx-card { font: inherit; font-size: .92rem; line-height: 1.3; text-align: left; padding: .5rem .8rem; border: 1px solid var(--line-2);
  border-radius: 999px; background: #fff; color: var(--text); cursor: grab; box-shadow: 0 1px 2px rgba(16,24,40,.06);
  transition: transform .12s, border-color .12s, background .12s, box-shadow .12s; }
.mx-card:hover { border-color: var(--accent); }
.mx-card.is-picked { border-color: var(--accent); background: var(--accent); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(82,160,53,.3); }
.mx-card.is-dragging { opacity: .45; }
.mx.is-picking .mx-bin { border-color: var(--accent); background: var(--accent-soft); }
.mx-bins { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.mx-bin { display: flex; flex-direction: column; gap: .45rem; padding: .6rem; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; transition: border-color .12s, background .12s; }
.mx-bin-head { display: flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--accent-deep); }
.mx-bin-no { flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 7px;
  background: var(--accent-soft); font-size: .75rem; }
.mx-drop { display: flex; flex-wrap: wrap; align-content: flex-start; gap: .4rem; min-height: 46px; padding: .3rem;
  border-radius: 9px; background: var(--grey-soft); transition: background .12s; }
.mx-drop.is-over { background: var(--accent-soft); }
.mx.is-checked .mx-card { cursor: default; }
.mx-card.is-ok { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.mx-card.is-nok { border-color: var(--red); background: var(--red-soft); color: var(--red); text-decoration: line-through; }
.mx-card.is-nok[data-right]::after { content: " → " attr(data-right); display: inline-block; text-decoration: none; color: var(--green); font-weight: 700; }
@media (max-width: 640px) { .mx-bins { grid-template-columns: 1fr 1fr; } }

/* Hetzelfde antwoord, nagekeken, in het overzicht achteraf */
.q-match { list-style: none; margin: .7rem 0 0 44px; padding: 0; display: grid; gap: .35rem; }
.q-match li { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--muted); }
.q-match li i { width: 15px; height: 15px; border-radius: 4px; flex: none; background: var(--green); }
.q-match li.bad i { background: var(--red); }
.q-match .q-card { font-weight: 600; color: var(--text); }
.q-match .q-in { padding: .1rem .5rem; border-radius: 999px; background: var(--grey-soft); }
.q-match li.bad .q-in { background: var(--red-soft); color: var(--red); text-decoration: line-through; }


.lx-ex-foot { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-top: .9rem; }
.lx-ex-out { margin-top: .85rem; padding: .7rem .85rem; border-radius: 11px; font-size: .92rem; line-height: 1.45; }
.lx-ex-out.is-ok { background: var(--green-soft); color: #2f6b1c; }
.lx-ex-out.is-nok { background: #fdecec; color: #8c2b2b; }
.lx-ex-out.is-open { background: var(--bg-2, #f6f7f9); color: var(--muted); }
.slide-exercise .lx-choice.is-ok { border-color: var(--green); background: var(--green-soft); }
.slide-exercise .lx-choice.is-nok { border-color: var(--red); background: #fdecec; }
.slide-exercise .lx-choice.is-nok input { accent-color: var(--red); }
.lx-order li.is-ok { border-color: var(--green); background: var(--green-soft); }
label.is-off { opacity: .45; }
label.is-need select { border-color: var(--amber); }

/* Aanwezigheidslijst van een fysieke opleiding. Aanduiden gebeurt met pillen in plaats van met
   keuzelijsten: dat tikt vlotter aan op een tablet in de zaal en toont in één oogopslag wie er was.
   Functie en entiteit staan onder de naam, zodat er geen lege kolommen overblijven. */
.att-tbl td { vertical-align: middle; }
.att-tbl .pills { margin: 0; flex-wrap: nowrap; }
.att-tbl .pill { padding: .3rem .7rem; font-size: .82rem; white-space: nowrap; }
.att-tbl .input { margin: 0; padding: .4rem .6rem; font-size: .88rem; min-width: 8rem; }
.att-tbl td:nth-child(3) { width: 1%; }
.att-absent:has(input:checked) { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.att-excused:has(input:checked) { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.att-foot { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; }
@media (max-width: 760px) {
  .att-tbl .pills { flex-wrap: wrap; }
  .att-tbl .input { min-width: 6rem; }
}

/* Hulpcentrum (/help): inhoudstafel links die meeschuift, tekst rechts, zoeken bovenaan. */
.hlp { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.hlp-toc { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; padding: .9rem 1rem; }
.hlp-toc > strong { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.hlp-toc ol { list-style: none; margin: 0; padding: 0; }
.hlp-toc ul.plain { list-style: none; margin: .4rem 0 0; padding: .4rem 0 0; border-top: 1px solid var(--line); }
.hlp-toc a { display: block; padding: .28rem .45rem; border-radius: 7px; font-size: .87rem; line-height: 1.35; color: var(--text); text-decoration: none; }
.hlp-no { color: var(--muted-2); }
.hlp-toc a:hover { background: var(--grey-soft); }
.hlp-toc a.on { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.hlp-body > .card { margin-bottom: 1rem; scroll-margin-top: 1rem; }
.hlp-intro p { color: var(--muted-2); }
.hlp-sec h2 { margin: 0 0 .15rem; font-size: 1.15rem; }
.hlp-n { color: var(--accent); }
.hlp-where { color: var(--muted); font-size: .84rem; padding-bottom: .5rem; margin-bottom: .7rem; border-bottom: 2px solid var(--accent); }
.hlp-lead { color: var(--muted-2); }
.hlp-sec h3 { margin: 1.1rem 0 .35rem; font-size: .95rem; color: var(--accent-deep); }
.hlp-sec ul, .hlp-sec ol { margin: .3rem 0 .7rem; padding-left: 1.2rem; }
.hlp-sec li { margin-bottom: .25rem; }
.hlp-sec .tbl { margin: .5rem 0 .8rem; }
.hlp-sec .tbl td:first-child { font-weight: 600; width: 28%; }
.hlp-note { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: .6rem .8rem; border-radius: 0 8px 8px 0; margin: .7rem 0; }
.hlp-faq { border-bottom: 1px solid var(--line); padding: .55rem 0; }
.hlp-faq:last-child { border-bottom: 0; }
.hlp-faq summary { cursor: pointer; font-weight: 600; }
.hlp-faq p { margin: .45rem 0 .15rem; color: var(--muted-2); }
.hlp mark { background: var(--amber-soft); color: inherit; border-radius: 3px; padding: 0 .1em; }
.filters label.grow { flex: 1 1 18rem; }
@media (max-width: 900px) {
  .hlp { grid-template-columns: 1fr; }
  .hlp-toc { position: static; max-height: none; }
}
