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

:root {
  --orange: #F15A22;
  --orange-dark: #d44c1a;
  --cream: #FDF4EC;
  --dark: #1A1A1A;
  --dark-2: #2a2a2a;
  --text: #2e2e2e;
  --muted: #7a7a7a;
  --border: rgba(0, 0, 0, 0.08);
  --bg: #f5f5f4;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── NAV ── */
.dash-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 5%;
  height: 60px;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--orange);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.logo-text {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border-radius: 8px;
  padding: 3px;
}

.tab-btn {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tab-btn.active {
  background: white;
  color: var(--dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tab-btn:hover:not(.active) {
  color: var(--dark);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-settings {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-settings svg {
  width: 20px;
  height: 20px;
}

.nav-settings:hover {
  background: var(--bg);
  color: var(--dark);
}

.nav-logout {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--muted);
  background: none;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 7px 16px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-logout:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.nav-page-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.nav-terug {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  padding: 6px 10px;
  transition: background 0.15s, color 0.15s;
}

.nav-terug:hover {
  background: var(--bg);
  color: var(--dark);
}

/* ── MAIN ── */
.dash-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

/* ── WELKOM ── */
.dash-welkom {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

/* ── BEDRIJFSLOGO ── */
.dash-logo-wrap {
  margin-bottom: 20px;
}

.dash-bedrijf-logo {
  max-height: 56px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

/* ── WENSEN FAB ── */
.wens-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 800;
  color: white;
  background: var(--dark);
  border: none;
  border-radius: 100px;
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: background 0.15s, transform 0.15s;
}

.wens-fab:hover { background: #333; transform: translateY(-2px); }

@media (max-width: 640px) {
  .wens-fab { bottom: 90px; right: 16px; padding: 10px 16px; font-size: 0.8rem; }
}

/* ── WENSEN MODAL ── */
.wens-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wens-modal {
  background: white;
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modal-in 0.2s ease;
}

.wens-modal-sluit {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: var(--bg);
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background 0.15s;
}

.wens-modal-sluit:hover { background: #e5e5e5; }

.wens-modal-icon { font-size: 2rem; margin-bottom: 10px; }

.wens-modal-titel {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 6px;
}

.wens-modal-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.wens-modal-gebruiker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.wens-modal-input {
  font-family: var(--body);
  font-size: 0.93rem;
  color: var(--dark);
  background: var(--bg);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 11px 14px;
  width: 100%;
  resize: vertical;
  min-height: 110px;
  outline: none;
  transition: border-color 0.15s;
  line-height: 1.55;
}

.wens-modal-input:focus { border-color: var(--orange); }

.wens-modal-fout {
  font-size: 0.8rem;
  color: #dc2626;
  font-weight: 600;
  margin-top: 6px;
}

.wens-modal-succes {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #16a34a;
  background: rgba(22,163,74,0.08);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
}

.wens-modal-acties {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.wens-modal-verstuur {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 800;
  color: white;
  background: var(--dark);
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.wens-modal-verstuur:hover:not(:disabled) { background: #333; }
.wens-modal-verstuur:disabled { opacity: 0.5; cursor: not-allowed; }

.wens-modal-annuleer {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.wens-modal-annuleer:hover { border-color: var(--dark); color: var(--dark); }

/* ── WENSEN OVERZICHT ── */
.wens-kaart {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 8px;
}

.wens-kaart-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.wens-kaart-naam {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
}

.wens-kaart-bron {
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 100px;
  padding: 2px 8px;
}

.wens-kaart-datum {
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: auto;
}

.wens-kaart-tekst {
  font-size: 0.9rem;
  color: var(--dark);
  line-height: 1.55;
}

.wens-kaart-email {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ── BETAALGEGEVENS MODAL ── */
.betaal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.15s ease;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.betaal-modal {
  background: white;
  border-radius: 20px;
  padding: 36px 36px 32px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.betaal-sluit {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.betaal-sluit:hover { background: #e5e5e5; color: var(--dark); }

.betaal-titel {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.betaal-sub {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.betaal-veld-groep { margin-bottom: 18px; }

.betaal-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.betaal-input {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--bg);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}

.betaal-input:focus { border-color: var(--orange); }

.betaal-kvk-status {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.betaal-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

.betaal-kvk-gevonden {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #16a34a;
  background: rgba(22,163,74,0.08);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
}

.betaal-fout {
  font-size: 0.8rem;
  color: #dc2626;
  font-weight: 600;
  margin-top: 5px;
}

.betaal-acties {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.betaal-btn-primary {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 800;
  color: white;
  background: var(--orange);
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  cursor: pointer;
  transition: background 0.15s;
}

.betaal-btn-primary:hover:not(:disabled) { background: var(--orange-dark); }
.betaal-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.betaal-btn-ghost {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.betaal-btn-ghost:hover { border-color: var(--dark); color: var(--dark); }

@media (max-width: 560px) {
  .betaal-modal { padding: 28px 20px 24px; border-radius: 16px; }
  .betaal-acties { flex-direction: column-reverse; }
  .betaal-btn-primary, .betaal-btn-ghost { width: 100%; text-align: center; }
}

/* ── TODO BANNER ── */
.todo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.todo-banner-tekst {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #92400e;
  flex: 1;
  min-width: 0;
}

.todo-banner-tekst svg { flex-shrink: 0; color: #f97316; }

.todo-banner-btn {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 800;
  color: white;
  background: #f97316;
  border-radius: 8px;
  padding: 7px 14px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}

.todo-banner-btn:hover { background: #ea580c; }

/* ── TABS ── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── TOOLBAR ── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.toolbar .search-wrap {
  flex: 1;
}

/* ── ZOEKBALK ── */
.search-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  font-family: var(--body);
  font-size: 0.93rem;
  color: var(--dark);
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 16px 11px 42px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.search-input::placeholder { color: var(--muted); }

.search-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(241,90,34,0.08);
}

/* ── FILTER KNOP ── */
.filter-toggle-wrap {
  position: relative;
  flex-shrink: 0;
}

.filter-toggle-btn {
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.filter-toggle-btn:hover,
.filter-toggle-btn.open {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(241,90,34,0.08);
}

.filter-toggle-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

.filter-active-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  display: none;
  flex-shrink: 0;
}

.filter-active-dot.visible { display: block; }

/* ── FILTER PANEL ── */
.filter-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 272px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 200;
}

.filter-panel.open { display: block; }

.filter-panel-section { padding: 14px 14px 12px; }

.filter-panel-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 9px;
}

.filter-panel-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fp-btn {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 100px;
  padding: 5px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.fp-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(241,90,34,0.05);
}

.fp-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.fp-count {
  font-size: 0.68rem;
  font-weight: 900;
  background: rgba(0,0,0,0.1);
  border-radius: 100px;
  padding: 1px 6px;
  min-width: 16px;
  text-align: center;
}

.fp-btn.active .fp-count { background: rgba(255,255,255,0.25); }

.filter-panel-sep {
  height: 1px;
  background: var(--border);
  margin: 0 14px;
}

/* ── ACTIEVE FILTER CHIPS ── */
.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.active-chips:empty { margin-bottom: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  background: rgba(241,90,34,0.08);
  border: 1.5px solid rgba(241,90,34,0.2);
  border-radius: 100px;
  padding: 4px 6px 4px 12px;
}

.chip-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(241,90,34,0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--orange);
  font-size: 0.7rem;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s;
}

.chip-remove:hover { background: rgba(241,90,34,0.3); }

/* ── FORMULIER BADGE (gemist tabel) ── */
.formulier-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(34,197,94,0.1);
  color: #16a34a;
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ── AANVRAAG CARDS ── */
.aanvraag-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.aanvraag-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.card-header:focus-visible {
  box-shadow: inset 0 0 0 2px var(--orange);
}

.card-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: rgba(241, 90, 34, 0.12);
  color: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.card-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.card-naam {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── LEAD GROEP ── */
.lead-groep {
  margin-bottom: 8px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.lead-groep-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: #f9f9f8;
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: background 0.15s;
}

.lead-groep-header:hover { background: #f3f3f1; }
.lead-groep-header:focus-visible { box-shadow: inset 0 0 0 2px var(--orange); }

.lead-groep.open .lead-groep-header {
  border-bottom: 1.5px solid var(--border);
}

.lead-count-badge {
  margin-left: auto;
  background: rgba(241, 90, 34, 0.1);
  color: var(--orange);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lead-groep-chevron {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.lead-groep.open .lead-groep-chevron {
  transform: rotate(180deg);
}

.lead-groep-body {
  display: none;
}

.lead-groep.open .lead-groep-body {
  display: block;
}

.lead-groep-body .aanvraag-card {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid rgba(241, 90, 34, 0.25);
  margin-bottom: 0;
  box-shadow: none;
}

.lead-groep-body .aanvraag-card:last-child {
  border-bottom: none;
}

.lead-groep-body .aanvraag-card:hover {
  box-shadow: none;
  background: #fafafa;
  border-left-color: var(--orange);
}

.card-detail {
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.card-chevron {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.aanvraag-card.open .card-chevron {
  transform: rotate(180deg);
}

/* ── CARD BODY ── */
.card-body {
  display: none;
  border-top: 1.5px solid var(--border);
}

.aanvraag-card.open .card-body {
  display: block;
}

.card-fields {
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 140px;
  flex-shrink: 0;
}

.field-value {
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 600;
}

.geen-velden {
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1.5px solid var(--border);
}

.card-actions {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.action-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.action-group--wide {
  flex: 1;
  min-width: 200px;
}

.action-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-select {
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.status-select:focus {
  border-color: var(--orange);
}

.aantekening-input {
  font-family: var(--body);
  font-size: 0.88rem;
  color: var(--dark);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  outline: none;
  resize: vertical;
  min-width: 200px;
  transition: border-color 0.15s;
  line-height: 1.5;
}

.aantekening-input:focus {
  border-color: var(--orange);
}

.save-btn {
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 800;
  color: white;
  background: var(--orange);
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s;
}

.save-btn:hover:not(:disabled) {
  background: var(--orange-dark);
}

.save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.save-feedback {
  font-size: 0.82rem;
  font-weight: 700;
  align-self: center;
}

.save-feedback--ok  { color: #16a34a; }
.save-feedback--err { color: #dc2626; }

.btn-verwijder-aanvraag {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.btn-verwijder-aanvraag:hover:not(:disabled) {
  border-color: #dc2626;
  color: #dc2626;
  background: rgba(220,38,38,0.05);
}

.btn-verwijder-aanvraag:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-herstel-aanvraag {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  color: #16a34a;
  background: rgba(22,163,74,0.08);
  border: 1.5px solid rgba(22,163,74,0.2);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-herstel-aanvraag:hover:not(:disabled) { background: rgba(22,163,74,0.15); }
.btn-herstel-aanvraag:disabled { opacity: 0.4; cursor: not-allowed; }

.fp-btn--verwijderd.active {
  background: #dc2626;
  border-color: #dc2626;
}

/* ── STATUS BADGES ── */
.badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 100px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge--nieuw            { background: rgba(59,130,246,0.1);  color: #2563eb; }
.badge--in_behandeling   { background: rgba(241,90,34,0.1);   color: var(--orange); }
.badge--offerte_gestuurd { background: rgba(139,92,246,0.1);  color: #7c3aed; }
.badge--gewonnen         { background: rgba(34,197,94,0.1);   color: #16a34a; }
.badge--verloren         { background: rgba(239,68,68,0.1);   color: #dc2626; }
.badge--geen_reactie     { background: rgba(107,114,128,0.1); color: #6b7280; }

/* ── NIET INGEVULD ── */
.gemist-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.toggle-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  width: 38px;
  height: 22px;
  background: #d1d5db;
  border-radius: 100px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.toggle-label input:checked + .toggle-track {
  background: var(--orange);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.toggle-label input:checked + .toggle-track .toggle-thumb {
  transform: translateX(16px);
}

/* ── GEMIST KAARTEN ── */
.gemist-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 8px;
  overflow: hidden;
}

.gemist-card--expandable {
  transition: box-shadow 0.15s;
}

.gemist-card--expandable:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.gemist-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  outline: none;
}

.gemist-card--expandable .gemist-card-header {
  cursor: pointer;
  user-select: none;
}

.gemist-card--expandable .gemist-card-header:focus-visible {
  box-shadow: inset 0 0 0 2px var(--orange);
}

.gemist-card-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gemist-nr {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--dark);
}

.gemist-detail {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--muted);
}

.pogingen-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(0,0,0,0.06);
  color: var(--muted);
  border-radius: 100px;
  padding: 2px 8px;
  flex-shrink: 0;
}

.gemist-chevron {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.gemist-card.open .gemist-chevron {
  transform: rotate(180deg);
}

.gemist-body {
  display: none;
  border-top: 1.5px solid var(--border);
  padding: 16px 18px;
  background: #fafafa;
}

.gemist-card.open .gemist-body {
  display: block;
}

.gemist-aanvraag-blok + .gemist-aanvraag-blok {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.gemist-aanvraag-naam {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* ── FOTO'S IN AANVRAAG ── */
.foto-grid-dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.foto-thumb-dashboard {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  transition: opacity 0.15s;
  cursor: pointer;
}

.foto-thumb-dashboard:hover { opacity: 0.85; }

/* ── GEBRUIKERS TAB ── */
.gebruiker-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

.gebruiker-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 12px;
}

.gebruiker-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gebruiker-naam {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--dark);
}

.gebruiker-bedrijf {
  font-size: 0.78rem;
  color: var(--muted);
}

.gebruiker-status {
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 100px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.status--actief    { background: rgba(34,197,94,0.1);  color: #16a34a; }
.status--inactief  { background: rgba(107,114,128,0.1); color: #6b7280; }
.status--verwijderd { background: rgba(239,68,68,0.08); color: #dc2626; }

.gebruiker-card--verwijderd { opacity: 0.75; }

.gebruikers-sectie-kop {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  padding: 0 4px 8px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 12px;
}

.btn-heractiveer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #fff;
  border: 1.5px solid #f97316;
  color: #f97316;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-heractiveer:hover  { background: #f97316; color: #fff; }
.btn-heractiveer:disabled { opacity: 0.5; cursor: not-allowed; }

.gebruiker-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
}

.stat-blok {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 8px;
  border-right: 1.5px solid var(--border);
}

.stat-blok:last-child { border-right: none; }

.stat-getal {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.stat-getal--ok  { color: #16a34a; }
.stat-getal--mis { color: #dc2626; }

.stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.gebruiker-balk-wrap {
  padding: 10px 20px 4px;
}

.gebruiker-balk {
  height: 5px;
  background: rgba(0,0,0,0.06);
  border-radius: 100px;
  overflow: hidden;
}

.gebruiker-balk-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 100px;
  transition: width 0.4s ease;
}

.gebruiker-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 14px;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .gebruiker-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-blok:nth-child(2) { border-right: none; }
  .stat-blok:nth-child(3) { border-top: 1.5px solid var(--border); }
  .stat-blok:nth-child(4) { border-top: 1.5px solid var(--border); }
  .gebruiker-footer { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lb-in 0.15s ease;
}

@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-content {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: block;
}

.lightbox-sluit {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 1001;
}

.lightbox-sluit:hover { background: rgba(255,255,255,0.22); }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 1001;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-teller {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ── LEGE / FOUT STAAT ── */
.lege-staat,
.fout-staat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.lege-staat-icon,
.fout-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.fout-staat { color: #dc2626; }

/* ── SPINNER ── */
.spinner-wrap {
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(241, 90, 34, 0.2);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
/* ── KLIKBARE VELDWAARDEN ── */
.field-link {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

.field-link:hover {
  text-decoration: underline;
}

.gemist-nr.field-link {
  color: var(--dark);
  font-weight: 700;
}

.gemist-nr.field-link:hover {
  color: var(--orange);
  text-decoration: none;
}

@media (max-width: 640px) {
  .dash-nav { gap: 12px; padding: 0 4%; }

  .nav-tabs {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: white;
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    padding: 10px 12px 18px;
    justify-content: center;
    gap: 4px;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-radius: 10px;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .dash-main { padding: 72px 12px 100px; }

  .filter-toggle-btn { font-size: 0.82rem; padding: 0 12px; }
  .filter-panel { right: 0; left: auto; width: calc(100vw - 32px); max-width: 300px; }

  .aanvraag-card,
  .gemist-card { word-break: break-word; }

  .active-chips { flex-wrap: wrap; }
  .chip { max-width: 100%; }

  /* ── Aanvraag card ── */
  .card-header { padding: 12px 14px; gap: 8px; }
  .card-fields,
  .card-actions,
  .geen-velden { padding: 12px 14px; }

  .card-naam { font-size: 0.88rem; }
  .badge { font-size: 0.68rem; padding: 3px 8px; }

  /* Velden stapelen op mobiel */
  .field-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .field-label {
    min-width: 0;
    font-size: 0.7rem;
  }

  .field-value {
    font-size: 0.88rem;
    max-width: 100%;
    word-break: break-word;
  }

  /* Audio op volledige breedte */
  audio { max-width: 100% !important; width: 100%; }

  /* Foto grid kleiner op mobiel */
  .foto-grid-dashboard { gap: 4px; }
  .foto-thumb-dashboard { width: 60px; height: 60px; }

  /* Acties stapelen */
  .action-row { flex-direction: column; gap: 12px; }
  .action-group--wide { min-width: 0; }
  .status-select,
  .aantekening-input { width: 100%; box-sizing: border-box; }

  /* Lightbox nav kleiner op mobiel */
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-nav { width: 40px; height: 40px; }

  .gemist-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .gemist-toolbar .toggle-label {
    flex: 1;
    font-size: 0.8rem;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
    order: 1;
  }

  .gemist-toolbar .filter-toggle-wrap {
    flex-shrink: 0;
    order: 2;
  }

  .gemist-toolbar .filter-panel {
    right: 0;
    left: auto;
    width: calc(100vw - 32px);
    max-width: 300px;
  }

  .gemist-card-header { padding: 12px 14px; }
}

/* ── GEBLOKKEERDE STAAT ── */
.dash-geblokkeerd {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 40px 20px;
}

.dash-geblokkeerd-card {
  background: white;
  border-radius: 24px;
  border: 1.5px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  padding: 48px 36px;
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.dash-geblokkeerd-icon { font-size: 2.8rem; margin-bottom: 16px; line-height: 1; }

.dash-geblokkeerd-titel {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.dash-geblokkeerd-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.dash-geblokkeerd-btn { width: 100%; justify-content: center; margin-top: 16px; }

.dash-geblokkeerd-fout {
  font-size: 0.82rem;
  color: #dc2626;
  font-weight: 600;
  margin-top: 10px;
}

@media (max-width: 480px) {
  .dash-geblokkeerd-card { padding: 36px 24px; }
}

/* ── ACCOUNT VERWIJDEREN ── */
.dash-verwijder-link {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  text-decoration: underline;
  transition: color 0.15s;
}
.dash-verwijder-link:hover { color: #dc2626; }

.verwijder-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.15s ease;
}

.verwijder-modal {
  background: white;
  border-radius: 20px;
  padding: 36px 32px 32px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modal-in 0.2s ease;
}

.verwijder-modal-icon { font-size: 2.2rem; margin-bottom: 12px; line-height: 1; }

.verwijder-modal-titel {
  font-size: 1.2rem;
  font-weight: 900;
  color: #dc2626;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.verwijder-modal-sub {
  font-size: 0.88rem;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 12px;
}

.verwijder-lijst {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 20px;
  margin-bottom: 14px;
  line-height: 1.8;
}

.verwijder-bewaar-info {
  font-size: 0.8rem;
  color: #16a34a;
  background: rgba(22,163,74,0.07);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
}

.verwijder-bevestig-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.verwijder-input {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--bg);
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 6px;
}
.verwijder-input:focus { border-color: #dc2626; }

.verwijder-fout {
  font-size: 0.8rem;
  color: #dc2626;
  font-weight: 600;
  margin-bottom: 10px;
}

.verwijder-acties {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.verwijder-annuleer-btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 9px;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.verwijder-annuleer-btn:hover { border-color: var(--dark); color: var(--dark); }

.verwijder-bevestig-btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color: white;
  background: #dc2626;
  border: none;
  border-radius: 9px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s;
}
.verwijder-bevestig-btn:hover:not(:disabled) { background: #b91c1c; }
.verwijder-bevestig-btn:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 480px) {
  .verwijder-modal { padding: 28px 20px 24px; }
  .verwijder-acties { flex-direction: column-reverse; }
  .verwijder-annuleer-btn, .verwijder-bevestig-btn { width: 100%; text-align: center; }
}

/* ── REACTIVEER BANNER ── */
.reactiveer-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #fff7ed 0%, #fff3e0 100%);
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.reactiveer-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 180px;
  color: #92400e;
}

.reactiveer-info div { display: flex; flex-direction: column; gap: 2px; }
.reactiveer-info strong { font-size: 0.92rem; font-weight: 800; color: #92400e; }
.reactiveer-info span   { font-size: 0.82rem; color: #a16207; line-height: 1.4; }

.reactiveer-plannen {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.reactiveer-plan-btn {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400e;
  background: white;
  border: 1.5px solid #fed7aa;
  border-radius: 9px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.reactiveer-plan-btn.active {
  border-color: var(--orange);
  background: rgba(241,90,34,0.08);
  color: var(--orange);
}

.reactiveer-plan-btn:hover:not(.active) {
  border-color: #f97316;
  background: rgba(249,115,22,0.05);
}

.reactiveer-btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color: white;
  background: var(--orange);
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}

.reactiveer-btn:hover:not(:disabled) { background: var(--orange-dark, #d44c1a); }
.reactiveer-btn:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 560px) {
  .reactiveer-plannen { width: 100%; }
  .reactiveer-plan-btn { flex: 1; text-align: center; }
  .reactiveer-btn { width: 100%; text-align: center; }
}

/* ── NAV FAQ KNOP ── */
.nav-faq {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-faq:hover {
  background: var(--bg);
  color: var(--dark);
}

/* ── FAQ OVERLAY ── */
.faq-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  visibility: hidden;
}
.faq-overlay.open {
  pointer-events: auto;
  visibility: visible;
}

.faq-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}
.faq-overlay.open .faq-backdrop {
  background: rgba(0, 0, 0, 0.35);
}

.faq-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  background: white;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.faq-overlay.open .faq-panel {
  transform: translateX(0);
}

/* ── FAQ HEADER ── */
.faq-header {
  padding: 20px 24px 0;
  border-bottom: 1px solid var(--border);
  background: white;
  flex-shrink: 0;
}

.faq-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.faq-titel {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-sluit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.faq-sluit:hover {
  background: var(--bg);
  color: var(--dark);
}

.faq-zoek-wrap {
  position: relative;
  margin-bottom: 16px;
}

.faq-zoek-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.faq-zoek {
  width: 100%;
  padding: 10px 12px 10px 36px;
  font-family: var(--body);
  font-size: 0.88rem;
  color: var(--dark);
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
}
.faq-zoek:focus {
  border-color: var(--orange);
  background: white;
}
.faq-zoek::placeholder { color: var(--muted); }

/* ── FAQ CONTENT ── */
.faq-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 40px;
}

.faq-categorie {
  margin-bottom: 28px;
}
.faq-categorie:last-child { margin-bottom: 0; }

.faq-categorie-titel {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 10px;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  background: white;
  transition: border-color 0.15s;
}
.faq-item.open {
  border-color: rgba(241, 90, 34, 0.3);
}
.faq-item:last-child { margin-bottom: 0; }

.faq-vraag {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  transition: color 0.15s;
}
.faq-vraag:hover { color: var(--orange); }
.faq-item.open .faq-vraag { color: var(--orange); }

.faq-vraag-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.15s;
}
.faq-item.open .faq-vraag-chevron {
  transform: rotate(180deg);
  color: var(--orange);
}

.faq-antwoord {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
}
.faq-item.open .faq-antwoord {
  max-height: 600px;
  padding: 0 16px 16px;
}

.faq-antwoord-tekst {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.faq-antwoord-tekst strong {
  color: var(--dark);
}

.faq-geen-resultaten {
  text-align: center;
  padding: 48px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.faq-geen-resultaten svg {
  display: block;
  margin: 0 auto 12px;
  opacity: 0.3;
}

@media (max-width: 520px) {
  .faq-panel { width: 100vw; }
  .faq-header { padding: 16px 18px 0; }
  .faq-content { padding: 16px 18px 40px; }
}

/* ── AUTOMATISERING ACTIVITEITS-DOTS ── */
.aut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.aut-dot-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot--groen  { background: #16a34a; }
.dot--oranje { background: #f59e0b; }
.dot--rood   { background: #dc2626; }
.dot--grijs  { background: #9ca3af; }

/* ── AUTO TEST CARD ── */
.auto-test-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  flex-wrap: wrap;
}

.auto-test-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auto-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.auto-test-tekst {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.auto-test-tekst strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
}

.auto-test-tekst span {
  font-size: 0.78rem;
  color: var(--muted);
}

.auto-test-btn {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}

.auto-test-btn:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}

.auto-test-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── ADMIN HERINNERINGEN KNOP ── */
.btn-herinneringen {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}

.btn-herinneringen:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-herinneringen:disabled { opacity: 0.6; cursor: not-allowed; }
