*, *::before, *::after { box-sizing: border-box; }

:root {
  --groen: #2D6A4F;
  --groen-accent: #52B788;
  --groen-licht-bg: #d8f3dc;
  --blauw-licht: #90E0EF;
  --achtergrond: #F8F9FA;
  --card: #FFFFFF;
  --tekst: #212529;
  --subtekst: #6C757D;
  --grijs: #dee2e6;
  --grijs-licht: #f1f3f5;
  --rood: #c0392b;
  --oranje: #e67e22;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--tekst);
  background: var(--achtergrond);
  margin: 0;
  line-height: 1.6;
}

/* ── Navigatie (wit, schaduw) ── */
.topnav {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0 32px;
  display: flex;
  align-items: center;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topnav .brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--groen);
  text-decoration: none;
  margin-right: 36px;
  white-space: nowrap;
  letter-spacing: -.2px;
}

.nav-toggle { display: none; }
.nav-hamburger { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-links > a {
  color: #495057;
  text-decoration: none;
  padding: 0 14px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.nav-links > a:hover {
  color: var(--groen);
}

.nav-links > a.actief {
  color: var(--groen);
  border-bottom-color: var(--groen);
  font-weight: 600;
}

/* ── Nav dropdown ── */
.nav-dropdown {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  color: #495057;
  padding: 0 14px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.actief .nav-dropdown-toggle {
  color: var(--groen);
  border-bottom-color: var(--groen);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 11px 18px;
  color: #495057;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.1s, color 0.1s;
  height: auto;
}

.nav-dropdown-menu a:last-child { border-bottom: none; }

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.actief {
  background: #f0faf5;
  color: var(--groen);
}

/* ── Nav rechts: gebruiker + uitloggen ── */
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gebruiker-naam {
  font-size: 0.85rem;
  color: var(--subtekst);
  font-weight: 500;
}

.btn-uitloggen {
  background: transparent;
  border: 1.5px solid var(--groen);
  color: var(--groen);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-uitloggen:hover {
  background: var(--groen);
  color: #fff;
}

/* ── Hero (dashboard) ── */
.hero {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #1e4d38;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/static/images/hero.jpeg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -.5px;
}

.hero-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.hero-datum {
  text-align: right;
  color: rgba(255,255,255,0.80);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-datum strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
}

/* ── Dashboard layout ── */
.dashboard-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 24px;
  align-items: start;
}

.dashboard-main {}
.dashboard-sidebar {}

/* ── Stats kaartjes ── */
.stats-rij {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-kaart {
  background: var(--card);
  border-radius: 10px;
  padding: 20px 20px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #eef0f2;
}

.stat-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
  display: block;
}

.stat-kaart .getal {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--groen);
  line-height: 1;
}

.stat-kaart .label {
  font-size: 0.78rem;
  color: var(--subtekst);
  margin-top: 5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* ── Foto galerij (volle breedte) ── */
.foto-galerij-wrap {
  margin-bottom: 24px;
}

.foto-galerij-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.foto-galerij-item {
  border-radius: 10px;
  overflow: hidden;
}

.foto-galerij-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease;
}

.foto-galerij-item img:hover {
  transform: scale(1.03);
}

/* ── Pagina header banner (niet-dashboard pagina's) ── */
.page-header {
  background: var(--groen);
  padding: 28px 0 26px;
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
}

.page-header p {
  color: rgba(255,255,255,0.80);
  margin: 0;
  font-size: 0.9rem;
}

/* ── Hoofd layout ── */
main {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 24px;
}

h1 { font-size: 1.4rem; margin: 0 0 20px; color: var(--groen); font-weight: 600; }
h2 { font-size: 1.05rem; margin: 24px 0 12px; color: var(--groen); font-weight: 600; }

/* ── Kaarten ── */
.kaart {
  background: var(--card);
  border: 1px solid #eef0f2;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ── Tabellen ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th {
  background: var(--groen);
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: .3px;
}

td {
  padding: 9px 12px;
  border-bottom: 1px solid #f0f2f4;
  color: var(--tekst);
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #fafbfc; }
tr:hover td { background: #f0faf5; }

/* ── Item samenvatting tabel ── */
.item-samenvatting {
  border-radius: 8px;
  overflow: hidden;
}
.item-samenvatting th {
  max-width: 140px;
  min-width: 100px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.item-samenvatting td {
  padding: 0.4rem 0.75rem 0.4rem 1rem;
  border-bottom: 1px solid #e9ecef;
}
.item-samenvatting tr:last-child td {
  border-bottom: none;
}

.locatie-kop td {
  background: var(--groen-licht-bg);
  font-weight: 600;
  color: var(--groen);
  padding: 6px 12px;
  border-top: 2px solid var(--groen);
}

.geen-data {
  text-align: center;
  color: var(--subtekst);
  padding: 32px !important;
  font-style: italic;
}

/* ── Tabs ── */
.tabs-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--grijs);
  padding-bottom: 0;
}

.tab-knop {
  padding: 9px 20px;
  border-radius: 6px 6px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #495057;
  text-decoration: none;
  background: #e9ecef;
  border: 1px solid var(--grijs);
  border-bottom: none;
  margin-bottom: -2px;
  transition: background 0.15s, color 0.15s;
}

.tab-knop:hover { background: #dee2e6; color: var(--tekst); }

.tab-knop.tab-actief {
  background: #fff;
  color: var(--groen);
  border-color: var(--grijs);
  border-bottom-color: #fff;
}

/* ── Formulieren ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid.breed { grid-template-columns: 1fr; }

.veld { display: flex; flex-direction: column; gap: 5px; }
.veld.volledig { grid-column: 1 / -1; }

/* ── Form group (single-column forms) ── */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-group label {
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #212529;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}
.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

label {
  font-size: 0.83rem;
  font-weight: 600;
  color: #495057;
}

input, select, textarea {
  border: 1.5px solid #d0d5dd;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--tekst);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--groen);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}

input:disabled, select:disabled {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

textarea { resize: vertical; min-height: 80px; }

/* ── Knoppen ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1.5px solid transparent;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  line-height: 1.4;
}

.btn:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.10); }

.btn-primair {
  background: var(--groen);
  color: #fff;
  border-color: var(--groen);
}

.btn-primair:hover {
  background: #235c43;
  border-color: #235c43;
}

.btn-secundair {
  background: #fff;
  color: var(--groen);
  border-color: var(--groen);
}

.btn-secundair:hover {
  background: #f0faf5;
}

.btn-gevaar {
  background: var(--rood);
  color: #fff;
  border-color: var(--rood);
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-gevaar:hover { background: #a93226; border-color: #a93226; }

.btn-waarschuw {
  background: var(--oranje);
  color: #fff;
  border-color: var(--oranje);
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-waarschuw:hover { background: #d35400; border-color: #d35400; }

.btn-klein {
  padding: 6px 14px;
  font-size: 0.82rem;
}

/* ── Formulier actieknoppen ── */
.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-actions .btn-primair {
  flex: 1;
}

.form-actions .btn-secundair {
  width: auto;
  min-width: 120px;
}

.form-delete {
  margin-top: 2rem;
  max-width: 600px;
  border-top: 1px solid #dee2e6;
  padding-top: 1.5rem;
}

/* ── Tabelkop met + knop ── */
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.table-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
}

.btn-add-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2D6A4F;
  color: #fff;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.btn-add-inline:hover {
  background: #235c42;
}

/* ── Inline toevoegformulier ── */
.inline-add-form {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  max-width: 480px;
}

.form-delete .btn,
.form-delete button {
  width: 100%;
  justify-content: center;
}

/* ── Meldingen ── */
.melding {
  padding: 12px 16px;
  border-radius: 7px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.melding-succes {
  background: #edfaf3;
  color: #1a7a4a;
  border-left: 4px solid var(--groen);
}

.melding-fout {
  background: #fde8e8;
  color: var(--rood);
  border-left: 4px solid var(--rood);
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-actief   { background: #edfaf3; color: #1a7a4a; }
.badge-inactief { background: #f8d7da; color: #721c24; }

/* ── Filters ── */
.filter-balk {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-balk .veld { min-width: 180px; }

/* ── Admin secties naast elkaar ── */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Login pagina ── */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2D6A4F 0%, #40916c 100%);
  padding: 20px;
}

.login-kaart {
  background: #fff;
  border-radius: 12px;
  padding: 44px 40px;
  width: 380px;
  max-width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.login-logo {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 4px;
}

.login-kaart h1 {
  text-align: center;
  margin-bottom: 6px;
  font-size: 1.4rem;
  color: var(--groen);
}

.login-subtitel {
  text-align: center;
  color: var(--subtekst);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.login-kaart .veld { margin-bottom: 16px; }

.login-kaart .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 11px;
  font-size: 0.95rem;
}

/* ── Footer ── */
footer {
  background: #f1f3f5;
  text-align: center;
  padding: 20px;
  font-size: 0.83rem;
  color: var(--subtekst);
  margin-top: 48px;
  border-top: 1px solid #e2e5e9;
}

/* ── Hamburger navigatie (mobiel) ── */
@media (max-width: 900px) {
  .topnav {
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
    padding: 0 16px;
    position: relative;
  }

  .topnav .brand {
    height: 60px;
    display: flex;
    align-items: center;
    margin-right: 0;
  }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 60px;
    cursor: pointer;
    margin-left: auto;
    padding: 16px 8px;
  }

  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--groen);
    border-radius: 2px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding-bottom: 8px;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links > a {
    padding: 13px 16px;
    height: auto;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    border-left: none;
  }

  .nav-links > a.actief {
    border-bottom: 1px solid #f0f0f0;
    background: #f0faf5;
    border-left: 3px solid var(--groen);
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    height: auto;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    user-select: none;
    color: #495057;
  }

  .nav-dropdown-toggle::after {
    content: '\25B6';
    font-size: 0.65rem;
    transition: transform 0.2s;
    color: #adb5bd;
  }

  .nav-dropdown-menu {
    display: none;
    position: static;
    background: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }

  .nav-dropdown-menu.mobiel-open {
    display: block;
  }

  .nav-dropdown-menu.mobiel-open ~ .nav-dropdown-toggle::after,
  .nav-dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(90deg);
  }

  .nav-dropdown-menu a {
    padding: 11px 16px 11px 28px;
    height: auto;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    background: #f7faf8;
    color: #495057;
  }

  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a.actief {
    background: #f0faf5;
    color: var(--groen);
  }

  .nav-right {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 12px;
    border-top: 1px solid #f0f0f0;
  }

  .gebruiker-naam {
    padding: 6px 0 4px;
    font-size: 0.85rem;
  }

  .btn-uitloggen {
    border-radius: 7px;
    text-align: center;
    padding: 10px 16px;
    margin-top: 6px;
  }

  /* Hero */
  .hero { height: 160px; }
  .hero-bg { background-size: cover; background-position: center; }

  /* Foto galerij op mobiel: 2x2 */
  .foto-galerij-grid { grid-template-columns: 1fr 1fr; }
  .foto-galerij-item img { height: 120px; }

  /* Dashboard layout: stapelen */
  .dashboard-wrap { padding: 16px 12px 32px; }
  .stats-rij { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tegels-rij { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Main */
  main { margin: 16px auto; padding: 0 12px; }
  h1 { font-size: 1.2rem; margin-bottom: 14px; }
  h2 { font-size: 1rem; margin: 16px 0 10px; }

  /* Kaarten */
  .kaart {
    padding: 14px 16px;
    margin-bottom: 16px;
    overflow-x: auto !important;
  }

  /* Tabellen horizontaal scrollbaar */
  table { min-width: 520px; }

  /* Formulieren: full-width */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .veld.volledig { grid-column: 1; }

  input, select, textarea {
    width: 100%;
    font-size: 16px;
    min-height: 44px;
    padding: 10px 12px;
  }

  textarea { min-height: 80px; }

  .btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .btn-gevaar, .btn-waarschuw, .btn-klein {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .form-actie {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions {
    flex-direction: column;
  }

  .filter-balk {
    flex-direction: column;
    gap: 10px;
  }

  .filter-balk .veld {
    min-width: 0;
    width: 100%;
  }

  .filter-balk > div { width: 100%; }

  .admin-grid { grid-template-columns: 1fr; }

  .page-header { padding: 20px 0 18px; }
  .page-header h1 { font-size: 1.25rem; }

  .tegels-rij { grid-template-columns: 1fr 1fr; gap: 10px; }
  .actie-tegel { padding: 18px 14px 14px; }
  .tegel-icon { font-size: 1.8rem; }
  .tegel-getal { font-size: 2rem; }
  .tegel-label { font-size: 0.78rem; }

  .zoekbalk-wrap { margin-bottom: 16px; }
  .zoekbalk-inner { flex-direction: column; gap: 8px; }
  .zoekbalk-input { font-size: 16px; }
  .zoekbalk-btn { width: 100%; }
}

/* ── Actie tegels ── */
.tegels-rij {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.actie-tegel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 18px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  min-height: 110px;
}

.actie-tegel:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  text-decoration: none;
}

.tegel-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

.tegel-getal {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.tegel-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tegel-groen-donker {
  background: var(--groen);
  color: #fff;
}
.tegel-groen-donker .tegel-label { color: rgba(255,255,255,0.9); }

.tegel-blauw {
  background: #0096c7;
  color: #fff;
}
.tegel-blauw .tegel-label { color: rgba(255,255,255,0.9); }

.tegel-groen {
  background: var(--groen-accent);
  color: #fff;
}
.tegel-groen .tegel-getal,
.tegel-groen .tegel-label { color: #fff; }

.tegel-oranje {
  background: var(--oranje);
  color: #fff;
}
.tegel-oranje .tegel-getal,
.tegel-oranje .tegel-label { color: #fff; }

.tegel-grijs {
  background: #e9ecef;
  color: #6c757d;
}
.tegel-grijs .tegel-getal { color: #6c757d; }
.tegel-grijs .tegel-label { color: #6c757d; }

/* ── Zoekbalk ── */
.zoekbalk-wrap {
  margin-bottom: 24px;
  position: relative;
}

.zoekbalk-pagina {
  margin-bottom: 20px;
}

.zoekbalk-inner {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.zoekbalk-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--grijs);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}

.zoekbalk-input:focus {
  border-color: var(--groen-accent);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.18);
}

.zoekbalk-btn {
  padding: 12px 22px;
  background: var(--groen);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}

.zoekbalk-btn:hover { background: #1b4d39; }

/* Ontvanger snelkeuze knoppen */
.ontvanger-snelknop {
  flex: 1;
  min-width: 140px;
  min-height: 52px;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 18px;
  border: 2px solid var(--groen);
  border-radius: 8px;
  background: #fff;
  color: var(--groen);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ontvanger-snelknop:hover {
  background: #e8f5ee;
}
.ontvanger-snelknop-actief {
  background: #2D6A4F !important;
  color: #fff !important;
  border: none !important;
  transform: scale(1.02);
}

/* Autocomplete suggesties dropdown */
.zoek-suggesties-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--grijs);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 200;
  overflow: hidden;
}
.zoek-suggestie-rij {
  padding: 13px 16px;
  font-size: 0.97rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.zoek-suggestie-rij:last-child { border-bottom: none; }
.zoek-suggestie-rij:hover { background: #e8f5ee; }

/* Zoekresultaten inline (dashboard) */
.zoek-resultaten-inline {
  background: #fff;
  border: 1px solid var(--grijs);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.11);
  margin-top: 6px;
  padding: 16px;
  z-index: 200;
  max-height: 480px;
  overflow-y: auto;
}

.zoek-telling {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--subtekst);
}

.zoek-geen {
  color: var(--subtekst);
  margin: 0;
  font-size: 0.95rem;
}

.zoek-tabel-wrap {
  overflow-x: auto;
}

.zoek-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 0;
}

.zoek-meer {
  margin-top: 12px;
  text-align: right;
  font-size: 0.88rem;
}

.zoek-meer a { color: var(--groen); text-decoration: none; }
.zoek-meer a:hover { text-decoration: underline; }

/* Badge & uitgifte knopje in zoekresultaten */
.badge-beschikbaar {
  background: #d8f3dc;
  color: #2D6A4F;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn-uitgeven-klein {
  display: inline-block;
  padding: 4px 12px;
  background: var(--groen);
  color: #fff;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-uitgeven-klein:hover { background: #1b4d39; text-decoration: none; }

/* ── Print stijlen ── */
@media print {
  .topnav, footer { display: none !important; }
}
