/* MAAK Cockpit — vormgeving */
:root {
  color-scheme: light;
  --page: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #fafaf8;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --line: #e4e3dc;
  --line-soft: #efeee8;
  --grid: #e8e7e0;
  --accent: #2a78d6;
  --accent-soft: #eaf2fd;

  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;

  --good: #0ca30c; --warn: #fab219; --serious: #ec835a; --crit: #d03b3b;
  --good-bg: #0ca30c1f; --warn-bg: #fab21930; --serious-bg: #ec835a26; --crit-bg: #d03b3b1f;

  --shadow: 0 1px 2px rgba(11,11,11,.05), 0 8px 24px -12px rgba(11,11,11,.14);
  --radius: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #17181c; --surface-2: #1d1e23;
    --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781;
    --line: #2c2d31; --line-soft: #232428; --grid: #26272b;
    --accent: #3987e5; --accent-soft: #3987e51f;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #17181c; --surface-2: #1d1e23;
  --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781;
  --line: #2c2d31; --line-soft: #232428; --grid: #26272b;
  --accent: #3987e5; --accent-soft: #3987e51f;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- inlogscherm ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 40px 36px; max-width: 430px; text-align: center; box-shadow: var(--shadow);
}
.login-card .mark { width: 52px; height: 52px; margin: 0 auto 20px; }
.login-card h1 { font-size: 24px; }
.login-card p { color: var(--ink-2); margin: 14px 0 26px; }

/* ---------- raamwerk ---------- */
.shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100dvh; }
.side {
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px; padding: 20px 12px;
  position: sticky; top: 0; height: 100dvh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { font-size: 15px; font-weight: 650; letter-spacing: -.015em; display: block; }
.brand span { font-size: 11px; color: var(--muted); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 9px; background: none;
  color: var(--ink-2); font: inherit; cursor: pointer; text-align: left;
}
.side nav button svg { width: 17px; height: 17px; flex: none; opacity: .8; }
.side nav button:hover { background: var(--surface-2); color: var(--ink); }
.side nav button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side nav button.on svg { opacity: 1; }
.side nav button .pip {
  margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums;
  background: var(--crit); color: #fff; border-radius: 99px; padding: 1px 6px; font-weight: 600;
}
.side .foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line-soft); font-size: 11px; color: var(--muted); }

.main { min-width: 0; padding: 22px 26px 60px; }
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.top h1 { font-size: 21px; }
.top .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.tools { display: flex; align-items: center; gap: 8px; }

.btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 7px 13px; border-radius: 9px; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn svg { width: 15px; height: 15px; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); padding: 11px 22px; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.icon { padding: 7px; }
.who { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 650; }
.who small { color: var(--muted); font-size: 11px; display: block; line-height: 1.1; }

/* ---------- kaarten ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.card h2 { font-size: 14.5px; }
.card .hint { font-size: 12px; color: var(--muted); max-width: 58ch; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1080px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- kpi-tegels ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi .lab { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.kpi .val { font-size: 27px; font-weight: 650; letter-spacing: -.025em; margin: 6px 0 2px; line-height: 1.1; }
.kpi .note { font-size: 11.5px; color: var(--ink-2); }
.kpi.good .val { color: var(--good); } .kpi.warn .val { color: var(--warn); }
.kpi.crit .val { color: var(--crit); } .kpi.accent .val { color: var(--accent); }
.kpi .spark { position: absolute; right: 0; bottom: 0; opacity: .5; }

/* ---------- balk met filters ---------- */
.bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  padding: 5px 12px; border-radius: 99px; cursor: pointer; font: inherit; font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--muted); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--page); border-color: var(--ink); font-weight: 600; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip .n { font-variant-numeric: tabular-nums; opacity: .65; }
input[type=search], select {
  font: inherit; padding: 6px 11px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--ink);
}
input[type=search] { min-width: 240px; }
input[type=search]:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
label.sw { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }

/* ---------- tabellen ---------- */
.scroll { overflow: auto; margin: 0 -18px -18px; padding: 0 18px 4px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
thead th {
  position: sticky; top: 0; z-index: 2; background: var(--surface); color: var(--muted);
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
  cursor: pointer; user-select: none; border-bottom: 1px solid var(--line);
}
thead th:hover { color: var(--ink); }
thead th.r, td.r { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: var(--surface-2); }
td .pname { display: flex; align-items: center; gap: 8px; max-width: 360px; }
td .pname a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 500; }
td .pname a:hover { color: var(--accent); }
.code { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.warn { background: var(--warn-bg); color: #8a6100; }
.tag.serious { background: var(--serious-bg); color: #a8502a; }
.tag.crit { background: var(--crit-bg); color: var(--crit); }
.tag.flat { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
:root[data-theme="dark"] .tag.warn, :root:not([data-theme="light"]) .tag.warn { color: var(--warn); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.serious { color: var(--serious); } }
:root[data-theme="dark"] .tag.serious { color: var(--serious); }

.meter { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.meter .track { width: 58px; height: 6px; border-radius: 99px; background: var(--grid); overflow: hidden; flex: none; }
.meter .fill { height: 100%; border-radius: 99px; }
.meter b { font-weight: 600; min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }

.flag { font-size: 11px; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 6px; padding: 1px 5px; cursor: help; flex: none; }

select.inline {
  font-size: 12.5px; padding: 3px 7px; border-radius: 7px; max-width: 160px;
  border-color: transparent; background: var(--surface-2);
}
select.inline:hover { border-color: var(--line); }
select.inline:disabled { opacity: .55; }

/* ---------- grafieken ---------- */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { font-family: var(--sans); }
.axis { font-size: 11px; fill: var(--muted); }
.gridline { stroke: var(--grid); stroke-width: 1; }
.baseline { stroke: var(--line); stroke-width: 1; }
.lbl { font-size: 11.5px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.lbl.strong { fill: var(--ink); font-weight: 600; }
.hit { fill: transparent; cursor: pointer; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }

#tip {
  position: fixed; z-index: 99; pointer-events: none; opacity: 0; transition: opacity .1s;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 11px; font-size: 12.5px; box-shadow: var(--shadow); max-width: 280px;
}
#tip b { display: block; margin-bottom: 3px; font-size: 12.5px; }
#tip .row { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
#tip .row span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }

/* ---------- slot ---------- */
.slot { display: grid; place-items: center; padding: 60px 20px; }
.slot-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 32px; max-width: 460px; text-align: center; box-shadow: var(--shadow);
}
.slot-ring {
  width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
}
.slot-ring svg { width: 24px; height: 24px; }
.slot-card h2 { font-size: 17px; }
.slot-card p { color: var(--ink-2); font-size: 13px; margin: 10px 0 22px; }
.slot-rij { display: flex; gap: 8px; }
.slot-rij input {
  flex: 1; font: inherit; padding: 10px 13px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface-2); color: var(--ink);
}
.slot-rij input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.slot-rij .btn.primary { padding: 10px 18px; }
.slot-fout { margin-top: 14px; color: var(--crit); font-size: 12.5px; font-weight: 600; }

/* ---------- lijsten met signalen ---------- */
.signals { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.signal {
  display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2);
  cursor: pointer; text-align: left; font: inherit; color: var(--ink); width: 100%;
}
.signal:hover { border-color: var(--muted); }
.signal.on { border-color: var(--accent); background: var(--accent-soft); }
.signal .n { font-size: 20px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; min-width: 26px; }
.signal .t { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.signal.crit .n { color: var(--crit); } .signal.warn .n { color: var(--warn); } .signal.info .n { color: var(--accent); }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 13px; }

.msg { padding: 11px 15px; border-radius: 11px; margin-bottom: 14px; font-size: 13px; border: 1px solid; }
.msg.err { background: var(--crit-bg); border-color: var(--crit); color: var(--ink); }
.msg.ok { background: var(--good-bg); border-color: var(--good); color: var(--ink); }
.msg.warn { background: var(--warn-bg); border-color: var(--warn); color: var(--ink); }

.loader { display: grid; place-items: center; padding: 70px; color: var(--muted); gap: 14px; }
.spin { width: 26px; height: 26px; border: 2.5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto;
          border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; gap: 8px; }
  .brand { padding: 0 12px 0 0; } .brand .meta { display: none; }
  .side nav { flex-direction: row; } .side .foot { display: none; }
  .side nav button span.t { display: none; }
  .main { padding: 16px 14px 48px; }
  input[type=search] { min-width: 150px; flex: 1; }
}

/* ---------- capaciteit ---------- */
.btn.primary.small { padding: 7px 14px; }
.btn[disabled] { opacity: .5; cursor: default; }
table.rooster td.pn { font-weight: 600; }
table.rooster th.c, table.rooster td.c { text-align: center; padding: 5px 4px; }
table.rooster th.wk { min-width: 82px; cursor: default; }
table.rooster th small.sv { display: block; font-size: 9.5px; color: var(--accent); font-weight: 600; text-transform: none; letter-spacing: 0; }
.cel { border-radius: 8px; padding: 5px 8px; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 1px; position: relative; }
.cel b { font-weight: 650; font-variant-numeric: tabular-nums; }
.cel small { font-size: 10px; color: var(--ink-2); }
.cel .over { position: absolute; top: 3px; right: 5px; color: var(--crit); font-weight: 800; font-size: 12px; }
.cel.deel { border: 1px dashed var(--muted); }
.cel.vak { flex-direction: row; justify-content: center; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); font-weight: 600; }
.cp0 { background: rgba(153, 27, 27, .30); }
.cp1 { background: rgba(239, 68, 68, .18); }
.cp2 { background: rgba(249, 115, 22, .20); }
.cp3 { background: rgba(34, 197, 94, .20); }
.cp4 { background: rgba(21, 128, 61, .32); }
.fill.cp0 { background: #991b1b; } .fill.cp1 { background: #ef4444; } .fill.cp2 { background: #f97316; }
.fill.cp3 { background: #22c55e; } .fill.cp4 { background: #15803d; }

.tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.tegel { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.tegel.rood { border-color: var(--crit); background: var(--crit-bg); }
.tegel .muted { font-size: 12px; }

/* tijdlijn */
.gscroll { overflow: auto; border: 1px solid var(--line); border-radius: 11px; max-height: 640px; }
.gchart { position: relative; }
.grow { display: flex; border-bottom: 1px solid var(--line-soft); min-height: 32px; }
.glab { width: 250px; flex: none; position: sticky; left: 0; z-index: 3; background: var(--surface); padding: 6px 10px; font-size: 12.5px;
        border-right: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.glab.sub { padding-left: 22px; }
.glab small { font-size: 11px; }
.ggroep .glab, .ggroep .gtrack { background: var(--surface-2); }
.gkop { position: sticky; z-index: 4; background: var(--surface); }
.gkop:nth-child(1) { top: 0; } .gkop:nth-child(2) { top: 32px; }
.gkop .glab { z-index: 5; }
.gtrack { position: relative; height: 32px; flex: none;
          background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px); }
.gtrack.gh { background-image: none; }
.gm, .gw { position: absolute; top: 0; height: 100%; display: flex; align-items: center; padding-left: 6px; font-size: 11px; color: var(--muted);
           border-left: 1px solid var(--line); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; overflow: hidden; }
.gw { padding-left: 4px; font-weight: 500; }
.gw.nu { color: var(--accent); font-weight: 700; }
.gnu { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--crit); opacity: .7; z-index: 1; pointer-events: none; }
.gbar { position: absolute; top: 5px; height: 22px; border-radius: 6px; color: #fff; font-size: 11.5px; font-weight: 600; display: flex; align-items: center;
        padding: 0 8px; overflow: hidden; cursor: grab; z-index: 2; touch-action: none; user-select: none; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.gbar.vast { cursor: pointer; }
.gbar.sleep { cursor: grabbing; opacity: .85; outline: 2px solid var(--accent); }
.gbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.gbar i.hl, .gbar i.hr { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; }
.gbar i.hl { left: 0; } .gbar i.hr { right: 0; }
.gbar i.hl:hover, .gbar i.hr:hover { background: rgba(255,255,255,.35); }

/* vensters */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; width: min(520px, 100%); max-height: 90dvh; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.modal header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px 6px; }
.modal header h2 { font-size: 15.5px; overflow-wrap: anywhere; }
.modal-body { padding: 8px 18px 14px; overflow: auto; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line-soft); }
.modal footer .btn.primary { padding: 8px 18px; }
.veld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; font-size: 12.5px; color: var(--ink-2); }
.veld input, .veld select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--ink); width: 100%; }
.veld input:focus, .veld select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.twee { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.samenv { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 12px; font-size: 13px; }
.drij { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.drij b { text-align: right; font-weight: 600; }

/* weekoverzicht declarabiliteit */
table.wk td.pn { font-weight: 600; }
table.wk th.c, table.wk td.c { text-align: center; padding: 5px 3px; }
table.wk thead th { cursor: default; }
table.wk tr.wk-team td { border-bottom: 2px solid var(--line); }
.wkcel { display: inline-block; min-width: 42px; padding: 3px 4px; border-radius: 6px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wk-good { background: var(--good-bg); color: var(--good); }
.wk-warn { background: var(--warn-bg); color: var(--ink); }
.wk-crit { background: var(--crit-bg); color: var(--crit); }
.wk-leeg { color: var(--muted); }
.wkcel.wk-breed { min-width: 70px; font-weight: 500; }

/* ---------- weekoverzicht ---------- */
.wk-kop { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.wk-kop h2 { font-size: 22px; display: inline; margin-right: 10px; }
.wk-kolommen { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.wk-kol { min-width: 0; }
.kpis.k3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .wk-kolommen { grid-template-columns: 1fr; } }
.wk-lab { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin: 0 2px 6px; }
.wl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.wl-kop { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wl-kop i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.wl-kop span { margin-left: auto; font-weight: 600; }
.wl-rij { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: baseline; font-size: 13px; padding: 2px 0; border-top: 1px solid var(--line-soft); }
.wl-rij a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.wl-rij .wl-wie { color: var(--muted); font-size: 12px; }
.wl-leeg, .wl-meer { font-size: 12.5px; color: var(--muted); padding: 2px 0; border-top: 1px solid var(--line-soft); }
@media (max-width: 700px) { .wl-grid { grid-template-columns: 1fr; } .kpis.k3 { grid-template-columns: 1fr 1fr; } }

/* TV-modus: alleen het weekoverzicht, schermvullend en groter, zonder menu en knoppen. */
body.tv .side, body.tv .top { display: none; }
body.tv .shell { grid-template-columns: 1fr; }
body.tv .main { padding: 1.2vw 1.6vw; max-width: none; }
body.tv #msg { display: none; }
body.tv .kpi .val { font-size: clamp(30px, 2.8vw, 56px); }
body.tv .kpi .lab { font-size: clamp(11px, .85vw, 17px); }
body.tv .kpi .note { font-size: clamp(11px, .85vw, 17px); }
body.tv .wk-kop h2 { font-size: clamp(24px, 2.2vw, 44px); }
body.tv .wk-kop .muted { font-size: clamp(13px, 1.1vw, 22px); }
body.tv .wl-rij, body.tv .wl-leeg, body.tv .wl-meer { font-size: clamp(12px, .85vw, 17px); }
body.tv .card { padding: 1vw; margin-bottom: .8vw; }
body.tv .card h2 { font-size: clamp(13px, 1vw, 20px); }
body.tv .kpis { margin-bottom: .8vw; gap: .8vw; }
body.tv .kpi { padding: .8vw 1vw; }
body.tv .wk-kolommen { gap: 1.2vw; }
body.tv .wk-kop { margin-bottom: .6vw; }
body.tv .card .hint { display: none; }
body.tv .card > header { margin-bottom: .5vw; }
body.tv .wl-grid { gap: .6vw 1.4vw; }

table.wk tr.wk-sub td { background: rgba(42, 120, 214, .07); font-weight: 600; }
