/* ================================================================
   Liberforte Klantenportaal — Platinum Design Systeem
   Spec §2.3 | Geen frameworks
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS VARIABELEN
   ---------------------------------------------------------------- */
:root {
  --platinum-mid:   #8a7a50;  /* primair, knoppen, accenten */
  --platinum-light: #c8b870;  /* gouden rand, highlights */
  --platinum-pale:  #e8e0c0;  /* subtiele achtergronden */
  --achtergrond:    #f4f2ed;  /* pagina achtergrond */
  --wit:            #ffffff;  /* kaart achtergrond */
  --rand:           #e8e2d8;  /* subtiele randen */
  --tekst:          #2c2c2c;  /* primaire tekst */
  --tekst-zacht:    #7a7a7a;  /* secundaire tekst */
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--platinum-light) var(--achtergrond);
}

body {
  background-color: var(--achtergrond);
  color: var(--tekst);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ----------------------------------------------------------------
   3. TYPOGRAFIE
   ---------------------------------------------------------------- */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--tekst);
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 0.75rem;
}

a {
  color: var(--platinum-mid);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--platinum-light);
}

footer {
  color: var(--tekst-zacht);
  font-size: 13px;
  text-align: center;
  padding: 24px 0 16px;
}

/* ----------------------------------------------------------------
   4. LAYOUT — MAIN
   ---------------------------------------------------------------- */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ----------------------------------------------------------------
   5. HEADER
   ---------------------------------------------------------------- */
.portaal-header,
.beheer-header {
  background-color: var(--wit);
  border-bottom: 1px solid var(--rand);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-header {
  height: 38px;
  width: auto;
  display: block;
}

/* ----------------------------------------------------------------
   6. NAVIGATIE
   ---------------------------------------------------------------- */
.beheer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.beheer-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--tekst);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.beheer-nav a:hover {
  color: var(--platinum-mid);
  border-bottom-color: var(--platinum-light);
  text-decoration: none;
}

.beheer-nav a.nav-logout {
  color: var(--tekst-zacht);
}

.beheer-nav a.nav-logout:hover {
  color: var(--platinum-mid);
  border-bottom-color: var(--platinum-light);
}

/* Taal-schakelaar (klantportaal) */
.taal-schakelaar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.taal-schakelaar a {
  font-size: 13px;
  font-weight: 500;
  color: var(--tekst-zacht);
  padding: 3px 8px;
  border: 1px solid var(--rand);
  border-radius: 4px;
}

.taal-schakelaar a:hover {
  color: var(--platinum-mid);
  border-color: var(--platinum-light);
  text-decoration: none;
}

/* ----------------------------------------------------------------
   7. KAARTEN
   ---------------------------------------------------------------- */
.kaart,
.doc-kaart,
.document-kaart,
.tegel {
  background-color: var(--wit);
  border: 1.5px solid var(--platinum-light);
  border-radius: 14px;
  padding: 20px;
}

/* ----------------------------------------------------------------
   8. STATISTIEKEN-TEGELS (dashboard)
   ---------------------------------------------------------------- */
.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.tegel {
  flex: 1 1 180px;
  min-width: 150px;
  text-align: center;
}

.tegel h2 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--tekst-zacht);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.tegel p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--platinum-mid);
  line-height: 1;
  margin: 0;
}

/* Stat-tegel alias voor semantische gebruik */
.stat-tegel {
  background-color: var(--wit);
  border: 1.5px solid var(--platinum-light);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.stat-tegel .stat-getal {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--platinum-mid);
  line-height: 1;
}

.stat-tegel .stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--tekst-zacht);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* CTA-links op dashboard */
.ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.ctas a {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--platinum-light);
  color: var(--platinum-mid);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.ctas a:hover {
  background-color: var(--platinum-light);
  color: var(--wit);
  text-decoration: none;
}

/* ----------------------------------------------------------------
   9. KNOPPEN
   ---------------------------------------------------------------- */
button,
.knop,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--platinum-light);
  color: var(--platinum-mid);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

button:hover,
.knop:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background-color: var(--platinum-light);
  color: var(--wit);
}

button:focus-visible,
.knop:focus-visible,
input[type="submit"]:focus-visible {
  outline: 2px solid var(--platinum-light);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------
   10. FORMS
   ---------------------------------------------------------------- */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--tekst);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--tekst);
  background-color: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 6px;
  padding: 8px 12px;
  width: 100%;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--platinum-light);
}

input[type="file"] {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--tekst-zacht);
}

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

/* ----------------------------------------------------------------
   11. DROPZONE
   ---------------------------------------------------------------- */
.dropzone {
  border: 2px dashed var(--platinum-light);
  border-radius: 10px;
  padding: 40px 24px;
  text-align: center;
  color: var(--tekst-zacht);
  background-color: var(--wit);
  transition: background-color 0.15s, border-color 0.15s;
}

.dropzone p {
  margin-bottom: 12px;
  font-size: 14px;
}

.dropzone form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: none;
}

.dropzone:hover,
.dropzone.hover {
  background-color: var(--platinum-pale);
  border-color: var(--platinum-mid);
}

/* ----------------------------------------------------------------
   12. DOCUMENTEN SECTIE (klantportaal)
   ---------------------------------------------------------------- */
.documenten {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.document-kaart {
  background-color: var(--wit);
  border: 1.5px solid var(--platinum-light);
  border-radius: 14px;
  padding: 20px;
}

.document-kaart h2 {
  margin-bottom: 4px;
}

.document-kaart .uitleg {
  color: var(--tekst-zacht);
  font-size: 13px;
  margin-bottom: 12px;
}

.document-aanwezig {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.document-aanwezig .status {
  flex: 1;
  font-size: 14px;
  margin: 0;
}

.document-aanwezig form {
  max-width: none;
  flex-direction: row;
  gap: 0;
}

/* ----------------------------------------------------------------
   13. PILL-BADGES
   ---------------------------------------------------------------- */
.pill-grijs,
.pill-goud,
.pill-groen,
.pill-rood {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
  white-space: nowrap;
}

/* Wachtrij / ontvangen */
.pill-grijs {
  background-color: #f4f2ed;
  color: #7a7a7a;
}

/* In behandeling */
.pill-goud {
  background-color: #e8e0c0;
  color: #8a7a50;
}

/* Akkoord */
.pill-groen {
  background-color: #d4e8d4;
  color: #2d6b2d;
}

/* Afgekeurd */
.pill-rood {
  background-color: #f0d8d8;
  color: #8b2929;
}

/* ----------------------------------------------------------------
   14. FLASH-BERICHTEN
   ---------------------------------------------------------------- */
.flash {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 12px 20px;
  margin: 0 auto 12px;
  max-width: 1100px;
  border-radius: 6px;
  border-left: 4px solid transparent;
}

.flash.success {
  background-color: #d4e8d4;
  color: #2d6b2d;
  border-left-color: #2d6b2d;
}

.flash.error {
  background-color: #f0d8d8;
  color: #8b2929;
  border-left-color: #8b2929;
}

.flash.warning {
  background-color: #e8e0c0;
  color: #8a7a50;
  border-left-color: var(--platinum-mid);
}

.flash.info {
  background-color: var(--platinum-pale);
  color: var(--platinum-mid);
  border-left-color: var(--platinum-light);
}

/* ----------------------------------------------------------------
   15. TABEL (klantenlijst / dossieroverzicht)
   ---------------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  margin-top: 20px;
  background-color: var(--wit);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rand);
}

thead {
  background-color: var(--platinum-pale);
}

thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--platinum-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--rand);
}

tbody tr {
  border-bottom: 1px solid var(--rand);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background-color: #faf9f6;
}

tbody tr:hover {
  background-color: var(--platinum-pale);
}

tbody td {
  padding: 11px 16px;
  color: var(--tekst);
  vertical-align: middle;
}

tbody td a {
  color: var(--platinum-mid);
  font-weight: 500;
}

tbody td em {
  color: var(--tekst-zacht);
  font-style: italic;
}

/* ----------------------------------------------------------------
   16. UTILITY
   ---------------------------------------------------------------- */
.tekst-zacht {
  color: var(--tekst-zacht);
}

.tekst-goud {
  color: var(--platinum-mid);
}

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ================================================================
   UITBREIDING — 2026-04-14
   Page/forms/profielen/tegel-keuze/dossier-detail
   ================================================================ */

/* Page layout */
.page {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rand);
}

.page-title {
  font-size: 2.25rem;
  margin: 0;
}

.page-subtitle {
  color: var(--tekst-zacht);
  font-size: 15px;
  margin: 0;
}

/* Kaart — herbruikbare sectie */
.kaart {
  background-color: var(--wit);
  border: 1.5px solid var(--platinum-light);
  border-radius: 14px;
  padding: 28px 32px;
}

.kaart-titel {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.kaart-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* FORM — override defaults voor gestructureerde formulieren */
.lf-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

.lf-form-wide {
  max-width: none;
}

.lf-form-inline {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: none;
  flex-direction: row;
}

.lf-form-toevoegen {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rand);
}

.lf-form label,
.lf-form .form-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--tekst);
  margin-bottom: 6px;
  display: block;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-input {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--tekst);
  background-color: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 6px;
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--platinum-light);
}

.form-input-mono {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 13px;
  color: var(--tekst-zacht);
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-row-2 { grid-template-columns: repeat(2, 1fr); }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.form-row-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 720px) {
  .form-row-2,
  .form-row-3,
  .form-row-4 { grid-template-columns: 1fr; }
}

.form-section-title {
  font-size: 1.2rem;
  margin-top: 16px;
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rand);
  color: var(--platinum-mid);
}

.form-section-subtitle {
  font-size: 1rem;
  margin-top: 12px;
  margin-bottom: 8px;
  color: var(--tekst);
}

.form-hint {
  font-size: 12px;
  color: var(--tekst-zacht);
  margin-top: 4px;
}

.form-hint-block {
  color: var(--tekst-zacht);
  font-size: 14px;
  margin-bottom: 12px;
}

.form-actions-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--rand);
  margin-top: 8px;
}

/* Toggle-group (radio als knoppen) */
.toggle-group {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--rand);
  border-radius: 8px;
  overflow: hidden;
}

.toggle-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--tekst);
  cursor: pointer;
  background: var(--wit);
  border-right: 1px solid var(--rand);
  margin: 0;
}

.toggle-option:last-child { border-right: none; }

.toggle-option input[type="radio"] {
  appearance: none;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--rand);
  border-radius: 50%;
  margin: 0;
}

.toggle-option input[type="radio"]:checked {
  border-color: var(--platinum-mid);
  background-color: var(--platinum-mid);
  box-shadow: inset 0 0 0 2px var(--wit);
}

/* Tegel-keuze (Starter/Doorstromer/IB/BV tegels) */
.tegel-keuze {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 12px 0 20px;
}

.tegel-keuze-compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.tegel-keuze-option {
  display: block;
  background: var(--wit);
  border: 1.5px solid var(--rand);
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
  position: relative;
}

.tegel-keuze-option:hover {
  border-color: var(--platinum-light);
}

.tegel-keuze-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tegel-keuze-option:has(input[type="radio"]:checked) {
  border-color: var(--platinum-mid);
  background-color: var(--platinum-pale);
}

.tegel-keuze-inhoud {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tegel-keuze-inhoud strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  color: var(--tekst);
}

.tegel-keuze-uitleg {
  font-size: 13px;
  color: var(--tekst-zacht);
}

/* Stats-grid dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-tegel {
  background-color: var(--wit);
  border: 1.5px solid var(--platinum-light);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: background-color 0.15s;
}

.stat-tegel:hover {
  background-color: var(--platinum-pale);
  text-decoration: none;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--tekst-zacht);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-waarde {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--platinum-mid);
  line-height: 1;
}

/* Actie-tegels (Dashboard / keuzepagina) */
.actie-tegels,
.keuze-tegels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.actie-tegel,
.keuze-tegel {
  background: var(--wit);
  border: 1.5px solid var(--platinum-light);
  border-radius: 14px;
  padding: 28px 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color 0.15s, border-color 0.15s;
}

.actie-tegel:hover,
.keuze-tegel:hover {
  background-color: var(--platinum-pale);
  border-color: var(--platinum-mid);
  text-decoration: none;
}

.actie-tegel-titel,
.keuze-tegel-titel {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--tekst);
}

.actie-tegel-primair .actie-tegel-titel {
  color: var(--platinum-mid);
}

.actie-tegel-uitleg,
.keuze-tegel-uitleg {
  font-size: 14px;
  color: var(--tekst-zacht);
}

/* Knoppen — nieuwe semantische klassen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  min-width: 140px;
}

.btn-primary {
  background-color: var(--platinum-mid);
  color: var(--wit);
  border-color: var(--platinum-mid);
}

.btn-primary:hover {
  background-color: var(--platinum-light);
  border-color: var(--platinum-light);
  color: var(--wit);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--platinum-mid);
  border-color: var(--platinum-light);
}

.btn-secondary:hover {
  background-color: var(--platinum-pale);
  color: var(--platinum-mid);
  text-decoration: none;
}

.btn-tekst {
  background: none;
  border: none;
  color: var(--tekst-zacht);
  padding: 6px 10px;
  min-width: auto;
  font-size: 13px;
}

.btn-tekst:hover {
  color: var(--platinum-mid);
  background: none;
  text-decoration: underline;
}

.btn-gevaar {
  color: #8b2929;
  border-color: #e4b5b5;
}

.btn-gevaar:hover {
  background-color: #f0d8d8;
  color: #8b2929;
}

/* Tabel-kaart wrapper */
.tabel-kaart {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 12px;
  overflow: hidden;
}

.tabel { margin-top: 0; border: none; border-radius: 0; }
.tabel-documenten td { padding: 14px 16px; }
.th-acties { width: 1%; white-space: nowrap; }

/* Klant-naam link */
.klant-naam-link {
  font-weight: 500;
  color: var(--tekst);
  font-size: 15px;
}

.klant-naam-link:hover {
  color: var(--platinum-mid);
  text-decoration: underline;
}

.klant-partner {
  color: var(--tekst-zacht);
  font-size: 13px;
  margin-left: 8px;
}

/* Dossier-chip */
.dossier-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--platinum-pale);
  border: 1px solid var(--platinum-light);
  border-radius: 999px;
  color: var(--platinum-mid);
  font-size: 13px;
  margin-right: 6px;
  text-decoration: none;
}

.dossier-chip:hover {
  background: var(--platinum-light);
  color: var(--wit);
  text-decoration: none;
}

.dossier-chip-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--wit);
  color: var(--tekst-zacht);
}

.dossier-chip-status-actief    { background: #d4e8d4; color: #2d6b2d; }
.dossier-chip-status-afgesloten{ background: #e6e0d0; color: #7a7a7a; }
.dossier-chip-status-compleet  { background: #d4e8d4; color: #2d6b2d; }

.dossier-status {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  text-transform: lowercase;
}

.dossier-status-actief    { background: #d4e8d4; color: #2d6b2d; }
.dossier-status-afgesloten{ background: #e6e0d0; color: #7a7a7a; }
.dossier-status-compleet  { background: #d4e8d4; color: #2d6b2d; }

/* Pil-badges */
.pil {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--rand);
  color: var(--tekst-zacht);
  font-size: 11px;
  margin-left: 6px;
  font-weight: 500;
}
.pil-custom   { background: #e8e0c0; color: #8a7a50; }
.pil-checker  { background: #d4e0e8; color: #2d5a6b; }
.pil-wacht    { background: #f4ead0; color: #8a7a50; }
.pil-inactief { background: #efefef; color: #888; }

/* Drie-puntjes menu */
.menu-drie-puntjes {
  position: relative;
  display: inline-block;
}

.menu-drie-puntjes summary {
  list-style: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--tekst-zacht);
  font-size: 18px;
  line-height: 1;
  background: transparent;
}

.menu-drie-puntjes summary::-webkit-details-marker { display: none; }

.menu-drie-puntjes summary:hover {
  background: var(--rand);
  color: var(--tekst);
}

.menu-drie-puntjes .menu-inhoud {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 8px;
  min-width: 180px;
  z-index: 50;
  padding: 4px;
  margin-top: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* Bij de laatste twee rijen klapt het menu naar boven open zodat het
   niet wordt afgesneden door de onderkant van de kaart-container. */
.tabel-documenten tbody tr:nth-last-child(-n+2) .menu-drie-puntjes .menu-inhoud {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 6px;
}

/* Voorkom dat .tabel (overflow:hidden uit base) de dropdown afsnijdt
   en zorg dat de containerkaart ook ruimte geeft. */
.tabel-documenten { overflow: visible; }
#documenten-kaart { overflow: visible; }

.menu-drie-puntjes .btn-menu {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--tekst);
  border-radius: 6px;
  min-width: auto;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.menu-drie-puntjes .btn-menu:hover {
  background: var(--platinum-pale);
  color: var(--platinum-mid);
}

.menu-drie-puntjes .btn-menu-gevaar {
  color: #8b2929;
}

.menu-drie-puntjes .btn-menu-gevaar:hover {
  background: #f0d8d8;
}

/* KV-lijst (klantdetail) */
.kv-lijst {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 20px;
  font-size: 14px;
}

.kv-lijst dt {
  color: var(--tekst-zacht);
  font-weight: 500;
}

.kv-lijst dd { margin: 0; color: var(--tekst); }

/* Dossier-lijst */
.dossier-lijst {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dossier-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 10px;
  text-decoration: none;
  color: var(--tekst);
}

.dossier-link:hover {
  border-color: var(--platinum-light);
  background: var(--platinum-pale);
  text-decoration: none;
}

.dossier-datum {
  margin-left: auto;
  color: var(--tekst-zacht);
  font-size: 13px;
}

/* Profiel-samenvatting */
.profiel-samenvatting {
  color: var(--tekst-zacht);
  font-size: 14px;
  padding: 10px 14px;
  background: var(--platinum-pale);
  border-radius: 8px;
  margin-bottom: 16px;
}

.profiel-samenvatting strong { color: var(--platinum-mid); }

/* Doc-status pills in tabel */
.doc-status {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.doc-status-ontvangen { background: #d4e8d4; color: #2d6b2d; }
.doc-status-wacht     { background: #f4ead0; color: #8a7a50; }

.tijd-zacht {
  display: block;
  color: var(--tekst-zacht);
  font-size: 12px;
}

.rij-inactief { opacity: 0.55; }

/* Dossier-acties */
.kaart-acties .actieknoppen {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.kaart-acties .actieknoppen form { margin: 0; max-width: none; }

/* Instellingen profiel-kaart */
.profiel-kaart { margin-bottom: 20px; }

.profiel-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.profiel-item-rij {
  display: grid;
  grid-template-columns: 2fr 1.2fr auto;
  gap: 10px;
  align-items: center;
}

/* BV-rij */
.bv-rij {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

/* Klantportaal specifiek */
.klant-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.klant-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rand);
}

.klant-titel { font-size: 2rem; margin: 0; }
.klant-intro { color: var(--tekst-zacht); font-size: 15px; margin: 0; }

.documenten {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 8px;
}

.document-kaart {
  padding: 24px 28px;
}

.document-kaart-header { margin-bottom: 10px; }

.document-kaart-titel {
  font-size: 1.4rem;
  margin: 0;
}

.document-kaart-uitleg {
  color: var(--tekst-zacht);
  font-size: 14px;
  margin: 0 0 16px;
}

.document-aanwezig {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--platinum-pale);
  border-radius: 10px;
  flex-wrap: wrap;
}

.document-aanwezig .document-status {
  margin: 0;
  flex: 1 1 200px;
}

.document-acties {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-form {
  display: inline-block;
  margin: 0;
  max-width: none;
}

.inline-form button { padding: 6px 12px; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 24px;
  border: 2px dashed var(--platinum-light);
  border-radius: 12px;
  background: var(--wit);
  text-align: center;
}

.dropzone-tekst {
  font-size: 14px;
  color: var(--tekst-zacht);
  margin: 0;
}

.dropzone-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  max-width: none;
}

.bestand-kies {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1.5px solid var(--platinum-light);
  border-radius: 8px;
  color: var(--platinum-mid);
  font-size: 14px;
  cursor: pointer;
}

.bestand-kies input[type="file"] {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.bestand-kies:hover {
  background: var(--platinum-pale);
}

/* Lege staat */
.lege-staat {
  padding: 40px 20px;
  text-align: center;
  color: var(--tekst-zacht);
  font-size: 15px;
  background: var(--wit);
  border: 1px dashed var(--rand);
  border-radius: 12px;
}

/* Reset button-override voor .lf-form submits */
.lf-form button,
.lf-form-inline button,
.actieknoppen button {
  /* Gebruik .btn klassen voor consistente styling */
}

/* Default form override voor gestructureerde formulieren */
.lf-form, .lf-form-inline {
  max-width: none !important;
}

/* ----------------------------------------------------------------
   Dossier-detail uitbreiding (geldverstrekker / inkomen / datums /
   toggles / bibliotheek / rode notitie)
   ---------------------------------------------------------------- */

/* Toggle-schakelaar */
.lf-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  cursor: pointer;
}
.lf-toggle input { opacity: 0; width: 0; height: 0; }
.lf-toggle-slider {
  position: absolute; inset: 0;
  background-color: #c8c2b0;
  border-radius: 22px;
  transition: 0.18s;
}
.lf-toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.lf-toggle input:checked + .lf-toggle-slider {
  background-color: var(--platinum-mid);
}
.lf-toggle input:checked + .lf-toggle-slider::before {
  transform: translateX(20px);
}

/* Grijze (disabled) checker-knop */
.btn-grijs {
  background-color: #d8d4c8 !important;
  color: var(--tekst-zacht) !important;
  cursor: not-allowed;
  border-color: #d0ccbe !important;
  pointer-events: auto;  /* tooltip moet werken */
}

/* Rode notitie bij document */
.notitie {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}
.notitie-rood {
  background: #fde8e6;
  border-left: 3px solid #c0392b;
  color: #8b1f12;
}

/* Pil-varianten */
.pil-inactief {
  background: #e8e2d8;
  color: var(--tekst-zacht);
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; margin-left: 6px;
}

/* Bibliotheek-keuze details-block */
.bibliotheek-keuze {
  margin-top: 18px;
}
.bibliotheek-keuze summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--platinum-mid);
}
.bibliotheek-titel {
  font-size: 13px;
  font-weight: 600;
  color: var(--platinum-mid);
  margin: 0 0 8px;
}
.bibliotheek-lijst {
  list-style: none;
  margin: 10px 0;
  padding: 0;
}
.bibliotheek-lijst li { padding: 4px 0; }

/* Extra opvraagbare documenten — compacte rijen met dezelfde breedte +
   18px horizontale padding als de documentenlijst (.docrij-grid-wrapper
   .docrij). Iets minder verticale padding (8px ipv 14px) omdat deze
   rijen geen iconen of statusvakjes hebben. Documentnaam helemaal links,
   "Toevoegen"-knop helemaal rechts op dezelfde regel. */
.bibliotheek-rijen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.bibliotheek-rij {
  display: flex;
  /* Override generieke `form { flex-direction: column; max-width: 480px; }`
     zodat de niet-toegevoegde rijen (die <form>-elementen zijn) dezelfde
     full-width-rij krijgen als de toegevoegde rijen (<div>-elementen). */
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: none;
  padding: 8px 18px;
  border: 1.5px solid var(--platinum-light);
  border-radius: 14px;
  background: var(--wit);
}
.bibliotheek-rij-naam {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bibliotheek-rij-aanvrager {
  font-size: 12px;
  padding: 4px 6px;
}
.bibliotheek-rij-knop {
  flex-shrink: 0;
  padding: 5px 14px;
  font-size: 12px;
  margin-left: auto;
}
/* Toegevoegde staat: groene achtergrond + groen vinkje, geen knop.
   Kleuren conform docrij-status-ontvangen (#f0fdf4) zodat de visuele
   taal van "compleet" consistent blijft. */
.bibliotheek-rij-toegevoegd {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.bibliotheek-rij-vinkje {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.bibliotheek-rij-status {
  flex-shrink: 0;
  font-size: 12px;
  color: #15803d;
  font-weight: 500;
  margin-left: auto;
}
.lf-toggle-rij {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}

/* Download-icoon in tabel */
.btn-download { margin-left: 6px; font-size: 13px; opacity: 0.7; }
.btn-download:hover { opacity: 1; }

/* Form-row 2-koloms layout voor datums */
.form-row.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row.form-row-2 { grid-template-columns: 1fr; }
}

/* ================================================================
   UITBREIDING — 2026-05-02
   1. Voortgangsstatus-knoppen (beheer)
   2. Afwijzen-paneel (beheer)
   3. Verwijderd/afgewezen versielijst (beheer)
   4. Klantpagina volledig herontwerp (ING-stijl)
   5. Statusbalk klant
   6. Compacte docrij-weergave klant
   ================================================================ */

/* 1. Voortgangsstatus-knoppen */
.voortgang-knoppen {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.voortgang-knoppen form {
  margin: 0;
  max-width: none;
}
.voortgang-knop {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  padding: 14px 18px;
  font-weight: 500;
}
.voortgang-knop-actief {
  background-color: var(--platinum-mid);
  color: var(--wit);
  border-color: var(--platinum-mid);
}
.voortgang-knop-actief:hover {
  background-color: var(--platinum-mid);
  color: var(--wit);
  border-color: var(--platinum-mid);
}

/* 2. Afwijzen-paneel */
.afwijzen-form { margin-top: 6px; max-width: none; display: block; }
.afwijzen-details summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  display: inline-block;
}
.afwijzen-details summary::-webkit-details-marker { display: none; }
.afwijzen-inhoud {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 320px;
}
.afwijzen-inhoud textarea {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  resize: vertical;
}

/* 3. Versielijsten in beheer-tabel */
.versielijst {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
.versielijst li {
  padding: 4px 8px;
  border-radius: 6px;
  background: #faf9f6;
  border: 1px solid var(--rand);
}
.versielabel {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 4px;
  background: #f0d8d8;
  color: #8b2929;
}
.versielabel-verwijderd {
  background: #e8e2d8;
  color: var(--tekst-zacht);
}
.versielijst .afkeur-reden {
  margin-top: 2px;
  color: #8b2929;
  font-style: italic;
}

/* Gedimde rij (toggle uit) */
.rij-uitgeschakeld { opacity: 0.45; }
.rij-uitgeschakeld td { color: var(--tekst-zacht) !important; }

/* 4. Klantpagina ING-stijl herontwerp */
.klant-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.klant-portaal {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.klant-portaal-header {
  background-color: var(--wit);
  border: 1.5px solid var(--platinum-light);
  border-radius: 16px;
  padding: 36px 32px 28px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 16px;
  position: relative;
}

/* Horizontaal logo — net zo breed als de container. */
.klant-portaal-logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Logo + begroeting vormen één compact blok bovenin: kleine spacing
   tussen logo en begroeting. */
.klant-portaal-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.klant-portaal-welkom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.klant-portaal-begroeting {
  font-size: 1.05rem;
  color: var(--tekst-zacht);
}

.klant-portaal-voornaam {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--platinum-mid);
}

.klant-portaal-adviseur {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--tekst);
}

.klant-portaal-adviseur-titel {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tekst-zacht);
}

.klant-portaal-adviseur-naam {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--platinum-mid);
}

.klant-portaal-adviseur-link {
  color: var(--platinum-mid);
  font-size: 14px;
  text-decoration: none;
}
.klant-portaal-adviseur-link:hover {
  text-decoration: underline;
}

.klant-portaal-laatste-wijziging {
  margin: 0;
  font-size: 13px;
  color: var(--tekst-zacht);
}

.klant-portaal-taal {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
}

/* 5. Statusbalk klant */
.status-balk {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--wit);
  border: 1.5px solid var(--platinum-light);
  border-radius: 14px;
  padding: 22px 24px;
}

.status-stap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 0 6px;
}

.status-stap:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--rand);
  z-index: 0;
}

.status-stap-bol {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rand);
  color: var(--tekst-zacht);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  z-index: 1;
}

.status-stap-label {
  font-size: 12px;
  color: var(--tekst-zacht);
  line-height: 1.35;
}

.status-stap-voltooid .status-stap-bol {
  background: #2d6b2d;
  color: var(--wit);
}
.status-stap-voltooid::after { background: #2d6b2d; }
.status-stap-voltooid .status-stap-label { color: var(--tekst); }

.status-stap-actief .status-stap-bol {
  background: var(--platinum-mid);
  color: var(--wit);
  box-shadow: 0 0 0 4px var(--platinum-pale);
}
.status-stap-actief .status-stap-label {
  color: var(--platinum-mid);
  font-weight: 600;
}

/* TASK 3: pulserende animatie op de actieve statusbol */
@keyframes status-stap-pulse {
  0%   { box-shadow: 0 0 0 4px var(--platinum-pale),
                     0 0 0 0 rgba(138, 122, 80, 0.55); }
  70%  { box-shadow: 0 0 0 4px var(--platinum-pale),
                     0 0 0 14px rgba(138, 122, 80, 0); }
  100% { box-shadow: 0 0 0 4px var(--platinum-pale),
                     0 0 0 0 rgba(138, 122, 80, 0); }
}
.status-stap-pulse .status-stap-bol {
  animation: status-stap-pulse 1.6s ease-out infinite;
}

/* TASK 3: voltooid-modal */
.voltooid-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 22, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  animation: voltooid-fade-in 0.2s ease-out;
}
@keyframes voltooid-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.voltooid-modal-kaart {
  background: var(--wit);
  border: 1.5px solid var(--platinum-light);
  border-radius: 16px;
  padding: 36px 36px 28px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  animation: voltooid-pop-in 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.2);
}
@keyframes voltooid-pop-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);     opacity: 1; }
}
.voltooid-modal-vinkje {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2d6b2d;
  color: var(--wit);
  font-size: 32px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(45, 107, 45, 0.32);
}
.voltooid-modal-kaart h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  margin: 0 0 10px;
  color: var(--platinum-mid);
}
.voltooid-modal-kaart p {
  color: var(--tekst);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
}
.voltooid-modal-ok { min-width: 160px; }

/* Rappelfunctie — selectie-checkbox, actiebalk en modal */
.rappel-select {
  margin-right: 8px;
  vertical-align: middle;
  cursor: pointer;
}
/* .rappel-balk + .rappel-balk-hint zijn verwijderd — de rappel-knop staat
   nu in de bovenste knoppenrij (docrij-knoppenbar) naast 'Profiel aanpassen',
   en gebruikt daar de bestaande .docrij-knop-styling. */

.rappel-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 22, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.rappel-modal-overlay[hidden] { display: none; }
.rappel-modal-kaart {
  background: var(--wit);
  border: 1.5px solid var(--platinum-light);
  border-radius: 16px;
  padding: 28px 28px 22px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}
.rappel-modal-kaart h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  margin: 0 0 6px;
  color: var(--platinum-mid);
}
.rappel-modal-sub {
  font-size: 13px;
  color: var(--tekst);
  margin: 0 0 14px;
}
.rappel-veld-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--platinum-mid);
  margin: 12px 0 4px;
}
.rappel-modal-kaart textarea.form-input {
  width: 100%;
  font-family: inherit;
  resize: vertical;
}
.rappel-modal-knoppen {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.rappel-smtp-waarschuwing {
  background: var(--orange-bg, #fef3e7);
  border: 1px solid var(--orange-border, #e7c58a);
  color: #8a5a14;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 8px;
}
/* Testmodus-banner — geel, bewust opvallend zodat de adviseur in
   development direct ziet dat de rappel niet naar de klant gaat. */
.rappel-testmodus-banner {
  background: #fff7d6;
  border: 1px solid #e6c84a;
  color: #5a4500;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}
.rappel-resultaat {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.rappel-resultaat-ok {
  background: #eaf5ee;
  border: 1px solid #a4ceb3;
  color: #1a6b3a;
}
.rappel-resultaat-fout {
  background: #fdecea;
  border: 1px solid #e6a8a0;
  color: #b53b2c;
}

/* BSN-blokkade canvas-modal voor identiteit-uploads */
.bsn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 22, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 16px;
  animation: voltooid-fade-in 0.2s ease-out;
}
.bsn-modal-kaart {
  background: var(--wit);
  border: 1.5px solid var(--platinum-light);
  border-radius: 14px;
  padding: 22px 24px 20px;
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.bsn-modal-kaart h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  margin: 0 0 12px;
  color: var(--platinum-mid);
}
.bsn-modal-instructie {
  background: #fff3e0;
  border-left: 4px solid #e65100;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  color: #5d3200;
  margin: 0 0 10px;
  line-height: 1.45;
}
.bsn-modal-uitleg {
  font-size: 13px;
  color: #555;
  margin: 0 0 12px;
}
.bsn-modal-canvas-wrap {
  border: 1px solid var(--platinum-light);
  border-radius: 6px;
  background: #fafafa;
  overflow: hidden;
  cursor: crosshair;
  margin-bottom: 14px;
  text-align: center;
}
.bsn-modal-canvas {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  touch-action: none;
}
.bsn-modal-knoppen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.bsn-modal-knoppen .bsn-undo,
.bsn-modal-knoppen .bsn-skip { margin-right: auto; }
.bsn-modal-status {
  font-size: 13px;
  color: #555;
  margin: 10px 0 0;
  min-height: 18px;
}

/* TASK 4: checker-cel op beheerpagina */
.checker-cel { min-width: 220px; }
.checker-blok {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.checker-naam {
  font-weight: 500;
  color: var(--tekst);
}
.checker-status-rij {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.checker-samenvatting {
  font-size: 12px;
  color: var(--tekst-zacht);
}
.checker-pil {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.checker-pil-wacht  { background: #f4ead0; color: #8a7a50; }
.checker-pil-running{ background: var(--platinum-pale); color: var(--platinum-mid); }
.checker-pil-done   { background: #d4e8d4; color: #2d6b2d; }
.checker-pil-error  { background: #f0d8d8; color: #8b2929; }
.checker-handoff-link {
  font-size: 11px;
  padding: 0 4px;
  align-self: flex-start;
}

/* Spinner-puntje in 'Bezig…' */
.checker-spinner {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--platinum-light);
  border-top-color: var(--platinum-mid);
  animation: checker-spin 0.9s linear infinite;
}
@keyframes checker-spin {
  to { transform: rotate(360deg); }
}

/* Korte flash bij update via SSE */
@keyframes cel-flash {
  0%   { background-color: var(--platinum-pale); }
  100% { background-color: transparent; }
}
.cel-flash { animation: cel-flash 0.9s ease-out; }

@media (max-width: 720px) {
  .status-balk { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .status-stap { flex-direction: row; text-align: left; gap: 12px; }
  .status-stap:not(:last-child)::after { display: none; }
  .status-stap-label { font-size: 13px; }
}

/* 6. Compacte docrij-weergave */
.docrijen {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--wit);
  border: 1.5px solid var(--platinum-light);
  border-radius: 14px;
  overflow: hidden;
}

.docrij {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--rand);
  transition: background-color 0.15s;
}
.docrij .upload-progress { flex-basis: 100%; }
.docrij:last-child { border-bottom: none; }
.docrij:hover { background-color: #faf9f6; }

.docrij-info { flex: 1; min-width: 0; }

.docrij-titel {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  color: var(--tekst);
  display: flex;
  align-items: center;
  gap: 8px;
}

.docrij-vinkje {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2d6b2d;
  color: var(--wit);
  font-size: 13px;
  font-weight: 700;
}

.docrij-uploaddatum {
  display: block;
  font-size: 12px;
  color: var(--tekst-zacht);
  margin-top: 4px;
}

.docrij-afkeur {
  margin: 6px 0 0;
  padding: 8px 12px;
  background: #fde8e6;
  border-left: 3px solid #c0392b;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: #8b1f12;
}
.docrij-afkeur-titel { font-weight: 600; }
.docrij-afkeur-reden { font-style: italic; }

.docrij-acties {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-klein {
  padding: 8px 14px;
  font-size: 13px;
  min-width: auto;
}

/* Upload-knop (label met file-input erin) */
.upload-knop {
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 13px;
  min-width: auto;
}
.upload-knop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Rood kruisje */
.btn-kruisje {
  width: 32px;
  height: 32px;
  min-width: auto;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid #e4b5b5;
  color: #8b2929;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-kruisje:hover {
  background: #f0d8d8;
  color: #8b2929;
  border-color: #c0392b;
}

/* Reset upload-form/delete-form margins */
.upload-form,
.delete-form {
  margin: 0;
  max-width: none;
  display: inline-flex;
}

@media (max-width: 600px) {
  .docrij { flex-direction: column; align-items: stretch; gap: 10px; }
  .docrij-acties { justify-content: flex-end; }
  .klant-portaal-header { padding: 24px 18px 18px; }
  .klant-portaal-logo { max-width: 100%; }
  .klant-portaal-voornaam { font-size: 1.6rem; }
  .klant-portaal-taal { position: static; }
}

/* ================================================================
   UITBREIDING — 2026-05-02 (Tasks 1–9)
   - Tab-knoppen Gevraagde/Alle documenten (TASK 6)
   - Sectie-titels klantpagina bij stellen (TASK 7)
   - Niet-van-toepassing checkbox layout (TASK 5)
   - 3-koloms grid voor 3-datums-rij
   ================================================================ */

/* Tab-knoppen documenten */
.doc-tabs {
  display: inline-flex;
  background: var(--platinum-pale);
  border-radius: 10px;
  padding: 4px;
  gap: 0;
  margin: 0;
}
.doc-tab {
  background: transparent;
  border: none;
  color: var(--tekst-zacht);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  min-width: auto;
  white-space: nowrap;
}
.doc-tab:hover {
  color: var(--platinum-mid);
  background: rgba(255,255,255,0.5);
}
.doc-tab-actief {
  background: var(--wit);
  color: var(--platinum-mid);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.doc-tab-actief:hover {
  background: var(--wit);
  color: var(--platinum-mid);
}

/* Verberg de Aan/Uit-kolom in tab "Gevraagd" */
#documenten-kaart.tab-modus-gevraagd .th-toggle,
#documenten-kaart.tab-modus-gevraagd .td-toggle {
  display: none;
}

/* Verborgen rijen in tab "Gevraagd" */
.rij-verborgen { display: none !important; }

/* TASK 7 — sectie-titels op klantpagina bij stellen */
.doc-sectie {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.doc-sectie-titel {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--platinum-mid);
  margin: 0 0 4px 4px;
  letter-spacing: 0.01em;
}

/* TASK 5 — datum + niet-van-toepassing layout */
.datumveld-met-nvt {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.datumveld-met-nvt input.form-input:disabled {
  background: #f4f2ed;
  color: var(--tekst-zacht);
  cursor: not-allowed;
}
.lf-checkbox-rij {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--tekst-zacht);
  cursor: pointer;
  user-select: none;
  padding-left: 2px;
  font-weight: 400;
}
.lf-checkbox-rij input[type="checkbox"] {
  appearance: auto;
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
}

/* 3-koloms datums (financieringsvoorbehoud / bankgarantie / overdracht) */
.form-row.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) {
  .form-row.form-row-3 { grid-template-columns: 1fr; }
}

/* === Stap 4 + 5: dossiergegevens — inkomen + spaargeld === */
.dossier-inkomensrij {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.dossier-inkomenveld {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 14px;
}
.dossier-inkomenveld-label { color: var(--tekst-zacht); }
.dossier-inkomenveld-bedrag { color: var(--tekst); }
.dossier-inkomenveld-leeg-tekst {
  color: var(--tekst-zacht);
  font-style: italic;
  font-size: 13px;
}
.dossier-inkomenveld-uwv {
  flex-wrap: wrap;
}
.dossier-inkomenveld-download {
  font-size: 12px;
  padding: 0 6px;
  text-decoration: none;
}
.dossier-inkomenveld-fout {
  color: var(--rood, #b03a2e);
  font-size: 13px;
  font-style: normal;
  cursor: help;
}
.dossier-inkomenveld-heranalyseer {
  font-size: 12px;
  padding: 0 6px;
  text-decoration: none;
  margin-left: 4px;
}
.dossier-inkomenveld-fout-rij {
  flex-wrap: wrap;
}

.dossier-spaargeld-rij {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--rand);
}
.dossier-spaargeld-label { color: var(--tekst-zacht); font-size: 14px; }
.dossier-spaargeld-weergave { font-size: 14px; }
.dossier-spaargeld-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dossier-spaargeld-edit[hidden] { display: none; }
.dossier-spaargeld-eurosign { color: var(--tekst-zacht); }
.dossier-spaargeld-edit .form-input { width: 130px; }

/* Stap 1: verwijder-knop in klantenoverzicht — uitlijning rechts */
.tabel .th-acties { text-align: right; width: 1%; white-space: nowrap; }

/* ===== 1B: KO-datum-melding banner ===== */
.ko-melding-banner {
  border-left: 4px solid #d29922;
  background: #fff8e6;
}
.ko-melding-titel { color: #7a5b00; }
.ko-melding-lijst {
  list-style: none;
  padding: 0;
  margin: 8px 0 14px;
}
.ko-melding-rij { padding: 4px 0; font-size: 14px; }
.ko-melding-veld { margin-right: 8px; }
.ko-melding-oud { color: var(--tekst-zacht); text-decoration: line-through; }
.ko-melding-pijl { margin: 0 6px; color: var(--tekst-zacht); }
.ko-melding-nieuw { color: var(--tekst); font-weight: 600; }
.ko-melding-knoppen { display: flex; gap: 8px; }

/* ===== 1A: tweede dropdown verbergen wanneer hoofdkeuze != DAK ===== */
.geldverstrekker-via-dak-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--rand);
}
.geldverstrekker-via-dak-form.is-verborgen { display: none; }

/* ===== 1D/1E: dossiergegevens-uitbreiding ===== */
.dossier-inkomen-groep {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rand);
}
.dossier-inkomen-groep:last-child { border-bottom: none; }

.dossier-spaarsaldo-rij {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--rand);
}
.dossier-spaarsaldo-label { color: var(--tekst-zacht); font-size: 14px; }
.dossier-spaarsaldo-bedrag { color: var(--tekst); font-size: 14px; }

/* ===== 1C: upload-progress-balkje ===== */
.upload-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
}
.upload-progress-balk {
  position: relative;
  flex: 1;
  height: 6px;
  background: #e8e4dc;
  border-radius: 3px;
  overflow: hidden;
}
.upload-progress-vulling {
  height: 100%;
  width: 0%;
  background: #1B3A5C;
  transition: width 200ms ease-out;
}
.upload-progress-pulse .upload-progress-vulling {
  animation: upload-progress-pulse 1.4s ease-in-out infinite;
}
@keyframes upload-progress-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
.upload-progress-status { color: var(--tekst-zacht); min-width: 130px; }
.upload-progress-klaar .upload-progress-vulling { background: #1A6B3A; }
.upload-progress-klaar .upload-progress-status {
  color: #1A6B3A; font-weight: 600;
}
.upload-progress-klaar .upload-progress-status::before {
  content: "✓ "; margin-right: 2px;
}
.upload-progress-fout .upload-progress-vulling { background: #C0392B; }
.upload-progress-fout .upload-progress-status { color: #C0392B; font-weight: 600; }

/* Disabled upload-knop tijdens upload */
.upload-knop-disabled {
  pointer-events: none;
  opacity: 0.55;
}

/* ================================================================
   DOCUMENTEN-RIJ NIEUWE LAYOUT (beheer-pagina)
   Eén rij per document op één horizontale lijn — 6 hoofdkolommen
   + smal "meer"-menu. Statuskleur op de hele rij-achtergrond.
   ================================================================ */

/* Knoppenrij van vijf — boven het overzicht. Vervangt
   `kaart-header-row` met tabs+profiel-knop. */
.docrij-knoppenbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.docrij-knoppenbar .docrij-knop-form {
  margin: 0;
  display: inline-flex;
}

.docrij-knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--wit);
  color: var(--tekst);
  border: 1.5px solid var(--platinum-light);
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.12s ease;
}

.docrij-knop:hover {
  background: var(--platinum-pale);
  text-decoration: none;
  color: var(--platinum-mid);
}

.docrij-knop-actief {
  background: var(--platinum-mid);
  color: var(--wit);
  border-color: var(--platinum-mid);
}

.docrij-knop-actief:hover {
  background: var(--platinum-mid);
  color: var(--wit);
}

/* Grid-wrapper en header */
.docrij-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.docrij-grid-header {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.4fr)   /* Documentnaam */
    130px                   /* Status */
    105px                   /* Datum */
    78px                    /* Checker */
    90px                    /* Open */
    110px                   /* Afwijs / Goedkeuren / Intrekken */
    36px;                   /* Meer */
  gap: 14px;
  align-items: center;
  padding: 4px 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tekst-zacht);
}

.docrij-col {
  display: flex;
  align-items: center;
}

.docrij-col-checker,
.docrij-col-open,
.docrij-col-afwijs,
.docrij-col-meer {
  justify-content: center;
}

/* Individuele rij — gridmatch met header.
   Selector genest onder .docrij-grid-wrapper zodat de generieke .docrij
   class op de klantpagina (display:flex layout, regel ~2048) niet
   wordt overschreven door deze grid-styling. */
.docrij-grid-wrapper .docrij {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.4fr)
    130px
    105px
    78px
    90px
    110px
    36px;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border: 1.5px solid var(--platinum-light);
  border-radius: 14px;
  background: var(--wit);
}

.docrij-cel {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.docrij-col-naam {
  flex-wrap: wrap;
  align-content: center;
}

.docrij-col-checker,
.docrij-col-open,
.docrij-col-afwijs,
.docrij-col-meer {
  justify-content: center;
}

/* Statuskleuren per rij — lichte tinten op volledige rij-achtergrond.
   Selectors gebruiken `.docrij.docrij-status-*` (2 klassen) zodat ze
   specifieker zijn dan `.docrij-grid-wrapper .docrij` (ook 2 klassen
   maar staat hierboven in dit bestand) en niet meer overschreven worden
   door diens witte default-achtergrond. Werkt symmetrisch voor klantzijde
   waar `.docrij` met dezelfde status-suffix-class wordt gebruikt. */
.docrij.docrij-status-wacht            { background: #fff7ed; }
.docrij.docrij-status-afgewezen        { background: #fef2f2; }
.docrij.docrij-status-wacht_op_akkoord { background: #eff6ff; }
.docrij.docrij-status-ontvangen        { background: #f0fdf4; }

/* Belangrijke datums — grid van gelijke vakjes met label boven het veld.
   Liberforte design system: gouden border 1.5px solid, radius 14px. */
.datums-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

@media (max-width: 1024px) {
  .datums-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .datums-grid { grid-template-columns: 1fr; }
}

.datumvak {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--wit);
  border: 1.5px solid var(--platinum-light);
  border-radius: 14px;
  min-height: 110px;
}

.datumvak-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--tekst-zacht);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.datumvak form { margin: 0; }

.datumvak-input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--rand);
  border-radius: 10px;
  background: var(--achtergrond);
  color: var(--tekst);
}

.datumvak-input:focus {
  outline: none;
  border-color: var(--platinum-light);
  background: var(--wit);
}

.datumvak-input:disabled {
  opacity: 0.55;
  background: var(--rand);
}

.datumvak-nvt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 12px;
  color: var(--tekst-zacht);
}

.datumvak-nvt input { margin: 0; }

/* Status-badge (in de Status-kolom) */
.docrij-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.docrij-status-badge-wacht         { background: #ffe4c2; color: #8a5a16; }
.docrij-status-badge-afgewezen     { background: #fbcaca; color: #8b2929; }
.docrij-status-badge-wacht-akkoord { background: #dbeafe; color: #1e40af; }
.docrij-status-badge-ontvangen     { background: #c8ecc8; color: #2d6b2d; }

/* Datum-cel */
.docrij-datum {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--tekst);
  font-size: 13px;
}

/* Checker-icoon */
.checker-icoon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.checker-icoon svg {
  width: 26px;
  height: 26px;
}

.checker-icoon-ok       { color: #1f8a3a; }
.checker-icoon-aandacht { color: #a63232; }

.checker-icoon-handje {
  display: inline-flex;
  width: 16px;
  height: 16px;
  margin-left: -4px;
  color: var(--platinum-mid);
}

.checker-icoon-handje svg { width: 16px; height: 16px; }

.docrij-checker-leeg,
.docrij-knop-leeg {
  display: inline-block;
  width: 28px;
  height: 28px;
}

/* Vertical-stack actie-knoppen (Open / Afwijs / Goedkeuren / Intrekken):
   icoon boven, label onder. Gouden border in lijn met design-system. */
.docrij-actie-knop {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 6px;
  width: 100%;
  min-height: 56px;
  background: var(--wit);
  border: 1.5px solid var(--platinum-light);
  border-radius: 14px;
  color: var(--tekst);
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  line-height: 1.15;
  list-style: none;
  transition: background-color 0.12s ease;
}

.docrij-actie-knop::-webkit-details-marker { display: none; }

.docrij-actie-icoon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.docrij-actie-label {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  color: inherit;
}

.docrij-actie-knop:hover {
  text-decoration: none;
  background: var(--platinum-pale);
}

.docrij-actie-knop-open        { color: var(--platinum-mid); }
.docrij-actie-knop-afwijs      { color: #a63232; border-color: #f0c8c8; }
.docrij-actie-knop-afwijs:hover{ background: #fde8e8; }
.docrij-actie-knop-goedkeur    { color: #1f8a3a; border-color: #c8e8c8; }
.docrij-actie-knop-goedkeur:hover { background: #e8f8e8; }
.docrij-actie-knop-intrekken   { color: var(--platinum-mid); border-color: #e8d8b0; }
.docrij-actie-knop-intrekken:hover { background: #f7efd8; }

/* Compact knop-paar in actie-cel (bij wacht_op_akkoord: Goedkeuren+Afwijzen) */
.docrij-actie-paar {
  display: flex;
  gap: 4px;
  width: 100%;
  align-items: stretch;
}

.docrij-actie-paar > * {
  flex: 1;
  min-width: 0;
}

.docrij-actie-knop-compact {
  padding: 4px 2px;
  min-height: 50px;
  border-radius: 10px;
}

.docrij-actie-knop-compact .docrij-actie-icoon { width: 18px; height: 18px; }
.docrij-actie-knop-compact .docrij-actie-label { font-size: 10px; }

/* Afwijs popover — opent onder de knop met reden-textarea */
.afwijzen-details[open] .afwijzen-popover {
  position: absolute;
  z-index: 60;
  margin-top: 6px;
  padding: 10px;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.afwijzen-details {
  position: relative;
  display: inline-block;
}

/* Standaard afwijzingsredenen — saldo-overzicht spaargeld */
.afwijs-redenen {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.afwijs-reden-optie {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.4;
  cursor: pointer;
}

.afwijs-reden-optie input {
  margin-top: 2px;
  flex-shrink: 0;
}

/* Automatisch ingevuld minimaal benodigd spaargeld bij "Saldo niet
   voldoende" — afgerond op duizendtallen, uit het dossier. */
.afwijs-saldo-bedrag {
  color: var(--platinum-mid);
  font-weight: 600;
  white-space: nowrap;
}

.afwijzen-details[open] .afwijzen-popover .afwijs-redenen + textarea {
  margin-top: 2px;
}

/* Toggle-rij in drie-puntjes-menu (Aan/Uit + tekst-label) */
.menu-toggle-rij {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}

.menu-toggle-rij:hover {
  background: var(--platinum-pale);
}

.menu-toggle-rij input[type="checkbox"] {
  margin: 0;
}

/* Pictogram-knop (potlood, handje) — ronde mini-knop, subtiel */
.btn-pictogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--tekst-zacht);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.btn-pictogram:hover {
  background: var(--platinum-pale);
  color: var(--platinum-mid);
  border-color: var(--platinum-light);
}

/* Inactieve rij: dim om aan te geven dat hij niet aan klant getoond wordt.
   Genest onder grid-wrapper om botsing met klant-template te voorkomen. */
.docrij-grid-wrapper .docrij[data-actief="0"] {
  opacity: 0.6;
}

/* Compact op 11-inch / smaller — krap maar leesbaar */
@media (max-width: 1280px) {
  .docrij-grid-header,
  .docrij {
    grid-template-columns:
      minmax(160px, 1.3fr)
      112px
      90px
      72px
      80px
      96px
      32px;
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .docrij-actie-label { font-size: 10.5px; }
}

/* ================================================================
   LOGBOEK-PAGINA
   ================================================================ */
.logboek-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.logboek-terug {
  display: inline-block;
  width: max-content;
  font-size: 13px;
  color: var(--tekst-zacht);
  margin-bottom: 6px;
}

.logboek-terug:hover {
  color: var(--platinum-mid);
  text-decoration: underline;
}

.logboek-tabel-wrapper {
  overflow-x: auto;
}

.logboek-tabel {
  width: 100%;
  border-collapse: collapse;
}

.logboek-tabel thead th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tekst-zacht);
  padding: 10px 12px;
  border-bottom: 1px solid var(--rand);
  font-weight: 600;
}

.logboek-tabel tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--rand);
  font-size: 14px;
  vertical-align: top;
}

.logboek-cel-datum {
  white-space: nowrap;
  color: var(--tekst-zacht);
  font-size: 13px;
}

.logboek-cel-actie {
  font-weight: 500;
}

.logboek-cel-reden {
  color: var(--tekst-zacht);
  font-size: 13px;
}

.logboek-rij-document_afgekeurd .logboek-cel-actie       { color: #a63232; }
.logboek-rij-document_geupload .logboek-cel-actie         { color: #2d6b2d; }
.logboek-rij-document_handmatig_akkoord .logboek-cel-actie { color: var(--platinum-mid); }

/* ================================================================
   KLANTZIJDE — Overige uploads sectie + knop-positie
   ================================================================ */

/* Knop strikt rechts pinnen op klant-rij. .docrij-info is al flex:1 dus
   de knop staat al rechts; deze regel maakt het expliciet zichtbaar. */
.docrij .docrij-acties { margin-left: auto; }

.overige-uploads {
  margin-top: 32px;
  padding: 22px 24px;
  background: var(--wit);
  border: 1.5px solid var(--platinum-light);
  border-radius: 14px;
}

.overige-uploads-titel {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  margin: 0 0 6px;
  color: var(--tekst);
}

.overige-uploads-uitleg {
  color: var(--tekst-zacht);
  font-size: 14px;
  margin: 0 0 16px;
}

.overige-uploads-lijst {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.overige-upload-rij {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--rand);
  border-radius: 10px;
}

.overige-upload-naam {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overige-upload-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.overige-uploads-actie {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.overige-uploads-teller {
  color: var(--tekst-zacht);
  font-size: 12px;
}

.overige-uploads-limiet {
  color: var(--tekst-zacht);
  font-size: 13px;
  font-style: italic;
  margin: 0;
}

/* ================================================================
   ACTIEVE DOSSIERS-LIJST — sortering, statussen, urgentie
   ================================================================ */
.sorteerbare-tabel th.sorteer {
  user-select: none;
  white-space: nowrap;
}

.sorteerbare-tabel th.sorteer:hover {
  color: var(--platinum-mid);
}

.sort-pijl {
  display: inline-block;
  min-width: 14px;
  font-size: 11px;
  color: var(--platinum-mid);
}

.dossier-id-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  background: var(--rand);
  color: var(--tekst-zacht);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

/* Binary status-badges (groen / oranje) */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.status-badge small {
  font-size: 10.5px;
  margin-left: 4px;
  opacity: 0.85;
}

.status-badge-groen  { background: #c8ecc8; color: #2d6b2d; }
.status-badge-oranje { background: #ffe4c2; color: #8a5a16; }

.ontbindend-datum {
  font-variant-numeric: tabular-nums;
}

.ontbindend-suffix {
  color: #8b2929;
  font-size: 12px;
  margin-left: 6px;
  font-style: italic;
}

/* Urgentie-rij — verlopen (rood, geen pulsering) */
.dossier-rij.rij-verlopen {
  background: #fef2f2;
}
.dossier-rij.rij-verlopen .ontbindend-datum {
  color: #8b2929;
  font-weight: 600;
}

/* Urgentie-rij — binnen 7 dagen (rood pulserend) */
@keyframes ontbindend-pulse {
  0%, 100% { background: #fef2f2; }
  50%      { background: #fde8e8; }
}

.dossier-rij.rij-urgent {
  animation: ontbindend-pulse 1.6s ease-in-out infinite;
}

.dossier-rij.rij-urgent .ontbindend-datum {
  color: #8b2929;
  font-weight: 600;
}

/* WG-componenten-tooltip naast inkomen-bedrag */
.wg-componenten-details {
  display: inline-block;
  position: relative;
  margin-left: 8px;
}
.wg-componenten-details > summary {
  list-style: none;
  cursor: help;
  display: inline-block;
  width: 18px;
  height: 18px;
  text-align: center;
  border-radius: 50%;
  background: var(--platinum-pale);
  color: var(--platinum-mid);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}
.wg-componenten-details > summary::-webkit-details-marker { display: none; }
.wg-componenten-details > summary:hover {
  background: var(--platinum-light);
  color: var(--wit);
}
.wg-componenten-popover {
  position: absolute;
  z-index: 50;
  top: 24px;
  left: 0;
  min-width: 260px;
  padding: 10px 14px;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  font-size: 13px;
}
.wg-componenten-titel {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--platinum-mid);
}
.wg-componenten-titel em {
  color: var(--tekst-zacht);
  font-weight: 400;
  font-style: italic;
  margin-left: 4px;
}
.wg-componenten-lijst {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wg-componenten-lijst li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--rand);
}
.wg-componenten-lijst li:last-child { border-bottom: none; }
.wg-comp-naam { color: var(--tekst); }
.wg-comp-bedrag {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--tekst);
}
