/* Aanvulling ScouteX/OCV (sx-). De basis (ds-) staat in app/static/ds/ds-components.css en is een kopie van Mathison/design-system, versie en commit in ds-manifest.json. Laadvolgorde: ds/tokens/complite.css, ds/ds-components.css, dit bestand, ocv-sidebar-workspace.css.
   Hernoeming #23 (BV-11 geval b, op main 16d8162): wat in de basis staat, is hier vervallen; alleen RouteRail, FlowStep, Classification, SourceRef, Finding en .sx-route blijven, ongewijzigd behalve het token --font-sans (nu --font-body) en --rail-width (nu --sx-rail-width, hieronder). De regels van het vrije vak van de tegels staan hier niet meer (#392); de globale regels `body` en `:focus-visible` van de bron staan hier niet (zie ds-reset.css in de basis; OCV laadt die niet). */
:root { --sx-rail-width: 288px; }

/* FlowStep: een stap of module als cel */
.sx-flowstep { display: flex; flex-direction: column; gap: var(--space-3); padding: 20px 20px var(--space-5); border: 0; border-left: var(--stroke-1) solid var(--ink); border-radius: var(--radius-none); background: transparent; color: var(--ink); text-align: left; font: inherit; width: 100%; min-height: 100%; cursor: pointer; }
.sx-flowstep:first-child { border-left: 0; }
.sx-flowstep__num { font-size: 56px; line-height: 56px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.sx-flowstep__title { font-weight: 600; font-size: 20px; line-height: 28px; }
.sx-flowstep__text { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.sx-flowstep__state { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.sx-flowstep[data-state="afgerond"] .sx-flowstep__num { color: var(--ink); }
.sx-flowstep[data-state="afgerond"] .sx-flowstep__state { color: var(--success); }
.sx-flowstep[data-state="bezig"] { background: var(--accent); color: var(--on-accent); }
.sx-flowstep[data-state="bezig"] .sx-flowstep__num, .sx-flowstep[data-state="bezig"] .sx-flowstep__state, .sx-flowstep[data-state="bezig"] .sx-flowstep__text { color: var(--on-accent); }

/* Classification: cirkelteken */
.sx-class { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/22px var(--font-body); white-space: nowrap; }
.sx-class::before { content: ""; width: 16px; height: 16px; border: var(--stroke-2) solid var(--ink); border-radius: var(--radius-round); flex: none; }
.sx-class--feit::before { background: var(--ink); }
.sx-class--deductie::before { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.sx-class--signaal::before { background: radial-gradient(circle, var(--ink) 30%, transparent 32%); }
.sx-class--aandacht::before { background: linear-gradient(0deg, var(--ink) 50%, transparent 50%); }
.sx-class--onvoldoende { color: var(--ink-muted); }
.sx-class--onvoldoende::before { border-color: var(--ink-muted); }
.sx-class--mens::before { background: var(--accent); }

/* Route */
.sx-route { display: inline-grid; grid-template-columns: repeat(4, 14px); gap: 3px; vertical-align: middle; margin-right: 10px; }
.sx-route i { height: 14px; border: var(--stroke-2) solid var(--ink); }
.sx-route i.f { background: var(--ink); }
.sx-route i.m { background: var(--accent); }

/* RouteRail */
.sx-rail { width: var(--sx-rail-width); max-width: 100%; box-sizing: border-box; background: var(--brand-deep); color: var(--on-deep); display: flex; flex-direction: column; border-right: var(--stroke-2) solid var(--deep-line); }
.sx-rail__brand { padding: var(--space-6) var(--space-5) 28px; display: flex; flex-direction: column; gap: 2px; font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -.01em; }
.sx-rail__brand small { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-deep-muted); }
.sx-rail__cap { padding: 0 var(--space-5) var(--space-3); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-deep-muted); }
.sx-rail__step { display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; padding: 14px var(--space-5); color: var(--on-deep); text-decoration: none; border-top: var(--stroke-1) solid var(--deep-line); font-size: 17px; line-height: 24px; }
.sx-rail__step b { font-size: 28px; line-height: 32px; font-weight: 400; }
.sx-rail__step:hover { background: var(--deep-hover); }
.sx-rail__step[aria-current] { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.sx-rail__step--sub { padding: var(--space-2) var(--space-5); font-size: 15px; line-height: 22px; border-top: 0; }
.sx-rail__step--sub b { font-size: 15px; line-height: 22px; font-weight: 600; padding-left: 20px; }
.sx-rail__mark { width: 10px; height: 10px; background: var(--accent); align-self: center; }
.sx-rail__step[aria-current] .sx-rail__mark { background: var(--on-accent); }
.sx-rail__step:focus-visible { outline-color: var(--accent); outline-offset: -4px; }
.sx-rail__step[aria-current]:focus-visible { outline-color: var(--on-accent); }

/* SourceRef */
.sx-source { display: inline-flex; align-items: center; gap: var(--space-2); padding: 2px var(--space-2); border: var(--stroke-1) solid var(--line-strong); border-radius: var(--radius-none); background: var(--page); color: var(--ink); text-decoration: none; font-family: var(--font-mono); font-size: 13px; line-height: 20px; max-width: 100%; }
.sx-source__id { color: var(--ink-muted); }
.sx-source:hover { background: var(--ink); color: var(--ink-inverse); }
.sx-source:hover .sx-source__id { color: var(--ink-inverse); }

/* Finding */
.sx-finding { display: grid; gap: var(--space-2); padding: var(--space-4) 0; border-top: var(--stroke-1) solid var(--ink); }
.sx-finding__head { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.sx-finding__title { font-size: 20px; line-height: 28px; font-weight: 600; margin: 0; }
.sx-finding__body { font-size: 15px; line-height: 22px; margin: 0; max-width: 65ch; }
.sx-finding__refs { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Smal scherm: de route-rail wordt een band, de stappen een kolom */
@media (max-width: 900px) {
  .sx-flowstep { border-left: 0; border-top: var(--stroke-1) solid var(--ink); }
  .sx-flowstep:first-child { border-top: 0; }
  .sx-rail { width: 100%; border-right: 0; }
}
