@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(vendor/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap;
  src: url(vendor/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(vendor/fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap;
  src: url(vendor/fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --inkt: #22303c;        /* tekst */
  --inkt-zacht: #5a6772;
  --papier: #f6f8f7;      /* achtergrond */
  --vlak: #ffffff;
  --lijn: #d6dedb;
  --sloot: #1f6fb2;       /* acties, nog te doen */
  --sloot-donker: #175a92;
  --gras: #2e7d4f;        /* bezorgd */
  --geel: #f2c230;        /* selectie, zoals een wegmarkering */
  --steen: #9aa3a0;       /* overgeslagen */
  --rood: #b23a2e;        /* Nee/Nee, fouten */
  --amber: #c27c0e;       /* Nee/Ja */
  --radius: 10px;
  --tik: 48px;            /* minimale knophoogte */
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--inkt);
  background: var(--papier);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-size: 17px; line-height: 1.45; }
h1 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.2rem; line-height: 1.25; margin: 1.4rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 .3rem; }
p { margin: .4rem 0; }
a { color: var(--sloot); }
.zacht { color: var(--inkt-zacht); }
.klein { font-size: .9rem; }
.verborgen { display: none !important; }
:focus-visible { outline: 3px solid var(--geel); outline-offset: 2px; }

button, .knop {
  font: inherit; font-weight: 700; min-height: var(--tik); padding: .55rem 1rem; border-radius: var(--radius);
  border: 2px solid var(--sloot); background: var(--sloot); color: #fff; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; touch-action: manipulation;
}
button:active { transform: translateY(1px); }
button.tweede, .knop.tweede { background: var(--vlak); color: var(--sloot); }
button.stil { background: transparent; border-color: transparent; color: var(--sloot); padding-inline: .5rem; }
button.gevaar { background: var(--vlak); color: var(--rood); border-color: var(--rood); }
button.groen { background: var(--gras); border-color: var(--gras); }
button:disabled { opacity: .45; cursor: not-allowed; }
.knoppen { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.knoppen > * { flex: 1 1 auto; }

input, select, textarea {
  font: inherit; min-height: var(--tik); padding: .45rem .7rem; border: 2px solid var(--lijn); border-radius: var(--radius);
  background: var(--vlak); color: var(--inkt); width: 100%;
}
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; min-height: 0; accent-color: var(--sloot); }
label { display: block; font-weight: 700; margin: .7rem 0 .25rem; }
label.inline { display: flex; align-items: center; gap: .5rem; font-weight: 400; margin: .35rem 0; }
.veld-rij { display: flex; gap: .6rem; flex-wrap: wrap; }
.veld-rij > * { flex: 1 1 140px; }

.blok { background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 1rem; margin: .7rem 0; }
.melding { padding: .7rem 1rem; border-radius: var(--radius); background: #e8f1f9; border-left: 5px solid var(--sloot); margin: .6rem 0; }
.melding.fout { background: #f8e8e6; border-color: var(--rood); }
.melding.goed { background: #e6f2eb; border-color: var(--gras); }

/* voortgangslint: het herkenningspunt van de app */
.lint { height: 12px; background: #dfe6e3; border-radius: 6px; overflow: hidden; }
.lint > i { display: block; height: 100%; background: var(--gras); transition: width .4s ease; }
@media (prefers-reduced-motion: reduce) { .lint > i { transition: none; } }

#toast {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--inkt); color: #fff; padding: .7rem 1rem; border-radius: var(--radius); z-index: 3000;
  max-width: calc(100vw - 32px); box-shadow: 0 4px 16px rgba(34, 48, 60, .3); display: none;
}
#toast.fout { background: var(--rood); }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--lijn); vertical-align: top; }
th { font-size: .9rem; color: var(--inkt-zacht); font-weight: 700; }
td.getal, th.getal { text-align: right; font-variant-numeric: tabular-nums; }
.pil { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .85rem; font-weight: 700; background: #e4ebe8; }
.pil.groen { background: #dcefe3; color: var(--gras); }
.pil.blauw { background: #dce9f5; color: var(--sloot-donker); }
.pil.geel { background: #fbefc4; color: #6b5200; }
.pil.rood { background: #f6dedb; color: var(--rood); }

.leaflet-container { font: inherit; background: #e9eeec; }
.wijklabel { background: none; border: 0; box-shadow: none; font-weight: 700; color: var(--inkt-zacht); font-size: 14px;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff; }
.wijklabel:before { display: none; }

.legenda { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .85rem; color: var(--inkt-zacht); margin: .3rem 0; }
.legenda i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

/* terugknop met tekst (lopers-app en beheer) */
.terug { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .6rem 0 0; font-weight: 700; text-decoration: none; color: var(--sloot); }
.terug span { font-size: 1.7rem; line-height: 1; margin-top: -3px; }

/* kopbalk en hamburgermenu: dezelfde in de lopers-app en (op een telefoon) in het beheer */
.appbalk { position: sticky; top: 0; z-index: 3000; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: var(--inkt); color: #fff; padding: calc(6px + env(safe-area-inset-top)) 8px 6px 16px; }
.appbalk-tekst { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.appbalk-tekst span { font-size: .8rem; color: #b9c4cc; }
.appbalk-tekst strong { font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menuknop { min-width: var(--tik); min-height: var(--tik); padding: 0; background: transparent; border-color: transparent; color: #fff; }
.menuknop.licht { color: var(--inkt); }
.menuknop:hover { background: rgba(255, 255, 255, .1); }
.menuknop.licht:hover { background: rgba(34, 48, 60, .07); }
.appmenu { position: fixed; left: 0; right: 0; top: var(--menu-top, 60px); z-index: 4500; max-height: calc(100vh - var(--menu-top, 60px)); overflow-y: auto;
  background: var(--inkt); color: #fff; padding: .3rem 0 1rem; }
.appmenu[hidden] { display: none; }
.appmenu-item { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0 20px; font: inherit; font-size: 1.05rem; font-weight: 400;
  color: #dfe6eb; text-decoration: none; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; justify-content: flex-start; }
.appmenu-item[aria-current="page"] { color: #fff; font-weight: 700; box-shadow: inset 4px 0 0 var(--geel); background: rgba(255, 255, 255, .06); }
.appmenu-item:hover { background: rgba(255, 255, 255, .1); }
.appmenu .appmenu-item.gevaar { color: #f3b6ad; background: none; border-color: transparent; border-bottom-color: rgba(255, 255, 255, .08); }
.appmenu-onder { padding: .8rem 20px 0; font-size: .9rem; color: #b9c4cc; }
/* de rest van het scherm onder het menu iets donkerder; de kopbalk erboven blijft gewoon zichtbaar */
.appmenu { box-shadow: 0 0 0 100vmax rgba(34, 48, 60, .35); clip-path: inset(0 0 -100vmax 0); }

/* keuzebalk onderaan: zwevend en donker (zoals de oude balk in de kaart), binnen duimbereik.
   Voor bevestigen, keuzes en ongedaan maken, in de lopers-app en het beheer. */
.keuzebalk { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 4000;
  max-width: 640px; margin: 0 auto; background: var(--inkt); color: #fff; border-radius: var(--radius);
  padding: .65rem .75rem .75rem; box-shadow: 0 6px 20px rgba(34, 48, 60, .35); }
.kb-kop { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.kb-tekst { min-width: 0; line-height: 1.35; }
.kb-tekst strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-toelichting { font-size: .9rem; opacity: .85; margin-top: .15rem; max-height: 4.2em; overflow: auto; }
.keuzebalk button.tweede { background: transparent; color: #fff; border-color: #fff; }
.keuzebalk button.stil { color: #fff; }
.kb-extra { flex: 0 0 auto; min-height: 44px; padding: .35rem .8rem; font-size: .95rem; }
.kb-label { display: block; margin-top: .6rem; font-weight: 700; font-size: .95rem; }
.kb-label .kb-invoer { margin-top: .3rem; }
.kb-knoppen { display: flex; gap: .6rem; margin-top: .6rem; }
.kb-knoppen button { min-height: 56px; font-size: 1.05rem; padding-inline: .6rem; }
.kb-knoppen .kb-annuleer { flex: 1 1 0; }
.kb-knoppen .kb-actie { flex: 1.5 1 0; }
.kb-knoppen .kb-actie.groen { background: var(--gras); border-color: var(--gras); color: #fff; }
.kb-knoppen .kb-actie.gevaar { background: var(--rood); border-color: var(--rood); color: #fff; }
.kb-knoppen .kb-actie:disabled { opacity: .55; }
.kb-knoppen.gelijk .kb-actie { flex: 1 1 0; }
.kb-knoppen .kb-icoon { flex: 0 0 56px; width: 56px; min-width: 56px; height: 56px; padding: 0; }
.kb-knoppen .kb-icoon:disabled { opacity: .35; cursor: default; }
.melding-balk .kb-tekst { font-weight: 700; flex: 1 1 auto; min-width: 0; }
.melding-balk .kb-regel { display: block; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.melding-balk .kb-regel.kb-vet { font-weight: 700; }
.melding-balk .kb-extra { padding-inline: .6rem; font-size: .9rem; }
body.balk-open main, body.balk-open .paneel-inhoud { padding-bottom: 140px; }
