:root {
  --geel: #f5c400; --geel-donker: #b38f00; --inkt: #1f2a37; --grijs: #5b6573;
  --lijn: #e3e6ea; --achter: #f7f6f1; --wit: #fff;
  --groen: #1e7f4f; --oranje: #b85c00; --rood: #b3261e; --blauw: #2b5ea7;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--inkt); background: var(--achter);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.45; }
main { max-width: 960px; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.5rem; margin: .5rem 0 1rem; }
h1 small { font-weight: 400; color: var(--grijs); font-size: 1rem; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
a { color: var(--blauw); }
.klein { font-size: .85rem; color: var(--grijs); }

.kop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem; padding: .7rem 1rem; background: var(--geel); }
.merk { font-weight: 700; color: var(--inkt); text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.boekje { width: 18px; height: 24px; background: var(--inkt); border-radius: 3px; border-left: 4px solid var(--geel-donker); }
.kop nav { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; }
.kop nav a, .kop nav .link { color: var(--inkt); text-decoration: none; font-size: .95rem; }
.voet { text-align: center; font-size: .8rem; color: var(--grijs); padding: 2rem 1rem; }

.kaart { background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius);
  padding: 1rem; margin-bottom: .8rem; }
.kaart.smal { max-width: 480px; margin: 2rem auto; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
a.kaart.profiel { color: inherit; text-decoration: none; }
a.kaart.profiel:hover { border-color: var(--geel-donker); }
.profiel h2 { margin: 0 0 .3rem; }

label { display: block; margin: .6rem 0; font-weight: 600; font-size: .92rem; }
label.vink { font-weight: 400; display: flex; gap: .5rem; align-items: center; }
input, select, textarea { display: block; width: 100%; margin-top: .25rem; padding: .55rem .6rem;
  font: inherit; border: 1px solid #c9ced5; border-radius: 8px; background: var(--wit); }
input[type=checkbox] { width: auto; display: inline; margin: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--geel); border-color: var(--geel-donker); }
.velden { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 1rem; }
[hidden] { display: none !important; }
.rij { display: flex; gap: .5rem; }
.rij input { margin: 0; }
.inline { display: inline; }

.knop { display: inline-block; padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--inkt);
  background: var(--inkt); color: var(--wit); font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap; }
.knop.licht { background: var(--wit); color: var(--inkt); }
.knop.gevaar { background: var(--wit); color: var(--rood); border-color: var(--rood); margin-top: .8rem; }
.knop:disabled { opacity: .6; }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--blauw); }
.acties { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.titelrij { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.titelrij .acties { margin: 0; }

.melding { padding: .6rem .8rem; border-radius: 8px; }
.melding.ok { background: #e7f4ec; color: var(--groen); }
.melding.fout { background: #fbeaea; color: var(--rood); }

.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .8rem;
  font-weight: 600; background: #eef0f3; color: var(--grijs); }
.badge.actief, .badge.levenslang { background: #e7f4ec; color: var(--groen); }
.badge.binnenkort { background: #fff1dc; color: var(--oranje); }
.badge.verlopen { background: #fbeaea; color: var(--rood); }
.badge.nog_niet { background: #e8effa; color: var(--blauw); }

.vacc { padding: 0; border-left: 6px solid var(--lijn); }
.vacc.status-actief, .vacc.status-levenslang { border-left-color: var(--groen); }
.vacc.status-binnenkort { border-left-color: var(--oranje); }
.vacc.status-verlopen { border-left-color: var(--rood); }
.vacc.status-nog_niet { border-left-color: var(--blauw); }
.vacc summary { cursor: pointer; padding: .8rem 1rem; display: grid;
  grid-template-columns: 1fr auto; gap: .15rem .8rem; list-style: none; }
.vacc summary::-webkit-details-marker { display: none; }
.vnaam { font-weight: 700; }
.vtot { grid-column: 1; }
.vlaatst { grid-column: 1 / -1; font-size: .85rem; color: var(--grijs); }
.vacc[open] summary { border-bottom: 1px solid var(--lijn); }
.vacc > table, .vacc > p { margin: .6rem 1rem; }
.lijst { margin-bottom: 1rem; }
details.kaart > summary { cursor: pointer; font-weight: 600; }

table.doses { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.doses th, table.doses td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--lijn); vertical-align: middle; }
table.doses th { color: var(--grijs); font-weight: 600; font-size: .8rem; }
td.rechts { text-align: right; white-space: nowrap; }
tr.opm td { color: var(--grijs); font-style: italic; }
.fotolink img { height: 40px; width: 56px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: .5rem; }
.huidigefoto img, #voorbeeld { max-width: 260px; max-height: 200px; border-radius: 6px; display: block; margin: .4rem 0; }

ul.ontbrekend { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem; }
ul.ontbrekend li { background: var(--wit); border: 1px dashed #c9ced5; border-radius: var(--radius); padding: .6rem .8rem; }
ul.ontbrekend b { display: block; }
ul.ontbrekend span { font-size: .85rem; color: var(--grijs); }

@media (max-width: 640px) {
  table.doses thead { display: none; }
  table.doses tr { display: block; border-bottom: 1px solid var(--lijn); padding: .3rem 0; }
  table.doses td { display: flex; justify-content: space-between; border: 0; padding: .15rem 0; }
  table.doses td[data-l]::before { content: attr(data-l); color: var(--grijs); font-size: .8rem; }
  td.rechts { justify-content: flex-end; }
  .rij { flex-direction: column; }
}

/* print */
body.print { background: var(--wit); max-width: 1000px; margin: 0 auto; padding: 1rem; }
.printbalk { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.printkop h1 { margin-top: 0; }
table.persoon th { text-align: left; padding-right: 1rem; color: var(--grijs); font-weight: 600; }
table.printtabel { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .85rem; }
table.printtabel th, table.printtabel td { border-bottom: 1px solid #ccc; padding: .3rem .4rem; text-align: left; }
table.printtabel tr.eerste td { border-top: 2px solid #999; }
.printfotos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.printfotos figure { margin: 0; break-inside: avoid; }
.printfotos img { width: 100%; }
.printfotos figcaption { font-size: .8rem; color: var(--grijs); }
@media print {
  .geen-print { display: none; }
  body.print { padding: 0; }
  @page { margin: 15mm; }
}
.nowrap { white-space: nowrap; }
