/* Taxatie Master Tool — styles.css */
:root {
  --bg: #f5f5f7;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f0f0f2;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #aeaeb2;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-light: #e8f2fd;
  --border: #d2d2d7;
  --border-light: #e5e5ea;
  --success: #34c759;
  --warning: #ff9f0a;
  --danger: #ff3b30;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --sidebar-w: 280px;
  --info-w: 300px;
  --header-h: 56px;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg: #1c1c1e;
  --bg-sidebar: #2c2c2e;
  --bg-card: #2c2c2e;
  --bg-input: #3a3a3c;
  --text: #f5f5f7;
  --text-secondary: #aeaeb2;
  --text-muted: #6e6e73;
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --accent-light: #1a3a5c;
  --border: #48484a;
  --border-light: #3a3a3c;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.4);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
}

/* ── Header ── */
.header {
  height: var(--header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 100;
}
.header__logo { font-weight: 700; font-size: 16px; white-space: nowrap; }
.header__logo span { color: var(--accent); }
.header__address {
  flex: 1; text-align: center; font-size: 14px; color: var(--text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.header__actions { display: flex; gap: 8px; align-items: center; }

/* ── Layout ── */
.app { display: flex; height: calc(100vh - var(--header-h)); }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w); background: var(--bg-sidebar); border-right: 1px solid var(--border);
  overflow-y: auto; flex-shrink: 0; padding: 8px 0;
}
.sidebar__section { padding: 4px 0; }
.sidebar__title {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); padding: 8px 16px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 16px; cursor: pointer;
  font-size: 13px; color: var(--text-secondary); transition: background var(--transition), color var(--transition);
  border: none; background: none; width: 100%; text-align: left;
}
.nav-item:hover { background: var(--accent-light); color: var(--text); }
.nav-item.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.nav-item--indent { padding-left: 32px; font-size: 12px; }
.nav-item--indent2 { padding-left: 48px; font-size: 12px; }
.nav-item__icon { width: 18px; text-align: center; flex-shrink: 0; }
.nav-item__badge {
  margin-left: auto; font-size: 10px; background: var(--accent); color: #fff;
  border-radius: 10px; padding: 1px 6px; font-weight: 600;
}
.nav-item__add {
  margin-left: auto; font-size: 16px; color: var(--accent); cursor: pointer;
  border: none; background: none; padding: 0 4px; line-height: 1;
}
.nav-item__add:hover { color: var(--accent-hover); }

/* ── Main ── */
.main { flex: 1; overflow-y: auto; padding: 24px; min-width: 0; }
.main__title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.main__subtitle { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }

/* ── Info sidebar ── */
.info-sidebar {
  width: var(--info-w); background: var(--bg-sidebar); border-left: 1px solid var(--border);
  overflow-y: auto; flex-shrink: 0; padding: 16px;
}
.info-sidebar__section { margin-bottom: 16px; }
.info-sidebar__title {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); margin-bottom: 8px;
}
.info-sidebar__kv { display: flex; justify-content: space-between; font-size: 12px; padding: 3px 0; }
.info-sidebar__kv span:first-child { color: var(--text-secondary); }
.info-sidebar__kv span:last-child { font-weight: 500; }

/* ── Cards ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.card__title {
  font-size: 15px; font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}

/* ── Forms ── */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-input); color: var(--text); font-size: 13px; font-family: inherit;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 60px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── Ja/Nee toggle (Provadie-stijl) ── */
.yn-toggle { display: flex; gap: 4px; }
.yn-toggle__btn {
  padding: 6px 16px; border-radius: var(--radius); font-size: 12px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); background: var(--bg-input);
  color: var(--text-secondary); transition: all var(--transition); font-family: inherit;
}
.yn-toggle__btn:hover { border-color: var(--accent); }
.yn-toggle__btn.active--ja { background: #d4f4dd; color: #1a7f37; border-color: #34c759; }
.yn-toggle__btn.active--nee { background: #ffe5e5; color: var(--danger); border-color: var(--danger); }
.yn-toggle__btn.active--nvt { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

/* ── Checkbox ── */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 4px; font-size: 12px; cursor: pointer; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: none;
  border-radius: var(--radius); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all var(--transition); font-family: inherit;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: var(--bg-input); color: var(--text); border: 1px solid var(--border); }
.btn--secondary:hover { background: var(--border-light); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { opacity: 0.9; }
.btn--sm { padding: 5px 10px; font-size: 12px; }
.btn--ghost { background: none; color: var(--accent); padding: 4px 8px; }
.btn--ghost:hover { background: var(--accent-light); }

/* ── Dossier cards ── */
.dossier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.dossier-card {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 16px; cursor: pointer; transition: all var(--transition); box-shadow: var(--shadow);
}
.dossier-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent); }
.dossier-card__address { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.dossier-card__city { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.dossier-card__meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); }
.dossier-card__status {
  display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-top: 8px;
}
.status--nieuw { background: var(--accent-light); color: var(--accent); }
.status--opname-gedaan { background: #d4f4dd; color: #1a7f37; }
.status--bureauwerk { background: #fff3cd; color: #856404; }
.status--afgerond { background: #d4f4dd; color: #1a7f37; }

/* ── Progress ── */
.progress { height: 4px; background: var(--border-light); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.progress__bar { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s ease; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state__icon { font-size: 48px; margin-bottom: 12px; }
.empty-state__text { font-size: 14px; margin-bottom: 16px; }

/* ── Condition badges ── */
.condition-select { display: flex; gap: 6px; }
.condition-opt {
  padding: 4px 10px; border-radius: var(--radius); font-size: 11px; font-weight: 500;
  cursor: pointer; border: 1px solid var(--border); background: var(--bg-input); transition: all var(--transition);
}
.condition-opt.active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.condition-opt[data-val="Slecht"].active { border-color: var(--danger); background: #ffe5e5; color: var(--danger); }
.condition-opt[data-val="Matig"].active { border-color: var(--warning); background: #fff3cd; color: #856404; }
.condition-opt[data-val="Redelijk"].active { border-color: #34c759; background: #d4f4dd; color: #1a7f37; }
.condition-opt[data-val="Goed"].active { border-color: #34c759; background: #d4f4dd; color: #1a7f37; }

/* ── Bouwkundige opnamestaat tabel ── */
.bk-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.bk-table th, .bk-table td {
  padding: 6px 8px; border: 1px solid var(--border-light); text-align: left;
}
.bk-table th {
  background: var(--bg-input); font-weight: 600; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.3px; color: var(--text-secondary);
}
.bk-table td input, .bk-table td select {
  width: 100%; padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px;
  background: var(--bg-input); color: var(--text); font-size: 12px; font-family: inherit;
}
.bk-table td input:focus, .bk-table td select:focus { outline: none; border-color: var(--accent); }
.bk-table tr.bk-total td { font-weight: 700; background: var(--accent-light); }
.bk-table .bk-num { width: 70px; text-align: right; }

/* ── Referentie cards ── */
.ref-card {
  background: var(--bg-input); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
}
.ref-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ref-card__title { font-weight: 600; font-size: 13px; }

/* ── Conditional section (smooth expand) ── */
.conditional-section {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  margin: 0;
}
.conditional-section.open {
  max-height: 2000px; opacity: 1; margin: 8px 0;
}

/* ── Subsection card (nested) ── */
.sub-card {
  margin: 8px 0; padding: 12px 16px; background: var(--bg-input);
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.sub-card__title {
  font-size: 12px; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary);
}

/* ── Placeholder section ── */
.placeholder-section {
  text-align: center; padding: 40px 24px; background: var(--bg-input);
  border: 2px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-muted);
}
.placeholder-section__icon { font-size: 40px; margin-bottom: 8px; }
.placeholder-section__text { font-size: 14px; }
.placeholder-section__sub { font-size: 12px; margin-top: 4px; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px;
  width: 90%; max-width: 480px; box-shadow: var(--shadow-lg);
}
.modal__title { font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ── Toggle ── */
.toggle { position: relative; width: 40px; height: 22px; cursor: pointer; }
.toggle input { display: none; }
.toggle__track {
  position: absolute; inset: 0; background: var(--border); border-radius: 11px;
  transition: background var(--transition);
}
.toggle input:checked + .toggle__track { background: var(--accent); }
.toggle__thumb {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; transition: transform var(--transition);
}
.toggle input:checked ~ .toggle__thumb { transform: translateX(18px); }

/* ── BAG badges ── */
.bag-field-wrap { position: relative; display: flex; align-items: center; }
.bag-field-wrap input { flex: 1; padding-right: 48px; }
.bag-badge {
  display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 2px 6px; border-radius: 4px;
  background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent);
  white-space: nowrap; margin-left: 6px; flex-shrink: 0;
}
.bag-badge--demo { background: #fff3cd; color: #856404; border-color: #ffc107; }

/* ── Percelen summary ── */
.percelen-summary {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 12px 16px; box-shadow: var(--shadow);
}
.perceel-summary-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border-light);
}
.perceel-summary-item:last-child { border-bottom: none; }
.perceel-summary-item__label { font-weight: 600; }
.perceel-summary-item__details { color: var(--text-secondary); font-size: 12px; }

/* ── Responsive ── */
@media (max-width: 1024px) { .info-sidebar { display: none; } }
@media (max-width: 768px) {
  .sidebar {
    position: fixed; left: -100%; top: var(--header-h); bottom: 0; z-index: 99;
    transition: left var(--transition); box-shadow: var(--shadow-lg);
  }
  .sidebar.open { left: 0; }
  .main { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row--3 { grid-template-columns: 1fr; }
  .header__menu-btn { display: block; }
  .bk-table { font-size: 10px; }
  .bk-table th, .bk-table td { padding: 4px; }
}
@media (min-width: 769px) { .header__menu-btn { display: none; } }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Checkbox grid (3-4 kolommen) ── */
.checkbox-grid {
  display: grid; gap: 6px 12px; margin-top: 4px;
}
.checkbox-grid__item {
  display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer;
  padding: 4px 0;
}
.checkbox-grid__item input[type="checkbox"] {
  width: auto; margin: 0; flex-shrink: 0;
}

/* ── Floor tab buttons ── */
.floor-tabs { display: flex; gap: 8px; }

/* ── Auto-field header (reactive rapport) ── */
.auto-field-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.auto-field-header label { margin-bottom: 0; }
.auto-badge {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
  white-space: nowrap;
}
.auto-badge--auto { background: #d4f4dd; color: #1a7f37; }
.auto-badge--manual { background: #fff3cd; color: #856404; }
.auto-regen-btn { padding: 2px 6px !important; font-size: 11px !important; margin-left: auto; }

/* ── Login Screen ── */
.login-screen {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--accent-light) 100%);
  z-index: 1000;
}
.login-card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 48px 40px;
  text-align: center; box-shadow: var(--shadow-lg); max-width: 400px; width: 90%;
}
.login-card__logo { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.login-card__logo span { color: var(--accent); }
.login-card__subtitle { font-size: 13px; color: var(--text-secondary); margin-bottom: 32px; }
.login-card__btn { width: 100%; justify-content: center; padding: 12px 20px; font-size: 15px; gap: 10px; }
.login-card__btn img { border-radius: 2px; }
.login-card__note { font-size: 11px; color: var(--text-muted); margin-top: 16px; }
.btn--lg { padding: 12px 20px; font-size: 15px; }

/* ── Header user & save status ── */
.header__user { display: flex; align-items: center; gap: 8px; margin-right: 8px; }
.header__avatar { width: 28px; height: 28px; border-radius: 50%; }
.header__username { font-size: 12px; color: var(--text-secondary); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header__save-status { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.save-status--saving { color: var(--accent); }
.save-status--success { color: var(--success); }
.save-status--error { color: var(--danger); }
.save-status--warning { color: var(--warning); }

/* ── Loading States ── */
.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 24px; }
.loading-state__text { margin-top: 16px; font-size: 14px; color: var(--text-secondary); }
.loading-inline { font-size: 12px; color: var(--text-muted); padding: 8px 0; }
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border-light); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 20px;
  text-align: center; margin-bottom: 12px; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.upload-zone--active { border-color: var(--accent); background: var(--accent-light); }
.upload-zone__text { font-size: 13px; color: var(--text-secondary); }
.upload-progress { margin-bottom: 8px; }
.upload-item { font-size: 12px; padding: 4px 0; color: var(--text-secondary); }

/* ── File List ── */
.file-list { margin-top: 8px; }
.file-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 12px;
}
.file-row:last-child { border-bottom: none; }
.file-row__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-row__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row__meta { color: var(--text-muted); font-size: 11px; }
.file-row__actions { display: flex; gap: 4px; flex-shrink: 0; }

/* ── Audit Log ── */
.audit-row { padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.audit-row:last-child { border-bottom: none; }
.audit-row__header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.audit-row__user { font-weight: 500; font-size: 12px; }
.audit-row__date { font-size: 11px; color: var(--text-muted); }
.audit-row__action { display: flex; align-items: center; gap: 8px; }
.audit-badge {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
  background: var(--accent-light); color: var(--accent); white-space: nowrap;
}
.audit-badge--dossier_created { background: #d4f4dd; color: #1a7f37; }
.audit-badge--file_uploaded { background: #e8f2fd; color: var(--accent); }
.audit-badge--field_changed { background: #fff3cd; color: #856404; }
.audit-row__details { font-size: 12px; color: var(--text-secondary); }

.text-muted { color: var(--text-muted); }

/* ── Bijlagen Dropzone ── */
.bijlagen-dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 40px 24px;
  text-align: center; cursor: pointer; transition: all var(--transition); margin-bottom: 16px;
  background: var(--bg-card);
}
.bijlagen-dropzone:hover, .bijlagen-dropzone--active {
  border-color: var(--accent); background: var(--accent-light);
}
.bijlagen-dropzone__icon { font-size: 36px; margin-bottom: 8px; }
.bijlagen-dropzone__text { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.bijlagen-dropzone__hint { font-size: 12px; color: var(--text-muted); }

/* ── Bijlagen Toolbar ── */
.bijlagen-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding: 0 4px;
}
.bijlagen-toolbar__count { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

/* ── Bijlagen Table ── */
.bijlagen-table { border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }
.bijlagen-row {
  display: grid;
  grid-template-columns: 32px 1fr 1.2fr 70px 80px 100px 100px;
  align-items: center; padding: 8px 10px; font-size: 12px;
  border-bottom: 1px solid var(--border-light); background: var(--bg-card);
  transition: background var(--transition);
}
.bijlagen-row:last-child { border-bottom: none; }
.bijlagen-row:not(.bijlagen-row--header):hover { background: var(--accent-light); }
.bijlagen-row--header {
  background: var(--bg-input); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-secondary);
}
.bijlagen-row--dragging { opacity: 0.4; }
.bijlagen-row--dragover { border-top: 2px solid var(--accent); }
.bijlagen-col { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.bijlagen-col--drag { cursor: grab; color: var(--text-muted); text-align: center; font-size: 14px; }
.bijlagen-col--name { font-weight: 500; }
.bijlagen-col--size, .bijlagen-col--date { color: var(--text-secondary); }
.bijlagen-col--user { color: var(--text-secondary); }
.bijlagen-col--actions { display: flex; gap: 2px; justify-content: flex-end; }
.bijlagen-btn-del { color: var(--danger) !important; }

/* ── Bijlagen Upload Progress ── */
.bijlagen-upload-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12px; }
.bijlagen-upload-name { flex-shrink: 0; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); }
.bijlagen-upload-bar { flex: 1; height: 4px; background: var(--border-light); border-radius: 2px; overflow: hidden; }
.bijlagen-upload-bar__fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s ease; width: 0; }
.bijlagen-upload-bar__fill--done { background: var(--success); }
.bijlagen-upload-bar__fill--error { background: var(--danger); }

/* ── Combobox ── */
.combobox { position: relative; width: 100%; }
.combobox__input {
  width: 100%; padding: 5px 8px; border: 1px solid var(--border); border-radius: 4px;
  background: var(--bg-input); color: var(--text); font-size: 12px; font-family: inherit;
}
.combobox__input:focus { outline: none; border-color: var(--accent); }
.combobox__list {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px;
  box-shadow: var(--shadow-lg); max-height: 260px; overflow-y: auto; margin-top: 2px;
}
.combobox__list--open { display: block; }
.combobox__group {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); padding: 6px 10px 2px; background: var(--bg-input);
  position: sticky; top: 0;
}
.combobox__option {
  padding: 5px 10px; font-size: 12px; cursor: pointer; transition: background 0.1s;
}
.combobox__option:hover { background: var(--accent-light); }
.combobox__option--selected { color: var(--accent); font-weight: 600; }

@media (max-width: 768px) {
  .bijlagen-row { grid-template-columns: 28px 1fr 80px 60px; }
  .bijlagen-col--date, .bijlagen-col--user, .bijlagen-col--size { display: none; }
}

/* ── Utility ── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
