/* Binadit Book. Dezelfde tokens als de inlogpagina van Workspace, uit de huisstijl van de
   website: licht als standaard, donker voor wie zijn systeem zo heeft staan. */
:root {
  --page: #FAFBFD; --card: #FFFFFF; --rule: #DDE4EE; --field: #FFFFFF; --sunken: #F4F7FB;
  --ink: #101A2E; --body: #3F4B60; --muted: #636E80;
  --signal: #2563eb; --signal-hover: #1d4ed8; --signal-soft: #EEF3FE;
  --exposure: #B03D0B; --exposure-soft: #FDF0E8; --verified: #127A4E; --verified-soft: #E8F4EE;
  --shadow: 0 1px 2px -1px rgba(16, 26, 46, .08), 0 8px 24px -14px rgba(16, 26, 46, .14);
  --veld: 46px; --bocht: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0D1526; --card: #16203A; --rule: #24304C; --field: #0D1526; --sunken: #111B31;
    --ink: #F5F7FA; --body: #A9B4C7; --muted: #7A8699;
    --signal-soft: #1B2A4E; --exposure: #E8763A; --exposure-soft: #2A1D1A;
    --verified: #2FA774; --verified-soft: #14281F; --shadow: none;
  }
}

* { box-sizing: border-box; }
/* display op een blok wint anders van het hidden-kenmerk, en dan blijft een verborgen deel staan. */
[hidden] { display: none !important; }
html { font-size: 16px; }
body {
  margin: 0; min-height: 100vh; padding: 24px 16px; background: var(--page); color: var(--body);
  font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem; line-height: 1.5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
h1, h2, h3 {
  color: var(--ink); font-family: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em; margin: 0;
}

/* --- velden: alles even hoog, ook een select en een tijdveld --------------------- */
label { display: block; margin: 16px 0 6px; color: var(--ink); font-size: 1rem; }
input[type=text], input[type=email], input[type=number], input[type=time], input[type=date],
select, textarea {
  display: block; width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--field); border: 1px solid var(--rule); border-radius: var(--bocht);
}
input[type=text], input[type=email], input[type=number], input[type=time], input[type=date], select {
  height: var(--veld); padding: 0 12px; line-height: calc(var(--veld) - 2px);
}
textarea { padding: 10px 12px; resize: vertical; min-height: 84px; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; }
/* Het pijltje is met randen getekend: de CSP van deze dienst staat geen data-afbeeldingen toe. */
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); pointer-events: none;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--signal); outline-offset: 2px;
}
input[type=checkbox] { width: auto; height: auto; accent-color: var(--signal); }
@media (prefers-color-scheme: dark) { input, select, textarea { color-scheme: dark; } }

.primary {
  display: inline-flex; align-items: center; justify-content: center; height: var(--veld);
  padding: 0 20px; font: inherit; font-weight: 600; color: #fff; background: var(--signal);
  border: 0; border-radius: var(--bocht); cursor: pointer; text-decoration: none;
}
.primary:hover { background: var(--signal-hover); }
.primary:disabled { opacity: .6; cursor: progress; }
.link {
  background: none; border: 0; padding: 0; font: inherit; font-size: 1rem; color: var(--body);
  text-decoration: underline; cursor: pointer;
}
.link:hover { color: var(--ink); }
.error { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--bocht);
         border: 1px solid var(--exposure); background: var(--exposure-soft); color: var(--ink); font-size: 1rem; }

/* --- de boekingspagina ----------------------------------------------------------- */
.card {
  width: 100%; max-width: 62rem; background: var(--card); border: 1px solid var(--rule);
  border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: 19rem 1fr 15rem;
}
.side { padding: 32px 28px; background: var(--sunken); border-right: 1px solid var(--rule); }
.logo { max-width: 140px; max-height: 48px; margin-bottom: 20px; display: block; }
.who { margin: 0; color: var(--muted); font-size: 1rem; }
.side h1 { font-size: 1.5rem; line-height: 1.25; margin: 2px 0 14px; }
.description { color: var(--body); font-size: 1rem; white-space: pre-wrap; margin: 0 0 22px; }
.facts { list-style: none; margin: 0; padding: 0; font-size: 1rem; }
.facts li { padding: 6px 0; display: flex; align-items: center; gap: 10px; color: var(--body); }
.facts li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal);
  flex: none; opacity: .45;
}
.facts .tz { display: block; padding-top: 14px; }
.facts .tz::before { display: none; }
.tz-label { display: block; color: var(--muted); font-size: .8125rem; margin-bottom: 4px;
            text-transform: uppercase; letter-spacing: .05em; }
.facts .select { display: block; }
.facts select { height: 38px; line-height: 36px; font-size: .9375rem; }

.month { padding: 28px 26px; min-width: 0; }
.month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.month-head h2 { font-size: 1.125rem; }
.nav button {
  font: inherit; font-size: 1.25rem; line-height: 1; border: 1px solid var(--rule);
  background: var(--card); color: var(--ink); width: 36px; height: 36px;
  border-radius: var(--bocht); cursor: pointer; margin-left: 8px;
}
.nav button:hover:not(:disabled) { border-color: var(--signal); color: var(--signal); }
.nav button:disabled { color: var(--muted); opacity: .4; cursor: default; }
.weekdays, .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.weekdays { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.weekdays span { text-align: center; }
.grid button {
  font: inherit; font-size: 1rem; font-weight: 600; aspect-ratio: 1 / 1; border: 1px solid transparent;
  border-radius: 10px; background: var(--signal-soft); color: var(--ink); cursor: pointer; position: relative;
}
.grid button:hover:not(:disabled):not(.on) { border-color: var(--signal); }
.grid button:disabled { background: transparent; color: var(--muted); opacity: .45; cursor: default; font-weight: 400; }
.grid button.on { background: var(--ink); color: var(--card); }
.grid button.vandaag::after {
  content: ""; position: absolute; left: 50%; bottom: 7px; width: 4px; height: 4px;
  border-radius: 50%; background: currentColor; transform: translateX(-50%);
}
.hint { color: var(--muted); font-size: 1rem; margin: 16px 0 0; }

.times { padding: 28px 22px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; min-width: 0; }
/* De tekst voor 12 en 24 uur verschilt per taal ("12 Std.", "12 godz."). Daarom mag de kop
   afbreken naar twee regels in plaats van dat de knoppen zelf afbreken. */
.times-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px;
              flex-wrap: wrap; margin-bottom: 14px; }
.times-head h2 { font-size: 1rem; white-space: nowrap; }
.clock { background: var(--sunken); border: 1px solid var(--rule); border-radius: var(--bocht);
         padding: 2px; display: flex; margin-left: auto; }
.clock button {
  font: inherit; font-size: .8125rem; border: 0; background: transparent; color: var(--muted);
  padding: 4px 9px; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.clock button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 26, 46, .08); }
.slots {
  display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 26rem;
  padding-right: 10px; margin-right: -4px;
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
.slots::-webkit-scrollbar { width: 8px; }
.slots::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 4px; }
.slots::-webkit-scrollbar-track { background: transparent; }
.slots button {
  font: inherit; font-size: 1rem; font-weight: 600; height: var(--veld); flex: none; border: 1px solid var(--rule);
  border-radius: var(--bocht); background: var(--card); color: var(--ink); cursor: pointer; width: 100%;
}
.slots button:hover { border-color: var(--signal); color: var(--signal); background: var(--signal-soft); }
.slots p { color: var(--muted); font-size: 1rem; margin: 0; }

form { display: flex; flex-direction: column; }
form label:first-of-type { margin-top: 0; }
.chosen {
  margin: 0 0 4px; padding: 10px 12px; border-radius: var(--bocht); background: var(--signal-soft);
  color: var(--ink); font-size: 1rem; font-weight: 600;
}
.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.done { text-align: center; padding-top: 28px; }
.check {
  width: 48px; height: 48px; border-radius: 50%; background: var(--verified-soft); color: var(--verified);
  font-size: 1.5rem; line-height: 48px; margin: 0 auto 14px;
}
.done h3 { font-size: 1.125rem; margin-bottom: 8px; }
.done p { color: var(--body); font-size: 1rem; margin: 6px 0; overflow-wrap: anywhere; }
.missing { color: var(--muted); }
.foot { margin-top: 20px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; }
.foot img { height: 16px; width: auto; opacity: .75; }
.taalkeuze select {
  height: 30px; line-height: 28px; padding: 0 26px 0 8px; font-size: .875rem;
  background: transparent; border-color: transparent; color: var(--muted); width: auto;
}
.taalkeuze select:hover { border-color: var(--rule); }
.taalkeuze::after { right: 10px; width: 6px; height: 6px; margin-top: -4px; }
.kop .taalkeuze select { color: var(--body); }

@media (max-width: 62rem) {
  .card { grid-template-columns: 1fr; max-width: 30rem; }
  .side, .month { border-right: 0; border-bottom: 1px solid var(--rule); }
  .times { border-left: 0; }
  .slots { max-height: none; }
}

/* --- de beheerpagina -------------------------------------------------------------- */
body.beheer { display: block; padding: 40px 16px 72px; }
.paneel { max-width: 46rem; margin: 0 auto; }
.kop { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.merk { height: 26px; width: auto; }
.kop h1 { font-size: 1.25rem; flex: 1; }
.kop .who { font-size: 1rem; }
.blok {
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px;
  padding: 26px 28px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.blok h2 { font-size: 1.125rem; margin-bottom: 14px; }
.blok h3 { font-size: 1rem; margin: 22px 0 10px; }
.blok > .primary { margin-top: 22px; }
.uitleg { color: var(--muted); font-size: 1rem; margin: -8px 0 16px; }
.rij { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rij > .select, .rij > input[type=text] { flex: 1; min-width: 12rem; }
.voorvoegsel { color: var(--muted); font-size: 1rem; }
.vink { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; color: var(--ink); font-size: 1rem; cursor: pointer; }
.kolommen { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0 16px; }
/* Een label dat over twee regels loopt zou de velden eronder uit de pas laten lopen. */
.kolommen label { min-height: 1.5rem; }
.button { display: inline-flex; text-decoration: none; }
.link.button { margin-top: 16px; }
.logo-klein { max-height: 32px; max-width: 96px; border-radius: 4px; }
/* Het systeemveld voor bestanden past niet bij de rest; het label doet dienst als knop. */
input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bestand {
  display: inline-flex; align-items: center; height: 38px; margin: 0; padding: 0 16px;
  font-size: 1rem; color: var(--ink); background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--bocht); cursor: pointer;
}
.bestand:hover { border-color: var(--signal); color: var(--signal); }
input[type=file]:focus-visible + .logo-klein, input[type=file]:focus-visible ~ .bestand { outline: 2px solid var(--signal); }
.melding {
  margin: 0 0 18px; padding: 12px 14px; border-radius: var(--bocht); border: 1px solid var(--exposure);
  background: var(--exposure-soft); color: var(--ink); font-size: 1rem;
}
.dagen { display: flex; flex-direction: column; gap: 10px; }
.blok h3 + .uitleg { margin-top: -4px; }
.dag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1rem; }
.dag .naam { width: 2.5rem; color: var(--muted); }
.dag input[type=time] { width: auto; height: 38px; line-height: 36px; }
.dag span { color: var(--muted); font-size: .9375rem; }
.kaart {
  border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.kaart strong { color: var(--ink); font-weight: 600; }
.kaart .adres { color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.kaart .knoppen { display: flex; gap: 14px; flex-wrap: wrap; }
.agenda-groep { margin-bottom: 18px; }
.agenda-groep h4 { font-size: .8125rem; color: var(--muted); margin: 0 0 4px; font-weight: 600;
                   text-transform: uppercase; letter-spacing: .05em; }
.leeg { color: var(--muted); font-size: 1rem; margin: 0; }

/* Het merk heeft een lichte en een donkere versie; de browser kiest. */
.merk-donker { display: none; }
@media (prefers-color-scheme: dark) {
  .merk-licht { display: none !important; }
  .merk-donker { display: inline-block !important; }
}
