/* Localink tools: gezamenlijke opmaak. Bronnen voor de huisstijl: huisstijl/HUISSTIJL.md.
   Tools gebruiken deze klassen en variabelen; zie /stijl voor alle bouwstenen. */

:root {
  --balk-hoogte: 61px;         /* menubalk bovenin (inclusief de lijn eronder); plakkende onderdelen en ankers houden hier ruimte voor vrij */
  --geel: #F9D034;
  --geel-accent: #FBBC34;
  --zwart: #080808;
  --kop: #000;
  --tekst: #2B2B2B;
  --tekst-zacht: #666666;      /* 5:1 op wit en op #F2F2F2 */
  --achtergrond: #F2F2F2;
  --vlak: #fff;
  --lijn: #E7E7E7;
  --lijn-veld: #8A8A8A;        /* rand van invoervelden: 3:1 tegen wit */
  --radius: 5px;
  --gelukt: #1B6137;  --gelukt-bg: #E8F5EC;
  --waarschuwing: #6B4A00;  --waarschuwing-bg: #FFF4CC;
  --fout: #A31F1F;  --fout-bg: #FDECEC;
  --info: #1F4E79;  --info-bg: #E8F1FA;
  --font: "Poppins", Arial, Helvetica, sans-serif;
  --breedte: 1240px;
  --rand: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--balk-hoogte) + 12px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 15px; line-height: 1.65;
  color: var(--tekst); background: var(--achtergrond);
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.3; color: var(--kop); margin: 0 0 .5em; }
h1 { font-size: 28px; } h2 { font-size: 20px; } h3 { font-size: 17px; }
p { margin: 0 0 1em; }
a { color: var(--zwart); text-decoration: underline; text-decoration-color: var(--geel); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--geel); text-decoration-color: var(--zwart); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: #fff; border: 1px solid var(--lijn); border-radius: 3px; padding: 0 5px; }
:focus-visible { outline: 3px solid var(--zwart); outline-offset: 2px; }
.alleen-lezer { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sla-over { position: absolute; left: 8px; top: -60px; background: var(--geel); color: #000; padding: 10px 16px; border-radius: var(--radius); z-index: 100; font-weight: 600; text-decoration: none; }
.sla-over:focus { top: 8px; }

.container { width: 100%; max-width: calc(var(--breedte) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); }
.hoofd { flex: 1; padding-top: 32px; padding-bottom: 64px; }
.hoofd:focus { outline: none; }
.hoofd > .melding + section, .hoofd > .melding + .tweekolom { margin-top: 28px; }
.hoofd > section { margin-bottom: 40px; }
.bijschrift, .veld__hulp { font-size: 13px; color: var(--tekst-zacht); line-height: 1.5; }
.sectietitel { font-size: 18px; padding-bottom: 10px; margin-bottom: 16px; position: relative; }
.sectietitel::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 4px; background: var(--geel); border-radius: 2px; }

/* ---------- Menu bovenin: witte balk met logo, Start en het naammenu ---------- */
.platform { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.platform__inhoud { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.merknaam { font-weight: 600; font-size: 15px; letter-spacing: .04em; line-height: 1.2; color: #fff; padding-left: 12px; border-left: 1px solid #666; }

/* Uitgelogd (inlogpagina): de oude zwarte balk met alleen het logo */
.bovenbalk { background: var(--zwart); color: #fff; display: none; }
.bovenbalk--los { display: flex; padding: 12px var(--rand); }
.bovenbalk__merk { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.bovenbalk__merk img { display: block; height: 36px; width: auto; }
.bovenbalk a:hover { background: none; }

/* Gezamenlijk: het logo, het naammenu en het uitklapvak */
.topbalk { position: sticky; top: 0; z-index: 40; background: var(--m-bg); color: var(--m-tekst); }
.topbalk__in { display: flex; align-items: center; gap: 28px; min-height: calc(var(--balk-hoogte) - 1px); }
.topbalk__merk { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--m-tekst); flex: none; }
.topbalk__merk img { display: block; height: 34px; width: auto; }
.topbalk a:hover { background: none; }
.topbalk :focus-visible { outline: 3px solid var(--m-focus); outline-offset: 2px; }
.topbalk .merknaam { color: var(--m-tekst); border-left-color: var(--m-lijn-merk); }

.topbalk__nav { align-self: stretch; flex: 1; min-width: 0; }
.topbalk__nav ul { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; align-items: stretch; }
.topbalk__nav li { display: flex; align-items: stretch; }
.topbalk__nav a {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 15px; font-weight: 500;
  color: var(--m-tekst); text-decoration: none; white-space: nowrap;
}
.topbalk__nav a:hover { color: var(--m-hover-tekst); }
.topbalk__nav a.is-actief { font-weight: 600; color: var(--m-actief-tekst); }
.topbalk__nav .icoon { width: 20px; height: 20px; }
.icoon--klein { width: 16px; height: 16px; }

.gebruikersmenu { position: relative; margin-left: auto; flex: none; }
.gebruikersmenu > summary { list-style: none; }
.gebruikersmenu > summary::-webkit-details-marker { display: none; }
.gebruikersmenu__knop {
  display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 6px 12px 6px 14px; font: inherit; font-size: 15px; font-weight: 600;
  line-height: 1.3; color: var(--knop-tekst); background: var(--knop-bg); border: 1px solid var(--knop-rand); border-radius: var(--radius); cursor: pointer;
}
.gebruikersmenu__knop:hover, .gebruikersmenu[open] .gebruikersmenu__knop { background: var(--knop-hover); color: var(--knop-hover-tekst, var(--knop-tekst)); }
.gebruikersmenu__knop .icoon { width: 20px; height: 20px; }
.gebruikersmenu__naam { min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gebruikersmenu__knop .icoon:last-child { width: 16px; height: 16px; transition: transform .15s; transform: rotate(180deg); }
.gebruikersmenu[open] .gebruikersmenu__knop .icoon:last-child { transform: none; }

.gebruikersmenu__paneel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 280px; max-width: calc(100vw - 2 * var(--rand)); padding: 6px;
  background: var(--pop-bg); color: var(--pop-tekst); border: 1px solid var(--pop-rand); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}
.gebruikersmenu__wie { margin: 0; padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 0; line-height: 1.4; border-bottom: 1px solid var(--pop-lijn); margin-bottom: 6px; }
.gebruikersmenu__wie strong { font-size: 15px; font-weight: 600; }
.gebruikersmenu__wie span { font-size: 13px; color: var(--pop-zacht); overflow-wrap: anywhere; }
.gebruikersmenu__lijst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gebruikersmenu__lijst form { margin: 0; }
.gebruikersmenu__lijst a, .gebruikersmenu__uit {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--radius); font: inherit; font-size: 15px; font-weight: 500;
  line-height: 1.3; color: var(--pop-tekst); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer;
}
.gebruikersmenu__lijst a:hover, .gebruikersmenu__uit:hover { background: var(--pop-hover); color: var(--pop-tekst); }
.gebruikersmenu__lijst .is-actief { background: var(--geel); color: #000; font-weight: 600; }
.gebruikersmenu__lijst li:last-child { border-top: 1px solid var(--pop-lijn); margin-top: 4px; padding-top: 4px; }

/* De balk zelf: wit, met een dunne lijn eronder. Het actieve onderdeel herken je aan een geel icoon (geen streep), plus aria-current voor schermlezers. */
.topbalk--wit {
  --m-bg: #fff; --m-tekst: var(--zwart); --m-zacht: #8a8a8a; --m-lijn-merk: #cfcfcf; --m-focus: var(--zwart);
  --m-hover-tekst: #000; --m-actief-tekst: #000;
  --knop-tekst: var(--zwart); --knop-bg: #fff; --knop-rand: #bdbdbd; --knop-hover: #F2F2F2;
  --pop-bg: #fff; --pop-tekst: var(--zwart); --pop-rand: #d9d9d9; --pop-lijn: #E7E7E7; --pop-zacht: #666; --pop-hover: #F2F2F2;
  border-bottom: 1px solid var(--lijn);
}
.topbalk--wit .topbalk__nav a:not(.is-actief) { color: var(--tekst-zacht); }
.topbalk--wit .topbalk__nav a:not(.is-actief):hover { color: #000; }
.topbalk--wit .topbalk__terug { padding-right: 18px; }
.topbalk--wit .topbalk__terug::after { content: ""; position: absolute; right: 0; top: 50%; height: 24px; margin-top: -12px; border-right: 1px solid var(--lijn); }

/* ---------- Paginakop (gele balk) ---------- */
.paginakop { background: var(--geel); color: #000; padding: 28px 0 24px; }
.paginakop h1 { margin: 0; }
.paginakop__intro { margin: 6px 0 0; font-size: 15px; color: #000; }
.kruimelpad { font-size: 13px; margin-bottom: 8px; }
.kruimelpad ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.kruimelpad li + li::before { content: "/"; margin-right: 8px; color: #000; opacity: .55; }
.kruimelpad a { color: #000; text-decoration-color: #000; text-decoration-thickness: 1px; }
.kruimelpad a:hover { background: #000; color: var(--geel); }

.voet { border-top: 1px solid var(--lijn); background: #fff; padding: 16px 0; font-size: 13px; color: var(--tekst-zacht); }

/* ---------- Knoppen ---------- */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; padding: 10px 20px; cursor: pointer;
  color: #000; background: #fff; border: 1px solid #000; border-radius: var(--radius); text-decoration: none;
}
.knop:hover { background: #000; color: #fff; }
.knop .icoon { width: 18px; height: 18px; }
.knop--primair { background: var(--geel); border-color: var(--geel); }
.knop--primair:hover { background: #000; border-color: #000; color: #fff; }
.knop--gevaar { color: var(--fout); border-color: var(--fout); }
.knop--gevaar:hover { background: var(--fout); border-color: var(--fout); color: #fff; }
.knop--klein { min-height: 34px; padding: 5px 14px; font-size: 14px; }
.knop--blok { display: flex; width: 100%; }
.knop[disabled], .knop[aria-disabled="true"] { opacity: .5; cursor: not-allowed; background: #fff; color: #000; }
.knoppen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.werkbalk { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.werkbalk p { margin: 0; }

/* ---------- Formulieren ---------- */
.veld { margin-bottom: 20px; }
.veld label:not(.keuze) { display: block; font-weight: 600; font-size: 14px; color: #000; margin-bottom: 6px; }
.invoer {
  display: block; width: 100%; min-height: 44px; font: inherit; font-size: 15px; color: var(--tekst);
  background: #fff; border: 1px solid var(--lijn-veld); border-radius: var(--radius); padding: 9px 12px;
}
textarea.invoer { min-height: 96px; resize: vertical; }
select.invoer { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23080808' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
.invoer:focus-visible { outline: 3px solid var(--zwart); outline-offset: 1px; border-color: var(--zwart); }
.veld__hulp { margin: 6px 0 0; }
.veld__fout { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--fout); }
.veld--fout .invoer { border: 2px solid var(--fout); background: var(--fout-bg); }
.keuze { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; min-height: 32px; }
.keuze input { width: 20px; height: 20px; accent-color: var(--zwart); margin: 0; }
.veldrij { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---------- Kaarten en tegels ---------- */
.kaart { background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 24px; }
.kaart--tabel { padding: 0; overflow: hidden; }
/* Een blok: sectietitel (met geel streepje) boven, de kaart eronder. De titel staat nooit in de kaart. Twee blokken naast elkaar eindigen onder gelijk. */
.blok { min-width: 0; display: flex; flex-direction: column; }
.blok > .kaart { flex: 1 1 auto; }
.blok > .kaart > :last-child { margin-bottom: 0; }
.blok > .kaart { margin-bottom: 0; }
/* Elke titelregel van een blok is even hoog en staat even ver van de kaart, met of zonder knop erbij: kaarten naast elkaar beginnen zo op dezelfde hoogte */
:root { --titel-ruimte: 14px; --titelregel: 34px; }
.blok > .sectietitel, .blok > .kop-met-knop, .blok > .beheer-kop { min-height: var(--titelregel); box-sizing: border-box; margin: 0 0 var(--titel-ruimte); }
.blok > .kop-met-knop, .blok > .beheer-kop { align-items: flex-start; }
.blok > .kop-met-knop > .sectietitel, .blok > .beheer-kop > .sectietitel { margin: 0; min-height: var(--titelregel); box-sizing: border-box; }
.blok > .kop-met-knop > .sectietitel { padding-bottom: 10px; }
.blok--kaarten > .sectietitel { margin-bottom: 0; }
.tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tegel {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--vlak); color: var(--tekst);
  border: 1px solid var(--lijn); border-radius: var(--radius); text-decoration: none;
}
.tegel:hover { background: #fff; border-color: #000; }
.tegel__icoon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: var(--geel); color: #000; border-radius: var(--radius); margin-bottom: 10px; }
.tegel__icoon .icoon { width: 26px; height: 26px; }
.tegel__naam { font-weight: 700; font-size: 18px; color: #000; line-height: 1.3; }
.tegel__uitleg { color: var(--tekst); flex: 1; }
.tegel__actie { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; color: #000; }
.tegel__actie .icoon { width: 18px; height: 18px; transition: transform .15s; }
.tegel:hover .tegel__actie .icoon { transform: translateX(4px); }
.tegel--binnenkort { background: transparent; border: 1px dashed #A5A5A5; cursor: default; }
.tegel--binnenkort:hover { border-color: #A5A5A5; background: transparent; }
.tegel--binnenkort .tegel__icoon { background: var(--lijn); color: #5a5a5a; }
.tegel--binnenkort .tegel__naam { color: #3d3d3d; }
.tegel--binnenkort .tegel__uitleg { color: var(--tekst-zacht); }

/* Laatst gedaan */
.activiteit { list-style: none; margin: 0; padding: 0; }
.activiteit li { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--lijn); }
.activiteit li:first-child { border-top: 0; }
.kaart.activiteit { padding: 0; }
.activiteit__icoon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: var(--achtergrond); border-radius: var(--radius); }
.activiteit__icoon .icoon { width: 20px; height: 20px; }
.activiteit__tekst { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.activiteit__tijd { white-space: nowrap; }

/* ---------- Tabellen ---------- */
.tabel { width: 100%; border-collapse: collapse; background: #fff; }
.tabel th { text-align: left; font-size: 13px; font-weight: 600; color: var(--tekst); background: #F7F7F7; padding: 12px 16px; border-bottom: 1px solid var(--lijn); white-space: nowrap; }
.tabel td { padding: 14px 16px; border-bottom: 1px solid var(--lijn); vertical-align: middle; }
.tabel tbody tr:last-child td { border-bottom: 0; }
.tabel tbody tr:hover td { background: #FCFCFC; }
.tabel__acties { text-align: right; white-space: nowrap; }
.tabel-wrap { overflow-x: auto; }

/* ---------- Meldingen ---------- */
.melding { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 16px; border-radius: var(--radius); border: 1px solid; border-left-width: 5px; }
.melding .icoon { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.melding > div { min-width: 0; overflow-wrap: anywhere; }
.melding--gelukt { background: var(--gelukt-bg); border-color: var(--gelukt); color: #11421F; }
.melding--waarschuwing { background: var(--waarschuwing-bg); border-color: #C99700; color: var(--waarschuwing); }
.melding--fout { background: var(--fout-bg); border-color: var(--fout); color: #7A1414; }
.melding--info { background: var(--info-bg); border-color: var(--info); color: #173B5C; }
.wachtwoord { display: inline-block; font-size: 1.05em; font-weight: 600; padding: 2px 10px; margin-top: 4px; user-select: all; color: #000; }

/* ---------- Labels ---------- */
.label { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.4; padding: 2px 10px; border-radius: 20px; border: 1px solid; white-space: nowrap; vertical-align: middle; }
.label--actief { background: var(--gelukt-bg); color: var(--gelukt); border-color: #A9D4B9; }
.label--binnenkort { background: var(--waarschuwing-bg); color: var(--waarschuwing); border-color: #E6CB6B; }
.label--fout { background: var(--fout-bg); color: var(--fout); border-color: #E3A9A9; }
.label--uit { background: #EDEDED; color: #555; border-color: #CFCFCF; }
.label--neutraal { background: #fff; color: var(--tekst); border-color: #CFCFCF; }
.label--beheerder { background: var(--zwart); color: #fff; border-color: var(--zwart); }

/* ---------- Lege toestand ---------- */
.leeg { background: var(--vlak); border: 1px dashed #B5B5B5; border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--tekst-zacht); }
.leeg__icoon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: var(--achtergrond); color: #555; margin-bottom: 10px; }
.leeg__icoon .icoon { width: 26px; height: 26px; }
.leeg__tekst { margin: 0 auto 1em; max-width: 46ch; }
.leeg > :last-child { margin-bottom: 0; }
.leeg__code { font-size: 64px; font-weight: 700; line-height: 1; color: #000; margin: 0 0 12px; }
.leeg--fout { border-style: solid; padding: 56px 24px; }
.leeg--fout .leeg__tekst { color: var(--tekst); }

/* ---------- Tabbladen ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--lijn); margin-bottom: 20px; }
.tab { font: inherit; font-size: 15px; font-weight: 500; color: var(--tekst-zacht); background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 16px; margin-bottom: -1px; cursor: pointer; text-decoration: none; }
.tab:hover { color: #000; background: none; border-bottom-color: #C9C9C9; }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: #000; font-weight: 600; border-bottom-color: var(--geel-accent); }
.tabpaneel[hidden] { display: none; }

/* ---------- Tweekolomsindeling ---------- */
.tweekolom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tweekolom { margin-bottom: 40px; }
.tweekolom:last-child { margin-bottom: 0; }
.tweekolom--smal-rechts { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.tweekolom__voorbeeld { position: sticky; top: calc(var(--balk-hoogte) + 16px); }

/* ---------- Diversen ---------- */
.gegevens { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 12px 0 20px; }
.gegevens dt { color: var(--tekst-zacht); font-size: 13px; padding-top: 2px; }
.gegevens dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Inloggen (licht, rustig; geel als accent) ---------- */
.inlog-pagina { background: var(--achtergrond); border-top: 6px solid var(--geel); }
.inlog { width: 100%; max-width: 480px; padding: 48px 16px 32px; margin: auto; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.inlog__merk { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 28px; }
.inlog__logo { display: block; height: 60px; width: auto; }
.inlog__naam { font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: lowercase; color: var(--zwart); padding-left: 16px; border-left: 1px solid var(--lijn-veld); line-height: 1.6; }
.inlog__kader { background: #fff; border: 1px solid var(--lijn); border-radius: var(--radius); padding: 36px 36px 32px; }
.inlog__kader h1 { font-size: 26px; margin-bottom: 6px; }
.inlog__kader .bijschrift { margin-bottom: 28px; font-size: 14px; }
.inlog__kader .veld { margin-bottom: 22px; }
.inlog__kader .invoer { min-height: 48px; }
.inlog__kader .knop--blok { min-height: 50px; font-size: 16px; margin-top: 8px; }
.inlog__hulp { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--lijn); text-align: center; }
.inlog__kader .inlog__hulp { margin-bottom: 0; }
.inlog .melding { margin-bottom: 20px; }
.inlog__kader .melding { margin-bottom: 24px; }
.turnstile-veld { margin-bottom: 22px; min-height: 65px; }
.turnstile-veld .bijschrift { margin: 0; }
.inlog__kader .inlog__tweede { margin: 12px 0 0; }
.inlog__kader .inlog__tweede .knop { min-height: 50px; font-size: 16px; }
.invoer--code { font-size: 24px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.linkknop { background: none; border: 0; padding: 0; font: inherit; color: var(--zwart); cursor: pointer; text-decoration: underline; text-decoration-color: var(--geel); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.linkknop:hover { background: var(--geel); text-decoration-color: var(--zwart); }
.inlog__voet { margin: 24px 0 0; text-align: center; font-size: 13px; color: var(--tekst-zacht); }

/* ---------- Stijlpagina ---------- */
.stijl-inhoud { margin-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; }
.kleuren { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 8px; }
.kleur { background: #fff; border: 1px solid var(--lijn); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.kleur code { align-self: flex-start; }
.kleur__blok { display: block; height: 48px; border-radius: 3px; border: 1px solid rgba(0,0,0,.12); }
.kleur__blok[data-var="--geel"] { background: var(--geel); }
.kleur__blok[data-var="--geel-accent"] { background: var(--geel-accent); }
.kleur__blok[data-var="--zwart"] { background: var(--zwart); }
.kleur__blok[data-var="--tekst"] { background: var(--tekst); }
.kleur__blok[data-var="--tekst-zacht"] { background: var(--tekst-zacht); }
.kleur__blok[data-var="--achtergrond"] { background: var(--achtergrond); }
.kleur__blok[data-var="--vlak"] { background: var(--vlak); }
.kleur__blok[data-var="--lijn"] { background: var(--lijn); }
.voorbeeld { margin-bottom: 8px; border: 1px solid var(--lijn); border-radius: var(--radius); background: #fff; overflow: hidden; }
.voorbeeld__zicht { padding: 24px; background: var(--achtergrond); }
.voorbeeld__zicht > :last-child { margin-bottom: 0; }
.voorbeeld__code { border-top: 1px solid var(--lijn); }
.voorbeeld__code summary { padding: 10px 16px; cursor: pointer; font-size: 13px; font-weight: 600; }
.voorbeeld__code pre { margin: 0; padding: 0 16px 16px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
.voorbeeld__code code { background: none; border: 0; padding: 0; font-size: inherit; }
.pictogrammen { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.pictogram { background: #fff; border: 1px solid var(--lijn); border-radius: var(--radius); padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pictogram .icoon { width: 28px; height: 28px; }
.pictogram code { font-size: 12px; }
.icoon { width: 20px; height: 20px; flex: none; }

/* ---------- Kleine schermen ---------- */
@media (max-width: 860px) {
  .tweekolom, .tweekolom--smal-rechts { grid-template-columns: 1fr; }
  .tweekolom__voorbeeld { position: static; }
}
@media (max-width: 640px) {
  :root { --rand: 16px; }
  h1 { font-size: 24px; }
  .paginakop { padding: 20px 0 18px; }
  .hoofd { padding-top: 24px; }
  .kaart { padding: 18px; }
  .veldrij { grid-template-columns: 1fr; }
  .inlog { padding: 32px 16px 24px; justify-content: flex-start; }
  .inlog__merk { margin-bottom: 22px; }
  .inlog__logo { height: 48px; }
  .inlog__kader { padding: 26px 20px 24px; }
  .inlog__kader h1 { font-size: 24px; }
  .activiteit li { grid-template-columns: 36px 1fr; }
  .activiteit__tijd { grid-column: 2; }
  .gegevens { grid-template-columns: 1fr; gap: 0; }
  .gegevens dd { margin-bottom: 10px; }

  .tabel--stapelen thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabel--stapelen, .tabel--stapelen tbody, .tabel--stapelen tr, .tabel--stapelen td { display: block; width: 100%; }
  .tabel--stapelen tr { padding: 14px 16px; border-bottom: 1px solid var(--lijn); }
  .tabel--stapelen tbody tr:last-child { border-bottom: 0; }
  .tabel--stapelen td { border: 0; padding: 4px 0 4px 124px; position: relative; min-height: 32px; overflow-wrap: anywhere; }
  .tabel--stapelen td[data-label]::before { content: attr(data-label); position: absolute; left: 0; top: 7px; width: 112px; font-size: 13px; color: var(--tekst-zacht); line-height: 1.5; }
  .tabel--stapelen .tabel__acties { text-align: left; padding: 10px 0 0; }
  .tabel--stapelen tbody tr:hover td { background: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 640px) {
  :root { --balk-hoogte: 57px; }
  .topbalk__in { gap: 10px; min-height: 56px; }
  .topbalk__merk img { height: 30px; }
  .merknaam { font-size: 14px; padding-left: 10px; }
  .topbalk__nav a { padding: 0 8px; }
  /* Klantportaal: op een telefoon staan het logo en het naammenu bovenin en het menu (3 items bij beheer) op een eigen rij. */
  .topbalk__in { flex-wrap: wrap; row-gap: 0; }
  .topbalk__merk { order: 1; min-height: 56px; }
  .gebruikersmenu { order: 2; margin-left: auto; }
  .topbalk__nav { order: 3; flex: 0 0 100%; min-height: 46px; border-top: 1px solid var(--lijn); overflow-x: auto; }
  .topbalk__nav ul { min-height: 46px; }
  .topbalk__nav a { padding: 0 12px; white-space: nowrap; }
  .topbalk__nav .icoon { display: none; }
  .gebruikersmenu__naam { max-width: 84px; }
  .gebruikersmenu__knop { padding: 6px 10px; gap: 7px; }
}
@media (max-width: 400px) {
  .topbalk__merk { gap: 9px; }
  .gebruikersmenu__naam { max-width: 64px; }
}
.menu-teller { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: -2px; border-radius: 10px; background: var(--geel); color: #000; font-size: 12px; font-weight: 700; line-height: 1; }
/* Smalle schermen: het menu past op een regel zonder pictogrammen (bij drie of meer items) */
@media (max-width: 640px) {
  .topbalk__nav .icoon { display: none; }
  .topbalk__nav a { padding: 0 6px; gap: 4px; font-size: 14px; }
  .menu-teller { margin-left: 0; }
}

/* Meekijken als klant (beheerder): een duidelijke balk bovenaan elke pagina, geel accent, geen groot zwart vlak */
.meekijkbalk { background: #FFF6CC; border-top: 4px solid var(--geel); border-bottom: 1px solid #E6CB6B; color: #000; }
.meekijkbalk__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
.meekijkbalk__tekst { margin: 0; font-size: 14px; flex: 1 1 280px; overflow-wrap: anywhere; }
.meekijkbalk form { margin: 0; }

/* Klantkant: het menu rechts als icoontjes (winkelmandje met telgetal, bestellingen); tekst alleen voor schermlezers en bij aanwijzen */
.topbalk--v .topbalk__ikonen { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.topbalk--v .gebruikersmenu { margin-left: 0; }
.topbalk__ikoon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius); color: var(--m-tekst); text-decoration: none; }
.topbalk__ikoon .icoon { width: 24px; height: 24px; }
.topbalk__ikoon:hover { background: var(--knop-hover); color: #000; }
.topbalk__ikoon:focus-visible { outline: 3px solid var(--zwart); outline-offset: -2px; }
.menu-teller--hoek { position: absolute; top: 2px; right: 0; margin: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
.gebruikersmenu__scheiding { border-top: 1px solid var(--pop-lijn); margin: 4px 0 !important; padding: 0 !important; height: 0; }
@media (max-width: 640px) {
  .topbalk--v .topbalk__in { flex-wrap: nowrap; gap: 6px; }
  .topbalk--v .topbalk__merk { order: 0; min-height: 56px; }
  .topbalk--v .topbalk__nav { order: 0; flex: none; min-height: 0; border-top: 0; overflow: visible; }
  .topbalk--v .topbalk__nav ul { min-height: 0; }
  .topbalk--v .topbalk__nav a { padding: 0 8px; min-height: 44px; }
  .topbalk--v .gebruikersmenu { order: 0; }
  .topbalk--v .gebruikersmenu__naam { max-width: 64px; }
}
@media (max-width: 560px) { .topbalk--v .merknaam { display: none; } }
@media (max-width: 400px) { .topbalk--v .gebruikersmenu__naam { max-width: 52px; } .topbalk--v .gebruikersmenu__knop { padding: 6px 8px; gap: 5px; } }
@media (max-width: 640px) {
  .topbalk--v .topbalk__in { gap: 2px; }
  .topbalk__ikoon { width: 40px; }
  .topbalk--v .topbalk__nav a { padding: 0 6px; }
  .topbalk--v .topbalk__merk { margin-right: 4px; }
}
@media (max-width: 400px) { .topbalk--v .gebruikersmenu__naam { max-width: 48px; } .topbalk--v .topbalk__merk img { height: 28px; } }
@media (max-width: 400px) { .topbalk--v .gebruikersmenu__naam { max-width: 100px; } .topbalk--v .gebruikersmenu__knop { padding: 6px 10px; gap: 7px; } }

/* Blok "Nieuwste bestellingen" (rijvorm van tools.localink) */
/* ---------- Blok op Start: licht, een lijst met rijen zonder zware kaders ---------- */
.hoofd > .best-start { margin-bottom: 28px; }   /* iets minder lucht dan tussen de andere blokken, zodat de tools nog in beeld blijven */
.best-start .sectietitel { margin-bottom: 12px; }
.best-start__kop { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: var(--titelregel, 34px); }
.best-start__alle { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.best-start__alle .icoon { width: 16px; height: 16px; }
.best-start__leeg { margin: 0; }
.best-start__melding { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.best-start__melding .icoon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.best-start__lijst { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.best-start__lijst li { border-top: 1px solid var(--lijn); }
.best-start__lijst li:first-child { border-top: 0; }
.best-rij {
  display: grid; grid-template-columns: 130px minmax(0, 1.1fr) minmax(0, 1.4fr) 120px; gap: 16px; align-items: center;
  padding: 6px 20px; color: inherit; text-decoration: none; line-height: 1.4;
}
.best-rij { cursor: pointer; transition: background .12s ease; }
.best-rij:hover { background: #F6F6F6; }
.best-rij:focus-visible { outline-offset: -3px; }
.best-rij > span { display: flex; flex-direction: column; min-width: 0; }
.best-rij__nummer .bijschrift { white-space: nowrap; }
.best-rij__nummer strong, .best-rij__klant strong { font-weight: 600; color: #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.best-rij__klant .bijschrift, .best-rij__wat .bijschrift { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.best-rij__product { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.best-rij__status { align-items: flex-end; }

@media (max-width: 860px) {
  .best-rij { grid-template-columns: 130px minmax(0, 1fr) 120px; }
  .best-rij__wat { display: none; }
}
@media (max-width: 640px) {
  .best-rij { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 16px; }
  .best-rij__wat { display: flex; grid-column: 1 / -1; grid-row: 3; }
  .best-rij__klant { grid-column: 1; grid-row: 1; }
  .best-rij > .best-rij__nummer { grid-column: 1; grid-row: 2; flex-direction: row; gap: 8px; align-items: baseline; }
  .best-rij__status { grid-column: 2; grid-row: 1; }
}

/* Balk zoals tools.localink: geel labeltje, scheidingslijn, Start en terugweg */
.topbalk--tools .topbalk__in { gap: 0; }
.topbalk--tools .topbalk__merk { gap: 8px; margin-right: 22px; }
.topbalk--tools .merknaam { border-left: 0; padding: 2px 9px; font-size: 12px; font-weight: 600; letter-spacing: .06em; line-height: 1.5; color: #000; background: var(--geel); border-radius: var(--radius); }
.topbalk--tools .topbalk__nav { display: flex; align-items: stretch; align-self: stretch; flex: 1; min-width: 0; }
.topbalk--tools .topbalk__nav::before { content: ""; align-self: center; flex: none; width: 1px; height: 30px; margin-right: 12px; background: #d6d6d6; }
.topbalk--tools .topbalk__nav ul { flex: 1; min-width: 0; }
.topbalk--tools .topbalk__nav a:not(.is-actief) { color: var(--tekst-zacht); }
.topbalk--tools .topbalk__terug { padding-right: 18px; }
.topbalk--tools .topbalk__terug::after { content: ""; position: absolute; right: 0; top: 50%; height: 24px; margin-top: -12px; border-right: 1px solid var(--lijn); }
.topbalk--tools .icoon--klein { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .topbalk--tools:not(.topbalk--v) .topbalk__in { flex-wrap: nowrap; }
  .topbalk--tools:not(.topbalk--v) .topbalk__merk { order: 0; margin-right: 14px; }
  .topbalk--tools:not(.topbalk--v) .topbalk__nav { order: 0; flex: 1; min-height: 0; border-top: 0; overflow: visible; }
  .topbalk--tools:not(.topbalk--v) .topbalk__nav ul { min-height: 0; }
  .topbalk--tools:not(.topbalk--v) .topbalk__nav::before { margin-right: 4px; }
  .topbalk--tools:not(.topbalk--v) .topbalk__nav a { padding: 0 8px; }
  .topbalk--tools:not(.topbalk--v) .topbalk__nav li:has(a.is-actief[aria-current="location"]) { display: none; }
  .topbalk--tools:not(.topbalk--v) .gebruikersmenu { order: 0; }
  .topbalk--tools .merknaam { font-size: 11px; padding: 1px 7px; }
}
@media (max-width: 480px) {
  .topbalk--tools:not(.topbalk--v) .gebruikersmenu__naam { display: none; }
  .topbalk--tools:not(.topbalk--v) .gebruikersmenu__knop { min-width: 48px; justify-content: center; }
}

@media (max-width: 640px) { .best-rij__nummer strong { overflow: visible; } }

/* Actief onderdeel in de balk: het icoon is geel (huisstijlgeel), in het menu rechts, in het hoofdmenu van beheer en bij het naammenu.
   Op een telefoon blijft het icoon van het actieve onderdeel in het hoofdmenu van beheer zichtbaar, zodat het onderscheid blijft. */
.topbalk__ikoon.is-actief .icoon,
.topbalk__nav a.is-actief .icoon,
.gebruikersmenu__knop.is-actief > .icoon:first-of-type { color: var(--geel); stroke-width: 2.2; }
@media (max-width: 640px) {
  .topbalk__nav a.is-actief .icoon { display: inline-block; width: 18px; height: 18px; }
}

/* Knop Terug: staat op elke pagina (behalve Start) linksboven in de gele band, voor het kruimelpad */
.paginakop__boven { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 10px; }
.paginakop__boven .kruimelpad { margin-bottom: 0; }
.terugknop {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 14px 4px 10px; font-size: 14px; font-weight: 600; line-height: 1.2;
  color: #000; text-decoration: none; background: transparent; border: 1px solid #000; border-radius: var(--radius);
}
.terugknop .icoon { width: 18px; height: 18px; }
.terugknop:hover { background: #000; color: var(--geel); }
.terugknop:focus-visible { outline: 3px solid var(--zwart); outline-offset: 2px; }

/* Klantkant: Localink-logo, een dunne streep en het logo (of de naam) van het bedrijf van de klant */
.topbalk--tools .topbalk__merk--klant { gap: 14px; margin-right: 12px; min-width: 0; flex: 0 1 auto; }
.topbalk__localink { flex: none; }
.topbalk__streep { flex: none; align-self: center; width: 1px; height: 30px; background: #cfcfcf; }
/* Het klantlogo is 60% zo hoog als het Localink-logo (34px, op een telefoon 30px en 28px), verticaal gecentreerd; breed en laag blijft binnen een maximale breedte */
.topbalk__merk .topbalk__klantlogo { display: block; flex: 0 1 auto; min-width: 0; width: auto; height: calc(34px * .6); max-width: 130px; object-fit: contain; object-position: left center; }
.topbalk__klantnaam { min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: #000; line-height: 1.3; }
@media (max-width: 640px) {
  .topbalk--tools .topbalk__merk--klant { gap: 10px; margin-right: 4px; flex: 1 1 0; }
  .topbalk__streep { height: 24px; }
  .topbalk__merk .topbalk__klantlogo { height: calc(30px * .6); max-width: min(100px, 100%); }
  .topbalk__klantnaam { font-size: 14px; }
}
@media (max-width: 400px) {
  .topbalk--tools .topbalk__merk--klant { gap: 8px; }
  .topbalk__merk .topbalk__klantlogo { height: calc(28px * .6); max-width: min(92px, 100%); }
}
/* Klantkant op een telefoon: de naam in het naammenu verdwijnt (het icoon blijft, de naam staat in het paneel), zodat het bedrijf in de balk past */
@media (max-width: 480px) {
  .topbalk--v .gebruikersmenu__naam { display: none; }
  .topbalk--v .gebruikersmenu__knop { min-width: 48px; justify-content: center; }
}

/* Wat is er nieuw: per dag een witte kaart, daarbinnen per soort een labeltje en een lijst punten (app/views/wijzigingen.php) */
.wijzigdag { margin-bottom: 28px; max-width: 760px; }
.wijzigdag__kop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.wijzigdag__aantal { font-size: 13px; font-weight: 400; color: var(--tekst-zacht); }
.wijzigsoort { margin-top: 12px; }
.wijzigsoort:first-of-type { margin-top: 0; }
.wijzigsoort .label { margin-bottom: 4px; }
.label--nieuw { background: var(--gelukt-bg); color: var(--gelukt); border-color: #A9D4B9; }
.label--verbeterd { background: var(--info-bg); color: var(--info); border-color: #A8C6E3; }
.label--opgelost { background: var(--waarschuwing-bg); color: var(--waarschuwing); border-color: #E6CB6B; }
.wijzigsoort__lijst { margin: 0; padding-left: 20px; }
.wijzigregel { padding: 3px 0; line-height: 1.45; }
.wijzigregel strong { font-weight: 600; }
.wijzigregel__link { color: inherit; text-decoration: none; }
.wijzigregel__link::after { content: " \2192"; color: var(--tekst-zacht); opacity: 0; transition: opacity .15s; }
.wijzigregel__link:hover, .wijzigregel__link:focus-visible { text-decoration: underline; text-decoration-color: var(--geel); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wijzigregel__link:hover::after, .wijzigregel__link:focus-visible::after { opacity: 1; }
.wijzigregel .label { margin-left: 6px; font-size: 11px; font-weight: 500; }

/* Het huisje bij Start in de balk van beheer heeft altijd de gewone kleur, ook op de startpagina */
.topbalk__nav a.is-actief .icoon.icoon--gewoon { color: inherit; stroke-width: 1.8; }

/* Compacte blokken (klantpagina in beheer): tabel met kleinere rijen, kop met een kleine knop ernaast */
.tabel--compact th { padding: 8px 12px; }
.tabel--compact td { padding: 7px 12px; }
.kop-met-knop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
@media (max-width: 640px) { .tabel--compact td { padding: 4px 0 4px 124px; } }
.tweekolom.blok-gelijk { align-items: stretch; }
.account-kolom { max-width: 640px; }
.account-blok + .account-blok { margin-top: 24px; }

/* Aankruisvakken en keuzerondjes: zelf getekend (rand, vinkje met CSS), zodat ze er in elke browser en in de schermafbeelding van de feedbackknop hetzelfde uitzien als op het scherm */
input[type="checkbox"], input[type="radio"] { -webkit-appearance: none; appearance: none; display: inline-grid; place-content: center; flex: none; width: 20px; height: 20px; margin: 0; padding: 0; background: #fff; border: 2px solid var(--zwart); cursor: pointer; vertical-align: middle; box-sizing: border-box; }
input[type="checkbox"] { border-radius: 4px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]::before { content: ""; width: 10px; height: 5px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); }
input[type="radio"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--zwart); }
input[type="checkbox"]:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
input[type="radio"]:checked::before { transform: scale(1); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 3px solid var(--zwart); outline-offset: 2px; }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .5; cursor: not-allowed; }
