/* Datum72 huisstijl - kleuren en regels uit Logo's Datum72/GEBRUIKSGIDS.md.
   Kleurrollen (zie die gids): Inkt = basiskleur/tekst, Accent = primair
   accent op lichte achtergrond, Accent op inkt = hetzelfde accent maar met
   meer contrast bovenop een inktkleurige achtergrond (de header), Steun =
   baseline/tagline-tekst en secundaire accenten, Papier = neutrale lichte
   achtergrond (bewust geen zuiver wit). */
:root {
  --inkt: #10181D;
  --inkt-licht: #232f36;
  --accent: #CF4C1A;
  --accent-donker: #a83d15;
  --accent-op-inkt: #E8703A;
  --steun: #316D7C;
  --grijs: #76837f;
  --grijs-licht: #D7DBD8;
  --papier: #EEF1EE;
  --wit: #ffffff;
  /* Vast wit voor tekst/iconen bovenop een --inkt-achtergrond (header,
     .volgnr, .knop-klein, ...) - die achtergrond blijft in beide thema's
     donker, dus deze tekstkleur mag NOOIT meeveranderen met --wit hierboven
     (dat wordt in donker thema net een donkere oppervlaktekleur, zie
     verderop - anders wordt de tekst onleesbaar op zijn eigen achtergrond). */
  --tekst-op-inkt: #ffffff;
  /* Gedempte tekst bovenop --inkt (header: taalkeuze, thema-knop-rand,
     ingelogd-status, app-naam-breadcrumb) - zelfde reden als hierboven:
     --grijs-licht wisselt van betekenis in donker thema (wordt daar een
     donkere randkleur voor lichte oppervlakken), dus NIET geschikt voor
     tekst op de blijvend-donkere headerbalk. */
  --muted-op-inkt: #D7DBD8;
  --tekst: #10181D;
  --tekst-zacht: #56635f;
  --radius: 10px;
  /* Lichte tint-achtergronden (hover/dropzone), afgeleid van het accent.
     --tint-c (waarschuwing/flash) blijft bewust gelijk in het donkere
     thema - zie de toelichting daar. */
  --tint-a: #f6f8f6;
  --tint-b: #fdf0e9;
  --tint-c: #fbe6da;
}

/* --- Donker thema ---------------------------------------------------------
   Geactiveerd via het data-theme="dark"-attribuut op <html> (zie het
   anti-flikker-scriptje in de <head> van elke pagina en static/theme.js).
   --inkt/--inkt-licht/--accent/--accent-donker/--accent-op-inkt/--steun/
   --grijs blijven ongewijzigd: die dienen overal als contrastkleur (tekst
   op de accentkleurige badge, de inktkleurige header-balk, ...) en werken
   in beide thema's.
   --tint-c (achtergrond van .flash/.uitleg-tekst.waarschuwing/.bestandslijst
   li.fout) wordt bewust NIET overschreven: die elementen gebruiken expliciet
   `color: var(--inkt)` erbovenop, dus een donkere tint zou de tekst
   onleesbaar maken. Ze blijven er daardoor in beide thema's uitzien als een
   licht "briefje"-melding, wat ook gewoon een gangbaar patroon is voor
   waarschuwingen. */
:root[data-theme="dark"] {
  --grijs-licht: #33403d;
  --papier: #10151c;
  --wit: #1b232c;
  --tekst: #e7ebf1;
  --tekst-zacht: #a3b0ac;
  --tint-a: #212b36;
  --tint-b: #2c2413;
}

* { box-sizing: border-box; }

/* Zonder deze regel wint een class als .config-velden (display: flex) van het
   standaard [hidden]-gedrag (display: none) - zelfde CSS-specificiteit, en de
   class-regel staat verderop in dit bestand. Dit garandeert dat elk element
   met het hidden-attribuut ook effectief verborgen is, ongeacht welke andere
   classes het draagt. */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  /* Lato is het huisstijl-lettertype maar staat niet op dit systeem;
     hierna volgt een visueel verwante humanist-sans fallback. */
  font-family: 'Lato', -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--papier);
  color: var(--tekst);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Header: inktkleurige balk met wit-knockout logo (variant 07/08) --- */
.site-header {
  background: var(--inkt);
  /* --accent-op-inkt i.p.v. --accent: dit zit bovenop de inktkleurige
     header, en de merkgids vraagt daar expliciet de contrastvariant van
     het accent. */
  border-bottom: 4px solid var(--accent-op-inkt);
  flex: none;
}
.site-header .inner {
  margin: 0 auto;
  /* ruime marge rondom het logo conform de vrije-ruimte-regel */
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-header img.logo { height: 40px; width: auto; display: block; }
/* Tool-eigen logo (LandXML -> Platen, incl. tagline) i.p.v. het generieke
   Datum72-merk - enkel op index.html van de karakteristieke-platen-tool.
   Iets hoger dan de standaard 40px: de lockup bevat een tagline-regel
   onderaan die bij 40px onleesbaar zou worden (zie GEBRUIKSGIDS.md bij de
   aangeleverde logo's: de tagline is enkel bedoeld voor bredere plaatsing,
   niet de smalste balken). */
.site-header img.logo.logo-kp { height: 58px; }
.site-header a.logo-link {
  display: flex;
  line-height: 0;
  transition: opacity 0.15s ease;
}
.site-header a.logo-link:hover { opacity: 0.8; }
.site-header .app-naam {
  margin-left: auto;
  color: var(--muted-op-inkt);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
a.app-naam:hover { color: var(--tekst-op-inkt); }

/* --- Taalkeuze + licht/donker-schakelaar, rechts in de header. Staat
   telkens NA .app-naam in de HTML, zodat het meelift op diens
   margin-left: auto (of zelf die marge krijgt als er geen .app-naam is,
   zie home.html/toegang_aanvragen.html - daar heeft .app-naam ook die
   regel, dus dit blok komt er vanzelf naast te staan). --- */
.site-instellingen {
  display: flex;
  align-items: center;
  gap: 14px;
}
.taalkeuze { display: flex; gap: 2px; }
.taalkeuze a {
  color: var(--muted-op-inkt);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 4px 7px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.taalkeuze a:hover { color: var(--tekst-op-inkt); background: rgba(255, 255, 255, 0.1); }
.taalkeuze a.actief { color: var(--inkt); background: var(--accent-op-inkt); }

.thema-knop {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--muted-op-inkt);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}
.thema-knop:hover { background: rgba(255, 255, 255, 0.12); color: var(--tekst-op-inkt); }
.thema-icoon-donker { display: none; }
:root[data-theme="dark"] .thema-icoon-licht { display: none; }
:root[data-theme="dark"] .thema-icoon-donker { display: inline; }

/* --- Ingelogd-status + uitloggen, laatste item in .site-instellingen --- */
.gebruiker-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted-op-inkt);
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}
.gebruiker-info .gebruiker-naam { font-weight: 700; }
.gebruiker-info a { color: var(--muted-op-inkt); text-decoration: none; }
.gebruiker-info a:hover { color: var(--tekst-op-inkt); text-decoration: underline; }

/* --- Homepagina: dienstenkeuze --- */
.homepaneel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
}
.homeinhoud { width: 100%; max-width: 900px; text-align: center; }
.home-eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.homeinhoud h1 { font-size: 1.9rem; margin-bottom: 10px; }
.homeinhoud .lead { max-width: 56ch; margin: 0 auto 36px; }
.homeinhoud .flash { max-width: 56ch; margin: 0 auto 24px; text-align: left; }

.diensten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  text-align: left;
}
.dienst-kaart {
  display: block;
  background: var(--wit);
  border: 1px solid var(--grijs-licht);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(16, 24, 29, 0.05);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.dienst-kaart:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 24, 29, 0.12);
}
.dienst-kaart .dienst-icoon { height: 40px; width: auto; margin-bottom: 14px; }
.dienst-kaart h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.dienst-kaart p { color: var(--tekst-zacht); font-size: 0.9rem; margin: 0; }
.dienst-pijl {
  color: var(--accent);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s, transform 0.15s;
}
.dienst-kaart:hover .dienst-pijl { opacity: 1; transform: translateX(0); }

/* --- Login / wachtwoord instellen: 1 gecentreerde kaart, zelfde opzet als
   .homepaneel maar smaller - dit zijn korte formulieren, geen dashboards. --- */
.auth-paneel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
}
.auth-kaart {
  width: 100%;
  max-width: 380px;
  background: var(--wit);
  border: 1px solid var(--grijs-licht);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 1px 2px rgba(16, 24, 29, 0.05);
  text-align: center;
}
.auth-icoon { height: 36px; width: auto; margin-bottom: 16px; opacity: 0.85; }
.auth-kaart h1 { font-size: 1.3rem; }
.auth-kaart .lead { margin-bottom: 20px; }
.auth-kaart form { text-align: left; }
.auth-kaart .hint { text-align: center; }

/* --- Layout: sidebar links (upload/instellingen), resultaten groot rechts.
   Gedeeld door meerdere pagina's (kml_tool.html, penzd_tool.html, admin.html,
   toegang_aanvragen.html) - NIET wijzigen zonder die pagina's ook te
   controleren. De hoofdpagina (index.html) gebruikt sinds kort een eigen,
   losstaande volle-breedte layout (.werkruimte, zie verderop) i.p.v. deze
   sidebar-indeling. --- */
.app-layout {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.sidebar {
  flex: none;
  width: 420px;
  max-width: 100%;
  background: var(--wit);
  border-right: 1px solid var(--grijs-licht);
  padding: 28px 26px 40px;
  overflow-y: auto;
}

.resultaatpaneel {
  flex: 1;
  min-width: 0;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.resultaatpaneel.heeft-resultaten {
  align-items: flex-start;
  justify-content: center;
}
.resultaatinhoud { width: 100%; max-width: 820px; }
.resultaatkop { margin-bottom: 22px; }
.resultaatkop h2 {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.leegstate {
  text-align: center;
  color: var(--tekst-zacht);
  max-width: 320px;
}
.leegstate img { width: 200px; height: auto; opacity: 0.28; margin-bottom: 22px; }
.leegstate p { margin: 0; font-size: 0.95rem; }

/* --- Volle-breedte layout van de hoofdpagina (index.html) alleen: boven-rij
   (bijlagen 3/4 + taalkeuze 1/4) -> getalnotatie (2 kolommen) -> instellingen
   per XML (3-4 kolommen) -> resultaten (kolommen). Eigen, niet-gedeelde
   classnamen (.werkruimte, .configs-grid, .resultaten-grid, ...) zodat de
   sidebar-layout hierboven, gebruikt door de andere pagina's, ongemoeid
   blijft. --- */
.werkruimte {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}
.werkruimte-inner {
  width: 100%;
  max-width: 1440px;
  padding: 32px 40px 56px;
}

.paginakop { margin-bottom: 24px; }
.paginakop h1 { margin-bottom: 6px; }
.paginakop .lead { margin: 0; max-width: 70ch; }

/* Bijlagen (upload) 3/4, Projecttaal 1/4 ernaast als klein kadertje, met een
   kleine tussenruimte. Op smalle schermen valt de taalkeuze terug onder de
   uploadkaart (zie media query onderaan). */
.boven-rij {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.boven-rij .kaart { margin-bottom: 0; }
.vak-taal .veld-blok select { width: 100%; }

/* Iets compactere dropzone nu de bijlagen-kaart in de smallere boven-rij
   staat (naast de taalkeuze) i.p.v. de vroegere volle-breedte kaart. Enkel
   op de hoofdpagina - .vak-bijlagen komt niet voor op de andere tools, dus
   dit raakt de gedeelde .dropzone-regel elders niet. */
.vak-bijlagen .dropzone { padding: 14px 16px; }
.vak-bijlagen .dropzone img { height: 26px; margin-bottom: 2px; }

.veld-blok {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 12px;
}

/* Getalnotatie: volle breedte, de veldenlijst zelf in 2 kolommen naast elkaar
   (elke kolom een eigen mini-tabel met de helft van de velden). */
.vak-getalnotatie { margin-bottom: 18px; }
.getalnotatie-kolommen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 4px 32px;
}

/* Kleurenschema TR/LP: zelfde 2-koloms-opzet als getalnotatie hierboven,
   maar dan 1 dropdown per kolom i.p.v. een mini-tabel. */
.vak-kleur { margin-bottom: 18px; }
.kleur-kolommen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 4px 32px;
}
.kleur-kolommen .veld-blok { margin-top: 0; }
.kleur-kolommen select { width: 100%; }

.xml-sectie { margin-top: 8px; }
.xml-sectie > .kaart-kop { margin-bottom: 16px; }
.configs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: start;
  gap: 18px;
}
.configs-grid .kaart { margin-bottom: 0; }

.verzend-rij { margin-top: 22px; display: flex; justify-content: flex-end; }
#verzendknop { min-width: 200px; }

.resultaten-sectie { margin-top: 40px; }
.resultaten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  align-items: start;
  gap: 18px;
}
.resultaten-grid .kaart { margin-bottom: 0; }

/* Zelfde leegstate-opmaak als de sidebar-pagina's, maar nu gecentreerd via
   margin (er is hier geen flex-ouder meer om ze mee te centreren). */
.leegstate.leegstate--breed { max-width: 320px; margin: 24px auto; padding: 20px 0; }
.leegstate.leegstate--breed img { width: 160px; margin-bottom: 20px; }

h1 {
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.lead { color: var(--tekst-zacht); margin: 0 0 24px; max-width: 60ch; }

/* --- Kaarten met genummerde stap-badge --- */
.kaart {
  background: var(--wit);
  border: 1px solid var(--grijs-licht);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 29, 0.05);
}
.kaart-kop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.stap {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--inkt);
  font-weight: 900;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.kaart-kop h2 { font-size: 1.05rem; font-weight: 700; margin: 0; }


.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 16px;
  border: 2px dashed var(--grijs-licht);
  border-radius: 8px;
  background: var(--tint-a);
  cursor: pointer;
  text-align: center;
  margin: 0;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover { border-color: var(--accent); background: var(--tint-b); }
.dropzone.dragover { border-color: var(--accent); background: var(--tint-b); }
.dropzone img { height: 34px; width: auto; margin-bottom: 4px; }
.dz-titel { font-weight: 700; }
.dz-sub { color: var(--tekst-zacht); font-size: 0.86rem; }

.bestandslijst { list-style: none; padding: 0; margin: 14px 0 0; }
.bestandslijst li {
  font-size: 0.86rem;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--papier);
  margin-bottom: 6px;
  word-break: break-all;
}
.bestandslijst li.fout {
  background: var(--tint-c);
  border: 1px solid var(--accent);
  color: var(--inkt);
  font-weight: 600;
}

.uitleg-tekst { color: var(--tekst-zacht); margin: 0; font-size: 0.92rem; }

/* --- Configblok per XML --- */
.config-kop {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--grijs-licht);
}
.volgnr {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--inkt);
  color: var(--tekst-op-inkt);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.config-naam {
  font-weight: 700;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.badge {
  flex: none;
  background: var(--accent);
  color: var(--inkt);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge.badge-verlopen { background: var(--grijs-licht); color: var(--tekst-zacht); }

.config-velden { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.veld {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}
.veld input { width: 68px; }

.config-uitvoer { display: grid; gap: 8px; }

/* --- Formulier --- */
label { display: block; margin: 12px 0; }
label.optie {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--grijs-licht);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
label.optie:hover { border-color: var(--grijs); background: var(--tint-a); }
label.optie input[type=checkbox], label.optie input[type=radio] { accent-color: var(--inkt); width: 17px; height: 17px; }
.optie-tekst { font-weight: 600; }
.optie-sub { color: var(--tekst-zacht); font-weight: 400; font-size: 0.9em; }
.nr-veld { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 0.9em; color: var(--tekst-zacht); }

input[type=text], input[type=number], input[type=password], select {
  font: inherit;
  padding: 7px 10px;
  border: 1px solid var(--grijs-licht);
  border-radius: 7px;
  background: var(--wit);
  color: var(--tekst);
  width: 92px;
}
input[type=text]:focus, input[type=number]:focus, input[type=password]:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--grijs);
}
input[type=file] {
  font: inherit;
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--grijs-licht);
  border-radius: 8px;
  background: var(--tint-a);
  cursor: pointer;
}
input[type=file]:hover { border-color: var(--accent); }

.veld-rij { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.veld-rij span { font-weight: 600; }

.hint { color: var(--tekst-zacht); font-size: 0.86rem; margin-top: 12px; }

/* --- Knoppen --- */
button, .knop {
  font: inherit;
  font-weight: 700;
  padding: 11px 26px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--inkt);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
button:hover, .knop:hover { background: var(--accent-donker); }
button:disabled { background: var(--grijs-licht); color: var(--grijs); cursor: not-allowed; }

.knop-klein {
  padding: 6px 16px;
  font-size: 0.9rem;
  background: var(--inkt);
  color: var(--tekst-op-inkt);
}
.knop-klein:hover { background: var(--inkt-licht); }

.knop-gevaar {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.knop-gevaar:hover { background: var(--accent); color: var(--inkt); }

/* --- Tool-rechten (admin.html): compacte checkbox-pills i.p.v. de bredere
   .optie-rijen elders (fiche/plaatlijst/...), zodat 4 tools naast elkaar
   passen. --- */
.tools-keuze { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.tools-keuze .optie-compact {
  margin: 0;
  padding: 6px 12px;
  gap: 7px;
  font-size: 0.86rem;
}

/* --- Instel-link (admin.html): kopieerbaar veld + knop --- */
.instel-link-rij { display: flex; gap: 8px; }
.instel-link-veld {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.85rem;
  padding: 9px 12px;
  border: 1px solid var(--grijs-licht);
  border-radius: 7px;
  background: var(--papier);
  color: var(--tekst);
  width: auto;
}

.account-acties { display: flex; gap: 8px; margin-top: 10px; }
.account-acties--onder { padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--grijs-licht); }
.account-acties form { margin: 0; }

.terug {
  display: inline-block;
  margin-top: 24px;
  color: var(--tekst-zacht);
  text-decoration: none;
  font-weight: 600;
}
.terug:hover { color: var(--inkt); }

/* --- Meldingen --- */
.flash {
  background: var(--tint-c);
  /* Expliciet: --tint-c blijft licht in het donkere thema (zie de
     toelichting bij :root[data-theme="dark"]), dus de tekstkleur moet dat
     ook - anders wordt de globale --tekst (die in donker thema licht is)
     onleesbaar op deze lichte achtergrond. */
  color: var(--inkt);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* --- Resultatenlijst --- */
.resultaten { list-style: none; padding: 0; margin: 0; }
.resultaten li {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--grijs-licht);
}
.resultaten li:last-child { border-bottom: none; }
.resultaten .naam { font-weight: 600; }
.resultaten .knop-klein { margin-left: auto; }

.bestandsnaam {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.82rem;
  color: var(--tekst-zacht);
  width: 100%;
  word-break: break-all;
}

footer {
  flex: none;
  margin: 0;
  padding: 14px 28px;
  color: var(--grijs);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--grijs-licht);
  background: var(--wit);
}
footer img { height: 22px; width: auto; opacity: 0.75; }

@media (max-width: 860px) {
  /* gedeelde sidebar-layout (andere pagina's) */
  .app-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--grijs-licht);
    overflow-y: visible;
  }
  .resultaatpaneel { overflow-y: visible; padding: 28px 20px; }
  .leegstate { padding: 20px 0; }

  /* volle-breedte layout (index.html) */
  .werkruimte-inner { padding: 24px 20px 40px; }
  .boven-rij { grid-template-columns: 1fr; }
  .verzend-rij { justify-content: stretch; }
  .verzend-rij #verzendknop { width: 100%; }
}

@media (max-width: 560px) {
  .site-header .app-naam { margin-left: 0; width: 100%; }
  .site-instellingen { margin-left: auto; }
  .nr-veld { margin-left: 0; width: 100%; }
  .resultaten .knop-klein { margin-left: 0; }
}

/* Plaattype-keuze binnen een XML-configblok (Type I / II / III) */
.type-keuze { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--grijs-licht); display: grid; gap: 8px; }
.type-kop {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--grijs); margin-bottom: 6px;
}

/* Waarschuwing bij een taalkeuze waarvoor nog termen ontbreken */
.uitleg-tekst.waarschuwing {
  margin-top: 10px; padding: 10px 12px; border-radius: 6px;
  background: var(--tint-c); border: 1px solid var(--accent); color: var(--inkt);
}

/* Instelbare getalnotatie per veld (aantal decimalen + duizendtal-teken) */
.getalnotatie-tabel { width: 100%; border-collapse: collapse; margin-top: 4px; }
.getalnotatie-tabel th {
  text-align: left; font-size: 0.8rem; font-weight: 700; color: var(--tekst-zacht);
  padding: 0 8px 6px 0; border-bottom: 1px solid var(--grijs-licht);
}
.getalnotatie-tabel td {
  padding: 6px 8px 6px 0; border-bottom: 1px solid var(--grijs-licht); vertical-align: middle;
}
.getalnotatie-tabel td:first-child { font-weight: 600; }
.getalnotatie-tabel input[type=number] { width: 64px; }
.getalnotatie-tabel select { width: 100%; min-width: 120px; }
.getalnotatie-tabel tr:last-child td { border-bottom: none; }
