/* ════════ delivery.css ════════ */
/* Gedeelde basis Support Desk (letterlijk uit gedeeld/basis-delivery.css van de goedgekeurde mockups): app-tokens, shell, band, pillen, filters, tabel.
   Weggelaten: de pagina rond de mockup (mock-bar, :root --page-*, notes) en de @font-face-regels (die staan in styles.css). */
/* ── De app zelf: Delivery-tokens + de Lobby-tokens van Admin ───────── */
.app {
  --background: #faf8f2;
  --surface: #f3f0e8;
  --surface-child: rgba(255, 255, 255, 0.52);
  --text: #1c1a17;
  --muted: #6b665d;
  --muted-strong: #5f5a51;
  --primary: #114d61;
  --primary-foreground: #faf8f2;
  --primary-soft: #d9e8e8;
  --interactive-accent: var(--primary);
  --accent: #e8aa57;
  --arrow: #e8aa57;
  --status-red: #b42318;
  --status-amber: #9a5808;
  --status-green: #17694b;
  --line: #ded8cb;
  --line-soft: color-mix(in srgb, var(--line) 55%, var(--surface));
  --row-tint: rgba(28, 26, 23, 0.03);
  --col-now: color-mix(in srgb, var(--primary) 6%, transparent);
  --focus: #114d61;
  --ghost: color-mix(in srgb, var(--text) 9%, transparent);
  /* Lobby (Admin ronde 2): de band blijft in beide thema's donker. */
  --hero-bg: #114d61;
  --hero-ink: #faf8f2;
  --hero-ink-2: rgba(250, 248, 242, 0.72);
  --hero-ink-3: rgba(250, 248, 242, 0.55);
  --hero-line: rgba(250, 248, 242, 0.18);
  --hero-ghost: rgba(250, 248, 242, 0.14);
  --tile-bg: #faf8f2;
  --tile-ink: #1c1a17;
  --tile-muted: #6b665d;
  --tile-shadow: 0 8px 24px rgba(11, 46, 59, 0.18);
  --hero-shape-shadow: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.18));
  /* Stipkleuren op de band: de donkere-thema-statuskleuren, leesbaar op teal. */
  --band-red: #ff9d92;
  --band-amber: #f2a66e;
  --band-green: #7fd8b8;
  --status-red-fill: color-mix(in srgb, var(--status-red) 13%, var(--surface));
  --status-red-line: color-mix(in srgb, var(--status-red) 46%, var(--line));
  --status-amber-fill: color-mix(in srgb, var(--status-amber) 15%, var(--surface));
  --status-amber-line: color-mix(in srgb, var(--status-amber) 48%, var(--line));
  --status-green-fill: color-mix(in srgb, var(--status-green) 13%, var(--surface));
  --status-green-line: color-mix(in srgb, var(--status-green) 46%, var(--line));
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(28, 26, 23, 0.12);
  color: var(--text);
  color-scheme: light;
  container-name: app;
  container-type: inline-size;
  margin: 0 auto;
  overflow: hidden;
  transition: max-width .25s cubic-bezier(0.16, 1, 0.3, 1);
}
.app[data-theme="dark"] {
  --background: #0b2e3b;
  --surface: #0f3a4a;
  --surface-child: color-mix(in srgb, var(--surface) 82%, var(--background));
  --text: #f0ede6;
  --muted: #90b5c3;
  --muted-strong: #b7d6e2;
  --primary: #66d4ec;
  --primary-foreground: #0b2e3b;
  --primary-soft: #134757;
  --interactive-accent: #f0be72;
  --accent: #5cc0dc;
  --arrow: #f8d977;
  --status-red: #fca5a5;
  --status-amber: #f2a66e;
  --status-green: #7fd8b8;
  --line: #1a5268;
  --row-tint: rgba(240, 237, 230, 0.042);
  --col-now: rgba(199, 229, 237, 0.07);
  --focus: #f0be72;
  --hero-bg: #134757;
  --hero-ink: #f0ede6;
  --hero-ink-2: rgba(240, 237, 230, 0.72);
  --hero-ink-3: rgba(240, 237, 230, 0.55);
  --hero-line: rgba(240, 237, 230, 0.16);
  --hero-ghost: rgba(240, 237, 230, 0.12);
  --tile-bg: #0b2e3b;
  --tile-ink: #f0ede6;
  --tile-muted: #90b5c3;
  --tile-shadow: 0 8px 24px rgba(0, 0, 0, 0.44);
  --hero-shape-shadow: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.5));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}
:where(.app a) { color: inherit; text-decoration: none; }
.app :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.avatar {
  align-items: center; background: #114d61; border-radius: 999px; color: #d9e8e8; display: inline-flex;
  flex: 0 0 auto; font-size: var(--pj-t-meta); font-weight: 700; height: 32px; justify-content: center; width: 32px;
}
.app[data-theme="dark"] .avatar { background: #d9e8e8; color: #0b2e3b; }
.lockup { align-items: baseline; display: flex; gap: 8px; }
.lockup b { font-size: var(--pj-t-body); font-weight: 700; }
.lockup span { color: var(--interactive-accent); font-size: var(--pj-t-body); font-weight: 500; }
.nav { display: flex; gap: 4px; }
.nav a { border-radius: 8px; color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; padding: 8px 8px; }
.nav a[aria-current="page"] { background: var(--primary-soft); color: var(--interactive-accent); }
/* ── De band ──────────────────────────────────────────────────────── */
.dl-hero {
  background: var(--hero-bg); color: var(--hero-ink); isolation: isolate; overflow: hidden;
  padding: 40px 40px 40px; position: relative;
}
.dl-hero::after {
  background-image: url(assets/hero-grain.svg); background-size: 240px 240px; content: ""; inset: 0;
  mix-blend-mode: overlay; opacity: .14; pointer-events: none; position: absolute; z-index: 0;
}
.dl-hero > * { position: relative; z-index: 1; }
.dl-hero-shape {
  filter: var(--hero-shape-shadow); pointer-events: none; position: absolute; right: clamp(8px, 4vw, 64px);
  top: -6px; width: clamp(180px, 22vw, 320px); z-index: 0;
}
.dl-hero-shape img { display: block; width: 100%; }
.dl-scope { display: flex; gap: 24px; }
.dl-scope-tab {
  background: none; border: 0; border-bottom: 2px solid transparent; color: var(--hero-ink-2); cursor: pointer;
  font-size: var(--pj-t-ui); font-weight: 500; margin-bottom: -1px; padding: 0 0 8px;
}
.dl-scope-tab b { color: var(--hero-ink-3); font-weight: 700; margin-left: 8px; }
.dl-scope-tab[aria-selected="true"] { border-bottom-color: var(--hero-ink); color: var(--hero-ink); }
.dl-scope-tab[aria-selected="true"] b { color: var(--arrow); }
/* Laden: spookbalken op de band, spooktegels. */
.ghost { animation: pulse 1.4s ease-in-out infinite; background: var(--hero-ghost); border-radius: 6px; display: block; }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .ghost { animation: none; }
}
/* ── Projecten: lage band ─────────────────────────────────────────── */
.pj-hero { padding: 24px 40px 0; }
.pj-hero .dl-hero-shape { right: clamp(8px, 3vw, 48px); top: -58px; width: clamp(150px, 15vw, 210px); }
.pj-scope { border-bottom: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 24px; }
.pj-scope .dl-scope-tab { padding-bottom: 16px; }
.seg { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; display: inline-flex; padding: 4px; }
.seg button { background: none; border: 0; border-radius: 7px; color: var(--muted); cursor: pointer; font-size: var(--pj-t-meta); font-weight: 500; min-height: 30px; padding: 0 16px; }
.seg button[aria-pressed="true"] { background: var(--background); box-shadow: 0 1px 2px rgba(28, 26, 23, .12); color: var(--text); }
.pj-sep { background: var(--line); display: block; height: 22px; width: 1px; }
.dd {
  align-items: center; background: var(--background); border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  display: inline-flex; font-size: var(--pj-t-meta); font-weight: 500; gap: 8px; min-height: 36px; padding: 0 16px;
}
.dd::after { border-bottom: 1px solid var(--muted); border-right: 1px solid var(--muted); content: ""; height: 6px; margin-left: 4px; transform: rotate(45deg) translateY(-2px); width: 6px; }
.check { align-items: center; color: var(--text); display: inline-flex; font-size: var(--pj-t-meta); gap: 8px; }
.check input { accent-color: var(--primary); height: 16px; margin: 0; width: 16px; }
.search {
  align-items: center; background: var(--background); border: 1px solid var(--line); border-radius: 10px; display: inline-flex;
  gap: 8px; margin-left: auto; min-height: 36px; min-width: 240px; padding: 0 16px;
}
.search svg { color: var(--muted); height: 15px; width: 15px; }
.search span { color: var(--muted); flex: 1; font-size: var(--pj-t-meta); }
.search kbd { border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-family: inherit; font-size: var(--pj-t-meta); padding: 0 4px; }
.bchip {
  align-items: center; background: transparent; border: 1px solid var(--hero-line); border-radius: 999px; color: var(--hero-ink-2);
  cursor: pointer; display: inline-flex; font-size: var(--pj-t-meta); font-weight: 500; gap: 8px; min-height: 32px; padding: 0 16px; white-space: nowrap;
}
.bchip:hover { border-color: rgba(250, 248, 242, 0.4); color: var(--hero-ink); }
.bchip b { color: var(--hero-ink-3); font-weight: 400; }
.bchip i { border-radius: 999px; display: block; height: 7px; width: 7px; }
.bchip i.red { background: var(--band-red); }
.bchip i.amber { background: var(--band-amber); }
.bchip[aria-pressed="true"] { background: var(--tile-bg); border-color: var(--tile-bg); color: var(--primary); }
.bchip[aria-pressed="true"] b { color: var(--tile-muted); }
.bchip .tick { border: 1px solid currentColor; border-radius: 4px; display: inline-block; height: 13px; position: relative; width: 13px; }
.bchip[aria-pressed="true"] .tick { background: var(--primary); border-color: var(--primary); }
.bchip[aria-pressed="true"] .tick::after { border-bottom: 2px solid var(--tile-bg); border-right: 2px solid var(--tile-bg); content: ""; height: 7px; left: 3.5px; position: absolute; top: 0.5px; transform: rotate(45deg); width: 3px; }
.dd-b::after { border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; content: ""; height: 5px; margin-left: 4px; transform: rotate(45deg) translateY(-2px); width: 5px; }
.bpop { position: relative; }
.pop {
  background: var(--tile-bg); border-radius: 12px; box-shadow: 0 18px 40px rgba(11, 46, 59, .28); color: var(--tile-ink); display: grid;
  gap: 4px; left: 0; min-width: 220px; padding: 8px; position: absolute; top: calc(100% + 8px); z-index: 20;
}
.pop.right { left: auto; right: 0; }
.pop[hidden] { display: none; }
.pop-h { color: var(--tile-muted); font-size: var(--pj-t-meta); font-weight: 500; padding: 4px 8px 8px; }
.pop label, .pop a { align-items: center; border-radius: 7px; color: var(--tile-ink); display: flex; font-size: var(--pj-t-ui); gap: 8px; padding: 8px 8px; }
.pop label:hover, .pop a:hover { background: color-mix(in srgb, var(--primary) 8%, var(--tile-bg)); }
.pop input { accent-color: var(--primary); }
/* ── Ronde 3: knop op de tabbladregel, menu's vallen niet meer weg ── */
.pj-hero { overflow: visible; z-index: 5; }
.pj-hero .dl-hero-shape { clip-path: inset(58px -40px -40px -40px); }
/* ── Tabel ───────────────────────────────────────────────────────── */
.pj-wrap { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.pj-table { border-collapse: separate; border-spacing: 0; color: var(--text); font-family: inherit; font-size: var(--pj-t-ui); table-layout: fixed; }
.pj-table th, .pj-table td { border-bottom: 1px solid var(--line); overflow: hidden; padding: 8px 16px; text-align: left; text-overflow: ellipsis; vertical-align: middle; }
.pj-table thead th {
  background: var(--surface); color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; padding-bottom: 8px;
  line-height: 1.25; padding-top: 16px; position: relative; user-select: none; vertical-align: bottom;
}
.pj-table thead th { text-overflow: clip; }
.pj-table thead th .sort { color: var(--muted); font-size: var(--pj-t-meta); margin-left: 4px; opacity: .6; }
.pj-table thead th.num, .pj-table td.num { text-align: right; }
.pj-table tbody tr:nth-child(even) td { background-image: linear-gradient(var(--row-tint), var(--row-tint)); }
.pj-table tbody tr:hover td { background-color: color-mix(in srgb, var(--primary) 5%, var(--background)); }
.pj-table tbody tr:last-child td { border-bottom: 0; }
.pj-table th:first-child, .pj-table td:first-child { background-color: var(--background); left: 0; position: sticky; z-index: 1; }
.pj-table thead th:first-child { background-color: var(--surface); z-index: 2; }
.pj-table tbody tr:nth-child(even) td:first-child { background-image: linear-gradient(var(--row-tint), var(--row-tint)); }
.name { align-items: center; display: flex; gap: 8px; min-width: 0; }
.name .g { align-items: center; background: var(--primary); border-radius: 7px; color: var(--primary-foreground); display: inline-flex; flex: 0 0 auto; font-size: var(--pj-t-meta); font-weight: 700; height: 28px; justify-content: center; width: 28px; }
.name .t { min-width: 0; }
.name a { color: var(--text); display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name a span { font-weight: 400; }
.name a:hover { color: var(--primary); }
.name small { color: var(--muted); display: block; font-size: var(--pj-t-meta); margin-top: 4px; }
.name small .prov { border: 1px solid var(--line); border-radius: 4px; font-size: var(--pj-t-meta); font-weight: 500; margin-left: 4px; padding: 0 4px; }
.type { align-items: center; display: inline-flex; font-size: var(--pj-t-meta); gap: 8px; }
.type i { border-radius: 2px; display: block; height: 9px; width: 9px; }
.type.ms i { background: #9a7b4f; }
.type.in i { background: var(--muted); }
.type.none { color: var(--status-amber); font-weight: 500; }
.date { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mode { color: var(--muted-strong); }
.jira { border: 1px solid var(--line); border-radius: 6px; color: var(--primary); font-size: var(--pj-t-meta); font-weight: 500; letter-spacing: .02em; padding: 4px 8px; }
.rep b { display: block; font-size: var(--pj-t-meta); font-weight: 500; white-space: nowrap; }
.rep small { color: var(--muted); display: block; font-size: var(--pj-t-meta); margin-top: 0; white-space: nowrap; }
.rep.pre b { color: var(--muted-strong); }
.rep.ok b { color: var(--status-green); }
.rep.late b { color: var(--status-red); }
.rep.soon b { color: var(--status-amber); }
.metric { display: grid; gap: 4px; justify-items: end; }
.metric b { font-size: var(--pj-t-ui); font-variant-numeric: tabular-nums; font-weight: 500; }
.metric b.over { color: var(--status-amber); }
.metric small { color: var(--muted); font-size: var(--pj-t-meta); }
/* Telefoon: kaarten */
@container app (max-width: 760px) {
  .nav { display: none; }
  .dl-hero-shape { opacity: .35; }
  #reset-cols, col { display: none; }
  .pj-table { width: 100% !important; }
  .pj-hero { padding: 24px 16px 0; }
  .search { margin-left: 0; min-width: 0; width: 100%; }
  .pj-sep { display: none; }
  .pj-wrap { border: 0; overflow: visible; }
  .pj-table, .pj-table tbody { display: block; min-width: 0; width: 100%; }
  .pj-table thead { display: none; }
  .pj-table tbody tr { background: var(--background); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px 16px; grid-template-columns: 1fr 1fr; margin-bottom: 8px; padding: 16px 16px; }
  .pj-table tbody td { background: none !important; border: 0; padding: 0; position: static; width: auto !important; }
  .pj-table tbody td:first-child { grid-column: 1 / -1; }
  .pj-table tbody td[data-k]::before { color: var(--muted); content: attr(data-k); display: block; font-size: var(--pj-t-meta); font-weight: 500; margin-bottom: 4px; }
  .metric { justify-items: start; }
  .pj-table td.num { text-align: left; }
}
/* ════════ support.css ════════ */
/* ── Support Desk + klantportaal: nieuwe gedeelde onderdelen (2 okt 2026) ─────────────────────────
   Bouwt voort op basis-delivery.css (tokens .app, shell, band, .st, .bchip, .pj-table).
   Regels: geen gekleurde streep links naast blokken (nooit border-left-accent of ::before-balkje);
   nadruk via ruimte, typografie, vlakke tint of een dunne rand rondom. Eén primaire actie per scherm. */
.app {
  --tk-new: #8a857b;
  --tk-busy: var(--primary);
  --tk-wait: var(--status-amber);
  --tk-done: var(--status-green);
  --badge-bg: var(--accent);
  --badge-ink: #1c1a17;
  --type-sf: #1f7fb8; --type-fb: var(--primary); --type-sb: #7a6fae; --type-ms: #9a7b4f;
  container-name: app; container-type: inline-size;
  background: var(--background); color: var(--text); border-radius: 14px; overflow: hidden;
  margin: 0 auto;
}
.app[data-theme="dark"] {
  --tk-new: #a39e93; --tk-busy: #66d4ec; --tk-wait: #f2a66e; --tk-done: #7fd8b8;
  --badge-bg: #f8d977; --badge-ink: #0b2e3b;
  --type-sf: #5cc0dc; --type-sb: #c79bdb; --type-ms: #d1b07e;
}
/* ── Ticketstatus (zelfde kleuren als het supportrapport) ── */
.tk { align-items: center; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; font-size: var(--pj-t-meta); font-weight: 500; gap: 8px; line-height: 1; min-height: 24px; padding: 0 8px; white-space: nowrap; background: var(--background); }
.tk::before { border-radius: 999px; content: ""; height: 7px; width: 7px; flex: 0 0 auto; }
.tk.new { color: var(--muted-strong); }
.tk.new::before { background: var(--tk-new); }
.tk.busy { color: var(--tk-busy); }
.tk.busy::before { background: var(--tk-busy); }
.tk.wait { color: var(--tk-wait); }
.tk.wait::before { background: var(--tk-wait); }
.tk.done { color: var(--tk-done); }
.tk.done::before { background: var(--tk-done); }
.legend { color: var(--muted); display: flex; flex-wrap: wrap; font-size: var(--pj-t-meta); gap: 8px 16px; }
.legend span { align-items: center; display: inline-flex; gap: 8px; }
.legend i { border-radius: 3px; display: block; height: 9px; width: 18px; }
.legend i.new { background: var(--tk-new); }
.legend i.busy { background: var(--tk-busy); }
.legend i.wait { background: var(--tk-wait); }
.legend i.done { background: var(--tk-done); }
/* ── Werkruimte onder de band ── */
.wrap { display: grid; gap: 40px; padding: 24px 40px 40px; }
.sec { display: grid; gap: 16px; min-width: 0; }
.sec-h { align-items: baseline; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sec-h h2 { font-size: var(--pj-t-h2); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.sec-h .n { color: var(--muted); font-size: var(--pj-t-lead); font-weight: 500; }
.sec-h p { color: var(--muted); font-size: var(--pj-t-ui); margin: 0; }
.sec-h .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.panel { background: var(--background); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.kv { display: grid; gap: 8px 16px; grid-template-columns: max-content minmax(0, 1fr); font-size: var(--pj-t-ui); margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; }
.eyebrow { color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; }
/* Knoppen. */
.btn { align-items: center; background: var(--primary); border: 1px solid var(--primary); border-radius: 10px; color: var(--primary-foreground); cursor: pointer; display: inline-flex; font: inherit; font-size: var(--pj-t-ui); font-weight: 500; gap: 8px; min-height: 36px; padding: 0 16px; white-space: nowrap; }
.btn.ghost { background: var(--background); border-color: var(--line); color: var(--primary); }
.btn.sm { font-size: var(--pj-t-meta); min-height: 30px; padding: 0 8px; border-radius: 8px; }
.link { color: var(--primary); font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.ext::after { content: "↗"; font-weight: 500; color: var(--muted); margin-left: 4px; }
/* Nieuwmelding: geel bolletje met aantal (zoals de tellers in de band). */
.badge { align-items: center; background: var(--badge-bg); border-radius: 999px; color: var(--badge-ink); display: inline-flex; font-size: var(--pj-t-init); font-weight: 700; height: 18px; justify-content: center; min-width: 18px; padding: 0 4px; }
/* Typeblokje (zelfde kleuren als Delivery Projecten). */
.type i { border-radius: 2px; display: inline-block; height: 9px; width: 9px; }
.type.ms i { background: var(--type-ms); }
.lvl { border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; padding: 4px 8px; }
.sla { color: var(--status-amber); font-weight: 500; }
.sla.late { color: var(--status-red); }
/* Budget/tegoed: getal + balk (geen rood, boven 100% amber). */
.meter { display: grid; gap: 8px; }
.meter-bar { background: color-mix(in srgb, var(--text) 9%, transparent); border-radius: 999px; height: 8px; overflow: hidden; }
.meter-bar i { background: var(--primary); border-radius: 999px; display: block; height: 100%; }
.meter-bar.over i { background: var(--status-amber); }
.meter small { color: var(--muted); font-size: var(--pj-t-meta); }
/* Melding zonder streep: dunne rand rondom + vlakke tint. */
.callout { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-wrap: wrap; font-size: var(--pj-t-ui); gap: 8px 16px; justify-content: space-between; line-height: 1.45; padding: 16px 16px; }
.callout.warn { background: var(--status-amber-fill); border-color: var(--status-amber-line); }
.callout p { margin: 0; max-width: 95ch; }
.callout b { font-weight: 500; }
.field { display: grid; gap: 8px; }
.field label, .field .lbl { font-size: var(--pj-t-meta); font-weight: 500; }
.input { background: var(--background); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: inherit; font-size: var(--pj-t-ui); min-height: 40px; padding: 0 16px; width: 100%; }
.opt { align-items: start; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 4px 16px; grid-template-columns: auto 1fr; padding: 16px 16px; }
.opt input { accent-color: var(--primary); margin: 4px 0 0; }
.opt b { font-size: var(--pj-t-ui); }
.opt span { color: var(--muted); font-size: var(--pj-t-meta); grid-column: 2; }
.opt[aria-checked="true"] { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
/* Telefoon. */
@container app (max-width: 760px) {
  .wrap { padding: 24px 16px 40px; gap: 24px; }
}
/* Tabellen erven kleur en letter ook als de lokale mockup zonder doctype (quirks) draait. */
:where(.app table) { color: inherit; font: inherit; }
/* ════════ desk.css ════════ */
.nav a { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.nav a .badge { height: 17px; min-width: 17px; font-size: var(--pj-t-meta); }
/* Band */
.sd-end { padding-bottom: 24px; }
.sd-band-meta { color: var(--hero-ink-2); display: flex; flex-wrap: wrap; font-size: var(--pj-t-ui); gap: 4px 24px; margin-top: 8px; }
.sd-band-meta b { color: var(--hero-ink); font-weight: 500; }
/* Algemeen */
.sd-cols { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.sec-h .right .link { color: var(--primary); cursor: pointer; font-size: var(--pj-t-meta); font-weight: 500; }
.sd-muted { color: var(--muted); }
.sd-num { font-variant-numeric: tabular-nums; }
.sd-prio { color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sd-prio.p3 { color: var(--status-amber); }
.sd-prio.p2, .sd-prio.p1 { color: var(--status-red); }
.sd-tag { border: 1px solid var(--line); border-radius: 5px; color: var(--muted); display: inline-block; font-size: var(--pj-t-meta); font-weight: 500; line-height: 1.5; padding: 0 4px; vertical-align: 1px; white-space: nowrap; }
.sd-tag.warn { background: var(--status-amber-fill); border-color: var(--status-amber-line); color: var(--status-amber); }
.sd-ai { align-items: center; border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--line)); border-radius: 6px; color: var(--primary); display: inline-flex; font-size: var(--pj-t-meta); font-weight: 500; gap: 4px; padding: 0 8px; white-space: nowrap; }
.sd-who { align-items: center; background: var(--primary-soft); border-radius: 999px; color: var(--primary); display: inline-flex; flex: 0 0 auto; font-size: var(--pj-t-init); font-weight: 700; height: 24px; justify-content: center; width: 24px; }
.sd-who.none { background: none; border: 1px solid var(--line); color: var(--muted); }
.sd-key { font-size: var(--pj-t-meta); font-weight: 700; letter-spacing: .01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sd-empty { color: var(--muted); font-size: var(--pj-t-ui); line-height: 22px; padding: 8px 0; }
.sd-empty b { color: var(--text); }
/* Werklijst (Start en klantpagina) */
.sd-tl { border: 1px solid var(--line); border-radius: 12px; list-style: none; margin: 0; overflow: hidden; padding: 0; }
.sd-tl li { align-items: center; display: grid; gap: 4px 16px; grid-template-columns: 76px minmax(0, 1fr) auto 24px; padding: 8px 16px; cursor: pointer; }
.sd-tl li + li { border-top: 1px solid var(--line); }
.sd-tl li:hover { background: color-mix(in srgb, var(--primary) 4%, var(--background)); }
.sd-tl .t { font-size: var(--pj-t-ui); font-weight: 500; line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-tl .t small { color: var(--muted); display: block; font-size: var(--pj-t-meta); font-weight: 400; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
.sd-tl .r { text-align: right; white-space: nowrap; }
.sd-tl .r .btn { margin-left: 4px; }
.sd-tt { width: 100%; }
.sd-tt tbody tr { cursor: pointer; }
.sd-tt td { vertical-align: middle; }
.sd-tt .ti { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-tt .kl { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-tt .kl span { color: var(--muted); }
.sd-tt tr.sel td { background-color: var(--primary-soft) !important; background-image: none !important; }
.sd-tt .tk { font-size: var(--pj-t-meta); min-height: 22px; padding: 0 8px; }
.sd-tt .sub { color: var(--muted); display: block; font-size: var(--pj-t-meta); margin-top: 4px; }
.sd-drop { border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--line)); border-radius: 10px; color: var(--primary); font-size: var(--pj-t-meta); font-weight: 500; padding: 8px 8px; text-align: center; }
.sd-av { align-items: center; border-radius: 999px; display: inline-flex; flex: 0 0 auto; font-size: var(--pj-t-init); font-weight: 700; height: 28px; justify-content: center; width: 28px; }
.sd-av.kl { background: var(--surface); border: 1px solid var(--line); color: var(--muted-strong); }
.name .g.sd-gkl { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: var(--pj-t-meta); }
.sd-mention { background: var(--primary-soft); border-radius: 5px; color: var(--primary); font-weight: 500; padding: 0 4px; }
.sd-hidden-files { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-pickres { background: var(--background); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 20px rgba(11, 46, 59, .10); display: grid; padding: 8px; }
.sd-pickres a { border-radius: 7px; display: grid; font-size: var(--pj-t-ui); padding: 8px 8px; cursor: pointer; }
.sd-pickres a:first-child { background: var(--primary-soft); }
.sd-pickres small { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-chosen { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 4px; font-size: var(--pj-t-meta); padding: 8px 16px; }
.sd-chosen b { font-size: var(--pj-t-ui); }
.sd-chosen span { color: var(--muted); }
.sd-dropzone { align-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); display: flex; flex-wrap: wrap; font-size: var(--pj-t-meta); gap: 8px 16px; padding: 16px 16px; }
.sd-dropzone a { color: var(--primary); font-weight: 500; cursor: pointer; }
.sd-check { align-items: center; display: inline-flex; font-size: var(--pj-t-ui); gap: 8px; }
.sd-check input { accent-color: var(--primary); height: 16px; margin: 0; width: 16px; }
.sd-mail { display: grid; gap: 8px 16px; grid-template-columns: minmax(0, 1fr) auto; padding: 16px 16px; }
.sd-mail + .sd-mail { border-top: 1px solid var(--line); }
.sd-mail.open { background: color-mix(in srgb, var(--primary) 4%, var(--background)); }
.sd-mail .hint { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-mail .hint b { color: var(--muted-strong); }
.sd-auto { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: var(--pj-t-meta); gap: 8px 16px; }
.sd-auto a { color: var(--primary); cursor: pointer; font-weight: 500; }
.sd-roles { display: flex; flex-wrap: wrap; gap: 4px; }
.sd-role { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: var(--pj-t-meta); font-weight: 500; padding: 4px 8px; white-space: nowrap; }
.sd-ro { border: 1px solid var(--line); border-radius: 12px; display: grid; overflow: hidden; }
.sd-ro > div { align-items: center; display: grid; gap: 4px 16px; grid-template-columns: 210px minmax(0, 1fr) auto; font-size: var(--pj-t-ui); padding: 16px 16px; }
.sd-ro > div + div { border-top: 1px solid var(--line); }
.sd-ro .k { color: var(--muted); }
.sd-ro .v { font-weight: 500; }
.sd-ro .v small { color: var(--muted); font-weight: 400; }
.sd-ro a { color: var(--primary); cursor: pointer; font-size: var(--pj-t-meta); font-weight: 500; white-space: nowrap; }
.sd-ro .head { background: var(--surface); }
.sd-ro .head .v { font-size: var(--pj-t-body); font-weight: 700; }
/* Instellingen */
.sd-sla-t th.grp { text-align: center; }
.sd-sla-t td.c, .sd-sla-t th.c { text-align: center; font-variant-numeric: tabular-nums; }
.sd-rules { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sd-rules > div { display: grid; gap: 4px 16px; grid-template-columns: 210px minmax(0, 1fr); font-size: var(--pj-t-ui); padding: 16px 16px; }
.sd-rules > div + div { border-top: 1px solid var(--line); }
.sd-rules .k { color: var(--muted); }
.sd-rules .v { line-height: 1.5; }
/* Schakelaar */
.sd-sw { background: color-mix(in srgb, var(--text) 30%, transparent); border-radius: 999px; display: inline-block; flex: 0 0 auto; height: 22px; position: relative; width: 38px; }
.sd-sw::after { background: var(--background); border-radius: 999px; box-shadow: 0 1px 2px rgba(0,0,0,.25); content: ""; height: 16px; left: 3px; position: absolute; top: 3px; width: 16px; }
.sd-sw.on { background: var(--primary); }
.sd-sw.on::after { left: 19px; }
.sd-auto-l { border: 1px solid var(--line); border-radius: 12px; display: grid; overflow: hidden; }
.sd-auto-l > div { align-items: center; display: grid; gap: 4px 16px; grid-template-columns: minmax(0, 1fr) auto auto; padding: 16px 16px; }
.sd-auto-l > div + div { border-top: 1px solid var(--line); }
.sd-auto-l b { display: block; font-size: var(--pj-t-ui); }
.sd-auto-l span.d { color: var(--muted); display: block; font-size: var(--pj-t-meta); line-height: 1.45; margin-top: 4px; max-width: 80ch; }
.sd-auto-l small { color: var(--muted); font-size: var(--pj-t-meta); white-space: nowrap; }
.sd-skel { display: grid; gap: 8px; }
.sd-skel i { animation: pulse 1.6s ease-in-out infinite; background: var(--ghost); border-radius: 6px; display: block; height: 14px; }
.sd-fresh { align-items: center; background: var(--status-amber-fill); border: 1px solid var(--status-amber-line); border-radius: 10px; color: var(--text); display: flex; flex-wrap: wrap; font-size: var(--pj-t-meta); gap: 8px 16px; padding: 8px 16px; }
.sd-fresh b { color: var(--status-amber); }
@container app (max-width: 1180px) {
  .sd-cols { grid-template-columns: minmax(0, 1fr); }
}
@container app (max-width: 760px) {
  .pj-scope { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pj-scope .dl-scope-tab { white-space: nowrap; }
  .pj-scope { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 40px; }
  .sd-tl li { grid-template-columns: 68px minmax(0, 1fr) 24px; }
  .sd-tl li > .sd-who { grid-column: 3; grid-row: 1; }
  .sd-tl li .r { grid-column: 2 / 4; grid-row: 2; text-align: left; white-space: normal; }
  .sd-tl li .r .btn { margin: 8px 0 0; }
  .sd-tl .t { white-space: normal; }
  .sd-tt tbody tr { grid-template-columns: 1fr 1fr; }
  .sd-tt tbody td.span { grid-column: 1 / -1; }
  .sd-tt .ti { white-space: normal; }
  .sd-mail { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .sd-ro > div { grid-template-columns: minmax(0, 1fr); }
  .sd-rules > div { grid-template-columns: minmax(0, 1fr); }
  .sd-auto-l > div { grid-template-columns: minmax(0, 1fr) auto; }
  .sd-auto-l small { grid-column: 1; grid-row: 2; white-space: normal; }
  .sd-sla-t th.grp { display: none; }
  .sd-end { padding-bottom: 24px; }
}
/* ════════ desk-db.css ════════ */
/* Deelnemers met kruisje (uit BRON-TREIN3.html) */
.t3-people { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.t3-people li { align-items: center; display: flex; font-size: var(--pj-t-ui); gap: 8px; }
.t3-people li b { font-weight: 500; }
.t3-people li small { color: var(--muted); font-size: var(--pj-t-meta); }
.t3-people .sd-av { height: 24px; width: 24px; font-size: var(--pj-t-meta); }
.t3-x { align-items: center; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); cursor: pointer; display: inline-flex; font-size: var(--pj-t-ui); height: 22px; justify-content: center; line-height: 1; margin-left: auto; width: 22px; }
.sd-who.lg { height: 28px; width: 28px; font-size: var(--pj-t-meta); }
.db-labels { display: flex; flex-wrap: wrap; gap: 8px; }
.db-label { background: var(--background); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; padding: 4px 8px; }
.db-dup { background: var(--background); border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 4px; padding: 8px 8px; }
.db-dup .h { font-size: var(--pj-t-meta); color: var(--muted); }
.db-dup .h b { color: var(--primary); }
.db-dup .row2 { margin-top: 4px; }
.db-sug { align-items: center; background: var(--background); border: 1px solid color-mix(in srgb, var(--primary) 50%, var(--line)); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 16px 16px; }
.db-sug .tx { display: grid; flex: 1; gap: 4px; min-width: 260px; }
.db-sug .tx b { font-size: var(--pj-t-ui); font-weight: 500; }
.db-sug .tx span { color: var(--muted); font-size: var(--pj-t-meta); line-height: 1.45; }
.db-sug .tx span b { color: var(--primary); font-size: var(--pj-t-meta); }
.db-sug .acts { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.db-sug .acts a { color: var(--primary); cursor: pointer; font-size: var(--pj-t-meta); font-weight: 500; }
/* ════════ desk-t3.css ════════ */
.tg-dlg-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.tg-dlg-form { align-content: start; display: grid; gap: 16px; }
.input.filled { align-items: center; display: flex; }
.input.sel { align-items: center; display: flex; justify-content: space-between; }
.input.sel::after { border-bottom: 1px solid var(--muted); border-right: 1px solid var(--muted); content: ""; height: 6px; transform: rotate(45deg) translateY(-2px); width: 6px; }
.field .opt-l { color: var(--muted); font-weight: 400; }
.tg-opts { display: grid; gap: 8px; }
.opt { cursor: pointer; }
.tg-opts .opt { font-weight: 400; }
.tg-opts .opt > b { font-weight: 500; }
.tg-mail { align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 16px; padding: 16px; }
.tg-mail-meta { color: var(--muted); display: grid; font-size: var(--pj-t-meta); gap: 4px; }
.tg-mail-meta b { color: var(--text); font-weight: 500; }
.tg-mail-body { background: var(--background); border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 16px; padding: 24px 24px 16px; }
.tg-mail-body p { font-size: var(--pj-t-ui); line-height: 1.55; margin: 0; }
.tg-mail-body small { color: var(--muted); font-size: var(--pj-t-meta); line-height: 1.5; }
.t3-klant { align-items: center; border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--line)); border-radius: 6px; color: var(--primary); display: inline-flex; font-size: var(--pj-t-meta); font-weight: 500; line-height: 1.5; padding: 0 8px; white-space: nowrap; }
.t3-intern { border: 1px solid var(--line); border-radius: 6px; color: var(--muted); display: inline-flex; font-size: var(--pj-t-meta); font-weight: 500; line-height: 1.5; padding: 0 8px; white-space: nowrap; }
/* Waarschuwingen bovenaan het voorbeeld */
.t3-warns { background: var(--status-amber-fill); border: 1px solid var(--status-amber-line); border-radius: 12px; display: grid; gap: 8px; padding: 16px 16px 16px; }
.t3-warns > b { color: var(--status-amber); font-size: var(--pj-t-meta); font-weight: 700; }
.t3-warns ul { display: grid; font-size: var(--pj-t-ui); gap: 4px; line-height: 1.45; margin: 0; padding-left: 16px; }
.t3-warns li b { font-weight: 500; }
.t3-proef { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: var(--pj-t-ui); line-height: 1.45; padding: 16px 16px; }
.t3-proef b { font-weight: 700; }
/* Feitenlijst in de dialoog */
.t3-facts { border: 1px solid var(--line); border-radius: 12px; display: grid; overflow: hidden; }
.t3-facts > div { align-items: baseline; display: grid; font-size: var(--pj-t-ui); gap: 4px 16px; grid-template-columns: 112px minmax(0, 1fr); padding: 8px 16px; }
.t3-facts > div + div { border-top: 1px solid var(--line-soft); }
.t3-facts .k { color: var(--muted); font-size: var(--pj-t-meta); }
.t3-facts .v { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; min-width: 0; }
.t3-facts .v b { font-weight: 500; }
.t3-facts .v small { color: var(--muted); font-size: var(--pj-t-meta); }
.t3-facts .v s { color: var(--muted); }
.t3-effects { display: grid; font-size: var(--pj-t-ui); gap: 8px; line-height: 1.45; list-style: none; margin: 0; padding: 0; }
.t3-effects li { display: grid; gap: 8px; grid-template-columns: 6px minmax(0, 1fr); }
.t3-effects li::before { background: var(--muted); border-radius: 999px; content: ""; height: 5px; margin-top: 8px; width: 5px; }
.t3-steps { counter-reset: s; display: grid; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.t3-steps li { align-items: start; counter-increment: s; display: grid; font-size: var(--pj-t-ui); gap: 4px 16px; grid-template-columns: 22px minmax(0, 1fr) auto; line-height: 1.45; padding: 8px 16px; }
.t3-steps li + li { border-top: 1px solid var(--line-soft); }
.t3-steps li::before { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); content: counter(s); display: inline-flex; font-size: var(--pj-t-init); font-weight: 700; height: 22px; justify-content: center; width: 22px; }
.t3-steps li small { color: var(--muted); display: block; font-size: var(--pj-t-meta); }
.t3-hl { background: var(--status-amber-fill); border-radius: 4px; box-shadow: 0 0 0 1px var(--status-amber-line); padding: 0 4px; }
.t3-mailfile { align-items: center; border: 1px solid var(--line); border-radius: 8px; display: flex; font-size: var(--pj-t-meta); gap: 8px; justify-self: start; padding: 8px 8px; }
.t3-mailfile small { color: var(--muted); }
.t3-area { background: var(--background); border: 1px solid var(--line); border-radius: 10px; font-size: var(--pj-t-ui); line-height: 1.5; min-height: 70px; padding: 8px 16px; }
.t3-help { color: var(--muted); font-size: var(--pj-t-meta); line-height: 1.45; }
/* Toestanden */
.t3-btn-off { opacity: .45; cursor: not-allowed; }
.t3-says { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: var(--pj-t-ui); line-height: 1.5; padding: 8px 16px; }
/* Zijkolom: deelnemers met kruisje, dubbel, kiezer */
.t3-people { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.t3-people li { align-items: center; display: flex; font-size: var(--pj-t-ui); gap: 8px; }
.t3-people li b { font-weight: 500; }
.t3-people li small { color: var(--muted); font-size: var(--pj-t-meta); }
.t3-people .sd-av { height: 24px; width: 24px; font-size: var(--pj-t-meta); }
.t3-x { align-items: center; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); cursor: pointer; display: inline-flex; font-size: var(--pj-t-ui); height: 22px; justify-content: center; line-height: 1; margin-left: auto; width: 22px; }
.t3-pick { background: var(--background); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px rgba(11, 46, 59, .14); display: grid; gap: 8px; padding: 8px; }
.t3-pick .input { font-size: var(--pj-t-meta); min-height: 34px; display: flex; align-items: center; gap: 8px; }
.t3-pick > small { color: var(--muted); font-size: var(--pj-t-meta); line-height: 1.4; padding: 4px 4px 0; }
.t3-pick a { border-radius: 7px; cursor: pointer; display: grid; gap: 0; font-size: var(--pj-t-meta); padding: 8px 8px; }
.t3-pick a.on { background: var(--primary-soft); }
.t3-pick a small { color: var(--muted); font-size: var(--pj-t-meta); }
.t3-pick a .sd-key { font-size: var(--pj-t-meta); }
/* Bijlagen in het antwoordvak */
.t3-files { border-top: 1px solid var(--line-soft); display: grid; gap: 0; padding: 4px 16px 8px; }
.t3-file { align-items: center; display: grid; gap: 4px 16px; grid-template-columns: 40px minmax(0, 1fr) auto; padding: 8px 0; }
.t3-file + .t3-file { border-top: 1px solid var(--line-soft); }
.t3-ext { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; color: var(--muted); display: inline-flex; font-size: var(--pj-t-meta); font-weight: 700; height: 34px; justify-content: center; width: 40px; }
.t3-file .n { display: grid; gap: 4px; min-width: 0; }
.t3-file .n b { font-size: var(--pj-t-ui); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t3-file .n small { color: var(--muted); font-size: var(--pj-t-meta); }
.t3-file .n .meter-bar { height: 5px; max-width: 360px; }
.t3-file .s { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end; }
.t3-file .s a { color: var(--primary); cursor: pointer; font-size: var(--pj-t-meta); font-weight: 500; }
.t3-file.bad .t3-ext { background: var(--status-red-fill); border-color: var(--status-red-line); color: var(--status-red); }
.t3-file.bad .n small { color: var(--status-red); }
.t3-file.bad .n b { color: var(--muted-strong); }
.t3-reply-warn { align-items: center; background: var(--status-amber-fill); border-bottom: 1px solid var(--status-amber-line); display: flex; flex-wrap: wrap; font-size: var(--pj-t-meta); gap: 4px 8px; line-height: 1.45; padding: 8px 16px; }
.t3-reply-warn b { font-weight: 500; }
.t3-reply-note { color: var(--muted); font-size: var(--pj-t-meta); }
.t3-mentions { background: var(--background); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 20px rgba(11, 46, 59, .12); display: grid; margin: 4px 0 4px; max-width: 300px; padding: 8px; }
.t3-mentions a { align-items: center; border-radius: 7px; display: flex; font-size: var(--pj-t-meta); gap: 8px; padding: 8px 8px; }
.t3-mentions a.on { background: var(--primary-soft); }
.t3-mentions a small { color: var(--muted); font-size: var(--pj-t-meta); margin-left: auto; }
@container app (max-width: 760px) {
  .t3-facts > div { grid-template-columns: minmax(0, 1fr); }
  .t3-file { grid-template-columns: 40px minmax(0, 1fr); }
  .t3-file .s { grid-column: 2; justify-content: flex-start; }
}
/* ════════ desk-extra.css ════════ */
/* ── Support Desk: wat de echte app nodig heeft naast de goedgekeurde mockup ──────────────────
   Alles hieronder is aanvullend op desk.css (letterlijk uit de mockup). Zelfde regels: geen
   gekleurde streep links, geen inline stijlen (CSP), nadruk via ruimte, typografie, vlakke tint
   of een rand rondom. Tokens komen uit delivery.css en support.css. */
/* De app is de pagina, niet een omlijste mockup. */
.app { border: 0; border-radius: 0; box-shadow: none; margin: 0; min-height: 100vh; overflow: visible; transition: none; }
.app a.btn { color: var(--primary-foreground); }
.app a.btn.ghost { color: var(--primary); }
.sd-sr { border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
#main-content:focus { outline: none; }
.sd-flash { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; font-size: var(--pj-t-ui); gap: 16px; justify-content: space-between; line-height: 1.45; padding: 8px 16px; }
.sd-flash.warn { background: var(--status-amber-fill); border-color: var(--status-amber-line); }
.sd-flash.error { background: var(--status-red-fill); border-color: var(--status-red-line); }
.sd-flash.ok { background: var(--status-green-fill); border-color: var(--status-green-line); }
.sd-flash-x { background: none; border: 0; border-radius: 6px; color: var(--muted-strong); cursor: pointer; font-size: var(--pj-t-h2); height: 28px; line-height: 1; width: 28px; }
.sd-flash-x:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
/* Kop: avatar als knop, zoekveld met invoer, zoekresultaten, accountpaneel. */
button.avatar { border: 0; cursor: pointer; font-family: inherit; position: relative; }
.avatar .badge { height: 17px; min-width: 17px; font-size: var(--pj-t-meta); position: absolute; right: -6px; top: -5px; }
.sd-account { left: 12px; min-width: 320px; padding: 16px; right: auto; top: calc(100% + 6px); z-index: 50; gap: 16px; }
.sd-account[hidden] { display: none; }
.sd-acc-who b { font-size: var(--pj-t-ui); }
.sd-acc-sec { display: grid; gap: 8px; }
.sd-acc-sec .lbl { color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; }
.sd-acc-list { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.sd-acc-list a { border-radius: 7px; display: grid; font-size: var(--pj-t-ui); padding: 8px 8px; }
.sd-acc-list a:hover { background: var(--primary-soft); }
.sd-acc-list a.unread { font-weight: 400; }
.sd-acc-list small { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-acc-count { margin: 0; font-size: var(--pj-t-meta); }
.sd-acc-foot { border-top: 1px solid var(--line-soft); display: flex; gap: 8px; padding-top: 16px; }
/* Lijsten en tabellen: klikbare rijen. */
.sd-tl li[data-href], .sd-tt tbody tr[data-href] { cursor: pointer; }
.sd-tl .t a, .sd-tt .name a { text-decoration: none; }
.sd-tt tbody tr:focus-within td { background-color: color-mix(in srgb, var(--primary) 5%, var(--background)); }
.sd-auto a { text-decoration: underline; text-underline-offset: 3px; }
.sd-av.sm { height: 24px; width: 24px; }
.cg-contact col:nth-child(1) { width: 22%; }
.cg-contact col:nth-child(2) { width: 22%; }
.cg-contact col:nth-child(3) { width: 20%; }
.cg-contact col:nth-child(4) { width: 20%; }
.cg-contact col:nth-child(5) { width: 16%; }
.cg-contact.is-lezen col:nth-child(1) { width: 28%; }
.cg-contact.is-lezen col:nth-child(2) { width: 34%; }
.cg-contact.is-lezen col:nth-child(3) { width: 20%; }
.cg-contact.is-lezen col:nth-child(4) { width: 18%; }
.cg-sla col:nth-child(1) { width: 21%; }
.cg-sla col:nth-child(2) { width: 23%; }
.cg-sla col:nth-child(n+3) { width: 7%; }
.sd-sla-t td.span { white-space: normal; }
/* Tabs in de band die links zijn. */
a.dl-scope-tab { display: inline-block; }
a.dl-scope-tab[aria-current="page"] { border-bottom-color: var(--hero-ink); color: var(--hero-ink); }
a.dl-scope-tab[aria-current="page"] b { color: var(--arrow); }
.dl-scope-tab:focus-visible, .bchip:focus-visible { outline: 2px solid var(--hero-ink); outline-offset: 3px; border-radius: 6px; }
.bpop { display: inline-block; }
.pop { max-height: 340px; overflow-y: auto; }
.pop button.opt-b { align-items: center; background: none; border: 0; border-radius: 7px; color: var(--tile-ink); cursor: pointer; display: flex; font: inherit; font-size: var(--pj-t-ui); gap: 8px; padding: 8px 8px; text-align: left; width: 100%; }
.pop button.opt-b:hover, .pop button.opt-b[aria-checked="true"] { background: color-mix(in srgb, var(--primary) 8%, var(--tile-bg)); }
.pop button.opt-b[aria-checked="true"] { font-weight: 500; }
.pop .field { gap: 4px; padding: 4px 8px; }
.pop .field label { color: var(--tile-muted); font-size: var(--pj-t-meta); font-weight: 500; }
.pop input[type="date"], .pop input[type="text"], .pop input[type="search"], .pop select { background: var(--tile-bg); border: 1px solid color-mix(in srgb, var(--tile-muted) 40%, transparent); border-radius: 8px; color: var(--tile-ink); font: inherit; font-size: var(--pj-t-meta); min-height: 32px; padding: 0 8px; }
.pop .pop-note { color: var(--tile-muted); font-size: var(--pj-t-meta); margin: 0; padding: 4px 8px; }
.pop .pop-row { align-items: center; display: flex; gap: 4px; }
.pop .pop-row button.opt-b { flex: 1; }
.sd-link-b { background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; font-size: var(--pj-t-meta); font-weight: 500; padding: 0; }
.sd-more-row { display: flex; justify-content: center; padding-top: 8px; }
.sd-month-hint { color: var(--muted); font-size: var(--pj-t-meta); margin: 0 0 8px; }
.sd-month-hint b { color: var(--muted-strong); }
.sd-moveb { background: var(--background); border: 1px solid var(--line); border-radius: 8px; clip: rect(0 0 0 0); clip-path: inset(50%); color: var(--primary); cursor: pointer; font: inherit; font-size: var(--pj-t-meta); font-weight: 500; height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
.sd-moveb:focus { clip: auto; clip-path: none; height: auto; margin: 0; overflow: visible; padding: 4px 8px; position: static; width: auto; }
.sd-edit textarea { background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--text); display: block; font: inherit; line-height: 1.55; min-height: 96px; padding: 8px 16px; resize: vertical; width: 100%; }
/* Formulierelementen in dialogen en zijkolom. */
.input[type="search"], .input[type="text"], select.input, textarea.input { font: inherit; }
textarea.input { padding: 8px 16px; min-height: 90px; resize: vertical; }
.sd-form-error { color: var(--status-red); font-size: var(--pj-t-meta); margin: 0; }
.sd-picklist { background: var(--background); border: 1px solid var(--line); border-radius: 10px; display: grid; max-height: 220px; overflow-y: auto; padding: 4px; }
.sd-picklist button { background: none; border: 0; border-radius: 7px; color: var(--text); cursor: pointer; font: inherit; font-size: var(--pj-t-ui); padding: 8px 8px; text-align: left; }
.sd-picklist button:hover, .sd-picklist button[aria-checked="true"] { background: var(--primary-soft); }
.sd-picklist button small { color: var(--muted); display: block; font-size: var(--pj-t-meta); }
/* Klanten, rapportages, instellingen. */
.sd-ro a, .sd-ro button.link-b { background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; font-size: var(--pj-t-meta); font-weight: 500; padding: 0; white-space: nowrap; }
.sd-ro a.ext::after { content: " ↗"; color: var(--muted); }
.sd-auto a.ext::after, .sd-ro a.ext::after { content: " ↗"; }
button.sd-sw { border: 0; cursor: pointer; padding: 0; }
button.sd-sw[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
.sd-rules .v a { color: var(--primary); font-weight: 500; }
.sd-ro + .sd-auto, .sd-ro + .sd-state-note, .sd-state-note + .sd-auto { margin-top: 16px; }
.sd-auto + .sd-ro { margin-top: 8px; }
/* Toestanden in de schermen. */
.sd-skel .w92 { width: 92%; }
.sd-skel .w86 { width: 86%; }
.sd-skel .w80 { width: 80%; }
.sd-skel .w78 { width: 78%; }
.sd-skel .w64 { width: 64%; }
.sd-fresh + p { margin: 8px 0 0; }
.sd-state-note { color: var(--muted); font-size: var(--pj-t-meta); margin: 0; }
@media (prefers-reduced-motion: reduce) { .sd-skel i { animation: none; } }
@container app (max-width: 760px) {
  .sd-account { left: 8px; min-width: 0; right: 8px; }
  .pop { max-width: 86vw; }
}
.sd-linkbox { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); display: grid; gap: 16px; justify-items: start; max-width: 62ch; padding: 16px; }
.sd-linkbox p { margin: 0; line-height: 1.5; }
.sd-mail { overflow-wrap: anywhere; }
.name small.sd-mail-none { color: var(--muted); font-style: italic; }
/* Triage (contract 1.2.0): markeringen in lijsten, het voorstel in de zijkolom. Geen kaarten met schaduw, geen kleurstreep. */
.sd-flags { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.sd-tt .sd-flags { margin-top: 4px; }
.sd-kv { display: grid; gap: 8px; margin: 0; }
.sd-kv > div { align-items: baseline; display: grid; gap: 4px 8px; grid-template-columns: 112px minmax(0, 1fr); font-size: var(--pj-t-meta); }
.sd-kv dt { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sd-kv dd small { color: var(--muted); display: block; font-size: var(--pj-t-meta); font-weight: 400; }
.sd-sigs { display: flex; flex-wrap: wrap; gap: 4px; }
.sd-fresh[data-triage-alert] { margin-bottom: 16px; }
.sd-links-note { max-width: 70ch; }
.sd-state-note + .sd-tl, .sd-state-note + .sd-contract-head { margin-top: 8px; }
.sd-tl.sd-org li, .sd-tl.sd-contract li { cursor: default; }
.sd-tl.sd-org li:hover, .sd-tl.sd-contract li:hover { background: none; }
.sd-tl.sd-org li { align-items: start; gap: 8px 16px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.8fr); }
.sd-tl.sd-org .t { overflow: visible; white-space: normal; }
.sd-org-no { display: inline; font-size: var(--pj-t-meta); margin-left: 4px; }
.sd-org-contacts { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-org-acts { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 8px; }
.sd-org-what { font-size: var(--pj-t-ui); font-weight: 500; }
.sd-org-what small { color: var(--muted); font-weight: 400; }
.sd-org-what a, .sd-org-acts a { color: var(--primary); font-weight: 500; }
.sd-org-acts .sd-link-b { font-size: var(--pj-t-meta); }
.sd-cgroups { display: grid; gap: 24px; }
.sd-cgroup .sec-h h2 a { color: inherit; text-decoration: none; }
.sd-cgroup .sec-h h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sd-contract-head, .sd-tl.sd-contract li { gap: 8px 16px; grid-template-columns: minmax(0, 1.5fr) 150px minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.3fr); }
.sd-contract-head { color: var(--muted); display: grid; font-size: var(--pj-t-meta); font-weight: 500; margin-bottom: 8px; padding: 0 16px; }
.sd-tl.sd-contract li { align-items: start; }
.sd-tl.sd-contract .t { overflow: visible; white-space: normal; }
.sd-col { display: grid; font-size: var(--pj-t-ui); gap: 4px; min-width: 0; }
.sd-col a { color: var(--primary); font-size: var(--pj-t-meta); font-weight: 500; }
.sd-col a.ext::after { color: var(--muted); content: " ↗"; }
.sd-lv { align-items: center; display: flex; flex-wrap: wrap; font-weight: 500; gap: 8px 8px; }
.sd-lv small { color: var(--muted); font-weight: 400; }
.sd-sel { font-size: var(--pj-t-meta); max-width: 100%; min-height: 34px; min-width: 0; padding: 0 8px; width: auto; }
select.sd-sel[data-profile] { width: 100%; }
.sd-lv:has(select[data-profile]) { flex-wrap: nowrap; }
.sd-sel:disabled { cursor: progress; opacity: .6; }
.sd-stamp { color: var(--muted); display: block; font-size: var(--pj-t-meta); font-weight: 400; }
.sd-orgs { display: block; line-height: 1.45; }
.sd-spin { display: none; }
li[data-busy] .sd-spin { animation: sd-spin .8s linear infinite; border: 2px solid var(--line); border-radius: 999px; border-top-color: var(--primary); display: inline-block; height: 12px; width: 12px; }
@keyframes sd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { li[data-busy] .sd-spin { animation: none; } }
@container app (max-width: 1180px) {
  .sd-tl.sd-contract li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sd-tl.sd-contract li .t { grid-column: 1 / -1; }
  .sd-contract-head { display: none; }
}
@container app (max-width: 760px) {
  .sd-tl.sd-org li, .sd-tl.sd-contract li { grid-template-columns: minmax(0, 1fr); }
  .sd-kv > div { grid-template-columns: minmax(0, 1fr); }
}
.sd-ext { color: var(--primary); font-weight: 500; overflow-wrap: anywhere; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
span.sd-ext { color: inherit; font-weight: inherit; }
.sd-img-ph { border: 1px solid var(--line); border-radius: 5px; color: var(--muted); display: inline-block; font-size: var(--pj-t-meta); line-height: 1.6; padding: 0 8px; white-space: nowrap; }
.sd-fold > summary { color: var(--muted); cursor: pointer; display: inline-block; font-size: var(--pj-t-meta); font-weight: 500; list-style: none; }
.sd-fold > summary::-webkit-details-marker { display: none; }
.sd-fold > summary::after { content: " ▾"; }
.sd-fold[open] > summary::after { content: " ▴"; }
.sd-fold > summary:hover { color: var(--primary); }
.sd-fold[open] > summary .o, .sd-fold:not([open]) > summary .c { display: none; }
.sd-fold-b { color: var(--muted); margin-top: 8px; }
.sd-fold-b p { font-size: var(--pj-t-meta); line-height: 1.5; }
.sec[id] { scroll-margin-top: 16px; }
.db-label { align-items: center; display: inline-flex; gap: 4px; }
.db-label button { background: none; border: 0; border-radius: 999px; color: var(--muted); cursor: pointer; font-size: var(--pj-t-meta); height: 18px; line-height: 1; margin-right: -4px; padding: 0; width: 18px; }
.db-label button:hover { background: var(--primary-soft); color: var(--text); }
.db-sug { margin-bottom: 0; }
.db-sug .acts .sd-link-b { font-size: var(--pj-t-meta); }
.db-sug .tx > span { overflow-wrap: anywhere; }
.db-sug .db-why { flex-basis: 100%; }
.db-sug .sd-grens-keuze { align-items: center; border-top: 1px solid var(--line); display: flex; flex-basis: 100%; flex-wrap: wrap; gap: 8px 16px; padding-top: 8px; }
.db-sug .sd-grens-keuze > span:first-child { color: var(--muted); flex: 1; font-size: var(--pj-t-meta); line-height: 1.45; min-width: 260px; overflow-wrap: anywhere; }
.db-sug .sd-grens-keuze > span:first-child b { color: var(--text); font-weight: 500; }
.db-sug .sd-grens-keuze .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.db-why[hidden] { display: none; }
/* ── Trein 3 (klantacties): echte knoppen, invoervelden en een <dialog> in plaats van getekende vlakken; geen inline stijlen (CSP). ── */
.t3-ext.sm { height: 26px; width: 34px; }
textarea.t3-area { color: var(--text); font: inherit; font-size: var(--pj-t-ui); resize: vertical; width: 100%; }
.t3-search { gap: 8px; }
.t3-search svg, .t3-pick .input svg { color: var(--muted); flex: 0 0 auto; height: 15px; width: 15px; }
.t3-search input, .t3-pick .input input { background: none; border: 0; color: inherit; flex: 1; font: inherit; min-width: 0; outline: none; padding: 0; }
.t3-pick a:hover, .t3-pick a:focus-visible, .sd-pickres a:hover { background: var(--primary-soft); }
.t3-pick > [data-merge-results] { display: grid; gap: 8px; }
.t3-pick > [data-merge-results] > small { color: var(--muted); font-size: var(--pj-t-meta); padding: 4px 4px 0; }
.t3-x[disabled] { cursor: not-allowed; opacity: .4; }
.pop button.opt-b.t3-opt > span { display: grid; gap: 0; }
.pop button.opt-b.t3-opt small { color: var(--tile-muted); font-size: var(--pj-t-meta); font-weight: 400; }
.btn.t3-btn-off[disabled] { pointer-events: none; }
.t3-mentions a { cursor: pointer; }
.t3-mentions[hidden] { display: none; }
.wrap.t3-flow { gap: 16px; padding-bottom: 0; }
.wrap.t3-flow + .wrap { padding-top: 16px; }
[data-flow-slot]:empty { display: none; }
.sd-check.t3-dim { opacity: .75; }
.sd-check.t3-small { font-size: var(--pj-t-meta); font-weight: 400; }
/* ── De wisselaar van de apps in de kop (src/browser/app-switcher.ts, gedeeld met Projecten) ── */
.pj-appsw { position: relative; }
.pj-appsw-b {
  align-items: center; background: none; border: 0; border-radius: 8px; color: var(--interactive-accent); cursor: pointer;
  display: inline-flex; font: inherit; font-size: var(--pj-t-body); font-weight: 500; gap: 8px; margin: -4px -8px; padding: 4px 8px;
}
.pj-appsw-b:hover, .pj-appsw-b[aria-expanded="true"] { background: var(--primary-soft); }
.pj-appsw-chev { flex: 0 0 auto; }
.pj-appsw-menu {
  background: var(--background); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgba(11, 46, 59, .18);
  display: grid; left: -6px; min-width: 232px; padding: 8px; position: absolute; top: calc(100% + 10px); z-index: 60;
}
.pj-appsw-menu[hidden] { display: none; }
.pj-appsw-opt {
  align-items: center; border-radius: 7px; color: var(--text); display: flex; font-size: var(--pj-t-ui); gap: 8px; padding: 8px 8px;
}
a.pj-appsw-opt:hover { background: var(--primary-soft); }
.pj-appsw-opt em { color: var(--muted); font-size: var(--pj-t-meta); font-style: normal; margin-left: auto; }
.pj-appsw-opt.cur { background: var(--primary-soft); }
.pj-appsw-glyph {
  align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; color: var(--primary);
  display: inline-flex; flex: 0 0 auto; font-size: var(--pj-t-meta); font-weight: 700; height: 26px; justify-content: center; width: 26px;
}
/* `.lockup span` of the top bar colours every span in the lockup: the rows of the menu keep their own look. */
.lockup .pj-appsw-opt { color: var(--text); font-size: var(--pj-t-ui); font-weight: 400; }
.lockup .pj-appsw-glyph { color: var(--primary); font-size: var(--pj-t-meta); font-weight: 700; }
/* ════════ supportdesk.css ════════ */
/* ── Rustig voor wat de schil tekent: dezelfde regels als schil.css (dat gedeeld en ongewijzigd blijft), met de letters, de randen en de ruimte op de schaal van styles.css. Alleen wat verandert. ── */
.bh-body { font-size: var(--pj-t-ui); }
.bh-skip { padding: 8px 16px; }
.bh-avatar { font-size: var(--pj-t-meta); }
.bh-avatar .bh-cnt { font-size: var(--pj-t-init); }
.bh-lockup b { font-size: var(--pj-t-body); }
.bh-appsw { font-size: var(--pj-t-body); }
.bh-chev { border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; }
.bh-lockup .bh-subname { font-size: var(--pj-t-ui); }
.bh-nav a { font-size: var(--pj-t-ui); }
.bh-nav span { font-size: var(--pj-t-ui); }
.bh-search { font-size: var(--pj-t-meta); }
.bh-search input { font-size: var(--pj-t-meta); }
.bh-search kbd { font-size: var(--pj-t-meta); }
.bh-mark { font-size: var(--pj-t-meta); letter-spacing: normal; }
.bh-menu-b { font-size: var(--pj-t-meta); }
.bh-band { padding: 16px 40px 16px; }
.bh-band-ctx { font-size: var(--pj-t-ui); gap: 8px 8px; }
.bh-switch { font-size: var(--pj-t-ui); gap: 8px; padding: 0 8px; }
.bh-switch .bh-cl::after { margin-left: 8px; }
.bh-band-trail { gap: 8px; }
.bh-band-trail::before { border-right: 1px solid var(--bh-band-ink-2); border-top: 1px solid var(--bh-band-ink-2); }
.bh-band-row { gap: 4px 24px; padding-right: 40px; }
.bh-band h1 { font-size: var(--pj-t-h1); }
.bh-band-meta { font-size: var(--pj-t-ui); gap: 4px 16px; }
.bh-side-h { font-size: var(--pj-t-meta); }
.bh-tree { gap: 0; }
.bh-tree .bh-tree { margin: 0 0 4px; }
.bh-tog::before { border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; }
.bh-link { font-size: var(--pj-t-ui); }
.bh-link .bh-key { font-size: var(--pj-t-meta); }
.bh-n { font-size: var(--pj-t-meta); }
.bh-dot.new { border: 1px solid var(--tk-new); }
.bh-dot.off { border: 1px solid var(--tk-new); }
.bh-main { padding: 24px var(--bh-gutter) 40px; }
.bh-page { gap: 24px; }
.bh-head { gap: 8px 16px; }
.bh-head h2 { font-size: var(--pj-t-h1); }
.bh-head .bh-cnt { font-size: var(--pj-t-lead); }
.bh-head p { font-size: var(--pj-t-ui); }
.bh-sub { gap: 4px 16px; }
.bh-sub h3 { font-size: var(--pj-t-lead); }
.bh-sub p, .bh-sub .bh-cnt { font-size: var(--pj-t-meta); }
.bh-note { font-size: var(--pj-t-meta); }
.bh-btn { font-size: var(--pj-t-ui); padding: 0 16px; }
.bh-btn.sm { font-size: var(--pj-t-meta); padding: 0 8px; }
.bh-btn-link { font-size: var(--pj-t-meta); }
.bh-tk { font-size: var(--pj-t-meta); gap: 8px; padding: 0 8px; }
.bh-tag { color: var(--muted); font-size: var(--pj-t-meta); letter-spacing: normal; padding: 0 4px; text-transform: none; }
.bh-key { font-size: var(--pj-t-meta); }
.bh-who { font-size: var(--pj-t-init); }
.bh-card.pad { padding: 16px 24px; }
.bh-list > li { gap: 4px 16px; padding: 8px 16px; }
.bh-list .bh-t { font-size: var(--pj-t-ui); }
.bh-list .bh-t small { font-size: var(--pj-t-meta); margin-top: 0; }
.bh-list .bh-r { gap: 8px; }
.bh-list .bh-r small { font-size: var(--pj-t-meta); }
.bh-facts > div { gap: 4px 16px; padding: 8px 0; }
.bh-facts dt { font-size: var(--pj-t-meta); }
.bh-facts dd { font-size: var(--pj-t-ui); }
.bh-facts dd small { font-size: var(--pj-t-meta); }
.bh-ready { border: 1px solid color-mix(in srgb, var(--primary) 50%, var(--line)); gap: 8px 16px; padding: 16px 16px; }
.bh-ready .bh-t small { font-size: var(--pj-t-meta); margin-top: 4px; }
.bh-table th { color: var(--muted); font-size: var(--pj-t-meta); padding: 8px 16px; }
.bh-table td { font-size: var(--pj-t-ui); padding: 8px 16px; }
.bh-table td small { font-size: var(--pj-t-meta); margin-top: 0; }
.bh-empty { border: 0; border-radius: 0; padding: 8px 0; text-align: left; }
.bh-first > li { gap: 4px 16px; padding: 16px 4px; }
.bh-first > li::before { font-size: var(--pj-t-h2); }
.bh-first .bh-t { font-size: var(--pj-t-lead); }
.bh-first .bh-t small { font-size: var(--pj-t-meta); margin-top: 4px; }
.bh-dialog { padding: 24px 24px; }
.bh-dialog h2 { font-size: var(--pj-t-h2); }
.bh-dialog p { font-size: var(--pj-t-ui); }
.bh-dialog .bh-foot small { font-size: var(--pj-t-meta); }
.bh-field { gap: 8px; }
.bh-field label { font-size: var(--pj-t-meta); }
.bh-field .bh-help { font-size: var(--pj-t-meta); }
.bh-input { font-size: var(--pj-t-ui); padding: 0 16px; }
.bh-preview { gap: 8px; padding: 16px 16px; }
.bh-preview h3 { font-size: var(--pj-t-body); }
@media (max-width: 960px) {
  .bh-band { padding: 16px 16px 16px; }
  .bh-band h1 { font-size: var(--pj-t-h1); }
  .bh-here { font-size: var(--pj-t-ui); }
  .bh-drawer-top b { font-size: var(--pj-t-body); }
  .bh-close { font-size: var(--pj-t-meta); }
  .bh-drawer-nav a, .bh-drawer-nav span { font-size: var(--pj-t-body); }
  .bh-link { font-size: var(--pj-t-ui); }
  .bh-main { padding-top: 24px; }
  .bh-head h2 { font-size: var(--pj-t-h2); }
  .bh-first > li > .bh-btn { margin-top: 8px; }
}
.bh-cols { gap: 24px 40px; }
.bh-next { padding: 16px 24px 16px; }
.bh-next .bh-for { font-size: var(--pj-t-meta); }
.bh-next .bh-do { font-size: var(--pj-t-h2); }
.bh-next .bh-why { font-size: var(--pj-t-ui); }
.bh-next .bh-then { color: var(--muted); font-size: var(--pj-t-meta); }
.bh-next.quiet .bh-do { font-size: var(--pj-t-lead); }
.bh-sec { gap: 16px; }
.bh-sec-h { gap: 4px 16px; }
.bh-sec-h h2 { font-size: var(--pj-t-h2); }
.bh-sec-h .bh-cnt { font-size: var(--pj-t-body); }
.bh-sec-h p { font-size: var(--pj-t-ui); }
.bh-fold > summary { gap: 4px 16px; padding: 16px 16px 16px 40px; }
.bh-fold > summary::before { border-bottom: 1px solid var(--muted); border-right: 1px solid var(--muted); }
.bh-fold > summary h2 { font-size: var(--pj-t-lead); }
.bh-fold > summary .bh-sum { font-size: var(--pj-t-ui); }
.bh-fold > summary .bh-state { font-size: var(--pj-t-meta); }
.bh-fold > .bh-in { gap: 16px; padding: 16px 16px 16px; }
.bh-fold.plain { border-style: solid; }
.bh-fold-line { gap: 4px 16px; padding: 16px 16px; }
.bh-fold-line h2 { font-size: var(--pj-t-lead); }
.bh-fold-line .bh-sum { font-size: var(--pj-t-ui); }
.bh-jump { font-size: var(--pj-t-meta); gap: 4px 24px; padding-bottom: 8px; }
.bh-jump a small { font-size: var(--pj-t-meta); }
.bh-kpi > div { gap: 0 16px; padding: 8px 0; }
.bh-kpi dt { font-size: var(--pj-t-meta); }
.bh-kpi dd { font-size: var(--pj-t-body); }
.bh-kpi dd small { font-size: var(--pj-t-meta); margin-top: 0; }
.bh-seg { padding: 4px; }
.bh-seg button, .bh-seg a { color: var(--muted); font-size: var(--pj-t-meta); gap: 8px; padding: 0 16px; }
.bh-chip { color: var(--muted); font-size: var(--pj-t-meta); gap: 4px; padding: 0 16px; }
.bh-switchpanel { padding: 16px; }
.bh-switchpanel .bh-swnote { font-size: var(--pj-t-meta); }
.bh-switchpanel h3 { font-size: var(--pj-t-meta); margin: 16px 4px 4px; }
.bh-switchpanel ul { gap: 0; }
.bh-switchpanel [role="option"] { gap: 0 16px; padding: 8px 8px; }
.bh-switchpanel [role="option"] b { font-size: var(--pj-t-ui); }
.bh-switchpanel [role="option"] small { font-size: var(--pj-t-meta); }
.bh-switchpanel [role="option"] .bh-sig { font-size: var(--pj-t-meta); }
.bh-switchpanel .bh-foot { font-size: var(--pj-t-meta); gap: 8px 16px; margin-top: 8px; padding: 8px 4px 0; }
.bh-previewbar { font-size: var(--pj-t-ui); gap: 8px 16px; padding: 8px 24px; }
@media (max-width: 960px) {
  .bh-next .bh-do { font-size: var(--pj-t-h2); }
  .bh-next .bh-acts { margin-top: 8px; }
}
.bh-flow { gap: 4px; }
.bh-flow > li { gap: 0; }
.bh-flow i { margin-bottom: 8px; }
.bh-flow b { font-size: var(--pj-t-ui); }
.bh-flow small { font-size: var(--pj-t-meta); }
@media (max-width: 960px) {
  .bh-flow > li { gap: 0 8px; }
}
.bh-usermenu .bh-whoami b { font-size: var(--pj-t-ui); }
.bh-usermenu .bh-whoami small { font-size: var(--pj-t-meta); }
.bh-usermenu [role="menuitem"] { font-size: var(--pj-t-ui); }
.bh-usermenu [role="menuitem"] small { font-size: var(--pj-t-meta); }
.bh-shot-img { padding: 16px; }
.bh-shot .bh-scr { font-size: var(--pj-t-meta); gap: 4px; padding-bottom: 8px; }
.bh-shot .bh-scr-bar { padding: 8px 8px; }
.bh-shot .bh-scr-ln { padding: 0 8px; }
.bh-shot .bh-scr-gap { border: 1px solid var(--line); margin: 4px 8px 0; }
.bh-shot figcaption b { font-size: var(--pj-t-ui); }
.bh-shot figcaption small { font-size: var(--pj-t-meta); }
.bh-searchres a { font-size: var(--pj-t-ui); }
.bh-searchres a small { font-size: var(--pj-t-meta); }

/* What only the Support Desk has, on top of ../gedeeld/schil.css. Prefix sd-. No coloured stripe on the left, no gradients.
   Colours and type come from the shell; only layout and the parts of the Support Desk are set here. */
/* ── Top bar: a new ticket from every screen (proposal for the shell, see TOELICHTING.md) ── */
.bh-top-tools .sd-new { flex: 0 0 auto; }
.sd-new-d { margin: 8px 0 4px; width: 100%; }
.sd-band-key { font-variant-numeric: tabular-nums; opacity: .72; }
.sd-band-a { color: var(--hero-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--hero-line); text-underline-offset: 3px; }
.sd-band-a:hover { text-decoration-color: currentColor; }
/* ── What every screen starts with: the block of the shell (.bh-next); here only what the Support Desk adds ── */
.sd-next > .bh-flow, .sd-undo-next > .bh-flow { border-top: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line)); grid-column: 1 / -1; margin-top: 16px; padding-top: 16px; }
.sd-next .bh-then .bh-btn-link { font-size: var(--pj-t-meta); }
.sd-undo-next { background: var(--primary-soft); border: 1px solid var(--primary); }
.sd-undo-count { align-items: center; display: flex; gap: 16px; grid-column: 1 / -1; margin-top: 8px; }
.sd-undo-count .sd-meter { flex: 1 1 auto; height: 5px; }
.sd-undo-count small { color: var(--muted); font-size: var(--pj-t-meta); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Something that is a proposal and not (yet) in the app: said on the screen, never as a fact. */
.sd-prop { border: 1px solid var(--muted); border-radius: 6px; color: var(--muted); display: inline-block; font-size: var(--pj-t-meta); font-weight: 500; line-height: 1.5; padding: 0 8px; vertical-align: 1px; }
/* ── One ticket (round 4): the tree, one wide column to read and write, one narrow column with the facts ──
   Wide: the original report, always on top; the box to write in; the conversation newest first, internal notes in between.
   Narrow: stand and agreement, the customer, the rest folded. No coloured stripe anywhere: internal is a flat tint plus a label. */
[data-app] {
  --sd-own-fill: color-mix(in srgb, var(--accent) 17%, var(--background));
  --sd-own-line: color-mix(in srgb, var(--accent) 62%, var(--line));
  --sd-own-ink: var(--status-amber);
}
.sd-ticket { align-items: start; display: grid; gap: 24px 24px; grid-template-columns: minmax(0, 1fr) minmax(310px, .42fr); }
.sd-read { display: grid; gap: 16px; min-width: 0; }
.sd-aside { display: grid; gap: 16px; min-width: 0; }
.sd-aside .sd-panel .bh-facts > div { gap: 4px; grid-template-columns: minmax(0, 1fr); padding: 8px 0; }
.sd-aside .sd-panel .bh-facts dt { font-size: var(--pj-t-meta); }
.sd-aside .sd-acts { gap: 8px; }
.sd-aside .sd-acts .bh-btn.sm, .sd-aside .sd-acts .sd-select { padding: 0 8px; }
.sd-aside .sd-part-b > .bh-btn-link { justify-self: start; }
.bh-tag.own { background: var(--sd-own-fill); border-color: var(--sd-own-line); color: var(--sd-own-ink); }
/* The original report: the text large, the attachments as pictures next to it (one) or under it (more). */
.sd-origin { background: var(--background); border: 1px solid color-mix(in srgb, var(--text) 22%, var(--line)); border-radius: 14px; display: flex; flex-wrap: wrap; gap: 16px 24px; padding: 24px 24px; }
.sd-origin.many { display: grid; grid-template-columns: minmax(0, 1fr); }
.sd-origin:not(.many) > .sd-orig-txt { flex: 1 1 320px; }
.sd-origin:not(.many) > .sd-orig-files { flex: 0 1 260px; }
.sd-next, .sd-undo-next { container-type: inline-size; }
@media (min-width: 961px) {
  @container (max-width: 720px) {
    .sd-next > .bh-flow, .sd-undo-next > .bh-flow { display: grid; gap: 16px 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sd-next > .bh-flow b, .sd-undo-next > .bh-flow b, .sd-next > .bh-flow small, .sd-undo-next > .bh-flow small { overflow-wrap: anywhere; }
  }
}
.sd-orig-txt { align-content: start; display: grid; gap: 8px; min-width: 0; }
.sd-origin .lb { color: var(--text); font-size: var(--pj-t-ui); font-weight: 700; }
.sd-origin .by { align-items: center; color: var(--muted); display: flex; font-size: var(--pj-t-meta); gap: 8px; }
.sd-origin .by b { color: var(--text); }
.sd-origin .by .nw { white-space: nowrap; }
.sd-origin .by .bh-who { flex: 0 0 auto; height: 28px; width: 28px; }
.sd-origin .txt { font-size: var(--pj-t-lead); line-height: 1.55; max-width: 62ch; }
.sd-orig-facts { color: var(--muted); display: flex; flex-wrap: wrap; font-size: var(--pj-t-meta); gap: 4px 16px; }
.sd-orig-later { background: var(--surface); border-radius: 8px; color: var(--muted); font-size: var(--pj-t-meta); justify-self: start; padding: 8px 8px; }
.sd-orig-later a, .bh-shot figcaption a { color: var(--primary); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent); text-underline-offset: 3px; }
.sd-orig-files { align-content: start; display: grid; gap: 16px; min-width: 0; }
.sd-origin.many .sd-orig-files { grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); }
/* An attachment as a picture (as the portal does it with kp-shot). `.sm` is the smaller one inside a message. */
.bh-shot { display: grid; gap: 8px; margin: 0; min-width: 0; }
.bh-shot figcaption b { display: block; font-size: var(--pj-t-ui); font-weight: 500; overflow-wrap: anywhere; }
.bh-shot figcaption small { color: var(--muted); font-size: var(--pj-t-meta); }
.bh-shot.sm figcaption b { font-size: var(--pj-t-meta); }
.bh-shot.sm figcaption small { font-size: var(--pj-t-meta); }
.sd-thumbs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 176px)); margin-top: 4px; }
/* The box to write in: a switch with two clearly different states. To the customer: the colour of the app. Internal: the sand tint. */
.sd-write { display: grid; gap: 0; }
.sd-write-sw { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, max-content)); margin-bottom: -1px; position: relative; z-index: 1; }
.sd-write-sw button { background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; color: var(--muted-strong); cursor: pointer; font-size: var(--pj-t-ui); font-weight: 500; min-height: 40px; padding: 0 16px; }
.sd-write-sw button:hover { color: var(--text); }
.sd-write-sw .k[aria-pressed="true"] { background: var(--background); border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--line)); border-bottom: 1px solid var(--background); color: var(--primary); font-weight: 700; }
.sd-write-sw .i[aria-pressed="true"] { background: var(--sd-own-fill); border: 1px solid var(--sd-own-line); border-bottom: 1px solid var(--sd-own-fill); color: var(--sd-own-ink); font-weight: 700; }
.sd-write[data-mode="klant"] .sd-compose.intern, .sd-write[data-mode="intern"] .sd-compose.klant { display: none; }
.sd-compose { background: var(--background); border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--line)); border-radius: 0 12px 12px 12px; overflow: hidden; }
.sd-compose.intern { background: var(--sd-own-fill); border-color: var(--sd-own-line); }
.sd-compose-h { align-items: center; border-bottom: 1px solid var(--line-soft); color: var(--muted); display: flex; flex-wrap: wrap; font-size: var(--pj-t-meta); gap: 4px 8px; padding: 8px 16px; }
.sd-compose-h b { color: var(--text); }
.sd-compose-h .bh-tag { margin-left: auto; }
.sd-compose.intern .sd-compose-h { border-bottom-color: var(--sd-own-line); color: var(--sd-own-ink); font-weight: 500; }
.sd-compose textarea { background: none; border: 0; color: var(--text); display: block; font-size: var(--pj-t-ui); line-height: 1.55; min-height: 58px; outline: none; padding: 16px 16px; resize: vertical; width: 100%; }
.sd-compose textarea::placeholder { color: var(--muted); opacity: 1; }
.sd-compose-f { align-items: center; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 16px; }
.sd-compose.intern .sd-compose-f { border-top-color: var(--sd-own-line); }
.sd-compose-f .sp { margin-left: auto; }
.sd-compose-f small { color: var(--muted); flex: 1 1 100%; font-size: var(--pj-t-meta); }
.sd-compose.intern .sd-compose-f small { color: var(--muted-strong); }
.sd-select { align-items: center; background: var(--background); border: 1px solid var(--line); border-radius: 10px; color: var(--text); cursor: pointer; display: inline-flex; font-size: var(--pj-t-ui); gap: 8px; min-height: 36px; padding: 0 16px; white-space: nowrap; }
.sd-select .bh-chev { color: var(--muted); }
/* The conversation, newest first. From the customer: the surface tint; our answer: white; internal: the sand tint with its label. */
.sd-thread { display: grid; gap: 16px; }
.sd-conv-h { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.sd-conv-h h2 { font-size: var(--pj-t-h2); font-weight: 700; letter-spacing: -0.01em; }
.sd-conv-h p { color: var(--muted); font-size: var(--pj-t-ui); }
.sd-post { background: var(--background); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px; padding: 16px 16px; scroll-margin-top: 12px; }
.sd-post.klant { background: var(--surface); }
.sd-post.intern { background: var(--sd-own-fill); border-color: var(--sd-own-line); }
.sd-post-h { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: var(--pj-t-meta); gap: 4px 8px; }
.sd-post-h b { color: var(--text); font-size: var(--pj-t-ui); }
.sd-post-h .when { margin-left: auto; white-space: nowrap; }
.sd-post p { font-size: var(--pj-t-ui); line-height: 1.55; max-width: 72ch; }
.sd-post .at { color: var(--primary); font-weight: 500; }
.sd-post.is-pending { border: 1px solid color-mix(in srgb, var(--primary) 50%, var(--line)); }
.sd-mark { color: var(--muted); display: flex; font-size: var(--pj-t-meta); gap: 8px; justify-content: space-between; padding: 0 4px; }
.sd-mark b { color: var(--muted-strong); }
.sd-conv-end { border-top: 1px solid var(--line); color: var(--muted); font-size: var(--pj-t-meta); padding: 8px 4px 0; }
.sd-conv-end .bh-btn-link { font-size: var(--pj-t-meta); }
/* Panels on the right of a ticket and on the page of a customer. */
.sd-panel { align-content: start; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 16px; padding: 16px 16px; }
.sd-panel > h3, .sd-panel > h2 { align-items: baseline; display: flex; flex-wrap: wrap; font-size: var(--pj-t-lead); font-weight: 700; gap: 4px 8px; }
.sd-panel > h3 small, .sd-panel > h3 .n, .sd-panel > h2 small { color: var(--muted); font-size: var(--pj-t-meta); font-weight: 400; }
.sd-panel > h3 a, .sd-panel > h2 a { font-size: var(--pj-t-meta); font-weight: 500; margin-left: auto; }
.sd-panel .bh-facts > div { grid-template-columns: 104px minmax(0, 1fr); padding: 8px 0; }
.sd-panel .bh-facts dd { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.sd-panel .bh-facts dd small { flex: 1 1 100%; }
.sd-klant-l { font-size: var(--pj-t-ui); line-height: 1.5; }
.sd-klant-l .sd-meter { margin: 8px 0; }
.sd-klant-l small { color: var(--muted); display: block; font-size: var(--pj-t-meta); }
.sd-panel .bh-facts dd small .bh-who { height: 20px; width: 20px; font-size: var(--pj-t-meta); vertical-align: -5px; }
.sd-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-meter { background: color-mix(in srgb, var(--text) 10%, transparent); border-radius: 999px; display: block; flex: 1 1 100%; height: 6px; overflow: hidden; }
.sd-meter b { background: var(--primary); border-radius: 999px; display: block; height: 100%; }
.sd-meter.warn b { background: var(--status-amber); }
.sd-meter.bad b { background: var(--status-red); }
a.sd-a, .sd-panel a:not(.bh-btn), .sd-part-b a:not(.bh-btn) { color: var(--primary); font-weight: 500; }
a.sd-a:hover, .sd-panel a:not(.bh-btn):hover, .sd-part-b a:not(.bh-btn):hover { text-decoration: underline; text-underline-offset: 3px; }
/* Parts of a page that are folded: a name, a count, one line. */
.sd-folds { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sd-part + .sd-part { border-top: 1px solid var(--line); }
.sd-part summary { align-items: baseline; cursor: pointer; display: grid; gap: 4px 16px; grid-template-columns: 196px 44px minmax(0, 1fr); list-style: none; padding: 8px 16px 8px 40px; position: relative; }
.sd-part summary::-webkit-details-marker { display: none; }
.sd-part summary::before { border-bottom: 1px solid var(--muted); border-right: 1px solid var(--muted); content: ""; height: 6px; left: 18px; position: absolute; top: 16px; transform: rotate(-45deg); width: 6px; }
.sd-part[open] summary::before { top: 14px; transform: rotate(45deg); }
.sd-part summary:hover { background: color-mix(in srgb, var(--primary) 4%, var(--background)); }
.sd-part summary:focus-visible { outline-offset: -2px; }
.sd-part summary b { font-size: var(--pj-t-ui); font-weight: 700; }
.sd-part summary .n { color: var(--muted); font-size: var(--pj-t-meta); font-variant-numeric: tabular-nums; }
.sd-part summary .line { color: var(--muted-strong); font-size: var(--pj-t-ui); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-part summary .line .bh-txt-warn, .sd-part summary .line .bh-txt-bad { font-weight: 500; }
.sd-part-b { display: grid; gap: 16px; padding: 4px 16px 16px 40px; }
.sd-part-b .bh-tablewrap { border-radius: 10px; }
.sd-two { align-items: start; display: grid; gap: 16px 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sd-mini-h { font-size: var(--pj-t-ui); font-weight: 700; margin-bottom: 8px; }
.sd-lines { border-top: 1px solid var(--line); list-style: none; }
.sd-lines > li { align-items: baseline; border-bottom: 1px solid var(--line-soft); display: grid; font-size: var(--pj-t-ui); gap: 4px 16px; grid-template-columns: minmax(0, 1fr) auto; padding: 8px 4px; }
.sd-lines > li.c3 { grid-template-columns: 116px minmax(0, 1fr) auto; }
.sd-lines small { color: var(--muted); display: block; font-size: var(--pj-t-meta); }
.sd-lines .r { color: var(--muted); font-size: var(--pj-t-meta); text-align: right; white-space: nowrap; }
.sd-lines b { font-weight: 500; }
.sd-log { border-top: 1px solid var(--line); list-style: none; }
.sd-log > li { border-bottom: 1px solid var(--line-soft); display: grid; font-size: var(--pj-t-meta); gap: 0; line-height: 1.45; padding: 8px 4px; }
.sd-log .w { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-log .w b { color: var(--muted-strong); font-weight: 500; }
.sd-log s { color: var(--muted); }
/* The rest of a ticket, folded, in the narrow column: name and count on one line, what is in it under that. */
.sd-rest { display: grid; gap: 8px; }
.sd-more-h { color: var(--muted-strong); font-size: var(--pj-t-ui); font-weight: 700; }
.sd-aside .sd-part summary { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 16px 8px 40px; }
.sd-aside .sd-part summary::before { left: 15px; }
.sd-aside .sd-part summary .line { font-size: var(--pj-t-meta); grid-column: 1 / -1; line-height: 1.4; white-space: normal; }
.sd-aside .sd-part-b { gap: 8px; padding: 4px 16px 16px 16px; }
.sd-aside .sd-lines > li { gap: 4px 8px; }
/* ── The working day as a line, with the moments an agreement runs out ── */
.sd-day { display: grid; gap: 8px; margin: 0; }
.sd-day figcaption { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sd-day figcaption h3 { font-size: var(--pj-t-lead); font-weight: 700; }
.sd-day figcaption p { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-day-g { border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 216px minmax(0, 1fr) 200px; }
.sd-day-side { padding: 16px 16px; }
.sd-day-side.over { border-right: 1px solid var(--line-soft); }
.sd-day-side.later { border-left: 1px solid var(--line-soft); }
.sd-day-side h4 { color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; margin-bottom: 8px; }
.sd-day-side.over:not(.none) h4 { color: var(--status-red); }
.sd-day-side p { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-day-side ul { display: grid; gap: 8px; list-style: none; }
.sd-day-side li { font-size: var(--pj-t-meta); line-height: 1.35; }
.sd-day-side li b { font-weight: 700; }
.sd-day-side li small { color: var(--muted); display: block; font-size: var(--pj-t-meta); }
.sd-day-side li .bh-txt-bad { display: block; }
.sd-day-side a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sd-day-axis { height: 212px; margin: 0 40px; position: relative; }
.sd-day-line { background: color-mix(in srgb, var(--text) 11%, transparent); border-radius: 999px; height: 4px; left: 0; position: absolute; right: 0; top: 160px; }
.sd-day-line .past { background: color-mix(in srgb, var(--primary) 42%, var(--background)); border-radius: 999px 0 0 999px; display: block; height: 100%; }
.sd-day-hours { color: var(--muted); font-size: var(--pj-t-meta); font-variant-numeric: tabular-nums; left: 0; list-style: none; position: absolute; right: 0; top: 171px; }
.sd-day-hours li { position: absolute; transform: translateX(-50%); }
.sd-day-now { background: var(--text); height: 22px; position: absolute; top: 151px; width: 2px; }
.sd-day-now b { font-size: var(--pj-t-meta); font-weight: 700; left: 50%; position: absolute; top: 37px; transform: translateX(-50%); white-space: nowrap; }
.sd-day-items { list-style: none; }
.sd-day-items li { bottom: 0; position: absolute; top: 0; width: 0; }
.sd-day-items li::before { background: var(--primary); border-radius: 999px; box-shadow: 0 0 0 2px var(--background); content: ""; height: 10px; left: -5px; position: absolute; top: 157px; width: 10px; }
.sd-day-items li::after { background: color-mix(in srgb, var(--text) 30%, var(--background)); content: ""; left: -0.5px; position: absolute; top: 146px; height: 11px; width: 1px; }
.sd-day-items li.l2::after { height: 59px; top: 98px; }
.sd-day-items li.l3::after { height: 107px; top: 50px; }
.sd-day-items li.dot::after { display: none; }
.sd-day-items .sd-day-l { bottom: 68px; display: block; font-size: var(--pj-t-meta); left: -1px; line-height: 1.3; position: absolute; white-space: nowrap; }
.sd-day-items li.l2 .sd-day-l { bottom: 116px; }
.sd-day-items li.l3 .sd-day-l { bottom: 164px; }
.sd-day-items li.end .sd-day-l { left: auto; right: -1px; text-align: right; }
.sd-day-items .at { font-variant-numeric: tabular-nums; font-weight: 700; }
.sd-day-items a b { font-weight: 700; }
.sd-day-items small { color: var(--muted); display: block; font-size: var(--pj-t-meta); }
.sd-day-items a:hover b { text-decoration: underline; text-underline-offset: 3px; }
/* One square per ticket. */
.sd-units { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: -1px; }
.sd-units i { background: var(--primary); border-radius: 3px; display: block; height: 12px; width: 12px; }
.sd-units i.over { background: var(--status-red); }
.sd-units i.kl { background: none; border: 1px solid color-mix(in srgb, var(--text) 34%, var(--background)); }
.sd-units i.none { background: none; border: 1px solid color-mix(in srgb, var(--text) 34%, var(--background)); }
.sd-legend { color: var(--muted); display: flex; flex-wrap: wrap; font-size: var(--pj-t-meta); gap: 4px 16px; }
.sd-legend span { align-items: center; display: inline-flex; gap: 8px; }
/* ── Start pages ──────────────────────────────────────────────────── */
/* Round 4: a dashboard without the left bar, built like the start of Projecten: "Voor jou" on top, a line, then "Waar support staat". */
.sd-home-you > .bh-sec-h h2, .sd-home-over > .bh-sec-h h2 { font-size: var(--pj-t-h2); }
.sd-home-do { align-items: stretch; display: grid; gap: 16px 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sd-home-do.one { grid-template-columns: minmax(0, 1fr); }
.sd-home-do > .bh-next { align-content: center; }
.sd-home-do > .bh-next .bh-do { font-size: var(--pj-t-h2); }
.sd-home-then .lbl { color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; margin-bottom: 8px; }
.sd-home-then .bh-first { counter-reset: first 1; }
.sd-home-then .bh-first > li { padding-bottom: 16px; padding-top: 16px; }
.sd-home-then .bh-first .t { font-size: var(--pj-t-body); }
.sd-home-over { border-top: 1px solid var(--line); gap: 16px; margin-top: 8px; padding-top: 24px; }
.sd-home-view { display: grid; gap: 24px; }
.sd-home-view[hidden] { display: none; }
.sd-home-pair { align-items: start; gap: 24px 40px; }
.sd-home-pair .sd-legend { margin-top: 8px; }
.sd-age > li { align-items: center; display: grid; gap: 4px 16px; grid-template-columns: 58px minmax(0, 1fr); padding: 8px 16px; }
.sd-age .d { color: var(--muted); font-size: var(--pj-t-meta); line-height: 1.2; }
.sd-age .d b { color: var(--text); display: block; font-size: var(--pj-t-h2); font-variant-numeric: tabular-nums; font-weight: 700; }
.sd-age .t { font-size: var(--pj-t-ui); font-weight: 500; }
.sd-age .t a b { font-weight: 700; margin-right: 4px; }
.sd-age .t a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.sd-age .t small { color: var(--muted); display: block; font-size: var(--pj-t-meta); font-weight: 400; }
.sd-home-over .bh-sub + .bh-list { margin-top: 8px; }
.sd-pair { align-items: start; display: grid; gap: 24px 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sd-pair.w21 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.sd-after { counter-reset: first; }
.sd-after > li { padding: 16px 4px; }
.sd-waitlist { border-top: 1px solid var(--line); list-style: none; margin-top: 8px; }
.sd-waitlist > li { align-items: center; border-bottom: 1px solid var(--line-soft); display: grid; gap: 4px 16px; grid-template-columns: minmax(0, 1fr) auto; padding: 8px 4px; }
.sd-waitlist .t { font-size: var(--pj-t-ui); font-weight: 500; }
.sd-waitlist .t b { white-space: nowrap; }
.sd-waitlist .t small { color: var(--muted); display: block; font-size: var(--pj-t-meta); font-weight: 400; margin-top: 0; }
.sd-waitlist a.t:hover { color: var(--primary); }
.sd-load th[scope="row"] { background: none; border-bottom: 1px solid var(--line-soft); font-size: var(--pj-t-ui); font-weight: 500; padding: 8px 16px; vertical-align: middle; white-space: nowrap; width: 150px; }
.sd-load tr:last-child th { border-bottom: 0; }
.sd-load td { vertical-align: middle; }
.sd-load td.w { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-load .bh-who, .sd-load th .sd-nobody { margin-right: 8px; vertical-align: middle; }
.sd-ck { width: 34px; padding-right: 0 !important; }
.sd-selbar { align-items: center; background: var(--primary-soft); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px 8px; padding: 8px 16px; }
.sd-selbar b { font-size: var(--pj-t-ui); font-weight: 700; margin-right: 8px; }
.sd-selbar .bh-btn-link { margin-left: auto; }
.sd-bars { display: grid; gap: 16px; margin: 0; }
.sd-bars h3 { font-size: var(--pj-t-lead); font-weight: 700; }
.sd-bars figcaption p { color: var(--muted); font-size: var(--pj-t-meta); margin-top: 4px; }
.sd-bars ol { align-items: end; border-bottom: 1px solid var(--line); display: grid; gap: 8px; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin-bottom: 24px; max-width: 520px; padding: 0 4px; }
.sd-bars li { display: grid; gap: 4px; position: relative; text-align: center; }
.sd-bars li b { color: var(--muted); font-size: var(--pj-t-meta); font-variant-numeric: tabular-nums; font-weight: 500; }
.sd-bars li:last-child b { color: var(--text); font-weight: 700; }
.sd-bars li i { background: color-mix(in srgb, var(--primary) 45%, var(--background)); border-radius: 4px 4px 0 0; display: block; }
.sd-bars li:last-child i { background: var(--primary); }
.sd-bars li > span:last-child { color: var(--muted); font-size: var(--pj-t-meta); left: 0; position: absolute; right: 0; top: calc(100% + 6px); }
.sd-bars .pair { align-items: end; display: flex; gap: 4px; justify-content: center; }
.sd-bars .pair i { flex: 0 0 18px; }
.sd-bars .pair i.in, .sd-swatch.in { background: var(--primary); }
.sd-bars .pair i.out, .sd-swatch.out { background: color-mix(in srgb, var(--primary) 32%, var(--background)); }
.sd-swatch { border-radius: 3px; display: inline-block; height: 10px; width: 10px; }
.sd-kept { display: grid; gap: 16px; }
.sd-kept > div { display: grid; gap: 4px; }
.sd-kept b { font-size: var(--pj-t-ui); font-weight: 500; }
.sd-kept small { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-later { background: var(--surface); border-radius: 10px; color: var(--muted-strong); font-size: var(--pj-t-ui); padding: 16px 16px; }
.sd-later b { color: var(--text); font-weight: 700; margin-right: 8px; }
/* ── The ticket list ──────────────────────────────────────────────── */
.sd-filterrow { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.sd-filterrow .sp { margin-left: auto; }
.sd-search { align-items: center; background: var(--background); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); display: inline-flex; flex: 0 1 200px; font-size: var(--pj-t-meta); gap: 8px; min-height: 34px; min-width: 150px; overflow: hidden; padding: 0 16px; white-space: nowrap; }
.sd-search svg { flex: 0 0 auto; height: 14px; width: 14px; }
.sd-chip { align-items: center; background: var(--background); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); cursor: pointer; display: inline-flex; font-size: var(--pj-t-meta); gap: 8px; min-height: 32px; padding: 0 16px; white-space: nowrap; }
.sd-chip .bh-chev { color: var(--muted); }
.sd-chip.on { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); color: var(--primary); font-weight: 500; }
.sd-chip.on .x { font-size: var(--pj-t-body); line-height: 1; }
.sd-tix th[scope="row"] { background: none; border-bottom: 1px solid var(--line-soft); font-size: var(--pj-t-ui); font-weight: 500; padding: 8px 16px; vertical-align: top; white-space: normal; }
.sd-tix tbody tr:last-child th[scope="row"] { border-bottom: 0; }
.sd-tix td { white-space: nowrap; }
.sd-tix th[scope="row"] { min-width: 240px; width: 34%; }
.sd-tix td.sd-cl { min-width: 120px; white-space: normal; }
.sd-tix td.sd-slacell { min-width: 150px; white-space: normal; }
.sd-tix.sd-clients th[scope="row"], .sd-tix.sd-reports th[scope="row"] { width: auto; }
.sd-tix thead th.num { text-align: right; }
.sd-rowlink { align-items: baseline; color: var(--text); display: grid; gap: 16px; grid-template-columns: 78px minmax(0, 1fr); }
.sd-rowlink:hover > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.sd-rowlink:hover .sd-tags { text-decoration: none; }
div.sd-rowlink:hover > span:last-child { text-decoration: none; }
.sd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sd-sig { border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--line)); border-radius: 6px; color: var(--primary); display: inline-block; font-size: var(--pj-t-meta); font-weight: 500; padding: 0 8px; white-space: nowrap; }
.sd-tix tr.grp th { background: var(--surface); border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; padding: 8px 16px; }
.sd-tix tbody + tbody tr.grp th { border-top: 1px solid var(--line); }
.sd-tix tr.grp th span { color: var(--muted); margin-left: 4px; }
.sd-tix tr.grp th small { color: var(--muted); font-weight: 400; margin-left: 16px; }
.sd-nobody { align-items: center; border: 1px solid color-mix(in srgb, var(--text) 30%, var(--background)); border-radius: 999px; color: var(--muted); display: inline-flex; font-size: var(--pj-t-init); height: 24px; justify-content: center; width: 24px; }
.sd-rowact { text-align: right; white-space: nowrap; }
.sd-rowact .bh-btn + .bh-btn { margin-left: 8px; }
.sd-rowlink.one { gap: 0; grid-template-columns: minmax(0, 1fr); }
.sd-rowlink small { color: var(--muted); display: block; font-size: var(--pj-t-meta); font-weight: 400; margin-top: 0; }
.sd-tix td small { color: var(--muted); display: block; font-size: var(--pj-t-meta); margin-top: 0; }
.sd-cr { min-width: 190px; white-space: normal !important; }
.sd-cr .sd-meter { margin: 8px 0 4px; max-width: 200px; }
.sd-clients td, .sd-reports td { vertical-align: middle; }
.sd-clients th[scope="row"], .sd-reports th[scope="row"] { vertical-align: middle; }
.sd-reports { table-layout: fixed; }
.sd-reports thead th:nth-child(2), .sd-reports thead th:nth-child(3) { width: 100px; }
.sd-reports thead th:nth-child(4) { width: 200px; }
.sd-reports thead th:nth-child(5) { width: 130px; }
/* The board. */
.sd-board { align-items: start; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sd-lane { background: var(--surface); border-radius: 12px; display: grid; gap: 8px; padding: 8px; }
.sd-col-h { align-items: center; color: var(--muted); display: flex; font-size: var(--pj-t-meta); font-weight: 500; gap: 8px; padding: 4px 4px 0; }
.sd-col-h b { color: var(--muted); font-weight: 500; margin-left: auto; }
.sd-lane > small { color: var(--muted); font-size: var(--pj-t-meta); padding: 0 4px; }
.sd-card { background: var(--background); border: 1px solid var(--line); border-radius: 9px; display: grid; font-size: var(--pj-t-meta); gap: 4px; line-height: 1.3; padding: 8px 8px; }
.sd-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.sd-card .top { align-items: center; display: flex; gap: 8px; justify-content: space-between; }
.sd-card .top small { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-card .ft { align-items: center; color: var(--muted); display: flex; font-size: var(--pj-t-meta); gap: 8px; justify-content: space-between; margin-top: 4px; }
.sd-card .bh-who, .sd-card .sd-nobody { height: 20px; width: 20px; font-size: var(--pj-t-meta); }
.sd-lane .bh-btn-link { justify-self: start; padding: 4px; }
/* ── Forms ────────────────────────────────────────────────────────── */
.sd-fields { display: grid; gap: 16px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sd-fields .full, .sd-fields > .wide { grid-column: 1 / -1; }
.sd-fields > .bh-field { align-content: start; }
.sd-fields .sd-select { justify-self: start; min-height: 40px; }
.sd-fields textarea.bh-input { line-height: 1.5; min-height: 104px; padding: 8px 16px; }
.sd-pills { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 8px; }
.sd-pills button { background: var(--background); border: 1px solid var(--line); border-radius: 999px; color: var(--muted-strong); cursor: pointer; font-size: var(--pj-t-ui); min-height: 34px; padding: 0 16px; }
.sd-pills button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); font-weight: 500; }
.sd-newgrid { align-items: start; display: grid; gap: 24px 40px; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); }
.sd-dlg-m { align-items: center; color: var(--muted-strong) !important; display: flex; flex-wrap: wrap; font-size: var(--pj-t-ui) !important; gap: 8px 8px; }
.sd-dlg-m b { color: var(--text); }
/* The customer page. */
.sd-credit { display: grid; gap: 8px; }
.sd-credit .big { font-size: var(--pj-t-h2); font-weight: 700; letter-spacing: -0.01em; }
.sd-credit .big small { color: var(--muted); font-size: var(--pj-t-meta); font-weight: 400; margin-left: 8px; }
.sd-credit > small { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-part-b .sd-kinds, .sd-part-b .sd-two .bh-note { margin-top: 16px; }
.sd-part-b .sd-two .pop-note { color: var(--muted-strong); font-size: var(--pj-t-ui); }
/* ── Wide: more next to each other, not longer lines ──────────────── */
@media (min-width: 1700px) {
  .sd-origin:not(.many) > .sd-orig-files { flex-basis: 360px; }
  .sd-origin .txt { font-size: var(--pj-t-lead); }
  .sd-pair.w3 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .bh-top .sd-new { display: none; }
  .sd-home-do { grid-template-columns: minmax(0, 1fr); }
  .sd-home-over .bh-sec-h .bh-head-acts { margin-left: 0; }
  .sd-next > .bh-flow li:not(.is-done):not(.is-now) small { display: none; }
  /* One column. Order: the report, stand and agreement, what is ready, the box to write in, the conversation, the customer, the rest. */
  .sd-ticket { display: flex; flex-direction: column; gap: 16px; }
  .sd-read, .sd-aside { display: contents; }
  .sd-ticket .sd-origin { order: 1; }
  .sd-ticket .sd-stand { order: 2; }
  .sd-ticket .sd-write { order: 3; }
  .sd-ticket .sd-thread { order: 4; }
  .sd-ticket .sd-klant { order: 5; }
  .sd-ticket .sd-rest { order: 6; }
  .sd-origin { padding: 16px; }
  .sd-origin:not(.many) > .sd-orig-txt, .sd-origin:not(.many) > .sd-orig-files { flex-basis: 100%; }
  .sd-origin .txt { font-size: var(--pj-t-body); }
  .sd-origin.many .sd-orig-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-write-sw { grid-template-columns: 1fr 1fr; }
  .sd-write-sw button { min-height: 44px; padding: 0 8px; }
  .sd-compose { border-radius: 0 0 12px 12px; }
  .sd-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* A start page without the left bar has no menu: "Nieuw ticket" stays in the top bar, small. */
  .bh-top.bh-noside .sd-new { display: inline-flex; font-size: var(--pj-t-meta); min-height: 34px; padding: 0 8px; }
  .sd-part summary { grid-template-columns: minmax(0, 1fr) auto; padding: 16px 16px 16px 40px; }
  .sd-part summary .line { grid-column: 1 / -1; white-space: normal; }
  .sd-part-b { padding: 4px 16px 16px 16px; }
  .sd-two, .sd-pair, .sd-pair.w21, .sd-newgrid, .sd-fields, .sd-board { grid-template-columns: minmax(0, 1fr); }
  .sd-day-g { grid-template-columns: minmax(0, 1fr); }
  .sd-day-side.over, .sd-day-side.later { border: 0; }
  .sd-day-side.later { border-top: 1px solid var(--line-soft); }
  .sd-day-axis { border-top: 1px solid var(--line-soft); height: auto; margin: 0; padding: 16px 16px; }
  .sd-day-line, .sd-day-hours { display: none; }
  .sd-day-now { background: none; height: auto; left: auto !important; position: static; width: auto; }
  .sd-day-now b { color: var(--muted); font-weight: 500; position: static; transform: none; }
  .sd-day-items { display: grid; gap: 8px; margin-top: 8px; }
  .sd-day-items li { left: auto !important; position: static; width: auto; }
  .sd-day-items li::before, .sd-day-items li::after { display: none; }
  .sd-day-items li .sd-day-l, .sd-day-items li.end .sd-day-l { font-size: var(--pj-t-ui); position: static; text-align: left; white-space: normal; }
  .sd-day-items li.dot { display: none; }
  .sd-rowlink { gap: 4px; grid-template-columns: minmax(0, 1fr); }
  .sd-lines > li.c3 { grid-template-columns: minmax(0, 1fr); }
  .sd-waitlist > li { grid-template-columns: minmax(0, 1fr); }
  .sd-waitlist > li .bh-btn { justify-self: start; margin-top: 4px; }
}
/* Round 4: the list of customers fits on 1440 (the last column fell off): service and SLA profile may wrap. */
.sd-clients td:nth-child(2), .sd-clients td:nth-child(5) { white-space: normal; }
.sd-clients th[scope="row"] { min-width: 220px; }
.sd-home-pair .sd-bars ol { max-width: none; }
/* ── What the app adds to the drawing: the search is a real field, a lane takes a card that is dragged over it ── */
.sd-search input { background: none; border: 0; color: var(--text); flex: 1 1 auto; font: inherit; font-size: var(--pj-t-meta); min-width: 0; outline: none; padding: 0; width: 100%; }
.sd-search input::placeholder { color: var(--muted); opacity: 1; }
.sd-search:focus-within { border-color: var(--primary); }
.sd-lane.is-over, .sd-lane.t3-target { outline: 2px solid color-mix(in srgb, var(--primary) 55%, var(--line)); outline-offset: -2px; }
.sd-card.is-busy { opacity: .5; }
.sd-card[draggable="true"] { cursor: grab; }
.sd-card [data-pop-root] { justify-self: start; margin-top: 4px; }
.sd-switchlink { margin: 0; }
.sd-chip .x { cursor: pointer; }
.sd-chip.on .x:hover { text-decoration: underline; }
/* ── The ticket in the app: what the drawing has as a picture is a plate with the type of the file (the page never shows what a customer sent), the folds hold the old blocks ── */
.sd-thread-list { display: grid; gap: 16px; }
.sd-post-body { font-size: var(--pj-t-ui); line-height: 1.55; max-width: 72ch; }
.sd-post-body p + p { margin-top: 8px; }
.sd-post-body [class*="mention"] { color: var(--primary); font-weight: 500; }
.sd-post .when a, .sd-post-h a { color: var(--primary); font-size: var(--pj-t-meta); }
.sd-plate { align-items: center; cursor: default; display: grid; gap: 8px; justify-items: center; min-height: 110px; text-align: center; width: 100%; }
button.sd-plate { cursor: pointer; font: inherit; }
.sd-plate-ext { background: var(--primary); border-radius: 8px; color: var(--primary-foreground); font-size: var(--pj-t-meta); font-weight: 700; padding: 8px 16px; }
.sd-plate-name { color: var(--muted); font-size: var(--pj-t-meta); overflow-wrap: anywhere; }
.bh-shot.sm .sd-plate { min-height: 64px; padding: 8px; }
.sd-part-b .f { display: grid; gap: 8px; padding: 8px 0; }
.sd-part-b .f + .f { border-top: 1px solid var(--line-soft); }
.sd-part-b .lbl { color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; }
.sd-part-b .val { align-items: center; display: flex; flex-wrap: wrap; font-size: var(--pj-t-ui); font-weight: 500; gap: 8px 8px; }
.sd-part-b .val small, .sd-part-b small { color: var(--muted); font-size: var(--pj-t-meta); font-weight: 400; }
.sd-part-b .row2 { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-part-b .links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sd-part-b .lr { align-items: center; display: flex; gap: 8px; justify-content: space-between; }
.sd-part-b .link-list { display: grid; gap: 8px; }
.sd-part-b .link-list > div { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.sd-stand .sd-acts { margin-top: 4px; }
.sd-stand .bh-note { margin-top: 4px; }
.sd-stand .bh-facts dd .bh-who { margin-right: 4px; }
.sd-klant .links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sd-compose [data-reply-body] { display: block; }
.sd-compose [class^="t3-reply-"] { margin: 8px 16px 0; }
.sd-compose [data-mention-list] { margin: 0 16px 8px; }
.sd-compose [data-files-region] { padding: 0 16px; }
.sd-compose-f .sd-select.sp { margin-left: auto; }
.sd-compose-f [data-pop-root] { display: inline-block; position: relative; }
.sd-compose-f .bh-btn.sp { margin-left: auto; }
.sd-write-sw button { font-family: inherit; }
/* ── The window that shows what goes to the customer: large, the text left, to whom and what happens right (SD7) ── */
/* The middle of every page is a column of parts with the gap of the shell (the shell puts the content in one holder). */
[data-main-body] { display: flex; flex-direction: column; gap: 24px; }
[data-main-body] > * { min-width: 0; }
[data-legacy-band]:empty { display: none; }
/* A table that is wider than the page slides sideways inside its frame instead of being cut off (the proposal of the designers for the shell; here in the own sheet until the shell has it). */
.bh-tablewrap { overflow-x: auto; }
.bh-field > .lbl { font-size: var(--pj-t-meta); font-weight: 500; }
.sd-newgrid .sd-acts [data-nt-submit], .sd-newgrid .sd-acts .bh-btn { min-height: 40px; }
/* "Ongedaan maken" stays in view while the clock runs: the slot on top of a ticket lets its bar take part in the column, and both the slot and the region above the page stick below the top of the window. */
[data-flow-slot] { display: contents; }
.sd-undo-next, [data-flow-region]:not([hidden]) { position: sticky; top: 12px; z-index: 25; }
[data-flow-region]:not([hidden]) .sd-undo-next { position: static; }
.sd-undo-next { box-shadow: 0 8px 22px rgb(11 46 59 / .16); }
@media (max-width: 960px) { .sd-undo-next, [data-flow-region]:not([hidden]) { top: 60px; } .sd-undo-next > .bh-flow li:not(.is-now) { display: none; } }
.sd-fields .sd-search { flex: 1 1 auto; min-height: 40px; width: 100%; }
.sd-tix td .sub { color: var(--muted); display: block; font-size: var(--pj-t-meta); margin-top: 0; }
.sd-chip.on:has(+ .sd-chip-x) { border-right: 0; border-radius: 999px 0 0 999px; padding-right: 4px; }
.sd-chip-x { align-items: center; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--line)); border-left: 0; border-radius: 0 999px 999px 0; color: var(--primary); cursor: pointer; display: inline-flex; font-size: var(--pj-t-body); line-height: 1; min-height: 32px; padding: 0 8px 0 4px; }
.sd-chip-x:hover { text-decoration: underline; }
[data-pop-root]:has(.sd-chip-x) { align-items: center; display: inline-flex; }
/* "Klok en werktijden" in two columns (the drawing): the rows of the rules run down in pairs. */
@media (min-width: 961px) {
  [data-klok] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  [data-klok] > div { grid-template-columns: 130px minmax(0, 1fr); }
  [data-klok] > div:nth-child(2) { border-top: 0; }
  [data-klok] > div:nth-child(odd) { border-right: 1px solid var(--line); }
}
/* Touch: on a narrow screen everything that is pressed is at least 44 px high (the contract of the shell). The shell's own parts (the avatar, the app switch, the client switch) are the shell's. */
@media (max-width: 960px) {
  .bh-main button, .bh-main select, .bh-main summary, .bh-main .bh-btn, .bh-main .sd-chip, .bh-main .sd-chip-x, .bh-main .sd-rowlink, .bh-main input[type="search"], .bh-main input[type="text"] { min-height: 44px; }
  .bh-main .bh-btn-link, .bh-main [class~="sd-link-b"], .bh-main .link-b, .bh-main .sd-a, .bh-main .ext, .bh-main .bh-ext, .bh-main .sd-band-a, .bh-main .sd-rowlink.one { align-items: center; display: inline-flex; min-height: 44px; }
  .bh-main .sd-ck input { height: 22px; margin: 8px; width: 22px; }
  .bh-main [class~="t3-x"] { min-height: 44px; min-width: 44px; }
  .bh-main :where(li, dd, h2, h3, td, small, .bh-t, .sd-day-side) > a:not(.bh-btn), .bh-main .sd-day-items a { align-items: center; display: inline-flex; min-height: 44px; }
  .sd-band-a { align-items: center; display: inline-flex; min-height: 44px; }
}
/* From 961 to 1229 wide the top bar is tight: the mark and the key hint go, the search field shrinks, the links and gaps are a little closer. The top bar then fits in the window
   (contract §6.1: no overflow sideways at 961 and 1200). Only the Support Desk's own sheet; the pinned shell is not touched. */
@media (min-width: 961px) and (max-width: 1229px) {
  .bh-top { gap: 16px; padding-left: 16px; padding-right: 16px; }
  .bh-nav a, .bh-nav span { padding-left: 8px; padding-right: 8px; }
  .bh-mark, .bh-search kbd { display: none; }
  .bh-top-tools { flex: 1 1 0; justify-content: flex-end; min-width: 0; }
  .bh-searchwrap { flex: 0 1 276px; min-width: 96px; }
  .bh-search { width: 100%; }
  .sd-ticket { grid-template-columns: minmax(0, 1fr) minmax(270px, .42fr); }
  .sd-two, .sd-pair, .sd-pair.w21, .sd-newgrid { grid-template-columns: minmax(0, 1fr); }
  [data-klok] { grid-template-columns: minmax(0, 1fr); }
  [data-klok] > div:nth-child(2) { border-top: 1px solid var(--line); }
  [data-klok] > div:nth-child(odd) { border-right: 0; }
}

/* ── Dienstrooster en Telefonie (OUB-S189, contract 2.26.0) ──
   Alleen tokens van de bestaande bladen; werkt met en zonder de klasse is-nieuw. Een rij is een afgeronde vlak, nooit een rand tot de rand en nooit een gekleurde streep links.
   De lijst met dagen heeft geen overflow, zodat het menu van een veld erbuiten kan vallen. */
.sd-wk-acts { align-items: center; display: flex; flex-wrap: wrap; gap: var(--pj-s-2) var(--pj-s-3); margin-left: auto; }
.sd-dagen { display: grid; gap: var(--pj-s-1); list-style: none; margin: 0; padding: 0; }
.sd-dagen > li { align-items: center; border-radius: var(--bh-r-2); display: grid; gap: var(--pj-s-1) var(--pj-s-3); grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr); padding: var(--pj-s-2) var(--pj-s-3); }
.sd-dagen > li.sd-kolkop { color: var(--muted); font-size: var(--pj-t-meta); padding-bottom: 0; padding-top: 0; }
.sd-dagen > li.is-vandaag { background: var(--surface); }
.sd-dagnaam { display: grid; line-height: 1.25; min-width: 0; }
.sd-dagnaam b { font-size: var(--pj-t-ui); font-weight: 500; }
.sd-dagnaam small { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-dagnaam .sd-nu { color: var(--text); font-weight: 500; }
.sd-dagen > li.is-voorbij .sd-dagnaam b { color: var(--muted-strong); }
.sd-rolnaam { color: var(--muted); display: none; font-size: var(--pj-t-meta); }
.sd-cel { display: block; min-width: 0; }
.sd-kiezer { display: block; }
.sd-kies { align-items: center; background: none; border: 1px solid var(--line-strong, var(--line)); border-radius: var(--bh-r-1); color: var(--text); cursor: pointer; display: flex; font: inherit; font-size: var(--pj-t-ui); gap: var(--pj-s-2); min-height: 36px; padding: 0 var(--pj-s-2); text-align: left; width: 100%; }
.sd-kies:hover { background: var(--row-tint); }
.sd-kies[aria-expanded="true"] { border-color: var(--primary); }
.sd-kies .sd-nm, .sd-vast .sd-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-kies .bh-chev { color: var(--muted); flex: none; }
.sd-kies.is-leeg { border-color: var(--primary); color: var(--primary); }
.sd-vast { align-items: center; border: 1px solid transparent; display: flex; font-size: var(--pj-t-ui); gap: var(--pj-s-2); min-height: 36px; padding: 0 var(--pj-s-2); }
.sd-vast.is-leeg { color: var(--muted); }
.sd-leegvorm { border: 1px solid currentColor; border-radius: 50%; display: inline-block; flex: none; height: 16px; margin: 0 var(--pj-s-1); width: 16px; }
.bh-who.is-ik { background: var(--primary); color: var(--primary-foreground); }
.sd-wie { align-items: center; display: flex; flex: 1; gap: var(--pj-s-2); min-width: 0; }
.sd-ik { border: 1px solid var(--line-strong, var(--line)); border-radius: var(--bh-r-1); color: var(--muted); flex: none; font-size: var(--pj-t-meta); line-height: 1.5; padding: 0 var(--pj-s-1); white-space: nowrap; }
.is-bezig { cursor: progress; opacity: .6; pointer-events: none; }
dialog[aria-busy="true"] { cursor: progress; }
dialog[aria-busy="true"] button:disabled { cursor: progress; }
.sd-dicht { color: var(--muted); font-size: var(--pj-t-ui); grid-column: 2 / -1; }
.sd-warn { align-items: center; display: flex; flex-wrap: wrap; font-size: var(--pj-t-ui); gap: var(--pj-s-1) var(--pj-s-3); grid-column: 1 / -1; padding: 0 0 var(--pj-s-1); }
.sd-wdot { background: var(--status-amber); border-radius: 50%; flex: none; height: 8px; width: 8px; }
.sd-warn .bh-btn-link, .sd-mijn-l .bh-btn-link { font-size: var(--pj-t-meta); white-space: nowrap; }
.sd-rooster-alert { background: var(--status-amber-fill); border: 1px solid var(--status-amber-line); border-radius: var(--bh-r-1); font-size: var(--pj-t-ui); margin: 0; padding: var(--pj-s-2) var(--pj-s-3); }
.sd-pick-l { max-height: none; min-width: 260px; }
.sd-pick-l button.sd-pick-o { display: grid; gap: 0 var(--pj-s-2); grid-template-columns: 24px minmax(0, 1fr); }
.sd-pick-l button.sd-pick-o:not(:has(.bh-who)) { grid-template-columns: minmax(0, 1fr); padding-left: var(--pj-s-5); }
.sd-pick-o .sd-pick-n { display: grid; min-width: 0; }
.sd-pick-o .sd-pick-n small { color: var(--tile-muted); font-size: var(--pj-t-meta); font-weight: 400; }
.sd-pick-l button.sd-pick-o[disabled] { cursor: not-allowed; opacity: .6; }
.sd-pick-l button.sd-pick-o[disabled]:hover { background: none; }
.sd-mijn-l { display: grid; list-style: none; margin: 0; padding: 0; }
.sd-mijn-l > li { align-items: center; border-top: 1px solid var(--line); display: grid; gap: var(--pj-s-2) var(--pj-s-3); grid-template-columns: minmax(0, 1fr) auto; padding: var(--pj-s-2) 0; }
.sd-mijn-l > li:first-child { border-top: 0; }
.sd-mijn-l .t { display: grid; gap: var(--pj-s-1); }
.sd-mijn-l .t b { font-size: var(--pj-t-ui); font-weight: 500; }
.sd-mijn-l .t small { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-weg { counter-reset: weg; display: grid; gap: var(--pj-s-3); list-style: none; margin: 0; padding: 0; }
.sd-weg > li { align-items: start; display: grid; gap: 0 var(--pj-s-3); grid-template-columns: 24px minmax(0, 1fr); }
.sd-weg > li::before { align-items: center; background: var(--primary-soft); border-radius: 50%; color: var(--primary); content: counter(weg); counter-increment: weg; display: inline-flex; font-size: var(--pj-t-init); font-weight: 700; height: 24px; justify-content: center; width: 24px; }
.sd-st { display: grid; gap: var(--pj-s-1); min-width: 0; }
.sd-st b { font-size: var(--pj-t-ui); font-weight: 500; }
.sd-st small { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-twee { display: grid; gap: var(--pj-s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sd-over { background: var(--surface); border-radius: var(--bh-r-2); padding: var(--pj-s-3); }
.sd-row-acts { align-items: center; display: flex; flex-wrap: wrap; gap: var(--pj-s-1) var(--pj-s-3); }
.sd-nw { white-space: nowrap; }
/* Logboek onder het rooster (OUB-S189, bouwstap 8): de kop opent en sluit het deel, de regels zijn die van Mijn diensten. Alleen tokens van de bestaande bladen. */
.sd-logboek-b { align-items: center; background: none; border: 0; color: inherit; cursor: pointer; display: inline-flex; font: inherit; gap: var(--pj-s-2); min-height: 44px; padding: 0; text-align: left; }
.sd-logboek-b:hover { color: var(--primary); }
.sd-logboek-b .bh-chev { color: var(--muted); flex: none; }
.sd-logboek-b[aria-expanded="true"] .bh-chev { transform: translateY(2px) rotate(-135deg); }
.sd-logboek-l > li:focus-visible { border-radius: var(--bh-r-1); }
@container app (max-width: 760px) {
  .sd-dagen > li { background: var(--surface); grid-template-columns: minmax(0, 1fr); padding: var(--pj-s-3); }
  .sd-dagen > li.sd-kolkop { display: none; }
  .sd-dagen > li.is-vandaag { background: var(--primary-soft); }
  .sd-dagnaam { align-items: baseline; gap: var(--pj-s-2); grid-auto-flow: column; justify-content: start; }
  .sd-cel { align-items: center; display: grid; gap: var(--pj-s-2); grid-template-columns: 88px minmax(0, 1fr); }
  .sd-rolnaam { display: block; }
  .sd-wie { align-items: flex-start; flex-direction: column; gap: var(--pj-s-1); }
  .sd-kies, .sd-vast { padding-bottom: var(--pj-s-1); padding-top: var(--pj-s-1); }
  .sd-dicht { grid-column: 1; }
  .sd-wk-acts { margin-left: 0; }
  .sd-row-acts { grid-column: 1; grid-row: 2; }
}
@media (max-width: 640px) {
  .sd-twee { grid-template-columns: minmax(0, 1fr); }
}

/* ── OUB-S161 (pair 3, SD-1): the same squeeze for the new look, where the top bar has six tabs (Inzicht after Start, inzicht.ts) for an administrator. From 961 to 1279 px wide the
   tabs, the search and Nieuw ticket do not fit next to each other at full size (about 925 px of 920 at 1000 wide, before the search). There the tabs stand a little closer and the search is a round button with the glass
   that opens to its full width over the tabs while you type and closes when you leave it; the tabs never move. The shell sheets are not touched. ── */
/* The results of the search open on a light panel under the night top bar: they take the ink of the page, not the light ink of the bar (the key was white on white). */
.bh-body.is-nieuw .bh-top .bh-searchres { color: var(--text); }
@media (min-width: 961px) and (max-width: 1279px) {
  .bh-body.is-nieuw .bh-top { gap: var(--pj-s-4); }
  .bh-body.is-nieuw .bh-top .bh-nav a { padding-inline: var(--pj-s-2); }
  .bh-body.is-nieuw .bh-top .bh-searchwrap { flex: none; width: 40px; min-width: 0; height: 36px; }
  .bh-body.is-nieuw .bh-top .bh-search { position: absolute; top: 0; right: 0; width: 40px; height: 36px; gap: 0; justify-content: center; padding: 0; cursor: pointer; }
  .bh-body.is-nieuw .bh-top .bh-search input { flex: 0 0 0; width: 0; }
  .bh-body.is-nieuw .bh-top .bh-search kbd { display: none; }
  .bh-body.is-nieuw .bh-top .bh-searchwrap:focus-within { z-index: 30; }
  .bh-body.is-nieuw .bh-top .bh-searchwrap:focus-within .bh-search { width: 340px; gap: var(--pj-s-2); justify-content: flex-start; padding: 0 var(--pj-s-3); background: var(--night); cursor: text; }
  .bh-body.is-nieuw .bh-top .bh-searchwrap:focus-within .bh-search input { flex: 1 1 auto; width: auto; }
  .bh-body.is-nieuw .bh-top .bh-searchwrap .bh-searchres { left: auto; right: 0; width: 340px; }
}
/* On a laptop width (up to 1480) the list of tickets leaves out Bijgewerkt (the ticket has it) and the first columns are a little narrower, so Oppakken stays in view at 1280. */
@media (min-width: 961px) and (max-width: 1480px) {
  .sd-tix [data-col="updated"] { display: none; }
  .sd-tix th[scope="row"] { min-width: 200px; }
  .sd-tix td.sd-slacell { min-width: 120px; }
}
/* ── Start, back after the herindeling: Toewijzen, the type chips, the meter of the clock, the seintje and the AI marker (13 Oct 2026, the owner: "dan bekijk ik het en kan het daarna altijd nog weg") ── */
.sd-next > .sd-next-x { grid-column: 1; }
.sd-clock { color: var(--muted); display: grid; font-size: var(--pj-t-meta); gap: 8px; margin-top: 8px; max-width: 420px; }
.sd-clock b { color: var(--text); font-weight: 500; }
.bh-first .sd-acts { align-items: center; justify-content: flex-end; }
.sd-home-free { margin-top: 8px; }
.sd-home-free > .bh-sec-h h2 { font-size: var(--pj-t-h2); }
.sd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-free { margin-top: 0; }
.sd-free > li { padding: 8px 4px; }
.sd-free .t { font-size: var(--pj-t-ui); }
.sd-free .t a b { font-weight: 700; margin-right: 4px; }
.sd-free .t a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.sd-free > li.more { padding: 8px 4px; }
.sd-free > li.more small { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-free .sd-acts { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.sd-assign { max-height: none; min-width: 300px; overflow: visible; }
.sd-assign [data-assign-list] { display: grid; gap: 4px; max-height: 300px; overflow-y: auto; }
.sd-assign button.sd-assign-o { align-items: center; display: grid; gap: 0 8px; grid-template-columns: 24px minmax(0, 1fr) auto; }
.sd-assign-o .sd-assign-n { display: grid; min-width: 0; }
.sd-assign-o .sd-assign-n small { color: var(--tile-muted); font-size: var(--pj-t-meta); font-weight: 400; }
.sd-assign-o em { color: var(--tile-muted); font-size: var(--pj-t-meta); font-style: normal; font-variant-numeric: tabular-nums; }
.sd-assign-o.on .sd-assign-n b { font-weight: 700; }
.sd-nudge { color: var(--primary); font-weight: 500; }
.sd-nudge:hover { text-decoration: underline; text-underline-offset: 3px; }
.sd-day-side li .sd-nudge { display: inline-block; font-size: var(--pj-t-meta); margin-top: 4px; }
@media (max-width: 960px) {
  .bh-first > li > .sd-acts { grid-column: 2; justify-content: flex-start; margin-top: 8px; }
  .sd-free .sd-acts { justify-content: flex-start; margin-top: 4px; }
  .sd-day-items .sd-day-l > a, .sd-day-side li > a { gap: 8px; }
  .bh-main .sd-soon a { align-items: center; display: inline-flex; gap: 8px; min-height: 44px; }
  .sd-acts { position: relative; }
  .sd-acts > .sd-assignwrap { position: static; }
  .sd-assignwrap > .sd-assign { left: 0; min-width: 0; right: auto; width: min(300px, calc(100vw - 80px)); }
}
.sd-day-items li.end .sd-day-l small, .sd-day-items li .sd-day-l small a { white-space: nowrap; }
.sd-day-items .sd-day-l small a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sd-soon { align-items: baseline; color: var(--muted); display: flex; flex-wrap: wrap; font-size: var(--pj-t-meta); gap: 4px 24px; }
.sd-soon .h { font-weight: 500; }
.sd-soon .i b { color: var(--text); font-weight: 700; }
.sd-soon .i a:not(.sd-nudge):hover { text-decoration: underline; text-underline-offset: 3px; }
.sd-day-items li.joined .sd-day-l { max-width: 232px; white-space: normal; width: max-content; }
.sd-day-items li.joined .sd-day-l small { white-space: normal; }
/* Rapportages with the report buttons (contract 2.5.0, only with SUPPORT_REPORTS_FROM_DESK on; drawn on 13 Oct 2026, supportdesk/rapportages-rapport-*.html). Everything below is added; nothing above changed.
   1. .sd-rep4 · the report list with four columns instead of five (.sd-reports). Three things to do do not fit in the column of 130, and with five columns the name of the project got about 220
      on 1280. The column Stand is gone: the state stands in the head of the group, and under Afgerond in the line under the name.
   2. .sd-rowmsg (with .has-msg on the row above it) · one line under a row: the reason at a grey button, busy, done, or what went wrong. A table row had no place for a sentence.
   3. Narrow (up to 1240): a row of .sd-rep4 becomes a block: on a phone the table slid aside and the buttons fell out of the picture, and between 961 and 1240 the name got no room next to the left bar.
   4. .sd-confirm · the box that is ticked in the window that links a project. The shell has no tick line outside a table.
   5. .sd-dlg-err · the sentence in a window that says what went wrong, above the foot. */
.sd-rep4 { table-layout: fixed; }
.sd-rep4 col.n { width: 78px; }
.sd-rep4 col.u { width: 92px; }
.sd-rep4 col.a { width: 372px; }
.sd-rep4.two col.a { width: 250px; }
.sd-tix.sd-rep4 th[scope="row"] { min-width: 0; vertical-align: middle; width: auto; }
.sd-rep4 td { vertical-align: middle; }
.sd-rep4 td.num { font-variant-numeric: tabular-nums; text-align: right; }
.sd-part-b .sd-rep4 a.sd-rowlink { color: var(--text); font-weight: inherit; }
.sd-rep4 .sd-rowact .sd-acts { align-items: center; flex-wrap: nowrap; justify-content: flex-end; }
.sd-rep4 .sd-rowact > small { font-size: var(--pj-t-meta); margin-top: 8px; }
.sd-rep4 tr.has-msg > th[scope="row"], .sd-rep4 tr.has-msg > td { border-bottom: 0; padding-bottom: 8px; }
.sd-rep4 .sd-rowmsg > td { color: var(--muted); font-size: var(--pj-t-meta); line-height: 1.45; padding: 0 16px 16px; text-align: right; text-wrap: balance; white-space: normal; }
.sd-rep4 .sd-rowmsg .bh-btn-link { margin-left: 8px; }
.sd-confirm { align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; display: flex; font-size: var(--pj-t-ui); font-weight: 500; gap: 8px; line-height: 1.4; padding: 8px 16px; }
.sd-confirm input { accent-color: var(--primary); flex: 0 0 auto; height: 18px; margin: 0 0 0; width: 18px; }
.sd-dlg-err { font-size: var(--pj-t-ui); line-height: 1.45; }
/* The windows of the report buttons: a window is appended to the body, outside the container that holds --line-soft, so the lines between the facts need it here. The heading and the line under it sit 8 apart, the rest 16. */
dialog.bh-dialog.sd-rapport-dlg { --line-soft: color-mix(in srgb, var(--line) 55%, var(--surface)); }
.sd-dlg-grid { display: grid; gap: 16px; }
.sd-rapport-dlg [data-dialog-body] > .sd-dlg-grid > .sd-dlg-m:first-child { margin-top: -8px; }
@media (max-width: 1240px) {
  .sd-rep4 colgroup, .sd-rep4 thead { display: none; }
  .sd-rep4, .sd-rep4 tbody, .sd-rep4 tr, .sd-tix.sd-rep4 th[scope="row"], .sd-rep4 td { display: block; }
  .sd-rep4 tr { border-bottom: 1px solid var(--line-soft); padding: 16px 16px; }
  .sd-rep4 tbody tr:last-child, .sd-rep4 tr.has-msg { border-bottom: 0; }
  .sd-rep4 tr.has-msg { padding-bottom: 8px; }
  .sd-rep4 tr.sd-rowmsg { padding-top: 0; }
  .sd-tix.sd-rep4 th[scope="row"], .sd-rep4 td, .sd-rep4 tr.has-msg > th[scope="row"], .sd-rep4 tr.has-msg > td, .sd-rep4 .sd-rowmsg > td { border: 0; padding: 0; }
  .sd-rep4 td.num { color: var(--muted); display: inline; font-size: var(--pj-t-meta); text-align: left; }
  .sd-rep4 td.num[data-l]::after { content: " " attr(data-l) " · "; }
  .sd-rep4 .sd-rowact { margin-top: 8px; text-align: left; white-space: normal; }
  .sd-rep4 .sd-rowact .sd-acts { flex-wrap: wrap; justify-content: flex-start; }
  .sd-rep4 .sd-rowact .sd-acts > .bh-ext { order: 1; }
  .sd-rep4 .sd-rowmsg > td { text-align: left; }
  .sd-rep4 .sd-rowmsg .bh-btn-link { margin-left: 0; }
}
/* Contract 2.6.0 · mailing a support report from Rapportages (supportrapport mailen, 14 Oct 2026). Only with mail on the page (a delivery manager or an administrator).
   1. .sd-pickrow · the box in front of a row, for mailing several reports at once. .has-mail gives the column of the buttons room for Versturen.
   2. .sd-mailbar · the bar above the list: the sentence of the mode (test, uit) and "Verstuur geselecteerde (n)".
   3. .sd-mailnote · that sentence; .is-test in the test mode.
   4. .sd-rcpt-set, .sd-rcpts, .sd-rcpt · the recipients in the window; .sd-mailtext the text of the mail.
   5. .sd-mailbulk · the overview of several reports with their recipients or the reason, and the outcome per report: the middle column gets most room, an address
      stands on its own line and only breaks when it does not fit at all. */
.sd-rep4.has-mail col.a { width: 468px; }
.sd-pickrow { align-items: center; display: flex; gap: 8px; min-width: 0; }
.sd-pickrow > .sd-rowlink { flex: 1 1 auto; min-width: 0; }
.sd-pick { accent-color: var(--primary); flex: 0 0 auto; height: 16px; margin: 0; width: 16px; }
.sd-mailbar { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; margin: 0 0 16px; }
.sd-mailbar-acts { align-items: center; display: flex; gap: 16px; margin-left: auto; }
.sd-mailbar-n { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-mailnote { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--muted-strong); font-size: var(--pj-t-ui); margin: 0; padding: 8px 16px; }
.sd-mailnote.is-test { background: var(--bh-fill-amber); border-color: var(--status-amber-line); color: var(--status-amber); }
.sd-rcpt-set { border: 0; display: grid; gap: 8px; margin: 0; min-width: 0; padding: 0; }
.sd-rcpt-set legend { font-size: var(--pj-t-meta); font-weight: 500; margin-bottom: 8px; padding: 0; }
.sd-rcpts { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sd-rcpt { align-items: center; cursor: pointer; display: flex; font-size: var(--pj-t-ui); gap: 8px; }
.sd-rcpt input { accent-color: var(--primary); flex: 0 0 auto; height: 16px; margin: 0; width: 16px; }
.sd-rcpt .sd-rcpt-mail, .sd-rcpt-line .sd-rcpt-mail { color: var(--muted); overflow-wrap: break-word; }
.sd-rcpt-line { display: block; font-size: var(--pj-t-ui); }
.sd-rcpt-line .sd-rcpt-mail { display: block; }
.sd-mailtext { font: inherit; line-height: 1.5; min-height: 120px; resize: vertical; }
.sd-mailbulk { table-layout: fixed; }
.sd-mailbulk col.rep { width: 28%; }
.sd-mailbulk col.who { width: 47%; }
.sd-mailbulk col.out { width: 25%; }
.sd-mailbulk th[scope="row"] { overflow-wrap: break-word; white-space: normal; }
.sd-mailbulk th[scope="row"] small { color: var(--muted); display: block; font-weight: 400; }
.sd-mailbulk .sd-mailskip { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-mailbulk-out small { color: var(--muted); display: block; font-size: var(--pj-t-meta); }
@media (max-width: 1240px) {
  .sd-mailbar-acts { margin-left: 0; }
}
/* 6. .sd-getsrep · on the client page, per contact: the box "Krijgt rapporten" and "Verbergen" for a contact added by hand (only for an administrator or delivery manager). */
.sd-getsrep-row { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.sd-getsrep { align-items: center; cursor: pointer; display: inline-flex; font-size: var(--pj-t-meta); gap: 8px; }
.sd-getsrep input { accent-color: var(--primary); height: 15px; margin: 0; width: 15px; }
/* ── Eén venster, één foutblok (D4 #25) ───────────────────────────────────────────────────────────────────────────────────────────────────────
   Elk venster is het venster van de schil (`bh-dialog`, venster.ts); het venster voor een klantactie is dat met `sd-act` erbij en een maat (is-sm, is-md, is-lg). Alles wat niet gelukt
   is, of niet zomaar gelukt is, staat in één blok: `sd-problem` (een titel, de tekst, eventueel knoppen; `sd-problem-top` zegt dat het over een klantactie gaat). */
.bh-dialog [data-dialog-body] { display: grid; gap: 16px; }
.bh-dialog dl[class~="kv"] { margin: 0; }
.bh-dialog .bh-foot small:empty { display: none; }
.bh-dialog.sd-act { gap: 24px; max-width: 980px; width: calc(100% - 32px); }
.bh-dialog.sd-act.is-sm { max-width: 600px; }
.bh-dialog.sd-act.is-md { max-width: 760px; }
.sd-dlg-head { display: grid; gap: 8px; }
.sd-dlg-head h2 { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.bh-dialog .bh-foot [class~="btn"] { white-space: normal; }
.sd-problem { align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px; max-width: 560px; padding: 16px; }
.sd-problem h4 { font-size: var(--pj-t-lead); font-weight: 700; margin: 0; }
.sd-problem p { color: var(--muted); font-size: var(--pj-t-meta); line-height: 1.5; margin: 0; }
.sd-problem p b, .sd-problem ol b { color: var(--text); }
.sd-problem ol { color: var(--muted); display: grid; font-size: var(--pj-t-meta); gap: 4px; line-height: 1.45; margin: 0; padding-left: 16px; }
.sd-problem small { color: var(--muted); font-size: var(--pj-t-meta); line-height: 1.45; }
.sd-problem .acts { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sd-problem .acts a { color: var(--primary); cursor: pointer; font-size: var(--pj-t-meta); font-weight: 500; }
.sd-problem [class~="btn"] { justify-self: start; }
.sd-problem a[class~="link"] { text-decoration: underline; text-underline-offset: 3px; }
.sd-problem-top { align-items: center; color: var(--muted); display: flex; font-size: var(--pj-t-meta); gap: 8px; margin: 0; }
.sd-problem-top span { font-weight: 500; }
.sd-problem-top button { color: inherit; margin-left: auto; }
.bh-dialog .sd-problem { max-width: none; }
.bh-dialog.sd-act.is-lg { padding: 24px 40px; width: min(980px, 94vw); }
.bh-dialog.sd-act.is-lg [class~="tg-dlg-grid"] { gap: 16px 24px; grid-template-columns: minmax(0, 1.75fr) minmax(250px, 1fr); }
.bh-dialog.sd-act.is-lg [class~="tg-dlg-grid"] > aside { order: -1; }
.bh-dialog.sd-act.is-lg aside { background: var(--surface); border-radius: 12px; font-size: var(--pj-t-lead); line-height: 1.6; padding: 16px 24px 24px; }
.bh-dialog.sd-act.is-lg aside p { font-size: var(--pj-t-lead); line-height: 1.6; max-width: 64ch; }
@container app (max-width: 760px) {
  .bh-dialog.sd-act { padding: 24px 16px 16px; }
  [class~="tg-dlg-grid"] { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .bh-dialog.sd-act.is-lg { padding: 24px 16px; }
  .bh-dialog.sd-act.is-lg [class~="tg-dlg-grid"] { grid-template-columns: minmax(0, 1fr); }
  .bh-dialog.sd-act.is-lg [class~="tg-dlg-grid"] > aside { order: 0; }
}

/* The Feedback button and the dialog Je feedback (OUB-S228): schil.css draws them with letters and a dashed frame off the scale; here they are on it (the letters of the scale, a plain line of 1 px). */
.bh-fb-kop h2 { font-size: var(--pj-t-h2); }
.bh-fb-x { font-size: var(--pj-t-h2); }
.bh-fb-url { font-size: var(--pj-t-meta); }
.bh-fb-thumb button { font-size: var(--pj-t-body); }
.bh-fb-plus { border: 1px solid var(--line); }
.bh-fb-plus b { font-size: var(--pj-t-h2); }
.bh-fb-vraag { font-size: var(--pj-t-meta); }
.bh-fb-soort button small { font-size: var(--pj-t-meta); }
.bh-fb-klaar h3 { font-size: var(--pj-t-h2); }
.bh-fb-nieuw { font-size: var(--pj-t-meta); }

/* ── Rustig, wat de schaal niet vanzelf doet ──────────────────────────────────────────────────────────────────────────────────────────────
   Een `small` is meta (13), ook waar niets anders zijn grootte zegt. Een kop heeft geen kader: de kop van het schrijfvak en de voet ervan hebben geen lijn, het vak zelf houdt zijn rand.
   Een lege staat is één regel tekst (`.sd-empty`, `.bh-empty`), geen vak; alleen het blok van de koppeling met Atlassian (`.sd-linkbox`) blijft een vak, want daar staat meer in. */
small { font-size: var(--pj-t-meta); }
.sd-compose-h { border-bottom: 0; }
.sd-compose-f { border-top: 0; }

/* Ticket transfer uses the existing shell dialog and fields. */
.sd-transfer { max-width: 820px; }
.sd-transfer-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sd-transfer-form .bh-preview, .sd-transfer-form > .bh-note, .sd-transfer-form .bh-foot { grid-column: 1 / -1; }
.sd-transfer-form .bh-foot > div { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-transfer-form .bh-field { min-width: 0; }
@media (max-width: 600px) { .sd-transfer-form { grid-template-columns: 1fr; gap: 16px; } }

/* Correcting a BH ticket (OUB-S111): the row of corrections in "De melding", the sentence of a Jira ticket, and the window with its preview. The level of a check
   is said in a word and carried by a frame and fill all round (never a stripe on the left). */
.sd-corr-acts { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.sd-corr-jira { background: var(--surface); border-radius: 8px; color: var(--muted); font-size: var(--pj-t-meta); justify-self: start; line-height: 1.45; margin: 0; padding: 8px 8px; }
.bh-dialog.sd-corr { max-width: 760px; width: calc(100% - 32px); }
.sd-corr-form { display: grid; gap: 16px; }
.sd-corr-form .bh-field { min-width: 0; }
.sd-corr-form .bh-foot > div { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-corr-form textarea.bh-input { line-height: 1.5; padding: 8px 16px; resize: vertical; }
.sd-corr-text { min-height: 160px; }
.sd-corr-preview { gap: 8px; }
.sd-corr-preview:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.sd-corr-changes { display: grid; gap: 8px; margin: 0; }
.sd-corr-change { display: grid; gap: 4px 16px; grid-template-columns: 96px minmax(0, 1fr); }
.sd-corr-change dt { font-size: var(--pj-t-meta); font-weight: 700; }
.sd-corr-change dd { align-items: baseline; display: flex; flex-wrap: wrap; font-size: var(--pj-t-ui); gap: 4px 16px; margin: 0; min-width: 0; }
.sd-corr-change.long dd { display: grid; }
.sd-corr-was small, .sd-corr-new small { color: var(--muted); font-size: var(--pj-t-meta); }
.sd-corr-was .sd-corr-v { color: var(--muted); }
.sd-corr-new .sd-corr-v { font-weight: 500; }
.sd-corr-v { overflow-wrap: anywhere; white-space: pre-wrap; }
.sd-corr-change.long small { display: block; }
.sd-corr-change.long .sd-corr-v { background: var(--surface); border-radius: 8px; display: block; font-weight: 400; padding: 8px 8px; }
.sd-corr-checks { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.sd-corr-check { align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-wrap: wrap; font-size: var(--pj-t-ui); gap: 4px 8px; line-height: 1.45; padding: 4px 8px; }
.sd-corr-check.is-block { background: var(--status-red-fill); border-color: var(--status-red-line); }
.sd-corr-check.is-warn { background: var(--status-amber-fill); border-color: var(--status-amber-line); }
.sd-corr-lvl { flex: 0 0 auto; font-size: var(--pj-t-meta); font-weight: 700; white-space: nowrap; }
.sd-corr-check.is-block .sd-corr-lvl { color: var(--status-red); }
.sd-corr-check.is-warn .sd-corr-lvl { color: var(--status-amber); }
.sd-corr-check.is-ok .sd-corr-lvl { color: var(--status-green); }
.sd-corr-check > span:last-child { flex: 1 1 240px; min-width: 0; }
.sd-corr-blocked { display: grid; gap: 4px; }
.sd-corr-blocked > b { color: var(--status-red); font-size: var(--pj-t-meta); }
.sd-corr-fine summary { color: var(--muted); cursor: pointer; font-size: var(--pj-t-meta); }
.sd-corr-fine[open] summary { margin-bottom: 4px; }
@media (max-width: 600px) { .sd-corr-change { grid-template-columns: minmax(0, 1fr); } }
.sd-corr-sees { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; }
.sd-corr-problem { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px; justify-items: start; padding: 8px 16px; }
.sd-corr-problem p { color: var(--text); margin: 0; }
.sd-corr-problem:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.sd-log .sd-corr-h { display: block; font-weight: 500; }
.sd-log .sd-corr-was, .sd-log .sd-corr-new { display: block; font-size: var(--pj-t-meta); }
.sd-log .sd-corr-was.long .sd-corr-v, .sd-log .sd-corr-new.long .sd-corr-v { background: var(--surface); border-radius: 8px; display: block; padding: 4px 8px; }
.sd-log .sd-corr-why { color: var(--muted); display: block; }
/* OUB-S207: the proposal in the window Klant koppelen; the new look only. */
.bh-body.is-nieuw .sd-corr-voorstel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--bh-r-2); display: grid; gap: var(--pj-s-2); justify-items: start; padding: var(--pj-s-3) var(--pj-s-4); }
.bh-body.is-nieuw .sd-corr-voorstel h3 { color: var(--muted-strong); font-size: var(--pj-t-ui); font-weight: 700; margin: 0; }
.bh-body.is-nieuw .sd-corr-voorstel p { margin: 0; overflow-wrap: anywhere; }

/* OUB-S111 deel A: Salesforce-omgevingen, tegoedhistorie, uitkomst van een reeks, intern bestand, collega's als volger. Alleen de schaal van Rustig (letters, ruimte 4/8/16/24/40). */
.sd-ro-acts { align-items: center; display: inline-flex; flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end; }
.sd-sf-rules { display: block; margin-top: 4px; overflow-wrap: anywhere; white-space: pre-line; }
.bh-dialog textarea.bh-input { line-height: 1.5; min-height: 96px; padding: 8px 16px; resize: vertical; }
.bh-dialog select.bh-input { min-height: 40px; }
.bh-dialog form[data-sf-form], .bh-dialog form[data-save-filter], .bh-dialog form[data-rename-filter], .bh-dialog form[data-bulk-label-form], .bh-dialog form[data-bulk-project-form] { display: grid; gap: 16px; }
.sd-credit-controls { align-items: end; display: flex; flex-wrap: wrap; gap: 16px 24px; }
.sd-credit-controls .bh-field { min-width: 200px; }
.sd-credit-service { display: grid; gap: 8px; min-width: 0; }
.sd-credit-h { font-size: var(--pj-t-body); font-weight: 700; margin: 0; }
.sd-scrollx { border: 1px solid var(--line); border-radius: 10px; max-width: 100%; min-width: 0; overflow-x: auto; position: relative; }
.sd-scrollx .bh-table { min-width: 460px; }
.sd-credit-table th[scope="row"] { background: none; border-bottom: 1px solid var(--line-soft); color: var(--text); font-size: var(--pj-t-ui); font-weight: 500; padding: 8px 16px; text-align: left; white-space: nowrap; }
.sd-credit-table th[scope="row"] small { color: var(--muted); display: block; font-weight: 400; }
.sd-credit-table tr:last-child th[scope="row"] { border-bottom: 0; }
.sd-credit-table .bh-num { white-space: nowrap; }
.sd-bulkres { background: var(--surface); border-radius: 12px; display: grid; gap: 8px; margin-top: 8px; padding: 16px 16px; }
.sd-bulkres:focus-visible { outline-offset: 2px; }
.sd-bulkres-h { font-size: var(--pj-t-body); font-weight: 700; margin: 0; }
.sd-bulkres-sum { font-size: var(--pj-t-ui); margin: 0; }
.sd-bulkres-list { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.sd-bulkres-list li { align-items: baseline; display: flex; flex-wrap: wrap; font-size: var(--pj-t-ui); gap: 4px 8px; }
.sd-bulkres-list li small { color: var(--muted); flex-basis: 100%; }
.sd-bulkres-list a { color: var(--primary); }
.sd-intern { display: grid; gap: 8px; margin-top: 16px; }
.sd-intern-h { font-size: var(--pj-t-ui); font-weight: 700; margin: 0; }
.sd-followers { margin: 0; }
.sd-pills button[disabled] { cursor: not-allowed; opacity: .5; }
@media (max-width: 960px) {
  .bh-main .sd-credit-controls select, .bh-main .sd-bulkres .bh-btn { min-height: 44px; }
  .bh-main .sd-scrollx { -webkit-overflow-scrolling: touch; }
}

/* ── The new look in the whole app: div.app names its own --accent (.app above; cyan in the dark), which wins over the accent of the style on the body.
   With the switch on it takes the accent of the style again, on every page and in both themes: the main button, the counter on the initials, the bar
   of the clock. In light the two are the same amber, so only the dark changes. Without the switch this rule does nothing. ── */
.bh-body.is-nieuw [data-app] { --accent: inherit; }

/* ── OUB-S161 (pair 5): Klanten in the new look (view-clients-nieuw.ts). Only with the switch of the look on: every rule hangs on .bh-body.is-nieuw and on classes that start with sd-kn-,
   so Klanten without the switch is exactly what it was. Tokens only. The page has no band; the tree (Klanten, Koppelingen) stays, without the button to fold it away. The columns follow the width
   of the list itself (@container sd-kn-l), never the window; under about 680 px every client is a block of four. Eerst dit has its edge all round (bh-next of the style), no stripe. One grid:
   every block is one row of the full width. ── */
.bh-body.is-nieuw .sd-kn { display: grid; gap: var(--pj-s-4); align-content: start; min-width: 0; container: sd-kn / inline-size; }
.bh-body.is-nieuw .sd-kn > * { min-width: 0; }
.bh-body.is-nieuw:has([data-main] .sd-kn) .bh-band { display: none; }
.bh-body.is-nieuw:not([data-sidebar="collapsed"]):has([data-main] .sd-kn) .bh-side-toggle { display: none; }

/* The head: title, the counts, the menu of services on the right. */
.bh-body.is-nieuw .sd-kn-kop { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pj-s-2) var(--pj-s-4); }
.bh-body.is-nieuw .sd-kn-kop h1 { font-size: var(--pj-t-h1); line-height: 1.1; }
.bh-body.is-nieuw .sd-kn-aantal { font-size: var(--pj-t-ui); color: var(--muted); }
.bh-body.is-nieuw .sd-kn-dienst { margin-left: auto; }
.bh-body.is-nieuw .sd-kn-dienst > .bh-menu { left: auto; right: 0; }
.bh-body.is-nieuw .sd-kn-kop .bh-chip > .bh-chev { margin-left: var(--pj-s-1); }
.bh-body.is-nieuw .bh-menu.sd-kn-menu { min-width: 240px; max-width: min(340px, calc(100vw - var(--pj-s-6))); }
.bh-body.is-nieuw .sd-kn-menu .bh-r { margin-left: auto; padding-left: var(--pj-s-3); color: var(--muted); font-weight: 400; }

/* Eerst dit: low, one line of reason, one button on the right. */
.bh-body.is-nieuw .sd-kn-eerst-kop { grid-column: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--pj-s-1) var(--pj-s-3); min-width: 0; }
.bh-body.is-nieuw .sd-kn-eerst-kop > .bh-wie { flex: none; display: inline-flex; align-items: center; gap: var(--pj-s-2); font-size: var(--pj-t-meta); font-weight: 500; color: var(--muted); }
.bh-body.is-nieuw .sd-kn-eerst h2 { min-width: 0; }
.bh-body.is-nieuw .sd-kn-eerst > p { grid-column: 1; max-width: 75ch; }
.bh-body.is-nieuw .sd-kn-eerst > :is(.bh-btn, .bh-btn-link) { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }

/* The row of filters: the search first and wider, then the three chips. */
.bh-body.is-nieuw .sd-kn-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pj-s-2); }
.bh-body.is-nieuw .sd-kn-zoek { display: inline-flex; align-items: center; gap: var(--pj-s-2); min-height: 32px; width: 280px; max-width: 100%; padding: 0 var(--pj-s-3); border: 1px solid var(--line); border-radius: var(--bh-r-pill); background: var(--surface-child); color: var(--muted); }
.bh-body.is-nieuw .sd-kn-zoek:hover { border-color: var(--muted); }
.bh-body.is-nieuw .sd-kn-zoek:focus-within { border-color: var(--focus); }
.bh-body.is-nieuw .sd-kn-zoek svg { width: 14px; height: 14px; flex: none; }
.bh-body.is-nieuw .sd-kn-zoek input { flex: 1; min-width: 0; border: 0; padding: 0; background: none; outline: 0; color: var(--text); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-kn-zoek input::placeholder { color: var(--muted); }
.bh-body.is-nieuw .sd-kn-n { color: var(--muted); font-weight: 400; }
.bh-body.is-nieuw .bh-chip[aria-pressed="true"] .sd-kn-n { color: var(--muted-strong); }
.bh-body.is-nieuw .sd-kn-wis { margin-left: var(--pj-s-2); font-size: var(--pj-t-meta); }

/* A part that did not load, an answer that was cut. */
.bh-body.is-nieuw .sd-kn-melding { padding: var(--pj-s-3) var(--pj-s-4); }
.bh-body.is-nieuw .kp-state.sd-kn-fout > p { color: var(--text); max-width: 75ch; }

/* The table: one line per client. */
.bh-body.is-nieuw .sd-kn-lijst { container: sd-kn-l / inline-size; min-width: 0; }
.bh-body.is-nieuw .sd-kn-lijst > .bh-tablewrap { padding: var(--pj-s-2); }
.bh-body.is-nieuw .sd-kn-tabel { table-layout: fixed; min-width: 640px; }
.bh-body.is-nieuw .sd-kn-tabel :is(th, td) { white-space: nowrap; }
.bh-body.is-nieuw .sd-kn-tabel col.c-ct { width: 232px; }
.bh-body.is-nieuw .sd-kn-tabel col.c-cr { width: 272px; }
.bh-body.is-nieuw .sd-kn-tabel col.c-tot { width: 112px; }
.bh-body.is-nieuw .sd-kn-tabel col.c-op { width: 64px; }
.bh-body.is-nieuw .sd-kn-tabel tbody th { background: none; font-weight: 400; text-align: left; padding: var(--pj-s-2) var(--pj-s-4); border-top: 1px solid var(--line-soft); vertical-align: middle; }
.bh-body.is-nieuw .sd-kn-tabel tbody tr:first-child > * { border-top-color: transparent; }
.bh-body.is-nieuw .sd-kn-rij { cursor: pointer; }
.bh-body.is-nieuw .sd-kn-tabel .c-kl, .bh-body.is-nieuw .sd-kn-tabel td.c-ct { overflow: hidden; text-overflow: ellipsis; }
.bh-body.is-nieuw .sd-kn-nm { color: var(--text); font-weight: 500; }
.bh-body.is-nieuw a.sd-kn-nm:hover { color: var(--primary); text-decoration: none; }
.bh-body.is-nieuw .sd-kn-org { margin-left: var(--pj-s-2); color: var(--muted); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-kn-proef { display: inline-block; margin-left: var(--pj-s-2); padding: 0 var(--pj-s-2); border: 1px solid var(--line); border-radius: var(--bh-r-pill); font-size: var(--pj-t-meta); color: var(--muted); line-height: 1.4; }
.bh-body.is-nieuw .sd-kn-tabel td.c-ct { color: var(--muted-strong); }
.bh-body.is-nieuw .sd-kn-geen { color: var(--status-amber); font-weight: 500; }
.bh-body.is-nieuw .sd-kn-x { color: var(--muted); }
/* Credit: thin bars in tone with the number; only what runs out has a colour. */
.bh-body.is-nieuw .sd-kn-cr { display: flex; align-items: center; gap: var(--pj-s-3); min-width: 0; }
.bh-body.is-nieuw .sd-kn-bars { display: inline-flex; gap: var(--pj-s-1); flex: none; width: 88px; }
.bh-body.is-nieuw .sd-kn-bars > .bh-track { flex: 1; }
.bh-body.is-nieuw .sd-kn-bars > .bh-track > i { background: var(--line-strong); }
.bh-body.is-nieuw .sd-kn-cr b { font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.bh-body.is-nieuw .sd-kn-cr.is-low .bh-track > i { background: var(--status-amber); }
.bh-body.is-nieuw .sd-kn-cr.is-low b { color: var(--status-amber); }
.bh-body.is-nieuw .sd-kn-tabel td.c-tot { color: var(--muted-strong); }
.bh-body.is-nieuw .sd-kn-tabel td.c-op { font-weight: 500; }
.bh-body.is-nieuw .sd-kn-tabel td.c-op.is-0 { color: var(--muted); font-weight: 400; }
.bh-body.is-nieuw .sd-kn-geenrij td { padding: var(--pj-s-5) var(--pj-s-4); color: var(--muted-strong); white-space: normal; }
.bh-body.is-nieuw .sd-kn-tabel tbody tr.sd-kn-geenrij:hover > * { background: none; }
.bh-body.is-nieuw .sd-kn-meer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--pj-s-4); }
.bh-body.is-nieuw .sd-kn-meer .bh-meta { font-size: var(--pj-t-meta); color: var(--muted); }
/* A list between the block and about 960 px: the fixed columns give room to the name. */
@container sd-kn-l (max-width: 959px) {
  .bh-body.is-nieuw .sd-kn-tabel col.c-ct { width: 184px; }
  .bh-body.is-nieuw .sd-kn-tabel col.c-cr { width: 204px; }
  .bh-body.is-nieuw .sd-kn-tabel col.c-tot { width: 104px; }
  .bh-body.is-nieuw .sd-kn-tabel col.c-op { width: 56px; }
  .bh-body.is-nieuw .sd-kn-bars { width: 64px; }
}
/* A wide list: the room goes to every column, not to an empty middle. */
@container sd-kn-l (min-width: 1400px) {
  .bh-body.is-nieuw .sd-kn-tabel col.c-ct { width: 24%; }
  .bh-body.is-nieuw .sd-kn-tabel col.c-cr { width: 26%; }
  .bh-body.is-nieuw .sd-kn-tabel col.c-tot { width: 12%; }
  .bh-body.is-nieuw .sd-kn-tabel col.c-op { width: 8%; }
  .bh-body.is-nieuw .sd-kn-bars { width: 160px; }
}
/* A narrow list: every client a block of four (name and open, credit, contract and date). */
@container sd-kn-l (max-width: 679px) {
  .bh-body.is-nieuw .sd-kn-lijst > .bh-tablewrap { padding: var(--pj-s-1); }
  .bh-body.is-nieuw .sd-kn-tabel, .bh-body.is-nieuw .sd-kn-tabel tbody { display: block; min-width: 0; }
  .bh-body.is-nieuw .sd-kn-tabel :is(colgroup, thead) { display: none; }
  .bh-body.is-nieuw .sd-kn-rij { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "c o" "t t" "k d"; gap: calc(var(--pj-s-1) / 2) var(--pj-s-3); padding: var(--pj-s-3); border-top: 1px solid var(--line-soft); border-radius: var(--bh-r-2); }
  .bh-body.is-nieuw .sd-kn-tabel tbody tr:first-child.sd-kn-rij { border-top-color: transparent; }
  .bh-body.is-nieuw .bh-table.sd-kn-tabel .sd-kn-rij > :is(th, td) { display: block; padding: 0; border: 0; min-width: 0; background: none; }
  .bh-body.is-nieuw .bh-table.sd-kn-tabel .sd-kn-rij > .c-kl { grid-area: c; }
  .bh-body.is-nieuw .bh-table.sd-kn-tabel .sd-kn-rij > .c-op { grid-area: o; }
  .bh-body.is-nieuw .bh-table.sd-kn-tabel .sd-kn-rij > .c-cr { grid-area: t; }
  .bh-body.is-nieuw .bh-table.sd-kn-tabel .sd-kn-rij > .c-ct { grid-area: k; font-size: var(--pj-t-meta); }
  .bh-body.is-nieuw .bh-table.sd-kn-tabel .sd-kn-rij > .c-tot { grid-area: d; font-size: var(--pj-t-meta); text-align: right; }
  .bh-body.is-nieuw .bh-table.sd-kn-tabel .sd-kn-rij > .c-tot:not(.is-leeg)::before { content: "tot "; }
  .bh-body.is-nieuw .sd-kn-tabel tbody tr.sd-kn-rij:hover { background: var(--row-tint); }
  .bh-body.is-nieuw .sd-kn-geenrij, .bh-body.is-nieuw .sd-kn-geenrij td { display: block; }
}
/* A narrow page: Eerst dit with its button under the text. */
@container sd-kn (max-width: 679px) {
  .bh-body.is-nieuw .sd-kn .sd-kn-eerst { grid-template-columns: minmax(0, 1fr); padding: var(--pj-s-4); }
  .bh-body.is-nieuw .sd-kn .sd-kn-eerst > :is(.bh-btn, .bh-btn-link) { grid-column: 1; grid-row: auto; justify-self: start; margin-top: var(--pj-s-2); }
  .bh-body.is-nieuw .sd-kn .sd-kn-kop h1 { font-size: var(--pj-t-h2); }
  .bh-body.is-nieuw .sd-kn .sd-kn-dienst { margin-left: 0; }
  .bh-body.is-nieuw .sd-kn .sd-kn-dienst > .bh-menu { left: 0; right: auto; }
  .bh-body.is-nieuw .sd-kn .sd-kn-zoek { width: 100%; }
}

/* ── OUB-S161 (pair 5): the Klantkaart in the new look (view-client-nieuw.ts). Only with the switch of the look on: every rule hangs on .bh-body.is-nieuw and on classes that start with
   sd-kk-, so the Klantkaart without the switch is exactly what it was. Tokens only. No band; the tree stays. At most two columns (the owner's feedback SD-8), in one grid: the two cards of a row
   share their top, their height and the gutters, and no card spans a row beside narrow ones. Two columns only when each has about 420 px (@container sd-kk), else one. ── */
.bh-body.is-nieuw .sd-kk { display: grid; gap: var(--pj-s-4); align-content: start; min-width: 0; container: sd-kk / inline-size; }
.bh-body.is-nieuw .sd-kk > * { min-width: 0; }
.bh-body.is-nieuw:has([data-main] .sd-kk) .bh-band { display: none; }
.bh-body.is-nieuw:not([data-sidebar="collapsed"]):has([data-main] .sd-kk) .bh-side-toggle { display: none; }

/* The head: the name, its organisations, Andere klant on the right. */
.bh-body.is-nieuw .sd-kk-kop { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--pj-s-2) var(--pj-s-4); }
.bh-body.is-nieuw .sd-kk-kop h1 { font-size: var(--pj-t-h1); line-height: 1.1; min-width: 0; overflow-wrap: anywhere; }
.bh-body.is-nieuw .sd-kk-orgs { font-size: var(--pj-t-ui); color: var(--muted); }
.bh-body.is-nieuw .sd-kk-proef { padding: 0 var(--pj-s-2); border: 1px solid var(--line); border-radius: var(--bh-r-pill); font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-kk-wissel { position: relative; display: inline-flex; margin-left: auto; align-self: center; }
.bh-body.is-nieuw .sd-kk-wissel > .bh-chip.bh-switch { min-height: 32px; padding: var(--pj-s-1) var(--pj-s-3); border: 1px solid var(--line); border-radius: var(--bh-r-pill); background: none; color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; }
.bh-body.is-nieuw .sd-kk-wissel > .bh-chip.bh-switch:hover { border-color: var(--muted); color: var(--text); }
.bh-body.is-nieuw .sd-kk-wissel > .bh-chip > .bh-chev { margin-left: var(--pj-s-1); }
.bh-body.is-nieuw .sd-kk-wissel > .bh-switchpanel { top: calc(100% + var(--pj-s-1)); left: auto; right: 0; width: min(440px, calc(100vw - var(--pj-s-6))); padding: var(--pj-s-3); border-radius: var(--bh-r-3); border-color: var(--line-soft); background: var(--raised); box-shadow: var(--bh-shadow-2); }
.bh-body.is-nieuw .sd-kk-wissel > .bh-switchpanel :is(h3, small, .bh-swnote, .bh-sig) { font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-kk-wissel > .bh-switchpanel [role="option"] { border-radius: var(--bh-r-2); padding: var(--pj-s-2) var(--pj-s-3); }

/* The quiet line under the name: contract, credit, open. */
.bh-body.is-nieuw .sd-kk-som { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pj-s-2) var(--pj-s-5); padding-bottom: var(--pj-s-4); border-bottom: 1px solid var(--line-soft); font-size: var(--pj-t-ui); color: var(--muted-strong); }
.bh-body.is-nieuw .sd-kk-som b { color: var(--text); font-weight: 500; }
.bh-body.is-nieuw .sd-kk-cr { display: inline-flex; align-items: center; gap: var(--pj-s-3); min-width: 0; }
.bh-body.is-nieuw .sd-kk-cr > .bh-track { width: 72px; flex: none; }
.bh-body.is-nieuw .sd-kk-cr > .bh-track > i { background: var(--line-strong); }
.bh-body.is-nieuw .sd-kk-cr.is-low > .bh-track > i { background: var(--status-amber); }
.bh-body.is-nieuw .sd-kk-cr.is-low b { color: var(--status-amber); }
.bh-body.is-nieuw .sd-kk-x { color: var(--muted); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-kk-geen { color: var(--status-amber); font-weight: 500; }

/* Eerst dit: low, one line, the button on the right. */
.bh-body.is-nieuw .sd-kk-eerst-kop { grid-column: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--pj-s-1) var(--pj-s-3); min-width: 0; }
.bh-body.is-nieuw .sd-kk-eerst-kop > .bh-wie { flex: none; display: inline-flex; align-items: center; gap: var(--pj-s-2); font-size: var(--pj-t-meta); font-weight: 500; color: var(--muted); }
.bh-body.is-nieuw .sd-kk-eerst h2 { min-width: 0; }
.bh-body.is-nieuw .sd-kk-eerst > p { grid-column: 1; max-width: 75ch; }
.bh-body.is-nieuw .sd-kk-eerst > :is(.bh-btn, .bh-btn-link) { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
.bh-body.is-nieuw .sd-kk-melding { padding: var(--pj-s-3) var(--pj-s-4); }

/* One grid of cards: one column, two when each has about 420 px. */
.bh-body.is-nieuw .sd-kk-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pj-s-4) var(--pj-s-5); align-items: stretch; }
.bh-body.is-nieuw .sd-kk-kaart { min-width: 0; gap: var(--pj-s-2); }
.bh-body.is-nieuw .sd-kk-kaart > .bh-head { align-items: center; }
.bh-body.is-nieuw .sd-kk-kaart > .bh-head h2 { font-size: var(--pj-t-lead); }
.bh-body.is-nieuw .sd-kk-kaart > .bh-head .bh-meta { font-size: var(--pj-t-ui); color: var(--muted); }
.bh-body.is-nieuw .sd-kk-kaart > .bh-head .bh-btn-link { font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-kk-stil { font-size: var(--pj-t-ui); color: var(--muted-strong); }
.bh-body.is-nieuw .sd-kk-stil .bh-btn-link, .bh-body.is-nieuw .sd-kk-rap .bh-btn-link { font-size: var(--pj-t-meta); }

/* Open tickets: two lines a row, the Stand and the initials on the right. */
.bh-body.is-nieuw .sd-kk-tl > li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: calc(var(--pj-s-1) / 2) var(--pj-s-3); align-items: start; padding: var(--pj-s-2) 0; border-top: 1px solid var(--line-soft); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-kk-tl > li:first-child { border-top-color: transparent; }
.bh-body.is-nieuw .sd-kk-key { color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; }
.bh-body.is-nieuw .sd-kk-tt { display: grid; min-width: 0; }
.bh-body.is-nieuw .sd-kk-tl .sd-kk-tt a { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-body.is-nieuw .sd-kk-tl .sd-kk-tt a:hover { color: var(--primary); text-decoration: none; }
.bh-body.is-nieuw .sd-kk-tt small { font-size: var(--pj-t-meta); color: var(--muted); overflow-wrap: anywhere; }
.bh-body.is-nieuw .sd-kk-tt small.is-warn { color: var(--status-amber); font-weight: 500; }
.bh-body.is-nieuw .sd-kk-tt small.is-bad { color: var(--status-red); font-weight: 500; }
.bh-body.is-nieuw .sd-kk-st { display: inline-flex; align-items: center; gap: var(--pj-s-2); justify-self: end; }
.bh-body.is-nieuw .sd-kk-wie { display: inline-flex; }
.bh-body.is-nieuw .sd-kk-st .bh-tk { min-height: 0; padding: 0; border: 0; background: none; }

/* Dossier: agreements, the latest pieces, the kinds behind one click. */
.bh-body.is-nieuw .sd-kk-soort { position: relative; }
.bh-body.is-nieuw .sd-kk-soort > .bh-menu { left: auto; right: 0; }
.bh-body.is-nieuw .sd-kk-soort .bh-btn-link > .bh-chev { margin-left: var(--pj-s-1); }
.bh-body.is-nieuw .bh-menu.sd-kk-menu { min-width: 200px; max-width: min(320px, calc(100vw - var(--pj-s-6))); }
.bh-body.is-nieuw .sd-kk-menu .bh-r { margin-left: auto; padding-left: var(--pj-s-3); color: var(--muted); font-weight: 400; }
.bh-body.is-nieuw .sd-kk-menu button.is-bad { color: var(--status-red); }
.bh-body.is-nieuw .sd-kk-mini { margin-top: var(--pj-s-2); font-size: var(--pj-t-meta); font-weight: 500; color: var(--muted); }
.bh-body.is-nieuw .sd-kk-afspraken > li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: calc(var(--pj-s-1) / 2) var(--pj-s-3); align-items: baseline; padding: var(--pj-s-1) 0; font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-kk-afspraken small { grid-column: 2; font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-kk-afspraken time, .bh-body.is-nieuw .sd-kk-dl time { font-size: var(--pj-t-meta); color: var(--muted); white-space: nowrap; }
.bh-body.is-nieuw .sd-kk-dl > li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: calc(var(--pj-s-1) / 2) var(--pj-s-3); align-items: baseline; padding: var(--pj-s-2) 0; border-top: 1px solid var(--line-soft); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-kk-dl > li:first-child { border-top-color: transparent; }
.bh-body.is-nieuw .sd-kk-k { font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-kk-intern { display: inline-flex; align-items: center; padding: 0 var(--pj-s-2); border: 1px solid var(--line); border-radius: var(--bh-r-pill); font-size: var(--pj-t-meta); color: var(--muted); font-weight: 500; white-space: nowrap; }
.bh-body.is-nieuw .sd-kk-noot { font-size: var(--pj-t-meta); color: var(--muted); }

/* Diensten en tegoed: a fold per service, Tegoed per maand, the report at the foot. */
.bh-body.is-nieuw .sd-kk-folds { display: grid; }
.bh-body.is-nieuw .sd-kk-fold > summary { font-size: var(--pj-t-ui); padding: var(--pj-s-2) 0; gap: var(--pj-s-3); }
.bh-body.is-nieuw .sd-kk-fold > summary .bh-r { margin-left: auto; font-size: var(--pj-t-meta); color: var(--muted); font-weight: 400; }
.bh-body.is-nieuw .sd-kk-fold .bh-fold-in { display: grid; gap: var(--pj-s-2); font-size: var(--pj-t-ui); padding-bottom: var(--pj-s-3); }
.bh-body.is-nieuw .sd-kk-fold .bh-facts { gap: var(--pj-s-1) var(--pj-s-4); }
.bh-body.is-nieuw .sd-kk-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pj-s-2) var(--pj-s-4); }
.bh-body.is-nieuw .sd-kk-links .bh-btn-link { font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-kk-dn { font-weight: 500; }
.bh-body.is-nieuw .sd-kk-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pj-s-2) var(--pj-s-4); }
.bh-body.is-nieuw .sd-kk-ctl select.bh-input { width: auto; min-height: 32px; padding: 0 var(--pj-s-3); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-kk-ctl .bh-check { font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-kk-seg { justify-self: start; }
.bh-body.is-nieuw .sd-kk-histwrap { padding: var(--pj-s-1); }
.bh-body.is-nieuw .sd-kk-hist { font-size: var(--pj-t-meta); min-width: 420px; }
.bh-body.is-nieuw .sd-kk-hist tbody th { font-weight: 400; text-align: left; padding: var(--pj-s-2) var(--pj-s-4); border-top: 1px solid var(--line-soft); white-space: nowrap; }
.bh-body.is-nieuw .sd-kk-hist tbody tr:first-child > * { border-top-color: transparent; }
.bh-body.is-nieuw .sd-kk-hist th small { display: block; color: var(--muted); }
.bh-body.is-nieuw .sd-kk-rap { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--pj-s-1) var(--pj-s-3); padding-top: var(--pj-s-2); border-top: 1px solid var(--line-soft); font-size: var(--pj-t-ui); color: var(--muted-strong); }
.bh-body.is-nieuw .sd-kk-rap b { color: var(--text); font-weight: 500; }
.bh-body.is-nieuw .sd-kk-rap > a.bh-btn-link { margin-left: auto; }

/* Contactpersonen: their roles, or what the client sees. */
.bh-body.is-nieuw .sd-kk-paneel { display: grid; gap: var(--pj-s-2); }
.bh-body.is-nieuw .sd-kk-paneel[hidden] { display: none; }
.bh-body.is-nieuw .sd-kk-ppl > li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: calc(var(--pj-s-1) / 2) var(--pj-s-3); align-items: start; padding: var(--pj-s-2) 0; border-top: 1px solid var(--line-soft); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-kk-ppl > li:first-child { border-top-color: transparent; }
.bh-body.is-nieuw .sd-kk-ppl .bh-v { margin-top: var(--pj-s-1); }
.bh-body.is-nieuw .sd-kk-ppl b { font-weight: 500; }
.bh-body.is-nieuw .sd-kk-mail { justify-self: start; }
.bh-body.is-nieuw .sd-kk-naam { padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.bh-body.is-nieuw .sd-kk-naam:hover { color: var(--primary); }
.bh-body.is-nieuw .sd-kk-adres { padding: var(--pj-s-2) var(--pj-s-3); font-size: var(--pj-t-ui); color: var(--text); user-select: all; overflow-wrap: anywhere; }
.bh-body.is-nieuw .sd-kk-rol { font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-kk-ctrl { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--pj-s-1) var(--pj-s-3); font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-kk-ctrl .bh-btn-link { font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-kk-seen { font-size: var(--pj-t-meta); color: var(--muted); white-space: nowrap; text-align: right; }
.bh-body.is-nieuw .sd-kk-seen.is-not { color: var(--muted); }
.bh-body.is-nieuw .sd-kk-portaal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pj-s-1) var(--pj-s-3); padding: var(--pj-s-2) var(--pj-s-3); border-radius: var(--bh-r-2); background: var(--surface); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-kk-portaal.is-beheer { display: grid; }
.bh-body.is-nieuw .sd-kk-portaal small { display: block; font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-kk-pacts { display: inline-flex; flex-wrap: wrap; gap: var(--pj-s-3); margin-left: auto; }
.bh-body.is-nieuw .sd-kk-pacts .bh-btn-link { font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-kk-voet { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pj-s-2) var(--pj-s-5); padding-top: var(--pj-s-2); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-kk-voet .bh-btn-link, .bh-body.is-nieuw .sd-kk-voet a { font-size: var(--pj-t-meta); }

/* Salesforce: the environments, a menu each. */
.bh-body.is-nieuw .sd-kk-sflijst > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: calc(var(--pj-s-1) / 2) var(--pj-s-3); align-items: center; padding: var(--pj-s-2) 0; border-top: 1px solid var(--line-soft); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-kk-sflijst > li:first-child { border-top-color: transparent; }
.bh-body.is-nieuw .sd-kk-sflijst b { font-weight: 500; }
.bh-body.is-nieuw .sd-kk-sflijst .sd-kk-tt > a { font-size: var(--pj-t-meta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-body.is-nieuw .sd-kk-sfmenu > .bh-menu { left: auto; right: 0; }

/* Meer over de klant: three folds. */
.bh-body.is-nieuw .sd-kk-meer { padding-block: var(--pj-s-1); }
.bh-body.is-nieuw .sd-kk-meer .bh-list > li { grid-template-columns: 14px minmax(0, 1fr) auto; padding-block: var(--pj-s-2); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-kk-meer .bh-list.sd-kk-merges > li { grid-template-columns: minmax(0, 1fr) auto; }
.bh-body.is-nieuw .sd-kk-meer .bh-list .bh-btn-link { font-size: var(--pj-t-meta); }

/* The states: loading and what did not load. */
.bh-body.is-nieuw .sd-kk-laden { display: grid; gap: var(--pj-s-3); padding: var(--pj-s-5); border: 1px solid var(--line-soft); border-radius: var(--bh-r-3); background: var(--card); }
.bh-body.is-nieuw .kp-state.sd-kk-fout > p { color: var(--text); max-width: 75ch; }

/* Two columns as soon as each has about 420 px: Open tickets beside Contactpersonen, the Dossier beside Diensten en tegoed, Salesforce beside Meer. */
@container sd-kk (min-width: 880px) {
  .bh-body.is-nieuw .sd-kk .sd-kk-raster { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .bh-body.is-nieuw .sd-kk .sd-kk-open { grid-column: 1; grid-row: 1; }
  .bh-body.is-nieuw .sd-kk .sd-kk-contacten { grid-column: 2; grid-row: 1; }
  .bh-body.is-nieuw .sd-kk .sd-kk-dossier { grid-column: 1; grid-row: 2; }
  .bh-body.is-nieuw .sd-kk .sd-kk-diensten { grid-column: 2; grid-row: 2; }
  .bh-body.is-nieuw .sd-kk .sd-kk-sf { grid-column: 1; grid-row: 3; }
  .bh-body.is-nieuw .sd-kk .sd-kk-meer { grid-column: 2; grid-row: 3; }
}
/* A narrow card: the ticket on two lines, Eerst dit with its button under the text. */
@container sd-kk (max-width: 679px) {
  .bh-body.is-nieuw .sd-kk .sd-kk-kop h1 { font-size: var(--pj-t-h2); }
  .bh-body.is-nieuw .sd-kk .sd-kk-wissel { margin-left: 0; }
  .bh-body.is-nieuw .sd-kk .sd-kk-wissel > .bh-switchpanel { left: 0; right: auto; }
  .bh-body.is-nieuw .sd-kk .sd-kk-eerst { grid-template-columns: minmax(0, 1fr); padding: var(--pj-s-4); }
  .bh-body.is-nieuw .sd-kk .sd-kk-eerst > :is(.bh-btn, .bh-btn-link) { grid-column: 1; grid-row: auto; justify-self: start; margin-top: var(--pj-s-2); }
  .bh-body.is-nieuw .sd-kk .sd-kk-tl > li { grid-template-columns: minmax(0, 1fr) auto; }
  .bh-body.is-nieuw .sd-kk .sd-kk-tl .sd-kk-tt { grid-column: 1 / -1; grid-row: 2; }
  .bh-body.is-nieuw .sd-kk .sd-kk-tl .sd-kk-st { grid-column: 2; grid-row: 1; }
  .bh-body.is-nieuw .sd-kk .sd-kk-ppl > li { grid-template-columns: 14px minmax(0, 1fr); }
  .bh-body.is-nieuw .sd-kk .sd-kk-ppl :is(.sd-kk-ctrl, .sd-kk-seen) { grid-column: 2; justify-content: flex-start; text-align: left; }
  .bh-body.is-nieuw .sd-kk .sd-kk-rap > a.bh-btn-link { margin-left: 0; }
}

/* ── OUB-S161 (pair 4): Rapportages in the new look (view-reports-nieuw.ts). Only with the switch of the look on: every rule hangs on .bh-body.is-nieuw and on classes that start with
   sd-rn-, so Rapportages without the switch is exactly what it was. Tokens only. The page has no band and, on a wide screen, no tree: the head, Eerst dit and the table use the whole width.
   The columns of the table follow the width of the list itself (@container sd-rn-l), never the window; a table that does not fit scrolls in its own frame. Eerst dit has its edge all round
   (bh-next of the style), no stripe on the left. One grid: every block is one row of the full width, so nothing is stretched beside something narrow. ── */
.bh-body.is-nieuw .sd-rn { display: grid; gap: var(--pj-s-4); align-content: start; min-width: 0; }
.bh-body.is-nieuw .sd-rn > * { min-width: 0; }
.bh-body.is-nieuw:has([data-main] .sd-rn) .bh-band { display: none; }
@media (min-width: 961px) {
  .bh-body.is-nieuw:has([data-main] .sd-rn) .bh-shell { grid-template-columns: minmax(0, 1fr); }
  .bh-body.is-nieuw:has([data-main] .sd-rn) .bh-side { display: none; }
}

/* The head: title, the month, the count, De proef on the right. */
.bh-body.is-nieuw .sd-rn-kop { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pj-s-2) var(--pj-s-3); }
.bh-body.is-nieuw .sd-rn-kop h1 { font-size: var(--pj-t-h1); line-height: 1.1; }
.bh-body.is-nieuw .sd-rn-kop .bh-chip > .bh-chev { margin-left: var(--pj-s-1); }
.bh-body.is-nieuw .sd-rn-aantal { font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-rn-proef { margin-left: auto; font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .bh-menu.sd-rn-menu { min-width: 240px; max-width: min(340px, calc(100vw - var(--pj-s-6))); max-height: min(60vh, 360px); overflow-y: auto; }
.bh-body.is-nieuw .sd-rn-menu .sd-rn-open { color: var(--accent-text); }
.bh-body.is-nieuw .sd-rn-menu .bh-menu-h, .bh-body.is-nieuw .sd-rn-menu .sd-rn-mh { padding: var(--pj-s-2) var(--pj-s-3) var(--pj-s-1); font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-rn-menu button.is-bad { color: var(--status-red); }
.bh-body.is-nieuw .sd-rn-menu button[disabled] { color: var(--muted); cursor: not-allowed; }
/* The menu Meer floats above the table: rapportages-page.ts places it under its button when it opens. */
.bh-body.is-nieuw .bh-pop > .bh-menu.sd-rn-rijmenu { position: fixed; right: auto; z-index: 30; min-width: 260px; max-width: min(320px, calc(100vw - var(--pj-s-5))); white-space: normal; }
.bh-body.is-nieuw .sd-rn-rijmenu :is(a, button) { padding: var(--pj-s-2) var(--pj-s-3); font-weight: 400; }

/* Eerst dit: low, so the table starts high; a border all around, never a stripe. */
.bh-body.is-nieuw .sd-rn-eerst-kop { grid-column: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--pj-s-1) var(--pj-s-3); min-width: 0; }
.bh-body.is-nieuw .sd-rn-eerst-kop > .bh-wie { flex: none; display: inline-flex; align-items: center; gap: var(--pj-s-2); font-size: var(--pj-t-meta); font-weight: 500; color: var(--muted); }
.bh-body.is-nieuw .sd-rn-eerst h2 { min-width: 0; }
.bh-body.is-nieuw .sd-rn-eerst > p { grid-column: 1; max-width: 75ch; }
.bh-body.is-nieuw .sd-rn-eerst > :is(.bh-btn, .bh-btn-link) { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }

/* Mail off or in test, a part that did not load: one line above the table. */
.bh-body.is-nieuw .sd-rn-melding { padding: var(--pj-s-3) var(--pj-s-4); }

/* The table. */
.bh-body.is-nieuw .sd-rn-lijst { container: sd-rn-l / inline-size; min-width: 0; }
.bh-body.is-nieuw .sd-rn-lijst > .bh-tablewrap { padding: var(--pj-s-2); }
.bh-body.is-nieuw .sd-rn-tabel { table-layout: fixed; min-width: 760px; }
.bh-body.is-nieuw .sd-rn-tabel :is(th, td) { white-space: nowrap; }
.bh-body.is-nieuw .sd-rn-tabel thead th { font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-rn-tabel .c-ck { width: 44px; padding-right: 0; }
.bh-body.is-nieuw .sd-rn-tabel.is-lezen thead .c-ck { width: 8px; }
.bh-body.is-nieuw .sd-rn-tabel thead .c-pe { width: 128px; }
.bh-body.is-nieuw .sd-rn-tabel thead .c-ur { width: 80px; }
.bh-body.is-nieuw .sd-rn-tabel thead .c-be { width: 108px; }
.bh-body.is-nieuw .sd-rn-tabel thead .c-st { width: 232px; }
.bh-body.is-nieuw .sd-rn-tabel thead .c-ac { width: 184px; }
.bh-body.is-nieuw .sd-rn-tabel tbody th { background: none; font-weight: 400; text-align: left; padding: var(--pj-s-2) var(--pj-s-4); border-top: 1px solid var(--line-soft); vertical-align: middle; }
.bh-body.is-nieuw .sd-rn-tabel tbody tr:first-child > *, .bh-body.is-nieuw .sd-rn-tabel .bh-group + tr > * { border-top-color: transparent; }
.bh-body.is-nieuw .sd-rn-tabel .c-kl { overflow: hidden; text-overflow: ellipsis; }
.bh-body.is-nieuw .sd-rn-kl { color: var(--text); font-weight: 500; }
.bh-body.is-nieuw a.sd-rn-kl:hover { color: var(--primary); text-decoration: none; }
.bh-body.is-nieuw .sd-rn-soort { margin-left: var(--pj-s-2); color: var(--muted); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-rn-tabel td.c-pe { color: var(--muted-strong); }
.bh-body.is-nieuw .sd-rn-st { display: grid; gap: calc(var(--pj-s-1) / 2); min-width: 0; }
.bh-body.is-nieuw .sd-rn-tabel .bh-tk { min-height: 0; padding: 0; border: 0; background: none; }
.bh-body.is-nieuw .bh-tk.sd-rn-klaar { color: var(--text); }
.bh-body.is-nieuw .bh-tk.sd-rn-klaar::before { background: var(--accent); }
.bh-body.is-nieuw .sd-rn-why { overflow: hidden; text-overflow: ellipsis; font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-rn-why.is-warn { color: var(--accent-text); }
.bh-body.is-nieuw .sd-rn-why.is-bad { color: var(--status-red); }
.bh-body.is-nieuw .sd-rn-ac { display: flex; align-items: center; justify-content: flex-end; gap: var(--pj-s-2); }
.bh-body.is-nieuw .sd-rn-ac .bh-btn-link { font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-rn-stil { color: var(--muted); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-rn-rij.sel > * { background: var(--accent-soft); border-top-color: transparent; }
.bh-body.is-nieuw .sd-rn-rij.sel > :first-child { border-radius: var(--bh-r-2) 0 0 var(--bh-r-2); }
.bh-body.is-nieuw .sd-rn-rij.sel > :last-child { border-radius: 0 var(--bh-r-2) var(--bh-r-2) 0; }
.bh-body.is-nieuw .sd-rn-rij.sel + tr > * { border-top-color: transparent; }
.bh-body.is-nieuw .sd-rn-tabel .bh-group td { color: var(--text); }
.bh-body.is-nieuw .sd-rn-tabel .bh-group .bh-v { margin-right: var(--pj-s-2); width: 12px; height: 12px; }
.bh-body.is-nieuw .sd-rn-gn { margin-left: var(--pj-s-2); color: var(--muted-strong); font-weight: 500; }
.bh-body.is-nieuw .sd-rn-gh { margin-left: var(--pj-s-3); color: var(--muted-strong); font-weight: 400; }
.bh-body.is-nieuw .sd-rn-toon { margin-left: var(--pj-s-3); font-size: var(--pj-t-meta); }
/* The line under a row: busy, downloaded, what went wrong. */
.bh-body.is-nieuw .sd-rn-tabel .sd-rn-msg td { white-space: normal; padding: 0 var(--pj-s-4) var(--pj-s-2) var(--pj-s-7); border-top-color: transparent; font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-rn-tabel tbody tr.sd-rn-msg:hover > * { background: none; }
.bh-body.is-nieuw .sd-rn-leeg { padding: var(--pj-s-5) var(--pj-s-4); color: var(--muted-strong); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-rn-leeg b { font-weight: 500; }
.bh-body.is-nieuw .sd-rn-voet { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--pj-s-3); padding-left: var(--pj-s-1); font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-rn-voet .bh-btn-link { font-size: var(--pj-t-meta); }
/* A list under about 1100 px: the period goes (the month stands in the head; a column with no width, as a cell with display none would still hold a column in a fixed table), so the client keeps room. */
@container sd-rn-l (max-width: 1099px) {
  .bh-body.is-nieuw .sd-rn-tabel thead .c-pe { width: 0; }
  .bh-body.is-nieuw .bh-table.sd-rn-tabel :is(th, td).c-pe { padding: 0; overflow: hidden; visibility: hidden; }
  .bh-body.is-nieuw .sd-rn-tabel thead .c-st { width: 208px; }
  .bh-body.is-nieuw .sd-rn-tabel thead .c-ac { width: 176px; }
}
/* A wide list: more room for the client, the period and the reason. */
@container sd-rn-l (min-width: 1400px) {
  .bh-body.is-nieuw .sd-rn-tabel thead .c-pe { width: 180px; }
  .bh-body.is-nieuw .sd-rn-tabel thead .c-st { width: 280px; }
  .bh-body.is-nieuw .sd-rn-tabel thead .c-ac { width: 220px; }
}
@container sd-rn-l (min-width: 2000px) {
  .bh-body.is-nieuw .sd-rn-tabel thead .c-pe { width: 240px; }
  .bh-body.is-nieuw .sd-rn-tabel thead .c-ur { width: 120px; }
  .bh-body.is-nieuw .sd-rn-tabel thead .c-be { width: 160px; }
  .bh-body.is-nieuw .sd-rn-tabel thead .c-st { width: 360px; }
}
/* A narrow list: every report a card of three lines (the client, the Stand and the amount, the action and the hours). */
@container sd-rn-l (max-width: 759px) {
  .bh-body.is-nieuw .sd-rn-lijst > .bh-tablewrap { padding: var(--pj-s-1); }
  .bh-body.is-nieuw .sd-rn-tabel, .bh-body.is-nieuw .sd-rn-tabel tbody { display: block; min-width: 0; }
  .bh-body.is-nieuw .sd-rn-tabel thead { display: none; }
  .bh-body.is-nieuw .sd-rn-rij { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: var(--pj-s-1) var(--pj-s-3); align-items: center; padding: var(--pj-s-3); border-top: 1px solid var(--line-soft); border-radius: var(--bh-r-2); }
  .bh-body.is-nieuw .sd-rn-tabel.is-lezen .sd-rn-rij { grid-template-columns: 0 minmax(0, 1fr) auto; column-gap: 0; }
  .bh-body.is-nieuw .sd-rn-tabel tbody tr:first-child.sd-rn-rij, .bh-body.is-nieuw .sd-rn-tabel .bh-group + .sd-rn-rij { border-top-color: transparent; }
  .bh-body.is-nieuw .sd-rn-tabel .bh-group { display: block; }
  .bh-body.is-nieuw .sd-rn-tabel .bh-group td { display: block; padding: var(--pj-s-2) var(--pj-s-3); white-space: normal; }
  .bh-body.is-nieuw .bh-table.sd-rn-tabel .sd-rn-rij > :is(th, td) { display: block; padding: 0; border: 0; min-width: 0; background: none; }
  .bh-body.is-nieuw .bh-table.sd-rn-tabel .sd-rn-rij > .c-ck { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
  .bh-body.is-nieuw .bh-table.sd-rn-tabel .sd-rn-rij > .c-kl { grid-column: 2 / span 2; grid-row: 1; white-space: normal; }
  .bh-body.is-nieuw .bh-table.sd-rn-tabel .sd-rn-rij > .c-pe { display: none; }
  .bh-body.is-nieuw .bh-table.sd-rn-tabel .sd-rn-rij > .c-st { grid-column: 2; grid-row: 2; white-space: normal; }
  .bh-body.is-nieuw .bh-table.sd-rn-tabel .sd-rn-rij > .c-be { grid-column: 3; grid-row: 2; text-align: right; }
  .bh-body.is-nieuw .bh-table.sd-rn-tabel .sd-rn-rij > .c-ur { grid-column: 3; grid-row: 3; text-align: right; font-size: var(--pj-t-meta); color: var(--muted); }
  .bh-body.is-nieuw .bh-table.sd-rn-tabel .sd-rn-rij > .c-ac { grid-column: 2; grid-row: 3; }
  .bh-body.is-nieuw .sd-rn-ac { justify-content: flex-start; }
  .bh-body.is-nieuw .sd-rn-why { white-space: normal; }
  .bh-body.is-nieuw .sd-rn-rij.sel { background: var(--accent-soft); }
  .bh-body.is-nieuw .sd-rn-tabel .sd-rn-msg { display: block; }
  .bh-body.is-nieuw .sd-rn-tabel .sd-rn-msg td { display: block; padding: 0 var(--pj-s-3) var(--pj-s-2); }
}

/* The bar for what you ticked (bh-selbar of the style). */
.bh-body.is-nieuw .sd-rn-kies b { font-weight: 700; }

/* The states: loading and a read that failed. */
.bh-body.is-nieuw .sd-rn-laden { display: grid; gap: var(--pj-s-3); padding: var(--pj-s-5); border: 1px solid var(--line-soft); border-radius: var(--bh-r-3); background: var(--card); }
.bh-body.is-nieuw .kp-state.sd-rn-fout > p { color: var(--text); max-width: 75ch; }
.bh-body.is-nieuw .sd-rn-fout > .bh-btn { margin-top: var(--pj-s-2); }

/* The window for one report: who gets it, the file, the hours and the amount on top; choosing the recipients, the subject and the text behind a click. */
.bh-body.is-nieuw dialog.bh-dialog.sd-rapport-dlg { width: min(720px, calc(100% - 32px)); }
.bh-body.is-nieuw .sd-rn-zend { gap: var(--pj-s-3); }
.bh-body.is-nieuw .sd-rn-pv { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) auto auto; gap: var(--pj-s-2) var(--pj-s-5); margin: 0; padding: var(--pj-s-3) var(--pj-s-4); border: 1px solid var(--line-soft); border-radius: var(--bh-r-2); background: var(--surface-child); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-rn-pv > div { display: grid; gap: calc(var(--pj-s-1) / 2); align-content: start; min-width: 0; }
.bh-body.is-nieuw .sd-rn-pv dt { font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-rn-pv dd { display: grid; gap: calc(var(--pj-s-1) / 2); min-width: 0; margin: 0; overflow-wrap: anywhere; }
.bh-body.is-nieuw .sd-rn-pv dd i { font-style: normal; font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-rn-pv .sd-rn-geen { color: var(--muted-strong); }
.bh-body.is-nieuw .sd-rn-pv .bh-num { text-align: right; }
.bh-body.is-nieuw .sd-rn-fold > summary { font-size: var(--pj-t-ui); color: var(--primary); padding-block: var(--pj-s-2); }
.bh-body.is-nieuw .sd-rn-fold > .bh-fold-in { padding-bottom: var(--pj-s-2); }
.bh-body.is-nieuw .sd-rn-zend .bh-facts { font-size: var(--pj-t-meta); }
@media (max-width: 960px) {
  .bh-body.is-nieuw .sd-rn-kop h1 { font-size: var(--pj-t-h2); flex-basis: 100%; }
  .bh-body.is-nieuw .sd-rn-proef { margin-left: 0; }
  .bh-body.is-nieuw .bh-next.is-low.sd-rn-eerst { grid-template-columns: minmax(0, 1fr); padding: var(--pj-s-4); }
  .bh-body.is-nieuw .sd-rn-eerst > :is(.bh-btn, .bh-btn-link) { grid-column: 1; grid-row: auto; justify-self: start; margin-top: var(--pj-s-2); }
  .bh-body.is-nieuw .sd-rn-kies { left: var(--pj-s-4); right: var(--pj-s-4); transform: none; flex-wrap: wrap; border-radius: var(--bh-r-3); white-space: normal; }
  .bh-body.is-nieuw .sd-rn-kies b { flex-basis: 100%; }
  .bh-body.is-nieuw .sd-rn-pv { grid-template-columns: minmax(0, 1fr) auto; }
  .bh-body.is-nieuw .sd-rn-pv > :nth-child(-n + 2) { grid-column: 1 / -1; }
}

/* ── OUB-S161: the ticket in the new look (view-ticket-nieuw.ts), version 2 of 19 November 2026 (rules 6, 16 and 17, mockup sd-ticket-v2.html). Only with the switch of the look on:
   every rule hangs on .bh-body.is-nieuw and on classes that start with sd-tk2- (the layout of version 2) or sd-tn- (the parts kept from version 1), so the screen without the switch is
   exactly what it was. Tokens only. The parts of the style (bh-msg, bh-shot, bh-fold, bh-menu, bh-dialog) keep their own rules; the rules here place them on this screen. */
.bh-body.is-nieuw .sd-tn { display: grid; gap: var(--pj-s-4); container: sd-ticket / inline-size; }
/* At most two columns next to the queues (rule 16): one column on a phone and in a narrow window; from 760 px of room the reading column at the left (never under 420 px) and the plane at
   the right. The columns follow the room the page itself has (@container), never the window. The plane scrolls with the page: in a plane that stays in view with a scroll of its own, a
   menu (Wijzigen, Meer) would be cut off or fall outside the screen. */
.bh-body.is-nieuw .sd-tk2-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pj-s-5); align-items: start; }
.bh-body.is-nieuw .sd-tk2-lees { display: grid; gap: var(--pj-s-4); min-width: 0; align-content: start; }
.bh-body.is-nieuw .sd-tk2-lees > * { min-width: 0; }
/* The stand on a phone: one line on top, the steps themselves stand in the plane under the report. */
.bh-body.is-nieuw .sd-tk2-standregel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pj-s-1) var(--pj-s-3); font-size: var(--pj-t-ui); color: var(--muted-strong); }
.bh-body.is-nieuw .sd-tk2-standregel > a { margin-left: auto; font-weight: 500; }
@container sd-ticket (min-width: 760px) {
  .bh-body.is-nieuw .sd-tk2-grid { grid-template-columns: minmax(420px, 1fr) clamp(300px, 30cqi, 440px); }
  .bh-body.is-nieuw .sd-tk2-standregel { display: none; }
}
@container sd-ticket (min-width: 1600px) {
  .bh-body.is-nieuw .sd-tk2-grid { grid-template-columns: minmax(420px, 1fr) clamp(380px, 26cqi, 520px); }
}
/* SD-6 (Jasper, 18 Nov 2026): the tree of the queues stays next to an open ticket, to go back to the board or another queue at once; it folds away with the button at its top (the choice
   is kept per colleague, schil-gedrag.ts). On a phone it stays the drawer of the menu. The counters are those the ticket page has today: none (it reads no list). */


/* The box to write in: on top of the reading column (rule 6), the one object that carries the main action. */
.bh-body.is-nieuw .sd-tn-schrijf { display: grid; gap: var(--pj-s-3); scroll-margin-top: var(--pj-s-5); }
.bh-body.is-nieuw .sd-tn-schrijf > .bh-seg { justify-self: start; }
.bh-body.is-nieuw .sd-tn-paneel { display: grid; gap: var(--pj-s-3); scroll-margin-top: var(--pj-s-5); }
.bh-body.is-nieuw .sd-tn-aan { display: flex; flex-wrap: wrap; gap: var(--pj-s-1) var(--pj-s-3); align-items: center; font-size: var(--pj-t-ui); color: var(--muted-strong); }
.bh-body.is-nieuw .sd-tn-aan b { color: var(--text); font-weight: 500; }
.bh-body.is-nieuw .sd-tn-aan > .bh-zicht { margin-left: auto; }
.bh-body.is-nieuw .sd-tn-tekstvak { position: relative; }
.bh-body.is-nieuw .sd-tn-tekstvak > textarea.bh-input, .bh-body.is-nieuw .sd-tn-bewerk > textarea.bh-input { width: 100%; min-height: 104px; resize: vertical; }
.bh-body.is-nieuw .sd-tn-let { padding: var(--pj-s-2) var(--pj-s-3); border-radius: var(--bh-r-2); background: var(--status-amber-fill); color: var(--text); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-tn-voet { display: flex; flex-wrap: wrap; gap: var(--pj-s-2) var(--pj-s-4); align-items: center; }
.bh-body.is-nieuw .sd-tn-voet > .bh-btn { margin-left: auto; }
.bh-body.is-nieuw .sd-tn-alleen-lezen { padding: var(--pj-s-2) 0; }

/* The conversation, newest first, and the report at the bottom. Running text stays at most about 75 characters. */
.bh-body.is-nieuw .sd-tn [data-body] { display: grid; gap: var(--pj-s-2); }
.bh-body.is-nieuw .sd-tn .bh-melding { scroll-margin-top: var(--pj-s-5); }
.bh-body.is-nieuw .sd-tn .bh-msg-voet > .bh-note { flex: 1 1 240px; }
/* On the plane of our own side the grey of the head reached 4,47 to 1 (light) and 4,01 to 1 (dark, where the app's own --muted wins): the stronger grey reads at 4,5 at least. */
.bh-body.is-nieuw .sd-tn .bh-msg.is-eigen .bh-msg-h > :is(.bh-meta, .bh-msg-r, .bh-v) { color: var(--muted-strong); }
.bh-body.is-nieuw .sd-tn-gesprek { display: grid; gap: var(--pj-s-3); min-width: 0; align-content: start; }
.bh-body.is-nieuw .sd-tn-gesprek > .bh-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--pj-s-1) var(--pj-s-3); }
.bh-body.is-nieuw .sd-tn-gesprek > .bh-head h2 { font-size: var(--pj-t-h2); }
.bh-body.is-nieuw .sd-tk2-lees :is(.bh-msg, .bh-melding, .sd-tn-schrijf, .sd-tn-advies, .sd-tn-blok) { max-width: 96ch; }
.bh-body.is-nieuw .sd-tk2-lees .bh-msg-tekst { max-width: 75ch; }
.bh-body.is-nieuw .sd-tn-ouder { display: flex; justify-content: center; }
.bh-body.is-nieuw .sd-tn-bewerk { display: grid; gap: var(--pj-s-2); }
.bh-body.is-nieuw .sd-tk2-begin { display: grid; gap: var(--pj-s-2); padding-top: var(--pj-s-2); border-top: 1px solid var(--line-soft); }

/* Attachments as tiles (rule 17): an image as a thumbnail cropped from the top left, a pdf as a small page, the rest as the tile of its type. A click opens the window. */
.bh-body.is-nieuw .sd-tk2-tegels { display: flex; flex-wrap: wrap; gap: var(--pj-s-3); }
.bh-body.is-nieuw .sd-tk2-tegels > .bh-shot.sm { width: 200px; max-width: 100%; }
.bh-body.is-nieuw .sd-tk2-tegels > .bh-shot:not(.sm) { flex: 0 1 256px; max-width: 100%; }
.bh-body.is-nieuw .sd-tk2-tegels .bh-shot-img { position: relative; height: 112px; min-height: 0; padding: 0; cursor: zoom-in; transition: border-color var(--bh-dur-1) var(--bh-ease-out), transform var(--bh-dur-1) var(--bh-ease-out); }
.bh-body.is-nieuw .sd-tk2-tegels span.bh-shot-img { cursor: default; }
.bh-body.is-nieuw .sd-tk2-tegels .bh-shot:not(.sm) .bh-shot-img { height: 144px; }
.bh-body.is-nieuw .sd-tk2-tegels button.bh-shot-img:active { transform: scale(0.98); }
.bh-body.is-nieuw .sd-tk2-tegels .bh-shot-img > .bh-ext { position: absolute; left: var(--pj-s-2); bottom: var(--pj-s-2); z-index: 1; }
.bh-body.is-nieuw .sd-tk2-duim { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; animation: bh-fade var(--bh-dur-2) var(--bh-ease-out); }
.bh-body.is-nieuw .sd-tk2-tegels .bh-shot.is-beeld .bh-shot-img > .bh-ext { display: none; }
.bh-body.is-nieuw .sd-tk2-blad { position: absolute; top: var(--pj-s-3); left: 50%; width: 64px; height: 84px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: var(--bh-r-1); background: var(--card); background-image: repeating-linear-gradient(to bottom, transparent 0 12px, var(--line-soft) 12px 14px); background-clip: content-box; padding: var(--pj-s-3) var(--pj-s-2); box-shadow: var(--bh-shadow-1); }
.bh-body.is-nieuw .sd-tk2-zij .sd-tk2-tegels > .bh-shot.sm { width: calc(50% - var(--pj-s-3) / 2); }
.bh-body.is-nieuw .sd-tk2-zij .sd-tk2-tegels .bh-shot-img { height: 80px; }
.bh-body.is-nieuw .sd-tk2-zij .sd-tk2-blad { width: 44px; height: 56px; top: var(--pj-s-2); padding: var(--pj-s-2) var(--pj-s-1); }

/* Blocks that only stand on top when they apply: support or project work, and the analysis. */
.bh-body.is-nieuw .sd-tn-blok { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pj-s-2) var(--pj-s-4); padding: var(--pj-s-3) var(--pj-s-4); border: 1px solid var(--line); border-radius: var(--bh-r-3); background: var(--card); }
.bh-body.is-nieuw .sd-tn-blok > div:first-child { display: grid; gap: var(--pj-s-1); flex: 1 1 320px; min-width: 0; max-width: 75ch; }
.bh-body.is-nieuw .sd-tn-blok-acts { display: flex; flex-wrap: wrap; gap: var(--pj-s-2); }
.bh-body.is-nieuw .sd-tn-sub { font-size: var(--pj-t-ui); color: var(--muted-strong); }
.bh-body.is-nieuw .sd-tn-advies { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: var(--pj-s-2) var(--pj-s-3); align-items: center; padding: var(--pj-s-2) var(--pj-s-3); border: 1px solid var(--line-soft); border-radius: var(--bh-r-2); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-tn-advies > .bh-v { justify-self: center; }
.bh-body.is-nieuw .sd-tn-advies-acts { display: flex; flex-wrap: wrap; gap: var(--pj-s-2) var(--pj-s-3); align-items: center; }
.bh-body.is-nieuw .sd-tn-advies > [data-why-panel] { grid-column: 2 / -1; }

/* The plane at the right: one quiet surface. Three groups (stand, who, the rest); one hairline between groups, none inside. */
.bh-body.is-nieuw .sd-tk2-zij { display: grid; align-content: start; min-width: 0; padding: var(--pj-s-1) var(--pj-s-5); border: 1px solid var(--line-soft); border-radius: var(--bh-r-3); background: var(--card); }
.bh-body.is-nieuw .sd-tk2-deel { display: grid; gap: var(--pj-s-3); min-width: 0; padding-block: var(--pj-s-4); scroll-margin-top: var(--pj-s-5); }
.bh-body.is-nieuw .sd-tk2-deel + .sd-tk2-deel { border-top: 1px solid var(--line-soft); }
.bh-body.is-nieuw .sd-tk2-deel.is-plooien { gap: 0; padding-block: var(--pj-s-2); }

/* The clock: the time left in large, what it is for under it; the one place where urgency colours. */
.bh-body.is-nieuw .sd-tk2-klok { display: grid; gap: var(--pj-s-2); }
.bh-body.is-nieuw .sd-tk2-klok-n { display: grid; gap: var(--pj-s-1); font-size: var(--pj-t-ui); color: var(--muted-strong); }
.bh-body.is-nieuw .sd-tk2-klok-n b { font-size: var(--pj-t-h2); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); transition: color var(--bh-dur-2) var(--bh-ease-out); }
.bh-body.is-nieuw .sd-tk2-klok[data-tijd="bijna"] .sd-tk2-klok-n b { color: var(--accent-text); }
.bh-body.is-nieuw .sd-tk2-klok[data-tijd="bijna"] .bh-track > i { background: var(--accent); }
.bh-body.is-nieuw .sd-tk2-klok[data-tijd="over"] .sd-tk2-klok-n b { color: var(--status-red); }
.bh-body.is-nieuw .sd-tk2-klok[data-tijd="over"] .bh-track > i { background: var(--status-red); }
/* The mark of the stand is said by the steps on a wide screen; it stays for a screen reader. */
.bh-body.is-nieuw .sd-tk2-stand-nu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The way of four steps, standing: the step you are at with since when and whose turn it is; a step that can be set is itself the button, with "Zetten". */
.bh-body.is-nieuw .sd-tk2-weg { display: grid; margin: 0; padding: 0; list-style: none; }
.bh-body.is-nieuw .sd-tk2-weg > li { position: relative; }
.bh-body.is-nieuw .sd-tk2-stap { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 0 var(--pj-s-2); align-items: start; width: calc(100% + 2 * var(--pj-s-2)); margin-inline: calc(var(--pj-s-2) * -1); padding: var(--pj-s-1) var(--pj-s-2); border: 0; border-radius: var(--bh-r-2); background: none; color: inherit; font: inherit; text-align: left; }
.bh-body.is-nieuw button.sd-tk2-stap { min-height: 36px; cursor: pointer; transition: background-color var(--bh-dur-1) var(--bh-ease-out); }
.bh-body.is-nieuw button.sd-tk2-stap:hover:not(:disabled) { background: var(--row-tint); }
.bh-body.is-nieuw button.sd-tk2-stap:disabled { cursor: not-allowed; opacity: 0.6; }
.bh-body.is-nieuw .sd-tk2-stip { position: relative; z-index: 1; justify-self: center; width: 12px; height: 12px; margin-top: var(--pj-s-1); border: 2px solid var(--line-strong); border-radius: var(--bh-r-1); background: var(--card); }
.bh-body.is-nieuw .is-klaar .sd-tk2-stip { background: var(--primary); border-color: var(--primary); }
.bh-body.is-nieuw .is-nu .sd-tk2-stip { background: var(--accent); border-color: var(--accent); outline: 4px solid color-mix(in srgb, var(--accent) 24%, transparent); }
.bh-body.is-nieuw .sd-tk2-stap-t { display: grid; min-width: 0; font-size: var(--pj-t-ui); line-height: 22px; color: var(--muted-strong); }
.bh-body.is-nieuw .sd-tk2-stap-t b { font-weight: 500; }
.bh-body.is-nieuw .is-nu .sd-tk2-stap-t { color: var(--text); }
.bh-body.is-nieuw .is-nu .sd-tk2-stap-t b { font-weight: 700; }
.bh-body.is-nieuw .sd-tk2-stap-t small { font-size: var(--pj-t-meta); line-height: 1.35; color: var(--muted); }
.bh-body.is-nieuw .sd-tk2-stap-t small a { font-weight: 700; }
.bh-body.is-nieuw .sd-tk2-zet { align-self: center; font-size: var(--pj-t-meta); font-weight: 500; color: var(--primary); }
.bh-body.is-nieuw button.sd-tk2-stap:hover:not(:disabled) .sd-tk2-zet { text-decoration: underline; text-underline-offset: 3px; }
.bh-body.is-nieuw .sd-tk2-stand-voet { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pj-s-2) var(--pj-s-4); }
.bh-body.is-nieuw .sd-tk2-stand-voet > .bh-zicht { flex: 1 1 200px; margin-left: 0; font-size: var(--pj-t-meta); }

/* Behandelaar and Klant: the label small above, the value and its action on one line. */
.bh-body.is-nieuw .sd-tk2-rijen { display: grid; gap: var(--pj-s-3); margin: 0; }
.bh-body.is-nieuw .sd-tk2-rijen > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--pj-s-1) var(--pj-s-3); align-items: center; }
.bh-body.is-nieuw .sd-tk2-rijen dt { grid-column: 1 / -1; font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-tk2-rijen dd { display: flex; align-items: center; gap: var(--pj-s-2); min-width: 0; margin: 0; font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-tk2-rijen dd.sd-tk2-act { justify-self: end; gap: var(--pj-s-3); }
.bh-body.is-nieuw .sd-tk2-rijen dd.sd-tk2-act:empty { display: none; }
.bh-body.is-nieuw .sd-tk2-rijen dd.sd-tk2-sub { grid-column: 1 / -1; font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-tk2-rijen .is-leeg { color: var(--muted-strong); }

/* The rest: plain rows with a value and a disclosure, no line between them. */
.bh-body.is-nieuw .sd-tk2-plooien { display: grid; }
.bh-body.is-nieuw .sd-tk2-plooien > .bh-fold { border-top: 0; }
.bh-body.is-nieuw .sd-tn-fold > summary { margin-inline: calc(var(--pj-s-2) * -1); padding: var(--pj-s-2); border-radius: var(--bh-r-2); font-size: var(--pj-t-ui); transition: background-color var(--bh-dur-1) var(--bh-ease-out); }
.bh-body.is-nieuw .sd-tn-fold > summary:hover { background: var(--row-tint); }
.bh-body.is-nieuw .sd-tn-fold > .bh-fold-in { display: grid; gap: var(--pj-s-3); padding: var(--pj-s-1) 0 var(--pj-s-3) var(--pj-s-5); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-tn-links { display: flex; flex-wrap: wrap; gap: var(--pj-s-2) var(--pj-s-4); align-items: center; }
.bh-body.is-nieuw .sd-tn-mensen { display: grid; gap: var(--pj-s-2); margin: 0; padding: 0; list-style: none; }
.bh-body.is-nieuw .sd-tn-mensen > li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: var(--pj-s-2); align-items: center; }
.bh-body.is-nieuw .sd-tn-mensen > li > .bh-v { justify-self: center; }
.bh-body.is-nieuw .sd-tn-mensen > li > span:only-child, .bh-body.is-nieuw .sd-tn-mensen > li > span:first-child:nth-last-child(2) { grid-column: 1 / 3; }
.bh-body.is-nieuw .sd-tn-intern-upload { display: grid; gap: var(--pj-s-2); }
/* The panel of the analysis in Kenmerken still draws the buttons of the old screen (btn ghost); the class ghost is also the pulsing skeleton of the old sheet, so a button there pulsed. */
.bh-body.is-nieuw .sd-tn-fold :is(button, a) { animation: none; }
.bh-body.is-nieuw .sd-tk2-uren { display: flex; flex-wrap: wrap; gap: var(--pj-s-1) var(--pj-s-3); align-items: baseline; }

/* Menus and forms behind a click. A menu stands right under its button (the button and the menu share one bh-pop, never a <p>). */
.bh-body.is-nieuw .sd-tn .bh-menu { min-width: 240px; max-width: min(360px, calc(100vw - 32px)); }
.bh-body.is-nieuw .sd-tn .bh-menu p { padding: var(--pj-s-2) var(--pj-s-3); font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-tn .bh-menu .bh-r { font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-tn .bh-menu .bh-r > .bh-v { margin-right: var(--pj-s-1); }
.bh-body.is-nieuw .sd-tk2-zij .bh-menu { max-height: min(420px, 70dvh); overflow: auto; overscroll-behavior: contain; }
.bh-body.is-nieuw .sd-tn-form { display: grid; gap: var(--pj-s-2); padding: var(--pj-s-2); }
.bh-body.is-nieuw .sd-tn-form .bh-field { display: grid; gap: var(--pj-s-1); font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-tn-pick { display: grid; gap: var(--pj-s-2); }
.bh-body.is-nieuw .sd-tn-picklist { display: grid; gap: var(--pj-s-1); }
.bh-body.is-nieuw .sd-tn-picklist > :is(a, button) { display: grid; gap: 0; padding: var(--pj-s-2) var(--pj-s-3); border: 0; border-radius: var(--bh-r-2); background: none; color: var(--text); text-align: left; cursor: pointer; font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-tn-picklist > :is(a, button):hover, .bh-body.is-nieuw .sd-tn-picklist > [aria-checked="true"] { background: var(--row-tint); }

/* The window of an attachment (rule 17): large, the name and size, the warning, Downloaden as a quiet choice, Vorige and Volgende. */
.bh-body.is-nieuw dialog.bh-dialog.sd-tk2-venster { width: min(1040px, calc(100% - 32px)); max-width: none; gap: var(--pj-s-3); }
.bh-body.is-nieuw dialog.sd-tk2-venster > h2 { padding-right: var(--pj-s-6); font-size: var(--pj-t-lead); overflow-wrap: anywhere; }
.bh-body.is-nieuw dialog.sd-tk2-venster > [data-dialog-body] { display: grid; gap: var(--pj-s-3); margin-top: calc(var(--pj-s-3) * -1); }
.bh-body.is-nieuw .sd-tk2-sluit { position: absolute; top: var(--pj-s-4); right: var(--pj-s-4); display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--bh-r-1); background: none; color: var(--muted-strong); cursor: pointer; transition: background-color var(--bh-dur-1) var(--bh-ease-out), color var(--bh-dur-1) var(--bh-ease-out); }
.bh-body.is-nieuw .sd-tk2-sluit:hover { background: var(--row-tint); color: var(--text); }
.bh-body.is-nieuw .sd-tk2-sluit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bh-body.is-nieuw .sd-tk2-beeld { display: flex; align-items: center; justify-content: center; height: min(62dvh, 600px); padding: var(--pj-s-3); border-radius: var(--bh-r-2); background: var(--surface); overflow: hidden; }
.bh-body.is-nieuw .sd-tk2-beeld:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.bh-body.is-nieuw .sd-tk2-beeld img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--bh-r-1); box-shadow: var(--bh-shadow-1); animation: bh-fade var(--bh-dur-2) var(--bh-ease-out); }
.bh-body.is-nieuw .sd-tk2-groot { position: relative; display: grid; justify-items: center; gap: var(--pj-s-3); max-width: 44ch; padding-top: calc(var(--pj-s-7) + var(--pj-s-6)); text-align: center; }
.bh-body.is-nieuw .sd-tk2-groot > .bh-ext { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 1; }
.bh-body.is-nieuw .sd-tk2-groot > .sd-tk2-blad { top: 0; }
.bh-body.is-nieuw .sd-tk2-groot > b { font-weight: 500; overflow-wrap: anywhere; }
.bh-body.is-nieuw .sd-tk2-venster-voet { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pj-s-2) var(--pj-s-3); }
.bh-body.is-nieuw .sd-tk2-venster-voet > .bh-note { flex: 1 1 220px; }
.bh-body.is-nieuw .sd-tk2-venster-voet > .bh-btn:last-child { margin-left: auto; }
.bh-body.is-nieuw .sd-tk2-bladeren { display: inline-flex; align-items: center; gap: var(--pj-s-2); }
.bh-body.is-nieuw .sd-tk2-teller { min-width: 7ch; font-size: var(--pj-t-meta); color: var(--muted); text-align: center; }

@container sd-ticket (max-width: 640px) {
  .bh-body.is-nieuw .sd-tn-advies { grid-template-columns: 24px minmax(0, 1fr); }
  .bh-body.is-nieuw .sd-tn-advies-acts { grid-column: 2; }
  .bh-body.is-nieuw .sd-tn-voet > .bh-btn { margin-left: 0; width: 100%; }
  .bh-body.is-nieuw .sd-tn-aan > .bh-zicht { margin-left: 0; }
  .bh-body.is-nieuw .sd-tk2-zij { padding-inline: var(--pj-s-4); }
  .bh-body.is-nieuw .sd-tk2-tegels > .bh-shot.sm, .bh-body.is-nieuw .sd-tk2-tegels > .bh-shot:not(.sm) { flex: 0 0 auto; width: calc(50% - var(--pj-s-3) / 2); }
}
@media (max-width: 640px) {
  .bh-body.is-nieuw .sd-tk2-beeld { height: auto; min-height: 200px; padding: var(--pj-s-2); }
  .bh-body.is-nieuw .sd-tk2-beeld img { max-height: 56dvh; }
  .bh-body.is-nieuw dialog.bh-dialog.sd-tk2-venster { padding: var(--pj-s-4); }
  .bh-body.is-nieuw .sd-tk2-venster-voet > .bh-note { flex-basis: 100%; order: -1; }
}

/* ── OUB-S161 (pair 2): Tickets, the list in the new look (view-tickets-nieuw.ts). Only with the switch of the look on: every rule hangs on .bh-body.is-nieuw and on classes that start with
   sd-ln-, so the list without the switch, and the board, are exactly what they were. Tokens only. The parts of the style (bh-table, bh-chip, bh-menu, bh-next, bh-selbar, bh-tk) keep their own
   rules; the rules here place them on this screen. The columns follow the width of the list itself (@container), never the window; a table that does not fit scrolls in its own frame. ── */
.bh-body.is-nieuw .sd-ln { display: grid; gap: var(--pj-s-3); align-content: start; min-width: 0; }
.bh-body.is-nieuw .sd-ln > * { min-width: 0; }
/* No band on this page: the title stands on top of the page itself. */
.bh-body.is-nieuw:has([data-main] .sd-ln) .bh-band { display: none; }
/* Opvolgen nodig asks nothing of a person yet: its count is grey here (Niet toegewezen keeps the accent, Over tijd the red). */
.bh-body.is-nieuw:has([data-main] .sd-ln) [data-side] .bh-row:has(> a[href*="queue=rappel"]) > .bh-n { color: var(--muted); }
/* Zijbalk inklappen goes on this screen (the owner's list): the table fits next to the tree from 1280. A bar that was folded away keeps its button, so it can be opened again. */
.bh-body.is-nieuw:not([data-sidebar="collapsed"]):has([data-main] .sd-ln) .bh-side-toggle { display: none; }

/* The head: title, the client, list or board. */
.bh-body.is-nieuw .sd-ln-kop { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pj-s-2) var(--pj-s-3); }
.bh-body.is-nieuw .sd-ln-kop h1 { font-size: var(--pj-t-h1); line-height: 1.1; }
.bh-body.is-nieuw .sd-ln-weergave { margin-left: auto; }
.bh-body.is-nieuw .sd-ln-klant { position: relative; display: inline-flex; }
.bh-body.is-nieuw .sd-ln-klant > .bh-chip.bh-switch { min-height: 32px; padding: var(--pj-s-1) var(--pj-s-3); border: 1px solid var(--line); border-radius: var(--bh-r-pill); background: none; color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; }
.bh-body.is-nieuw .sd-ln-klant > .bh-chip.bh-switch:hover { border-color: var(--muted); color: var(--text); }
.bh-body.is-nieuw .sd-ln-klant > .bh-chip.bh-switch[aria-pressed="true"] { background: var(--primary-soft); border-color: transparent; color: var(--text); }
.bh-body.is-nieuw .sd-ln-klant > .bh-switchpanel { top: calc(100% + var(--pj-s-1)); left: 0; width: min(440px, calc(100vw - var(--pj-s-6))); padding: var(--pj-s-3); border-radius: var(--bh-r-3); border-color: var(--line-soft); background: var(--raised); box-shadow: var(--bh-shadow-2); }
.bh-body.is-nieuw .sd-ln-klant > .bh-switchpanel :is(h3, small, .bh-swnote, .bh-sig) { font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-ln-klant > .bh-switchpanel [role="option"] { border-radius: var(--bh-r-2); padding: var(--pj-s-2) var(--pj-s-3); }
.bh-body.is-nieuw .sd-ln-klant > .bh-switchpanel [role="option"] b { font-size: var(--pj-t-ui); }
/* The queues behind one button only where the tree is the drawer of the menu (the same width as the shell). */
.bh-body.is-nieuw .bh-chip.sd-ln-rijen { display: none; }
@media (max-width: 960px) {
  .bh-body.is-nieuw .bh-chip.sd-ln-rijen { display: inline-flex; }
  .bh-body.is-nieuw .sd-ln-kop h1 { font-size: var(--pj-t-h2); flex-basis: 100%; order: -1; }
}

/* The row of filters. */
.bh-body.is-nieuw .sd-ln-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pj-s-2); }
.bh-body.is-nieuw .sd-ln-zoek { display: inline-flex; align-items: center; gap: var(--pj-s-2); min-height: 32px; width: 240px; max-width: 100%; padding: 0 var(--pj-s-3); border: 1px solid var(--line); border-radius: var(--bh-r-pill); background: var(--surface-child); color: var(--muted); transition: border-color var(--bh-dur-1) var(--bh-ease-out); }
.bh-body.is-nieuw .sd-ln-zoek:hover { border-color: var(--muted); }
.bh-body.is-nieuw .sd-ln-zoek:focus-within { border-color: var(--focus); }
.bh-body.is-nieuw .sd-ln-zoek svg { width: 14px; height: 14px; flex: none; }
.bh-body.is-nieuw .sd-ln-zoek input { flex: 1; min-width: 0; border: 0; padding: 0; background: none; outline: 0; color: var(--text); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-ln-zoek input::placeholder { color: var(--muted); }
.bh-body.is-nieuw .sd-ln-filters .bh-chip { font-size: var(--pj-t-meta); }
/* The chevron of the shell, with the room of the mockup between the word and the arrow. */
.bh-body.is-nieuw .sd-ln .bh-chip > .bh-chev { margin-left: var(--pj-s-1); }
.bh-body.is-nieuw .sd-ln-rest { display: inline-flex; flex-wrap: wrap; gap: var(--pj-s-1) var(--pj-s-3); margin-left: var(--pj-s-2); }
.bh-body.is-nieuw .sd-ln-rest .bh-btn-link { font-size: var(--pj-t-meta); }
@media (max-width: 960px) {
  .bh-body.is-nieuw .sd-ln-zoek { width: 100%; }
}

/* The menus behind a chip or a button of the bar. */
.bh-body.is-nieuw .bh-menu.sd-ln-menu { min-width: 240px; max-width: min(360px, calc(100vw - var(--pj-s-6))); max-height: min(70vh, 520px); overflow-y: auto; }
.bh-body.is-nieuw .sd-ln-menu .opt-b { min-height: 0; border: 0; background: none; color: var(--text); font-size: var(--pj-t-ui); font-weight: 400; }
.bh-body.is-nieuw .sd-ln-menu .opt-b small { display: block; font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-ln-menu .pop-note { padding: var(--pj-s-2) var(--pj-s-3); font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-ln-menu .bh-field { padding: var(--pj-s-1) var(--pj-s-3); }
.bh-body.is-nieuw .sd-ln-menu .bh-field > label { font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-ln-menu-voet { display: flex; gap: var(--pj-s-1); }
.bh-body.is-nieuw .sd-ln-menu-voet > button:last-child { color: var(--primary); font-weight: 500; }
.bh-body.is-nieuw .bh-pop:has(> .bh-chip[aria-expanded="true"]) { z-index: 6; }

/* Eerst dit: low, so the list starts high; a border all around, never a stripe. */
.bh-body.is-nieuw .sd-ln-eerst-kop { grid-column: 1; display: flex; align-items: baseline; gap: var(--pj-s-3); min-width: 0; }
.bh-body.is-nieuw .sd-ln-eerst-kop > .bh-wie { flex: none; }
.bh-body.is-nieuw .sd-ln-eerst h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-body.is-nieuw .sd-ln-eerst > p { grid-column: 1; max-width: 75ch; }
.bh-body.is-nieuw .sd-ln-eerst > :is(.bh-btn, .bh-btn-link) { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }

/* The list. */
.bh-body.is-nieuw .sd-ln-lijst { container: sd-ln / inline-size; min-width: 0; }
.bh-body.is-nieuw .sd-ln-lijst > .bh-tablewrap { padding: var(--pj-s-2); }
.bh-body.is-nieuw .sd-ln-tabel { table-layout: fixed; min-width: 880px; }
.bh-body.is-nieuw .sd-ln-tabel :is(th, td) { white-space: nowrap; }
.bh-body.is-nieuw .sd-ln-tabel thead th { font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-ln-tabel .c-ck { width: 44px; padding-right: 0; }
.bh-body.is-nieuw .sd-ln-tabel thead .c-kl { width: 160px; }
.bh-body.is-nieuw .sd-ln-tabel thead .c-so { width: 56px; }
.bh-body.is-nieuw .sd-ln-tabel thead .c-st { width: 136px; }
.bh-body.is-nieuw .sd-ln-tabel thead .c-wie { width: 108px; }
.bh-body.is-nieuw .sd-ln-tabel thead .c-af { width: 172px; }
/* What Claude saw only gets room on a wide list; until then its column has no width (a cell with display none would still hold a column in a fixed table). */
.bh-body.is-nieuw .sd-ln-tabel thead .c-ai { width: 0; }
.bh-body.is-nieuw .bh-table.sd-ln-tabel :is(th, td).c-ai { padding: 0; overflow: hidden; visibility: hidden; }
.bh-body.is-nieuw .sd-ln-tabel thead th.c-af, .bh-body.is-nieuw .sd-ln-tabel tbody tr:not(.bh-group):hover > .c-af, .bh-body.is-nieuw .sd-ln-tabel .sd-ln-rij.sel > .c-af { border-top-right-radius: var(--bh-r-2); border-bottom-right-radius: var(--bh-r-2); }
.bh-body.is-nieuw .sd-ln-tabel .bh-tk { min-height: 0; padding: 0; border: 0; background: none; }
.bh-body.is-nieuw .sd-ln-tabel tbody th { background: none; font-weight: 400; text-align: left; padding: var(--pj-s-2) var(--pj-s-4); border-top: 1px solid var(--line-soft); vertical-align: middle; }
.bh-body.is-nieuw .sd-ln-tabel .c-t, .bh-body.is-nieuw .sd-ln-tabel td.c-kl, .bh-body.is-nieuw .sd-ln-tabel .sd-ln-af { overflow: hidden; text-overflow: ellipsis; }
.bh-body.is-nieuw .sd-ln-rij { cursor: pointer; }
.bh-body.is-nieuw .sd-ln-rij.sel > * { background: var(--accent-soft); border-top-color: transparent; }
.bh-body.is-nieuw .sd-ln-rij.sel > :first-child { border-radius: var(--bh-r-2) 0 0 var(--bh-r-2); }
.bh-body.is-nieuw .sd-ln-rij.sel > :last-child { border-radius: 0 var(--bh-r-2) var(--bh-r-2) 0; }
.bh-body.is-nieuw .sd-ln-rij.sel + tr > * { border-top-color: transparent; }
.bh-body.is-nieuw .sd-ln-tabel tbody tr:first-child > *, .bh-body.is-nieuw .sd-ln-tabel .bh-group + tr > * { border-top-color: transparent; }
.bh-body.is-nieuw .sd-ln-key { display: inline-block; min-width: 72px; margin-right: var(--pj-s-2); color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; }
.bh-body.is-nieuw .sd-ln-ring { width: 12px; height: 12px; margin-right: var(--pj-s-2); }
.bh-body.is-nieuw .sd-ln-titel { color: var(--text); font-weight: 500; }
.bh-body.is-nieuw .sd-ln-titel:hover { color: var(--primary); text-decoration: none; }
.bh-body.is-nieuw .sd-ln-kn { overflow: hidden; text-overflow: ellipsis; }
.bh-body.is-nieuw .sd-ln-nc { margin-left: var(--pj-s-2); color: var(--accent-text); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-ln-stil { color: var(--muted); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-ln-tabel td.c-so { color: var(--muted); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-ln-soort { display: none; }
.bh-body.is-nieuw .sd-ln-pak { font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-ln-af { color: var(--muted-strong); }
.bh-body.is-nieuw .sd-ln-af.is-warn { color: var(--accent-text); font-weight: 500; }
.bh-body.is-nieuw .sd-ln-af.is-bad { color: var(--status-red); font-weight: 500; }
.bh-body.is-nieuw .sd-ln-af.is-mute { color: var(--muted); }
.bh-body.is-nieuw .sd-ln-tabel td.c-ai { color: var(--muted); font-size: var(--pj-t-meta); overflow: hidden; text-overflow: ellipsis; }
.bh-body.is-nieuw .sd-ln-tabel .bh-group td { color: var(--text); }
.bh-body.is-nieuw .sd-ln-tabel .bh-group .bh-v { margin-right: var(--pj-s-2); width: 12px; height: 12px; }
.bh-body.is-nieuw .sd-ln-gn { margin-left: var(--pj-s-2); color: var(--muted-strong); font-weight: 500; }
.bh-body.is-nieuw .sd-ln-gh { margin-left: var(--pj-s-3); color: var(--muted-strong); font-weight: 400; }
.bh-body.is-nieuw .sd-ln-leeg { padding: var(--pj-s-5) var(--pj-s-4); color: var(--muted-strong); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-ln-meer { display: flex; justify-content: center; }
/* A wider list: the type next to the priority, then what Claude saw as a column of its own. */
@container sd-ln (min-width: 1040px) {
  .bh-body.is-nieuw .sd-ln-tabel thead .c-so { width: 120px; }
  .bh-body.is-nieuw .sd-ln-tabel thead .c-kl { width: 220px; }
  .bh-body.is-nieuw .sd-ln-soort { display: inline; }
}
@container sd-ln (min-width: 1240px) {
  .bh-body.is-nieuw .bh-table.sd-ln-tabel :is(th, td).c-ai { padding: var(--pj-s-2) var(--pj-s-4); visibility: visible; }
  .bh-body.is-nieuw .sd-ln-tabel thead .c-ai { width: 260px; }
  .bh-body.is-nieuw .sd-ln-tabel thead th.c-af, .bh-body.is-nieuw .sd-ln-tabel tbody tr:not(.bh-group):hover > .c-af, .bh-body.is-nieuw .sd-ln-tabel .sd-ln-rij.sel > .c-af { border-radius: 0; }
  .bh-body.is-nieuw .sd-ln-tabel thead .c-kl { width: 260px; }
  .bh-body.is-nieuw .sd-ln-tabel thead .c-af { width: 220px; }
}
/* A narrow list: every ticket a card of three lines (the title, the client, the stand and the clock). */
@container sd-ln (max-width: 639px) {
  .bh-body.is-nieuw .sd-ln-lijst > .bh-tablewrap { padding: var(--pj-s-1); }
  .bh-body.is-nieuw .sd-ln-tabel, .bh-body.is-nieuw .sd-ln-tabel tbody { display: block; min-width: 0; }
  .bh-body.is-nieuw .sd-ln-tabel thead { display: none; }
  .bh-body.is-nieuw .sd-ln-rij { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: var(--pj-s-1) var(--pj-s-3); padding: var(--pj-s-2) var(--pj-s-3); border-top: 1px solid var(--line-soft); border-radius: var(--bh-r-2); }
  .bh-body.is-nieuw .sd-ln-tabel.is-lezen .sd-ln-rij { grid-template-columns: 0 minmax(0, 1fr) auto; column-gap: 0; }
  .bh-body.is-nieuw .sd-ln-tabel tbody tr:first-child.sd-ln-rij, .bh-body.is-nieuw .sd-ln-tabel .bh-group + .sd-ln-rij { border-top-color: transparent; }
  .bh-body.is-nieuw .sd-ln-tabel .bh-group { display: block; }
  .bh-body.is-nieuw .sd-ln-tabel .bh-group td { display: block; padding: var(--pj-s-2) var(--pj-s-3); }
  .bh-body.is-nieuw .bh-table.sd-ln-tabel .sd-ln-rij > :is(th, td) { display: block; padding: 0; border: 0; min-width: 0; background: none; }
  .bh-body.is-nieuw .bh-table.sd-ln-tabel .sd-ln-rij > .c-ck { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
  .bh-body.is-nieuw .sd-ln-rij > .c-t { grid-column: 2 / span 2; grid-row: 1; white-space: normal; }
  .bh-body.is-nieuw .sd-ln-rij > .c-kl { grid-column: 2 / span 2; grid-row: 2; font-size: var(--pj-t-meta); color: var(--muted); }
  .bh-body.is-nieuw .sd-ln-rij > .c-st { grid-column: 2; grid-row: 3; }
  .bh-body.is-nieuw .sd-ln-rij > .c-af { grid-column: 3; grid-row: 3; text-align: right; font-size: var(--pj-t-meta); }
  .bh-body.is-nieuw .bh-table.sd-ln-tabel .sd-ln-rij > :is(.c-so, .c-wie, .c-ai) { display: none; }
  .bh-body.is-nieuw .sd-ln-rij.sel { background: var(--accent-soft); }
  .bh-body.is-nieuw .sd-ln-key { min-width: 0; }
}

/* The bar for what you ticked (bh-selbar of the style) and the outcome of a series change. */
.bh-body.is-nieuw .sd-ln-kies .bh-menu { max-height: min(60vh, 480px); }
.bh-body.is-nieuw .sd-ln-uitkomst > .sd-bulkres { padding: var(--pj-s-4) var(--pj-s-5); border: 1px solid var(--line-soft); border-radius: var(--bh-r-3); background: var(--card); box-shadow: var(--bh-shadow-1); }

/* The states: the counts still loading, a notice, loading, a read that failed. */
.bh-body.is-nieuw .sd-ln-status { display: grid; gap: var(--pj-s-2); }
.bh-body.is-nieuw .sd-ln-status:empty { display: none; }
.bh-body.is-nieuw .sd-ln-voorlopig { font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-ln-melding { padding: var(--pj-s-3) var(--pj-s-4); }
.bh-body.is-nieuw .sd-ln-resultaat { display: grid; gap: var(--pj-s-3); min-width: 0; }
.bh-body.is-nieuw .sd-ln-laden { display: grid; gap: var(--pj-s-3); padding: var(--pj-s-5); border: 1px solid var(--line-soft); border-radius: var(--bh-r-3); background: var(--card); }
.bh-body.is-nieuw .sd-ln-fout > .bh-btn { margin-top: var(--pj-s-2); }

@media (max-width: 960px) {
  .bh-body.is-nieuw .bh-next.is-low.sd-ln-eerst { grid-template-columns: minmax(0, 1fr); padding: var(--pj-s-4); }
  .bh-body.is-nieuw .sd-ln-eerst-kop { flex-wrap: wrap; gap: var(--pj-s-1) var(--pj-s-3); }
  .bh-body.is-nieuw .sd-ln-eerst h2 { white-space: normal; }
  .bh-body.is-nieuw .sd-ln-eerst > :is(.bh-btn, .bh-btn-link) { grid-column: 1; grid-row: auto; justify-self: start; margin-top: var(--pj-s-2); }
}

/* ── OUB-S161 (pair 2): Tickets as a board in the new look (view-bord-nieuw.ts, bord-nieuw.ts). Only with the switch of the look on: every rule hangs on .bh-body.is-nieuw and on classes that
   start with sd-bn- (and the line with Ongedaan maken, pn-ongedaan, the name it has in Projecten), so the board without the switch is exactly what it was. Tokens only. The page stands still: the
   board fills the width and the height of the screen, each column scrolls in its own frame, and a board wider than its frame scrolls sideways inside it. On a phone one column at a time. ── */
.bh-body.is-nieuw .sd-bn { display: grid; gap: var(--pj-s-3); align-content: start; min-width: 0; }
.bh-body.is-nieuw .sd-bn > * { min-width: 0; }
.bh-body.is-nieuw:has([data-main] .sd-bn) .bh-band { display: none; }
.bh-body.is-nieuw:has([data-main] .sd-bn) [data-side] .bh-row:has(> a[href*="queue=rappel"]) > .bh-n { color: var(--muted); }
.bh-body.is-nieuw:not([data-sidebar="collapsed"]):has([data-main] .sd-bn) .bh-side-toggle { display: none; }
.bh-body.is-nieuw .sd-bn .bh-chip > .bh-chev { margin-left: var(--pj-s-1); }
.bh-body.is-nieuw .sd-bn-status:empty { display: none; }
.bh-body.is-nieuw .sd-bn-resultaat { display: grid; gap: var(--pj-s-3); min-width: 0; }
.bh-body.is-nieuw .sd-bn-lezen, .bh-body.is-nieuw .sd-bn-leegbord { margin: 0; color: var(--muted); font-size: var(--pj-t-meta); }

/* The board: four columns that share the width, never narrower than about 208 px; what does not fit scrolls sideways inside the frame of the board. */
.bh-body.is-nieuw .sd-bn-bord { display: grid; gap: var(--pj-s-3); min-width: 0; }
.bh-body.is-nieuw .bh-seg.sd-bn-kies { display: none; }
.bh-body.is-nieuw .sd-bn-kb { display: grid; grid-template-columns: repeat(4, minmax(208px, 1fr)); gap: var(--pj-s-3); height: max(420px, calc(100dvh - var(--bh-top-h) - 168px)); min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.bh-body.is-nieuw .sd-bn-kb:focus { outline: 0; }
/* SD-3: a board wider than its frame fades out at the side where there is more (bord-nieuw.ts sets data-bn-meer), so a column is never seen as cut off. */
.bh-body.is-nieuw .sd-bn-kb[data-bn-meer="rechts"] { mask-image: linear-gradient(to right, var(--text) calc(100% - 56px), transparent); }
.bh-body.is-nieuw .sd-bn-kb[data-bn-meer="links"] { mask-image: linear-gradient(to left, var(--text) calc(100% - 56px), transparent); }
.bh-body.is-nieuw .sd-bn-kb[data-bn-meer="beide"] { mask-image: linear-gradient(to right, transparent, var(--text) 56px, var(--text) calc(100% - 56px), transparent); }
.bh-body.is-nieuw .sd-bn-kol { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--bh-r-3); container: sd-bn-kol / inline-size; transition: background-color var(--bh-dur-2) var(--bh-ease-out), border-color var(--bh-dur-2) var(--bh-ease-out); }
.bh-body.is-nieuw .sd-bn-kop { display: flex; align-items: center; gap: var(--pj-s-2); margin: 0; padding: var(--pj-s-2) var(--pj-s-3); font-size: var(--pj-t-ui); font-weight: 700; line-height: 1.2; white-space: nowrap; min-width: 0; }
.bh-body.is-nieuw .sd-bn-kop .bh-tk { gap: 0; min-height: 0; padding: 0; border: 0; background: none; }
.bh-body.is-nieuw .sd-bn-kop .bh-v.ruit { width: 11px; height: 11px; }
.bh-body.is-nieuw .sd-bn-n { color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; }
.bh-body.is-nieuw .sd-bn-x { min-width: 0; margin-left: auto; overflow: hidden; color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; text-overflow: ellipsis; }
.bh-body.is-nieuw .sd-bn-x.is-bad { color: var(--status-red); }
.bh-body.is-nieuw .sd-bn-lijst { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--pj-s-2); margin: 0; padding: var(--pj-s-1) var(--pj-s-2) var(--pj-s-2); list-style: none; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
/* A column that has the room lays a full list of cards two by two. */
@container sd-bn-kol (min-width: 500px) {
  .bh-body.is-nieuw .sd-bn-lijst:has(> .sd-bn-kc:nth-child(7)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bh-body.is-nieuw .sd-bn-leeg { padding: var(--pj-s-5) var(--pj-s-3); border: 1px solid var(--line-soft); border-radius: var(--bh-r-2); color: var(--muted); font-size: var(--pj-t-meta); text-align: center; }

/* The card: the number and the client, the title on at most two lines, the clock only when it runs out. The title is a link over the whole card. */
.bh-body.is-nieuw .sd-bn-kc { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; padding: var(--pj-s-2) var(--pj-s-3); background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--bh-r-2); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: border-color var(--bh-dur-1) var(--bh-ease-out), opacity var(--bh-dur-2) var(--bh-ease-out); }
.bh-body.is-nieuw .sd-bn-kc[data-sleep-kaart] { cursor: grab; }
.bh-body.is-nieuw .sd-bn-kc:hover { border-color: var(--line-strong); }
.bh-body.is-nieuw .sd-bn-kc:has(.sd-bn-t:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.bh-body.is-nieuw .sd-bn-kc.is-eerst { border-color: var(--accent); }
.bh-body.is-nieuw .sd-bn-r1 { display: flex; align-items: center; gap: var(--pj-s-2); min-height: 22px; font-size: var(--pj-t-meta); line-height: 1.3; }
.bh-body.is-nieuw .sd-bn-key { color: var(--muted-strong); font-weight: 500; white-space: nowrap; }
.bh-body.is-nieuw .sd-bn-kl { flex: 1; min-width: 0; overflow: hidden; color: var(--muted-strong); text-overflow: ellipsis; white-space: nowrap; }
.bh-body.is-nieuw .sd-bn-p { color: var(--status-red); font-weight: 700; }
.bh-body.is-nieuw .sd-bn-eerst { color: var(--accent-text); font-weight: 700; white-space: nowrap; }
.bh-body.is-nieuw .sd-bn-wie { display: inline-flex; align-items: center; gap: var(--pj-s-1); flex: none; }
.bh-body.is-nieuw .sd-bn-wie .bh-v.vierkant { width: 9px; height: 9px; }
.bh-body.is-nieuw .sd-bn-kc .bh-v.ini { font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-bn-niemand { display: block; width: 16px; height: 16px; flex: none; border: 1px solid var(--muted); border-radius: 50%; }
/* The whole card is the target on a phone, so the title keeps its own height (the old rule of 44 px for a link in a list item does not apply here). */
.bh-body.is-nieuw .sd-bn-t { min-height: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); font-size: var(--pj-t-ui); font-weight: 500; line-height: 1.3; text-decoration: none; }
.bh-body.is-nieuw .sd-bn-t:hover { text-decoration: none; }
.bh-body.is-nieuw .sd-bn-t:focus-visible { outline: 0; }
.bh-body.is-nieuw .sd-bn-t::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bh-body.is-nieuw .sd-bn-t .bh-v.ring { width: 11px; height: 11px; margin-right: var(--pj-s-1); vertical-align: 0; }
.bh-body.is-nieuw .sd-bn-kc.is-klaar .sd-bn-t { color: var(--muted-strong); font-weight: 400; }
.bh-body.is-nieuw .sd-bn-r3 { display: flex; align-items: center; gap: var(--pj-s-2); min-height: 22px; margin: 0; }
.bh-body.is-nieuw .sd-bn-klok { min-width: 0; overflow: hidden; font-size: var(--pj-t-meta); font-weight: 500; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.bh-body.is-nieuw .sd-bn-klok.is-warn { color: var(--accent-text); }
.bh-body.is-nieuw .sd-bn-klok.is-bad { color: var(--status-red); }
.bh-body.is-nieuw .sd-bn-kc[data-bn-bezig] { opacity: 0.6; }

/* The menu Zet naar: three dots that take the place of the shape while you point at the card or it has the focus; on a touch screen always there. */
.bh-body.is-nieuw .bh-pop.sd-bn-pop { position: absolute; top: var(--pj-s-1); right: var(--pj-s-2); z-index: 1; }
.bh-body.is-nieuw .sd-bn-mb { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--bh-r-1); background: var(--card); color: var(--muted-strong); cursor: pointer; opacity: 0; transition: opacity var(--bh-dur-1) var(--bh-ease-out), background-color var(--bh-dur-1) var(--bh-ease-out), color var(--bh-dur-1) var(--bh-ease-out); }
.bh-body.is-nieuw .sd-bn-mb svg { width: 16px; height: 16px; }
.bh-body.is-nieuw .sd-bn-mb:hover { background: var(--row-tint); color: var(--text); }
.bh-body.is-nieuw .sd-bn-kc:is(:hover, :focus-within) .sd-bn-mb, .bh-body.is-nieuw .sd-bn-mb[aria-expanded="true"] { opacity: 1; }
@media (hover: hover) {
  .bh-body.is-nieuw .sd-bn-kc:has(.sd-bn-pop) .sd-bn-wie { transition: opacity var(--bh-dur-1) var(--bh-ease-out); }
  .bh-body.is-nieuw .sd-bn-kc:has(.sd-bn-pop):is(:hover, :focus-within) .sd-bn-wie { opacity: 0; }
}
@media (hover: none) {
  .bh-body.is-nieuw .sd-bn-mb { opacity: 1; }
  .bh-body.is-nieuw .sd-bn-kc:has(.sd-bn-pop) .sd-bn-r1 { padding-right: var(--pj-s-6); }
}
.bh-body.is-nieuw .bh-pop.sd-bn-pop > .bh-menu.sd-bn-menu { position: fixed; right: auto; bottom: auto; z-index: 30; min-width: 232px; max-width: min(320px, calc(100vw - var(--pj-s-6))); }
.bh-body.is-nieuw .sd-bn-menu :is(button, a, .sd-bn-nu) { display: flex; align-items: center; gap: var(--pj-s-2); }
.bh-body.is-nieuw .sd-bn-nu { padding: var(--pj-s-2) var(--pj-s-3); color: var(--muted-strong); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-bn-menu .bh-r { display: inline-flex; align-items: center; gap: var(--pj-s-1); margin-left: auto; color: var(--muted); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw .sd-bn-menu .bh-r .bh-v.ruit { width: 9px; height: 9px; }

/* Dragging: the card that was picked up stays as a quiet shape, the copy floats, every column says what letting go does. A column that takes nothing steps back; the one under the card lights
   up with a tint and a solid line (never a dashed one). */
.bh-body.is-nieuw .sd-bn-kc[data-sleep-bron] { opacity: 0.35; }
.bh-body.is-nieuw .sd-bn-kc[data-sleep-bron] .sd-bn-pop { visibility: hidden; }
.bh-body.is-nieuw .sd-bn-zweef { cursor: grabbing; }
.bh-body.is-nieuw .sd-bn-zweef > .sd-bn-kc { border-color: var(--line-strong); box-shadow: var(--bh-shadow-2); transform: rotate(-1.5deg) scale(1.03); }
.bh-body.is-nieuw .sd-bn-zweef .sd-bn-pop { display: none; }
.bh-body.is-nieuw .sd-bn-hint { position: absolute; left: 50%; bottom: var(--pj-s-3); z-index: 2; display: inline-flex; align-items: center; gap: var(--pj-s-2); max-width: calc(100% - var(--pj-s-4)); margin: 0; padding: var(--pj-s-1) var(--pj-s-3); border: 1px solid var(--line); border-radius: var(--bh-r-pill); background: var(--raised); color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 6px); transition: opacity var(--bh-dur-2) var(--bh-ease-out), transform var(--bh-dur-2) var(--bh-ease-out); }
.bh-body.is-nieuw [data-sleep] .sd-bn-kol[data-sleep-neemt]:not([data-sleep-neemt="bron"]) .sd-bn-hint:not(:empty) { opacity: 1; transform: translate(-50%, 0); }
.bh-body.is-nieuw [data-sleep] .sd-bn-kol[data-sleep-neemt="nee"] { background: var(--background); }
.bh-body.is-nieuw [data-sleep] .sd-bn-kol[data-sleep-neemt="nee"] .sd-bn-lijst { opacity: 0.5; }
.bh-body.is-nieuw [data-sleep] .sd-bn-kol[data-sleep-neemt="ja"] { border-color: var(--line); }
.bh-body.is-nieuw [data-sleep] .sd-bn-kol[data-sleep-neemt="ja"][data-sleep-boven] { background: var(--primary-soft); border-color: var(--primary); }
.bh-body.is-nieuw [data-sleep] .sd-bn-kol[data-sleep-neemt="ja"][data-sleep-boven] .sd-bn-hint { border-color: var(--primary); color: var(--text); }

/* The line with Ongedaan maken at the bottom, ten seconds (ongedaan.ts, the same line as on the board of Projecten). */
.bh-body.is-nieuw .pn-ongedaan:empty { display: none; }
.bh-body.is-nieuw .pn-ongedaan { position: fixed; z-index: 91; left: 50%; bottom: calc(var(--pj-s-5) + var(--pj-s-1)); width: max-content; max-width: calc(100vw - 2 * var(--pj-s-4)); transform: translateX(-50%); }
.bh-body.is-nieuw .pn-ongedaan-in { display: flex; align-items: center; gap: var(--pj-s-3); padding: var(--pj-s-2) var(--pj-s-2) var(--pj-s-2) var(--pj-s-5); border: 1px solid var(--hero-line); border-radius: var(--bh-r-pill); background: var(--night); color: var(--hero-ink); box-shadow: var(--bh-shadow-2); font-size: var(--pj-t-ui); font-weight: 500; animation: bh-toast var(--bh-dur-3) var(--bh-ease-pop); }
.bh-body.is-nieuw .pn-ongedaan-in > span { min-width: 0; }
.bh-body.is-nieuw .pn-ongedaan button { flex: none; padding: var(--pj-s-1) var(--pj-s-3); border: 0; border-radius: var(--bh-r-pill); background: none; color: var(--hero-primary); font-size: var(--pj-t-ui); font-weight: 700; white-space: nowrap; cursor: pointer; }
.bh-body.is-nieuw .pn-ongedaan button:hover { background: var(--hero-line); }
.bh-body.is-nieuw .pn-ongedaan button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* No flying and no tilting for a colleague who asks for less motion. */
@media (prefers-reduced-motion: reduce) {
  .bh-body.is-nieuw .sd-bn-zweef > .sd-bn-kc { transform: none; }
  .bh-body.is-nieuw .sd-bn-hint { transform: translate(-50%, 0); transition: none; }
  .bh-body.is-nieuw .pn-ongedaan-in { animation: none; }
}

/* A phone: one column at a time, chosen above the board (with its count) or by swiping; the choice also takes a card that is let go on it. */
@media (max-width: 960px) {
  .bh-body.is-nieuw .bh-seg.sd-bn-kies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--bh-r-3); }
  .bh-body.is-nieuw .bh-seg.sd-bn-kies button { display: grid; justify-items: center; align-content: center; gap: 0; min-height: 48px; padding: var(--pj-s-1); border-radius: var(--bh-r-2); line-height: 1.15; text-wrap: balance; }
  .bh-body.is-nieuw .sd-bn-kies b { color: inherit; font-size: var(--pj-t-ui); font-weight: 700; }
  .bh-body.is-nieuw .sd-bn-kies b.is-bad { color: var(--status-red); }
  .bh-body.is-nieuw .sd-bn-kies button[aria-pressed="true"] b.is-bad { color: inherit; }
  .bh-body.is-nieuw [data-sleep] .sd-bn-kies button[data-sleep-neemt="ja"][data-sleep-boven] { background: var(--primary-soft); color: var(--text); box-shadow: inset 0 0 0 2px var(--primary); }
  .bh-body.is-nieuw .sd-bn-kb { display: flex; height: max(380px, calc(100dvh - var(--bh-top-h) - 120px)); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .bh-body.is-nieuw .sd-bn-kol { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
}

/* ── OUB-S161 (pair 3): Start in the new look (view-start-nieuw.ts). Only with the switch of the look on: every rule hangs on .bh-body.is-nieuw and on classes that start with sd-sn-, so
   Start without the switch is exactly what it was. Tokens only. One grid: Start is two rows of two (owner, 23 Nov 2026): on top Eerst dit (a third) and Daarna (two thirds), below Vandaag op de klok and Per
   behandelaar (half and half), one top per row; a block is as high as its content, so Eerst dit is never tall and empty. The columns follow the width of Start itself (@container sd-sn), never the
   window; on a narrow Start the four stand under each other. Eerst dit has its edge all round (bh-next of the style), no stripe on the left. */
.bh-body.is-nieuw .sd-sn { display: grid; gap: var(--pj-s-6); container: sd-sn / inline-size; min-width: 0; }
.bh-body.is-nieuw .sd-sn :is(.sd-sn-voor, .sd-sn-onder) { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pj-s-5); align-items: start; }
.bh-body.is-nieuw .sd-sn .sd-sn-kolom { display: grid; gap: var(--pj-s-2); align-content: start; min-width: 0; }
.bh-body.is-nieuw .sd-sn .sd-sn-h { font-size: var(--pj-t-lead); font-weight: 700; line-height: 1.3; }
.bh-body.is-nieuw .sd-sn .sd-sn-stil { color: var(--muted); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-sn .sd-sn-melding { margin: 0; }

/* Eerst dit: the block of the style, its title the size of a section head on Start. */
.bh-body.is-nieuw .sd-sn .bh-next.sd-sn-eerst { display: flex; flex-direction: column; align-items: flex-start; gap: var(--pj-s-2); padding: var(--pj-s-4) var(--pj-s-5); min-width: 0; }
.bh-body.is-nieuw .sd-sn .sd-sn-eerst h2 { font-size: var(--pj-t-h2); line-height: 1.2; letter-spacing: -0.01em; max-width: 40ch; }
.bh-body.is-nieuw .sd-sn .sd-sn-eerst p { font-size: var(--pj-t-ui); color: var(--muted-strong); max-width: 75ch; }
.bh-body.is-nieuw .sd-sn .sd-sn-eerst p b { color: var(--text); font-weight: 700; }
.bh-body.is-nieuw .sd-sn .sd-sn-eerst .bh-wie { display: inline-flex; align-items: center; gap: var(--pj-s-2); font-size: var(--pj-t-meta); font-weight: 500; color: var(--muted); }
.bh-body.is-nieuw .sd-sn .sd-sn-eerst.quiet .bh-wie { display: inline-flex; }
.bh-body.is-nieuw .sd-sn .sd-sn-eerst .sd-sn-klokregel { color: var(--text); font-weight: 500; }
.bh-body.is-nieuw .sd-sn .sd-sn-eerst .bh-foot { margin-top: auto; padding-top: var(--pj-s-2); }

/* The Toewijzen menu next to Eerst dit: the list of colleagues the old menu filled (renderAssignOptions), in the menu of the style. */
.bh-body.is-nieuw .sd-sn .sd-sn-toewijs { position: relative; display: inline-flex; }
.bh-body.is-nieuw .sd-sn .sd-sn-menu { top: calc(100% + var(--pj-s-1)); left: 0; min-width: 320px; max-width: min(400px, calc(100vw - 2 * var(--pj-s-4))); max-height: 60vh; overflow: auto; }
.bh-body.is-nieuw .sd-sn .sd-sn-mh { padding: var(--pj-s-2) var(--pj-s-3) var(--pj-s-1); font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-sn .sd-sn-menu .sd-assign-o { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--pj-s-3); align-items: center; width: 100%; padding: var(--pj-s-2) var(--pj-s-3); border: 0; border-radius: var(--bh-r-2); background: none; color: var(--text); font-size: var(--pj-t-ui); text-align: left; cursor: pointer; transition: background-color var(--bh-dur-1) var(--bh-ease-out); }
.bh-body.is-nieuw .sd-sn .sd-sn-menu .sd-assign-o:hover, .bh-body.is-nieuw .sd-sn .sd-sn-menu .sd-assign-o:focus-visible { background: var(--row-tint); }
.bh-body.is-nieuw .sd-sn .sd-sn-menu .sd-assign-o .bh-who { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 var(--pj-s-1); border-radius: var(--bh-r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: var(--pj-t-meta); font-weight: 700; }
.bh-body.is-nieuw .sd-sn .sd-sn-menu .sd-assign-n { display: grid; gap: calc(var(--pj-s-1) / 2); min-width: 0; }
.bh-body.is-nieuw .sd-sn .sd-sn-menu .sd-assign-n b { font-weight: 500; }
.bh-body.is-nieuw .sd-sn .sd-sn-menu .sd-assign-n small { font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-sn .sd-sn-menu .sd-assign-o em { font-style: normal; font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-sn .sd-sn-menu .pop-note { padding: var(--pj-s-2) var(--pj-s-3); font-size: var(--pj-t-meta); color: var(--muted); }

/* The lists of Start: the lines of the style, without the box the old shell sheet draws around a list. */
.bh-body.is-nieuw .sd-sn .bh-list { border: 0; border-radius: 0; overflow: visible; }
.bh-body.is-nieuw .sd-sn .bh-list > li { padding-inline: 0; }

/* Daarna: one line per ticket, the number in a quiet ring, one button. */
.bh-body.is-nieuw .sd-sn .sd-sn-daarnablok .bh-head { align-items: center; min-height: 36px; }
.bh-body.is-nieuw .sd-sn .sd-sn-daarna > li { padding-block: var(--pj-s-2); gap: var(--pj-s-1) var(--pj-s-3); }
.bh-body.is-nieuw .sd-sn .sd-sn-daarna .bh-t b, .bh-body.is-nieuw .sd-sn .sd-sn-vrijlijst .bh-t b, .bh-body.is-nieuw .sd-sn .sd-sn-knel .bh-t b { font-weight: 700; }
.bh-body.is-nieuw .sd-sn .sd-sn-daarna .bh-t b a, .bh-body.is-nieuw .sd-sn .sd-sn-vrijlijst .bh-t b a, .bh-body.is-nieuw .sd-sn .sd-sn-knel .bh-t b a { color: var(--text); }
.bh-body.is-nieuw .sd-sn .sd-sn-daarna .bh-t b a:hover, .bh-body.is-nieuw .sd-sn .sd-sn-vrijlijst .bh-t b a:hover, .bh-body.is-nieuw .sd-sn .sd-sn-knel .bh-t b a:hover { color: var(--primary); }
.bh-body.is-nieuw .sd-sn .sd-sn-daarna .bh-t span, .bh-body.is-nieuw .sd-sn .sd-sn-vrijlijst .bh-t > span, .bh-body.is-nieuw .sd-sn .sd-sn-knel .bh-t > span { color: var(--muted); }
.bh-body.is-nieuw .sd-sn .sd-sn-vrij > summary { padding-block: var(--pj-s-2); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-sn .sd-sn-vrij > .bh-fold-in { gap: var(--pj-s-2); padding-bottom: var(--pj-s-2); }
.bh-body.is-nieuw .sd-sn .sd-sn-vrijlijst > li { grid-template-columns: minmax(0, 1fr) auto; padding-block: var(--pj-s-2); gap: var(--pj-s-1) var(--pj-s-3); }
.bh-body.is-nieuw .sd-sn .sd-sn-k { color: var(--muted-strong); font-weight: 500; margin-right: var(--pj-s-2); }
.bh-body.is-nieuw .sd-sn .sd-sn-alle { padding-top: var(--pj-s-2); border-top: 1px solid var(--line-soft); }
.bh-body.is-nieuw .sd-sn .sd-sn-laat, .bh-body.is-nieuw .sd-sn .bh-t .sd-sn-laat { color: var(--status-red); font-size: inherit; }
.bh-body.is-nieuw .sd-sn .sd-sn-blokfout { display: grid; gap: var(--pj-s-2); justify-items: start; padding: var(--pj-s-3) var(--pj-s-4); border: 1px solid color-mix(in srgb, var(--status-red) 45%, var(--line)); border-radius: var(--bh-r-2); background: var(--card); font-size: var(--pj-t-ui); color: var(--text); }
.bh-body.is-nieuw .sd-sn .sd-sn-blokfout .sd-sn-stil { color: var(--text); }

/* The window Meldingen: the arrived lines of the old Start, a private conversation on top and in red. */
/* A closed window takes no room and no clicks: the shell sets display: grid on every .bh-dialog, which also shows a closed one (invisible, but over the line under it). */
.bh-body.is-nieuw .sd-sn .sd-sn-venster:not([open]) { display: none; }
.bh-body.is-nieuw .sd-sn .sd-sn-meld { display: grid; }
.bh-body.is-nieuw .sd-sn .sd-sn-meld a { display: grid; gap: calc(var(--pj-s-1) / 2); padding: var(--pj-s-2) var(--pj-s-3); margin-inline: calc(-1 * var(--pj-s-3)); border-radius: var(--bh-r-2); color: var(--text); font-size: var(--pj-t-ui); font-weight: 500; transition: background-color var(--bh-dur-1) var(--bh-ease-out); }
.bh-body.is-nieuw .sd-sn .sd-sn-meld a:hover { background: var(--row-tint); text-decoration: none; }
.bh-body.is-nieuw .sd-sn .sd-sn-meld a span { font-size: var(--pj-t-meta); color: var(--muted); font-weight: 400; }
.bh-body.is-nieuw .sd-sn .sd-sn-meld a.is-prive { color: var(--status-red); }

/* Vandaag op de klok: one slim line from nine to five, then today and later as a list. */
.bh-body.is-nieuw .sd-sn .sd-sn-klok { display: grid; }
.bh-body.is-nieuw .sd-sn .sd-sn-klok .bh-head { align-items: center; min-height: 36px; }
.bh-body.is-nieuw .sd-sn .sd-sn-som { font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-sn .sd-sn-som b { color: var(--text); font-weight: 700; }
.bh-body.is-nieuw .sd-sn .sd-sn-lijn { position: relative; height: 56px; margin: var(--pj-s-1) var(--pj-s-3) 0; }
.bh-body.is-nieuw .sd-sn .sd-sn-as { position: absolute; left: 0; right: 0; top: 18px; height: 2px; border-radius: var(--bh-r-pill); background: var(--line); }
.bh-body.is-nieuw .sd-sn .sd-sn-as i { display: block; height: 100%; border-radius: inherit; background: var(--muted); }
.bh-body.is-nieuw .sd-sn .sd-sn-uur { position: absolute; top: 30px; transform: translateX(-50%); font-size: var(--pj-t-meta); color: var(--muted); }
.bh-body.is-nieuw .sd-sn .sd-sn-nu { position: absolute; top: 0; height: 28px; width: 0; }
.bh-body.is-nieuw .sd-sn .sd-sn-nu i { position: absolute; top: 10px; left: -1px; width: 2px; height: 18px; background: var(--text); }
.bh-body.is-nieuw .sd-sn .sd-sn-nu span { position: absolute; bottom: 22px; left: 0; transform: translateX(-50%); font-size: var(--pj-t-meta); font-weight: 700; white-space: nowrap; }
.bh-body.is-nieuw .sd-sn .sd-sn-pin { position: absolute; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--status-amber); box-shadow: 0 0 0 3px var(--background); transform: translateX(-50%); transition: transform var(--bh-dur-1) var(--bh-ease-out); }
.bh-body.is-nieuw .sd-sn .sd-sn-pin:hover, .bh-body.is-nieuw .sd-sn .sd-sn-pin:focus-visible { transform: translateX(-50%) scale(1.25); }
.bh-body.is-nieuw .sd-sn .sd-sn-dagl { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pj-s-3); }
.bh-body.is-nieuw .sd-sn .sd-sn-later { display: grid; gap: var(--pj-s-1); align-content: start; font-size: var(--pj-t-ui); }
.bh-body.is-nieuw .sd-sn .sd-sn-later h3 { font-size: var(--pj-t-meta); color: var(--muted); font-weight: 500; }
.bh-body.is-nieuw .sd-sn .sd-sn-later ul { display: grid; gap: var(--pj-s-2); list-style: none; margin: 0; padding: 0; }
.bh-body.is-nieuw .sd-sn .sd-sn-later li a { color: var(--text); font-weight: 500; }
.bh-body.is-nieuw .sd-sn .sd-sn-later li a:hover { color: var(--primary); }
.bh-body.is-nieuw .sd-sn .sd-sn-later li b { font-weight: 700; margin-right: var(--pj-s-1); }
.bh-body.is-nieuw .sd-sn .sd-sn-later li span { display: block; font-size: var(--pj-t-meta); color: var(--muted); }

/* Waar het knelt with its sentence and the link to Tickets: on the page Inzicht (the block moved there from Start); Per behandelaar stays on Start. */
.bh-body.is-nieuw .sd-sn .sd-sn-staat { display: grid; gap: var(--pj-s-3); min-width: 0; }
.bh-body.is-nieuw .sd-sn .sd-sn-staat > .bh-head { align-items: baseline; }
.bh-body.is-nieuw .sd-sn .sd-sn-staat > .bh-head .bh-sub { font-size: var(--pj-t-ui); color: var(--muted-strong); }
.bh-body.is-nieuw .sd-sn .sd-sn-kaart { gap: var(--pj-s-1); padding: var(--pj-s-3) var(--pj-s-5) var(--pj-s-2); min-width: 0; }
.bh-body.is-nieuw .sd-sn .sd-sn-kaart h3 { display: flex; align-items: baseline; gap: var(--pj-s-2); font-size: var(--pj-t-lead); font-weight: 700; line-height: 1.3; }
.bh-body.is-nieuw .sd-sn .sd-sn-n { font-size: var(--pj-t-ui); font-weight: 400; color: var(--muted-strong); }
.bh-body.is-nieuw .sd-sn .sd-sn-knel > li { grid-template-columns: 14px minmax(0, 1fr) auto; padding-block: var(--pj-s-2); gap: var(--pj-s-1) var(--pj-s-3); }
.bh-body.is-nieuw .sd-sn .sd-sn-knel .bh-v.ruit { width: 12px; height: 12px; justify-self: center; }
.bh-body.is-nieuw .sd-sn .sd-sn-dot { width: 8px; height: 8px; border-radius: 50%; justify-self: center; background: var(--tk-new); }
.bh-body.is-nieuw .sd-sn .sd-sn-dot.bad { background: var(--status-red); }
.bh-body.is-nieuw .sd-sn .sd-sn-dot.warn { background: var(--status-amber); }
.bh-body.is-nieuw .sd-sn .sd-sn-knel .bh-r .bh-btn-link { font-size: var(--pj-t-meta); }

/* Per behandelaar: a compact table, thin bars on one scale for both columns, the number after the bar. */
.bh-body.is-nieuw .sd-sn .sd-sn-perwrap { border: 0; border-radius: 0; background: none; }
.bh-body.is-nieuw .sd-sn .sd-sn-per { table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.bh-body.is-nieuw .sd-sn .sd-sn-per col.c-wie { width: 36%; }
.bh-body.is-nieuw .sd-sn .sd-sn-per :is(th, td) { padding-inline: var(--pj-s-2); }
.bh-body.is-nieuw .sd-sn .sd-sn-per thead th { background: none; padding-top: 0; }
.bh-body.is-nieuw .sd-sn .sd-sn-per tbody th { background: none; position: static; padding-block: var(--pj-s-2); font-size: var(--pj-t-ui); font-weight: 500; color: var(--text); border-top: 1px solid var(--line-soft); }
.bh-body.is-nieuw .sd-sn .sd-sn-per tbody tr:first-child :is(th, td) { border-top-color: transparent; }
.bh-body.is-nieuw .sd-sn .sd-sn-wie { display: inline-flex; align-items: center; gap: var(--pj-s-2); min-width: 0; }
.bh-body.is-nieuw .sd-sn .sd-sn-wie > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-body.is-nieuw .sd-sn .sd-sn-wie .bh-v.ini { min-width: 30px; text-align: center; }
.bh-body.is-nieuw .sd-sn .sd-sn-wie small { display: block; font-size: var(--pj-t-meta); font-weight: 400; color: var(--muted); white-space: normal; }
.bh-body.is-nieuw .sd-sn .sd-sn-niemand { display: inline-block; flex: none; width: 18px; height: 18px; margin-inline: var(--pj-s-2); border: 2px solid var(--muted); border-radius: 50%; }
.bh-body.is-nieuw .sd-sn .sd-sn-cel { display: grid; grid-template-columns: minmax(0, 1fr) 3ch; gap: var(--pj-s-2); align-items: center; }
.bh-body.is-nieuw .sd-sn .sd-sn-cel b { font-weight: 500; text-align: right; }
.bh-body.is-nieuw .sd-sn .sd-sn-cel b.is-0 { color: var(--muted-strong); font-weight: 400; }
.bh-body.is-nieuw .sd-sn .sd-sn-bar { display: flex; gap: calc(var(--pj-s-1) / 2); height: 6px; border-radius: var(--bh-r-pill); background: var(--line-soft); overflow: hidden; }
.bh-body.is-nieuw .sd-sn .sd-sn-bar i { display: block; height: 100%; background: var(--primary); }
.bh-body.is-nieuw .sd-sn .sd-sn-bar i.is-over { background: var(--status-red); }
.bh-body.is-nieuw .sd-sn .sd-sn-bar.is-kl i { background: var(--violet); }
.bh-body.is-nieuw .sd-sn .sd-sn-bar.is-free i { background: var(--accent); }

/* Laden: two blocks where Voor jou comes, then the lines. */
.bh-body.is-nieuw .sd-sn .sd-sn-laden { gap: var(--pj-s-3); }
.bh-body.is-nieuw .sd-sn .sd-sn-skel-blok { height: 180px; }

/* The lower row (Vandaag op de klok and Per behandelaar) is half and half as soon as each half has about 420 px. */
@container sd-sn (min-width: 880px) {
  .bh-body.is-nieuw .sd-sn .sd-sn-onder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* The upper row is a third and two thirds as soon as the third has about 360 px; Vandaag op de klok then also shows today and later side by side. */
@container sd-sn (min-width: 1100px) {
  .bh-body.is-nieuw .sd-sn .sd-sn-voor { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .bh-body.is-nieuw .sd-sn .sd-sn-klok .sd-sn-dagl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* A narrow Start: the button of a line goes under its text. */
@container sd-sn (max-width: 520px) {
  .bh-body.is-nieuw .sd-sn .sd-sn-daarna > li { grid-template-columns: auto minmax(0, 1fr); }
  .bh-body.is-nieuw .sd-sn .sd-sn-daarna > li > .bh-r { grid-column: 2; }
  .bh-body.is-nieuw .sd-sn .sd-sn-knel > li { grid-template-columns: 14px minmax(0, 1fr); }
  .bh-body.is-nieuw .sd-sn .sd-sn-knel > li > .bh-r { grid-column: 2; }
  .bh-body.is-nieuw .sd-sn .sd-sn-eerst h2 { font-size: var(--pj-t-lead); }
  .bh-body.is-nieuw .sd-sn .sd-sn-per col.c-wie { width: 42%; }
  .bh-body.is-nieuw .sd-sn .sd-sn-cel { grid-template-columns: minmax(0, 1fr) 3ch; gap: var(--pj-s-1); }
  .bh-body.is-nieuw .sd-sn .sd-sn-menu { min-width: 0; width: calc(100vw - 2 * var(--pj-s-4)); }
}

@media (prefers-reduced-motion: reduce) {
  .bh-body.is-nieuw .sd-sn .sd-sn-pin { transition: none; }
  .bh-body.is-nieuw .sd-sn .sd-sn-pin:hover, .bh-body.is-nieuw .sd-sn .sd-sn-pin:focus-visible { transform: translateX(-50%); }
}

/* ── OUB-S119: SLA-profielen and Kalender in Instellingen (view-sla.ts) and their windows (sla-venster.ts). Built from the parts of Instellingen (sec, sd-panel, bh-facts, sd-log,
   the window of a correction); only the scale of Rustig (4/8/16/24/40), the tokens of both themes, borders all round and no stripe on the left. Works in the old and the new look. ── */
.sd-sla-list { align-items: start; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); margin-top: 16px; }
.sd-sla-prof { min-width: 0; }
.sd-sla-tw { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sd-sla-tt { border-collapse: collapse; color: var(--text); font-size: var(--pj-t-ui); width: 100%; }
.sd-sla-tt th, .sd-sla-tt td { padding: 8px 8px; text-align: left; white-space: nowrap; }
.sd-sla-tt thead th { background: var(--surface); color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; }
.sd-sla-tt tbody tr { border-top: 1px solid var(--line); }
.sd-sla-tt tbody th { font-weight: 500; }
.sd-sla-tt tbody th small { color: var(--muted); font-weight: 400; }
.sd-sla-tline { color: var(--muted); }
.sd-sla-older summary { color: var(--muted); cursor: pointer; font-size: var(--pj-t-meta); font-weight: 500; }
.sd-sla-older[open] summary { margin-bottom: 8px; }
.sd-sla-older .sd-log > li, .sd-sla-log > li { gap: 4px; }
.sd-sla-week > div { padding: 4px 0; }
.sd-sla-days { margin-top: 8px; }
.sd-sla-days > li { grid-template-columns: minmax(0, 1fr) auto; }
[data-sla-year] + [data-sla-year] { margin-top: 24px; }
[data-sla-year] .bh-sub { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sd-sla-missing-note { margin-top: 8px; }
.bh-dialog.sd-sla-win { max-width: 720px; }
.sd-sla-form fieldset { border: 0; margin: 0; min-width: 0; padding: 0; }
.sd-sla-prios { display: grid; gap: 8px; }
.sd-sla-form .sd-sla-prio { border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 8px; padding: 8px 16px 16px; }
.sd-sla-prio legend, .sd-sla-week-f legend { font-size: var(--pj-t-ui); font-weight: 700; padding: 0 4px; }
.sd-sla-prio legend small { color: var(--muted); font-weight: 400; }
.sd-sla-time { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sd-sla-tl { font-size: var(--pj-t-meta); font-weight: 500; min-width: 104px; }
.sd-sla-pair { align-items: center; display: inline-flex; flex-wrap: wrap; gap: 8px; }
.sd-sla-n { align-items: center; display: inline-flex; font-size: var(--pj-t-meta); gap: 4px; }
.sd-sla-n input[type="number"].bh-input { min-height: 40px; padding: 0 8px; text-align: right; width: 72px; }
.sd-sla-n input[type="time"].bh-input { min-height: 40px; padding: 0 8px; width: 144px; }
.sd-sla-none, .sd-sla-on { align-items: center; display: inline-flex; font-size: var(--pj-t-ui); gap: 8px; min-height: 40px; }
.sd-sla-none input, .sd-sla-on input { height: 18px; width: 18px; }
.sd-sla-on { font-weight: 500; min-width: 120px; }
.sd-sla-week-f { display: grid; gap: 4px; }
.sd-sla-day { align-items: center; border-bottom: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 4px 0; }
.sd-sla-day input:disabled { opacity: .55; }
.sd-sla-date.bh-input { max-width: 220px; min-height: 40px; }
.sd-sla-preview h3 { font-size: var(--pj-t-ui); font-weight: 700; margin: 8px 0 0; }
.sd-sla-preview h3:first-child { margin-top: 0; }
.sd-sla-preview p { margin: 0; }

/* OUB-S161 (OUB-207): the label "Klant ziet dit" of the confirmation window carries the diamond of the customer, in the new look only. The words stay --primary (as in the old look). The diamond (the
   shape of .bh-v.ruit, with the class t3-ruit next to it) is --violet pulled a fifth towards the text colour, so that it reads at 4.5 to 1 on the plane of a window in the dark too (plain --violet is 4.4 to 1 there). */
.bh-body.is-nieuw .t3-klant-nieuw { gap: var(--pj-s-2); }
.bh-body.is-nieuw .t3-klant-nieuw span.t3-ruit { background: color-mix(in srgb, var(--violet) 80%, var(--text)); }

/* OUB-S210: the personal menu of the shared shell (div.bh-menu.is-r.bh-ik) with what the Support Desk puts in it: the list under the line Meldingen. Only drawn with the new shell, so with the switch off none of this applies. */
.bh-body.is-nieuw .bh-userwrap > .bh-ik[hidden] { display: none; }
.bh-body.is-nieuw .bh-userwrap > .bh-ik { max-height: calc(100vh - 80px); overflow-y: auto; top: calc(100% + var(--pj-s-2)); width: min(340px, calc(100vw - var(--pj-s-4))); }
.bh-body.is-nieuw .bh-ik .bh-seg { flex: none; white-space: nowrap; }
.bh-body.is-nieuw .bh-ik .sd-acc-blok { gap: var(--pj-s-2); padding: var(--pj-s-2) var(--pj-s-3); }
.bh-body.is-nieuw .bh-ik .sd-acc-blok[hidden] { display: none; }
.bh-body.is-nieuw .bh-ik [data-meldingen-teller] { background: var(--primary-soft); border-radius: var(--bh-r-pill); color: var(--text); font-size: var(--pj-t-meta); font-weight: 700; margin-left: auto; min-width: 20px; padding: 0 var(--pj-s-2); text-align: center; }
.bh-body.is-nieuw .bh-ik [data-meldingen-teller][hidden] { display: none; }
.bh-body.is-nieuw .bh-ik [data-meldingen-open]::after { border-bottom: 2px solid currentColor; border-right: 2px solid currentColor; content: ""; flex: none; height: 6px; transform: rotate(45deg); width: 6px; }
.bh-body.is-nieuw .bh-ik [data-meldingen-open][aria-expanded="true"]::after { transform: rotate(-135deg); }
.bh-body.is-nieuw .bh-ik [data-notif-list] a { display: grid; gap: 0; padding: var(--pj-s-2) var(--pj-s-3); width: auto; }
/* OUB-S210: the first image of the shared shell (src/browser/schil-eerste-beeld.ts writes the markup into every page, hidden). Nothing here applies without html[data-schil="1"], which public/schil-vroeg.js
   sets from the remembered stand and shell.ts confirms; without it the pages are as they were. The markup shows while the session is being checked (the waiting state) and for the two states that go wrong;
   the old standalone blocks give way to it. The attribute hidden of the schil.css rule `.bh-body [hidden]` is outweighed here by the selector, not by dropping the attribute. */
html[data-schil="1"] body:is([data-state="checking"], [data-state="required"], [data-state="denied"]) [data-schil-eerst][hidden] { display: flex !important; flex: 1 0 auto; flex-direction: column; }
html[data-schil="1"] .sd-eerst-midden { display: flex; flex: 1 0 auto; flex-direction: column; }
html[data-schil="1"] body[data-state="checking"] [data-eerst="wacht"][hidden],
html[data-schil="1"] body[data-state="required"] [data-eerst="required"][hidden],
html[data-schil="1"] body[data-state="denied"] [data-eerst="denied"][hidden] { display: flex !important; flex: 1 0 auto; flex-direction: column; }
html[data-schil="1"] [data-eerst] > .bh-komt { flex: 1 0 auto; }
html[data-schil="1"] [data-eerst] h3:focus { outline: none; }
html[data-schil="1"] body[data-state="required"] [data-required],
html[data-schil="1"] body[data-state="denied"] [data-denied] { display: none !important; }

/* ── OUB-S161 (pairs 6 and 7): Nieuw ticket, Koppelingen and Instellingen in the new look. Rule 11 of the specification: these three pages keep their layout and only get the look of the
   style, so there is no new view: the html is the same with and without the switch, and only these rules (each one on .bh-body.is-nieuw and on the data-page of one of the three pages)
   give the existing parts the tokens, letters, buttons, cards, tables, fields and space of public/stijl/. They hide nothing and move nothing: every block, field, link and button stays
   where it is today (tests/fixtures/<page>-inventaris.json). The band and the tree stay, as on these pages today. The page uses the full width; a form keeps a reading width of about
   75 characters; columns follow the width of the content (@container), never the window. Eerst dit has its edge all round (bh-next of the style), no stripe. One filled button. ── */

/* What the three pages share: Eerst dit low, the parts of the style for buttons, fields, cards and the states. */
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .bh-next { padding: var(--pj-s-3) var(--pj-s-5); gap: var(--pj-s-1) var(--pj-s-5); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .bh-next .bh-for { color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .bh-next .bh-do { font-size: var(--pj-t-lead); font-weight: 700; line-height: 1.3; max-width: 75ch; }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .bh-next .bh-why { color: var(--muted); font-size: var(--pj-t-ui); max-width: 75ch; }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .bh-next .bh-acts { grid-row: 2 / span 2; }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .bh-next .bh-acts .bh-btn { min-height: 40px; }

/* Buttons: .btn of today in the shape of the style. A plain .btn is the one filled button of its screen; ghost, sm and a retry are drawn with an edge. */
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .btn { gap: var(--pj-s-2); justify-content: center; min-height: 40px; padding: var(--pj-s-2) var(--pj-s-5); border: 1px solid transparent; border-radius: var(--bh-r-pill); background: var(--accent); color: var(--accent-ink); font-size: var(--pj-t-ui); font-weight: 700; line-height: 1.2; white-space: nowrap; }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .btn:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] :is(.btn.ghost, .btn.sm) { background: none; border-color: var(--line-strong); color: var(--text); font-weight: 500; }
/* A .btn.ghost of today also takes the rule .ghost of the loading blocks (a pulse without end, the ground of the band): in the new look a button does not pulse. */
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .btn.ghost { display: inline-flex; border-radius: var(--bh-r-pill); animation: none; }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] :is(.btn.ghost, .btn.sm):hover { background: var(--row-tint); border-color: var(--muted); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .btn.sm { min-height: 32px; padding: var(--pj-s-1) var(--pj-s-4); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .btn:is([disabled], .t3-btn-off) { background: var(--surface); border-color: var(--line-soft); color: var(--muted); cursor: not-allowed; }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-link-b { color: var(--primary); font-size: var(--pj-t-ui); font-weight: 500; }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-link-b:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Fields: the field of the style (bh-input), the label at 14, the help at 13 in grey. */
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .input { min-height: 40px; padding: 0 var(--pj-s-4); border: 1px solid var(--line-strong); border-radius: var(--bh-r-2); background: var(--surface-child); color: var(--text); font-size: var(--pj-t-body); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] textarea.input { min-height: 104px; padding: var(--pj-s-3) var(--pj-s-4); line-height: 1.45; }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .input:hover { border-color: var(--muted); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .input:focus-visible { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 1px; }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .input[disabled] { background: var(--surface); color: var(--muted); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .bh-field > :is(label, .lbl) { color: var(--text); font-size: var(--pj-t-ui); font-weight: 500; }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .bh-field :is(.help, .bh-help) { color: var(--muted); font-size: var(--pj-t-meta); line-height: 1.45; }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-search { gap: var(--pj-s-2); min-height: 40px; padding: 0 var(--pj-s-4); border: 1px solid var(--line-strong); border-radius: var(--bh-r-2); background: var(--surface-child); color: var(--muted); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-search:hover { border-color: var(--muted); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-search:focus-within { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 1px; }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-search input { font-size: var(--pj-t-body); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-check input { accent-color: var(--primary); width: 18px; height: 18px; }

/* Cards: a panel of today is a card of the style. */
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-panel { gap: var(--pj-s-3); padding: var(--pj-s-4) var(--pj-s-5); border: 1px solid var(--line-soft); border-radius: var(--bh-r-3); background: var(--card); box-shadow: var(--bh-shadow-1); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-panel > :is(h2, h3) { font-size: var(--pj-t-body); font-weight: 700; }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-panel .bh-facts > div { border-color: var(--line-soft); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-panel .bh-facts :is(dd small, small) { color: var(--muted); font-size: var(--pj-t-meta); }

/* A warning in a form: the alert of the style, an edge all round. */
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .callout.warn { padding: var(--pj-s-3) var(--pj-s-4); border: 1px solid color-mix(in srgb, var(--status-amber) 45%, var(--line)); border-radius: var(--bh-r-2); background: var(--status-amber-fill); color: var(--text); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .callout.warn p { max-width: 75ch; font-size: var(--pj-t-ui); line-height: 1.45; }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .callout.warn b { font-weight: 700; }

/* The states: a read that failed or a page that cannot be used here is one card; loading is the skeleton of today in the rounding of the style. */
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-problem { max-width: 75ch; gap: var(--pj-s-2); padding: var(--pj-s-4) var(--pj-s-5); border: 1px solid var(--line); border-radius: var(--bh-r-3); background: var(--card); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-problem h4 { font-size: var(--pj-t-body); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-problem p { color: var(--muted); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-skel i { border-radius: var(--bh-r-1); }
.bh-body.is-nieuw:is([data-page="nieuw-ticket"], [data-page="koppelingen"], [data-page="instellingen"]) [data-main] .sd-empty { color: var(--muted); font-size: var(--pj-t-ui); max-width: 75ch; }

/* ── Nieuw ticket: the form at a reading width of about 75 characters, Wat er gebeurt as a card beside it when both have room (about 420 px each, read on the middle of the page, bh-midden), under it otherwise. The pairs of fields
   (Contactpersoon and Klant en project, Kanaal and Type, Prioriteit and Behandelaar) stand side by side only when the form has room for two of about 270 px. ── */
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-newgrid { container: sd-nt / inline-size; grid-template-columns: minmax(0, 72ch); gap: var(--pj-s-5); justify-content: start; }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-fields { grid-template-columns: minmax(0, 1fr); gap: var(--pj-s-4) var(--pj-s-5); }
@container bh-midden (min-width: 864px) {
  .bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-newgrid { grid-template-columns: minmax(420px, 72ch) minmax(420px, 480px); }
}
@container sd-nt (min-width: 560px) and (max-width: 863px) {
  .bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container sd-nt (min-width: 1004px) {
  .bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-fields > .bh-field { gap: var(--pj-s-2); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-pickres { gap: 0; padding: var(--pj-s-1); border: 1px solid var(--line-soft); border-radius: var(--bh-r-2); background: var(--card); box-shadow: var(--bh-shadow-1); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-pickres a { gap: 0; padding: var(--pj-s-2) var(--pj-s-3); border-radius: var(--bh-r-1); color: var(--text); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-pickres a:first-child, .bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-pickres a:is(:hover, :focus-visible) { background: var(--primary-soft); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-pickres small { color: var(--muted); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-chosen { gap: 0; padding: var(--pj-s-2) var(--pj-s-4); border: 1px solid var(--line); border-radius: var(--bh-r-2); background: var(--surface-child); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-chosen b { font-size: var(--pj-t-ui); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-chosen span { color: var(--muted); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-pills { gap: var(--pj-s-2); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-pills button { min-height: 32px; padding: var(--pj-s-1) var(--pj-s-4); border: 1px solid var(--line-strong); border-radius: var(--bh-r-pill); background: none; color: var(--muted-strong); font-size: var(--pj-t-ui); font-weight: 500; }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-pills button:not([disabled]):hover { border-color: var(--muted); color: var(--text); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-pills button[aria-pressed="true"] { border-color: transparent; background: var(--primary-soft); color: var(--text); font-weight: 700; }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-dropzone { gap: var(--pj-s-1) var(--pj-s-3); padding: var(--pj-s-3) var(--pj-s-4); border: 1px solid var(--line-strong); border-radius: var(--bh-r-2); color: var(--muted-strong); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-dropzone:hover { border-color: var(--primary); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-dropzone .sd-muted { color: var(--muted); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-dropzone .sd-link-b { font-size: var(--pj-t-ui); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-check { display: block; color: var(--text); font-size: var(--pj-t-ui); line-height: 1.45; }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-check input { display: inline-block; margin: 0 var(--pj-s-2) 0 0; vertical-align: -4px; }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-check .sd-muted { color: var(--muted); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-newgrid > .sd-panel .bh-facts > div { grid-template-columns: 104px minmax(0, 1fr); padding: var(--pj-s-2) 0; }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-newgrid > .sd-panel .sd-check.t3-dim { opacity: 1; color: var(--muted-strong); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-newgrid > .sd-panel [data-files-wait] { color: var(--muted); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-newgrid > .sd-panel .sd-acts { gap: var(--pj-s-2); }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .sd-newgrid > .sd-panel .sd-acts .bh-btn { min-height: 40px; }
.bh-body.is-nieuw[data-page="nieuw-ticket"] [data-main] .bh-ready { gap: var(--pj-s-2) var(--pj-s-4); padding: var(--pj-s-3) var(--pj-s-4); border: 1px solid var(--line); border-radius: var(--bh-r-2); background: var(--card); }

/* ── Koppelingen: the row of filters in the shape of the style (a round search field, the chips), each list a card of rows, the groups of Contracten a heading and a card. The columns of
   a row follow the middle of the page (bh-midden): three for an organisation and five for a contract when there is room, two, then one. Bevestigen is the quiet button of the style
   (a row can have one, the page many: no filled button here). The column head of Contracten only stands above five columns, as today it only stands on a wide window. ── */
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-filterrow { gap: var(--pj-s-2); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-filterrow .sd-search { flex: 0 1 280px; min-height: 32px; border-color: var(--line); border-radius: var(--bh-r-pill); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-filterrow .sd-search input { font-size: var(--pj-t-meta); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-chip { gap: var(--pj-s-1); min-height: 32px; padding: var(--pj-s-1) var(--pj-s-3); border: 1px solid var(--line); border-radius: var(--bh-r-pill); background: none; color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-chip:hover { border-color: var(--muted); color: var(--text); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-chip:is([aria-pressed="true"], .on) { border-color: transparent; background: var(--primary-soft); color: var(--text); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-chip .bh-txt-muted { color: var(--muted); font-weight: 400; }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .bh-note { color: var(--muted); font-size: var(--pj-t-meta); max-width: 75ch; }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .bh-note > span { color: var(--text); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-state-note { color: var(--muted); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-auto { color: var(--muted); font-size: var(--pj-t-ui); }

/* The lists: a card, rows with a quiet line between them. */
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tl { padding: var(--pj-s-1) var(--pj-s-2); border: 1px solid var(--line-soft); border-radius: var(--bh-r-3); background: var(--card); box-shadow: var(--bh-shadow-1); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tl li { gap: var(--pj-s-2) var(--pj-s-4); padding: var(--pj-s-3) var(--pj-s-3); border-radius: var(--bh-r-2); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tl li + li { border-top: 1px solid var(--line-soft); border-radius: 0; }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tl .t { color: var(--text); font-size: var(--pj-t-ui); font-weight: 700; }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tl .t small { color: var(--muted); font-size: var(--pj-t-meta); font-weight: 400; }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-org-contacts { color: var(--muted); font-size: var(--pj-t-meta); line-height: 1.45; }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-org-acts { gap: var(--pj-s-2); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-org-what { color: var(--text); font-size: var(--pj-t-ui); font-weight: 500; }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-org-what small, .bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-org-acts > small { color: var(--muted); font-size: var(--pj-t-meta); font-weight: 400; }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-org-what a, .bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tl .sd-col a { color: var(--primary); font-weight: 500; }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .btn[data-org-confirm] { border-color: var(--line-strong); background: var(--primary-soft); color: var(--text); font-weight: 700; }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .btn[data-org-confirm]:hover { background: color-mix(in srgb, var(--primary-soft) 82%, var(--text)); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tag { padding: 0 var(--pj-s-2); border-color: var(--line); border-radius: var(--bh-r-pill); color: var(--muted); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tag.warn { border-color: color-mix(in srgb, var(--status-amber) 45%, var(--line)); background: var(--status-amber-fill); color: var(--text); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-more-row { padding-top: var(--pj-s-2); }

/* Contracten: a group per client, its name as a heading of the size of a part, the count in grey. */
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-cgroups { gap: var(--pj-s-5); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-cgroup { gap: var(--pj-s-2); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-cgroup .sec-h h2 { font-size: var(--pj-t-lead); font-weight: 700; letter-spacing: 0; }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-cgroup .sec-h .n { color: var(--muted); font-size: var(--pj-t-ui); font-weight: 500; }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-contract-head { padding: var(--pj-s-2) var(--pj-s-5); border-radius: var(--bh-r-2); background: var(--surface); color: var(--muted); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-col { color: var(--text); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-lv small, .bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-stamp { color: var(--muted); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .input.sd-sel { min-height: 32px; padding: 0 var(--pj-s-2); border-radius: var(--bh-r-1); font-size: var(--pj-t-ui); }

/* The columns of a row, on the width of the middle of the page. */
.bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tl.sd-org li, .bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tl.sd-contract li { grid-template-columns: minmax(0, 1fr); }
@container bh-midden (min-width: 640px) {
  .bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tl.sd-org li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tl.sd-org li > .t { grid-row: span 2; }
  .bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tl.sd-contract li { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tl.sd-contract li > .t { grid-column: 1 / -1; }
}
@container bh-midden (min-width: 900px) {
  .bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tl.sd-org li { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.8fr); }
  .bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tl.sd-org li > .t { grid-row: auto; }
  .bh-body.is-nieuw[data-page="koppelingen"] [data-main] :is(.sd-contract-head, .sd-tl.sd-contract li) { grid-template-columns: minmax(0, 1.5fr) 150px minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.3fr); }
  .bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-tl.sd-contract li > .t { grid-column: auto; }
}
@container bh-midden (max-width: 899px) {
  .bh-body.is-nieuw[data-page="koppelingen"] [data-main] .sd-contract-head { display: none; }
}

/* ── Instellingen: every tab as it is, in the parts of the style. A part (sec) keeps its heading of the style; each list, table and block of rules is a card; the cards of a row
   (the SLA profiles, the proefklanten) share one grid: a column of at least about 420 px, the cards of a row one top and one height. The folds (Historie, Hoe de klok telt, Klant toevoegen,
   Stand van de proef) are one card of rows. The tag Voorlopig, the switches of Automatisch and the block of the Atlassian account take the tokens. On Proefklanten the button of
   Eerst dit is the one filled button: Toevoegen aan de lijst then has an edge. SLA-profielen and Kalender of OUB-S119 look the same with the switch SUPPORT_SLA_INSTELLEN on and off. ── */
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sec { gap: var(--pj-s-3); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sec-h { gap: var(--pj-s-2) var(--pj-s-4); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sec-h p { color: var(--muted); font-size: var(--pj-t-ui); max-width: 75ch; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-tag { padding: 0 var(--pj-s-2); border-radius: var(--bh-r-pill); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-tag.warn { border-color: color-mix(in srgb, var(--status-amber) 45%, var(--line)); background: var(--status-amber-fill); color: var(--text); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-state-note { color: var(--muted); font-size: var(--pj-t-ui); max-width: 75ch; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .bh-note { color: var(--muted); font-size: var(--pj-t-meta); max-width: 75ch; }

/* Cards: the old table of profiles, the rules of the clock, the write modes, the Atlassian block, the rules of Automatisch, the folds. */
.bh-body.is-nieuw[data-page="instellingen"] [data-main] :is(.pj-wrap, .sd-rules, .sd-ro, .sd-auto-l, .sd-folds) { border: 1px solid var(--line-soft); border-radius: var(--bh-r-3); background: var(--card); box-shadow: var(--bh-shadow-1); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] :is(.sd-rules, .sd-ro, .sd-auto-l) > div + div, .bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-part + .sd-part { border-top-color: var(--line-soft); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] :is(.sd-rules, .sd-ro) > div { padding: var(--pj-s-3) var(--pj-s-5); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] :is(.sd-rules, .sd-ro) .k { color: var(--muted); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] :is(.sd-rules, .sd-ro) .v { color: var(--text); font-size: var(--pj-t-ui); max-width: 75ch; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-linkbox { max-width: 75ch; gap: var(--pj-s-3); padding: var(--pj-s-4) var(--pj-s-5); border: 1px solid var(--line-soft); border-radius: var(--bh-r-3); background: var(--card); box-shadow: var(--bh-shadow-1); color: var(--text); font-size: var(--pj-t-ui); }

/* The old table of profiles (the switch off, or an older platform): the head of the style in sand, quiet lines, no stripes. */
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .pj-wrap { padding: var(--pj-s-2); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .pj-table thead th { background: var(--surface); color: var(--muted); font-size: var(--pj-t-meta); font-weight: 500; border-bottom: 0; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .pj-table :is(th, td) { border-bottom-color: var(--line-soft); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .pj-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .pj-table tbody tr:nth-child(even) td { background-image: none; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-sla-t td.c { white-space: nowrap; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .pj-table tbody td:first-child { background-color: var(--card); background-image: none; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .pj-table tbody tr:hover td { background-image: linear-gradient(var(--row-tint), var(--row-tint)); }

/* Automatisch: a row per rule, its switch in the colours of the style. */
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-auto-l > div { padding: var(--pj-s-3) var(--pj-s-5); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-auto-l b { color: var(--text); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-auto-l span.d { color: var(--muted); font-size: var(--pj-t-meta); max-width: 75ch; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-auto-l small { color: var(--muted); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-sw { background: var(--line-strong); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-sw::after { background: var(--card); box-shadow: none; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-sw.on { background: var(--primary); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-sw:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* The folds: one card of rows, the name, the count and the line, the content under it. */
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-part summary { padding-block: var(--pj-s-3); border-radius: var(--bh-r-2); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-part summary:hover { background: var(--row-tint); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-part summary b { color: var(--text); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-part summary .line { color: var(--muted); font-size: var(--pj-t-meta); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-part-b { gap: var(--pj-s-3); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-part-b .sd-rules { box-shadow: none; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-part-b .sd-fields { max-width: 72ch; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-picklist { padding: var(--pj-s-1); border: 1px solid var(--line-soft); border-radius: var(--bh-r-2); background: var(--card); box-shadow: var(--bh-shadow-1); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-picklist button { border-radius: var(--bh-r-1); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-picklist button small { color: var(--muted); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-form-error { color: var(--status-red); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main]:has(.bh-next .bh-acts .bh-btn) [data-pilot-submit]:not([disabled]) { border-color: var(--line-strong); background: none; color: var(--text); font-weight: 500; }

/* One grid of cards: the SLA profiles and the proefklanten, a column of at least about 420 px, the cards of a row one height. */
.bh-body.is-nieuw[data-page="instellingen"] [data-main] :is(.sd-sla-list, .sd-cols[data-pilot-list]) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: var(--pj-s-5); align-items: stretch; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-sla-list { margin-top: var(--pj-s-1); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] :is(.sd-sla-prof, [data-pilot-client]) { display: flex; flex-direction: column; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] :is(.sd-sla-prof, [data-pilot-client]) > .sd-acts { margin-top: auto; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-part-b .sd-fields > .sd-acts { align-self: end; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-panel > h3 small { color: var(--muted); font-size: var(--pj-t-meta); font-weight: 400; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-sla-tw { border-color: var(--line-soft); border-radius: var(--bh-r-2); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-sla-tt thead th { background: var(--surface); color: var(--muted); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-sla-tt tbody tr { border-top-color: var(--line-soft); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-sla-tt tbody th small, .bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-sla-tline { color: var(--muted); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-sla-older summary { color: var(--primary); font-size: var(--pj-t-ui); }

/* Kalender: the week as facts, the days off per year as the list of the style. */
.bh-body.is-nieuw[data-page="instellingen"] [data-main] [data-sla-hours] > .sd-panel { max-width: 75ch; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] [data-sla-days] { max-width: 75ch; }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] [data-sla-year] .bh-sub h3 { font-size: var(--pj-t-body); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] [data-sla-year] .bh-sub p { color: var(--muted); font-size: var(--pj-t-ui); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-sla-days { padding: var(--pj-s-1) var(--pj-s-2); border: 1px solid var(--line-soft); border-radius: var(--bh-r-3); background: var(--card); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-sla-days > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--pj-s-1) var(--pj-s-4); padding: var(--pj-s-2) var(--pj-s-3); }
.bh-body.is-nieuw[data-page="instellingen"] [data-main] .sd-sla-days small { color: var(--muted); font-size: var(--pj-t-meta); }
