:root {
  --navy: #14234b; --navy-2: #1d3263; --navy-3: #2a4280; --oranje: #f28c28; --oranje-donker: #d9761a;
  --achtergrond: #f4f6fa; --rand: #e2e6ee; --tekst: #1f2937; --grijs: #6b7280; --groen: #15803d; --rood: #b91c1c; --geel: #a16207;
  --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; color: var(--tekst); background: var(--achtergrond); line-height: 1.5; overflow-wrap: break-word; }
a { color: var(--navy-3); }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; color: var(--navy); }
h2 { font-size: 1.2rem; margin: 0 0 .75rem; color: var(--navy); }
h3 { font-size: 1rem; margin: 0 0 .5rem; color: var(--navy); }
.sub { color: var(--grijs); margin: 0 0 1.25rem; }
.klein { font-size: .85rem; color: var(--grijs); }

/* Startscherm inloggen/aanmelden */
.start { max-width: 460px; margin: 0 auto; }
.start-illustratie { display: block; width: 100%; max-width: 300px; margin: 0 auto .5rem; }
.kaart-illustratie { display: block; width: 100%; max-width: 260px; margin: 0 auto 1rem; }
.leeg-illustratie { display: block; width: 120px; margin: 0 auto .75rem; }
.start-keuze { display: block; background: #fff; border: 1px solid var(--rand); border-radius: 12px; padding: 1.1rem 1.25rem; margin-bottom: .75rem; text-decoration: none; color: var(--navy); }
.start-keuze strong { display: block; font-size: 1.1rem; }
.start-keuze span { color: var(--grijs); font-size: .92rem; }
.start-keuze:hover { border-color: var(--navy-3); }
.start-keuze.hoofd { background: var(--oranje); border-color: var(--oranje); color: #fff; }
.start-keuze.hoofd span { color: #fff; opacity: .9; }

/* Publieke kop */
.kop .alleen-mobiel { display: none; }
.onderbalk { display: none; }
.onderbalk a, .onderbalk button { flex: 1; min-width: 0; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: .45rem .15rem; background: none; border: 0; border-top: 3px solid transparent; color: var(--grijs); font: inherit; font-size: .72rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.onderbalk span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onderbalk svg { width: 24px; height: 24px; }
.onderbalk .actief { color: var(--navy); border-top-color: var(--oranje); font-weight: 600; }
.zijmenu-achtergrond { position: fixed; inset: 0; z-index: 50; background: rgba(20,35,75,.45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.zijmenu { position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: min(85vw, 330px); background: #fff; display: flex; flex-direction: column; transform: translateX(-100%); visibility: hidden; transition: transform .25s ease, visibility .25s; box-shadow: 4px 0 20px rgba(20,35,75,.15); padding-bottom: env(safe-area-inset-bottom); }
.menu-open .zijmenu { transform: none; visibility: visible; }
.menu-open .zijmenu-achtergrond { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.zijmenu-kop { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1rem; border-bottom: 1px solid var(--rand); background: var(--achtergrond); }
.zijmenu-kop strong { color: var(--navy); display: block; }
.zijmenu-kop > div { flex: 1; min-width: 0; }
.zijmenu-kop .klein { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zijmenu-logo { height: 40px; margin-right: auto; }
.zijmenu a.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--rand); }
.zijmenu a.avatar img { width: 100%; height: 100%; object-fit: cover; }
.zijmenu-sluit { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.zijmenu-sluit svg { width: 26px; height: 26px; }
.zijmenu-links { padding: .5rem; display: flex; flex-direction: column; overflow-y: auto; }
.zijmenu-links a, .zijmenu-uit button { display: flex; align-items: center; gap: .85rem; width: 100%; padding: .9rem .85rem; border-radius: 8px; color: var(--navy); text-decoration: none; font: inherit; font-size: 1.02rem; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left; }
.zijmenu-links a.actief { background: var(--achtergrond); font-weight: 600; }
.zijmenu svg { width: 22px; height: 22px; flex: none; }
.zijmenu-uit { margin-top: auto; padding: .5rem; border-top: 1px solid var(--rand); }
.zijmenu-uit button { color: var(--rood); }
.zijmenu-voet { padding: .75rem 1.25rem 1rem; }

.kop { background: #fff; border-bottom: 1px solid var(--rand); }
.kop-binnen { max-width: 1080px; margin: 0 auto; padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.kop img { height: 44px; display: block; }
.kop nav { margin-left: auto; display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.kop nav a { text-decoration: none; color: var(--navy); padding: .45rem .7rem; border-radius: 6px; font-weight: 500; }
.kop nav a:hover, .kop nav a.actief { background: var(--achtergrond); }
.kop form.uitloggen { order: 1; }
.kop a.avatar { order: 2; flex: none; text-decoration: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 600; border: 2px solid var(--rand); }
.kop a.avatar img { width: 100%; height: 100%; object-fit: cover; }
.fee { margin-top: .4rem; font-size: .9rem; color: var(--navy); background: #fff4e6; border-radius: 6px; padding: .3rem .55rem; display: inline-block; }
.fee-kaart { border-left: 4px solid var(--oranje); }
.fee-bedrag { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: .25rem 0 .5rem; }
.profielfoto { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rand); display: block; }
.inhoud { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.smal { max-width: 560px; }
.voet { text-align: center; color: var(--grijs); font-size: .85rem; padding: 2rem 1rem; }

/* Beheer met zijbalk */
.beheer { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.zijbalk { background: var(--navy); color: #fff; padding: 1.25rem .75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.zijbalk .logo { background: #fff; border-radius: 6px; padding: .5rem; margin-bottom: 1.25rem; }
.zijbalk .logo img { width: 100%; display: block; }
.zijbalk a { display: flex; align-items: center; justify-content: space-between; color: #d6ddf0; text-decoration: none; padding: .55rem .75rem; border-radius: 6px; margin-bottom: 2px; }
.zijbalk a:hover { background: var(--navy-2); color: #fff; }
.zijbalk a.actief { background: var(--navy-3); color: #fff; font-weight: 600; }
.zijbalk .sectie { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #8c9bc2; margin: 1rem .75rem .35rem; }
.zijbalk form button { background: none; border: 0; color: #d6ddf0; padding: .55rem .75rem; cursor: pointer; font: inherit; width: 100%; text-align: left; border-radius: 6px; }
.zijbalk form button:hover { background: var(--navy-2); color: #fff; }
.beheer-inhoud { padding: 1.75rem 2rem 3rem; min-width: 0; }
.teller { background: var(--oranje); color: #fff; border-radius: 999px; font-size: .75rem; padding: 0 .5rem; font-weight: 700; }

/* Componenten */
.kaart { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 1.25rem; }
.cijfer { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: inherit; display: block; }
.cijfer .waarde { font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.cijfer .label { display: block; background: none; padding: 0; border-radius: 0; white-space: normal; font-weight: 400; color: var(--grijs); font-size: .9rem; }
.cijfer.let-op { border-left: 4px solid var(--oranje); }
.twee { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.twee > *, .gegevens > * { min-width: 0; overflow-wrap: anywhere; }
.balk { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.knoppen { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

.knop { display: inline-flex; align-items: center; gap: .4rem; background: var(--oranje); color: #fff; border: 0; border-radius: 6px; padding: .6rem 1.1rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.knop:hover { background: var(--oranje-donker); }
.knop.tweede { background: #fff; color: var(--navy); border: 1px solid var(--rand); }
.knop.tweede:hover { background: var(--achtergrond); }
.knop.gevaar { background: var(--rood); }
.knop.klein { padding: .35rem .7rem; font-size: .85rem; }
.knop.breed { width: 100%; justify-content: center; }
.link-knop { background: none; border: 0; color: var(--navy-3); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

table { width: 100%; border-collapse: collapse; background: #fff; }
.tabel-wrap { overflow-x: auto; border: 1px solid var(--rand); border-radius: var(--radius); background: #fff; margin-bottom: 1.25rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { background: #f8f9fc; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grijs); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfd; }
td.getal, th.getal { text-align: right; white-space: nowrap; }
.leeg { color: var(--grijs); text-align: center; padding: 2rem; }

.label { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eef1f7; color: var(--navy); white-space: nowrap; }
.label.groen { background: #dcfce7; color: var(--groen); }
.label.rood { background: #fee2e2; color: var(--rood); }
.label.geel { background: #fef3c7; color: var(--geel); }
.label.oranje { background: #ffedd5; color: #c2410c; }
.label.blauw { background: #dbeafe; color: #1d4ed8; }

form .veld { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; color: var(--navy); font-size: .92rem; }
label .klein { font-weight: 400; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid #cfd5e1; border-radius: 6px; font: inherit; background: #fff; color: var(--tekst);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #c7d2fe; border-color: var(--navy-3); }
textarea { min-height: 110px; resize: vertical; }
input[type=file] { font: inherit; }
.vinkje { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; color: var(--tekst); }
.vinkje input { margin-top: .3rem; }
.rij { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.rij3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filters > * { flex: 1 1 160px; }
.filters .knop { flex: 0 0 auto; }
.inline { display: inline; }

.melding { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.fouten { background: #fef2f2; border: 1px solid #fecaca; color: var(--rood); padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.fouten ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; }

/* Vacaturebank */
.vacature-lijst { display: grid; gap: .75rem; }
.vacature-item { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; text-decoration: none; color: inherit; }
.vacature-item:hover { border-color: var(--navy-3); }
.vacature-item.alleen-kijken:hover { border-color: var(--rand); }
.held-binnen p a { color: inherit; font-weight: 700; }
.vacature-item h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.vacature-hoofd { display: flex; gap: 1rem; align-items: center; min-width: 0; }
.vacature-foto { width: 112px; height: 80px; object-fit: cover; border-radius: 6px; flex: none; }
.vacature-hoofdfoto { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: 6px; margin-bottom: .75rem; }
.vacature-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.vacature-fotos img { display: block; width: 100%; height: 72px; object-fit: cover; border-radius: 6px; }
.foto-beheer { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.foto-tegel { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.foto-tegel img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rand); }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--rand); margin-bottom: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: .6rem 1rem; text-decoration: none; color: var(--grijs); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--navy); }
.tabs a.actief { color: var(--navy); border-bottom-color: var(--oranje); }
.kenmerken { display: flex; flex-wrap: wrap; gap: .35rem .9rem; color: var(--grijs); font-size: .9rem; }
.held { background: var(--navy); color: #fff; padding: 2rem 1rem; }
.held { position: relative; overflow: hidden; }
.held-binnen { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }
.held-illustratie { position: absolute; right: max(1rem, calc(50% - 560px)); bottom: -6px; width: 300px; pointer-events: none; }
@media (min-width: 900px) { .held-binnen { padding-right: 320px; } }
@media (max-width: 899px) { .held-illustratie { width: 150px; right: -20px; top: .5rem; bottom: auto; opacity: .35; } }
.held h1 { color: #fff; }
.held p { color: #c9d3ec; margin: .25rem 0 1rem; }
.held form { display: flex; gap: .5rem; flex-wrap: wrap; }
.held input, .held select { flex: 1 1 200px; border: 0; }
.omschrijving { white-space: pre-line; overflow-wrap: anywhere; }

/* Recruiter */
.qr-blok { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.qr-blok img { width: 180px; height: 180px; border: 1px solid var(--rand); border-radius: 6px; }
.code-veld { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--achtergrond); padding: .5rem .7rem; border-radius: 6px; word-break: break-all; }
.stappen { display: flex; gap: 4px; flex-wrap: wrap; margin-top: .4rem; }
.stap { font-size: .72rem; padding: .15rem .45rem; border-radius: 4px; background: #eef1f7; color: var(--grijs); }
.stap.klaar { background: var(--navy); color: #fff; }
.stap.laatste.klaar { background: var(--groen); }

.dossier-foto { width: 120px; height: 140px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rand); }
.gegevens { display: grid; grid-template-columns: 160px 1fr; gap: .35rem 1rem; margin: 0; }
.gegevens dt { color: var(--grijs); }
.gegevens dd { margin: 0; }
details summary { cursor: pointer; color: var(--navy-3); font-weight: 600; }
.sol-form { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)) auto; gap: .5rem; align-items: end; margin-top: .5rem; }
.sol-form label { font-size: .78rem; margin-bottom: .15rem; }
.sol-form input, .sol-form select { padding: .4rem .5rem; font-size: .9rem; }

@media (max-width: 860px) {
  .beheer { grid-template-columns: 1fr; }
  .zijbalk { position: static; height: auto; display: flex; flex-wrap: wrap; gap: .25rem; padding: .75rem; }
  .zijbalk .logo { width: 100%; max-width: 220px; margin-bottom: .5rem; }
  .zijbalk .sectie { display: none; }
  .beheer-inhoud { padding: 1.25rem 1rem; }
  .twee, .rij, .rij3 { grid-template-columns: 1fr; }
  .sol-form { grid-template-columns: 1fr 1fr; }
  .gegevens { grid-template-columns: 1fr; }
  .gegevens dt { margin-top: .4rem; }
  .vacature-item { flex-direction: column; align-items: flex-start; }
  .vacature-hoofd { flex-direction: column; align-items: flex-start; width: 100%; }
  .vacature-foto { width: 100%; height: 160px; }
  .tabs a { padding: .6rem .7rem; }
}

/* Beheer: aanvullingen */
.sollicitatie-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.sollicitatie-form select, .sollicitatie-form input { width: auto; padding: .3rem .45rem; font-size: .85rem; }
.veld-klein { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 400; color: var(--grijs); margin: 0; }
.kader { border: 1px solid var(--rand); border-radius: var(--radius); padding: .75rem 1rem; margin: 0 0 1rem; }
.kader legend { font-weight: 600; color: var(--navy); padding: 0 .3rem; }
.pasfoto { width: 90px; height: 110px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rand); }
.gevaar-kader { border-left: 4px solid var(--rood); }
a.cijfer { text-decoration: none; color: inherit; }
a.cijfer:hover { border-color: var(--navy-3); }
details summary { cursor: pointer; }
dl.gegevens + h3 { margin-top: 1.25rem; }

@media (max-width: 640px) {
  .kop-binnen { gap: .5rem; }
  .kop nav, .kop form.uitloggen { display: none; }
  .kop a.avatar, .kop .alleen-mobiel { margin-left: auto; }
  .kop .alleen-mobiel { display: inline-block; }
  .onderbalk { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--rand); box-shadow: 0 -2px 12px rgba(20,35,75,.07); padding-bottom: env(safe-area-inset-bottom); }
  body:has(.onderbalk) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  table.stapel thead { display: none; }
  table.stapel, table.stapel tbody, table.stapel tr, table.stapel td { display: block; width: 100%; }
  table.stapel tr { padding: .6rem 0; border-bottom: 1px solid var(--rand); }
  table.stapel tr:last-child { border-bottom: 0; }
  table.stapel td { border: 0; padding: .2rem .9rem; text-align: left; white-space: normal; }
  table.stapel td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grijs); font-weight: 600; }
  table.stapel td.leeg { padding: 1.5rem .9rem; text-align: center; }
}
.kop-logo, .zijbalk .logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.merk { font-weight: 800; letter-spacing: .06em; color: var(--navy); font-size: .95rem; white-space: nowrap; }
.zijbalk .logo { flex-direction: column; gap: .3rem; }
@media (max-width: 420px) { .kop .merk { font-size: .75rem; } .kop-logo { gap: .4rem; } .kop .kop-logo img { height: 36px; } }
