/* Controle (27 september 2026, gebruikerskeuze met voorbeeldfoto's).
   Opbouw zoals de vernieuwde tabbladen (summa-ui.css): voortgangskaart, filter, vragen per soort (belangrijkste
   eerst, per afzender gebundeld, oranje streep = nakijken, lichter voor kleine vragen) en één kaart "Wat Sigmi
   controleert". Computer: twee kolommen. Mobiel: vragen direct onder de voortgang, terug naar Vandaag bovenaan.
   Het werkscherm (#reviewWorkbench) en de oude opmaak daarvan blijven ongewijzigd. Het filter is dezelfde
   summa-segment als op Facturen en Inzichten (bewust zonder de oude klasse checks-switch). */
#checksView .checks-back { display: none; }
#checksView .checks-layout { display: grid; gap: 16px; align-items: start; }
#checksView :is(.checks-side, .checks-main) { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 1000px) {
  #checksView .checks-layout { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
}
@media (max-width: 999px) {
  /* Eén kolom: eerst voortgang, filter en vragen, daarna de controles en de rest. */
  #checksView .checks-layout { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  #checksView :is(.checks-side, .checks-main) { display: contents; }
  #checksView .checks-hero { order: 1; }
  #checksView #checksSwitch { order: 2; }
  #checksView .checks-questions { order: 3; }
  #checksView .checks-coverage { order: 4; }
  #checksView .checks-recent { order: 5; }
  #checksView .checks-extra { order: 6; }
}
@media (max-width: 720px) {
  #checksView .checks-back {
    display: inline-flex; align-items: center; gap: 4px; justify-self: start; min-height: 44px; margin: -6px 0 2px;
    padding: 0; border: 0; background: none; box-shadow: none; color: var(--muted); font: 500 14px/1 Figtree, system-ui, sans-serif;
  }
  #checksView .checks-back .summa-icon { width: 18px; height: 18px; }
}

/* Voortgangskaart. */
#checksView .checks-hero-value { display: flex; align-items: baseline; gap: 10px; }
#checksView .checks-hero-unit { color: var(--muted); font: 400 20px/1 var(--font-display); letter-spacing: -.02em; }
#checksView .checks-progress-block { display: grid; gap: 7px; }
#checksView .checks-progress-row { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); font: 500 13px/1.35 Figtree, system-ui, sans-serif; }
#checksView .checks-progress-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
#checksView .checks-progress > i { background: var(--amber); transition: width .3s ease; }
#checksView .checks-hero.is-complete .checks-progress > i { background: color-mix(in srgb, var(--green) 70%, var(--paper)); }
/* Oude regels (styles.css, review.css) maakten van deze knop een volle knop op mobiel en van de lijst twee kolommen. */
#checksView #checksRefreshButton.checks-refresh { width: auto; min-height: 40px; border-color: var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; }
#checksView .checks-coverage-list { display: block; margin: 0; }
#checksView .checks-history-copy { overflow: visible; font-size: 14px; text-overflow: clip; white-space: normal; }
#checksView .checks-refresh {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-left: auto; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); box-shadow: none; color: var(--ink);
  font: 600 13px/1 Figtree, system-ui, sans-serif;
}
#checksView .checks-refresh .summa-icon { width: 16px; height: 16px; }
#checksView .checks-refresh.is-loading { opacity: .6; }

/* Kaarten. */
#checksView .checks-card, #checksView .checks-extra > .panel {
  margin: 0; padding: 16px 16px 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: none;
}
#checksView .checks-extra { display: grid; gap: 16px; }
#checksView .checks-extra > .panel[hidden] { display: none; }
#checksView .checks-extra > .panel h2, #checksView .checks-extra > details > summary { font: 600 14px/1.3 Figtree, system-ui, sans-serif; }
#checksView .checks-extra > details > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
#checksView .checks-card-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
#checksView .checks-card-head h2 { margin: 0; font: 400 22px/1.15 var(--font-display); letter-spacing: -.035em; }
#checksView .checks-card-note { margin-left: auto; color: var(--muted); font: 400 13px/1.3 Figtree, system-ui, sans-serif; }
#checksView .checks-focus-reset {
  margin-left: auto; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); box-shadow: none; color: var(--ink); font: 600 12.5px/1 Figtree, system-ui, sans-serif;
}
#checksView .checks-summary { margin: 0 0 4px; color: var(--muted); font: 400 13px/1.4 Figtree, system-ui, sans-serif; }

/* Vragen: soort, dan regels met oranje streep. */
#checksView .review-kind {
  display: flex; justify-content: space-between; margin: 14px 0 2px; color: var(--muted);
  font: 600 11px/1.3 Figtree, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase;
}
#checksView .review-question {
  display: grid; grid-template-columns: 4px minmax(0, 1fr) auto 18px; align-items: center; column-gap: 12px;
  width: 100%; min-height: 58px; margin: 0; padding: 9px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: transparent; box-shadow: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
#checksView .review-kind + .review-question { border-top: 0; }
#checksView .review-question:hover { background: transparent; }
#checksView .review-question:hover strong { text-decoration: underline; text-underline-offset: 3px; }
#checksView .review-question-bar { align-self: stretch; width: 4px; min-height: 34px; border-radius: 2px; background: var(--amber); }
#checksView .review-question.is-klein .review-question-bar { background: color-mix(in srgb, var(--amber) 45%, var(--line)); }
#checksView .review-question-text { display: grid; gap: 2px; min-width: 0; }
#checksView .review-question strong { margin: 0; font: 600 15px/1.3 Figtree, system-ui, sans-serif; overflow-wrap: anywhere; }
#checksView .review-question small { margin: 0; color: var(--muted); font: 400 13px/1.4 Figtree, system-ui, sans-serif; overflow-wrap: anywhere; }
#checksView .review-count {
  grid-column: 3; padding: 3px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--ink);
  font: 600 12px/1.3 Figtree, system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap;
}
#checksView .review-question-chevron { grid-column: 4; width: 18px; height: 18px; color: var(--muted); }
#checksView .review-question:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
#checksView .review-more { width: 100%; border-top: 1px solid var(--line); }

/* Wat Summa controleert: groen = in orde, oranje = tik om die documenten te zien. */
#checksView .checks-coverage-row {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 16px; align-items: center; column-gap: 10px;
  width: 100%; min-height: 48px; margin: 0; padding: 4px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: transparent; box-shadow: none; color: var(--ink); font: 500 14px/1.3 Figtree, system-ui, sans-serif; text-align: left;
}
#checksView .checks-coverage-row:first-child { border-top: 0; }
#checksView button.checks-coverage-row { cursor: pointer; }
#checksView button.checks-coverage-row.is-active .checks-coverage-label { text-decoration: underline; text-underline-offset: 3px; }
#checksView .checks-coverage-row strong { color: var(--ink); font: 600 14px/1.3 Figtree, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
#checksView .checks-coverage-mark { width: 18px; height: 18px; color: var(--green); }
#checksView .checks-coverage-dot { justify-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
#checksView .checks-coverage-chevron { width: 16px; height: 16px; color: var(--muted); }

/* Recent gecontroleerd en verslag. */
#checksView .checks-history-row {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 16px; align-items: center; column-gap: 10px;
  width: 100%; min-height: 48px; margin: 0; padding: 4px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: transparent; box-shadow: none; color: var(--ink); font: 500 14px/1.3 Figtree, system-ui, sans-serif; text-align: left;
}
#checksView .checks-history-row:first-child { border-top: 0; }
#checksView .checks-history-row:hover { background: transparent; }
#checksView .checks-history-mark { width: 18px; height: 18px; color: var(--green); }
#checksView .checks-history-copy { min-width: 0; overflow-wrap: anywhere; }
#checksView .checks-history-row time { display: block; color: var(--muted); font: 400 13px/1.3 Figtree, system-ui, sans-serif; white-space: nowrap; }
#checksView .checks-history-chevron { width: 16px; height: 16px; color: var(--muted); }
#checksView .checks-history-empty { margin: 4px 0 10px; color: var(--muted); font: 400 13px/1.45 Figtree, system-ui, sans-serif; }
#checksView .checks-download {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; margin: 0; padding: 0; border: 0;
  border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; color: var(--ink);
  font: 600 14px/1.3 Figtree, system-ui, sans-serif; text-align: left;
}
#checksView .checks-download .summa-icon { width: 18px; height: 18px; color: var(--muted); }
#checksView .checks-download small { color: var(--muted); font-weight: 400; }

/* Alles in orde binnen de selectie. */
#checksView .checks-clear-state { display: grid; justify-items: start; gap: 4px; padding: 10px 0 14px; }

/* Vandaag: de regel Controle met voortgang en het aantal vragen. */
#todayView #todayChecksButton.modern-checks-row { grid-template-columns: 34px minmax(0, 1fr) auto 18px; }
#todayView #todayChecksButton .modern-checks-row-text { display: grid; gap: 1px; min-width: 0; }
#todayView #todayChecksButton .modern-checks-row-text strong { font: 650 14px/1.3 Figtree, system-ui, sans-serif; }
#todayView #todayChecksButton .modern-checks-row-text small { color: var(--muted); font: 400 12.5px/1.35 Figtree, system-ui, sans-serif; }
#todayView #todayChecksButton .modern-checks-row-count {
  padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--amber) 16%, var(--paper)); color: var(--amber);
  font: 650 12px/1.3 Figtree, system-ui, sans-serif; font-variant-numeric: tabular-nums;
}
#todayView #todayChecksButton .modern-checks-row-count[hidden] { display: none; }
