/* Bestuurders-Hub — styl volg die ontwerp (design/project). Geen teks kleiner as 14 px nie. */
:root {
  --groen: #2E6B3E; --groen-donker: #1F4A2B; --groen-lig: #E6EFE8; --groen-bleek: #F4F8F5;
  --oranje: #A3480C; --oranje-donker: #7A3509; --oranje-lig: #FBF1EA; --oranje-teks: #6B3A17;
  --blou: #1F5F8B; --blou-lig: #EAF1F7; --blou-donker: #173F5C; --bruin: #7A4A1D;
  --rooi: #8A1F1F; --rooi-lig: #FBEBEB; --geel: #FFF4D6; --geel-teks: #5C4300; --geel-rand: #E8C766;
  --teks: #1B1F1D; --teks2: #3E4542; --grys: #5F6662; --lyn: #E3E6E2; --rand: #C9CEC8; --agter: #F4F5F3;
  --onder: max(48px, env(safe-area-inset-bottom));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--teks); background: #DDE1DC; font-size: 16px; }
a { color: var(--groen); text-decoration: none; }
button, input, select { font-family: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #7FB08B; outline-offset: 2px; }

#app { max-width: 480px; margin: 0 auto; height: 100%; }
.skerm { height: 100dvh; display: flex; flex-direction: column; background: #FFFFFF; padding-bottom: var(--onder); overflow: hidden; }
.skerm.grys { background: var(--agter); }
.rol { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.vul { flex-grow: 1; }

/* Kop */
.kop { display: flex; align-items: center; gap: 4px; padding: 16px 20px 4px 8px; flex-shrink: 0; }
.kop .logo { height: 32px; width: auto; display: block; margin-left: auto; }
.terug { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--groen); }
.terug-teks { display: flex; align-items: center; gap: 2px; min-height: 44px; padding-right: 8px; font-size: 16px; color: var(--groen); }
h1 { margin: 0; font-size: 26px; font-weight: 700; }
.h1-pad { padding: 4px 20px 12px; }
.kop h1 { flex-grow: 1; font-size: 22px; padding-left: 4px; }
.sub { font-size: 14px; color: var(--grys); }
.pad { padding: 0 20px; }

/* Strook vir sein */
.strook { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; background: var(--geel); color: var(--geel-teks); flex-shrink: 0; font-size: 14px; }
.strook b { font-size: 15px; display: block; }
.strook .vul { display: flex; flex-direction: column; }
.knop-klein { min-height: 40px; padding: 0 12px; border: 1px solid #C9A64A; border-radius: 20px; background: #FFFFFF; color: var(--geel-teks); font-size: 14px; font-weight: 600; }

/* Knoppies */
.voet { flex-shrink: 0; padding: 12px 20px 8px; display: flex; flex-direction: column; gap: 6px; background: #FFFFFF; border-top: 1px solid var(--lyn); box-shadow: 0 -4px 12px rgba(27,31,29,.06); }
.voet.plat { border-top: none; box-shadow: none; background: transparent; }
.knop { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; border: none; border-radius: 26px; background: var(--groen); color: #FFFFFF; font-size: 17px; font-weight: 600; }
.knop:disabled { background: var(--lyn); color: var(--grys); cursor: default; }
.knop.omlyn { background: #FFFFFF; color: var(--groen); border: 2px solid var(--groen); }
.knop.oranje { background: var(--oranje); }
.weergawe { text-align: center; font-size: 14px; color: var(--grys); padding: 2px 0; }
.voetnota { text-align: center; font-size: 14px; color: var(--grys); }

/* Vorms */
.vorm { display: flex; flex-direction: column; gap: 18px; padding: 8px 20px 20px; }
.veld { display: flex; flex-direction: column; gap: 6px; }
.veld > label, .etiket { font-size: 15px; font-weight: 600; color: var(--teks2); }
.etiket .lig, label .lig { font-weight: 400; color: var(--grys); }
.inv { height: 52px; padding: 0 14px; border: 1px solid var(--rand); border-radius: 12px; font-size: 17px; background: #FFFFFF; width: 100%; min-width: 0; }
.inv.groot { height: 56px; font-size: 22px; font-weight: 600; }
.inv.fout { border: 2px solid var(--rooi); }
.hulp { font-size: 14px; color: var(--grys); }
.hulp.fout { color: var(--rooi); }
select.inv { appearance: none; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235F6662' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 40px; }
.keuses { display: flex; gap: 8px; flex-wrap: wrap; }
.keuse { flex: 1 1 0; min-height: 48px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--rand); background: #FFFFFF; color: var(--teks2); font-size: 16px; font-weight: 600; }
.keuse[aria-pressed="true"] { border: 2px solid var(--groen); background: var(--groen-lig); color: var(--groen-donker); }
.rooster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rooster .keuse { min-height: 48px; }
.stapper { display: flex; gap: 8px; align-items: center; }
.stap { width: 52px; height: 56px; border: 1px solid var(--rand); border-radius: 12px; background: #FFFFFF; font-size: 16px; font-weight: 600; color: var(--teks2); flex-shrink: 0; }

/* Lyste */
.lys { display: flex; flex-direction: column; gap: 6px; padding: 0 12px; }
.ry { display: flex; align-items: center; gap: 12px; padding: 12px; background: #FFFFFF; border-radius: 10px; color: var(--teks); min-height: 52px; }
.skerm:not(.grys) .ry { background: var(--agter); }
.ry .titel { flex-grow: 1; font-size: 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.ry .titel small { font-size: 14px; color: var(--grys); }
.merk { width: 28px; height: 28px; flex-shrink: 0; border-radius: 14px; border: 2px solid var(--groen); background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; color: #FFFFFF; }
.merk.oranje { border-color: var(--oranje); }
.merk.streep { border: 2px dashed #B9BFB8; }
.merk.klaar { background: var(--groen); }
.ry.klaar .titel > span:first-child { text-decoration: line-through; color: var(--grys); }
.etiket-pil { padding: 2px 8px; border-radius: 10px; background: var(--groen-lig); color: var(--groen-donker); font-size: 14px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.etiket-pil.oranje { background: var(--oranje-lig); color: var(--oranje-donker); font-weight: 500; }
.etiket-pil.geel { background: var(--geel); color: var(--geel-teks); font-weight: 700; }
h2 { margin: 16px 8px 4px; font-size: 15px; font-weight: 700; color: var(--groen); }
h2.oranje { color: var(--oranje); }
h2.grys { color: var(--teks2); }
h2 .lig { font-weight: 400; color: var(--grys); }
.kopskrif { padding: 8px 20px 4px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--grys); }
.leeg { padding: 12px 8px; font-size: 15px; color: var(--grys); }
.skakel-ry { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 0 20px; color: var(--teks); font-size: 18px; }
.skakel-ry .vul { flex-grow: 1; }
.skakel-ry .getal { color: var(--grys); font-size: 16px; }
.skeiding { height: 1px; background: var(--lyn); margin: 12px 20px; }
.kaart { background: #FFFFFF; border-radius: 12px; overflow: hidden; margin: 0 12px; }
.kaart-ry { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 16px; border-bottom: 1px solid #EDEFEC; cursor: pointer; }
.kaart-ry:last-child { border-bottom: none; }
.kaart-ry input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--groen); flex-shrink: 0; }

/* Teëls */
.hub-kop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 20px 16px; background: #FFFFFF; flex-shrink: 0; }
.hub-kop img { width: 104px; height: auto; display: block; }
.hub-kop h1 { font-size: 22px; }
.teels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.teel { display: flex; flex-direction: column; justify-content: space-between; height: 124px; padding: 14px 16px; border-radius: 16px; background: #FFFFFF; color: var(--teks); border: 2px solid transparent; }
.teel.hoof { background: var(--groen); color: #FFFFFF; }
.teel.wag { border-color: var(--geel-rand); }
.teel.hoof.wag { border-color: var(--geel-rand); }
.teel .bo { display: flex; align-items: flex-start; justify-content: space-between; }
.teel .naam { font-size: 18px; font-weight: 700; display: block; }
.teel .info { font-size: 14px; color: var(--grys); display: block; margin-top: 2px; }
.teel.hoof .info { color: #DCEBDF; }
.teel.hoof .naam { font-size: 19px; }
.status-reel { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 20px 4px; font-size: 14px; color: var(--groen-donker); text-align: center; }
.status-reel.wag { color: var(--geel-teks); }

/* Danie se Hub */
.dkop { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; background: #FFFFFF; flex-shrink: 0; }
.dkop img { height: 40px; width: auto; }
.dkop .regs { display: flex; flex-direction: column; align-items: flex-end; }
.dkop .regs b { font-size: 20px; }
.rkaart { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--blou-lig); color: var(--blou-donker); }
.rkaart .groot { font-size: 34px; font-weight: 700; }
.rkaart .ry3 { display: flex; gap: 8px; padding-top: 6px; border-top: 1px solid #C9D9E6; font-size: 14px; }
.rkaart .ry3 span { flex: 1 1 0; }

/* Versoek vir bestelnommer */
.versoek { display: flex; flex-direction: column; gap: 10px; margin: 0 12px 12px; padding: 14px; border-radius: 12px; background: var(--oranje-lig); }
.versoek .wat { font-size: 15px; color: var(--oranje-teks); }
.versoek .saam { display: flex; gap: 8px; }
.versoek .inv { height: 44px; border-color: #E2BFA6; border-radius: 10px; font-size: 16px; }
.versoek button { min-height: 44px; padding: 0 16px; border: none; border-radius: 10px; background: var(--oranje); color: #FFFFFF; font-size: 15px; font-weight: 600; flex-shrink: 0; }

/* Aansoek-kaart */
.aansoek { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--groen-lig); margin: 0 12px; }
.aansoek .saam { display: flex; gap: 8px; }
.aansoek button { flex: 1 1 0; min-height: 44px; border-radius: 22px; font-size: 15px; font-weight: 600; }
.aansoek .ja { border: none; background: var(--groen); color: #FFFFFF; }
.aansoek .nee { border: 1px solid #9AA39C; background: transparent; color: var(--teks2); }
.voorletter { width: 40px; height: 40px; border-radius: 20px; background: var(--groen-lig); color: var(--groen-donker); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }

/* Foto */
.foto-knop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 64px; border: 2px dashed var(--groen); border-radius: 12px; background: var(--groen-bleek); color: var(--groen); font-size: 17px; font-weight: 600; width: 100%; position: relative; }
.foto-knop.hoog { height: 190px; font-size: 18px; }
.foto-knop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.foto-klaar { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--rand); border-radius: 12px; }
.foto-klaar img { width: 72px; height: 96px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.foto-klaar.klein img { width: 48px; height: 48px; border-radius: 8px; }
.teks-knop { flex-shrink: 0; min-height: 40px; padding: 0 4px; border: none; background: transparent; color: var(--groen); font-size: 15px; font-weight: 600; position: relative; overflow: hidden; }
.teks-knop input { position: absolute; inset: 0; opacity: 0; }
.bn-kaart { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px; border-radius: 10px; background: var(--oranje-lig); }
.bn-kaart span { font-size: 14px; color: var(--oranje-teks); }
.bn-kaart b { font-size: 19px; color: var(--oranje-donker); }

/* Dagslone */
.dl-kop { display: flex; padding: 0 26px 6px; font-size: 14px; font-weight: 600; color: var(--grys); }
.dl-kop span:first-child { flex-grow: 1; }
.dl-kop span:last-child { width: 152px; }
.dl-ry { background: #FFFFFF; border-radius: 10px; flex-shrink: 0; }
.dl-ry .gewoon { display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 0 4px 0 14px; }
.dl-ry .naam { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; font-size: 17px; min-width: 0; }
.dl-ry .ekstra { font-size: 14px; color: var(--oranje); font-weight: 600; }
.dl-ry .dae { width: 60px; font-size: 18px; font-weight: 700; }
.ikoon-knop { width: 44px; height: 44px; border: none; background: transparent; color: var(--groen); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ikoon-knop.rooi { color: var(--rooi); }
.dl-wysig { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 2px solid var(--groen); border-radius: 10px; }
.dl-veld { display: flex; align-items: center; gap: 8px; }
.dl-veld span:first-child { flex-grow: 1; font-size: 15px; color: var(--teks2); }
.dl-veld button { width: 48px; height: 44px; border: 1px solid var(--rand); border-radius: 10px; background: #FFFFFF; font-size: 15px; font-weight: 600; color: var(--teks2); }
.dl-veld b { width: 44px; text-align: center; font-size: 19px; }
.twee { display: flex; gap: 8px; }
.twee button { flex: 1 1 0; min-height: 44px; border-radius: 22px; font-size: 15px; font-weight: 600; }
.twee .nee { border: 1px solid #9AA39C; background: transparent; color: var(--teks2); }
.twee .ja { border: none; background: var(--groen); color: #FFFFFF; }
.voeg-by { display: flex; align-items: center; gap: 10px; min-height: 52px; flex-shrink: 0; padding: 0 14px; border: 1px dashed #9AA39C; border-radius: 10px; background: transparent; color: var(--groen); font-size: 16px; font-weight: 600; width: 100%; }
.gestuur { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--groen-donker); }
.gestuur.wag { color: var(--geel-teks); }

/* Geboortes */
.gb-lys { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; overflow-y: auto; border-radius: 10px; background: var(--agter); }
.gb-ry { display: grid; grid-template-columns: 56px 56px 1fr 22px; align-items: center; gap: 6px; min-height: 44px; flex-shrink: 0; padding: 0 10px; border: none; border-bottom: 1px solid var(--lyn); background: transparent; font-size: 14px; text-align: left; width: 100%; }
.gb-ry.aan { background: var(--groen-lig); }
.gb-ry .dag, .gb-ry .kalf { color: var(--grys); }
.gb-ry .koei { font-weight: 600; }
.gb-ry .b { font-weight: 700; color: var(--blou); }
.gb-ry .v { font-weight: 700; color: var(--oranje); }

/* Sifttoets */
.sif-rooster { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 8px 10px; align-items: center; font-size: 15px; }
.sif-rooster small { font-size: 14px; color: var(--grys); }
.sif-rooster .inv { height: 48px; font-size: 18px; text-align: right; padding: 0 12px; border-radius: 10px; }
.sif-rooster .netto { text-align: right; font-weight: 600; }
.twee-kol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.twee-kol label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--teks2); }
.twee-kol .inv { height: 44px; font-size: 16px; border-radius: 10px; padding: 0 12px; }
.skakelaar { display: flex; padding: 4px; border-radius: 24px; background: #EDEFEC; }
.skakelaar button { flex: 1; min-height: 40px; border: none; border-radius: 20px; background: transparent; color: var(--grys); font-size: 16px; font-weight: 600; }
.skakelaar button[aria-checked="true"] { background: #FFFFFF; color: var(--teks); }
.uitslag { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: var(--agter); }
.uitslag .r { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.uitslag .r span:first-child { flex-grow: 1; }
.pil { min-width: 58px; text-align: center; padding: 3px 8px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.binne { background: #E5F4E4; color: #1F5A2A; }
.buite { background: var(--rooi-lig); color: var(--rooi); }
.herhaal { background: var(--geel); color: var(--geel-teks); }
.eind { padding: 14px 16px; border-radius: 12px; }
.eind b { font-size: 18px; display: block; }
.eind span { font-size: 14px; }

/* Welkom */
.welkom { justify-content: center; align-items: stretch; padding: 0 28px var(--onder); gap: 0; }
.welkom img { width: 180px; height: auto; display: block; margin: 0 auto 36px; }
.welkom .boks { display: flex; flex-direction: column; gap: 12px; }
.welkom label { font-size: 22px; font-weight: 700; text-align: center; }
.welkom .inv { height: 56px; font-size: 19px; text-align: center; }
.welkom .boodskap { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.welkom .boodskap b { font-size: 22px; }
.welkom .boodskap span { font-size: 16px; color: var(--teks2); line-height: 1.45; }

/* Boodskap onderaan (toast) */
.toast { position: fixed; left: 50%; bottom: calc(var(--onder) + 84px); transform: translateX(-50%); max-width: 440px; width: calc(100% - 32px); display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #1B1F1D; color: #FFFFFF; font-size: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 20; }
.toast.fout { background: var(--rooi); }
.toast span { flex-grow: 1; }
.toast button { border: none; background: transparent; color: #9FD3AC; font-size: 15px; font-weight: 700; min-height: 40px; }

/* Foto-oorleg */
.oorleg { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 30; padding: 16px; }
.oorleg img { max-width: 100%; max-height: 80vh; border-radius: 8px; }
.oorleg button { margin-top: 16px; min-height: 48px; padding: 0 24px; border: none; border-radius: 24px; background: #FFFFFF; font-size: 16px; font-weight: 600; }
.verborge { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
