/* Klein Tourism Intranet — mobiel eerst; beheer krijgt vanaf 900px een zijbalk */
:root {
  --navy: #0F3D5C; --navy2: #1C5A7E; --teal: #146E7C; --teal-d: #0E525C; --teal-l: #E3F1F3;
  --zand: #F4EFE6; --wit: #fff; --inkt: #17202A; --grijs: #4A5A64; --grijs2: #6B7A84; --lijn: #DDD6CA; --lijn2: #EDE8DE;
  --oranje: #D9542B; --geel-l: #FFF1D6; --geel-r: #F2CC7A; --geel-t: #4A3A10; --groen: #1E8A5A; --groen-l: #E6F4EC; --groen-t: #155C3C;
  --r: 14px; --schaduw: 0 2px 8px rgba(15,61,92,.08);
  --kop: Georgia, 'Times New Roman', serif; --tekst: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lettergrootte: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--zand); color: var(--inkt); font-family: var(--tekst); font-size: var(--lettergrootte); -webkit-text-size-adjust: 100%; }
a { color: var(--teal); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.verborgen { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- kop ---- */
.kop { background: var(--navy); color: #fff; padding: calc(18px + env(safe-area-inset-top)) 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.kop .rij { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kop h1 { font-family: var(--kop); font-weight: 600; font-size: 28px; line-height: 1.15; margin: 0; }
.kop .sub { color: #D6E6EC; font-size: 15px; }
.kop .klein { color: #9FD6DE; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.terug { color: #9FD6DE; text-decoration: none; font-weight: 600; font-size: 15px; background: none; border: 0; padding: 6px 0; min-height: 36px; text-align: left; }
.pillen { display: flex; flex-wrap: wrap; gap: 6px; }
.pil { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--navy2); color: #fff; }
.taalknop { display: flex; gap: 6px; }
.taalknop button { padding: 5px 10px; border-radius: 8px; border: 1px solid #5A8AA3; background: transparent; color: #fff; font-weight: 700; font-size: 12px; min-height: 30px; }
.taalknop button[aria-pressed="true"] { background: #fff; color: var(--navy); }

/* ---- inhoud ---- */
main { max-width: 720px; margin: 0 auto; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.inhoud { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.kaart { background: var(--wit); border-radius: var(--r); box-shadow: var(--schaduw); padding: 16px; }
.kaart h2, .kaart h3 { margin: 0 0 6px; }
.lijstkaart { background: var(--wit); border-radius: var(--r); box-shadow: var(--schaduw); overflow: hidden; }
.lijstkaart > * + * { border-top: 1px solid var(--lijn2); }
.regel { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--inkt); background: none; border: 0; width: 100%; text-align: left; font-size: 16px; }
.regel .groei { flex: 1; min-width: 0; }
.regel .naam { font-weight: 700; }
.regel .klein { font-size: 13px; color: var(--grijs); }
.pijl { color: var(--grijs2); font-size: 20px; }
.badge { background: var(--oranje); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.badge.groen { background: var(--groen); } .badge.grijs { background: #EDE8DE; color: var(--grijs); } .badge.teal { background: var(--teal-l); color: var(--teal-d); } .badge.geel { background: var(--geel-l); color: var(--geel-t); }
.melding { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.melding.geel { background: var(--geel-l); border: 1px solid var(--geel-r); color: var(--geel-t); }
.melding.groen { background: var(--groen-l); border: 1px solid #A9D9BD; color: var(--groen-t); }
.melding.rood { background: #FDECE7; border: 1px solid #F0B7A6; color: #7A2A12; }
.melding.teal { background: var(--teal-l); color: var(--teal-d); }
.leeg { text-align: center; color: var(--grijs2); padding: 28px 10px; }
.sectietitel { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--grijs2); padding-top: 6px; }

/* ---- knoppen en velden ---- */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--teal); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.knop:hover { background: var(--teal-d); }
.knop.groot { min-height: 56px; font-size: 18px; width: 100%; }
.knop.wit { background: #fff; color: var(--inkt); border: 2px solid #C9D3D9; }
.knop.wit:hover { background: #F8F6F1; }
.knop.groen { background: var(--groen); } .knop.rood { background: #B53A16; } .knop.klein { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.knop[disabled] { opacity: .55; cursor: default; }
label.veld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--grijs); }
.invoer, select.invoer, textarea.invoer { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #C9D3D9; border-radius: 12px; background: #FBFAF7; font-size: 16px; color: var(--inkt); font-weight: 400; }
.invoer:focus { outline: 3px solid rgba(20,110,124,.25); border-color: var(--teal); }
textarea.invoer { min-height: 120px; line-height: 1.5; }
textarea.groot { min-height: 300px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.vink { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; padding: 4px 0; font-weight: 400; color: var(--inkt); }
.vink input { width: 22px; height: 22px; accent-color: var(--teal); flex-shrink: 0; margin-top: 1px; }
.codevak { letter-spacing: 12px; font-size: 28px; text-align: center; font-weight: 700; }
.rijknoppen { display: flex; gap: 10px; flex-wrap: wrap; }
.scheider { display: flex; align-items: center; gap: 12px; color: var(--grijs2); font-size: 13px; }
.scheider::before, .scheider::after { content: ""; flex: 1; height: 1px; background: #D5CFC4; }
.ms { display: inline-grid; grid-template-columns: 7px 7px; gap: 2px; } .ms i { width: 7px; height: 7px; display: block; }

/* ---- startpagina ---- */
.tegels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tegel { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: 16px; padding: 18px 16px; min-height: 110px; text-decoration: none; color: var(--inkt); box-shadow: var(--schaduw); border: 0; text-align: left; }
.tegel .badge { position: absolute; top: 12px; right: 12px; }
.tegel span.t { font-weight: 700; font-size: 17px; }
.tegel svg, .regel svg.ico { color: var(--teal); flex-shrink: 0; }
.bevestigbalk { display: flex; align-items: center; gap: 12px; background: var(--geel-l); border: 1px solid var(--geel-r); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--geel-t); }

/* ---- document lezen ---- */
.hoofdstuk { border-bottom: 1px solid var(--lijn2); }
.hoofdstuk:last-child { border-bottom: 0; }
.hoofdstuk > button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; background: none; border: 0; font-size: 1em; font-weight: 700; text-align: left; min-height: 52px; color: var(--inkt); }
.hoofdstuk.open > button { color: var(--teal); background: #F8FBFC; }
.hoofdstuk .tekst { padding: 0 16px 16px; background: #F8FBFC; line-height: 1.6; font-size: 1em; }
.hoofdstuk .tekst p { margin: 0 0 10px; } .hoofdstuk .tekst ul { margin: 0 0 10px; padding-left: 22px; } .hoofdstuk .tekst li { margin-bottom: 4px; }
.onderbalk { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--lijn); padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.onderbalk .binnen { max-width: 680px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.onderbalk .klein { font-size: 12px; color: var(--grijs2); text-align: center; }

/* ---- mensen ---- */
.persoon { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--schaduw); }
.avatar { width: 52px; height: 52px; border-radius: 999px; background: #D8CFC0; color: var(--geel-t); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.klein { width: 36px; height: 36px; font-size: 13px; }
.rondknop { width: 44px; height: 44px; border-radius: 999px; background: var(--teal-l); display: inline-flex; align-items: center; justify-content: center; color: var(--teal); flex-shrink: 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.chip { white-space: nowrap; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid #5A8AA3; color: #fff; background: transparent; min-height: 34px; }
.chip[aria-pressed="true"] { background: #fff; color: var(--navy); font-weight: 700; }
.zoekveld { color: var(--grijs2); display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 0 14px; min-height: 48px; }
.zoekveld input { flex: 1; border: 0; background: transparent; font-size: 16px; min-height: 46px; outline: none; }
.org-blok { border-radius: 14px; padding: 12px 16px; }
.org-lijn { width: 3px; height: 18px; background: #B9C6CE; margin-left: 38px; }

/* ---- onderste navigatie ---- */
nav.onder { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--lijn); display: flex; justify-content: space-around; padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); z-index: 4; }
nav.onder a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; text-decoration: none; color: var(--grijs); min-width: 58px; min-height: 44px; justify-content: center; position: relative; }
nav.onder a[aria-current="page"] { color: var(--teal); font-weight: 700; }
nav.onder .stip { position: absolute; top: 0; right: 12px; width: 9px; height: 9px; border-radius: 99px; background: var(--oranje); }

/* ---- toast ---- */
#toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--inkt); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 50; max-width: 90vw; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
#toast.fout { background: #8A2A10; }

/* ---- beheer ---- */
.beheer { display: flex; min-height: 100vh; }
.zijbalk { width: 230px; flex-shrink: 0; background: var(--navy); color: #fff; padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.zijbalk .merk { font-family: var(--kop); font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.zijbalk .merk small { display: block; font-family: var(--tekst); font-size: 12px; font-weight: 700; color: #9FD6DE; letter-spacing: 1px; }
.zijbalk a { display: block; padding: 10px 12px; border-radius: 8px; color: #D6E6EC; text-decoration: none; font-weight: 600; font-size: 15px; }
.zijbalk a[aria-current="page"] { background: #fff; color: var(--navy); font-weight: 700; }
.zijbalk .voet { margin-top: auto; font-size: 13px; color: #9FD6DE; padding-top: 16px; }
.zijbalk .voet b { color: #fff; }
.werkvlak { flex: 1; min-width: 0; padding: 28px 32px 60px; display: flex; flex-direction: column; gap: 18px; }
.werkvlak h1 { font-family: var(--kop); font-size: 28px; font-weight: 600; margin: 0; }
.werkvlak .onder-titel { color: var(--grijs); font-size: 14px; margin-top: 2px; }
.kopregel { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.tabel { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--schaduw); font-size: 14px; }
.tabel th { background: #F8F6F1; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--grijs2); padding: 10px 12px; }
.tabel td { padding: 12px; border-top: 1px solid var(--lijn2); vertical-align: middle; }
.tabel tr.uit td { color: var(--grijs2); background: #FBFAF7; }
.tabel a.titel, .tabel button.titel { font-weight: 700; color: var(--inkt); text-decoration: none; background: none; border: 0; padding: 0; text-align: left; font-size: 14px; }
.tabelwrap { overflow-x: auto; }
.twee { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.drie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vier { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kol { display: flex; flex-direction: column; gap: 14px; }
.cijfer { font-family: var(--kop); font-size: 34px; font-weight: 700; }
.balk { height: 8px; border-radius: 999px; background: var(--lijn2); overflow: hidden; }
.balk > i { display: block; height: 100%; background: var(--groen); border-radius: 999px; }
.balk > i.laag { background: var(--oranje); }
.schakel { display: inline-flex; width: 46px; height: 28px; border-radius: 999px; background: #B9C6CE; border: 0; padding: 3px; align-items: center; }
.schakel::after { content: ""; width: 22px; height: 22px; border-radius: 99px; background: #fff; transition: transform .15s; }
.schakel[aria-checked="true"] { background: var(--groen); } .schakel[aria-checked="true"]::after { transform: translateX(18px); }
.venster-achter { position: fixed; inset: 0; background: rgba(15,30,40,.45); z-index: 30; display: flex; align-items: flex-start; justify-content: center; padding: 30px 12px; overflow-y: auto; }
.venster { background: var(--zand); border-radius: 16px; width: 100%; max-width: 760px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.venster.smal { max-width: 440px; }
.venster h2 { margin: 0; font-family: var(--kop); font-weight: 600; }
.telefoonframe { width: 390px; max-width: 100%; height: 720px; border: 10px solid #17202A; border-radius: 34px; overflow-y: auto; background: var(--zand); margin: 0 auto; }
.status-ok { color: var(--groen); font-weight: 700; } .status-fout { color: #B53A16; font-weight: 700; } .status-grijs { color: var(--grijs2); }
code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.hulptekst { font-size: 13px; color: var(--grijs2); line-height: 1.45; }
.menuknop { display: none; }

@media (max-width: 899px) {
  .beheer { flex-direction: column; }
  .zijbalk { width: auto; flex-direction: row; flex-wrap: wrap; padding: calc(12px + env(safe-area-inset-top)) 12px 12px; gap: 4px; }
  .zijbalk .merk { width: 100%; margin-bottom: 6px; font-size: 18px; }
  .zijbalk a { padding: 8px 10px; font-size: 14px; }
  .zijbalk .voet { display: none; }
  .werkvlak { padding: 18px 14px 60px; }
  .twee, .drie { grid-template-columns: minmax(0, 1fr); }
  .vier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) { main.breed { max-width: 900px; } }

/* ---- computer/tablet (v1.3.2): kop en menu uitgelijnd met de inhoudskolom, meer tegels naast elkaar ---- */
@media (min-width: 760px) {
  .kop { padding-left: max(20px, calc((100% - 680px) / 2)); padding-right: max(20px, calc((100% - 680px) / 2)); }
  nav.onder { padding-left: max(6px, calc((100% - 720px) / 2)); padding-right: max(6px, calc((100% - 720px) / 2)); }
  .tegels { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  main { padding-top: 12px; }
  .loginscherm .kop { padding-top: 64px; padding-bottom: 48px; text-align: center; }
  .loginscherm .kop .rij { justify-content: center; }
  .loginscherm main { max-width: 480px; }
}
@media (min-width: 1100px) {
  .loginscherm { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .loginscherm .kop { justify-content: center; text-align: left; padding: 48px max(40px, calc((50vw - 440px) / 2)); }
  .loginscherm .kop .rij { justify-content: flex-start; }
  .loginscherm .kop h1 { font-size: 48px !important; }
  .loginscherm main { align-self: center; width: 100%; max-width: 480px; margin: 0 auto; padding: 40px 20px; }
}

/* v1.4: welkomsttekst en tussenkopjes */
.kop .welkom { margin-top: 10px; font-size: 14px; line-height: 1.45; color: #D6E6EC; max-width: 560px; }
.kop .welkom b { color: #fff; }
.hoofdstuk .tekst p.kopje { margin: 14px 0 6px; color: var(--navy); }
/* v1.4: lange tegelnamen (Personeelshandboek, Arbeidsvoorwaarden) netjes afbreken; nooit breder dan het scherm */
.tegel { min-width: 0; }
.tegel span.t { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
html, body { overflow-x: hidden; }
