/* BKR werfplatform in de Yexa-huisstijl (zelfde tokens en schil als rotaramen.yexa.be). Lettertypes staan op deze server. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/geist-300-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo-400-900-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-400-latin.woff2") format("woff2"); }

:root {
  --ink: #0f1c19;
  --ink-2: #2a3b37;
  --muted: #5b6b67;
  --line: #d5e2dd;
  --bg: #eaf5f1;
  --surface: #ffffff;
  --accent: #0f1c19;
  --accent-ink: #ffffff;
  --accent-soft: #d3f1ea;
  --link: #077366;
  --mint: #1fd6c2;
  --warn: #9a3412;
  --radius: 8px;
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 8px; }
.lead { color: var(--ink-2); font-size: 17px; max-width: 64ch; margin-top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pre { white-space: pre-wrap; }
.mono { font-family: var(--mono); font-size: 13px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* ---------- Aanmelden: links yexa × BKR, rechts de code ---------- */
.login { margin: 0; background: var(--surface); }
.login-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; min-height: 100dvh; }
.login-merk { display: flex; flex-direction: column; gap: 32px; padding: 48px 56px; background: var(--ink); color: #d9e6e2; }
.login-lockup { display: flex; align-items: center; gap: 16px; }
.login-lockup img { display: block; width: auto; }
.login-yexa { height: 34px; }
.login-bkr { height: 64px; }
.login-x { font-size: 24px; font-weight: 300; line-height: 1; color: #81918e; }
.login-merk-tekst { margin: 32px 0 0; max-width: 22ch; font-family: var(--display); font-size: clamp(28px, 3vw, 40px); font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; color: #eaf5f1; }
.login-merk-voet { margin: auto 0 0; font-size: 14px; color: #a7b8b3; }
.login-main { display: grid; grid-template-rows: 1fr auto; justify-items: center; padding: 48px 56px 32px; }
.login-vak { align-self: center; width: 100%; max-width: 400px; }
.login h1 { margin: 0; font-size: 32px; }
.login-lead { margin: 8px 0 0; color: var(--ink-2); }
.login-form { margin-top: 32px; display: grid; gap: 8px; }
.login-form label { font-weight: 650; }
.login-form input:not([type="hidden"]) { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #869490; border-radius: var(--radius); padding: 10px 12px; min-height: 48px; font-size: 17px; letter-spacing: 0.04em; }
.login-form input:focus { border-color: var(--link); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.login-form input[aria-invalid="true"] { border-color: var(--warn); }
.login-err { margin: 0; color: var(--warn); font-size: 15px; font-weight: 600; }
.login-form button { justify-self: stretch; margin-top: 16px; min-height: 48px; font: inherit; font-weight: 650; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); border-radius: 999px; cursor: pointer; }
.login-form button:hover { filter: brightness(1.15); }
.login-lead strong { overflow-wrap: anywhere; }
.login-opnieuw { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 16px; }
.login-link { font: inherit; font-size: 15px; color: var(--link); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.login-team { display: grid; gap: 12px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.login-passkey { width: 100%; font: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; font-weight: 650; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid #869490; border-radius: 999px; }
.login-passkey:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.login-passkey img { display: block; }
.login-passkey:disabled { opacity: 0.6; cursor: wait; }
.login-passkey-yexa { min-height: 44px; border-color: var(--line); color: var(--ink-2); font-weight: 600; font-size: 15px; }
.login-team .login-err:empty { display: none; }
.login-foot { width: 100%; max-width: 400px; padding-top: 32px; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) {
  .login-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-merk { padding: 20px 16px; gap: 0; }
  .login-merk-tekst, .login-merk-voet { display: none; }
  .login-yexa { height: 28px; }
  .login-bkr { height: 48px; }
  .login-x { font-size: 20px; }
  .login-lockup { gap: 12px; }
  .login-main { padding: 40px 16px 24px; }
  .login-vak { align-self: start; }
  .login h1 { font-size: 28px; }
}

/* ---------- Werkruimte: zijbalk + bovenbalk (zoals Rota en het personeelsportaal) ---------- */
.is-ws { background: var(--bg); }
.ws { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.ws-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; background: var(--ink); color: #eaf5f1; display: flex; flex-direction: column; padding: 20px 12px 16px; }
.ws-logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; text-decoration: none; }
.ws-logo img { display: block; width: auto; height: 24px; }
.ws-logo img + .ws-x + img { height: 40px; }
.ws-x { font-size: 16px; font-weight: 300; line-height: 1; color: #81918e; }
.ws-sec { margin-top: 12px; }
.ws-sec-t { padding: 8px 10px 4px; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: #81918e; }
.ws-side ul { list-style: none; margin: 0; padding: 0; }
.ws-side li a { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: #d9e6e2; text-decoration: none; font-size: 15px; font-weight: 500; }
.ws-side li a:hover { background: rgba(234, 245, 241, 0.06); color: #fff; }
.ws-side li a.is-later { color: #93a39f; }
.ws-side li a[aria-current="page"] { background: rgba(31, 214, 194, 0.14); color: #fff; }
.ws-side li a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mint); }
.ws-side a:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; }
.ws-later { font: 11px/1 var(--mono); color: #81918e; }
.ws-user { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(234, 245, 241, 0.12); }
#ws-me { display: flex; gap: 10px; align-items: center; padding: 4px 8px 8px; }
.ws-av { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--mint); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.ws-me-t { display: grid; line-height: 1.25; }
.ws-me-t strong { font-size: 14px; }
.ws-me-t small { color: #81918e; font-size: 12px; }
.ws-out { display: inline-block; margin-top: 4px; padding: 4px 8px; font-size: 14px; color: #b9c9c4; }
.ws-out:hover { color: #fff; }

.ws-main { min-width: 0; display: flex; flex-direction: column; }
.ws-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 32px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.ws-title { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; margin: 0; white-space: nowrap; }
.ws-search { margin-left: auto; position: relative; width: min(360px, 40vw); }
.ws-search input { width: 100%; font: inherit; font-size: 15px; padding: 8px 44px 8px 14px; min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); }
.ws-search input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
.ws-kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 12px var(--mono); color: var(--muted); pointer-events: none; }
#ws-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 28, 25, 0.12); list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow: auto; z-index: 10; }
#ws-results a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 550; }
#ws-results a:hover { background: var(--bg); }
#ws-results small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.ws-cam { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.ws-cam:hover { background: #1f3330; }
.ws-burger, .ws-scrim { display: none; }

/* ---------- Inhoud ---------- */
#ws-view { padding: 32px; max-width: 1280px; width: 100%; outline: none; }
.ws-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.ws-head h1 { font-size: clamp(26px, 3vw, 34px); }
.ws-head .lead { margin-top: 8px; max-width: 72ch; }
.ws-head-act { display: flex; align-items: center; gap: 12px; }
.ws-back { margin: 0 0 8px; font-size: 14px; }
.ws-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin-bottom: 24px; min-width: 0; }
.ws-panel h2 { font-size: 17px; margin: 0 0 12px; }
.ws-panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.ws-panel-h h2 { margin: 0; }
.ws-panel-h a { font-size: 14px; }
.ws-panel-t { padding-top: 8px; padding-bottom: 8px; }
.ws-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 24px; }
.ws-two-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: stretch; }
.ws-two > .ws-panel, .ws-col > .ws-panel { margin-bottom: 0; }
.ws-col { display: grid; gap: 24px; }
.ws-p { font-size: 15px; color: var(--ink-2); max-width: 64ch; }
.ws-muted { color: var(--muted); }
.ws-empty { color: var(--muted); font-size: 15px; padding: 8px 0; margin: 0; }
.ws-url { font: 15px var(--mono); margin: 12px 0; overflow-wrap: anywhere; }
.ws-bul { padding-left: 20px; margin: 8px 0 0; font-size: 15px; }
.ws-bul li { margin-bottom: 6px; }
.ws-later-p { max-width: 760px; }

/* Tip: passkey instellen */
.ws-tip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; padding: 16px 20px; border: 1px solid var(--link); border-radius: 12px; background: var(--accent-soft); }
.ws-tip p { margin: 0; max-width: 72ch; font-size: 15px; color: var(--ink-2); }
.ws-tip strong { color: var(--ink); }

/* Mijn account en gebruikers */
.ws-pk { list-style: none; margin: 0; padding: 0; }
.ws-pk li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ws-pk-n { font-weight: 600; }
.ws-pk-n small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.ws-pk-d { grid-column: 1; color: var(--muted); font-size: 13px; }
.ws-pk .ws-btn-s { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.ws-pk-act { margin: 16px 0 0; }
.ws-table tr.is-uit td { color: var(--muted); }
.ws-chk { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 15px; }
.ws-chk input { width: 18px; height: 18px; accent-color: var(--link); }
.ws-me-a { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; border-radius: 8px; }
.ws-me-a:hover strong { text-decoration: underline; }

/* Begroetingsbalk met tellers */
.ws-rail { background: var(--ink); color: #eaf5f1; border-radius: 16px; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.ws-rail-g { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.015em; margin: 0; }
.ws-rail-d { color: #9fb0ab; font-size: 14px; margin: 4px 0 0; }
.ws-rail-k { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.ws-rail-k a { display: grid; text-decoration: none; color: #eaf5f1; }
.ws-rail-v { font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ws-rail-k a:first-child .ws-rail-v { color: var(--mint); }
.ws-rail-l { font-size: 13px; color: #9fb0ab; }
.ws-rail-k a:hover .ws-rail-l { color: #fff; }

/* Werven in een lijst (Vandaag) */
.ws-wl { list-style: none; margin: 0; padding: 0; }
.ws-wl li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ws-wl li:last-child { border-bottom: 0; }
.ws-wl a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ws-wl a:hover { text-decoration: underline; }
.ws-wl-m { grid-column: 1; color: var(--muted); font-size: 13px; }
.ws-wl-n { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 12px var(--mono); color: var(--muted); }

/* Knoppen en velden */
.ws-btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: 15px; padding: 10px 20px; min-height: 44px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap; }
.ws-btn:hover { background: #1f3330; }
.ws-btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.ws-btn-ghost:hover { background: var(--bg); }
.ws-btn-ghost[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--link); }
.ws-btn-s { display: inline-flex; align-items: center; font: inherit; font-size: 13px; font-weight: 600; padding: 4px 12px; min-height: 32px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; text-decoration: none; }
.ws-btn-s:hover { background: var(--bg); }
.ws-link { font: inherit; font-size: 14px; color: var(--link); background: none; border: 0; padding: 2px 0; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.ws-filter { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 24px; }
.ws-filter input, .ws-sel { font: inherit; font-size: 15px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; min-height: 40px; background: #fff; color: var(--ink); }
.ws-filter input { width: min(340px, 100%); }
.ws-count { margin-left: auto; font: 13px var(--mono); color: var(--muted); }
.ws-lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 12px; margin-bottom: 4px; }
.ws-in { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.ws-in:focus, .ws-sel:focus, .ws-filter input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.ws-in { resize: vertical; min-height: 88px; }
.ws-err { color: var(--warn); font-weight: 600; font-size: 14px; margin: 8px 0 0; min-height: 0; }
.ws-err:empty { display: none; }

/* Labels */
.ws-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.ws-chip.is-good { background: var(--accent-soft); color: var(--link); }
.ws-chip.is-warning { background: #fff1d1; color: #714500; }
.ws-chip.is-done { background: #e6ecea; color: var(--ink-2); }
.ws-no { color: #7c8c88; font-size: 13px; }

/* Tabellen en rijen */
.ws-table-wrap { overflow-x: auto; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ws-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 12px 16px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ws-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ws-table tbody tr:last-child td { border-bottom: 0; }
.ws-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-table td small { display: block; color: var(--muted); font: 12px var(--mono); margin-top: 2px; }
.ws-table a { color: var(--ink); font-weight: 600; }
.ws-rows { border-top: 1px solid var(--line); }
.ws-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ws-row > span:first-child { color: var(--muted); }

/* ---------- Foto's: per dag een raster ---------- */
.fg-dag { margin-bottom: 32px; }
.fg-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; font-weight: 650; font-size: 16px; }
.fg-n { font: 12px var(--mono); color: var(--muted); font-weight: 400; }
.fg-seldag { margin-left: auto; font-size: 14px; }
.fg { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.fg-s { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.fg-i { position: relative; display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #dfe9e5; cursor: pointer; aspect-ratio: 4 / 3; text-align: left; color: #fff; font: inherit; }
.fg-i img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fg-c { position: absolute; left: 0; right: 0; bottom: 0; display: grid; padding: 24px 10px 8px; background: linear-gradient(to top, rgba(15, 28, 25, 0.82), rgba(15, 28, 25, 0)); line-height: 1.3; }
.fg-t { font: 12px var(--mono); color: #d9e6e2; }
.fg-a { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fg-geen { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255, 241, 209, 0.95); color: #714500; }
.fg-i:hover img { filter: brightness(1.06); }
.fg-i:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.fg-chk { display: none; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(15, 28, 25, 0.35); }
.is-sel .fg-chk { display: block; }
.is-sel .fg-i.is-on { outline: 3px solid var(--mint); outline-offset: -3px; }
.is-sel .fg-i.is-on .fg-chk { background: var(--mint); border-color: var(--ink); }
.is-sel .fg-i.is-on .fg-chk::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ws-selbar { position: sticky; bottom: 16px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 12px 32px rgba(15, 28, 25, 0.3); }
.ws-selbar #f-bar-n { font-weight: 600; margin-right: auto; font-variant-numeric: tabular-nums; }
.ws-selbar .ws-btn { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.ws-selbar .ws-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }

/* Eén foto: groot links, gegevens rechts */
.ws-foto { border: 0; padding: 0; width: min(1280px, calc(100vw - 32px)); height: min(820px, calc(100vh - 32px)); max-width: none; max-height: none; border-radius: 16px; overflow: hidden; background: #0b1412; color: var(--ink); box-shadow: 0 24px 64px rgba(15, 28, 25, 0.4); }
.ws-foto[open] { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.ws-foto::backdrop { background: rgba(15, 28, 25, 0.7); }
.wf-stage { position: relative; min-height: 0; overflow: hidden; background: #0b1412; }
.wf-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wf-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.9); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.wf-nav svg, .wf-close svg { width: 22px; height: 22px; }
.wf-nav:disabled { opacity: 0.3; cursor: default; }
.wf-prev { left: 16px; }
.wf-next { right: 16px; }
.wf-side { background: #fff; padding: 20px 24px; overflow-y: auto; }
.wf-side-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.wf-when { margin: 0; font-weight: 650; font-size: 17px; }
.wf-close { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.wf-side .ws-row { grid-template-columns: 80px minmax(0, 1fr); font-size: 14px; }
.wf-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* Venster werf */
.ws-dlg { border: 0; border-radius: 16px; padding: 0; width: min(600px, calc(100vw - 32px)); box-shadow: 0 24px 64px rgba(15, 28, 25, 0.25); color: var(--ink); }
.ws-dlg::backdrop { background: rgba(15, 28, 25, 0.45); }
.ws-dlg form { padding: 24px; }
.ws-dlg h2 { font-size: 20px; margin: 0 0 4px; }
.ws-dlg-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ws-dlg-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
.ws-dlg-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
#ws-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; max-width: min(560px, calc(100vw - 32px)); z-index: 60; box-shadow: 0 12px 32px rgba(15, 28, 25, 0.3); }

/* ---------- Kaart (Yexa-kaartstijl zoals bij Rota) ---------- */
.ws-kaart { height: min(680px, calc(100vh - 220px)); min-height: 420px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f3f8f6; }
.ws-kaart-s { height: 100%; min-height: 280px; border: 0; border-radius: 8px; }
.ws-panel-map { position: relative; padding: 8px; }
.ws-map-leeg { position: absolute; left: 24px; bottom: 20px; z-index: 500; margin: 0; padding: 6px 12px; border-radius: 8px; background: #fff; font-size: 14px; color: var(--muted); box-shadow: 0 2px 8px rgba(15, 28, 25, 0.12); }
.leaflet-container { font: 13px/1.4 var(--font); }
.ws-kaart .leaflet-bar { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 28, 25, 0.06); }
.ws-kaart .leaflet-bar a { width: 36px; height: 36px; font: 400 20px/34px var(--font); color: var(--ink); background: #fff; border-bottom: 1px solid var(--line); border-radius: 0; }
.ws-kaart .leaflet-bar a:last-child { border-bottom: 0; }
.ws-kaart .leaflet-control-attribution { background: rgba(243, 248, 246, 0.86); color: var(--muted); font: 11px/1.5 var(--font); padding: 0 6px; border-top-left-radius: 6px; }
.ws-kaart .leaflet-control-attribution a { color: var(--muted); }
.ws-kaart .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 28, 25, 0.14); }
.ws-kaart .leaflet-popup-content { margin: 12px; }
.is-raster .leaflet-tile-pane { filter: grayscale(1) sepia(0.18) hue-rotate(115deg) saturate(1.3) brightness(1.06) contrast(0.88); }
.ws-pop { display: grid; gap: 4px; font: 14px/1.4 var(--font); color: var(--ink-2); }
.ws-pop img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.ws-pop strong { color: var(--ink); font-size: 15px; }
.ws-pin { background: none; border: 0; }
.ws-pin svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 1.5px rgba(15, 28, 25, 0.35)); }
.ws-pin path { fill: var(--link); stroke: #fff; stroke-width: 1.5; }
.ws-pin circle { fill: #fff; }
.ws-pin.is-los path { fill: #b26a00; }
.ws-cluster { background: rgba(7, 115, 102, 0.22); border-radius: 50%; }
.ws-cluster span { display: grid; place-items: center; position: absolute; inset: 4px; border-radius: 50%; background: var(--link); color: #fff; font: 600 13px/1 var(--font); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px #fff; }
.ws-leg { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.ws-leg-i { width: 12px; height: 12px; border-radius: 50%; background: var(--link); }
.ws-leg-i.is-los { background: #b26a00; }

/* ---------- Gsm en tablet ---------- */
@media (max-width: 960px) {
  .ws { grid-template-columns: minmax(0, 1fr); }
  .ws-side { position: fixed; inset: 0 auto 0 0; width: 280px; height: 100%; z-index: 40; transform: translateX(-100%); transition: transform 0.2s ease-out; }
  .nav-open .ws-side { transform: none; }
  .nav-open .ws-scrim { display: block; position: fixed; inset: 0; z-index: 30; border: 0; background: rgba(15, 28, 25, 0.45); }
  .ws-burger { display: inline-flex; flex: 0 0 40px; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
  .ws-burger svg { width: 18px; height: 18px; }
  .ws-top { padding: 0 16px; gap: 10px; }
  .ws-title { display: none; }
  .ws-search { width: auto; flex: 1; }
  .ws-kbd { display: none; }
  .ws-search input { padding-right: 14px; }
  #ws-view { padding: 16px; }
  .ws-two, .ws-two-r { grid-template-columns: minmax(0, 1fr); }
  .ws-foto[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.3fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ws-panel { padding: 16px; }
  .ws-rail { padding: 20px; gap: 16px; }
  .ws-rail-k { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; width: 100%; }
  .ws-rail-v { font-size: 20px; }
  .ws-cam { padding: 0 14px; }
  .fg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ws-dlg-2, .ws-dlg-3 { grid-template-columns: minmax(0, 1fr); }
  .ws-count { margin-left: 0; }
  .ws-foto { width: 100vw; height: 100dvh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-side { transition: none; }
}

/* ---------- Werfplatform: fases, voortgang, planning, materieel, verslagen ---------- */
:root { --klaar: #077366; --bezig: #b45309; --gepland: #8a9a96; }
.ws-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: #fff8e8; border: 1px solid #f1dfb0; font-size: 14px; color: #5c4400; }
.ws-demo strong { color: #3d2d00; }
.ws-demo .ws-btn-s { margin-left: auto; }
.ws-chip.is-bezig { background: #fdecd3; color: #8a3f06; }
.ws-chip.is-gepland { background: #e6ecea; color: var(--ink-2); }
.ws-chip.is-klaar { background: var(--accent-soft); color: var(--link); }
.ws-chip.is-te-laat { background: #fde2de; color: #9b2216; }
.ws-chip.is-binnenkort { background: #fff1d1; color: #714500; }
.ws-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.ws-tabs button { font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; margin-bottom: -1px; cursor: pointer; }
.ws-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.ws-bar { position: relative; display: block; height: 8px; border-radius: 999px; background: #e3ebe8; overflow: hidden; min-width: 80px; }
.ws-bar i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; }
.ws-bar i.is-klaar { background: var(--klaar); }
.ws-bar i.is-bezig { background: #e8a25a; }
.ws-pct { font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.ws-straten { list-style: none; margin: 0; padding: 0; }
.ws-straten li { display: grid; grid-template-columns: minmax(140px, 1.2fr) minmax(0, 2fr) 72px 64px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ws-straten li:last-child { border-bottom: 0; }
.ws-straten .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ws-stappen { display: inline-flex; gap: 3px; }
.ws-stap { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 4px; border-radius: 4px; font: 10px/1 var(--mono); letter-spacing: 0.02em; background: #eef3f1; color: #9aa8a4; }
.ws-stap.is-ok { background: var(--accent-soft); color: var(--link); }
.ws-fasetab td { vertical-align: middle; }
.ws-fasetab tr { cursor: pointer; }
.ws-fasetab tbody tr:hover td { background: #f6faf8; }
.ws-fasetab .nr { font: 13px var(--mono); color: var(--ink-2); white-space: nowrap; }
.ws-leg-i.is-klaar { background: var(--klaar); }
.ws-leg-i.is-bezig { background: var(--bezig); }
.ws-leg-i.is-gepland { background: var(--gepland); }
.leaflet-interactive.fl { stroke-linecap: round; stroke-opacity: 0.95; }
.leaflet-interactive.fl.is-klaar { stroke: var(--klaar); }
.leaflet-interactive.fl.is-bezig { stroke: #d97706; }
.leaflet-interactive.fl.is-gepland { stroke: #9aa8a4; stroke-opacity: 0.8; }
.leaflet-interactive.fl.is-actief { stroke: var(--ink); }
.ws-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.ws-kpi > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ws-kpi strong { display: block; font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ws-kpi span { font-size: 13px; color: var(--muted); }
.ws-stadia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ws-stadia h3 { font-size: 14px; margin: 0 0 8px; display: flex; justify-content: space-between; }
.ws-stadia .fg { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ws-leeg-vak { display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1px dashed #c4d3ce; border-radius: 10px; color: var(--muted); font-size: 13px; text-align: center; padding: 8px; }
.ws-check { list-style: none; margin: 0; padding: 0; }
.ws-check li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 150px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ws-check li:last-child { border-bottom: 0; }
.ws-check .ok { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c4d3ce; }
.ws-check .ok.is-ok { background: var(--link); border-color: var(--link); box-shadow: inset 0 0 0 3px #fff; }
.ws-check input[type="date"] { font: inherit; font-size: 14px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; min-height: 34px; width: 100%; background: #fff; }
.ws-form-r { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 16px; }
.ws-form-r > div { display: grid; gap: 4px; }
.ws-form-r label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
/* Weekplanning */
.ws-week { display: grid; grid-template-columns: 180px repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.ws-week > div { padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 64px; }
.ws-week > div:nth-child(6n) { border-right: 0; }
.ws-week .wk-h { min-height: 0; background: #f6faf8; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ws-week .wk-h.is-vandaag { background: var(--accent-soft); color: var(--ink); }
.ws-week .wk-p strong { display: block; font-size: 15px; }
.ws-week .wk-p small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.wk-job { display: block; padding: 6px 8px; margin-bottom: 6px; border-radius: 8px; border-left: 3px solid var(--link); background: var(--accent-soft); color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.3; }
.wk-job:hover { filter: brightness(0.97); }
.wk-job small { display: block; color: var(--ink-2); font-size: 12px; }
.wk-job.k-b { border-left-color: #b45309; background: #fdf0de; }
.wk-job.k-c { border-left-color: #4f46a5; background: #ecebf8; }
.ws-weeknav { display: flex; align-items: center; gap: 8px; }
@media (max-width: 960px) {
  .ws-week { grid-template-columns: 120px repeat(5, minmax(150px, 1fr)); overflow-x: auto; }
  .ws-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-stadia { grid-template-columns: minmax(0, 1fr); }
  .ws-straten li { grid-template-columns: minmax(0, 1fr) 64px; }
  .ws-straten li .ws-bar { grid-column: 1 / -1; grid-row: 2; }
  .ws-straten li .ws-pct:last-child { display: none; }
  .ws-check li { grid-template-columns: 22px minmax(0, 1fr); }
  .ws-check li input[type="date"] { grid-column: 2; }
}

.fg-demo { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: rgba(15, 28, 25, 0.6); color: #fff; }
.is-sel .fg-demo { display: none; }

.ws-table .ws-bar { display: inline-block; width: 110px; vertical-align: middle; }
.ws-table td:nth-child(3), .ws-table .nw { white-space: nowrap; }
.ws-tip.is-let { border-color: #f1dfb0; background: #fff8e8; }
.ws-tip.is-let p { color: #5c4400; }
