/* ==========================================================================
   Emyris Events — huisstijl
   ByClaude 03-11-2026 22:30 — herontwerp "Tribune": warmer en rustiger, zelfde klassen.
   Kleur:  kalksteen (achtergrond), mos-donker (rail, inkt), dieselgroen (hoofdkleur), signaalgeel (alleen merk en "actie nodig").
           Elke menugroep heeft een eigen gedempte accentkleur (--mod), alleen voor iconen, actieve tab en lijnen.
   Type:   Archivo (variabele breedte). Titels en kerncijfers breed (font-stretch 112–118%), tabellen normaal.
   Motief: concentrische bogen = de tribune van een openluchttheater, van bovenaf gezien (kop van Vandaag, inloggen, lege staten).
   ========================================================================== */
@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;
}
@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+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: italic; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-italic.woff2") format("woff2-variations");
}

:root {
  /* inkt en vlakken (warm neutraal) */
  --ink: #1E2622;          /* mos-zwart, 15.5:1 op wit */
  --ink-2: #3E4641;
  --muted: #66655D;        /* 5.6:1 op wit, 5.0:1 op kalksteen */
  --line: #E2DED6;
  --line-strong: #CFCAC0;
  --line-soft: #EEEBE5;
  --canvas: #F4F2EE;       /* kalksteen */
  --surface: #FFFFFF;
  --surface-2: #FAF9F6;    /* hover, kop van tabellen */
  --rail: #1B2621;         /* mos-donker */
  --rail-2: #26332D;
  --rail-ink: #D6D0C4;
  --rail-muted: #A39E92;

  /* hoofdkleur en signaal */
  --diesel: #0E5A4C;
  --diesel-2: #13715F;
  --diesel-soft: #E2EEE9;
  --signal: #F2B705;
  --signal-ink: #3A2C00;
  --signal-soft: #FFF3C9;

  /* statussen */
  --blue: #2F5FB8;
  --blue-soft: #E7EEFA;
  --green: #1A7A4A;
  --green-soft: #E1F1E7;
  --red: #B42F22;
  --red-soft: #FBE8E4;
  --amber: #9C5F00;
  --amber-soft: #FCEFD9;
  --grey-soft: #EEEBE5;

  /* accent per menugroep (MainLayout zet data-module); standaard dieselgroen */
  --mod: var(--diesel);
  --mod-soft: color-mix(in srgb, var(--mod) 11%, white);
  --mod-on-dark: color-mix(in srgb, var(--mod) 45%, white);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --narrow: "Archivo", system-ui, sans-serif;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --shadow-1: 0 1px 2px rgba(48, 38, 24, .05), 0 1px 1px rgba(48, 38, 24, .03);
  --shadow-2: 0 2px 4px rgba(48, 38, 24, .04), 0 8px 24px rgba(48, 38, 24, .07);
  --shadow-3: 0 12px 32px rgba(30, 38, 34, .16), 0 2px 6px rgba(30, 38, 34, .08);
  --rail-w: 88px;
  --topbar-h: 60px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;

  /* DevExpress Fluent: lettertype en warme neutrale tinten (lichte kant) */
  --dxds-font-family-sans-serif: var(--font);
  --dxds-neutral-20: #f5f4f2; --DS-neutral-20: #f5f4f2;
  --dxds-neutral-30: #ebe9e6; --DS-neutral-30: #ebe9e6;
  --dxds-neutral-40: #e1dfda; --DS-neutral-40: #e1dfda;
  --dxds-neutral-50: #d7d4ce; --DS-neutral-50: #d7d4ce;
  --dxds-neutral-60: #cecac1; --DS-neutral-60: #cecac1;
}

/* accentkleur per menugroep */
[data-module="today"]      { --mod: #0E5A4C; }
[data-module="crew"]       { --mod: #1F7A6C; }
[data-module="events"]     { --mod: #A35A0A; }
[data-module="planning"]   { --mod: #2F5FB8; }
[data-module="performers"] { --mod: #8A4A9C; }
[data-module="production"] { --mod: #8C5A2B; }
[data-module="equipment"]  { --mod: #4F6475; }
[data-module="comm"]       { --mod: #1E7896; }
[data-module="board"]      { --mod: #6A55B4; }
[data-module="reports"]    { --mod: #B23A5B; }
[data-module="admin"]      { --mod: #5F6660; }
/* afgeleide tinten opnieuw berekenen waar --mod verandert (custom properties erven als berekende waarde) */
[data-module] { --mod-soft: color-mix(in srgb, var(--mod) 11%, white); --mod-on-dark: color-mix(in srgb, var(--mod) 45%, white); }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--canvas);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--diesel); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 28px; line-height: 1.12; font-weight: 760; font-stretch: 112%; letter-spacing: -0.02em; }
h2 { font-size: 18px; line-height: 1.25; }
h3 { font-size: 15px; }
p { margin: 0 0 var(--space-3); }
kbd {
  font-family: var(--font); font-size: 11px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: var(--radius-s); color: var(--muted); background: var(--surface);
}
:focus-visible { outline: 2px solid var(--diesel); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(242, 183, 5, .45); }
h1:focus, h1:focus-visible { outline: none; box-shadow: none; } /* focus na navigatie (schermlezers) zonder kader */
::selection { background: var(--signal-soft); color: var(--ink); }
.narrow { font-stretch: 78%; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.text-danger { color: var(--red); font-weight: 650; }
.text-ok { color: var(--green); }

/* ------------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--rail) var(--rail-w), transparent var(--rail-w)); }
.rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none;
  background: var(--rail); color: var(--rail-ink);
  display: flex; flex-direction: column; align-items: stretch; padding: var(--space-3) var(--space-2); gap: 2px; z-index: 20;
}
.rail::-webkit-scrollbar { display: none; }
.rail-brand { display: flex; justify-content: center; margin: 2px 0 var(--space-4); }
.rail-brand:hover { text-decoration: none; }
/* ByClaude 10-11-2026 23:00 — logo van de klant in de rail: altijd passend in een wit vlak */
.brand-logo { width: 58px; height: 55px; padding: 4px; box-sizing: content-box; background: #fff; border-radius: 10px; object-fit: contain; display: block; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: var(--signal); color: var(--signal-ink); font-weight: 820; font-size: 15px; font-stretch: 110%; letter-spacing: 0.01em;
  box-shadow: inset 0 -3px 0 rgba(58, 44, 0, .16);
}
.rail-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px 9px; border-radius: 12px;
  color: var(--rail-ink); font-size: 11.5px; font-weight: 550; text-decoration: none; position: relative; text-align: center; line-height: 1.15;
  transition: background-color .15s, color .15s;
}
.rail-item .icon { opacity: .82; }
.rail-item:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.rail-item:hover .icon { opacity: 1; }
.rail-item.active { background: var(--rail-2); color: #fff; }
.rail-item.active .icon { opacity: 1; color: var(--mod-on-dark); }
.rail-item.active::before {
  content: ""; position: absolute; left: -8px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mod-on-dark);
}

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h); display: flex; align-items: center; gap: var(--space-4); padding: 0 var(--space-6);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.search-trigger {
  flex: 1; max-width: 560px; display: flex; align-items: center; gap: var(--space-3); height: 38px; padding: 0 var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--canvas); color: var(--muted);
  font: inherit; cursor: text; text-align: left;
}
.search-trigger span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-trigger:hover { border-color: var(--line-strong); }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.topbar-date { color: var(--muted); }
.topbar-date::first-letter { text-transform: uppercase; }
.content { padding: var(--space-5) var(--space-6) var(--space-7); width: 100%; box-sizing: border-box; }

/* ------------------------------------------------------------------ knoppen (eigen, naast DevExpress) */
.btn, .btn-signal, .btn-primary, .btn-quiet, .btn-danger {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-m);
  font: inherit; font-weight: 620; cursor: pointer; border: 1px solid transparent; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.btn { background: var(--surface); border-color: var(--line-strong); color: var(--ink); box-shadow: var(--shadow-1); }
.btn:hover { border-color: #B9B3A8; background: var(--surface-2); text-decoration: none; }
.btn-signal { background: var(--signal); color: var(--signal-ink); box-shadow: inset 0 -2px 0 rgba(58, 44, 0, .14); }
.btn-signal:hover { background: #E5AC00; text-decoration: none; }
.btn-primary { background: var(--diesel); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); }
.btn-primary:hover { background: var(--diesel-2); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--grey-soft); text-decoration: none; }
.btn-danger { background: var(--surface); border-color: #E8BCB5; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); text-decoration: none; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
button[disabled], .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }

/* ------------------------------------------------------------------ paginakop */
.page-head { display: flex; align-items: flex-end; gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap; }
.page-head .titles { flex: 1; min-width: 240px; }
.page-head .subtitle { color: var(--muted); margin-top: 6px; font-size: 14.5px; max-width: 72ch; }
.page-head .actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
/* ByClaude 03-11-2026 21:35 — terug-link boven de titel */
.page-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.page-back:hover { color: var(--diesel); text-decoration: none; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: calc(-1 * var(--space-2)) 0 var(--space-5); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.tabs a {
  padding: 10px 14px; color: var(--ink-2); font-weight: 520; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  border-radius: 8px 8px 0 0;
}
.tabs a:hover { color: var(--ink); background: rgba(30, 38, 34, .04); text-decoration: none; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--mod); font-weight: 680; }
.tabs .count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; box-sizing: border-box;
  border-radius: 10px; background: var(--grey-soft); color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1;
}
.tabs a.active .count { background: var(--mod); color: #fff; }

/* ------------------------------------------------------------------ vlakken */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-1); min-width: 0; }
.panel-head { display: flex; align-items: center; gap: var(--space-3); padding: 14px var(--space-4) 12px; border-bottom: 1px solid var(--line-soft); min-height: 52px; }
.panel-head h2 { font-size: 15.5px; font-weight: 700; flex: 1; letter-spacing: -0.005em; }
/* ByClaude 03-11-2026 22:10 — panelkoppen en grid-koppen in de (gedempte) kleur van de menugroep */
.panel-head {
  background: linear-gradient(90deg, color-mix(in srgb, var(--mod) 15%, white) 0%, color-mix(in srgb, var(--mod) 6%, white) 60%, color-mix(in srgb, var(--mod) 2%, white) 100%);
  border-bottom-color: color-mix(in srgb, var(--mod) 16%, white);
  border-radius: calc(var(--radius-l) - 1px) calc(var(--radius-l) - 1px) 0 0;
}
.panel-head h2 { color: color-mix(in srgb, var(--mod) 60%, var(--ink)); }
.panel-body { padding: var(--space-4); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }
.grid-main-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-5); align-items: start; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { border: 0; border-top: 1px solid var(--line-soft); margin: var(--space-4) 0; }

/* sleutel-waarde lijst */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px var(--space-4); margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ status */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 640;
  white-space: nowrap; background: var(--grey-soft); color: var(--ink-2);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge.s-request { background: var(--signal-soft); color: var(--signal-ink); }
.badge.s-quote { background: var(--grey-soft); color: var(--ink-2); }
.badge.s-reservation { background: var(--blue-soft); color: var(--blue); }
.badge.s-contract { background: var(--green-soft); color: var(--green); }
.badge.s-completed { background: var(--diesel-soft); color: var(--diesel); }
.badge.s-archived { background: var(--grey-soft); color: var(--muted); }
.badge.s-cancelled { background: var(--red-soft); color: var(--red); }
.badge.s-warning { background: var(--amber-soft); color: var(--amber); }
.badge.s-danger { background: var(--red-soft); color: var(--red); }
.badge.s-ok { background: var(--green-soft); color: var(--green); }

/* ------------------------------------------------------------------ werklijst (Vandaag) */
.worklist { display: flex; flex-direction: column; }
.work-item {
  display: grid; grid-template-columns: 4px 38px minmax(0, 1fr) auto; align-items: center; gap: 0 var(--space-3);
  padding: 12px var(--space-4) 12px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink);
}
.work-item:last-child { border-bottom: 0; }
.work-item:hover { background: var(--surface-2); text-decoration: none; }
.work-item .edge { align-self: stretch; border-radius: 0 3px 3px 0; }
.work-item.sev-info .edge { background: var(--line-strong); }
.work-item.sev-warning .edge { background: var(--signal); }
.work-item.sev-critical .edge { background: var(--red); }
.work-item .wi-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--canvas); color: var(--ink-2); }
.work-item.sev-warning .wi-icon { background: var(--signal-soft); color: var(--signal-ink); }
.work-item.sev-critical .wi-icon { background: var(--red-soft); color: var(--red); }
.work-item .wi-title { font-weight: 640; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-item .wi-sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-item .wi-action { font-weight: 650; color: var(--diesel); font-size: 13px; white-space: nowrap; }
.work-group-title { padding: var(--space-4) var(--space-4) var(--space-2); font-weight: 700; display: flex; gap: var(--space-2); align-items: baseline; }
.work-group-title .count { color: var(--muted); font-weight: 500; }

/* kerncijfers als één strook (lijstpagina's) */
.kpi-line {
  display: flex; flex-wrap: wrap; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  margin-bottom: var(--space-5); box-shadow: var(--shadow-1); overflow: hidden;
}
.kpi { flex: 1 1 150px; padding: 14px 20px; border-right: 1px solid var(--line-soft); min-width: 0; position: relative; }
.kpi:last-child { border-right: 0; }
.kpi .kpi-value { font-size: 26px; font-weight: 720; font-stretch: 112%; line-height: 1.1; letter-spacing: -0.02em; }
.kpi .kpi-label { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.kpi.alert .kpi-value { color: var(--red); }
a.kpi { color: inherit; }
a.kpi:hover { background: var(--surface-2); text-decoration: none; }

/* ------------------------------------------------------------------ lege toestand (EmptyState): tribune-bogen als beeldmerk */
.empty { padding: var(--space-6) var(--space-4); text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; }
.empty .empty-art {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--space-3); color: var(--mod);
  background:
    radial-gradient(circle at 50% 50%, var(--surface) 0 17px, transparent 18px),
    repeating-radial-gradient(circle at 50% 50%, var(--mod-soft) 0 5px, color-mix(in srgb, var(--mod) 22%, white) 5px 6px);
}
.empty h3 { color: var(--ink); margin-bottom: 4px; font-size: 16px; }
.empty p { max-width: 46ch; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------ meldingen (waarschuwingen bij acties) */
.notice { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); margin-bottom: var(--space-4); align-items: flex-start; border-left-width: 4px !important; }
.notice.warning { background: var(--signal-soft); color: var(--signal-ink); border: 1px solid #EED487; border-left-color: var(--signal) !important; }
.notice.danger { background: var(--red-soft); color: #7A1F15; border: 1px solid #EFC2BC; border-left-color: var(--red) !important; }
.notice.info { background: var(--blue-soft); color: #1E3E7E; border: 1px solid #CCDAF3; border-left-color: var(--blue) !important; }
.notice ul { margin: 4px 0 0; padding-left: 18px; }

/* ------------------------------------------------------------------ eenvoudige tabellen (naast DxGrid) */
table.simple { width: 100%; border-collapse: collapse; }
table.simple th { text-align: left; font-weight: 620; color: var(--muted); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.simple td { padding: 10px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.simple tr:last-child td { border-bottom: 0; }
table.simple tr.clickable { cursor: pointer; }
table.simple tr.clickable:hover td { background: var(--surface-2); }
table.simple td.actions { text-align: right; white-space: nowrap; }

/* ------------------------------------------------------------------ formulieren */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 620; margin-bottom: 4px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 3px; }
.validation-message { color: var(--red); font-size: 12px; }

/* ------------------------------------------------------------------ filterbalk */
.filterbar { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; margin-bottom: var(--space-3); }
.filterbar .f-search { width: 340px; max-width: 100%; }
.filterbar .f-period { width: 270px; max-width: 100%; }
.filterbar .f-select { width: 200px; }

/* ------------------------------------------------------------------ DevExpress-afstemming (Fluent) */
body, .dxbl-text, .dxbl-grid, .dxbl-btn, input, select, textarea { font-family: var(--font) !important; }
.dxbl-grid-table .dxbl-grid-data-row { cursor: default; }
.grid-clickable .dxbl-grid-data-row { cursor: pointer; }
.grid-narrow .dxbl-grid-table { font-stretch: 86%; }
.dxbl-grid { --dxbl-grid-font-size: 13.5px; --dxbl-grid-border-color: var(--line-soft); }
.dxbl-grid .dxbl-grid-header-content { font-weight: 650; color: var(--ink-2); }
.dxbl-grid .dxbl-grid-header-row > th { background: color-mix(in srgb, var(--mod) 11%, white); border-bottom: 2px solid color-mix(in srgb, var(--mod) 22%, white); }   /* ByClaude 03-11-2026 22:10 — was surface-2 */
.dxbl-grid .dxbl-grid-header-row .dxbl-grid-header-content { color: color-mix(in srgb, var(--mod) 55%, var(--ink)); }
.dxbl-grid .dxbl-grid-filter-row > td { background: color-mix(in srgb, var(--mod) 3%, white); }
.dxbl-grid .dxbl-grid-group-panel-container { color: var(--muted); background: var(--surface); }
.grid-clickable .dxbl-grid-data-row:hover > td { background: var(--surface-2); }
.grid-dense .dxbl-grid { font-stretch: 85%; }
.dxbl-btn { font-family: var(--font) !important; }
/* popups en dialogen: zachte schaduw en ronde hoeken, titel in de huisstijl */
.dxbl-modal > .dxbl-modal-content, .dxbl-popup .dxbl-modal-content { border-radius: var(--radius-l); box-shadow: var(--shadow-3); border-color: var(--line); }
.dxbl-modal-header .dxbl-modal-title, .dxbl-popup-header .dxbl-modal-title { font-weight: 720; font-stretch: 106%; letter-spacing: -0.01em; }
.dxbl-modal-back { background-color: rgba(27, 38, 33, .42) !important; }
/* tabbladen (DxTabs) volgen de accentkleur van de module */
.dxbl-tabs .dxbl-tabs-item.dxbl-active::after, .dxbl-tabs .dxbl-tabs-item.dxbl-active .dxbl-tabs-item-indicator { background-color: var(--mod) !important; }

/* ------------------------------------------------------------------ foutbalk */
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 24px; background: var(--red); color: #fff; z-index: 2000; }
#blazor-error-ui a { color: #fff; text-decoration: underline; margin-left: 8px; }

/* ------------------------------------------------------------------ smal scherm */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .topbar { gap: var(--space-3); }
  .search-trigger { min-width: 0; }
  .topbar-end .btn-signal .lbl { display: none; }
  .topbar-end .btn-signal { padding: 0 10px; }
  .content { min-width: 0; }
  .rail {
    position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; flex-direction: row; justify-content: flex-start;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); overflow-x: auto; overflow-y: hidden; box-shadow: 0 -4px 18px rgba(27, 38, 33, .22);
  }
  .rail-brand, .rail-spacer, .rail-version { display: none; }
  .rail-item { flex: 1 1 0; min-width: 0; font-size: 10px; padding: 7px 0 6px; border-radius: 10px; }
  .rail-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 1px; }
  .rail-item.active::before { left: 22%; right: 22%; top: -4px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .topbar { padding: 0 var(--space-4); }
  .topbar-date, .search-trigger kbd { display: none; }
  .content { padding: var(--space-4) var(--space-4) 104px; }
  .grid-2, .grid-main-side, .form-grid { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 24px; }
  .kpi { flex-basis: 50%; border-bottom: 1px solid var(--line-soft); }
  .kpi:nth-child(2n) { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------------ diverse */
.small { font-size: 12.5px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 92px 1fr auto; gap: var(--space-3); padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.timeline li:last-child { border-bottom: 0; }
.timeline .t-when { color: var(--muted); font-size: 12.5px; }
.sticky-save { position: sticky; bottom: 0; padding: var(--space-3) 0; background: var(--canvas); border-top: 1px solid var(--line-soft); }
table.simple.compact td { padding: 6px 4px; }
@media (max-width: 1200px) { .grid-main-side { grid-template-columns: minmax(0, 1fr); } }
.btn-quiet.is-active { background: var(--diesel-soft); color: var(--diesel); }

/* lijsten die tot onderaan het scherm lopen (hoogte via app.js) */
.grid-fill { min-height: 320px; }

/* lijstopties boven een lijst */
.grid-tools { display: flex; gap: 2px; justify-content: flex-end; padding: 6px 8px; border-bottom: 1px solid var(--line-soft); }


/* ==========================================================================
   Emyris Events-aanvullingen
   ========================================================================== */

/* testomgeving: gele balk (zoals Delphi bij "TEST" in de databasenaam) */
.test-banner {
  background: repeating-linear-gradient(135deg, var(--signal) 0 14px, #EDAE00 14px 28px); color: var(--signal-ink);
  font-weight: 680; text-align: center; padding: 4px 12px; font-size: 12.5px; letter-spacing: .02em;
}

/* rail: versie onderaan */
.rail-spacer { flex: 1; }
.rail-version { color: var(--rail-muted); font-size: 10px; text-align: center; padding: 6px 0 2px; line-height: 1.35; }

/* topbar */
.topbar-org { font-weight: 680; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* lijsten (DataList) */
.datalist { display: flex; flex-direction: column; min-width: 0; }
.datalist .panel { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.list-bar { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.list-bar .lb-title { display: flex; align-items: center; gap: var(--space-2); margin-right: var(--space-2); }
.list-bar .lb-title h2 { font-size: 15.5px; }
.list-bar .lb-filters { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.list-bar .lb-actions { margin-left: auto; display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.count-pill {
  display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 8px; border-radius: 11px;
  background: var(--mod-soft); color: var(--mod); font-size: 12px; font-weight: 700;
}
.selbar { display: flex; align-items: center; gap: var(--space-3); padding: 6px 12px; border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-2); background: var(--signal-soft); }
.datalist .dxbl-grid { border: 0; border-radius: 0 0 var(--radius-l) var(--radius-l); }
.datalist.in-dialog .grid-fill { min-height: 240px; }
.cell-ok { color: var(--green); font-weight: 600; }
.cell-warn { color: var(--amber); font-weight: 600; }
.cell-bad { color: var(--red); font-weight: 600; }
.cell-muted { color: var(--muted); }

/* bewerkvensters (RecordDialog / RecordForm) */
.record-dialog .dxbl-modal-body { padding: var(--space-4) var(--space-5); }
.record-form .dxbl-fl-gd-header, .record-form .fg-header { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.record-form .fl-cap { font-size: 12.5px; color: var(--ink-2); font-weight: 620; }
.record-form .fl-cap.required::after { content: " *"; color: var(--red); }
.field-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.readonly-value { padding: 6px 0; color: var(--ink-2); }
.dialog-footer { display: flex; gap: var(--space-2); align-items: center; width: 100%; }
.dialog-footer .spacer { flex: 1; }

/* meldingen rechtsonder (Notifier) */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--diesel); box-shadow: var(--shadow-3); font-size: 13.5px;
}
.toast span { flex: 1; }
.toast--success { border-left-color: var(--green); }
.toast--info { border-left-color: var(--blue); }
.toast--warning { border-left-color: var(--signal); }
.toast--error { border-left-color: var(--red); }
.toast-close { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 2px; display: inline-flex; }
@media (max-width: 900px) { .toasts { bottom: 92px; } }

/* detailpagina met tabbladen (bijv. persoon, cursus) */
.detail-tabs { margin-top: var(--space-2); }
.detail-tabs .dxbl-tabs-content { padding-top: var(--space-4); }

/* inloggen met Microsoft */
.ms-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; border-radius: var(--radius-m);
  background: var(--ink); color: #fff; font-weight: 650; font-size: 15px; text-decoration: none; border: 0;
}
.ms-btn:hover { background: var(--rail-2); text-decoration: none; }
.ms-logo { display: grid; grid-template-columns: 9px 9px; gap: 2px; }
.ms-logo i { width: 9px; height: 9px; display: block; }
.ms-logo i:nth-child(1) { background: #F25022; } .ms-logo i:nth-child(2) { background: #7FBA00; }
.ms-logo i:nth-child(3) { background: #00A4EF; } .ms-logo i:nth-child(4) { background: #FFB900; }

/* rechtenmatrix */
table.matrix th, table.matrix td { text-align: center; }
table.matrix th:first-child, table.matrix td:first-child { text-align: left; }
table.matrix tr.module td { background: var(--canvas); font-weight: 700; }
table.matrix input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--diesel); }

/* sub-navigatie binnen Instellingen: tabs mogen afbreken over meerdere regels */
.tabs.wrap { flex-wrap: wrap; overflow: visible; }

/* mutatielog (historie van een record) */
.audit-list { display: flex; flex-direction: column; gap: 8px; }
.audit-group { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 8px 10px; background: var(--surface); }
.audit-group__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.audit-badge { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 11px; }
.audit-badge--I { background: var(--green-soft); color: var(--green); }
.audit-badge--U { background: var(--blue-soft); color: var(--blue); }
.audit-badge--D { background: var(--red-soft); color: var(--red); }
.audit-change { display: grid; grid-template-columns: 200px minmax(0, 1fr) 18px minmax(0, 1fr); gap: 8px; padding: 3px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.audit-col { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-old { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(102,101,93,.5); overflow-wrap: anywhere; }
.audit-new { overflow-wrap: anywhere; }
.audit-arrow { color: var(--muted); }
.audit-record summary { cursor: pointer; font-size: 13px; color: var(--ink-2); }
.audit-fields { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2px 8px; font-size: 12.5px; margin-top: 6px; }
.audit-fields span:nth-child(even) { overflow-wrap: anywhere; }
@media (max-width: 700px) { .audit-change { grid-template-columns: 1fr; } .audit-arrow { display: none; } }

/* upload */
.upload-box { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.upload-box label.btn { cursor: pointer; }
.upload-box label.btn.disabled { opacity: .5; cursor: not-allowed; }
/* ByClaude 09-11-2026 21:25 — sleepvak (UploadBox Drop) */
.upload-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
    min-height: 160px; padding: 20px; border: 2px dashed var(--line-strong, #D6D1C7); border-radius: 12px; background: var(--surface-soft, #FAF8F4);
    color: var(--ink-soft, #66655D); transition: border-color .15s, background .15s; }
.upload-drop:hover, .upload-drop.over { border-color: var(--diesel, #1F5C4A); background: color-mix(in srgb, var(--diesel, #1F5C4A) 7%, transparent); color: var(--diesel, #1F5C4A); }
.upload-drop.compact { flex-direction: row; min-height: 0; padding: 10px 14px; text-align: left; gap: 12px; }
.upload-drop-text { display: flex; flex-direction: column; gap: 2px; }
.upload-drop.disabled { opacity: .6; }
.upload-drop-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-drop.disabled .upload-drop-input { cursor: not-allowed; }

/* Rechtenmatrix: module/optie niet afgenomen door de klant (centraal uit) */
.not-licensed, tr.not-licensed td { color: var(--muted); opacity: .65; }

/* ================================================================== Emyris Events — aanvullingen (ByClaude 03-11-2026 14:40) */
.kpi .kpi-value, .kpi .kpi-label { display: block; }
.section-tabs { margin-top: calc(-1 * var(--space-3)); }
.powered { color: var(--muted); font-size: 12px; padding: 0 32px 16px; }
.powered a { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* bovenbalk: organisatie wisselen, meldingen */
.tenant-switch select { font: inherit; font-weight: 680; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 6px 10px; background: var(--surface); color: var(--ink); max-width: 360px; }
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink-2); }
.bell:hover { background: var(--grey-soft); text-decoration: none; }
.bell.dark { color: #fff; }
.bell.dark:hover { background: rgba(255, 255, 255, .1); }
.bell-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; box-shadow: 0 0 0 2px var(--surface); }

/* inlog en openbare pagina's */
.auth-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 16px; }
.auth-foot a { color: var(--muted); }
.tenant-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.tenant-pick { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); font: inherit; cursor: pointer; }
.tenant-pick:hover { border-color: var(--diesel); background: var(--diesel-soft); }

/* ------------------------------------------------------------------ crew-app (opmaak.md §12): groter, meer contrast, navigatie onderaan */
.crewapp { min-height: 100dvh; background: var(--canvas); font-size: 16px; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.ca-top {
  position: sticky; top: 0; z-index: 20; height: 58px; color: #fff; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  padding-top: env(safe-area-inset-top);
  background:
    repeating-radial-gradient(circle at 100% 160%, transparent 0 13px, rgba(255, 255, 255, .055) 13px 14px),
    var(--rail);
}
.ca-mark { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--signal); color: var(--signal-ink); font-weight: 820; font-stretch: 110%; display: flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: inset 0 -3px 0 rgba(58, 44, 0, .16); }
.ca-logo { height: 34px; max-width: 120px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; }
.ca-org { font-weight: 680; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ca-chip { color: #fff; display: inline-flex; width: 40px; height: 40px; flex: none; align-items: center; justify-content: center; border-radius: 50%; }
.ca-chip:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.ca-main { max-width: 820px; margin: 0 auto; padding: 18px 16px; }
.ca-powered { color: var(--muted); font-size: 12px; text-align: center; margin: 24px 0 0; }
.ca-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(48, 38, 24, .08); padding: 6px 4px env(safe-area-inset-bottom);
}
.ca-nav a { flex: 1; min-width: 0; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-2); font-size: 13px; font-weight: 620; border-radius: 12px; }
.ca-nav a .icon { width: 56px; height: 30px; padding: 3px 16px; border-radius: 15px; box-sizing: border-box; transition: background-color .15s; flex: none; }
.ca-nav a:hover { text-decoration: none; }
.ca-nav a:hover .icon { background: var(--grey-soft); }
.ca-nav a.active { color: var(--diesel); font-weight: 720; }
.ca-nav a.active .icon { background: var(--diesel-soft); }
.a-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-1); }
.a-card h2 { font-size: 17px; margin-bottom: 6px; }
.a-card h3 { font-size: 17px; font-weight: 750; }
.a-section { font-size: 15px; font-weight: 720; margin: 22px 0 10px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.a-section::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.a-btn { min-height: 54px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; box-shadow: var(--shadow-1); }
.a-btn:hover { text-decoration: none; border-color: #B9B3A8; }
.a-btn.primary { background: var(--diesel); border-color: var(--diesel); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.a-btn.signal { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); box-shadow: inset 0 -3px 0 rgba(58, 44, 0, .15); }
.a-btn.danger { color: var(--red); border-color: #EFC2BC; }
.a-btn.quiet { border-color: transparent; background: transparent; box-shadow: none; }
.a-btn.block { width: 100%; }
.a-btn.small { min-height: 44px; font-size: 15px; }
.a-btn:disabled { opacity: .5; cursor: not-allowed; }
.a-input, .a-select, .a-textarea { width: 100%; min-height: 54px; font: inherit; font-size: 18px; border: 1.5px solid #B4AEA3; border-radius: 12px; padding: 10px 14px; background: var(--surface); color: var(--ink); }
.a-textarea { min-height: 110px; }
.a-input:focus, .a-select:focus, .a-textarea:focus { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--signal-ink); box-shadow: none; }
.a-label { display: block; font-size: 14px; font-weight: 650; color: var(--ink-2); margin: 12px 0 4px; }
.a-seg { display: flex; border: 1.5px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.a-seg button { flex: 1; min-height: 48px; border: 0; background: var(--surface); font: inherit; font-weight: 650; cursor: pointer; color: var(--ink); }
.a-seg button + button { border-left: 1.5px solid var(--line-strong); }
.a-seg button.on { background: var(--diesel); color: #fff; }
.a-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.a-meta { color: var(--muted); font-size: 14px; }
.a-shift { display: grid; grid-template-columns: 64px 1fr; gap: 14px; }
.a-shift .when {
  text-align: center; background: var(--diesel); color: #fff; border-radius: 12px; padding: 8px 4px 7px; font-weight: 700; align-self: start;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15);
}
.a-shift .when .d { font-size: 24px; line-height: 1; font-stretch: 112%; }
.a-shift .when .m { font-size: 12px; text-transform: lowercase; color: rgba(255, 255, 255, .85); }
.a-list { list-style: none; padding: 0; margin: 0; }
.a-list li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); display: flex; gap: 10px; align-items: center; }
.a-list li:last-child { border-bottom: 0; }
.a-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 14px; font-size: 13px; font-weight: 650; background: var(--grey-soft); color: var(--ink-2); }
.a-pill.ok { background: var(--green-soft); color: var(--green); }
.a-pill.warn { background: var(--signal-soft); color: var(--signal-ink); }
.a-pill.bad { background: var(--red-soft); color: var(--red); }
.a-instruction { font-size: 16px; line-height: 1.55; }
.a-instruction p { margin: 0 0 10px; }
.scanner { position: relative; width: 100%; aspect-ratio: 4/3; background: #000; border-radius: 14px; overflow: hidden; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 18% 12%; border: 3px solid var(--signal); border-radius: 12px; }
@media (max-width: 900px) { .powered { padding: 0 16px 96px; } }

/* ByClaude 03-11-2026 23:59 — Wat is nieuw (dialoog en pagina) */
.wn-body { max-height: 60vh; overflow-y: auto; }
.wn-title { font-size: 16px; margin: 12px 0 6px; }
.wn-title:first-child { margin-top: 0; }
.wn-list { margin: 0 0 8px; padding-left: 20px; }
.wn-list li { margin: 4px 0; line-height: 1.45; }

/* ==========================================================================
   ByClaude 03-11-2026 22:30 — Vandaag (dashboard)
   ========================================================================== */
.today-hero {
  position: relative; overflow: hidden; border-radius: 18px; color: #fff; padding: 28px 32px 30px; margin-bottom: var(--space-5);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-5); align-items: end;
  background:
    radial-gradient(ellipse 420px 300px at 88% 118%, rgba(242, 183, 5, .30), transparent 70%),
    repeating-radial-gradient(circle at 88% 118%, transparent 0 21px, rgba(255, 255, 255, .07) 21px 22px),
    linear-gradient(160deg, #22322B 0%, var(--rail) 60%);
  box-shadow: var(--shadow-2);
}
.today-hero .th-photo { display: contents; }   /* ByClaude 10-11-2026 23:10 — alleen in de huisstijl een eigen vlak (brand.css) */
.today-hero .th-date { color: #E8C766; font-weight: 640; font-size: 14px; margin-bottom: 6px; }
.today-hero .th-date::first-letter { text-transform: uppercase; }
.today-hero h1 { font-size: 36px; font-stretch: 118%; font-weight: 780; color: #fff; }
.today-hero .th-sub { color: var(--rail-ink); margin: 8px 0 0; font-size: 15px; max-width: 58ch; }
.th-next {
  display: block; min-width: 260px; max-width: 340px; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(2px);
}
.th-next:hover { background: rgba(255, 255, 255, .11); text-decoration: none; }
.th-next .tn-label { color: var(--rail-muted); font-size: 12.5px; font-weight: 600; }
.th-next .tn-count { font-size: 40px; line-height: 1; font-weight: 780; font-stretch: 118%; letter-spacing: -0.02em; margin: 6px 0 2px; color: var(--signal); }
.th-next .tn-count small { font-size: 16px; font-weight: 650; font-stretch: 100%; letter-spacing: 0; color: #fff; margin-left: 6px; }
.th-next .tn-what { font-weight: 650; }
.th-next .tn-sub { color: var(--rail-ink); font-size: 13px; }

.kpi-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-5); }
.kpi-tile {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 16px 18px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-1);
  transition: border-color .15s, box-shadow .15s;
}
.kpi-tile:hover { text-decoration: none; border-color: color-mix(in srgb, var(--mod) 40%, var(--line)); box-shadow: var(--shadow-2); }
.kpi-tile .kt-icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--mod-soft); color: var(--mod); }
.kpi-tile .kpi-value { font-size: 30px; font-weight: 740; font-stretch: 115%; line-height: 1; letter-spacing: -0.02em; display: block; }
.kpi-tile .kpi-label { color: var(--muted); font-size: 13px; display: block; line-height: 1.3; }
.kpi-tile.alert { border-color: #EBC9C3; }
.kpi-tile.alert .kpi-value { color: var(--red); }
.kpi-tile.alert .kt-icon { background: var(--red-soft); color: var(--red); }

.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-4); align-items: start; }
.today-grid .td-work { grid-column: 2; grid-row: 1; }
.today-grid .td-days { grid-column: 1; grid-row: 1; }
.fill { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.fill-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--grey-soft); overflow: hidden; min-width: 48px; }
.fill-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--amber); }
.fill.full .fill-bar > span { background: var(--green); }
.fill.none .fill-bar > span { background: transparent; }
.fill .fill-num { font-weight: 650; font-size: 13px; min-width: 44px; text-align: right; }
.fill.none .fill-num { color: var(--red); }
.day-date { display: inline-flex; flex-direction: column; line-height: 1.15; }
.day-date strong { font-weight: 680; }
.day-date span { color: var(--muted); font-size: 12px; }
.hide-sm { }

@media (max-width: 1200px) {
  .today-grid { grid-template-columns: minmax(0, 1fr); }
  .today-grid .td-work, .today-grid .td-days { grid-column: 1; grid-row: auto; }
}
@media (max-width: 900px) {
  .kpi-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .today-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 20px 20px; border-radius: 16px; }
  .today-hero h1 { font-size: 28px; }
  .th-next { min-width: 0; max-width: none; }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .kpi-tile { grid-template-columns: 30px minmax(0, 1fr); padding: 12px; gap: 2px 10px; align-items: start; }
  .kpi-tile .kt-icon { width: 30px; height: 30px; border-radius: 9px; }
  .kpi-tile .kt-icon .icon { width: 18px; height: 18px; }
  .kpi-tile .kpi-value { font-size: 24px; }
  .kpi-tile .kpi-label { font-size: 12.5px; }
  .fill { min-width: 0; }
  .fill-bar { display: none; }
}

/* ByClaude 04-11-2026 15:55 — help-paneel rechts (zelfde opzet als DVEventDesign) */
.help-btn .lbl { font-weight: 600; }
.help-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw); z-index: 1040; background: #fff; border-left: 1px solid var(--line);
              box-shadow: -12px 0 32px rgba(23, 33, 42, .14); display: flex; flex-direction: column; animation: help-in .18s ease-out; font-family: var(--font, inherit); color: var(--ink); }
@keyframes help-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.help-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 16px 16px 10px; border-bottom: 1px solid var(--line-soft);
             background: linear-gradient(90deg, color-mix(in srgb, var(--mod, #0E5A4C) 13%, white), color-mix(in srgb, var(--mod, #0E5A4C) 3%, white)); }
.help-head h2 { margin: 2px 0 0; font-size: 20px; font-weight: 750; }
.help-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mod, #0E5A4C); }
.help-search { display: flex; align-items: center; gap: 8px; margin: 12px 16px 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #FAFAF8; color: var(--muted); }
.help-search input { flex: 1; border: 0; background: transparent; padding: 9px 0; font: inherit; font-size: 14px; color: var(--ink); outline: none; min-width: 0; }
.help-search:focus-within { border-color: var(--mod, #0E5A4C); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mod, #0E5A4C) 15%, transparent); }
.help-body { flex: 1; overflow-y: auto; padding: 4px 16px 24px; font-size: 14px; line-height: 1.5; }
.help-intro { margin: 6px 0 12px; color: var(--ink-2); }
.help-topic { border: 1px solid var(--line-soft); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.help-topic > summary { cursor: pointer; padding: 10px 12px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.help-topic > summary::-webkit-details-marker { display: none; }
.help-topic > summary::after { content: "›"; color: var(--muted); font-size: 18px; transition: transform .15s; }
.help-topic[open] > summary::after { transform: rotate(90deg); }
.help-topic[open] > summary { color: var(--mod, #0E5A4C); }
.help-topic ol { margin: 0; padding: 0 14px 10px 32px; display: flex; flex-direction: column; gap: 5px; }
.help-topic > p { margin: 0; padding: 0 12px 10px; color: var(--ink-2); }
.help-topic.faq > summary { font-weight: 550; }
.help-tip { display: flex; gap: 6px; align-items: flex-start; margin: 2px 12px 10px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--signal, #F2B705) 14%, white); color: var(--ink-2); font-size: 13px; }
.help-h3 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; }
.help-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.help-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.help-chip:hover { border-color: var(--mod, #0E5A4C); color: var(--mod, #0E5A4C); }
.help-hit { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; border: 1px solid var(--line-soft); border-radius: 10px;
            padding: 9px 12px; margin-bottom: 6px; background: #fff; font: inherit; cursor: pointer; color: inherit; }
.help-hit:hover { border-color: var(--mod, #0E5A4C); }
.help-hit-page { font-size: 11.5px; color: var(--mod, #0E5A4C); font-weight: 650; }
.help-foot { margin-top: 18px; }
.help-panel.app { width: 100vw; max-width: 560px; font-size: 15px; }
@media (max-width: 640px) { .help-panel { width: 100vw; } .help-btn .lbl { display: none; } }

/* ByClaude 04-11-2026 16:15 — compacter overal: kleinere paginakop, minder ruimte tussen regels en boven/onder panelkoppen */
h1 { font-size: 24px; }
.page-head { margin-bottom: var(--space-4); }
.page-head .subtitle { font-size: 13.5px; margin-top: 4px; }
.page-back { margin-bottom: 2px; }
.panel-head { padding: 9px var(--space-4) 8px; min-height: 44px; }
table.simple th { padding: 6px 10px; }
table.simple td { padding: 6px 10px; }
table.simple td .muted.small, table.simple td div.small { line-height: 1.3; }
.tabs a { padding-top: 8px; padding-bottom: 8px; }
.filterbar { margin-bottom: var(--space-3); }
/* tabel.fit: kolommen zo breed als de inhoud, de laatste kolom vult de rest */
table.simple.fit th:not(:last-child), table.simple.fit td:not(:last-child) { width: 1%; white-space: nowrap; padding-right: 28px; }

/* ByClaude 04-11-2026 16:50 — vaste kleur per soort dag (planbord, tijdlijn): --dt = accent, --dt-soft = achtergrond */
.dt-Build     { --dt: #B07A3B; --dt-soft: #F6EDE1; }
.dt-Show      { --dt: #0E5A4C; --dt-soft: #E2EEE9; }
.dt-Reserve   { --dt: #C08F00; --dt-soft: #FBF2D2; }
.dt-Teardown  { --dt: #6E655B; --dt-soft: #EEEBE6; }
.dt-Rehearsal { --dt: #2F5FB8; --dt-soft: #E5EDF9; }
.dt-Other     { --dt: #7D858C; --dt-soft: #EEF0F1; }

/* ByClaude 09-11-2026 21:50 — sectietabbladen duidelijker als tabblad: elk tabblad een vlakje met rand, het actieve wit met een gekleurde bovenrand
   dat aansluit op de pagina; de rest licht getint */
.tabs.section-tabs { gap: 4px; padding: 0 2px; border-bottom: 1px solid var(--line-strong); align-items: flex-end; }
.tabs.section-tabs a {
  padding: 7px 14px 6px; border: 1px solid var(--line); border-bottom: 0; margin-bottom: 0; border-radius: 8px 8px 0 0;
  background: #E8E4DD; color: var(--ink-2); font-size: 14px;
}
.tabs.section-tabs a:hover { background: #fff; color: var(--ink); }
.tabs.section-tabs a.active {
  position: relative; background: var(--canvas); color: var(--ink); font-weight: 680; border-color: var(--line-strong);
  box-shadow: inset 0 3px 0 var(--mod); padding-top: 9px; margin-bottom: -1px; border-bottom: 1px solid var(--canvas);
}

/* ByClaude 09-11-2026 23:05 — kop van popups en dialogen met een kleurtje (accentkleur van het onderdeel) */
.dxbl-modal-header, .dxbl-popup-header { background: color-mix(in srgb, var(--mod, #0E5A4C) 10%, white); border-bottom: 1px solid color-mix(in srgb, var(--mod, #0E5A4C) 20%, white);
    border-radius: var(--radius-l) var(--radius-l) 0 0; }
.dxbl-modal-header .dxbl-modal-title, .dxbl-popup-header .dxbl-modal-title { color: color-mix(in srgb, var(--mod, #0E5A4C) 60%, var(--ink)); }
