/* ── Thema — light (standaard) ── */
:root {
  --thumb-w: 120px;
  --thumb-h: 90px;
  --bg:         #edf0f5;
  --bg2:        #ffffff;
  --bg3:        #ffffff;
  --bg4:        #e8ebf3;
  --border:     #d8dcea;
  --border2:    #c4cbdd;
  --text:       #1a1f36;
  --text2:      #4a5278;
  --text3:      #8a92b0;
  --accent:     #3d5ee0;
  --accent-dim: #dce4ff;
  --green:      #0e9e57;
  --green-dim:  #d4f5e4;
  --amber:      #c47d00;
  --amber-dim:  rgba(196,125,0,.1);
  --red:        #d63a3a;
  --red-dim:    rgba(214,58,58,.1);
  --sh:         0 2px 12px rgba(0,0,0,.07);
  --r:          6px;
  --rl:         10px;
  color-scheme: light;
}

/* ── Thema — dark ── */
[data-theme="dark"] {
  --bg:         #0a0c10;
  --bg2:        #0d1017;
  --bg3:        #13161d;
  --bg4:        #1a1e27;
  --border:     rgba(255,255,255,.08);
  --border2:    rgba(255,255,255,.13);
  --text:       #e5e9f0;
  --text2:      #94a3b8;
  --text3:      #64748b;
  --accent:     #4b91c2;
  --accent-dim: rgba(75,145,194,.15);
  --green:      #10b981;
  --green-dim:  rgba(16,185,129,.15);
  --amber:      #f59e0b;
  --amber-dim:  rgba(245,158,11,.12);
  --red:        #ef4444;
  --red-dim:    rgba(239,68,68,.13);
  --sh:         0 8px 30px rgba(0,0,0,.25);
  --r:          6px;
  --rl:         10px;
  color-scheme: dark;
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -.005em;
}

/* ── Header ── */
header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

header h1 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.version-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: .02em;
}

/* ── Thema-toggle ── */
.theme-pills {
  display: flex;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.tpill {
  padding: 4px 10px;
  border-radius: 5px;
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

.tpill:hover { color: var(--text2); }

.tpill.on {
  background: var(--bg4);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

/* ── Tabnavigatie ── */
nav.tabs {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex;
  gap: 2px;
}

.tab-btn {
  padding: 10px 14px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  font-family: inherit;
  transition: color .15s, border-color .15s;
}

.tab-btn:hover { color: var(--text2); }

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ── Main ── */
main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tab-content { display: flex; flex-direction: column; gap: 16px; }
.tab-content.hidden { display: none !important; }


/* ── Buttons ── */
.btn-primary {
  padding: 5px 12px;
  background: var(--accent);
  border: none;
  border-radius: var(--r);
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .15s;
}

.btn-primary:hover { opacity: .88; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }

.btn-secondary {
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: var(--r);
  color: var(--text2);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-secondary:disabled { opacity: .45; cursor: not-allowed; }

.btn-icon {
  padding: 3px 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--accent);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}

.btn-icon:hover { background: var(--accent-dim); }

/* ── Progress ── */
.progress-section {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 14px 16px;
  box-shadow: var(--sh);
}

.progress-bar-wrap {
  height: 5px;
  background: var(--bg4);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width .3s ease;
}

.progress-bar.indeterminate {
  width: 40% !important;
  animation: prog-slide 1.2s ease-in-out infinite;
}

@keyframes prog-slide {
  0%   { transform: translateX(-150%); }
  100% { transform: translateX(400%); }
}

.progress-label { font-size: 11px; color: var(--text2); }


/* ── Search card ── */
.search-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 14px 16px;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid var(--border2);
  border-radius: var(--r);
  background: var(--bg);
  transition: border-color .15s;
  overflow: hidden;
}

.search-input-wrap:focus-within { border-color: var(--accent); }

.search-icon {
  padding: 0 8px 0 10px;
  color: var(--text3);
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.search-input-wrap input {
  flex: 1;
  font: inherit;
  font-size: 13px;
  padding: 8px 4px;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  min-width: 0;
}

.search-clear {
  font: inherit;
  font-size: 12px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  transition: color .15s;
  flex-shrink: 0;
}
.search-clear:hover { color: var(--red); }

.search-filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-field {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text2);
}

.filter-field input[type="date"] {
  font: inherit;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--r);
  border: 1px solid var(--border2);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}

.filter-field input[type="date"]:focus { border-color: var(--accent); }

.btn-small {
  padding: 4px 10px !important;
  font-size: 11px !important;
}

.search-hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--text3);
}

/* ── Results header ── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text2);
}

/* ── Empty state ── */

/* ── Results / table ── */
.results-section {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 16px;
  box-shadow: var(--sh);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  align-items: center;
}
.filter-select,
.filter-num {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text1);
  font-size: 12px;
  font-family: inherit;
}
.filter-select { cursor: pointer; padding-right: 4px; }
.filter-num    { width: 110px; }
.filter-range  { display: flex; gap: 4px; }

.table-wrap { overflow-x: auto; }

#main-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

#main-table th {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border2);
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  user-select: none;
}

#main-table th.sortable { cursor: pointer; transition: color .15s; }
#main-table th.sortable:hover { color: var(--accent); }
#main-table th.sorted { color: var(--accent); }

.sort-ind { margin-left: 3px; font-size: 9px; }

/* Filter input row */
#table-filters th {
  padding: 5px 6px;
  background: var(--bg4);
  border-bottom: 1px solid var(--border2);
  font-size: 10px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}


/* Checkbox col */
th.col-check, td.col-check {
  width: 32px;
  text-align: center;
  padding-left: 10px !important;
  padding-right: 4px !important;
}

input[type="checkbox"] {
  width: 13px;
  height: 13px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Body rows */
#main-table tbody tr { border-bottom: 1px solid var(--border); }
#main-table tbody tr:last-child { border-bottom: none; }
#main-table tbody tr:hover td { background: var(--bg4); }
#main-table tbody tr.selected td { background: var(--accent-dim); }

#main-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

#main-table tbody tr:last-child td { border-bottom: none; }

.file-number { font-weight: 600; color: var(--accent); }
.file-number.partial-match { color: #e53e3e; }
.td-muted { color: var(--text2); }
.uploads-count { font-weight: 600; }
.uploads-count.zero { color: var(--text3); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.badge-damage { background: var(--red-dim);   color: var(--red); }
.badge-ok     { background: var(--green-dim); color: var(--green); }


/* ── Footer ── */
footer {
  padding: 10px 20px;
  font-size: 11px;
  color: var(--text3);
  border-top: 1px solid var(--border);
  background: var(--bg2);
  text-align: center;
}

/* ── Settings ── */
.settings-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 1400px;
}

.settings-row .settings-card {
  flex: 1;
  max-width: none;
}

.settings-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 24px 28px;
  max-width: 500px;
  box-shadow: var(--sh);
}

.settings-card h2 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.settings-desc {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 18px;
  line-height: 1.6;
}

.field-group { margin-bottom: 14px; }

.field-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 5px;
}

.klant-email-edit,
#notify-email-input,
#klant-afkorting-input,
#klant-email-input,
#report-template-input {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 7px 10px;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}

#notify-email-input,
#report-template-input { display: block; width: 100%; }

.klant-email-edit:focus,
#notify-email-input:focus,
#klant-afkorting-input:focus,
#klant-email-input:focus,
#report-template-input:focus { border-color: var(--accent); }

.input-with-toggle {
  display: flex;
  border: 1px solid var(--border2);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg);
  transition: border-color .15s;
}

.input-with-toggle:focus-within { border-color: var(--accent); }

.input-with-toggle input {
  flex: 1;
  font: inherit;
  font-size: 12px;
  padding: 7px 10px;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  min-width: 0;
}

.btn-toggle-vis {
  font: inherit;
  font-size: 13px;
  padding: 0 10px;
  border: none;
  border-left: 1px solid var(--border);
  background: var(--bg4);
  color: var(--text2);
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}

.btn-toggle-vis:hover { background: var(--border2); }

.btn-icon-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--border2);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--text3);
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}

.btn-icon-remove:hover { background: var(--red-dim); border-color: var(--red); color: var(--red); }

.field-actions { display: flex; gap: 8px; margin-top: 10px; margin-bottom: 10px; }

.connection-result {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--r);
  margin-top: 2px;
}

.connection-result.ok     { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.connection-result.err    { background: var(--red-dim);   color: var(--red);   border: 1px solid var(--red); }
.connection-result.warn   { background: var(--amber-dim); color: var(--amber); border: 1px solid var(--amber); }

.settings-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.settings-card h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text3);
  margin-bottom: 12px;
}

.detail-loading { color: var(--text3); font-size: 12px; font-style: italic; }

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  user-select: none;
}
.toggle-label input[type="checkbox"] { cursor: pointer; accent-color: var(--accent); }

.size-pills {
  display: flex;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 3px;
  gap: 2px;
  width: fit-content;
}

.size-pill {
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 16px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  transition: all .15s;
}

.size-pill:hover { color: var(--text2); }

.size-pill.on {
  background: var(--bg2);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}


/* ── Inline foto strip ── */
.detail-row td { padding: 0 !important; }

.detail-cell {
  border-bottom: 1px solid var(--border2) !important;
  background: var(--bg4);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--thumb-w));
  gap: 10px;
  padding: 12px 16px;
}

.photo-thumb {
  width: var(--thumb-w);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.photo-thumb img {
  width: var(--thumb-w);
  height: var(--thumb-h);
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--border);
  display: block;
  transition: opacity .15s;
}

.photo-thumb img:hover { opacity: .85; }

.photo-thumb-empty {
  width: var(--thumb-w);
  height: var(--thumb-h);
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text3);
}

.photo-thumb-label {
  font-size: 10px;
  color: var(--text3);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}



/* ── Mobiel ── */
@media (max-width: 640px) {
  header { padding: 8px 14px; }
  header h1 { font-size: 13px; }
  .version-badge { display: none; }

  nav.tabs { padding: 0 14px; }
  .tab-btn { padding: 9px 10px; font-size: 11px; }

  main { padding: 12px 14px; gap: 12px; }
  .tab-content { gap: 12px; }

  /* Zoekbalk */
  .search-card { padding: 10px 12px; }
  .search-filters-row { flex-wrap: wrap; gap: 8px; }
  .search-hint { display: none; }
  .filter-field { flex: 1; min-width: 120px; }
  .filter-field input[type="date"] { width: 100%; }

  /* Tabel: scroll horizontaal op mobiel */
  .results-section { padding: 10px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #main-table { min-width: 560px; }
  #main-table th, #main-table td { padding: 6px 8px; font-size: 11px; }

  /* Foto strip */
  .photo-strip { padding: 10px 12px; gap: 8px; }

  /* Stats */
  .stats-section { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  /* Settings */
  .settings-row { flex-direction: column; }
  .settings-card { padding: 18px 16px; }
  .field-actions { flex-direction: column; }
  .field-actions .btn-secondary,
  .field-actions .btn-primary { width: 100%; text-align: center; }

  /* Buttons */
  .btn-primary, .btn-secondary { padding: 8px 14px; }

  footer { padding: 8px 14px; }
}

/* ── Statistieken ── */
#stats-container {
  padding: 20px 0;
}
.stats-section-header {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text3);
  padding: 20px 0 4px;
}
.stats-section-header:first-child { padding-top: 0; }
.stats-empty {
  color: var(--text3);
  padding: 32px 0;
  text-align: center;
}
.stats-pivot-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  display: block;
  width: fit-content;
  max-width: 100%;
}
.stats-pivot {
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
.stats-group-row th {
  padding: 5px 8px 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg2);
}
.stats-group-header {
  border-bottom: 2px solid var(--accent) !important;
}
.stats-pivot thead tr:last-child th {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-align: right;
  width: 36px;
  min-width: 36px;
  position: sticky;
  top: 28px;
  z-index: 2;
  background: var(--bg2);
}
.stats-pivot tbody tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
.stats-pivot tbody tr:hover td { background: var(--bg4); }
.stats-pivot td {
  padding: 3px 8px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
  font-size: 12px;
}
.stats-row-label {
  text-align: left !important;
  font-weight: 500;
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 12px !important;
  padding-right: 8px !important;
}
.stats-num-col {
  text-align: right;
  width: 36px;
  min-width: 36px;
  max-width: 36px;
}
.stats-cell-empty { color: var(--text3) !important; }
.stats-total-col {
  background: var(--bg4);
  border-left: 1px solid var(--border) !important;
  font-weight: 600;
  text-align: right;
  width: 44px;
  min-width: 44px;
}
.stats-year-total {
  border-left: 1px solid var(--border) !important;
  font-weight: 500;
  color: var(--text2) !important;
}
.stats-year-row th { font-size: 12px !important; font-weight: 600 !important; }
.stats-divider-col {
  width: 16px;
  min-width: 16px;
  background: var(--bg);
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
  padding: 0 !important;
}
.stats-year-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.stats-year-pill {
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.stats-year-pill:hover { background: var(--bg4); color: var(--text); }
.stats-year-pill.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.stats-table-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}
.stats-row-label-head {
  min-width: 140px;
  text-align: left !important;
}
.stats-year-band {
  border-left: 2px solid var(--border) !important;
}
.stats-pivot tbody td:first-child {
  border-left: none;
}
.stats-month-row th {
  font-size: 11px !important;
  color: var(--text3) !important;
  font-weight: 500 !important;
  padding: 4px 10px !important;
  text-align: right;
}
.stats-month-row .stats-row-label-head { text-align: left !important; }
.stats-sub-label-col {
  font-size: 9px;
  color: var(--text3);
  text-align: right;
  padding: 0 4px 0 0 !important;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: .02em;
  vertical-align: middle;
}
.stats-section-inline {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text3);
  padding: 10px 12px 4px !important;
  text-align: left !important;
  background: var(--bg2);
}
.stats-section-row td { border-bottom: 1px solid var(--border); }
.stats-spacer-row td { height: 16px; background: var(--bg2); border: none; }
.stats-snaps-row {
  color: var(--text3) !important;
  font-weight: 400 !important;
  font-size: 12px !important;
}
.stats-doss-row td { border-bottom: none !important; }
.stats-snap-row td { border-bottom: 1px solid var(--border); padding-top: 1px !important; }
.stats-row-label[rowspan] {
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

/* ── Utility ── */
.hidden { display: none !important; }
