:root {
  --blauw: #0a4674;
  --blauw-licht: #e8f0f7;
  --groen: #4a9a2c;
  --tekst: #1d2733;
  --zacht: #5b6775;
  --lijn: #d6dde5;
  --achtergrond: #f2f5f8;
  --kaart: #ffffff;
  --fout: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 14px/1.4 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--tekst);
  background: var(--achtergrond);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
[hidden] { display: none !important; }

.balk {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
  height: 52px;
  background: var(--blauw);
  color: #fff;
}
.merk-naam { font-weight: 700; font-size: 18px; }
.merk-sub { opacity: .8; font-size: 15px; }
nav { display: flex; gap: 4px; flex: 1; }
.tab {
  background: none;
  border: 0;
  color: #fff;
  opacity: .75;
  padding: 8px 12px;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.tab.actief, .tab:hover { opacity: 1; background: rgba(255, 255, 255, .14); }
.gebruiker { display: flex; align-items: center; gap: 12px; margin-left: auto; }

main { flex: 1; padding: 20px; }
.kaart {
  background: var(--kaart);
  border: 1px solid var(--lijn);
  border-radius: 8px;
  padding: 16px 18px;
}
h1 { font-size: 20px; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 0 0 10px; }

.login { max-width: 360px; margin: 60px auto; }
.login form { display: grid; gap: 12px; margin-top: 12px; }
label { display: grid; gap: 4px; font-size: 13px; color: var(--zacht); }
input {
  font: inherit;
  padding: 7px 9px;
  border: 1px solid var(--lijn);
  border-radius: 6px;
  color: var(--tekst);
}
input:focus, select:focus { outline: 2px solid var(--blauw); outline-offset: 0; }
select {
  font: inherit;
  padding: 6px 8px;
  border: 1px solid var(--lijn);
  border-radius: 6px;
  color: var(--tekst);
  background: #fff;
}

.knop {
  font: inherit;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--blauw);
  background: var(--blauw);
  color: #fff;
  cursor: pointer;
}
.knop.licht { background: #fff; color: var(--blauw); }
.balk .knop.licht { border-color: #fff; }
.knop:disabled { opacity: .45; cursor: default; }
.fout { color: var(--fout); min-height: 1em; margin: 0; }

.ekt-indeling { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.datumkeuze { margin-bottom: 10px; }
.dagenlijst { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 230px); overflow-y: auto; }
.dagenlijst button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dagenlijst button:hover { background: var(--blauw-licht); }
.dagenlijst button.actief { background: var(--blauw); color: #fff; }
.dagenlijst .aantal { color: var(--zacht); font-size: 12px; }
.dagenlijst button.actief .aantal { color: #dce8f3; }

.overzicht { min-width: 0; }
.overzicht-kop { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.samenvatting { margin: 0; color: var(--zacht); }
.acties { display: flex; gap: 8px; }

.tabel-wrap { overflow: auto; max-height: calc(100vh - 250px); border: 1px solid var(--lijn); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
th, td { padding: 4px 8px; white-space: nowrap; text-align: right; }
th { position: sticky; top: 0; background: #eef1f4; font-weight: 600; border-bottom: 1px solid var(--lijn); }
th.links, td.links { text-align: left; }
td.midden { text-align: center; }
tbody tr:nth-child(even) { background: #f7f9fb; }
tbody tr:hover { background: var(--blauw-licht); }
tfoot td { background: #eef1f4; font-weight: 700; border-top: 1px solid var(--lijn); }
tfoot .subtotaal td { font-weight: 400; border-top: 0; }
.leeg { text-align: center; color: var(--zacht); padding: 24px; }

.ruimte { margin-top: 16px; }
.bronkeuze { display: inline-flex; border: 1px solid var(--blauw); border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.bron { font: inherit; font-weight: 600; padding: 5px 14px; border: 0; background: #fff; color: var(--blauw); cursor: pointer; }
.bron + .bron { border-left: 1px solid var(--blauw); }
.bron.actief { background: var(--blauw); color: #fff; }
.bedrijf-kol { display: none; }
.toon-bedrijf .bedrijf-kol { display: table-cell; }
.label.soort-zoeken { background: #ece6f7; color: #5b3a92; }
.tabel-wrap.kort { max-height: 40vh; }
.filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 10px; }
.filter .breed { flex: 1; min-width: 180px; }
.filter .acties { margin-left: auto; }
.bladeren { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.label {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  background: #eef1f4;
  color: var(--zacht);
}
.label.soort-wijziging { background: #fff1d6; color: #8a5300; }
.label.soort-afdruk { background: var(--blauw-licht); color: var(--blauw); }
.label.soort-login { background: #e3f3dc; color: #2f6b18; }
.label.soort-login_mislukt, .status-fout { background: #fde7e5; color: var(--fout); }
.punt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--groen); margin-right: 6px; }
.punt.stil { background: #c9a227; }
.melding { padding: 8px 12px; border-radius: 6px; background: #fff1d6; color: #8a5300; margin: 0 0 10px; }
td.details { white-space: normal; min-width: 160px; max-width: 360px; color: var(--zacht); font-size: 12px; }

.voet { text-align: center; color: var(--zacht); font-size: 12px; padding: 10px; }

@media (max-width: 800px) {
  .ekt-indeling { grid-template-columns: 1fr; }
  .filter .acties { margin-left: 0; }
  .dagenlijst { max-height: 200px; }
  .balk { gap: 4px 12px; padding: 6px 12px; height: auto; min-height: 52px; flex-wrap: wrap; }
  .balk nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .tab { white-space: nowrap; }
  main { padding: 12px; }
}
tr.klikbaar { cursor: pointer; }
