/* ByClaude 08-11-2026 16:00 — opbouw volgens C:\Source\MD\opmaak.md; kleuren Groeneveld & Partners (16:40) */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #17212A; --ink-2: #3B4752; --muted: #66727D;
  --line: #DCE1E4; --line-soft: #E9EDEF; --canvas: #F2F4F3; --surface: #FFFFFF;
  /* hoofdkleur = GenP-blauw (iets donkerder voor leesbare witte tekst), accent = GenP-groen */
  --diesel: #1C7AA0; --diesel-2: #2A9CC6; --diesel-soft: #E3F2F8;
  --brand-blue: #2A9CC6; --brand-green: #94C11F; --rail: #0F3446;
  --signal: #94C11F; --signal-ink: #1F2B00; --signal-soft: #F1F7DD;
  --blue: #2F63C8; --blue-soft: #E5EDFB; --green: #1E8551; --green-soft: #E2F3E9;
  --red: #C0392B; --red-soft: #FBE7E4; --amber: #B86E00; --amber-soft: #FDF0DD; --grey-soft: #ECEEF0;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-s: 4px; --radius-m: 8px; --rail-w: 84px; --topbar-h: 60px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* ByClaude 08-11-2026 16:30 — alles een maat kleiner */
body { font-family: var(--font); font-size: 13px; line-height: 1.45; color: var(--ink); background: var(--canvas);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
body, .dxbl-text, .dxbl-grid, .dxbl-btn, input, select, textarea { font-family: var(--font) !important; }
a { color: var(--diesel); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 22px; line-height: 1.15; font-stretch: 92%; } h2 { font-size: 16px; line-height: 1.25; } h3 { font-size: 14px; }
h1:focus { outline: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.muted { color: var(--muted); } .small { font-size: 12.5px; } .hint { font-size: 12px; color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; } .nowrap { white-space: nowrap; }
.narrow { font-stretch: 78%; } .text-danger { color: var(--red); font-weight: 650; } .text-ok { color: var(--green); }

/* Schil */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--rail); color: #C9D1D7; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  align-items: stretch; padding: 12px 0; gap: 2px; }
.brand { width: 46px; height: 46px; margin: 2px auto 12px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.brand img { width: 40px; height: 40px; display: block; }
.rail a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; color: #CFE3EC; font-size: 11.5px;
  font-weight: 500; text-align: center; position: relative; text-decoration: none; }
.rail a:hover { background: #164558; color: #fff; }
.rail a.active { background: #1A5068; color: #fff; }
.rail a.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--signal); }
.rail .rail-spacer { flex: 1; }
.rail .rail-version { font-size: 10px; text-align: center; color: #8B98A3; padding: 4px; line-height: 1.3; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 52px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px; padding: 0 32px; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--brand-green), var(--brand-blue)); }
.topbar .logo { height: 36px; width: auto; display: block; }
.topbar .sep { width: 1px; height: 24px; background: var(--line); }
.topbar .app-title { font-weight: 700; font-size: 14px; }
.topbar .app-sub { color: var(--muted); font-size: 13px; }
.topbar .spacer { flex: 1; }
.topbar .whatsnew { position: relative; font-size: 13px; color: var(--ink-2); font-weight: 600; background: none; border: 0; cursor: pointer; padding: 6px 8px; border-radius: var(--radius-m); }
.topbar .whatsnew:hover { background: var(--grey-soft); }
.topbar .whatsnew .dot { position: absolute; top: 4px; right: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.content { padding: 18px 24px 24px; min-width: 0; }

.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head .titles { flex: 1; min-width: 240px; }
.page-head .subtitle { color: var(--muted); margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Knoppen */
.btn, .btn-primary, .btn-signal, .btn-quiet, .btn-danger { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: var(--radius-m); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; border: 1px solid transparent; white-space: nowrap; text-decoration: none !important; }
.btn { background: var(--surface); border-color: var(--line); color: var(--ink); } .btn:hover { background: #F7F9F8; }
.btn-primary { background: var(--diesel); color: #fff; } .btn-primary:hover { background: var(--diesel-2); }
.btn-signal { background: var(--signal); color: var(--signal-ink); } .btn-signal:hover { background: #86AF1B; }
.btn-quiet { background: transparent; color: var(--ink-2); } .btn-quiet:hover { background: var(--grey-soft); }
.btn-quiet.is-active { background: var(--diesel-soft); color: var(--diesel); }
.btn-danger { background: var(--surface); color: var(--red); border-color: #EFC2BC; } .btn-danger:hover { background: var(--red-soft); }
.btn-sm { height: 28px; font-size: 12.5px; padding: 0 9px; }
button:disabled { opacity: .5; cursor: not-allowed; }

/* Vlakken */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); }
.panel-head h2 { font-size: 14px; } .panel-head .spacer { flex: 1; }
.panel-body { padding: 16px; }
.panel-body.flush { padding: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Filterbalk */
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filterbar .field { display: flex; flex-direction: column; gap: 4px; }
.filterbar label, .field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.w-200 { width: 200px; } .w-240 { width: 240px; } .w-160 { width: 160px; }

/* Kerncijfers */
.kpi-line { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); flex-wrap: wrap; margin-bottom: 16px; }
.kpi { padding: 10px 16px; border-right: 1px solid var(--line-soft); min-width: 140px; flex: 1; }
.kpi:last-child { border-right: 0; }
.kpi-value { font-size: 19px; font-weight: 700; font-stretch: 88%; line-height: 1.2; }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-sub { font-size: 12px; color: var(--muted); }
.kpi.alert .kpi-value { color: var(--red); }

/* Meldingen */
.notice { padding: 10px 14px; border-radius: var(--radius-m); border: 1px solid; margin-bottom: 12px; }
.notice.warning { background: var(--amber-soft); color: #6B4000; border-color: #F2D3A6; }
.notice.danger { background: var(--red-soft); color: #7A1F15; border-color: #EFC2BC; }
.notice.info { background: var(--blue-soft); color: #1E3E7E; border-color: #C9D9F5; }
.notice.ok { background: var(--green-soft); color: #145A37; border-color: #B9DFC9; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600;
  background: var(--grey-soft); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.s-ok { background: var(--green-soft); color: var(--green); }
.badge.s-warning { background: var(--amber-soft); color: var(--amber); }
.badge.s-danger { background: var(--red-soft); color: var(--red); }
.badge.s-info { background: var(--blue-soft); color: var(--blue); }
.badge.s-done { background: var(--diesel-soft); color: var(--diesel); }

/* Eenvoudige tabellen */
/* ByClaude 08-11-2026 16:25 — compact (niet over de volle breedte) en met verticale lijnen */
table.simple { width: auto; border-collapse: collapse; }
table.simple th { font-size: 12px; color: var(--muted); font-weight: 600; text-align: left; padding: 6px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.simple td { padding: 6px 12px; font-size: 12.5px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
table.simple th + th, table.simple td + td { border-left: 1px solid var(--line-soft); }
table.simple th.num, table.simple td.num { min-width: 84px; }
/* ByClaude 08-11-2026 16:20 — aantallen en tijden gecentreerd */
table.simple th.num, table.simple td.num { text-align: center; }
table.simple tr.total td { font-weight: 700; border-top: 1px solid var(--line); border-bottom: 0; }
table.simple.compact td, table.simple.compact th { padding: 5px 8px; }
.table-scroll { overflow-x: auto; }

/* Heatmap tijdvakken × dagen */
.heat { border-collapse: separate; border-spacing: 2px; font-size: 12px; font-stretch: 86%; }
.heat th { font-weight: 600; color: var(--muted); padding: 2px 4px; text-align: center; white-space: nowrap; position: sticky; top: 0; background: var(--surface); }
.heat th.slot { text-align: right; position: sticky; left: 0; z-index: 2; background: var(--surface); padding-right: 8px; }
.heat td { width: 30px; min-width: 30px; height: 22px; text-align: center; border-radius: 3px; background: #F7F8F8; color: var(--ink); cursor: default; }
.heat td.has { cursor: pointer; }
.heat td.has:hover { outline: 2px solid var(--signal); }
.heat td.tot { background: transparent; font-weight: 700; min-width: 44px; }
.heat th.weekend { color: var(--ink-2); background: #F7F8F8; }
.heat tr.outside th.slot { font-style: italic; }
.heat tr.sum td { background: transparent; font-weight: 700; }
.heat-wrap { overflow: auto; max-height: 70vh; }

/* Lege staat */
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty .btn-primary { margin-top: 14px; }

/* Upload */
.dropzone { position: relative; border: 2px dashed var(--line); border-radius: var(--radius-m); padding: 32px; text-align: center; background: #FAFBFA; }
.dropzone:hover, .dropzone.drag { border-color: var(--diesel); background: var(--diesel-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone h3 { margin-bottom: 4px; }

/* Formulieren */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; max-width: 760px; }
.form-grid .field { display: flex; flex-direction: column; gap: 4px; } .form-grid .full { grid-column: 1 / -1; }

/* Lijsten */
.grid-fill { height: 480px; }
.grid-narrow { font-stretch: 86%; }
.dxbl-grid { font-size: 12.5px; }
.dxbl-grid .dxbl-grid-header-content { font-size: 12.5px; }
.panel > .dxbl-grid { border: 0 !important; }
.grid-tools { display: flex; gap: 4px; justify-content: flex-end; padding: 6px 8px; border-bottom: 1px solid var(--line-soft); align-items: center; }
.grid-tools .title { margin-right: auto; font-weight: 700; font-size: 14px; padding-left: 8px; }
/* Nooit pijltjes op getalvelden (ook niet in de filterregel) */
.dxbl-spin-btn-inc, .dxbl-spin-btn-dec, .dxbl-spin-btn-group, .dxbl-spinedit .dxbl-btn-group-vertical { display: none !important; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* Rapport */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 32px; max-width: 1100px; }
.report h1 { margin-bottom: 4px; } .report h2 { font-size: 16px; margin: 28px 0 8px; }
.report .meta { color: var(--muted); margin-bottom: 20px; }
.report .kpi-line { margin-bottom: 0; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; flex-direction: row; z-index: 30; padding: 0; overflow-x: auto; }
  .rail a { flex: 1; font-size: 10.5px; min-width: 64px; }
  .rail a.active::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 3px; }
  .brand, .rail .rail-spacer, .rail .rail-version { display: none; }
  .topbar { padding: 0 16px; } .topbar .app-sub { display: none; }
  .content { padding: 16px 16px 96px; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
}

@media print {
  .rail, .topbar, .no-print, .filterbar, .page-head .actions { display: none !important; }
  .shell { display: block; } .content { padding: 0; } body { background: #fff; }
  .report { border: 0; padding: 0; max-width: none; }
  table.simple { page-break-inside: auto; } tr { page-break-inside: avoid; }
  .report h2 { page-break-after: avoid; }
}
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 10px 20px; background: var(--red-soft); color: #7A1F15; z-index: 1000; }

/* ByClaude 08-11-2026 16:45 — loginpagina */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(120deg, rgba(148,193,31,.18), rgba(42,156,198,.22)), var(--canvas); }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.login-logo { height: 44px; display: block; margin-bottom: 20px; }
.login-card h1 { margin-bottom: 12px; }
.login-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.login-form label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.login-input { height: 40px; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0 12px; font: inherit; font-size: 15px; }
.login-input:focus { outline: 2px solid var(--brand-blue); outline-offset: 0; border-color: var(--brand-blue); }
.login-input.code { font-size: 24px; letter-spacing: 8px; text-align: center; font-weight: 700; }
.login-btn { justify-content: center; height: 40px; margin-top: 10px; }
.login-again { display: flex; gap: 8px; margin-top: 14px; justify-content: center; }
.topbar .user { font-size: 12.5px; color: var(--ink-2); }
.topbar form { margin: 0; }
/* Tabbladen (ByClaude 08-11-2026 16:45) */
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 500; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tabs button.active { color: var(--ink); font-weight: 650; border-bottom-color: var(--diesel); }
.tabs .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--grey-soft); color: var(--muted); font-size: 11.5px; display: inline-grid; place-items: center; }
.tabs button.active .count { background: var(--diesel); color: #fff; }

/* ByClaude 08-11-2026 17:25 — werktijden */
.heat td.dicht { background: repeating-linear-gradient(135deg, #EEF0F1 0 4px, #F7F8F8 4px 8px); }
.werktijden td { vertical-align: middle; }
.werktijden tr.dicht td { color: var(--muted); }
.w-120 { width: 120px; }
