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

/* ── Base ─────────────────────────────────────────────────────────────────── */
body {
  font-family: 'Roboto', sans-serif;
  background: #F2EFED;
  color: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  font-size: 18px;
  line-height: 1.7;
  scrollbar-gutter: stable;
}

/* ── Links ────────────────────────────────────────────────────────────────── */
a { color: #0077B3; text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }

/* ── Animated wave ────────────────────────────────────────────────────────── */
.wave {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%; height: 380px;
  background: linear-gradient(to top, #0077B3, #F2EFED);
  opacity: 0.5;
  animation: waveAnim 6s ease-in-out infinite alternate;
  clip-path: polygon(0% 60%, 20% 65%, 40% 55%, 60% 70%, 80% 60%, 100% 68%, 100% 100%, 0% 100%);
  z-index: 0;
}

@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 820px) and (orientation: portrait) {
    .wave { display: none; }
  }
}

@keyframes waveAnim {
  0%   { clip-path: polygon(0% 60%, 20% 65%, 40% 55%, 60% 70%, 80% 60%, 100% 68%, 100% 100%, 0% 100%); }
  100% { clip-path: polygon(0% 68%, 20% 60%, 40% 70%, 60% 55%, 80% 65%, 100% 60%, 100% 100%, 0% 100%); }
}

/* ── Page container ───────────────────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  animation: fadeIn 0.6s ease-in-out;
  text-align: center;
  flex: 1;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Page title ───────────────────────────────────────────────────────────── */
.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #0077B3;
  margin-bottom: 28px;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  padding: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  animation: slideUp 0.6s ease;
  text-align: left;
  margin-bottom: 24px;
}

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

.card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0077B3;
  margin-bottom: 16px;
  margin-top: 0;
}

.card p {
  font-size: 16px;
  line-height: 1.7;
  color: #222;
  margin-bottom: 10px;
}

.card p:last-child { margin-bottom: 0; }

/* ── Two-column grid ──────────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid #e8e4e2;
  margin: 32px 0;
}

/* ── Auth error card ──────────────────────────────────────────────────────── */
.auth-error-card {
  display: none;
  background: #fff;
  padding: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  animation: slideUp 0.6s ease;
  text-align: center;
  margin-bottom: 24px;
  border-top: 4px solid #c0392b;
}

.auth-error-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #c0392b;
  margin-bottom: 12px;
}

.auth-error-card p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
}

/* ── Form elements ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 7px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #ccc;
  border-radius: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: #000;
  background: #F2EFED;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #0077B3;
  box-shadow: 0 0 0 3px rgba(0,119,179,.15);
  background: #fff;
}

/* ── Dropdown ─────────────────────────────────────────────────────────────── */
.select-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #0077B3;
  pointer-events: none;
}

select {
  width: 100%;
  padding: 11px 38px 11px 14px;
  border: 1.5px solid #ccc;
  border-radius: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  background: #F2EFED;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

select:focus {
  border-color: #0077B3;
  box-shadow: 0 0 0 3px rgba(0,119,179,.15);
  background: #fff;
}

/* ── Textarea ─────────────────────────────────────────────────────────────── */
.textarea-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

textarea {
  width: 100%;
  min-height: 160px;
  padding: 11px 14px;
  border: 1.5px solid #ccc;
  border-radius: 0;
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-size: 15px;
  color: #000;
  background: #F2EFED;
  resize: vertical;
  line-height: 1.65;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

textarea:focus {
  border-color: #0077B3;
  box-shadow: 0 0 0 3px rgba(0,119,179,.15);
  background: #fff;
}

/* ── Hint & counter badge ─────────────────────────────────────────────────── */
.hint { font-size: 13px; color: #666; margin-top: 6px; }

.room-count {
  font-size: 13px;
  font-weight: 500;
  color: #0077B3;
  background: #E0F0FA;
  padding: 2px 10px;
  border-radius: 20px;
  transition: opacity .2s;
}

.room-count.empty { opacity: 0; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-generate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: #0077B3;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-top: 24px;
}

.btn-generate:hover:not(:disabled) { background: #005f8e; }
.btn-generate:active:not(:disabled) { transform: scale(.99); }
.btn-generate:disabled { opacity: .6; cursor: not-allowed; }


.btn-export {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: #d35400;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-top: 24px;
}

.btn-export:hover:not(:disabled) { background: #b04500; }
.btn-export:active:not(:disabled) { transform: scale(.99); }
.btn-export:disabled { opacity: .6; cursor: not-allowed; }

.btn-save {
  flex: 1;
  padding: 12px 20px;
  background: #0077B3;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .2s;
}

.btn-save:hover { background: #005f8e; }

.btn-delete {
  padding: 12px 20px;
  background: #c0392b;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .2s;
}

.btn-delete:hover { background: #962d22; }

.btn-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: #2e9956;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-top: 20px;
}

.btn-confirm:hover:not(:disabled) { background: #237a43; }
.btn-confirm:active:not(:disabled) { transform: scale(.99); }
.btn-confirm:disabled { opacity: .6; cursor: not-allowed; }

/* ── Status messages ──────────────────────────────────────────────────────── */
.status {
  margin-top: 18px;
  padding: 13px 16px;
  font-size: 15px;
  display: none;
  align-items: center;
  gap: 10px;
  border-left: 4px solid;
}

.status.show    { display: flex; }
.status.loading { background: #E0F0FA; color: #005f8e; border-color: #0077B3; }
.status.success { background: #E8F5EC; color: #1a5e33; border-color: #2e9956; }
.status.error   { background: #FDF0F0; color: #8c1f1f; border-color: #c0392b; }

/* ── Spinner ──────────────────────────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(0,119,179,.25);
  border-top-color: #0077B3;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Direct-link info ─────────────────────────────────────────────────────── */
.direct-info {
  background: #fff;
  padding: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  animation: slideUp 0.6s ease;
  text-align: left;
  border-top: 4px solid #0077B3;
  margin-bottom: 24px;
}

.direct-info h2 { font-size: 18px; font-weight: 700; color: #0077B3; margin-bottom: 10px; }
.direct-info p  { font-size: 15px; color: #333; line-height: 1.65; margin-bottom: 10px; }
.direct-info p:last-child { margin-bottom: 0; }

.direct-info code {
  display: inline-block;
  background: #F2EFED;
  border: 1px solid #ddd;
  padding: 2px 8px;
  font-size: 13px;
  font-family: monospace;
  color: #0077B3;
  word-break: break-all;
}

.direct-info .link-type-label {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 16px;
  margin-bottom: 4px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer-links {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: rgba(0, 0, 0, 0.6);
}

.footer-links a {
  color: rgba(0,0,0,0.6);
  font-weight: 700;
  text-decoration: underline;
}

.footer-links a:hover { text-decoration: none; }

/* ── Print notice ─────────────────────────────────────────────────────────── */
.print-notice {
  margin-top: 16px;
  padding: 10px 14px;
  border-left: 4px solid #cc4100;
  background: #ffeee1;
  color: #666;
  font-size: 16px;
  line-height: 1.7;
}

.print-notice strong { color: #444; }

/* ── Auto-trigger overlay ─────────────────────────────────────────────────── */
.auto-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(242,239,237,.93);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.auto-overlay.show { display: flex; }

.auto-overlay .spinner-lg {
  width: 52px; height: 52px;
  border: 4px solid rgba(0,119,179,.2);
  border-top-color: #0077B3;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.auto-overlay p   { color: #0077B3; font-size: 20px; font-weight: 700; text-align: center; }
.auto-overlay .sub { color: #555; font-size: 15px; }

/* ── Upload area ──────────────────────────────────────────────────────────── */
.upload-area {
  border: 2px dashed #ccc;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #F2EFED;
}

.upload-area:hover,
.upload-area.drag-over { border-color: #0077B3; background: #E0F0FA; }

.upload-area input[type="file"] { display: none; }
.upload-area p { font-size: 15px; color: #555; margin: 0; }
.upload-area .upload-icon { font-size: 36px; margin-bottom: 8px; }

.upload-area.has-file { border-color: #2e9956; background: #E8F5EC; }
.upload-area.has-file p { color: #1a5e33; font-weight: 600; }

/* ── Component cards ──────────────────────────────────────────────────────── */
.component-card {
  background: #fff;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  border-left: 4px solid #0077B3;
  margin-bottom: 14px;
  text-align: left;
}

.component-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.13);
  transform: translateY(-1px);
}

.component-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0077B3;
  margin-bottom: 10px;
}

.component-card .meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px 16px;
}

.component-card .meta-item {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.component-card .meta-item strong { color: #222; font-weight: 600; }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.show { display: flex; }

.modal {
  background: #fff;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
  position: relative;
  animation: slideUp 0.25s ease;
}

.modal h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0077B3;
  margin-bottom: 22px;
  padding-right: 30px;
}

.modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 4px 8px;
}

.modal-close:hover { color: #000; }

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: #888;
  font-size: 15px;
}

/* ── Nav bar ──────────────────────────────────────────────────────────────── */
.top-nav {
  position: relative;
  z-index: 2;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.top-nav .nav-brand {
  font-size: 15px;
  font-weight: 700;
  color: #0077B3;
  text-decoration: none;
  flex-shrink: 0;
}

.top-nav .nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
  align-items: center;
}

.top-nav .nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
}

.top-nav .nav-links a:hover,
.top-nav .nav-links a.active { color: #0077B3; }

.top-nav .nav-user {
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #444;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.top-nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top-nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.top-nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.u-hidden        { display: none !important; }
.container--narrow { max-width: 480px; }
.card-desc       { font-size: 15px; color: #555; margin-bottom: 20px; line-height: 1.7; }
.card-desc-list  { font-size: 15px; color: #555; margin-bottom: 20px; line-height: 1.7; padding-left: 18px; margin-top: -8px; }
.btn--spaced     { margin-top: 16px; }

/* ── Secondary button ─────────────────────────────────────────────────────── */
.btn-secondary {
  padding: 12px 20px;
  background: #e8e4e2;
  color: #333;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .2s;
}

.btn-secondary:hover { background: #d5d0ce; }

/* ── Component grid ───────────────────────────────────────────────────────── */
.componenten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.component-kaart {
  background: #F2EFED;
  padding: 16px 18px;
  border-left: 3px solid #0077B3;
}

.component-kaart h3 {
  font-size: 14px;
  font-weight: 700;
  color: #0077B3;
  margin-bottom: 10px;
  line-height: 1.4;
}

.veld {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
}

.veld-naam {
  font-size: 12px;
  font-weight: 500;
  color: #888;
  white-space: nowrap;
  padding-top: 1px;
}

.veld-waarde {
  font-size: 13px;
  color: #222;
  word-break: break-word;
}

/* ── Action buttons ───────────────────────────────────────────────────────── */
.actie-knoppen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 20px;
}

.btn-actie {
  padding: 18px 12px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  line-height: 1.35;
}

.btn-actie:active:not(:disabled) { transform: scale(.98); }
.btn-actie:disabled { opacity: .5; cursor: not-allowed; }
.btn-actie .sub { font-size: 11px; font-weight: 400; opacity: .85; }

.btn-actie-correct    { background: #2e9956; color: #fff; }
.btn-actie-correct:not(:disabled):hover    { background: #237a43; }
.btn-actie-opmerking  { background: #d35400; color: #fff; }
.btn-actie-opmerking:not(:disabled):hover  { background: #b04500; }
.btn-actie-verwijderen { background: #c0392b; color: #fff; }
.btn-actie-verwijderen:not(:disabled):hover { background: #962d22; }
.btn-actie-toevoegen  { background: #0077B3; color: #fff; }
.btn-actie-toevoegen:not(:disabled):hover  { background: #005f8e; }

/* ── Voortgang / progress steps ──────────────────────────────────────────── */
.voortgang-box {
  margin-top: 16px;
  padding: 16px 18px;
  background: #E0F0FA;
  border-left: 4px solid #0077B3;
  display: none;
}

.voortgang-box.show   { display: block; }
.voortgang-box.done   { background: #E8F5EC; border-color: #2e9956; }
.voortgang-box.error  { background: #FDF0F0; border-color: #c0392b; }

.voortgang-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #005f8e;
  margin-bottom: 10px;
}

.voortgang-box.done  .voortgang-header { color: #1a5e33; }
.voortgang-box.error .voortgang-header { color: #8c1f1f; }

.voortgang-timer {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Roboto Mono', monospace;
  color: #0077B3;
  min-width: 36px;
  text-align: right;
}

.voortgang-stappen {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.voortgang-stap {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(-6px);
  animation: stapIn .25s ease forwards;
}

@keyframes stapIn {
  to { opacity: 1; transform: none; }
}

.voortgang-stap .stap-icon {
  width: 16px;
  text-align: center;
  font-style: normal;
  flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 740px) {
  .card, .direct-info, .auth-error-card { padding: 28px 20px; }
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .page-title { font-size: 22px; }
  .modal { padding: 24px 18px; }
  .modal-actions { flex-direction: column; }
  .actie-knoppen { grid-template-columns: 1fr; gap: 8px; }
  .btn-actie { padding: 13px 16px; }
  .componenten-grid { grid-template-columns: 1fr; }
  .stat-kaarten { grid-template-columns: 1fr; }
  .rapport-filterbar { flex-direction: column; align-items: stretch; }
  .filterbar-select-wrap { align-self: flex-start; }
}

/* ── Mobile nav ───────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .top-nav {
    height: auto;
    min-height: 52px;
    flex-wrap: wrap;
    padding: 0 16px;
    row-gap: 0;
  }

  /* Brand and hamburger stay on the first row */
  .top-nav .nav-brand  { padding: 14px 0; }
  .top-nav .nav-user   { display: none; }
  .nav-hamburger       { display: flex; }

  /* Links collapse to a vertical drawer below the first row */
  .top-nav .nav-links {
    position: static;
    transform: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    display: none;
    border-top: 1px solid #f0f0f0;
    padding: 4px 0 10px;
    order: 10;
  }

  .top-nav.nav-open .nav-links { display: flex; }

  .top-nav .nav-links a {
    padding: 10px 4px;
    font-size: 15px;
    width: 100%;
    border-bottom: 1px solid #f7f7f7;
  }

  .top-nav .nav-links a:last-child { border-bottom: none; }
}

/* ── Container wide (report page) ────────────────────────────────────────── */
.container--wide { max-width: 1400px; }

@media (min-width: 741px) {
  .container--wide { min-width: 640px; }
  .table-scroll    { min-height: 180px; }
}

/* ── At-a-glance stat cards ───────────────────────────────────────────────── */
.stat-kaarten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 20px;
}

.stat-kaart {
  background: #f7f9f7;
  border-left: 4px solid #2e9956;
  padding: 22px 26px 20px;
}

.stat-kaart-getal {
  font-size: 54px;
  font-weight: 700;
  color: #2e9956;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-kaart-naam {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2e9956;
  margin-top: 5px;
  margin-bottom: 18px;
}

.stat-kaart-detail {
  font-size: 13px;
  color: #888;
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
}

.stat-kaart-detail strong { color: #555; font-weight: 600; }

.stat-bar {
  height: 10px;
  border-radius: 5px;
  background: #fdecea;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  width: 0;
  background: #2e9956;
  border-radius: 5px;
  transition: width 0.8s ease;
}

/* ── Report filter bar ────────────────────────────────────────────────────── */
.rapport-filterbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filterbar-search {
  flex: 1;
  min-width: 140px;
  padding: 8px 12px;
  border: 1.5px solid #ddd;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #333;
  background: #f7f7f7;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.filterbar-search:focus {
  border-color: #0077B3;
  box-shadow: 0 0 0 3px rgba(0,119,179,.12);
  background: #fff;
}

.filterbar-select-wrap {
  position: relative;
  flex-shrink: 0;
}

.filterbar-select-wrap::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #0077B3;
  pointer-events: none;
}

.filterbar-select {
  padding: 8px 30px 8px 12px;
  border: 1.5px solid #ddd;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background: #f7f7f7;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.filterbar-select:focus {
  border-color: #0077B3;
  box-shadow: 0 0 0 3px rgba(0,119,179,.12);
  background: #fff;
}

.filterbar-checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  flex-shrink: 0;
}

.filterbar-checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: #0077B3;
  flex-shrink: 0;
}

/* ── Report table ─────────────────────────────────────────────────────────── */
.table-scroll {
  overflow-x: auto;
  border: 1px solid #e8e8e8;
}

.rapport-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.rapport-table thead tr { background: #f8f8f8; }

.rapport-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 9px 12px;
  border-bottom: 1px solid #e8e8e8;
  white-space: nowrap;
}

.rapport-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f2f2f2;
  vertical-align: middle;
}

.rapport-table tbody tr:last-child td { border-bottom: none; }
.rapport-table tbody tr:hover td { background: rgba(0,0,0,.022); }

/* No row tints — clean white rows */
.rapport-table .rij-correct td,
.rapport-table .rij-opmerking td,
.rapport-table .rij-verwijderen td,
.rapport-table .rij-toevoegen td { background: transparent; }

.rapport-table .rij-gearchiveerd td { color: #999; }
.rapport-table .rij-gearchiveerd .actie-badge { opacity: 0.65; }
.rapport-table .rij-gearchiveerd .btn-archiveer { opacity: 1; }

.td-tijdstip  { white-space: nowrap; font-size: 12.5px; }
.td-mono      { font-family: 'Roboto Mono', monospace; font-size: 12.5px; }
.td-opmerking { max-width: 260px; word-break: break-word; }
.td-num       { text-align: right; padding-right: 16px; }
.td-archiveer { text-align: center; padding: 6px 10px; }

/* Actie badges */
.actie-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-correct     { background: #eaf7f0; color: #1a6b3a; }
.badge-opmerking   { background: #fff8e5; color: #7a5100; }
.badge-verwijderen { background: #fdecea; color: #8c1a1a; }
.badge-toevoegen   { background: #e8f0fe; color: #1a4db8; }

.geen-opmerking { color: #ddd; }

/* Archive button */
.btn-archiveer {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: transparent;
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-archiveer:hover:not(:disabled) {
  border-color: #2e9956;
  color: #2e9956;
  background: #f0fdf5;
}

.btn-archiveer.is-gearchiveerd {
  border-color: #c8c8c8;
  color: #888;
  background: transparent;
}

.btn-archiveer.is-gearchiveerd:hover:not(:disabled) {
  border-color: #c0392b;
  color: #c0392b;
  background: #fff5f5;
}

.afgerond-hint {
  text-align: center;
  color: #bbb;
  font-size: 9px;
  margin-top: 10px;
  margin-bottom: 10px;
}
