/* ═══════════════════════════════════════════════════
   Consulere Design System — consulere.css
   Gebruik: <link rel="stylesheet" href="/static/consulere.css">
   Stack:   Bootstrap 5.3.3 + Inter font
   ═══════════════════════════════════════════════════ */

/* ── 1. Tokens ────────────────────────────────────── */
:root {
  --app-header-offset: 120px;
  --bg:            #f7f8fa;
  --surface:       #ffffff;
  --surface2:      #f3f4f6;
  --border:        #e5e7eb;
  --border-hover:  #d1d5db;
  --text:          #111827;
  --muted:         #6b7280;
  --dim:           #9ca3af;
  --accent:        #374151;
  --accent-hover:  #1f2937;
  --accent-light:  rgba(55, 65, 81, .08);
  --accent-line:   rgba(55, 65, 81, .18);
  --green:         #16a34a;
  --green-light:   #f0fdf4;
  --green-line:    #bbf7d0;
  --amber:         #d97706;
  --amber-light:   #fffbeb;
  --amber-line:    #fde68a;
  --red:           #dc2626;
  --red-light:     #fef2f2;
  --red-line:      #fecaca;
  --gold:          #c9921a;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     20px;
  --radius-2xl:    24px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md:     0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
}

/* ── 2. Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.c-app-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── 3. Navbar ────────────────────────────────────── */
.c-navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.c-navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.c-navbar-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}
.c-navbar-title {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
.c-navbar-title strong { color: var(--text); font-weight: 600; }
.c-navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.c-navbar-clock {
  font-size: 12px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

/* ── 4. Layout ────────────────────────────────────── */
.c-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}
.c-sidebar {
  width: 236px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 10px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.c-sidebar-admin {
  padding: 10px 10px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.c-sidebar-admin-code {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  margin-bottom: 3px;
}
.c-sidebar-admin-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.c-sidebar-section {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--dim);
  padding: 12px 10px 5px;
}
.c-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: background .12s, color .12s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.c-sidebar-link i { font-size: 16px; flex-shrink: 0; }
.c-sidebar-link:hover { background: var(--surface2); color: var(--text); }
.c-sidebar-link.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}
.c-sidebar-link.active i { color: var(--accent); }
.c-sidebar-bottom {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.c-content {
  flex: 1;
  min-width: 0;
  padding: 24px;
}

/* ── 5. Cards ─────────────────────────────────────── */
.c-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ── 6. Stat tiles ────────────────────────────────── */
.c-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.c-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dim);
  margin-bottom: 8px;
}
.c-stat-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: -.03em;
}
.c-stat-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

/* ── 7. Buttons ───────────────────────────────────── */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}
.c-btn-sm  { padding: 5px 10px; font-size: 12.5px; }
.c-btn-lg  { padding: 11px 18px; font-size: 15px; }
.c-btn-full { width: 100%; justify-content: center; }

.c-btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.c-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.c-btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.c-btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--surface2);
}
.c-btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.c-btn-ghost:hover { background: var(--surface2); color: var(--text); }

.c-btn-success {
  background: var(--green-light);
  color: var(--green);
  border-color: var(--green-line);
}
.c-btn-success:hover { background: var(--green); color: #fff; border-color: var(--green); }

.c-btn-warn {
  background: var(--amber-light);
  color: var(--amber);
  border-color: var(--amber-line);
}
.c-btn-warn:hover { background: var(--amber); color: #fff; border-color: var(--amber); }

.c-btn-danger {
  background: var(--red-light);
  color: var(--red);
  border-color: var(--red-line);
}
.c-btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ── 8. Badges ────────────────────────────────────── */
.c-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.c-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.c-badge-geboekt   { background: var(--green-light); color: var(--green); }
.c-badge-geboekt::before { background: var(--green); }

.c-badge-ontvangen { background: var(--green-light); color: var(--green); }
.c-badge-ontvangen::before { background: var(--green); }

.c-badge-open      { background: var(--amber-light); color: var(--amber); }
.c-badge-open::before { background: var(--amber); }

.c-badge-fout      { background: var(--red-light); color: var(--red); }
.c-badge-fout::before { background: var(--red); }

.c-badge-nieuw {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px dashed var(--accent-line);
}
.c-badge-nieuw::before { background: var(--accent); }

.c-badge-baseline  { background: var(--surface2); color: var(--muted); }
.c-badge-baseline::before { background: var(--muted); }

.c-badge-pending   { background: var(--surface2); color: var(--muted); }
.c-badge-pending::before { background: var(--muted); }

.c-badge-brievenbus { background: var(--amber-light); color: var(--amber); }
.c-badge-brievenbus::before { background: var(--amber); }

/* ── 9. Forms ─────────────────────────────────────── */
.c-form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 6px;
}
.c-input {
  display: block;
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.c-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109, 94, 240, .14);
}
.c-input::placeholder { color: var(--dim); }
.c-input-wrap { position: relative; }
.c-input-wrap .c-input { padding-right: 40px; }
.c-input-wrap-icon .c-input { padding-left: 40px; padding-right: 13px; }
.c-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  font-size: 15px;
  pointer-events: none;
}
.c-input-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  line-height: 1;
}
.c-input-eye:hover { color: var(--text); }

/* ── 10. Table ────────────────────────────────────── */
.c-table-wrap { overflow-x: auto; }
.c-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.c-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--dim);
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.c-table thead th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.c-table thead th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }
.c-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.c-table tbody tr:last-child td { border-bottom: none; }
.c-table tbody tr:hover td { background: rgba(109, 94, 240, .04); }

/* ── App shell (dashboard + modules) ──────────────── */
.c-app-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.c-app-navbar {
  border-bottom: none;
  position: static;
  min-height: 58px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.c-navbar .c-navbar-brand-name { font-size: 1.05rem; }
.c-app-nav-sub {
  font-size: 14px;
  color: var(--muted);
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.c-app-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 12px;
}
.c-app-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-lg);
  text-decoration: none !important;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background .12s, color .12s;
}
.c-app-tab i { font-size: 17px; }
.c-app-tab:hover { background: var(--surface2); color: var(--text); }
.c-app-tab.active {
  background: var(--accent-light);
  color: var(--accent);
}
.c-app-tabs-mobile {
  display: flex;
  gap: 6px;
  padding: 10px 12px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-top: 1px solid var(--border-subtle, var(--border));
  background: var(--surface);
}
.c-app-tabs-mobile::-webkit-scrollbar { display: none; }
.c-app-tabs-mobile .c-app-tab { flex-shrink: 0; white-space: nowrap; }

.c-hub-page { max-width: 1120px; margin: 0 auto; padding: 28px 20px 48px; }
.c-hub-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.c-hub-page--wide {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 14px 28px 28px;
  flex: 1;
}
@media (min-width: 1200px) {
  .c-hub-page--wide { padding: 16px 40px 32px; }
}
.c-hub-hero {
  background: linear-gradient(135deg, #fff 0%, #f9fafb 55%, #f3f4f6 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.c-hub-hero-compact { padding: 18px 22px 16px; margin-bottom: 14px; margin-top: 0; }
.c-hub-admin-search-wrap {
  position: relative;
  margin-top: 12px;
  max-width: 420px;
}
.c-hub-admin-search-wrap > .bi-search {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  font-size: 15px;
  pointer-events: none;
}
.c-hub-admin-search {
  width: 100%;
  padding: 11px 14px 11px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.c-hub-admin-search::placeholder { color: var(--dim); }
.c-hub-admin-search:hover { border-color: var(--border-hover); }
.c-hub-admin-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.c-hub-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.c-hub-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -.03em;
}
.c-hub-hero p { margin: 0; color: var(--muted); font-size: 14px; max-width: 52ch; }
.c-hub-modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.c-hub-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  width: 100%;
}
.c-admin-card--hub {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.c-admin-card--hub .c-admin-card-actions {
  margin-top: auto;
  padding-top: 14px;
}
.c-btn-dark {
  background: var(--text);
  color: #fff;
  border: 1px solid var(--text);
}
.c-btn-dark:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
}
.c-hub-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.c-hub-stat-pill {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
}
.c-hub-stat-pill strong {
  display: block;
  font-size: 18px;
  color: var(--text);
  margin-top: 2px;
}

@media (max-width: 575px) {
  .c-hub-page { padding: 16px 12px 32px; }
  .c-hub-hero { padding: 20px 18px; }
  .c-admin-card-actions { flex-direction: column; width: 100%; }
  .c-admin-card-actions .c-btn { width: 100%; justify-content: center; }
}

/* ── 11. Progress bar ─────────────────────────────── */
.c-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--surface2);
  overflow: hidden;
  width: 72px;
  flex-shrink: 0;
}
.c-progress-bar    { height: 100%; border-radius: 999px; }
.c-progress-high   { background: var(--green); }
.c-progress-mid    { background: var(--amber); }
.c-progress-low    { background: var(--red); }

/* ── 12. Hub cards ────────────────────────────────── */
.c-hub-shortcut {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  box-shadow: var(--shadow-sm);
}
.c-hub-shortcut:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.c-hub-shortcut-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.c-hub-shortcut-title { font-size: 14px; font-weight: 700; }
.c-hub-shortcut-desc  { font-size: 12.5px; color: var(--muted); }

.c-admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.c-admin-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.c-admin-card-code {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 4px;
}
.c-admin-card-name  { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.c-admin-card-meta  { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.c-admin-card-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.c-admin-card-phone .bi-whatsapp { color: #25d366; }
.c-admin-card-phone:hover { text-decoration: underline; }
.c-admin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.c-admin-card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.c-admin-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}
.c-admin-card-link:hover { border-color: var(--accent); }

.c-settings-page { max-width: 1120px; }
.c-flash {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.c-flash-ok { background: var(--green-light); color: var(--green); border: 1px solid var(--green-line); }
.c-flash-warn { background: var(--amber-light); color: var(--amber); border: 1px solid var(--amber-line); }
.c-flash-err { background: var(--red-light); color: var(--red); border: 1px solid var(--red-line); }

.c-settings-section { margin-top: 36px; }
.c-settings-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.c-settings-section-title { margin: 0; font-size: 18px; font-weight: 700; }

.c-settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.c-settings-card-accent {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.c-settings-card-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.c-settings-card-desc { margin: 0 0 16px; font-size: 13px; color: var(--muted); }

.c-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.c-settings-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.c-settings-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.c-settings-advanced {
  margin: 8px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.c-settings-advanced > summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  list-style: none;
}
.c-settings-advanced > summary::-webkit-details-marker { display: none; }
.c-settings-advanced-body { padding: 0 18px 18px; }

.c-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 6px;
}
.c-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  margin-bottom: 12px;
}
.c-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.c-input-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.c-textarea { resize: vertical; min-height: 96px; }

.c-settings-contact-row,
.c-settings-inline-form,
.c-settings-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.c-settings-inline-form .c-input,
.c-settings-add-row .c-input { margin-bottom: 0; flex: 1 1 140px; min-width: 120px; }
.c-btn-danger-text { color: var(--red) !important; }

.c-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.c-modal.open { display: flex; }
.c-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .45);
  backdrop-filter: blur(3px);
}
.c-modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.c-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.c-modal-head h3 { margin: 0; font-size: 16px; }
.c-modal-x {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.c-modal-body { padding: 18px; }
.c-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
}

.c-upload-picker { position: relative; display: inline-block; }
.c-upload-picker > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.c-upload-picker > summary::-webkit-details-marker { display: none; }
.c-upload-picker > summary::marker { content: ""; }
.c-upload-picker > summary.c-btn::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .85;
  vertical-align: middle;
}
.c-upload-picker-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 188px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.c-upload-picker:not([open]) .c-upload-picker-menu { display: none; }
.c-upload-picker-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}
.c-upload-picker-menu a:hover { background: var(--surface2); }
.c-upload-picker-menu a .bi-arrow-down-circle { color: var(--accent); }
.c-upload-picker-menu a .bi-arrow-up-circle { color: var(--green); }

.c-journal-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.c-journal-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.c-journal-table th {
  text-align: left;
  padding: .75rem 1rem;
  color: var(--dim);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.c-journal-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--surface2);
  vertical-align: middle;
}
.c-journal-table tr:last-child td { border-bottom: none; }
.c-journal-table tbody tr:hover { background: var(--accent-light); }
.c-journal-when { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.c-journal-code { display: block; font-weight: 700; color: var(--text); }
.c-journal-name { display: block; color: var(--muted); font-size: .78rem; margin-top: .1rem; }
.c-journal-num { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.c-journal-ok { color: var(--green); }
.c-journal-mail { color: var(--amber); }
.c-journal-err { color: var(--red); }
.c-journal-id code {
  font-size: .75rem;
  color: var(--muted);
  background: var(--surface2);
  padding: .15rem .4rem;
  border-radius: 6px;
}
.c-journal-source {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: var(--surface2);
  color: var(--muted);
}
.c-journal-source-web { background: var(--accent-light); color: var(--accent); }
.c-journal-source-wa { background: var(--green-light); color: var(--green); }
.c-journal-actions { white-space: nowrap; display: flex; gap: .35rem; flex-wrap: wrap; }
.c-journal-day td {
  background: var(--surface2);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .55rem 1rem;
  border-bottom: 1px solid var(--border);
}

/* ── 13. Login ────────────────────────────────────── */
.c-login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 32px 16px;
}
.c-login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.c-login-logo-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
}
.c-login-logo-sub { font-size: 13px; color: var(--muted); }
.c-login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 32px;
  width: 100%;
  max-width: 400px;
}
.c-login-footer { margin-top: 24px; font-size: 12px; color: var(--dim); text-align: center; }

/* Login Makeover — split + curved divider */
.c-login-page {
  margin: 0;
  min-height: 100vh;
  background: #f7f6f2;
  overflow: hidden;
}
.c-login-split {
  position: relative;
  display: flex;
  min-height: 100vh;
  width: 100%;
}
.c-login-brand {
  flex: 1;
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 40px;
  background: #1a1612;
  overflow: hidden;
}
.c-login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(#c9921a 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.c-login-brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.c-login-hero-logo {
  width: 176px;
  height: 176px;
  object-fit: contain;
  display: block;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 24px rgba(201, 146, 26, 0.45));
}
.c-login-brand-tagline {
  max-width: 280px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #8a8275;
}
.c-login-curve {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 140px;
  transform: translateX(-70px);
  pointer-events: none;
  z-index: 2;
  display: none;
}
.c-login-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f7f6f2;
}
.c-login-form-card {
  width: 100%;
  max-width: 380px;
}
.c-login-title {
  margin: 0 0 40px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #2a241c;
}
.c-login-error {
  background: var(--red-light);
  border: 1px solid var(--red-line);
  color: var(--red);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 20px;
}
.c-login-field {
  margin-bottom: 24px;
}
.c-login-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #4a4438;
}
.c-login-underline-wrap {
  position: relative;
}
.c-login-underline-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #9a9285;
  pointer-events: none;
  transition: color 0.2s ease;
}
.c-login-underline-wrap:focus-within .c-login-underline-icon {
  color: #c9921a;
}
.c-login-underline-input {
  width: 100%;
  height: 40px;
  padding: 0 8px 0 28px;
  border: none;
  border-bottom: 1px solid #ddd8ce;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: #2a241c;
  outline: none;
  transition: border-color 0.2s ease;
}
.c-login-underline-input::placeholder {
  color: #a8a095;
}
.c-login-underline-input:focus {
  border-bottom-color: #c9921a;
}
.c-login-gold-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  margin-top: 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8c547 0%, #c9921a 45%, #8f6914 100%);
  color: #1a1408;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 12px 32px -10px rgba(201, 146, 26, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.c-login-gold-btn:hover {
  transform: scale(1.01);
  box-shadow: 0 14px 36px -8px rgba(201, 146, 26, 0.5);
}
.c-login-gold-btn:active {
  transform: scale(0.99);
}
.c-login-gold-btn i {
  font-size: 16px;
  transition: transform 0.15s ease;
}
.c-login-gold-btn:hover i {
  transform: translateX(2px);
}
@media (min-width: 1024px) {
  .c-login-brand { display: flex; }
  .c-login-curve { display: block; }
}
@media (max-width: 1023px) {
  .c-login-page { background: #f7f6f2; overflow: auto; }
  .c-login-split { min-height: 100vh; }
}

/* ── 14. Vraagpost item ───────────────────────────── */
.c-vp-list  { display: flex; flex-direction: column; gap: 10px; }
.c-vp-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 13px 15px;
  transition: border-color .12s;
}
.c-vp-item:hover { border-color: var(--border-hover); }
.c-vp-item.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.c-vp-item-top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.c-vp-item-icon {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 15px;
}
.c-vp-item-body { flex: 1; min-width: 0; }
.c-vp-item-name { font-size: 13.5px; font-weight: 600; }
.c-vp-item-meta { font-size: 12px; color: var(--dim); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.c-vp-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.c-vp-item-amount { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.c-vp-item-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.c-vp-item-foot-right { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }

/* ── 15. Sync bar & filter bar ───────────────────── */
.c-sync-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.c-filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

/* ── 16. Dropzone ─────────────────────────────────── */
.c-dropzone {
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 60px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--surface);
}
.c-dropzone:hover { border-color: var(--accent); background: var(--accent-light); }
.c-dropzone-icon { font-size: 44px; color: var(--accent); margin-bottom: 14px; }
.c-dropzone-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.c-dropzone-sub   { font-size: 13px; color: var(--muted); }

/* ── 17. Breadcrumb ───────────────────────────────── */
.c-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--dim);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.c-breadcrumb a { color: var(--accent); text-decoration: none; }
.c-breadcrumb a:hover { text-decoration: underline; }
.c-breadcrumb-sep { color: var(--dim); }

/* ── 18. Section title ────────────────────────────── */
.c-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── 19. Toolbar ──────────────────────────────────── */
.c-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  flex-wrap: wrap;
}

/* ── 20. Toasts ───────────────────────────────────── */
.c-toast-ok   { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--green); }
.c-toast-warn { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--amber); }
.c-toast-fout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--red); }
.c-toast-sync { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); }

/* ── 21. Modal ────────────────────────────────────── */
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text);
  box-shadow: var(--shadow-md);
}
.modal-header, .modal-footer { border-color: var(--border); }

/* ── 22. Footer ───────────────────────────────────── */
.c-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--dim);
  text-align: center;
}
.c-footer--shell {
  margin-top: auto;
  background: var(--surface);
  width: 100%;
}
.c-journal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}
.c-journal-toolbar label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.c-journal-toolbar select {
  min-width: 260px;
  max-width: 420px;
}
.c-journal-admin-picker label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.c-journal-admin-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.c-journal-admin-search {
  flex: 0 1 220px;
  min-width: 160px;
  max-width: none;
  margin-top: 0;
}
.c-journal-admin-count {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}
.c-journal-admin-count:empty { display: none; }
.c-batch-detail {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.c-batch-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.c-batch-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.c-batch-filter {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}
.c-batch-filter.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.c-batch-items { display: flex; flex-direction: column; gap: 10px; }
.c-batch-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface2);
}
.c-batch-item-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.c-batch-item-meta { font-size: 13px; color: var(--muted); }
.c-batch-item-reason { font-size: 13px; color: var(--red); margin-top: 6px; }
.c-batch-item--ok { border-left: 3px solid var(--green); }
.c-batch-item--mail { border-left: 3px solid var(--amber); }
.c-batch-item--err { border-left: 3px solid var(--red); }
.c-batch-reviewed {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── 23. Form controls (Bootstrap override) ───────── */
.form-control,
.form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  padding: 0.55rem 0.9rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-shadow: none;
}
.form-select {
  padding-right: 2.35rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  background: var(--surface);
  color: var(--text);
}
.form-control::placeholder { color: var(--dim); }
.form-select-sm,
.form-control-sm {
  border-radius: var(--radius-md);
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
  font-size: 13px;
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}
.btn {
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .08s;
}
.btn-sm { border-radius: var(--radius-md); }
.btn:active { transform: scale(.98); }
.badge { border-radius: 999px; padding: 0.35em 0.7em; font-weight: 600; }
.alert { border-radius: var(--radius-lg); border: 1px solid transparent; }
.modal-content { border-radius: var(--radius-xl); border: 1px solid var(--border); overflow: hidden; }

/* ── 24. Utilities ────────────────────────────────── */
.c-text-accent  { color: var(--accent) !important; }
.c-text-green   { color: var(--green) !important; }
.c-text-amber   { color: var(--amber) !important; }
.c-text-red     { color: var(--red) !important; }
.c-text-muted   { color: var(--muted) !important; }
.c-text-dim     { color: var(--dim) !important; }
.c-mono         { font-family: ui-monospace, 'SF Mono', Consolas, monospace; }
.c-tabular      { font-variant-numeric: tabular-nums; }

/* ── 25. Responsive ───────────────────────────────── */
@media (max-width: 991px) {
  :root { --app-header-offset: 104px; }
  .c-sidebar { display: none; }
  .c-content { padding: 16px; }
  .c-app-nav-sub { display: none !important; }
}
@media (max-width: 767px) {
  .c-table-wrap table { font-size: 12.5px; }
  .c-stat-value { font-size: 22px; }
  .c-navbar { padding: 0 12px; height: 56px; }
}
