/* SmartAICampus: gedeeld ontwerp voor de app, de docentpagina en het dashboard.
   Bron: ui/ontwerp.css. De kopieen in app/toledo/css/ en backend-spring/docent/ komen
   van `npm run ui:sync` (ontwerp.test.js controleert dat ze gelijk zijn).

   Uitgangspunten: rustig, zakelijk, modern; neutraal en eigen (geen KU Leuven-logo of
   huiskleuren, B8); status = icoon + kleur + tekst; systeemlettertypes (de CSP van
   /docent/** laat geen webfonts toe); alle kleuren als token, zodat een donkere modus
   later enkel tokens hoeft te overschrijven (geen hex buiten dit blok).
   Iconen: zie iconen.css (.ic en .ic-voor). Let op: --ic erft; een .ic of .ic-voor zonder
   ic-<naam> toont het icoon van de ouder, of een effen vlak als er geen is. */

:root {
  /* Kleur: basis (de stijl van de docentpagina; enkel het contrast is verbeterd) */
  --kleur-accent: #1d8db0; /* randen, decoratie, grote iconen; wit erop is maar 3,8:1 */
  --kleur-primair: #17728f; /* knopvulling en links (wit erop 5,4:1) */
  --kleur-primair-hover: #125a72;
  --kleur-inkt: #2c3e50; /* koppen */
  --kleur-tekst: #333333;
  --kleur-tekst-zacht: #566573;
  --kleur-achtergrond: #f4f6f9;
  --kleur-vlak: #ffffff;
  --kleur-lijn: #dde3e8;
  --kleur-lijn-sterk: #ccd3da;
  --kleur-op-donker: #ffffff; /* tekst op primair, gevaar en ok */
  --kleur-uitgeschakeld: #66737a; /* wit erop >= 4,5:1: ook een bezige knop (aria-busy + disabled) moet leesbaar zijn */
  --kleur-gevaar: #c0392b; /* knopvulling (wit erop 5,4:1) */
  --kleur-gevaar-hover: #a93226;

  /* Kleur: status (tekst / vlak / rand; elk paar >= 4,5:1) */
  --kleur-ok: #196f3d;
  --kleur-ok-vlak: #e8f8f0;
  --kleur-ok-rand: #27ae60;
  --kleur-waarschuwing: #7e5109;
  --kleur-waarschuwing-vlak: #fef5e7;
  --kleur-waarschuwing-rand: #f39c12;
  --kleur-fout: #922b21;
  --kleur-fout-vlak: #fdecea;
  --kleur-fout-rand: #c0392b;
  --kleur-info: #125a72;
  --kleur-info-vlak: #e8f4f8;
  --kleur-info-rand: #1d8db0;
  --kleur-handmatig: #6c3483; /* handmatig aanwezig: altijd gestippeld, duidelijk anders dan automatisch */
  --kleur-handmatig-vlak: #fbf7fd;
  --kleur-neutraal: #566573;
  --kleur-neutraal-vlak: #ecf0f1;
  --kleur-neutraal-rand: #95a5a6;

  /* Typografie */
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Roboto Mono", monospace;
  --tekst-klein: 0.875rem; /* 14 px */
  --tekst-basis: 1rem; /* 16 px: ook in de app, anders zoomt Android in op een veld */
  --tekst-groot: 1.125rem; /* 18 px */
  --kop-3: 1.375rem; /* 22 px */
  --kop-2: 1.75rem; /* 28 px */
  --kop-1: 2.25rem; /* 36 px */

  /* Ruimte, hoeken, schaduw */
  --ruimte-1: 4px;
  --ruimte-2: 8px;
  --ruimte-3: 12px;
  --ruimte-4: 16px;
  --ruimte-5: 24px;
  --ruimte-6: 32px;
  --ruimte-7: 48px;
  --hoek-s: 6px;
  --hoek-m: 12px;
  --hoek-pil: 999px;
  --schaduw-kaart: 0 10px 30px rgba(0, 0, 0, 0.05);
  --schaduw-dialoog: 0 20px 50px rgba(0, 0, 0, 0.2);
  --kleur-achterlaag: rgba(44, 62, 80, 0.45);

  /* Mobiel */
  --raakvlak: 44px; /* minimale hoogte van elke knop en elk veld */
}

/* ---------- Basis ---------- */

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--tekst-basis);
  line-height: 1.5;
  color: var(--kleur-tekst);
  background: var(--kleur-achtergrond);
  -webkit-text-size-adjust: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--kleur-inkt);
  line-height: 1.25;
  margin: 0 0 var(--ruimte-2);
}
p {
  margin: 0 0 var(--ruimte-3);
}
a {
  color: var(--kleur-primair);
}
[hidden],
.hidden {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--kleur-accent);
  outline-offset: 2px;
}
.tekst-klein {
  font-size: var(--tekst-klein);
}
.tekst-zacht {
  color: var(--kleur-tekst-zacht);
}
.subtitel {
  color: var(--kleur-tekst-zacht);
  margin: 0 0 var(--ruimte-5);
}

/* ---------- Opbouw ---------- */

/* Mobiel scherm met veilige randen (notch, gebaarbalk) */
.scherm {
  max-width: 480px;
  margin: 0 auto;
  padding: max(var(--ruimte-4), env(safe-area-inset-top)) max(var(--ruimte-4), env(safe-area-inset-right))
    max(var(--ruimte-6), env(safe-area-inset-bottom)) max(var(--ruimte-4), env(safe-area-inset-left));
}
/* Scherm met een vaste tabbalk onderaan (zie .tabbalk): ruimte, zodat de inhoud er niet onder valt */
.scherm.met-tabbalk {
  padding-bottom: calc(var(--raakvlak) + var(--ruimte-5) + var(--ruimte-4) + env(safe-area-inset-bottom));
}
.stapel {
  display: flex;
  flex-direction: column;
  gap: var(--ruimte-3);
}
.rij {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ruimte-2);
}

/* ---------- Knop ---------- */

.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: var(--raakvlak);
  padding: var(--ruimte-2) var(--ruimte-5);
  border: 1px solid transparent;
  border-radius: var(--hoek-s);
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.knop.primair {
  background: var(--kleur-primair);
  color: var(--kleur-op-donker);
}
.knop.primair:hover {
  background: var(--kleur-primair-hover);
}
.knop.secundair {
  background: var(--kleur-vlak);
  color: var(--kleur-primair);
  border-color: var(--kleur-primair);
}
.knop.secundair:hover {
  background: var(--kleur-primair);
  color: var(--kleur-op-donker);
}
.knop.gevaar {
  background: var(--kleur-gevaar);
  color: var(--kleur-op-donker);
}
.knop.gevaar:hover {
  background: var(--kleur-gevaar-hover);
}
.knop.tekst {
  background: none;
  color: var(--kleur-primair);
  padding-left: var(--ruimte-2);
  padding-right: var(--ruimte-2);
}
.knop.blok {
  display: flex;
  width: 100%;
}
.knop.klein {
  min-height: 36px;
  padding: var(--ruimte-1) var(--ruimte-3);
  font-size: var(--tekst-klein);
}
@media (pointer: coarse) {
  .knop.klein {
    min-height: var(--raakvlak);
  }
}
.knop:disabled,
.knop:disabled:hover {
  background: var(--kleur-uitgeschakeld);
  border-color: var(--kleur-uitgeschakeld);
  color: var(--kleur-op-donker);
  cursor: default;
}
.knop.ic-voor::before {
  margin-right: var(--ruimte-2);
}
/* Bezig: het icoon wordt een draaiende spinner en tikken doet niets; de disabled-prop
   blijft het echte slot (dubbel tikken blokkeren). */
.knop[aria-busy="true"] {
  pointer-events: none;
}
.knop[aria-busy="true"]::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  margin-right: var(--ruimte-2);
  background-color: currentColor;
  -webkit-mask: var(--ic-loader-circle) center / contain no-repeat;
  mask: var(--ic-loader-circle) center / contain no-repeat;
  animation: ontwerp-draai 1s linear infinite;
}

/* ---------- Kaart ---------- */

.kaart {
  box-sizing: border-box;
  background: var(--kleur-vlak);
  border-top: 5px solid var(--kleur-accent);
  border-radius: var(--hoek-m);
  box-shadow: var(--schaduw-kaart);
  padding: var(--ruimte-5);
}
.kaart.ok {
  border-top-color: var(--kleur-ok-rand);
}
.kaart.waarschuwing {
  border-top-color: var(--kleur-waarschuwing-rand);
}
.kaart.fout {
  border-top-color: var(--kleur-fout-rand);
}

/* ---------- Mededeling (icoon + kleur + titel + tekst + wat nu) ---------- */

.mededeling {
  --md-tekst: var(--kleur-info);
  --md-vlak: var(--kleur-info-vlak);
  --md-rand: var(--kleur-info-rand);
  --ic: var(--ic-info);
  display: flex;
  gap: var(--ruimte-3);
  align-items: flex-start;
  padding: var(--ruimte-3) var(--ruimte-4);
  border-left: 5px solid var(--md-rand);
  border-radius: var(--hoek-s);
  background: var(--md-vlak);
  color: var(--md-tekst);
}
.mededeling::before {
  content: "";
  flex: none;
  width: 1.5em;
  height: 1.5em;
  margin-top: 0.1em;
  background-color: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}
.mededeling.ok {
  --md-tekst: var(--kleur-ok);
  --md-vlak: var(--kleur-ok-vlak);
  --md-rand: var(--kleur-ok-rand);
  --ic: var(--ic-circle-check);
}
.mededeling.waarschuwing {
  --md-tekst: var(--kleur-waarschuwing);
  --md-vlak: var(--kleur-waarschuwing-vlak);
  --md-rand: var(--kleur-waarschuwing-rand);
  --ic: var(--ic-triangle-alert);
}
.mededeling.fout {
  --md-tekst: var(--kleur-fout);
  --md-vlak: var(--kleur-fout-vlak);
  --md-rand: var(--kleur-fout-rand);
  --ic: var(--ic-circle-x);
}
.mededeling.bezig {
  --ic: var(--ic-loader-circle);
}
.mededeling.bezig::before {
  animation: ontwerp-draai 1s linear infinite;
}
.mededeling-inhoud {
  flex: 1;
  min-width: 0;
}
.mededeling-titel {
  margin: 0;
  font-weight: 700;
}
.mededeling-tekst {
  margin: var(--ruimte-1) 0 0;
}
.mededeling .knop {
  margin-top: var(--ruimte-3);
}
/* Sluitknop rechtsboven in een mededeling (een x, met aria-label) */
.mededeling .mededeling-sluit {
  flex: none;
  min-height: 36px;
  margin: -6px -8px 0 0;
  padding: var(--ruimte-1) var(--ruimte-2);
  color: inherit;
}
.mededeling-sluit .ic {
  width: 1.25em;
  height: 1.25em;
}

/* ---------- Status: één regel met icoon + kleur + tekst ---------- */

.status {
  --st-kleur: var(--kleur-tekst-zacht);
  --ic: var(--ic-info);
  display: flex;
  align-items: flex-start;
  gap: var(--ruimte-2);
  margin: 0;
  font-weight: 600;
  color: var(--st-kleur);
}
.status::before {
  content: "";
  flex: none;
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.1em;
  background-color: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}
.status[data-status="ok"] {
  --st-kleur: var(--kleur-ok);
  --ic: var(--ic-circle-check);
}
.status[data-status="bezig"] {
  --st-kleur: var(--kleur-primair);
  --ic: var(--ic-loader-circle);
}
.status[data-status="bezig"]::before {
  animation: ontwerp-draai 1s linear infinite;
}
.status[data-status="waarschuwing"] {
  --st-kleur: var(--kleur-waarschuwing);
  --ic: var(--ic-triangle-alert);
}
.status[data-status="fout"] {
  --st-kleur: var(--kleur-fout);
  --ic: var(--ic-circle-x);
}
/* Nodestatus: actief (uitzenden) en uit */
.status[data-status="actief"] {
  --st-kleur: var(--kleur-ok);
  --ic: var(--ic-radio);
}
.status[data-status="uit"] {
  --ic: var(--ic-power);
}

/* ---------- Badge ---------- */

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--hoek-pil);
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
  background: var(--kleur-neutraal-vlak);
  color: var(--kleur-neutraal);
}
.badge.ok {
  background: var(--kleur-ok-vlak);
  color: var(--kleur-ok);
}
.badge.waarschuwing {
  background: var(--kleur-waarschuwing-vlak);
  color: var(--kleur-waarschuwing);
}
.badge.fout {
  background: var(--kleur-fout-vlak);
  color: var(--kleur-fout);
}
.badge.info {
  background: var(--kleur-info-vlak);
  color: var(--kleur-info);
}
.badge.vol-ok {
  background: var(--kleur-ok);
  color: var(--kleur-op-donker);
}
.badge.vol-fout {
  background: var(--kleur-gevaar);
  color: var(--kleur-op-donker);
}
.badge.handmatig {
  background: var(--kleur-vlak);
  color: var(--kleur-handmatig);
  border: 2px dashed var(--kleur-handmatig);
}
.badge.ongeldig {
  background: var(--kleur-vlak);
  color: var(--kleur-fout);
  border: 2px solid var(--kleur-fout);
}
/* Icoon per toon: status is nooit enkel kleur */
.badge.ok::before,
.badge.vol-ok::before,
.badge.waarschuwing::before,
.badge.fout::before,
.badge.vol-fout::before,
.badge.info::before,
.badge.handmatig::before,
.badge.ongeldig::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.35em;
  vertical-align: -0.15em;
  background-color: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}
.badge.ok,
.badge.vol-ok {
  --ic: var(--ic-circle-check);
}
.badge.waarschuwing {
  --ic: var(--ic-triangle-alert);
}
.badge.fout,
.badge.vol-fout {
  --ic: var(--ic-circle-x);
}
.badge.info {
  --ic: var(--ic-info);
}
.badge.handmatig {
  --ic: var(--ic-hand);
}
.badge.ongeldig {
  --ic: var(--ic-ban);
}

/* ---------- Kerncijfers: een paar grote getallen i.p.v. een rij badges ---------- */

.cijfers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ruimte-3);
}
.cijfer {
  --cf-rand: var(--kleur-neutraal-rand);
  flex: 1 1 150px;
  box-sizing: border-box;
  padding: var(--ruimte-3) var(--ruimte-4);
  background: var(--kleur-vlak);
  border-left: 5px solid var(--cf-rand);
  border-radius: var(--hoek-m);
  box-shadow: var(--schaduw-kaart);
}
.cijfer[data-status="ok"] {
  --cf-rand: var(--kleur-ok-rand);
}
.cijfer[data-status="waarschuwing"] {
  --cf-rand: var(--kleur-waarschuwing-rand);
}
.cijfer[data-status="fout"] {
  --cf-rand: var(--kleur-fout-rand);
}
.cijfer[data-status="info"] {
  --cf-rand: var(--kleur-info-rand);
}
.cijfer-waarde {
  font-size: var(--kop-2);
  font-weight: 700;
  line-height: 1.1;
  color: var(--kleur-inkt);
}
.cijfer-label {
  font-weight: 600;
  color: var(--kleur-tekst);
}
.cijfer-sub {
  font-size: var(--tekst-klein);
  color: var(--kleur-tekst-zacht);
}

/* ---------- Details: inklapbaar blok voor technische informatie ---------- */

.details {
  margin-top: var(--ruimte-3);
  padding-top: var(--ruimte-1);
  border-top: 1px solid var(--kleur-lijn);
}
.details > summary {
  display: flex;
  align-items: center;
  gap: var(--ruimte-2);
  min-height: var(--raakvlak);
  font-weight: 600;
  color: var(--kleur-primair);
  cursor: pointer;
  list-style: none;
}
.details > summary::-webkit-details-marker {
  display: none;
}
.details > summary::before {
  content: "";
  flex: none;
  width: 1.25em;
  height: 1.25em;
  background-color: currentColor;
  -webkit-mask: var(--ic-chevron-down) center / contain no-repeat;
  mask: var(--ic-chevron-down) center / contain no-repeat;
  transition: transform 0.2s;
}
.details[open] > summary::before {
  transform: rotate(180deg);
}

/* ---------- Stappen (QR controleren, locatie bevestigen) ---------- */

.stappen {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stap {
  --stap-kleur: var(--kleur-tekst-zacht);
  --ic: var(--ic-clock);
  display: flex;
  align-items: center;
  gap: var(--ruimte-3);
  padding: var(--ruimte-2) 0;
  color: var(--stap-kleur);
}
.stap::before {
  content: "";
  flex: none;
  width: 1.5em;
  height: 1.5em;
  background-color: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}
.stap-titel {
  margin: 0;
  font-size: var(--tekst-groot);
  color: inherit;
}
.stap[data-status="bezig"] {
  --stap-kleur: var(--kleur-primair);
  --ic: var(--ic-loader-circle);
}
.stap[data-status="bezig"]::before {
  animation: ontwerp-draai 1s linear infinite;
}
.stap[data-status="klaar"] {
  --stap-kleur: var(--kleur-ok);
  --ic: var(--ic-circle-check);
}
.stap[data-status="fout"] {
  --stap-kleur: var(--kleur-fout);
  --ic: var(--ic-circle-x);
}

/* ---------- Voortgang: spoor + balk, status als tekst eronder ---------- */

.voortgang {
  --vg-kleur: var(--kleur-neutraal);
  --ic: var(--ic-clock);
}
.voortgang[data-status="bezig"] {
  --vg-kleur: var(--kleur-primair);
  --ic: var(--ic-loader-circle);
}
.voortgang[data-status="ok"] {
  --vg-kleur: var(--kleur-ok);
  --ic: var(--ic-circle-check);
}
.voortgang[data-status="waarschuwing"] {
  --vg-kleur: var(--kleur-waarschuwing);
  --ic: var(--ic-triangle-alert);
}
.voortgang[data-status="fout"] {
  --vg-kleur: var(--kleur-fout);
  --ic: var(--ic-circle-x);
}
.voortgang[data-status="info"] {
  --vg-kleur: var(--kleur-info);
  --ic: var(--ic-info);
}
.voortgang-spoor {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--kleur-neutraal-rand);
  border-radius: var(--hoek-pil);
  background: var(--kleur-neutraal-vlak);
}
.voortgang-balk {
  width: var(--voortgang, 0%);
  height: 100%;
  background: var(--vg-kleur);
  border-radius: var(--hoek-pil);
  transition: width 0.4s ease;
}
/* Nog geen meting: een balk die heen en weer schuift */
.voortgang-spoor[data-onbepaald="true"] .voortgang-balk {
  width: 35%;
  animation: ontwerp-schuif 1.4s ease-in-out infinite alternate;
}
.voortgang-tekst {
  display: flex;
  align-items: flex-start;
  gap: var(--ruimte-2);
  margin: var(--ruimte-2) 0 0;
  font-weight: 600;
  color: var(--vg-kleur);
}
.voortgang-tekst::before {
  content: "";
  flex: none;
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.1em;
  background-color: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}

/* ---------- Lijst (medestudenten in de buurt) ---------- */

.lijst {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lijst li {
  display: flex;
  align-items: center;
  gap: var(--ruimte-2);
  padding: var(--ruimte-2) 0;
  border-bottom: 1px solid var(--kleur-lijn);
}
.lijst li:last-child {
  border-bottom: 0;
}
.lijst li.ok {
  color: var(--kleur-ok);
}
.lijst li.leeg {
  color: var(--kleur-tekst-zacht);
}
/* Regel met een titel en een subregel links en een badge rechts (bv. de geschiedenis in de app) */
.lijst li.regel {
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--ruimte-3);
}
.regel-tekst {
  flex: 1;
  min-width: 0;
}
.regel-titel {
  font-weight: 600;
  color: var(--kleur-inkt);
  overflow-wrap: anywhere;
}
.regel-sub {
  font-size: var(--tekst-klein);
  color: var(--kleur-tekst-zacht);
  overflow-wrap: anywhere;
}
.lijst-kop {
  margin: var(--ruimte-4) 0 var(--ruimte-1);
  font-size: var(--tekst-klein);
  font-weight: 600;
  color: var(--kleur-tekst-zacht);
  text-transform: capitalize;
}

/* ---------- Tabbalk: vast onderaan, twee tot vier bestemmingen met icoon boven de tekst ---------- */

.tabbalk {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--kleur-vlak);
  border-top: 1px solid var(--kleur-lijn);
}
.tab {
  flex: 1;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: calc(var(--raakvlak) + var(--ruimte-4));
  padding: var(--ruimte-1) var(--ruimte-2);
  border: 0;
  border-top: 3px solid transparent;
  background: none;
  color: var(--kleur-tekst-zacht);
  font: inherit;
  font-size: var(--tekst-klein);
  font-weight: 600;
  cursor: pointer;
}
.tab.ic-voor::before {
  width: 1.5em;
  height: 1.5em;
  margin-right: 0;
}
.tab[aria-current="page"] {
  color: var(--kleur-primair);
  border-top-color: var(--kleur-primair);
}

/* ---------- Velden ---------- */

.veld-label {
  display: block;
  margin: 0 0 var(--ruimte-1);
  font-weight: 600;
  color: var(--kleur-inkt);
}
.veld {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--raakvlak);
  padding: var(--ruimte-2) var(--ruimte-3);
  border: 1px solid var(--kleur-lijn-sterk);
  border-radius: var(--hoek-s);
  background: var(--kleur-vlak);
  color: var(--kleur-tekst);
  font: inherit;
}
textarea.veld {
  min-height: 5rem;
}

/* ---------- Leeg en laden ---------- */

.leeg {
  color: var(--kleur-tekst-zacht);
  line-height: 1.5;
}
.laden {
  display: flex;
  align-items: center;
  gap: var(--ruimte-3);
  color: var(--kleur-tekst-zacht);
}
.laden::before {
  content: "";
  flex: none;
  width: 1.25em;
  height: 1.25em;
  background-color: currentColor;
  -webkit-mask: var(--ic-loader-circle) center / contain no-repeat;
  mask: var(--ic-loader-circle) center / contain no-repeat;
  animation: ontwerp-draai 1s linear infinite;
}

/* ---------- Uitkomst (eindscherm, projectie): groot icoon, titel, detail ---------- */

.uitkomst {
  --uk-kleur: var(--kleur-neutraal);
  --uk-vlak: var(--kleur-neutraal-vlak);
  --ic: var(--ic-info);
  text-align: center;
}
.uitkomst[data-status="ok"] {
  --uk-kleur: var(--kleur-ok);
  --uk-vlak: var(--kleur-ok-vlak);
  --ic: var(--ic-circle-check);
}
.uitkomst[data-status="fout"] {
  --uk-kleur: var(--kleur-fout);
  --uk-vlak: var(--kleur-fout-vlak);
  --ic: var(--ic-circle-x);
}
.uitkomst[data-status="waarschuwing"] {
  --uk-kleur: var(--kleur-waarschuwing);
  --uk-vlak: var(--kleur-waarschuwing-vlak);
  --ic: var(--ic-triangle-alert);
}
.uitkomst-icoon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--ruimte-3);
  border-radius: 50%;
  background: var(--uk-vlak);
  color: var(--uk-kleur);
}
.uitkomst-icoon::before {
  content: "";
  width: 48px;
  height: 48px;
  background-color: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}
.uitkomst h1,
.uitkomst h2,
.uitkomst h3,
.uitkomst h4 {
  color: var(--uk-kleur);
}

/* ---------- Tabel ---------- */

.tabel-kader {
  background: var(--kleur-vlak);
  border-radius: var(--hoek-m);
  box-shadow: var(--schaduw-kaart);
  overflow-x: auto;
}
.tabel {
  width: 100%;
  border-collapse: collapse;
}
.tabel th,
.tabel td {
  padding: var(--ruimte-3) var(--ruimte-4);
  border-bottom: 1px solid var(--kleur-lijn);
  text-align: left;
  vertical-align: top;
}
.tabel th {
  font-size: var(--tekst-klein);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--kleur-tekst-zacht);
}

/* ---------- Dialoog ---------- */

dialog {
  box-sizing: border-box;
  width: 460px;
  max-width: calc(100vw - 32px);
  padding: var(--ruimte-5) var(--ruimte-6);
  border: none;
  border-top: 5px solid var(--kleur-accent);
  border-radius: var(--hoek-m);
  box-shadow: var(--schaduw-dialoog);
  color: var(--kleur-tekst);
}
dialog::backdrop {
  background: var(--kleur-achterlaag);
}

/* ---------- Log (GATT-verkeer in de netwerkmonitor) ---------- */

.log {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid var(--kleur-lijn-sterk);
  border-radius: var(--hoek-s);
  background: var(--kleur-vlak);
  font-family: var(--font-mono);
  font-size: 12px;
}
.log-regel {
  padding: 3px 6px;
  border-bottom: 1px solid var(--kleur-lijn);
  word-break: break-word;
}
.log-regel.tx {
  color: var(--kleur-info);
  background: var(--kleur-info-vlak);
}
.log-regel.rx {
  color: var(--kleur-ok);
  background: var(--kleur-ok-vlak);
}
.log-regel.ack {
  color: var(--kleur-handmatig);
  background: var(--kleur-handmatig-vlak);
  font-weight: 700;
}
.log-regel.stil {
  color: var(--kleur-tekst-zacht);
}

/* ---------- Beweging ---------- */

@keyframes ontwerp-draai {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ontwerp-schuif {
  from {
    margin-left: 0;
  }
  to {
    margin-left: 65%;
  }
}
@media (prefers-reduced-motion: reduce) {
  /* Een balk die heen en weer schuift staat dan stil en vol, i.p.v. rechts geparkeerd */
  .voortgang-spoor[data-onbepaald="true"] .voortgang-balk {
    animation: none;
    width: 100%;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
