/* ═══════════════════════════════════════════════════════════
   SCHUTTERSFEESTEN DELDEN — Sponsor Manager v10
   Festival-grade dark UI. Lime #c8d400 · Pink #d4006e · Black #0e0e0e
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,700;0,800;0,900;1,800;1,900&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&display=swap');

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

:root {
  /* ── Brand ─────────────────────── */
  --lime:       #c8d400;
  --lime-dim:   #a8b200;
  --lime-glow:  rgba(200,212,0,.10);
  --lime-glow2: rgba(200,212,0,.05);
  --pink:       #d4006e;
  --pink-glow:  rgba(212,0,110,.10);

  /* ── Surfaces ──────────────────── */
  --bg:       #0e0e0e;
  --surface:  #141414;
  --surface2: #1c1c1c;
  --surface3: #242424;
  --surface4: #2c2c2c;
  --border:   #2a2a2a;
  --border2:  #333;

  /* ── Text ──────────────────────── */
  --text:       #f2f2f2;
  --text-dim:   #999;
  --text-muted: #555;

  /* ── Semantic colors ───────────── */
  --green:      #22c55e;
  --green-dim:  rgba(34,197,94,.12);
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,.08);
  --amber-lijn: rgba(245,158,11,.28);
  --red:        #ef4444;
  --red-dim:    rgba(239,68,68,.12);
  --blue:       #3b82f6;
  --blue-dim:   rgba(59,130,246,.12);
  --orange:     #f97316;
  --purple:     #a855f7;
  --yellow:     #eab308;

  /* ── Layout ────────────────────── */
  --sidebar-w:   244px;
  --pad:         clamp(16px, 2.5vw, 28px);

  /* ── Radii (concentrisch — buiten zacht, binnen strak) ── */
  --r-xs:        6px;
  --r-sm:        8px;
  --r:           11px;
  --r-lg:        16px;
  --r-xl:        22px;

  /* ── Shadows (getint naar bg, niet puur zwart) ───────── */
  --shadow-sm:   0 1px 3px rgba(8,8,6,.55);
  --shadow:      0 4px 18px -4px rgba(8,8,6,.65);
  --shadow-lg:   0 14px 44px -10px rgba(6,6,4,.78);
  --shadow-lime: 0 6px 24px -6px rgba(200,212,0,.22);
  /* Inner-highlight voor card-randen (machined hardware look) */
  --edge-hi:     inset 0 1px 0 rgba(255,255,255,.045);
  --edge-lo:     inset 0 -1px 0 rgba(0,0,0,.35);

  /* ── Motion (cubic-bezier — geen ease/linear) ────────── */
  --ease:        cubic-bezier(.32,.72,0,1);
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --t-fast:      .14s var(--ease);
  --t:           .22s var(--ease);
  --t-slow:      .42s var(--ease-out);
  --transition:  var(--t-fast);
}

/* ── Base ──────────────────────────────────────────── */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  display: flex;
  min-height: 100dvh;
  /* Getallen lijnen netjes uit in tabellen/bedragen */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "cv11" 1;
}

/* Tabulaire cijfers expliciet op data-elementen */
.stat-value, .table td, .v15-table td, .progress-card .value,
.badge, input[type="number"], .amount, .num {
  font-variant-numeric: tabular-nums;
}

/* Zichtbare focus-ring voor toetsenbordnavigatie (toegankelijkheid) */
a:focus-visible, button:focus-visible,
.btn:focus-visible, .nav-item:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* Subtle noise texture on bg */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .4;
}

@keyframes pageIn {
  from { opacity:0; transform:translateY(4px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── Sidebar ───────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  /* Top lime bar — brand accent */
  border-top: 3px solid var(--lime);
}

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100dvh;
  padding: var(--pad);
  max-width: calc(100vw - var(--sidebar-w));
  animation: pageIn .2s ease;
  position: relative;
  z-index: 1;
}

/* ── Sidebar Brand ─────────────────────────────────── */
.sidebar-brand {
  padding: 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-brand a {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
}
.brand-inner { display: flex; align-items: center; gap: 10px; }
.brand-logo-img {
  max-height: 44px; max-width: 188px;
  object-fit: contain; display: block;
}
.brand-logo-icon {
  /* DSF pill — festival style */
  background: var(--lime);
  color: #0e0e0e;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 5px 10px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1;
}
.brand-text { min-width: 0; flex: 1; }
.brand-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--lime);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.brand-sub {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* ── Year selector ─────────────────────────────────── */
.year-selector {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.year-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  display: block;
  margin-bottom: 5px;
}
.year-controls { display: flex; align-items: center; gap: 5px; }
.year-btn {
  background: var(--surface3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 26px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.year-btn:hover { background: var(--lime); color: #0e0e0e; border-color: var(--lime); }
.year-controls select {
  flex: 1;
  background: var(--surface3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  outline: none;
  appearance: none;
  text-align: center;
}

/* ── Nav search trigger ────────────────────────────── */
.nav-search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 10px 3px;
  padding: 7px 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-search-trigger:hover { border-color: var(--lime); color: var(--text-dim); }
.nav-search-trigger kbd {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 9px;
  font-family: monospace;
}

/* ── Nav menu ──────────────────────────────────────── */
.nav-menu { flex: 1; padding: 4px 0 6px; }
.nav-section-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 10px 16px 3px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 10px 10px 14px; /* Vergroot voor touch-gebruik */
  margin: 1px 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  border-radius: 7px;
  transition: background var(--transition), color var(--transition);
  position: relative;
  border-left: 3px solid transparent;
}
.nav-item:hover {
  background: var(--lime-glow2);
  color: var(--text);
}
.nav-item.active {
  background: var(--lime-glow);
  color: var(--lime);
  font-weight: 700;
  border-left-color: var(--lime);
}
.nav-icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.nav-label { flex: 1; }
.nav-badge {
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
  min-width: 18px;
  text-align: center;
  line-height: 1.6;
  flex-shrink: 0;
  animation: badgePulse 2.5s infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
  50%      { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}
.nav-badge.amber { background: var(--lime); color: #0e0e0e; }

/* ── Sidebar footer ────────────────────────────────── */
.sidebar-footer {
  padding: 8px 10px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.sidebar-footer-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  transition: var(--transition);
}
.sidebar-footer-btn:hover {
  background: var(--lime-glow);
  border-color: rgba(200,212,0,.2);
  color: var(--lime);
}

/* ── Mobile ────────────────────────────────────────── */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px; left: 12px;
  z-index: 300;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  box-shadow: var(--shadow);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 190;
  backdrop-filter: blur(4px);
}

/* ── Page header ───────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}
.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(22px, 3.5vw, 32px);
  color: var(--text);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.page-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
}
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── Stat cards ────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.stat-card {
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm), var(--edge-hi);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--lime);
  opacity: .9;
}
.stat-card.green::before  { background: var(--green); }
.stat-card.red::before    { background: var(--red); }
.stat-card.blue::before   { background: var(--blue); }
.stat-card.purple::before { background: var(--purple); }
.stat-card.pink::before   { background: var(--pink); }
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow), var(--edge-hi);
  border-color: var(--border2);
}
.stat-icon { font-size: 18px; margin-bottom: 8px; }
.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  margin-bottom: 3px;
}
.stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -.01em;
}
.stat-card.amber  .stat-value { color: var(--lime); }
.stat-card.green  .stat-value { color: var(--green); }
.stat-card.red    .stat-value { color: var(--red); }
.stat-card.blue   .stat-value { color: var(--blue); }
.stat-card.purple .stat-value { color: var(--purple); }
.stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.stat-trend { font-size: 11px; margin-top: 4px; display: flex; align-items: center; gap: 3px; }
.trend-up   { color: var(--green); }
.trend-down { color: var(--red); }
.trend-same { color: var(--text-muted); }

/* ── Cards ─────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm), var(--edge-hi);
}
.card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── Grids ─────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width:1100px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width:700px)  { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── Tables ────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 13px; }
.table thead th {
  background: var(--surface2);
  padding: 9px 14px;
  text-align: left;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
  color: var(--text);
}
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--surface2) !important; }
.table tbody tr:nth-child(even) { background: rgba(255,255,255,.02); }
.table tbody tr:last-child td { border-bottom: none; }
.text-right { text-align: right !important; }
.fw-600 { font-weight: 600; }
.font-mono { font-family: monospace; }

/* ── Sponsor avatars ───────────────────────────────── */
.sponsor-avatar-sm {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--lime-glow);
  border: 1px solid rgba(200,212,0,.2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: var(--lime);
  flex-shrink: 0; vertical-align: middle; margin-right: 7px;
}
.sponsor-avatar {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--lime-glow);
  border: 2px solid rgba(200,212,0,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--lime);
  flex-shrink: 0;
}

/* ── Badges ────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-green  { background: var(--green-dim);  color: var(--green); }
.badge-red    { background: var(--red-dim);    color: var(--red); }
.badge-blue   { background: var(--blue-dim);   color: var(--blue); }
.badge-pink   { background: var(--pink-glow);  color: var(--pink); }

.status-badge { display:inline-block; padding:2px 8px; border-radius:5px; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.status-badge.active   { background:var(--green-dim); color:var(--green); }
.status-badge.inactive { background:rgba(100,100,100,.15); color:var(--text-muted); }

.invoice-badge { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:5px; font-size:10px; font-weight:600; }
.invoice-badge.not-sent { background:rgba(107,114,128,.12); color:#9ca3af; }
.invoice-badge.sent     { background:var(--blue-dim); color:var(--blue); }
.invoice-badge.paid     { background:var(--green-dim); color:var(--green); }
.invoice-badge.overdue  { background:var(--red-dim); color:var(--red); }

.custom-price-badge {
  display:inline-flex; align-items:center; gap:2px;
  padding:1px 6px; border-radius:4px;
  font-size:9px; font-weight:800;
  background:var(--lime-glow); color:var(--lime);
  border:1px solid rgba(200,212,0,.2);
  vertical-align:middle;
}

.deadline-chip { display:inline-flex; align-items:center; gap:3px; padding:2px 7px; border-radius:5px; font-size:10px; font-weight:600; }
.deadline-chip.ok      { background:rgba(34,197,94,.1);  color:var(--green); }
.deadline-chip.warning { background:var(--lime-glow);    color:var(--lime); }
.deadline-chip.urgent  { background:var(--red-dim);      color:var(--red); }
.deadline-chip.overdue { background:rgba(239,68,68,.18); color:#ef4444; font-weight:800; }
.deadline-chip.none    { background:var(--surface2);     color:var(--text-muted); }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform var(--t-fast), background var(--t-fast),
              border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  line-height: 1.3;
  letter-spacing: .01em;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--lime);
  color: #0e0e0e;
  border-color: var(--lime);
  box-shadow: var(--shadow-lime);
}
.btn-primary:hover { background: var(--lime-dim); border-color: var(--lime-dim); transform: translateY(-1px); }
.btn-primary:active { transform: scale(.97); }
.btn-secondary { background: var(--surface3); color: var(--text); border-color: var(--border2); }
.btn-secondary:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-1px); }
.btn-danger { background: var(--red-dim); color: var(--red); border-color: transparent; }
.btn-danger:hover { background: var(--red); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-dim); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-success { background: var(--green-dim); color: var(--green); border-color: rgba(34,197,94,.2); }
.btn-success:hover { background: rgba(34,197,94,.2); transform: translateY(-1px); }
.btn-pink { background: var(--pink-glow); color: var(--pink); border-color: rgba(212,0,110,.2); }
.btn-pink:hover { background: var(--pink); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 5px 11px; font-size: 11px; border-radius: var(--r-xs); }
.btn-icon { background:none; border:none; color:var(--text-dim); cursor:pointer; padding:4px 7px; border-radius:var(--r-xs); transition:background var(--t-fast), color var(--t-fast), transform var(--t-fast); font-size:13px; font-family:inherit; display:inline-flex; align-items:center; }
.btn-icon:hover { background:var(--surface3); color:var(--text); }
.btn-icon:active { transform: scale(.92); }
.btn-icon.delete:hover { color:var(--red); }

/* ── Forms ─────────────────────────────────────────── */
.form-grid   { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-grid-3 { grid-template-columns:1fr 1fr 1fr; }
@media (max-width:680px) { .form-grid, .form-grid-3 { grid-template-columns:1fr; } }
.form-group { display:flex; flex-direction:column; gap:5px; }
.form-group.full { grid-column:1 / -1; }
.form-label { font-size:11px; font-weight:700; color:var(--text-dim); text-transform:uppercase; letter-spacing:.07em; }
.form-hint  { font-size:11px; color:var(--text-muted); font-weight:400; margin-left:5px; }
.form-input, input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="url"], input[type="date"], select, textarea {
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 16px; /* 16px voorkomt automatisch inzoomen op iOS */
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
input:focus, select:focus, textarea:focus, .form-input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-glow);
}
textarea { resize: vertical; min-height: 72px; }
.checkbox-row { display:flex; flex-wrap:wrap; gap:14px; padding:3px 0; }
.checkbox-label { display:flex; align-items:center; gap:6px; cursor:pointer; font-size:13px; color:var(--text); text-transform:none; letter-spacing:normal; font-weight:400; }
input[type="checkbox"] { width:15px; height:15px; accent-color:var(--lime); cursor:pointer; }
.form-section-title { font-size:10px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.1em; padding-top:6px; padding-bottom:3px; border-top:1px solid var(--border); grid-column:1/-1; margin-top:6px; }
.form-inline { display:flex; align-items:center; gap:8px; }
.form-inline input, .form-inline select { width:auto; flex:1; }

/* ── Toolbar ───────────────────────────────────────── */
.toolbar { display:flex; align-items:center; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.search-input { background:var(--surface2); border:1px solid var(--border2); color:var(--text); padding:8px 12px; border-radius:7px; font-size:13px; font-family:inherit; outline:none; flex:1; min-width:180px; max-width:300px; transition:border-color var(--transition); }
.search-input:focus { border-color:var(--lime); box-shadow:0 0 0 3px var(--lime-glow); }
.filter-select { background:var(--surface2); border:1px solid var(--border2); color:var(--text); padding:8px 12px; border-radius:7px; font-size:13px; font-family:inherit; outline:none; cursor:pointer; }

/* ── Flash messages ────────────────────────────────── */
.flash-container { position:fixed; top:16px; right:16px; z-index:9999; display:flex; flex-direction:column; gap:8px; max-width:360px; pointer-events:none; }
.flash {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--border2);
  color: var(--text);
  padding: 11px 14px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  pointer-events: all;
  animation: flashIn .22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes flashIn { from{transform:translateX(20px) scale(.97);opacity:0;} to{transform:translateX(0) scale(1);opacity:1;} }
.flash-success { border-left-color: var(--green); }
.flash-error   { border-left-color: var(--red); }
.flash-info    { border-left-color: var(--blue); }
.flash-close   { background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:16px; padding:0; }
.flash-close:hover { opacity:1; color:var(--text); }

/* ── Modals ────────────────────────────────────────── */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.78); backdrop-filter:blur(6px); z-index:1000; display:flex; align-items:center; justify-content:center; animation:fadeIn .15s ease; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
.modal { background:var(--surface); border:1px solid var(--border2); border-radius:var(--r-lg); padding:28px; max-width:440px; width:90%; box-shadow:var(--shadow-lg); text-align:center; animation:modalIn .2s cubic-bezier(.34,1.56,.64,1); }
@keyframes modalIn { from{transform:scale(.93) translateY(8px);opacity:0;} to{transform:scale(1) translateY(0);opacity:1;} }
.modal-icon  { font-size:36px; margin-bottom:10px; }
.modal-title { font-family:'Barlow Condensed',sans-serif; font-size:20px; font-weight:800; text-transform:uppercase; margin-bottom:8px; }
.modal-text  { color:var(--text-dim); margin-bottom:20px; font-size:13px; line-height:1.5; }
.modal-actions { display:flex; gap:10px; justify-content:center; }

/* ── Global search ─────────────────────────────────── */
.global-search-wrap { position:fixed; inset:0; background:rgba(0,0,0,.8); backdrop-filter:blur(5px); z-index:9999; display:none; align-items:flex-start; justify-content:center; padding-top:70px; }
.global-search-wrap.open { display:flex; }
.global-search-box { background:var(--surface); border:1px solid var(--lime); border-radius:var(--r-lg); width:580px; max-width:94vw; box-shadow:var(--shadow-lg), 0 0 40px rgba(200,212,0,.1); overflow:hidden; }
.global-search-input-row { display:flex; align-items:center; gap:10px; padding:14px 16px; border-bottom:1px solid var(--border); }
.global-search-input-row input { flex:1; background:transparent; border:none; color:var(--text); font-size:16px; font-family:inherit; outline:none; }
.global-search-input-row input::placeholder { color:var(--text-muted); }
.search-icon { font-size:1.1rem; opacity:.6; }
.global-search-results { max-height:400px; overflow-y:auto; padding:6px 0; }
.gs-section-title { padding:5px 16px 3px; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--text-muted); }
.gs-result { display:flex; align-items:center; gap:10px; padding:9px 16px; cursor:pointer; text-decoration:none; color:var(--text); transition:background var(--transition); }
.gs-result:hover { background:var(--surface2); }
.gs-result-icon { font-size:1rem; flex-shrink:0; width:24px; text-align:center; }
.gs-result-main { font-size:13px; font-weight:600; }
.gs-result-sub  { font-size:11px; color:var(--text-muted); }
.gs-empty { padding:24px 16px; text-align:center; color:var(--text-muted); font-size:13px; }
.gs-hint { padding:8px 16px; border-top:1px solid var(--border); font-size:10px; color:var(--text-muted); display:flex; gap:14px; }
.gs-hint kbd, kbd { background:var(--surface2); border:1px solid var(--border2); border-radius:3px; padding:1px 5px; font-family:monospace; font-size:9px; }

/* ── Progress bar ──────────────────────────────────── */
.progress-bar-wrap { background:var(--surface2); border:1px solid var(--border); border-radius:var(--r); padding:12px 16px; margin-bottom:14px; display:flex; align-items:center; gap:14px; }
.progress-bar-track { flex:1; height:6px; background:var(--surface3); border-radius:3px; overflow:hidden; }
.progress-label { font-size:11px; color:var(--text-dim); white-space:nowrap; }
.progress-pct   { font-family:'Barlow Condensed',sans-serif; font-size:16px; font-weight:800; color:var(--lime); white-space:nowrap; }

/* ── Te verlengen ──────────────────────────────────── */
.tel-rij { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.tel-chip { display:flex; flex-direction:column; align-items:center; padding:10px 16px; border-radius:8px; border:1px solid var(--border); min-width:90px; text-align:center; }
.tel-chip span  { font-family:'Barlow Condensed',sans-serif; font-size:1.6rem; font-weight:800; line-height:1; }
.tel-chip small { font-size:9px; color:var(--text-muted); margin-top:3px; text-transform:uppercase; letter-spacing:.06em; font-weight:700; }
.tel-grijs { background:var(--surface); }
.tel-blauw { background:var(--blue-dim);  border-color:rgba(59,130,246,.25); color:var(--blue); }
.tel-groen { background:var(--green-dim); border-color:rgba(34,197,94,.25);  color:var(--green); }
.tel-rood  { background:var(--red-dim);   border-color:rgba(239,68,68,.25);  color:var(--red); }
.tel-amber { background:var(--lime-glow); border-color:rgba(200,212,0,.25);  color:var(--lime); }

.aflopen-lijst { display:flex; flex-direction:column; gap:10px; }
@keyframes fadeUp { from{opacity:0;transform:translateY(6px);} to{opacity:1;transform:translateY(0);} }
.aflopen-card { background:var(--surface); border:1px solid var(--border); border-left:3px solid var(--border); border-radius:var(--r); padding:16px; transition:box-shadow var(--transition); animation:fadeUp .2s ease both; }
.aflopen-card:hover { box-shadow:0 4px 20px rgba(0,0,0,.25); }
.aflopen-groen { border-left-color:var(--green); }
.aflopen-rood  { border-left-color:var(--red); }
.aflopen-amber { border-left-color:var(--lime); }
.aflopen-blauw { border-left-color:var(--blue); }
.aflopen-card:nth-child(n) { animation-delay:calc(var(--i,.02s) * 0.04s); }

.afl-header { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:10px; }
.afl-info   { flex:1; }
.afl-naam   { font-size:1rem; font-weight:700; color:var(--text); text-decoration:none; }
.afl-naam:hover { color:var(--lime); }
.afl-meta   { display:flex; align-items:center; gap:7px; margin-top:4px; flex-wrap:wrap; }
.afl-badge  { flex-shrink:0; }
.afl-acties { display:flex; flex-wrap:wrap; align-items:flex-start; gap:7px; padding-top:10px; border-top:1px solid var(--border); }

.tijdlijn      { margin-bottom:10px; display:flex; flex-direction:column; gap:7px; }
.tijdlijn-stap { display:flex; align-items:center; gap:9px; }
.tijdlijn-dot  { width:20px; height:20px; border-radius:50%; background:var(--surface3); color:var(--text-muted); display:flex; align-items:center; justify-content:center; font-size:.65rem; font-weight:800; flex-shrink:0; border:1px solid var(--border); }
.dot-blauw { background:var(--blue);  color:#fff; border-color:var(--blue); }
.dot-groen { background:var(--green); color:#fff; border-color:var(--green); }
.dot-rood  { background:var(--red);   color:#fff; border-color:var(--red); }
.dot-amber { background:var(--lime);  color:#0e0e0e; border-color:var(--lime); }
.tijdlijn-tekst { font-size:.85rem; }

.inline-form   { width:100%; margin-top:3px; }
.inline-inner  { background:var(--surface2); border:1px solid var(--border); border-radius:7px; padding:10px 12px; display:flex; flex-direction:column; gap:9px; }
.verleng-inner { border-color:rgba(34,197,94,.3); }
.stop-inner    { background:rgba(239,68,68,.04); border-color:rgba(239,68,68,.3); }
.inline-velden { display:flex; gap:12px; flex-wrap:wrap; }
.veld-groep    { display:flex; flex-direction:column; gap:3px; }
.inline-btns   { display:flex; gap:7px; flex-wrap:wrap; }
.verleng-keuze  { display:flex; flex-direction:column; gap:7px; }
.verleng-optie  { display:flex; align-items:center; gap:7px; font-size:.85rem; cursor:pointer; }
.reactie-optie  { color:var(--text-muted); font-size:.78rem; margin-top:1px; }
.form-input-sm  { background:var(--surface); border:1px solid var(--border); border-radius:6px; color:var(--text); padding:4px 8px; font-size:.82rem; }
.form-input-nr  { background:var(--surface); border:1px solid var(--border); border-radius:6px; color:var(--text); padding:4px 8px; font-size:.82rem; width:76px; }

/* Mail popup */
#mail-popup-overlay { position:fixed; inset:0; background:rgba(0,0,0,.72); z-index:1000; display:flex; align-items:center; justify-content:center; padding:14px; backdrop-filter:blur(6px); }
#mail-popup { background:var(--surface); border:1px solid var(--border2); border-radius:var(--r-lg); width:100%; max-width:620px; max-height:90vh; display:flex; flex-direction:column; box-shadow:var(--shadow-lg); }
#mail-popup-header { display:flex; justify-content:space-between; align-items:flex-start; padding:16px 18px 12px; border-bottom:1px solid var(--border); }
#mail-popup-body   { padding:14px 18px; flex:1; overflow-y:auto; }
#mail-popup-footer { padding:12px 18px 16px; border-top:1px solid var(--border); display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }
.btn-copy-small { background:var(--lime-glow); border:1px solid rgba(200,212,0,.2); color:var(--lime); border-radius:4px; padding:2px 8px; font-size:.72rem; cursor:pointer; transition:var(--transition); }
.btn-copy-small:hover { background:rgba(200,212,0,.2); }
.btn-copy-small.copied { background:var(--green-dim); border-color:rgba(34,197,94,.3); color:var(--green); }

/* ── Package cards ─────────────────────────────────── */
.package-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px; }
.package-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:18px; transition:all var(--transition); position:relative; overflow:hidden; }
.package-card::before { content:''; position:absolute; top:0; left:0; width:3px; bottom:0; background:var(--lime); }
.package-card:hover { border-color:var(--lime); transform:translateY(-2px); box-shadow:0 6px 24px rgba(0,0,0,.25); }
.pkg-name  { font-size:14px; font-weight:700; color:var(--text); margin-bottom:5px; }
.pkg-price { font-family:'Barlow Condensed',sans-serif; font-size:22px; font-weight:800; color:var(--lime); margin-bottom:7px; }
.pkg-desc  { font-size:12px; color:var(--text-dim); margin-bottom:10px; line-height:1.4; }
.pkg-meta  { font-size:10px; color:var(--text-muted); margin-bottom:10px; display:flex; gap:10px; }
.pkg-actions { display:flex; gap:7px; }

/* ── Sponsor detail ────────────────────────────────── */
.sponsor-detail { padding: 0; }
.sponsor-detail-header { display:flex; align-items:flex-start; gap:16px; margin-bottom:18px; }
.info-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.info-item { }
.info-key  { font-size:9px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.1em; font-weight:700; margin-bottom:2px; }
.info-val  { font-size:13px; color:var(--text); }
.info-val a { color:var(--lime); text-decoration:none; }
.info-val a:hover { text-decoration:underline; }
.copy-btn-inline { background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:11px; padding:1px 3px; border-radius:3px; transition:var(--transition); vertical-align:middle; }
.copy-btn-inline:hover { color:var(--lime); }
.text-amber { color:var(--lime) !important; }

/* ── Logos ─────────────────────────────────────────── */
.logo-thumb { width:72px; height:50px; object-fit:contain; background:var(--surface2); border:1px solid var(--border); border-radius:7px; padding:3px; transition:var(--transition); }
.logo-thumb:hover { transform:scale(1.05); box-shadow:0 3px 12px rgba(0,0,0,.3); }
.logo-gallery { display:flex; flex-wrap:wrap; gap:9px; align-items:center; margin-top:7px; }
.logo-item-meta { font-size:9px; color:var(--text-muted); text-align:center; margin-top:2px; }

/* ── Timeline ──────────────────────────────────────── */
.timeline { position:relative; padding-left:20px; border-left:2px solid var(--border); }
.timeline-item { position:relative; margin-bottom:18px; }
.timeline-item::before { content:''; position:absolute; left:-25px; top:5px; width:9px; height:9px; border-radius:50%; background:var(--lime); border:2px solid var(--surface); }
.timeline-item.verlopen::before { background:var(--text-muted); }
.timeline-year  { font-size:11px; color:var(--text-muted); margin-bottom:2px; }
.timeline-pkg   { font-size:13px; font-weight:700; }
.timeline-price { font-family:'Barlow Condensed',sans-serif; font-size:15px; font-weight:800; color:var(--lime); }
.timeline-note  { font-size:11px; color:var(--text-muted); margin-top:2px; }

/* ── To-do ─────────────────────────────────────────── */
.todo-item { display:flex; align-items:flex-start; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); transition:opacity var(--transition); }
.todo-item:last-child { border-bottom:none; }
.todo-item.gedaan { opacity:.45; }
.todo-check { width:18px; height:18px; border-radius:50%; border:2px solid var(--border2); background:transparent; cursor:pointer; flex-shrink:0; margin-top:2px; display:flex; align-items:center; justify-content:center; transition:var(--transition); }
.todo-check:hover { border-color:var(--lime); }
.todo-check.done { background:var(--green); border-color:var(--green); }
.todo-check.done::after { content:'✓'; font-size:10px; color:#fff; font-weight:800; }
.todo-body   { flex:1; min-width:0; }
.todo-title  { font-size:13px; font-weight:600; }
.todo-item.gedaan .todo-title { text-decoration:line-through; color:var(--text-muted); }
.todo-meta   { font-size:11px; color:var(--text-muted); display:flex; gap:8px; flex-wrap:wrap; margin-top:2px; }
.todo-meta .deadline-ok      { color:var(--green); }
.todo-meta .deadline-warn    { color:var(--lime); }
.todo-meta .deadline-urgent  { color:var(--red); }
.todo-meta .deadline-overdue { color:#ef4444; font-weight:700; }
.todo-actions { display:flex; gap:5px; flex-shrink:0; }
.priority-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; margin-top:6px; }

/* ── Bulk select ───────────────────────────────────── */
.sponsor-row-checkbox { width:15px; height:15px; accent-color:var(--lime); cursor:pointer; }
.bulk-action-bar { background:var(--surface); border-top:2px solid var(--lime); padding:10px 16px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; box-shadow:0 -4px 20px rgba(0,0,0,.4); z-index:100; }
.bulk-count { font-weight:700; color:var(--lime); font-size:13px; }

/* ── Filter tabs ───────────────────────────────────── */
.filter-tabs { display:flex; gap:4px; flex-wrap:wrap; margin-bottom:12px; }
.filter-tab { padding:4px 12px; border-radius:5px; border:1px solid var(--border); background:transparent; color:var(--text-muted); cursor:pointer; font-size:12px; font-weight:600; text-decoration:none; transition:var(--transition); }
.filter-tab:hover, .filter-tab.active { background:var(--lime-glow); border-color:var(--lime); color:var(--lime); }

/* ── Progress ring ─────────────────────────────────── */
.progress-ring { position:relative; width:52px; height:52px; flex-shrink:0; }
.progress-ring svg { transform:rotate(-90deg); }
.progress-ring .ring-bg { fill:none; stroke:var(--surface2); stroke-width:5; }
.progress-ring .ring-fg { fill:none; stroke:var(--green); stroke-width:5; stroke-linecap:round; transition:stroke-dashoffset .6s ease; }
.ring-pct { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:11px; font-weight:800; }
.progress-ring-wrap { display:flex; align-items:center; gap:14px; padding:10px 0; }

/* ── Action items ──────────────────────────────────── */
.action-item.red    { border-left:3px solid var(--red); }
.action-item.amber  { border-left:3px solid var(--lime); }
.action-item.green  { border-left:3px solid var(--green); }
.action-item.blue   { border-left:3px solid var(--blue); }
.action-item.red:hover   { border-color:var(--red); }
.action-item.amber:hover { border-color:var(--lime); }
.action-item.green:hover { border-color:var(--green); }
.action-item.blue:hover  { border-color:var(--blue); }
.action-icon  { font-size:1.2rem; flex-shrink:0; }
.action-body  { flex:1; min-width:0; }
.action-title { font-size:12px; font-weight:700; color:var(--text); }
.action-sub   { font-size:11px; color:var(--text-muted); margin-top:1px; }

/* ── Contact log ───────────────────────────────────── */
.contact-log-item { background:var(--surface2); border:1px solid var(--border); border-radius:7px; padding:10px 12px; }

/* ── Empty state ───────────────────────────────────── */
.empty-state-icon { font-size:42px; margin-bottom:14px; }
.empty-state h3   { font-family:'Barlow Condensed',sans-serif; font-size:22px; font-weight:800; text-transform:uppercase; color:var(--text); margin-bottom:7px; }
.empty-state p    { font-size:13px; }

/* ── Tooltip ───────────────────────────────────────── */
[data-tooltip] { position:relative; cursor:help; }
[data-tooltip]::after { content:attr(data-tooltip); position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%); background:var(--surface3); border:1px solid var(--border2); color:var(--text); font-size:10px; white-space:nowrap; padding:4px 8px; border-radius:5px; pointer-events:none; opacity:0; transition:opacity var(--transition); z-index:100; box-shadow:0 3px 12px rgba(0,0,0,.4); }
[data-tooltip]:hover::after { opacity:1; }

/* ── Scroll to top ─────────────────────────────────── */
#scroll-top { position:fixed; bottom:22px; right:22px; width:36px; height:36px; background:var(--surface2); border:1px solid var(--border2); border-radius:50%; color:var(--text-dim); font-size:16px; cursor:pointer; display:flex; align-items:center; justify-content:center; z-index:500; opacity:0; pointer-events:none; transition:all var(--transition); box-shadow:var(--shadow); }
#scroll-top.visible { opacity:1; pointer-events:auto; }
#scroll-top:hover { background:var(--lime); color:#0e0e0e; border-color:var(--lime); transform:translateY(-2px); }

/* ── Settings ──────────────────────────────────────── */
.settings-sectie { display:flex; flex-direction:column; gap:12px; }
.settings-sectie-header { font-size:.7rem; font-weight:800; color:var(--text-muted); text-transform:uppercase; letter-spacing:.12em; padding:6px 2px; border-bottom:1px solid var(--border); margin-bottom:4px; }
.export-rij { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; background:var(--surface3); border-radius:9px; border:1px solid var(--border); }
.export-titel  { font-weight:700; font-size:.88rem; margin-bottom:2px; }
.export-omschr { font-size:.76rem; color:var(--text-muted); }

/* ── Mail template editor ──────────────────────────── */
.template-vars { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:9px; }
.template-var { background:var(--lime-glow); border:1px solid rgba(200,212,0,.2); border-radius:3px; padding:1px 7px; font-size:10px; color:var(--lime); font-family:monospace; cursor:pointer; transition:var(--transition); }
.template-var:hover { background:rgba(200,212,0,.18); }
.expiry-warning { background:rgba(234,179,8,.07); border:1px solid rgba(234,179,8,.25); border-radius:7px; padding:10px 14px; font-size:12px; color:var(--yellow); display:flex; align-items:center; gap:7px; margin-bottom:14px; }

/* ── Charts ────────────────────────────────────────── */
.pct-up   { color:var(--green); font-size:11px; }
.pct-down { color:var(--red);   font-size:11px; }
.pct-flat { color:var(--text-muted); font-size:11px; }
.income-bar-list   { display:flex; flex-direction:column; gap:10px; }
.income-bar-header { display:flex; justify-content:space-between; font-size:12px; margin-bottom:4px; }
.income-bar-track  { height:6px; background:var(--surface3); border-radius:3px; overflow:hidden; }
.income-bar-fill   { height:100%; border-radius:3px; background:linear-gradient(90deg,var(--lime-dim),var(--lime)); transition:width .8s; }
.chart-container   { position:relative; height:220px; }

/* ── Sponsor card grid ─────────────────────────────── */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}
.sponsor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}
/* Lime top accent per card */
.sponsor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
  transition: background var(--transition);
}
.sponsor-card:hover { border-color: var(--lime); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.sponsor-card:hover::before { background: var(--lime); }

.sc-header { display:flex; align-items:center; gap:10px; padding:13px 13px 10px; }
.sc-avatar { width:36px; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-family:'Barlow Condensed',sans-serif; font-weight:900; font-size:.95rem; color:#0e0e0e; flex-shrink:0; }
.sc-title-wrap { flex:1; min-width:0; }
.sc-name { display:block; font-weight:700; font-size:.9rem; color:var(--text); text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sc-name:hover { color:var(--lime); }
.sc-pkg-badge { display:inline-block; margin-top:2px; background:var(--lime-glow); color:var(--lime); font-size:.62rem; font-weight:800; padding:1px 6px; border-radius:4px; text-transform:uppercase; letter-spacing:.05em; }
.sc-price { font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:1rem; color:var(--lime); flex-shrink:0; white-space:nowrap; }

.sc-divider { height:1px; background:var(--border); margin:0 13px; }
.sc-body { padding:9px 13px; display:flex; flex-direction:column; gap:4px; min-height:56px; }
.sc-row { display:flex; align-items:center; gap:7px; font-size:.8rem; color:var(--text-dim); white-space:nowrap; overflow:hidden; }
.sc-icon { font-size:.75rem; flex-shrink:0; opacity:.6; width:14px; text-align:center; }
.sc-val  { overflow:hidden; text-overflow:ellipsis; }
.sc-link { color:var(--text-muted); text-decoration:none; overflow:hidden; text-overflow:ellipsis; transition:color var(--transition); }
.sc-link:hover { color:var(--lime); }

.sc-footer { display:flex; align-items:center; justify-content:space-between; padding:8px 11px; background:rgba(0,0,0,.15); border-top:1px solid var(--border); }
.sc-meta    { display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.sc-actions { display:flex; gap:4px; }
.sc-btn { width:27px; height:27px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:.8rem; cursor:pointer; text-decoration:none; background:var(--surface3); border:1px solid var(--border); color:var(--text); transition:var(--transition); }
.sc-btn:hover { background:var(--lime-glow); border-color:rgba(200,212,0,.3); }
.sc-btn-del { background:none; }
.sc-btn-del:hover { background:var(--red-dim); border-color:rgba(239,68,68,.3); }

/* ── Misc utilities ────────────────────────────────── */
.text-green   { color:var(--green) !important; }
.text-red     { color:var(--red) !important; }
.text-dim     { color:var(--text-dim) !important; }
.text-muted   { color:var(--text-muted) !important; }
.flex         { display:flex; }
.gap-2        { gap:8px; }
.gap-3        { gap:12px; }
.mt-1         { margin-top:6px; }
.mt-2         { margin-top:14px; }
.mb-1         { margin-bottom:6px; }
.mb-2         { margin-bottom:14px; }
.opacity-50   { opacity:.5; }
::selection   { background:rgba(200,212,0,.18); color:var(--text); }
::-webkit-scrollbar       { width:5px; height:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border2); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:var(--text-muted); }

/* ── Responsive ────────────────────────────────────── */
@media (min-width:1400px) { :root { --pad:32px; } }
@media (max-width:1200px) { :root { --sidebar-w:220px; } }
@media (max-width:1024px) { :root { --sidebar-w:200px; --pad:18px; } .nav-item { font-size:12.5px; } }
@media (max-width:768px) {
  :root { --sidebar-w:244px; }
  .sidebar { transform:translateX(-100%); box-shadow:var(--shadow-lg); }
  .sidebar.open { transform:translateX(0); }
  .main-content { margin-left:0; max-width:100vw; padding-top:56px; }
  .sidebar-toggle { display:flex; align-items:center; gap:6px; }
  .sidebar-overlay.active { display:block; }
  .stat-grid { grid-template-columns:1fr 1fr; }
  .page-title { font-size:22px; }
}
@media (max-width:520px) {
  .stat-grid { grid-template-columns:1fr; }
  .sponsors-grid { grid-template-columns:1fr; } /* Altijd 1 kolom op mobiel */
  .page-header { flex-direction:column; }
  .toolbar { flex-direction:column; align-items:stretch; }
  .search-input { max-width:100%; }
  .flash-container { left:12px; right:12px; }
  .btn { font-size:12px; padding:6px 12px; }
  .sc-btn { width:44px; height:44px; } /* Touch targets herstellen */
}

/* iPad aanpassingen */
@media (min-width:521px) and (max-width:768px) {
  .sponsors-grid { grid-template-columns:1fr; }
  .sc-btn { width:44px; height:44px; }
}

@media print {
  .sidebar, .sidebar-toggle, .flash-container, #scroll-top, .no-print,
  .bulk-action-bar, .filter-tabs, nav, .page-actions .btn-secondary { display:none !important; }
  .main-content { margin:0 !important; padding:12px !important; animation:none; }
  body { background:white !important; color:black !important; font-size:11pt; }
  .card { box-shadow:none !important; border:1px solid #ddd !important; break-inside:avoid; }
}

/* ── Skip-navigatie (toegankelijkheid) ──────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--lime);
  color: #0e0e0e;
  padding: 8px 16px;
  border-radius: 0 0 7px 7px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  z-index: 10000;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ── Focus indicator verbeterd ──────────────────────────── */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* ── Light mode (optioneel via knop) ──────────────────────── */
[data-theme="light"] {
  --lime:       #5a6200;   /* Donkerder lime voor contrast op wit */
  --lime-dim:   #404800;
  --lime-glow:  rgba(90,98,0,.10);
  --lime-glow2: rgba(90,98,0,.05);
  --pink:       #a8005a;
  --pink-glow:  rgba(168,0,90,.10);
  --bg:       #f5f5f0;
  --surface:  #ffffff;
  --surface2: #f0efe8;
  --surface3: #e8e7df;
  --surface4: #deddd5;
  --border:   #d0cfc7;
  --border2:  #c0bfb7;
  --text:       #1a1a1a;
  --text-dim:   #555550;
  --text-muted: #888880;
}
[data-theme="light"] .sidebar {
  background: #ffffff;
  border-right-color: #d0cfc7;
}
[data-theme="light"] body::before { opacity: .15; }

/* ═══════════════════════════════════════════════════════════
   v15 — UI POLISH & COMPONENT LIBRARY
   Vervangt inline styles door consistente klassen
   ═══════════════════════════════════════════════════════════ */

/* ── v15 form controls (consistent over alle pagina's) ──── */
.v15-form-row    { display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end; margin-bottom:12px; }
.v15-form-field  { display:flex; flex-direction:column; gap:6px; flex:1; min-width:140px; }
.v15-form-label  { font-size:.78rem; color:var(--text-muted); font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.v15-form-input,
.v15-form-select,
.v15-form-date {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  padding: 8px 12px;
  font-size: .88rem;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.v15-form-input:focus,
.v15-form-select:focus,
.v15-form-date:focus {
  outline: none;
  border-color: var(--lime);
  background: var(--surface2);
}
.v15-form-textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  padding: 10px 12px;
  font-size: .88rem;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  min-height: 100px;
  width: 100%;
}

/* ── v15 reactie-knoppen (consistent in mail popup) ─────── */
.reactie-btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.reactie-btn {
  flex: 1;
  min-width: 130px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.reactie-btn:hover    { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.reactie-btn.actief   { background: var(--surface3); box-shadow: inset 0 0 0 2px currentColor; }
.reactie-btn-ja       { border-color: #10b981; color: #10b981; }
.reactie-btn-nee      { border-color: #ef4444; color: #ef4444; }
.reactie-btn-terug    { border-color: #f59e0b; color: #f59e0b; }
.reactie-btn-later    { border-color: #8b5cf6; color: #8b5cf6; }

/* ── v15 reactie-historie kaart op sponsor-detail ───────── */
.reactie-historie-card {
  margin-bottom: 14px;
  border-left: 3px solid #8b5cf6;
}
.reactie-row {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.reactie-row:last-child { margin-bottom: 0; }
.reactie-row .datum     { font-size: 11px; color: var(--text-muted); font-weight: 600; min-width: 80px; }
.reactie-row .label     { font-size: 12px; font-weight: 700; }
.reactie-row .label.wil_verlengen      { color: #10b981; }
.reactie-row .label.wil_niet_verlengen { color: #ef4444; }
.reactie-row .label.terugbellen        { color: #f59e0b; }
.reactie-row .label.later              { color: #8b5cf6; }
.reactie-row .label.niet_gereageerd    { color: var(--text-muted); }
.reactie-row .notitie  { font-size: 12px; color: var(--text-dim); flex: 1; }
.reactie-row .auteur   { font-size: 10px; color: var(--text-muted); }

/* ── v15 mail-confirm-row (3-staps mail flow) ───────────── */
.mail-confirm-row {
  width: 100%;
  padding: 14px 16px;
  background: rgba(16,185,129,.10);
  border: 1px solid rgba(16,185,129,.35);
  border-radius: 8px;
  margin-bottom: 10px;
}
.mail-confirm-row .titel {
  font-size: 13px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 10px;
}

.mail-step-card {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
}
.mail-step-card .titel {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}

/* ── v15 quick-renew knop op sponsor-detail ─────────────── */
.btn-renew {
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(16,185,129,.15);
  border: 1px solid #10b981;
  color: #10b981;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.btn-renew:hover {
  background: rgba(16,185,129,.30);
  transform: translateY(-1px);
}

/* ── v15 dashboard polish ──────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.dashboard-section {
  margin-bottom: 24px;
}
.dashboard-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
  padding-left: 4px;
}

/* Voortgangsbalk voor seizoensvoortgang */
.progress-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.progress-card .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.progress-card .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1;
  margin-bottom: 8px;
}
.progress-card .sub { font-size: 12px; color: var(--text-muted); }
.progress-bar {
  height: 6px;
  background: var(--surface3);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--lime-dim));
  border-radius: 3px;
  transition: width .4s ease;
}
.progress-bar-fill.amber { background: linear-gradient(90deg, #f59e0b, #d97706); }
.progress-bar-fill.green { background: linear-gradient(90deg, #10b981, #059669); }

/* ── v15 tabellen polish ────────────────────────────────── */
.v15-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.v15-table th {
  background: var(--surface2);
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
}
.v15-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}
.v15-table tr:last-child td { border-bottom: none; }
.v15-table tr:hover td { background: rgba(255,255,255,.02); }

/* ── v15 badges (uitbreidingen) ─────────────────────────── */
.badge-purple {
  background: rgba(139,92,246,.15);
  color: #8b5cf6;
  border: 1px solid rgba(139,92,246,.3);
}
.badge-amber {
  background: rgba(245,158,11,.15);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,.3);
}

/* ── v15 mobile improvements ────────────────────────────── */
@media (max-width: 640px) {
  .reactie-btn { min-width: 100%; }
  .v15-form-row { gap: 8px; }
  .v15-form-field { min-width: 100%; }
  .reactie-row { gap: 6px; }
  .reactie-row .datum { min-width: auto; }
  .progress-card .value { font-size: 22px; }
}

/* ── v15 lege staten (empty state) ───────────────────────── */
.empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: .5; }
.empty-state .titel {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.empty-state .desc { font-size: 13px; max-width: 320px; margin: 0 auto; }

/* ── v15 utility classes (vervangt inline styles) ──────── */
.flex                { display: flex; }
.flex-col            { display: flex; flex-direction: column; }
.flex-wrap           { flex-wrap: wrap; }
.items-center        { align-items: center; }
.items-end           { align-items: flex-end; }
.justify-between     { justify-content: space-between; }
.gap-4               { gap: 4px; }  .gap-6  { gap: 6px; }
.gap-8               { gap: 8px; }  .gap-10 { gap: 10px; }
.gap-12              { gap: 12px; } .gap-14 { gap: 14px; }
.flex-1              { flex: 1; }
.min-w-130           { min-width: 130px; }
.min-w-140           { min-width: 140px; }
.text-xs             { font-size: 11px; }
.text-sm             { font-size: 12px; }
.text-md             { font-size: 13px; }
.text-muted          { color: var(--text-muted); }
.text-dim            { color: var(--text-dim); }
.font-semibold       { font-weight: 600; }
.font-bold           { font-weight: 700; }
.mb-6  { margin-bottom: 6px; }
.mb-8  { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-14 { margin-bottom: 14px; }
.mt-6  { margin-top: 6px; }
.mt-10 { margin-top: 10px; }


/* ── v15 mailto-primary knop in popup ──────────────────── */
.btn-mailto-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--lime);
  color: #0e0e0e;
  font-weight: 800;
  font-size: .9rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .15s, transform .15s;
  margin-bottom: 10px;
}
.btn-mailto-primary:hover {
  background: var(--lime-dim);
  transform: translateY(-1px);
}

/* Mail-popup secondary button */
.btn.btn-success-bg {
  background: #10b981;
  border-color: #10b981;
  color: white;
}
.btn.btn-success-bg:hover {
  background: #059669;
  border-color: #059669;
}

/* ═══════════════════════════════════════════════════════════
   v15 UI-HERBOUW — global polish (Fase A)
   ═══════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }

/* Staggered entry voor kaarten/rijen — geen statische mount */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stagger > * {
  animation: riseIn .5s var(--ease-out) both;
}
.stagger > *:nth-child(1) { animation-delay: .02s; }
.stagger > *:nth-child(2) { animation-delay: .06s; }
.stagger > *:nth-child(3) { animation-delay: .10s; }
.stagger > *:nth-child(4) { animation-delay: .14s; }
.stagger > *:nth-child(5) { animation-delay: .18s; }
.stagger > *:nth-child(6) { animation-delay: .22s; }
.stagger > *:nth-child(n+7) { animation-delay: .26s; }

/* Respecteer toegankelijkheidsvoorkeur */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Card hover-lift (alleen waar interactief) */
.card-hover {
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow), var(--edge-hi);
  border-color: var(--border2);
}

/* Premium empty-state (verfijnd) */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 44px;
  margin-bottom: 14px;
  opacity: .35;
  filter: grayscale(1);
}
.empty-state .titel {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 19px;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.empty-state .desc {
  font-size: 13px;
  max-width: 340px;
  margin: 0 auto 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Skeleton loader (vorm volgt content) */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s var(--ease) infinite;
  border-radius: var(--r-sm);
}
.skeleton-row { height: 44px; margin-bottom: 6px; }
.skeleton-text { height: 12px; margin-bottom: 8px; }
.skeleton-text.short { width: 40%; }

/* Eyebrow tag — microscopisch label boven titels */
.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--lime);
  background: var(--lime-glow);
  border: 1px solid rgba(200,212,0,.18);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Tekstbalans tegen orphans */
h1, h2, h3, .page-title, .card-title { text-wrap: balance; }
p, .desc, .page-subtitle { text-wrap: pretty; }

/* ═══════════════════════════════════════════════════════════
   v15 — base.html shell componenten (Fase B)
   ═══════════════════════════════════════════════════════════ */

/* Brand logo wrapper */
.brand-logo-full { max-height:44px; max-width:190px; object-fit:contain; display:block; margin-bottom:4px; }

/* Year-mismatch waarschuwingsbalk */
.year-warn {
  background: rgba(234,179,8,.10);
  border: 1px solid rgba(234,179,8,.28);
  border-radius: var(--r);
  padding: 11px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.year-warn .ico   { font-size: 1.05rem; }
.year-warn .txt   { font-size: 13px; color: #fbbf24; flex: 1; }
.year-warn button {
  background: #fbbf24; color: #0e0e0e; border: none;
  border-radius: var(--r-xs); padding: 5px 13px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: transform var(--t-fast);
}
.year-warn button:active { transform: scale(.96); }

/* Theme toggle button in sidebar */
.theme-toggle {
  width: 100%; padding: 7px 10px;
  background: var(--surface3); border: 1px solid var(--border);
  color: var(--text-dim); border-radius: var(--r-sm);
  font-size: 11px; font-weight: 700; cursor: pointer;
  font-family: inherit; text-align: left;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.theme-toggle:hover { border-color: var(--lime); color: var(--text); }

/* Sidebar user blok */
.sidebar-user {
  padding: 10px 12px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-user-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sidebar-avatar {
  width: 32px; height: 32px;
  border-radius: 10px;        /* squircle i.p.v. cirkel */
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .88rem; color: #0e0e0e; flex-shrink: 0;
  box-shadow: var(--edge-hi);
}
.sidebar-user-info { min-width: 0; flex: 1; }
.sidebar-user-name {
  font-size: .82rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role { font-size: .68rem; color: var(--text-muted); }
.sidebar-user-role .admin-tag { color: var(--lime); font-weight: 800; }
.logout-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px; background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.18);
  color: #fca5a5; border-radius: var(--r-sm);
  text-decoration: none; font-size: .75rem; font-weight: 700;
  transition: background var(--t-fast), transform var(--t-fast);
}
.logout-btn:hover { background: rgba(248,113,113,.18); }
.logout-btn:active { transform: scale(.97); }

/* Sessie-waarschuwing */
.session-warn {
  display: none; position: fixed; bottom: 20px; right: 20px; z-index: 9000;
  background: var(--surface2); border: 1px solid rgba(200,212,0,.4);
  border-radius: var(--r-lg); padding: 14px 18px;
  box-shadow: var(--shadow-lg); max-width: 300px;
}
.session-warn-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.session-warn-row .ico { font-size: 1.3rem; }
.session-warn-title { font-weight: 800; font-size: .88rem; }
.session-warn-sub { font-size: .78rem; color: var(--text-muted); margin-top: 1px; }
.session-warn-actions { display: flex; gap: 8px; }
.session-warn-actions button,
.session-warn-actions a {
  flex: 1; padding: 7px; border-radius: var(--r-sm);
  font-weight: 700; font-size: .82rem; cursor: pointer;
  text-align: center; text-decoration: none;
  transition: transform var(--t-fast);
}
.session-warn-actions button:active { transform: scale(.96); }
.sw-stay   { background: var(--lime); color: #0e0e0e; border: none; font-weight: 900; text-transform: uppercase; }
.sw-logout { background: rgba(248,113,113,.12); color: #fca5a5; border: 1px solid rgba(248,113,113,.25); }

/* Onboarding modal */
.ob-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(6,6,4,.85); z-index: 10000;
  align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(8px);
}
.ob-card {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--lime); border-radius: var(--r-xl);
  padding: 32px; max-width: 520px; width: 100%; position: relative;
  box-shadow: var(--shadow-lg), var(--edge-hi);
}
.ob-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-style: italic; font-size: 28px;
  text-transform: uppercase; margin-bottom: 6px; line-height: 1.05;
}
.ob-title .accent { color: var(--lime); }
.ob-intro { color: var(--text-dim); font-size: 13px; margin-bottom: 24px; }
.ob-step .ico  { font-size: 2rem; margin-bottom: 10px; }
.ob-step .kop  { font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.ob-step p     { color: var(--text-dim); font-size: 13px; line-height: 1.6; }
.ob-dots { display: flex; gap: 6px; justify-content: center; margin: 20px 0; }
.ob-dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background var(--t); }
.ob-dot.active { background: var(--lime); }
.ob-actions { display: flex; gap: 10px; }
.ob-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 20px; cursor: pointer; transition: color var(--t-fast);
}
.ob-close:hover { color: var(--text); }
kbd.inline-key { background: var(--surface2); padding: 1px 5px; border-radius: 3px; font-size: .85em; }

/* Settings/export rijen (waren inline in base.html) */
.nav-badge-red { background: #f87171 !important; }
.settings-sectie-header {
  font-size: .7rem; font-weight: 800; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .12em;
  padding: 6px 2px; border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.export-rij {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 14px;
  background: var(--surface3); border-radius: var(--r);
  border: 1px solid var(--border);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.export-rij:hover { border-color: var(--border2); }
.export-titel  { font-weight: 700; font-size: .88rem; margin-bottom: 2px; }
.export-omschr { font-size: .76rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   v15 — dashboard componenten (Fase C)
   ═══════════════════════════════════════════════════════════ */

/* KPI-strook */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.kpi-card .kpi-ico   { font-size: 1.35rem; margin-bottom: 8px; opacity: .9; }
.kpi-card .kpi-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1.7rem; line-height: 1;
  letter-spacing: -.01em; margin-bottom: 3px;
}
.kpi-card .kpi-label {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
.kpi-card .kpi-sub   { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
.kpi-card .kpi-sub.accent { color: var(--lime); }

/* Dashboard 3-koloms blokken */
.dash-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
  align-items: start;
}

/* Card-titel met "alle →" link */
.card-title .title-link {
  margin-left: auto; font-size: 11px; font-weight: 500;
  color: var(--lime); text-decoration: none;
}
.card-title .title-link:hover { text-decoration: underline; }
.card-compact { padding: 16px; }
.card-compact .card-title { font-size: 12px; margin-bottom: 12px; }

/* Omzet-per-pakket balken */
.pkg-bar-row { display: flex; align-items: center; gap: 12px; }
.pkg-bar-row + .pkg-bar-row { margin-top: 8px; }
.pkg-bar-name {
  min-width: 142px; font-size: 12px; font-weight: 600;
  color: var(--text-dim); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.pkg-bar-track {
  flex: 1; height: 7px; background: var(--surface3);
  border-radius: 999px; overflow: hidden;
}
.pkg-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--lime-dim), var(--lime));
  transition: width var(--t-slow);
}
.pkg-bar-amount {
  min-width: 78px; text-align: right;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 800; color: var(--lime);
}

/* Actie-items lijst */
.action-list { display: flex; flex-direction: column; gap: 8px; }
.action-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--r);
  background: var(--surface2); border: 1px solid var(--border);
  border-left: 3px solid var(--border2);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.action-item:hover { transform: translateX(2px); }
.action-item.red   { border-left-color: var(--red); }
.action-item.amber { border-left-color: var(--lime); }
.action-item.green { border-left-color: var(--green); }
.action-item.blue  { border-left-color: var(--blue); }
.action-item .action-icon { font-size: 1.1rem; flex-shrink: 0; }
.action-item .action-body { flex: 1; min-width: 0; }
.action-item .action-title { font-size: 13px; font-weight: 600; }

/* Wacht-op-reactie mini-lijst */
.wait-list { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.wait-list-label {
  font-size: 11px; color: var(--text-muted);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 6px;
}
.wait-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 12px;
}
.wait-row:last-child { border-bottom: none; }
.wait-row a {
  color: var(--text); text-decoration: none; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wait-row a:hover { color: var(--lime); }
.wait-more { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 6px; }

/* Penningmeester-widget */
.pm-box {
  padding: 14px; background: var(--surface2);
  border-radius: var(--r); border: 1px solid var(--border);
  margin-bottom: 10px;
}
.pm-box .pm-label { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.pm-box .pm-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem; font-weight: 800; color: var(--lime); line-height: 1;
}
.pm-box .pm-sub { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* To-do mini-rij op dashboard */
.todo-mini {
  display: flex; align-items: flex-start; gap: 9px; padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.todo-mini:last-of-type { border-bottom: none; }
.todo-mini .priority-dot {
  width: 7px; height: 7px; border-radius: 50%;
  margin-top: 5px; flex-shrink: 0;
}
.todo-mini-body { flex: 1; min-width: 0; }
.todo-mini-title {
  font-size: 12px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.todo-mini-meta { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* Top-sponsor ranglijst */
.rank-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.rank-row:last-child { border-bottom: none; }
.rank-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rank-num {
  width: 20px; height: 20px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; flex-shrink: 0;
  background: var(--surface3); color: var(--text-muted);
}
.rank-num.gold   { background: var(--lime); color: #000; }
.rank-num.silver { background: #9ca3af; color: #000; }
.rank-num.bronze { background: #cd7f32; color: #000; }
.rank-name {
  font-size: 12px; font-weight: 600; max-width: 130px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-pkg { font-size: 10px; color: var(--text-muted); }
.rank-amount {
  color: var(--lime); font-weight: 700; font-size: 13px; flex-shrink: 0;
  font-family: 'Barlow Condensed', sans-serif;
}

/* Pakketverdeling mini-balk */
.pkgdist-row { margin-bottom: 11px; }
.pkgdist-row:last-of-type { margin-bottom: 0; }
.pkgdist-head {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 4px;
}
.pkgdist-name {
  font-size: 12px; font-weight: 600; max-width: 130px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pkgdist-amount { font-size: 11px; color: var(--lime); font-weight: 600; flex-shrink: 0; }
.pkgdist-amount .cnt { color: var(--text-muted); font-weight: 400; }
.pkgdist-track { background: var(--surface3); border-radius: 999px; height: 5px; }
.pkgdist-fill  { background: var(--lime); height: 100%; border-radius: 999px; transition: width var(--t-slow); }
.pkgdist-total {
  padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; font-size: 12px;
}
.pkgdist-total strong { color: var(--lime); }

/* Chart-wrap */
.chart-empty { text-align: center; padding: 28px 0; font-size: 13px; color: var(--text-dim); }

/* Section-titel met emoji */
.dashboard-section-title { display: flex; align-items: center; gap: 6px; }

/* ═══════════════════════════════════════════════════════════
   v15 — sponsoroverzicht polish (Fase D)
   ═══════════════════════════════════════════════════════════ */

/* Kleine badge-variant — vervangt inline font-size:.68rem */
.badge-xs { font-size: .66rem; padding: 2px 7px; }

/* Materiaal-badge */
.badge-material { background: rgba(99,102,241,.15); color: #818cf8; border: 1px solid rgba(99,102,241,.25); }

/* Sponsor-card hover met cubic-bezier (vervangt harde shadow) */
.sponsor-card {
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.sponsor-card:hover {
  border-color: var(--lime);
  transform: translateY(-3px);
  box-shadow: var(--shadow), var(--edge-hi);
}

/* Looptijd-tekst in card-footer */
.sc-period { font-size: .75rem; color: var(--text-muted); }
.sc-flag   { font-size: .8rem; }

/* Filter-toolbar — strakker */
.toolbar { gap: 8px; }
.toolbar .filter-select,
.toolbar .search-input,
.toolbar input[type="text"] {
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

/* Intern-contact filterveld */
.filter-contact { width: 130px; }
.sc-yp-mark { font-size: 9px; opacity: .5; margin-left: 1px; }

/* ═══════════════════════════════════════════════════════════
   v15 — sponsor-detail polish (Fase D)
   ═══════════════════════════════════════════════════════════ */

/* Page-header met avatar */
.detail-head { display: flex; align-items: center; gap: 16px; }
.detail-avatar-lg {
  width: 52px; height: 52px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 18px; color: #0e0e0e;
  flex-shrink: 0; box-shadow: var(--edge-hi);
  background: var(--lime);
}

/* Card-title met actie rechts */
.card-title-flex { display: flex; justify-content: space-between; align-items: center; }

/* Kleine inline-acties (WhatsApp, maps, etc.) */
.link-wa     { font-size: .75rem; color: #25d366; margin-left: 8px; text-decoration: none; }
.link-maps   { font-size: .75rem; color: var(--lime); margin-left: 6px; text-decoration: none; }
.link-subtle { font-size: .75rem; margin-left: 6px; text-decoration: none; }

/* Contractrij-acties cluster */
.contract-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* v15 — kleine utilities (sponsor_detail e.a.) */
.hidden        { display: none; }
.no-underline  { text-decoration: none; }
.m-0           { margin: 0; }
.col-span-full { grid-column: 1 / -1; }
.center-pad    { text-align: center; padding: 40px; color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.badge-gray { background: rgba(107,114,128,.15); color: #9ca3af; border: 1px solid rgba(107,114,128,.25); }

/* ═══════════════════════════════════════════════════════════
   v16 — AI-assistent
   ═══════════════════════════════════════════════════════════ */

.ai-knop {
  position: fixed; right: 22px; bottom: 22px; z-index: 8000;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--lime); color: #0e0e0e;
  border: none; cursor: pointer; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg), var(--edge-hi);
  transition: transform var(--t), box-shadow var(--t);
}
.ai-knop:hover  { transform: translateY(-2px) scale(1.04); }
.ai-knop:active { transform: scale(.94); }

.ai-paneel {
  position: fixed; right: 22px; bottom: 86px; z-index: 8001;
  width: min(420px, calc(100vw - 44px));
  height: min(620px, calc(100dvh - 130px));
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg), var(--edge-hi);
  display: none; flex-direction: column; overflow: hidden;
}
.ai-paneel.open { display: flex; }

.ai-kop {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  background: var(--surface2);
}
.ai-kop .titel {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-style: italic; text-transform: uppercase; font-size: 15px;
  letter-spacing: .02em; flex: 1;
}
.ai-kop .meter { font-size: 10px; color: var(--text-muted); }
.ai-kop button {
  background: none; border: none; color: var(--text-muted);
  font-size: 18px; cursor: pointer; padding: 2px 6px; border-radius: var(--r-xs);
}
.ai-kop button:hover { color: var(--text); background: var(--surface3); }

.ai-verloop { flex: 1; overflow-y: auto; padding: 14px; }

.ai-bericht { margin-bottom: 12px; display: flex; }
.ai-bericht.van-mij { justify-content: flex-end; }
.ai-bubbel {
  max-width: 86%; padding: 10px 13px; border-radius: var(--r-lg);
  font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word;
}
.van-mij  .ai-bubbel { background: var(--lime); color: #0e0e0e; font-weight: 500; }
.van-ai   .ai-bubbel { background: var(--surface2); border: 1px solid var(--border); }
.ai-bubbel.fout { background: var(--red-dim); border-color: rgba(248,113,113,.3); color: #fca5a5; }
.ai-bubbel a { color: var(--lime); }
.van-mij .ai-bubbel a { color: #0e0e0e; text-decoration: underline; }

.ai-bronnen {
  font-size: 10px; color: var(--text-muted); margin-top: 5px;
  display: flex; gap: 5px; flex-wrap: wrap;
}
.ai-bron-tag {
  background: var(--surface3); padding: 1px 7px; border-radius: 999px;
  border: 1px solid var(--border);
}

.ai-denkt { display: flex; gap: 4px; padding: 10px 13px; }
.ai-denkt span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted);
  animation: aiPuls 1.3s var(--ease) infinite;
}
.ai-denkt span:nth-child(2) { animation-delay: .18s; }
.ai-denkt span:nth-child(3) { animation-delay: .36s; }
@keyframes aiPuls { 0%,60%,100% { opacity:.25; transform:translateY(0); }
                    30% { opacity:1; transform:translateY(-3px); } }

.ai-invoer {
  padding: 12px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; flex-shrink: 0; background: var(--surface2);
}
.ai-invoer textarea {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text); padding: 9px 12px;
  font-size: 13px; font-family: inherit; resize: none; max-height: 110px;
  line-height: 1.45;
}
.ai-invoer textarea:focus { outline: none; border-color: var(--lime); }
.ai-invoer button {
  background: var(--lime); color: #0e0e0e; border: none;
  border-radius: var(--r-sm); padding: 0 15px; font-weight: 800;
  cursor: pointer; font-size: 15px; transition: transform var(--t-fast);
}
.ai-invoer button:active { transform: scale(.94); }
.ai-invoer button:disabled { opacity: .4; cursor: not-allowed; }

.ai-tips { padding: 0 14px 12px; }
.ai-tip {
  display: block; width: 100%; text-align: left; margin-bottom: 6px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 8px 11px; font-size: 12px;
  color: var(--text-dim); cursor: pointer; font-family: inherit;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.ai-tip:hover { border-color: var(--lime); color: var(--text); }

.ai-leeg { text-align: center; padding: 26px 16px; color: var(--text-muted); }
.ai-leeg .ico { font-size: 30px; margin-bottom: 8px; opacity: .4; }
.ai-leeg .kop { font-weight: 700; color: var(--text-dim); margin-bottom: 4px; font-size: 14px; }
.ai-leeg .sub { font-size: 12px; line-height: 1.5; }

@media (max-width: 640px) {
  .ai-paneel { right: 10px; left: 10px; width: auto; bottom: 78px;
               height: min(70dvh, calc(100dvh - 120px)); }
  .ai-knop   { right: 16px; bottom: 16px; }
}

/* ═══ v18 — bevestigingskaart in de chat ═══ */
.ai-actie {
  background: var(--surface3);
  border: 1px solid var(--lime);
  border-radius: var(--r-lg);
  padding: 13px 15px;
  margin: 10px 0;
  box-shadow: var(--edge-hi);
}
.ai-actie .kop {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 8px;
}
.ai-actie .wat { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.ai-actie .diff {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 9px 11px; margin-bottom: 10px;
  font-size: 12px;
}
.ai-actie .diff-rij {
  display: flex; justify-content: space-between; gap: 10px; padding: 2px 0;
}
.ai-actie .diff-rij .veld { color: var(--text-muted); }
.ai-actie .diff-rij .oud  { color: var(--text-muted); text-decoration: line-through; }
.ai-actie .diff-rij .pijl { color: var(--text-muted); }
.ai-actie .diff-rij .nieuw{ color: var(--lime); font-weight: 700; }
.ai-actie .lijst {
  max-height: 130px; overflow-y: auto; font-size: 11.5px;
  border-top: 1px solid var(--border); margin-top: 7px; padding-top: 7px;
}
.ai-actie .lijst div { padding: 1px 0; color: var(--text-dim); }
.ai-actie .knoppen { display: flex; gap: 8px; }
.ai-actie .knoppen button {
  flex: 1; padding: 8px; border-radius: var(--r-sm); font-weight: 700;
  font-size: 12.5px; cursor: pointer; font-family: inherit; border: 1px solid;
  transition: transform var(--t-fast);
}
.ai-actie .knoppen button:active { transform: scale(.96); }
.ai-actie .ja  { background: var(--lime); color: #0e0e0e; border-color: var(--lime); }
.ai-actie .nee { background: transparent; color: var(--text-dim); border-color: var(--border); }
.ai-actie.klaar  { border-color: var(--green); opacity: .75; }
.ai-actie.weg    { border-color: var(--border); opacity: .5; }
.ai-actie .uitkomst { font-size: 12px; font-weight: 600; }
.ai-actie .uitkomst.ok   { color: var(--green); }
.ai-actie .uitkomst.fout { color: var(--red); }

/* ═══ v19 — "Vandaag" blok bovenaan het dashboard ═══ */
.vandaag {
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  padding: 20px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow), var(--edge-hi);
}
.vandaag-kop {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.vandaag-kop .titel {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-style: italic; font-size: 22px;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1;
}
.vandaag-kop .sub { font-size: 12px; color: var(--text-muted); }

.aandacht-rij {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px; margin-bottom: 7px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--border2);
  border-radius: var(--r);
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.aandacht-rij:last-of-type { margin-bottom: 0; }
.aandacht-rij:hover { transform: translateX(2px); border-color: var(--border2); }
.aandacht-rij.urgent { border-left-color: var(--red); }
.aandacht-rij.normaal { border-left-color: var(--lime); }
.aandacht-rij .ico { font-size: 16px; flex-shrink: 0; opacity: .85; }
.aandacht-rij .body { flex: 1; min-width: 0; }
.aandacht-rij .tekst { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.aandacht-rij .sub {
  font-size: 12px; color: var(--text-muted); line-height: 1.45;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.aandacht-rij .btn { flex-shrink: 0; }

.vandaag-rustig {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 2px;
}
.vandaag-rustig .ico { font-size: 26px; opacity: .5; }
.vandaag-rustig .tekst { font-size: 13.5px; color: var(--text-dim); }

.zorg-balk {
  margin-top: 12px; padding: 10px 14px;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--r);
  font-size: 12.5px; color: #f59e0b;
  display: flex; align-items: flex-start; gap: 9px;
}
.zorg-balk a { color: #f59e0b; }

@media (max-width: 640px) {
  .aandacht-rij { flex-wrap: wrap; }
  .aandacht-rij .btn { width: 100%; justify-content: center; margin-top: 6px; }
  .vandaag { padding: 16px; }
}

/* ═══ v19 — concept schrijven in het mailvenster ═══ */
.concept-balk {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 10px;
  background: rgba(200,212,0,.07);
  border: 1px solid rgba(200,212,0,.22);
  border-radius: var(--r);
}
.concept-balk .uitleg { font-size: 12px; color: var(--text-dim); flex: 1; min-width: 170px; }
.concept-balk button {
  background: var(--lime); color: #0e0e0e; border: none;
  border-radius: var(--r-sm); padding: 7px 14px; font-weight: 700;
  font-size: 12.5px; cursor: pointer; font-family: inherit;
  transition: transform var(--t-fast), background var(--t-fast);
}
.concept-balk button:hover  { background: var(--lime-dim); }
.concept-balk button:active { transform: scale(.96); }
.concept-balk button:disabled { opacity: .45; cursor: not-allowed; }
.concept-status { font-size: 11.5px; color: var(--text-muted); }
.concept-status.fout { color: var(--red); }
.ai-context-hint {
  padding: 7px 14px; font-size: 11px; color: var(--lime);
  background: var(--lime-glow); border-bottom: 1px solid var(--border);
  font-weight: 600;
}

/* ═══ v19 — tabbladen tussen de assistent-pagina's ═══ */
.assistent-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px; padding-bottom: 0;
}
.assistent-tabs a {
  padding: 9px 16px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.assistent-tabs a:hover  { color: var(--text); }
.assistent-tabs a.actief { color: var(--lime); border-bottom-color: var(--lime); }

/* ═══ v29 — wizard in fasen ═══ */
.fase {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--r-xl); margin-bottom: 16px; overflow: hidden;
  box-shadow: var(--shadow), var(--edge-hi);
}
.fase-kop {
  padding: 15px 18px; background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 13px; flex-wrap: wrap;
}
.fase-kop .nr {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 15px;
  background: var(--surface3); color: var(--text-muted);
  border: 1px solid var(--border2);
}
.fase.klaar .fase-kop .nr {
  background: var(--green); color: #0e0e0e; border-color: var(--green);
}
.fase-kop .naam {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-style: italic; font-size: 18px; text-transform: uppercase;
  letter-spacing: .02em; line-height: 1;
}
.fase-kop .waarom { font-size: 12px; color: var(--text-muted); }
.fase-kop .telling {
  margin-left: auto; font-size: 12px; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.fase-inhoud { padding: 6px 18px 16px; }

.wstap {
  padding: 13px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 13px; align-items: flex-start;
}
.wstap:last-child { border-bottom: none; }
.wstap .vink {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  border: 1.5px solid var(--border2); color: var(--text-muted);
}
.wstap.af .vink { background: var(--green); border-color: var(--green); color: #0e0e0e; }
.wstap .body { flex: 1; min-width: 0; }
.wstap .titel { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.wstap.af .titel { color: var(--text-dim); }
.wstap .waarom { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.wstap .uitleg {
  margin-top: 9px; padding: 10px 12px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 12.5px; line-height: 1.6; white-space: pre-wrap;
  color: var(--text-dim);
}
.wstap.af .uitleg { color: var(--text-muted); }
.wstap pre.term {
  margin-top: 9px; background: #0a0a0a; border: 1px solid var(--border2);
  border-radius: var(--r-sm); padding: 11px 13px; font-size: 12px;
  overflow-x: auto; line-height: 1.6; color: var(--lime);
}
.wstap .knop { margin-top: 10px; }
.fase.optioneel { opacity: .82; }
.fase.optioneel:hover { opacity: 1; }

/* ═══ v30 — statuspagina ═══ */
.st-rij {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 13px 15px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--border2); border-radius: var(--r);
  transition: border-color var(--t-fast);
}
.st-rij.goed     { border-left-color: var(--green); }
.st-rij.aandacht { border-left-color: #f59e0b; }
.st-rij.stuk     { border-left-color: var(--red); }
.st-rij.uit      { border-left-color: var(--border2); opacity: .72; }
.st-rij .bol {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  font-weight: 700;
}
.st-rij.goed     .bol { background: var(--green); color: #0e0e0e; }
.st-rij.aandacht .bol { background: #f59e0b; color: #0e0e0e; }
.st-rij.stuk     .bol { background: var(--red); color: #fff; }
.st-rij.uit      .bol { background: var(--surface3); color: var(--text-muted); }
.st-rij .body { flex: 1; min-width: 0; }
.st-rij .naam { font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.st-rij .melding { font-size: 13px; color: var(--text-dim); }
.st-rij .detail {
  font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-top: 3px;
}
.st-rij .knop { flex-shrink: 0; }

.st-tellers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 9px; margin-bottom: 16px;
}
.st-teller {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 11px 13px; text-align: center;
}
.st-teller .n {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 24px; line-height: 1; margin-bottom: 2px;
}
.st-teller .l {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-muted);
}
.st-teller.goed .n     { color: var(--green); }
.st-teller.aandacht .n { color: #f59e0b; }
.st-teller.stuk .n     { color: var(--red); }
.st-teller.uit .n      { color: var(--text-muted); }

/* Instellingen-hub */
.hub {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 11px;
}
.hub a {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 15px 17px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.hub a:hover { border-color: var(--lime); transform: translateY(-1px); }
.hub .ico { font-size: 19px; margin-bottom: 7px; display: block; }
.hub .titel { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.hub .uitleg { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.hub .staat {
  font-size: 11px; margin-top: 8px; display: inline-block;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border2);
  color: var(--text-muted);
}
.hub .staat.goed { color: var(--green); border-color: rgba(34,197,94,.3); }
.hub .staat.aandacht { color: #f59e0b; border-color: rgba(245,158,11,.3); }
.hub .staat.stuk { color: var(--red); border-color: rgba(248,113,113,.3); }

/* ═══ v31 — brede tabellen op een telefoon ═══
   Kolommen met de klasse hide-sm verdwijnen onder 700px. De belangrijkste
   informatie blijft staan, de rest zie je op een groter scherm. */
@media (max-width: 700px) {
  .v15-table th.hide-sm,
  .v15-table td.hide-sm { display: none; }

  .v15-table { font-size: 12px; }
  .v15-table th, .v15-table td { padding: 7px 8px; }

  /* Kan niet alles weg? Dan horizontaal schuiven, met een zichtbare rand */
  .tabel-schuif {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px;
  }
  .tabel-schuif table { min-width: 520px; }
}

/* ═══ v31 — hint dat de assistent kan helpen ═══ */
.ai-hint {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 16px;
  background: var(--lime-glow); border: 1px solid rgba(200,212,0,.2);
  border-radius: var(--r); font-size: 12.5px; color: var(--text-dim);
  line-height: 1.5;
}
.ai-hint .ico { color: var(--lime); font-size: 14px; flex-shrink: 0; }
.ai-hint em { color: var(--text); font-style: normal; font-weight: 600; }
.ai-hint button {
  background: none; border: none; color: var(--lime); cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  text-decoration: underline; padding: 0; margin-left: auto;
}
@media (max-width: 640px) { .ai-hint button { margin-left: 0; } }

/* ═══ v31 — aanraakvlakken op een telefoon ═══
   Een knop van 28 pixels is met een vinger nauwelijks te raken. Op kleine
   schermen worden alle knoppen minstens 40px hoog. Op een muis blijven ze
   compact, want daar is precisie geen probleem. */
@media (max-width: 700px) {
  .btn-sm {
    min-height: 40px;
    padding-top: 9px;
    padding-bottom: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Knoppen naast elkaar worden op een telefoon onder elkaar en vol breed */
  .st-rij .knop,
  .st-rij .knop .btn { width: 100%; }
  .st-rij { flex-wrap: wrap; }

  .ai-hint { flex-direction: column; align-items: flex-start; gap: 7px; }
  .ai-hint button { margin-left: 0; min-height: 36px; }

  /* Formulieren met een knop ernaast: knop eronder, volledige breedte */
  .v15-form-row > .btn { width: 100%; margin-top: 4px; }

  /* Tabbladen schuifbaar in plaats van afgekapt */
  .assistent-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .assistent-tabs::-webkit-scrollbar { display: none; }
  .assistent-tabs a { min-height: 42px; display: flex; align-items: center; }

  /* De bevestigingskaart: knoppen onder elkaar, goed raakbaar */
  .ai-actie .knoppen { flex-direction: column; }
  .ai-actie .knoppen button { min-height: 42px; }

  /* Wizard: het nummer en de tekst mogen niet gaan wringen */
  .fase-kop { gap: 10px; }
  .fase-kop .telling { margin-left: 0; width: 100%; }
  .fase-inhoud { padding: 4px 14px 14px; }
  .wstap pre.term { font-size: 11px; }
}


/* ═══════════════════════════════════════════════════════════════
   v40 — hulpklassen die ontbraken

   Gemeten in de templates: 267 losse kleuren, 252 losse tekstgroottes,
   en zes stijlen die tientallen keren letterlijk herhaald werden. Dat zijn
   klassen die er hadden moeten zijn. Deze zijn geen opsmuk maar precies de
   patronen die al in gebruik waren.
   ═══════════════════════════════════════════════════════════════ */

/* Kleuren — waren 13x color:var(--red), 10x --amber, 8x --green inline */
.op-rood   { color: var(--red); }
.op-groen  { color: var(--green); }
.op-oranje { color: var(--amber); }
.op-lime   { color: var(--lime); }
.op-tekst  { color: var(--text); }

/* Formulieren in een rij — stond 8x letterlijk als inline stijl */
.veld-rij {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.veld-rij > * { margin-bottom: 0; }

/* Leesbare tekstbreedte — stond 9x als line-height + max-width */
.lees {
  line-height: 1.65;
  max-width: 64ch;
}

/* Formulier zonder eigen ruimte eromheen — 31x margin:0 */
.strak { margin: 0; }

/* Label met vaste breedte in een reactie-rij — 9x min-width:150px */
.reactie-row .label.breed { min-width: 150px; }

/* Aanklikbaar blok */
.tikbaar { cursor: pointer; }

/* Waarschuwingsblok — kwam in drie varianten voor */
.let-op {
  background: var(--amber-dim);
  border: 1px solid var(--amber-lijn);
  border-radius: var(--r);
  padding: 13px 16px;
  font-size: 13px;
  color: var(--amber);
  line-height: 1.6;
  margin-bottom: 14px;
}
.let-op strong { color: var(--amber); }

.gevaar {
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.3);
  border-radius: var(--r);
  padding: 13px 16px;
  font-size: 13px;
  color: #fca5a5;
  line-height: 1.6;
  margin-bottom: 14px;
}

.gerust {
  background: rgba(34,197,94,.07);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: var(--r);
  padding: 13px 16px;
  font-size: 13px;
  color: var(--green);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Zichtbaar waar je bent met het toetsenbord. Zonder dit is de app niet
   te bedienen zonder muis. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Alleen voor schermlezers */
.enkel-voorlezen {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Wie liever geen beweging ziet */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══ v42 — inlogscherm, opnieuw ═══
   Het logo is het merk, niet de titel eronder. Kaart strakker, minder
   dode ruimte, en labels die je kunt lezen. */
.login-scherm {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background:
    radial-gradient(760px 420px at 50% -8%, rgba(200,212,0,.06), transparent 62%),
    var(--bg);
}
.login-kaart {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 30px 26px 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
}

/* Het logo mag groot — dat is waar mensen op afgaan */
.login-kaart .merk { text-align: center; margin-bottom: 28px; }
.login-kaart .merk img {
  width: 100%;
  max-width: 190px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}
.login-kaart .merk .onder {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--text-muted);
  font-weight: 600;
}
/* Alleen tonen als er geen logo is */
.login-kaart .merk .naam {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-style: italic;
  font-size: 21px; text-transform: uppercase;
  line-height: 1.1; margin-bottom: 6px;
}

.login-veld { margin-bottom: 15px; }
.login-veld label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);          /* was text-muted — te licht om te lezen */
  margin-bottom: 6px;
  letter-spacing: .01em;
  text-transform: none;            /* hoofdletters maakten het schreeuwerig */
}
.login-veld input {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 11px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.login-veld input::placeholder { color: var(--text-muted); }
.login-veld input:focus {
  outline: none;
  border-color: var(--lime);
  background: var(--surface3);
  box-shadow: 0 0 0 3px rgba(200,212,0,.1);
}

.login-veld .met-knop { position: relative; }
.login-veld .met-knop input { padding-right: 44px; }
.login-veld .toon {
  position: absolute; right: 5px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}
.login-veld .toon:hover { color: var(--text-dim); background: var(--surface3); }
.login-veld .toon svg { width: 18px; height: 18px; }

.login-knop {
  width: 100%;
  min-height: 46px;
  margin-top: 20px;
  background: var(--lime);
  color: #0e0e0e;
  border: none;
  border-radius: 11px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  transition: filter var(--t-fast), transform var(--t-fast);
}
.login-knop:hover { filter: brightness(1.06); }
.login-knop:active { transform: translateY(1px); }

.login-fout {
  background: rgba(248,113,113,.1);
  border: 1px solid rgba(248,113,113,.28);
  border-radius: 11px;
  padding: 10px 13px;
  font-size: 12.5px;
  color: #fca5a5;
  line-height: 1.5;
  margin-bottom: 16px;
}

.login-voet {
  text-align: center;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}
.login-voet a {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.login-voet a:hover { color: var(--text-dim); }

@media (max-width: 400px) {
  .login-kaart { padding: 26px 20px 20px; }
  .login-kaart .merk { margin-bottom: 22px; }
  .login-kaart .merk img { max-width: 165px; }
}

/* ═══ v44 — logo aanleveren ═══
   Deze pagina zien sponsoren, niet de commissie. Dus: geen uitleg nodig,
   één ding te doen, en groot genoeg om met een duim te raken. */
.sleepvak {
  position: relative;
  border: 2px dashed var(--border2);
  border-radius: 14px;
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--surface2);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.sleepvak:hover,
.sleepvak.sleep-erover {
  border-color: var(--lime);
  background: var(--surface3);
}
.sleepvak.heeft-bestand {
  border-style: solid;
  border-color: var(--green);
}
.sleepvak svg {
  width: 34px; height: 34px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.sleepvak.heeft-bestand svg { color: var(--green); }
.sleepvak .hoofd {
  font-weight: 600; font-size: 15px; color: var(--text-dim);
}
.sleepvak .sub {
  font-size: 13px; color: var(--text-muted); margin-top: 3px;
}
.sleepvak input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.gekozen {
  margin-top: 12px; padding: 11px 14px;
  background: var(--surface3);
  border-radius: 10px;
  font-size: 13px; color: var(--text-dim);
  word-break: break-all;
}

/* ═══ v55 — kopjes op de instellingenpagina ═══
   Twaalf kaarten onder elkaar zonder structuur; nu vijf groepen. Zelfde
   stijl als de kopjes in de zijbalk, zodat het één geheel blijft. */
.instellingen-kop {
  font-family: var(--font-kop, inherit);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.instellingen-kop:first-of-type { margin-top: 4px; }

/* ── v71: de goedkeurplek ──
   (eerst in v6_additions.css gezet — maar dat bestand laadt geen enkele pagina) */
.kl-rood   { color: var(--danger, #c0392b); }
.kl-mail   { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.kl-kop    { cursor: pointer; }
.kl-tekst  { white-space: pre-wrap; line-height: 1.55; }
.kl-teken  { width: 1.4em; }
.kl-wat    { width: 10em; }
.kl-balk   { justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kl-lijst  { line-height: 1.9; }
.kl-vink   { width: 2em; }
.kl-datum  { max-width: 12em; }
.kl-regels { line-height: 1.6; }
