/* ============================================================
   Orenta Google Ads Cockpit - Huisstijl
   Navy #0E2A4A | Goud #A88947 | Cream #F7F4EE | Wit kaarten
   ============================================================ */

:root {
  --navy: #0E2A4A;
  --navy-licht: #244363;
  --goud: #A88947;
  --goud-tekst: #755B27;
  --gold: #A88947;
  --goud-licht: #C9AE76;
  --cream: #F7F4EE;
  --wit: #fff;
  --tekst: #182F47;
  --tekst-zacht: #526273;
  --rand: #D7DAD7;
  --success: #146957;
  --success-bg: #E4F3EC;
  --fout: #A33536;
  --fout-bg: #FAEAE6;
  --waarschuwing: #84580B;
  --waarschuwing-bg: #FBF0D4;
  --pos: var(--success);
  --neg: var(--fout);
  --sidebar-bg: var(--navy);
  --sidebar-text: #D6E2EB;
  --sidebar-hover: #244363;
  --sidebar-active: #35516C;
  --sidebar-active-text: #FFFEFB;
  --sidebar-border: #35516C;
  --topbar-bg: var(--cream);
  --page-bg: var(--cream);
  --text-main: var(--tekst);
  --text-muted: var(--tekst-zacht);
  --border-color: var(--rand);
  --accent-color: var(--goud);
  --card-bg: var(--wit);
  --success-color: var(--success);
  --danger-color: var(--fout);
  --font-family: 'Inter', sans-serif;
  --type-title: 28px;
  --type-section: 20px;
  --type-body: 16px;
  --type-ui: 15px;
  --type-caption: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius: 8px;
  --schaduw: none;
}

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

html { font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--tekst);
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: var(--goud-tekst); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Login ---- */

.body--login {
  background: var(--navy);
  align-items: center;
  justify-content: center;
}

.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.login-kaart {
  background: var(--wit);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}

.login-logo {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--goud-tekst);
  margin-bottom: .5rem;
}

.login-titel {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
}

.login-subtitel {
  font-size: .875rem;
  color: var(--tekst-zacht);
  margin-bottom: 1.75rem;
}

.login-form { display: flex; flex-direction: column; gap: 1rem; }

/* ---- Pagina-kop ---- */

.pagina-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--rand);
}

.pagina-titel {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---- Periode-kiezer ---- */

.periode-kiezer {
  display: flex;
  gap: .25rem;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: .25rem;
}

.periode-optie {
  display: block;
  padding: .3rem .85rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: .8rem;
  font-weight: 500;
  color: var(--tekst-zacht);
  transition: background .15s, color .15s;
}
.periode-optie:hover { background: var(--cream); color: var(--tekst); text-decoration: none; }
.periode-optie--actief { background: var(--navy); color: var(--wit); }
.periode-optie--actief:hover { background: var(--navy); color: var(--wit); }

.periode-info {
  margin-top: 1.5rem;
  font-size: .8rem;
  color: var(--tekst-zacht);
}

/* ---- Meldingen ---- */

.melding {
  padding: .75rem 1.25rem;
  border-radius: 2px;
  font-size: .8125rem;
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.melding::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.melding--succes { background: var(--success-bg); color: var(--success); border: 1px solid #99F6E4; }
.melding--fout   { background: var(--fout-bg);    color: var(--fout);    border: 1px solid #FECACA; }
.melding--waarschuwing { background: var(--waarschuwing-bg); color: var(--waarschuwing); border: 1px solid #FDE68A; }

.ingest-hartslag-waarschuwing {
  margin-bottom: 1.5rem;
  padding: 1rem 1.125rem;
  color: var(--navy);
  background: #fff8e8;
  border: 1px solid var(--gold);
  border-left-width: 4px;
  border-radius: var(--radius);
}

.ingest-hartslag-waarschuwing p {
  margin: .35rem 0 .5rem;
}

.ingest-hartslag-titel {
  display: block;
  color: var(--navy);
}

.ingest-hartslag-lijst {
  margin: 0;
  padding-left: 1.25rem;
}

.signalen-detectie-bediening {
  display: flex;
  max-width: 34rem;
  flex-direction: column;
  align-items: flex-end;
  gap: .4rem;
}

.signalen-detectie-uitleg {
  margin: 0;
  color: var(--tekst-zacht);
  font-size: .8rem;
  line-height: 1.4;
  text-align: right;
}

@media (max-width: 768px) {
  .signalen-detectie-bediening {
    width: 100%;
    max-width: none;
    align-items: flex-start;
  }

  .signalen-detectie-uitleg {
    text-align: left;
  }
}

/* ---- Account-blok ---- */

.account-blok {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.account-blok-kop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .875rem 1.25rem;
  background: var(--navy);
  color: var(--wit);
}

.account-naam {
  font-weight: 700;
  font-size: 1rem;
}

.account-meta {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  margin-left: .75rem;
}

.account-doel {
  font-size: .8rem;
  color: var(--goud-licht);
  font-weight: 500;
}

/* ---- Tabellen ---- */

.tabel-wrapper {
  overflow-x: auto;
}

.tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: .8125rem;
}

.tabel thead th {
  padding: .5rem 1rem;
  text-align: left;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tekst-zacht);
  border-bottom: 2px solid var(--rand);
  background: #F1F5F9;
}

.tabel-kolom--getal { text-align: right; }
.tabel-kolom--delta { width: 80px; }

.tabel tbody tr { border-bottom: 1px solid var(--rand); }
.tabel tbody tr:hover { background: #F8FAFC; }

.tabel tbody td {
  padding: .5rem 1rem;
  vertical-align: middle;
}

.tabel-cel--naam {
  font-weight: 600;
  color: var(--navy);
  max-width: 280px;
}

.campagne-naam-tekst {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.dashboard-campagne-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
  align-items: center;
}

.meta-tag {
  font-size: 0.68rem;
  color: var(--tekst-zacht);
  background: var(--cream);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid var(--rand);
}

.tabel-rij--inactief {
  opacity: 0.6;
  background-color: rgba(248, 250, 252, 0.5);
  transition: opacity 0.2s;
}

.tabel-rij--inactief:hover {
  opacity: 1;
}

.tabel-rij--inactief .status-label {
  display: inline-flex;
  margin-left: .2rem;
  padding: .1rem .35rem;
  font-size: .625rem;
}

.tabel-cel--getal {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

.tabel-cel--delta {
  text-align: left;
  padding-left: .5rem;
  font-size: .75rem;
  white-space: normal;
}

.tabel-cel--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: .75rem; letter-spacing: -0.01em; color: var(--navy); }

.tabel-cel--overschreden { color: var(--fout); font-weight: 700; background: var(--fout-bg); padding: .125rem .375rem; border-radius: 2px; }

.dashboard-metriek-hoofd,
.dashboard-gemiddelde,
.data-onvoldoende {
  display: block;
}

.dashboard-gemiddelde {
  margin-top: .15rem;
  color: var(--tekst-zacht);
  font-size: .7rem;
  font-weight: 400;
  white-space: nowrap;
}

.data-onvoldoende {
  width: max-content;
  max-width: 10rem;
  margin-top: .25rem;
  padding: .12rem .35rem;
  color: var(--tekst-zacht);
  background: #eeece7;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
}

.tabel tfoot th {
  padding: .65rem 1.25rem;
  text-align: right;
  font-size: .875rem;
  font-weight: 700;
  border-top: 2px solid var(--rand);
  background: var(--cream);
  color: var(--navy);
}
.tabel tfoot th:first-child { text-align: left; }

.tabel-rij--actief { background: #f0efeb !important; }

/* ---- Delta kleuren ---- */
.delta-pos  { color: var(--pos); font-weight: 500; }
.delta-neg  { color: var(--neg); font-weight: 500; }
.delta-neutro { color: var(--tekst-zacht); }

/* ---- Kaarten ---- */

.kaart {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(10,29,51,0.04);
  overflow: hidden;
}

.kaart-kop {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--rand);
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kaart-titel {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.kaart-titel::before {
  content: '';
  display: block;
  width: 4px;
  height: 12px;
  background: var(--goud-licht);
  border-radius: 1px;
}

/* ---- Layout Instellingen ---- */

.inst-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .inst-layout { grid-template-columns: 1fr; }
}

.tech-details-inline summary {
  list-style: none;
}
.tech-details-inline summary::-webkit-details-marker {
  display: none;
}
.tech-details-inline[open] summary {
  opacity: 0.6;
}

/* ---- Formulier ---- */

.formulier {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.veld {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1;
}

.veld-rij {
  display: flex;
  gap: 1rem;
}

.veld-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--navy-licht);
}

.veld-vereist { color: var(--fout); }

.veld-hint {
  font-size: .75rem;
  color: var(--tekst-zacht);
}

.veld-input,
.veld-select {
  padding: .375rem .625rem;
  border: 1px solid var(--rand);
  border-radius: 2px;
  font-family: inherit;
  font-size: .8125rem;
  color: var(--tekst);
  background: var(--wit);
  transition: all .15s ease-in-out;
  width: 100%;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.veld-input:focus,
.veld-select:focus {
  outline: none;
  border-color: var(--goud-licht);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02), 0 0 0 2px rgba(156, 124, 62, 0.2);
}
.veld-input[readonly] {
  background: #F1F5F9;
  color: var(--tekst-zacht);
  border-color: var(--rand);
  cursor: default;
}

textarea.veld-input {
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.5;
}

/* ---- Schakelaar ---- */

.veld-schakelaar-groep {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.veld-schakelaar {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.schakelaar-input {
  appearance: none;
  width: 2.25rem;
  height: 1.25rem;
  background: var(--rand);
  border-radius: 1.25rem;
  position: relative;
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  transition: background 0.2s;
  flex-shrink: 0;
}
.schakelaar-input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.25rem - 4px);
  height: calc(1.25rem - 4px);
  background: var(--wit);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.schakelaar-input:checked {
  background: var(--navy);
}
.schakelaar-input:checked::after {
  transform: translateX(1rem);
}

.schakelaar-label {
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--navy-licht);
}

.formulier-acties {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding-top: .5rem;
}

/* ---- Knoppen ---- */

.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .375rem 1rem;
  border-radius: 2px;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease-in-out;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.knop:hover { text-decoration: none; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.knop:active { box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
.knop:focus-visible { outline: 2px solid var(--goud-licht); outline-offset: 2px; }

.knop--primair {
  background: var(--navy);
  color: var(--wit);
  border-color: rgba(255, 255, 255, 0.15);
}
.knop--primair:hover { background: var(--navy-licht); border-color: rgba(255, 255, 255, 0.25); color: var(--wit); }
.knop--primair,
.knop--primair:visited,
.knop--keyword,
.knop--keyword:visited {
  color: #fff;
}
.knop--primair:hover,
.knop--keyword:hover {
  color: #fff;
}

.knop--secundair {
  background: var(--wit);
  color: var(--navy);
  border-color: var(--rand);
}
.knop--secundair:hover { background: #F8FAFC; border-color: #94A3B8; }

.knop--vol { width: 100%; }

.knop--klein {
  padding: .3rem .65rem;
  font-size: .75rem;
}

/* ---- Zoektermenwachtrij ---- */

.zoektermen-kop {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.zoektermen-uitleg {
  color: var(--tekst-zacht);
  font-size: .875rem;
  margin-top: .25rem;
}

.account-kiezer {
  width: min(300px, 100%);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.zoektermen-overzicht {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(240px, 1fr) minmax(180px, .8fr);
  background: var(--navy);
  color: var(--wit);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  overflow: hidden;
  margin-bottom: 1rem;
}

.zoektermen-totaal,
.zoektermen-account {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.14);
}

.zoektermen-account {
  border-right: 0;
  justify-content: center;
}

.zoektermen-totaal-getal {
  color: var(--goud-licht);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.zoektermen-totaal-label,
.zoektermen-account-label {
  color: rgba(255,255,255,.65);
  font-size: .75rem;
  margin-top: .2rem;
}

.zoektermen-filterbalk {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.zoektermen-filter {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 999px;
  display: inline-flex;
  padding: .2rem;
}

.zoektermen-filteroptie {
  border-radius: 999px;
  color: var(--tekst-zacht);
  font-size: .8rem;
  font-weight: 600;
  padding: .45rem .75rem;
}

.zoektermen-filteroptie:hover {
  color: var(--navy);
  text-decoration: none;
}

.zoektermen-filteroptie--actief {
  background: var(--navy);
  color: var(--wit);
}

.zoektermen-filteroptie--actief:hover {
  color: var(--wit);
}

.zoektermen-verborgen {
  color: var(--tekst-zacht);
  font-size: .78rem;
}

.zoektermen-tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 1px solid var(--rand);
  margin-bottom: .75rem;
}

.zoektermen-tab {
  color: var(--tekst-zacht);
  font-size: .875rem;
  font-weight: 600;
  padding: .65rem 1rem;
  border-bottom: 3px solid transparent;
}

.zoektermen-tab:hover {
  color: var(--navy);
  text-decoration: none;
}

.zoektermen-tab--actief {
  color: var(--navy);
  border-bottom-color: var(--goud);
}

.zoektermen-lijst {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.zoekterm-rij {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-left: 4px solid var(--goud);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: .8rem 1rem;
  transition: opacity .16s, transform .16s;
}

.zoekterm-rij.is-bezig {
  opacity: .62;
  pointer-events: none;
}

.zoekterm-rij.is-verwijderd {
  opacity: 0;
  transform: translateX(12px);
}

.zoekterm-term {
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: .3rem;
  overflow-wrap: anywhere;
}

.zoekterm-context {
  color: var(--tekst-zacht);
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .85rem;
  font-size: .72rem;
}

.zoekterm-matchtype {
  background: var(--cream);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 600;
  padding: .05rem .45rem;
  text-transform: lowercase;
}

.zoekterm-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(64px, auto));
  gap: .8rem;
  text-align: right;
}

.zoekterm-metrics dt {
  color: var(--tekst-zacht);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.zoekterm-metrics dd {
  color: var(--navy);
  font-size: .88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.zoekterm-acties {
  display: flex;
  align-items: center;
  gap: .4rem;
  position: relative;
}

.zoekterm-acties form {
  display: inline-flex;
}

.knop--negatief,
.knop--keyword,
.knop--negeren {
  padding: .43rem .72rem;
  font-size: .72rem;
  text-transform: uppercase;
}

.knop--negatief {
  background: var(--fout);
  color: var(--wit);
  border-color: var(--fout);
  list-style: none;
}
.knop--negatief::-webkit-details-marker { display: none; }
.knop--negatief:hover { background: #991B1B; border-color: #991B1B; }

.knop--keyword {
  background: var(--navy);
  color: var(--wit);
  border-color: rgba(255, 255, 255, 0.15);
}

.knop--keyword:hover { background: var(--navy-licht); border-color: rgba(255, 255, 255, 0.25); }

.knop--negeren {
  background: var(--wit);
  color: var(--tekst-zacht);
  border-color: var(--rand);
}

.knop--negeren:hover { background: var(--cream); color: var(--navy); }

.negatief-menu {
  position: relative;
}

.negatief-menu[open] {
  z-index: 20;
}

.negatief-form {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  width: 260px;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(14,42,74,.16);
  display: grid !important;
  gap: .7rem;
  padding: .85rem;
}

.negatief-form label {
  color: var(--navy);
  display: grid;
  gap: .25rem;
  font-size: .72rem;
  font-weight: 600;
}

.negatief-menu-acties {
  display: flex;
  justify-content: flex-end;
  gap: .4rem;
}

.zoekterm-behandeld {
  min-width: 245px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
}

.zoekterm-behandeld > div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.zoekterm-behandeld-meta {
  color: var(--tekst-zacht);
  font-size: .68rem;
  margin-top: .15rem;
}

.status-label {
  border-radius: 999px;
  display: inline-flex;
  font-size: .68rem;
  font-weight: 700;
  padding: .16rem .52rem;
  text-transform: uppercase;
}

.status-label--negatief { color: var(--fout); background: var(--fout-bg); }
.status-label--keyword { color: var(--success); background: var(--success-bg); }
.status-label--genegeerd { color: var(--tekst-zacht); background: var(--cream); }

.zoektermen-leeg {
  margin-top: .75rem;
}

.is-verborgen {
  display: none !important;
}

.sneltoets-hulp {
  color: var(--tekst-zacht);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  font-size: .72rem;
  margin-top: .85rem;
}

kbd {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--navy);
  display: inline-block;
  font-family: inherit;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  min-width: 1.35rem;
  padding: .2rem .3rem;
  text-align: center;
}

.toast-regio {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.toast {
  align-items: center;
  background: var(--navy);
  border: 1px solid var(--goud);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(14,42,74,.24);
  color: var(--wit);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-width: 290px;
  padding: .75rem 1rem;
  font-size: .8rem;
}

.toast--fout {
  background: var(--fout);
  border-color: #d18b8d;
}

.toast-undo {
  background: transparent;
  border: 0;
  color: var(--goud-licht);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}

.toast-undo:disabled { opacity: .55; }

@media (max-width: 1050px) {
  .zoekterm-rij {
    grid-template-columns: 1fr auto;
  }

  .zoekterm-acties,
  .zoekterm-behandeld {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 680px) {
  .zoektermen-kop {
    align-items: stretch;
    flex-direction: column;
  }

  .zoektermen-filterbalk {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
  }

  .zoektermen-overzicht {
    grid-template-columns: 1fr 1fr;
  }

  .zoektermen-account {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,.14);
  }

  .zoekterm-rij {
    grid-template-columns: 1fr;
  }

  .zoekterm-metrics {
    text-align: left;
  }

  .zoekterm-acties,
  .zoekterm-behandeld {
    grid-column: auto;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .zoekterm-behandeld > div {
    align-items: flex-start;
  }

  .negatief-form {
    left: 0;
    right: auto;
  }

  .sneltoets-hulp {
    display: none;
  }

  .toast-regio {
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
  }

  .toast {
    min-width: 0;
    width: 100%;
  }
}

/* ---- Gepagineerde zoektermentabel ---- */
.zoektermen-paginainfo,
.zoektermen-paginering {
  align-items: center;
  display: flex;
  gap: .8rem;
}

.zoektermen-paginainfo {
  justify-content: space-between;
  margin: .75rem 0;
}

.zoektermen-paginering-status {
  color: var(--tekst-zacht);
  font-size: .8rem;
}

.zoektermen-tabel-scroll {
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--wit);
}

.zoektermen-tabel {
  border-collapse: collapse;
  min-width: 1060px;
  table-layout: fixed;
  width: 100%;
}

.zoektermen-tabel th,
.zoektermen-tabel td {
  border-bottom: 1px solid var(--rand);
  padding: .65rem .7rem;
  text-align: left;
  vertical-align: top;
}

.zoektermen-tabel th {
  background: var(--cream);
  color: var(--navy);
  font-size: .7rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.zoektermen-tabel th:first-child,
.zoektermen-tabel td:first-child { width: 2.5rem; }
.zoektermen-tabel th:nth-child(2) { width: 19%; }
.zoektermen-tabel th:nth-child(3) { width: 13%; }
.zoektermen-tabel th:nth-child(4) { width: 18%; }
.zoektermen-tabel th:nth-child(5) { width: 30%; }
.zoektermen-tabel th:nth-child(6) { width: 14rem; }
.zoekterm-tabelrij:last-child td { border-bottom: 0; }

.zoekterm-tabelrij:nth-child(even) { background: #FAFBFC; }
.zoekterm-selectie input { min-width: 1rem; min-height: 1rem; }
.zoekterm-tabelrij .zoekterm-term {
  display: block;
  font-size: .9rem;
  margin: 0 0 .2rem;
}

.zoekterm-tabelrij .zoekterm-context {
  display: block;
  margin-top: .2rem;
}

.zoekterm-tabelrij .zoekterm-metrics {
  gap: .25rem .7rem;
  grid-template-columns: repeat(2, minmax(3.8rem, 1fr));
  text-align: left;
}

.zoekterm-tabelrij .zoekterm-metrics dt { font-size: .58rem; }
.zoekterm-tabelrij .zoekterm-metrics dd { font-size: .75rem; }

.zoekterm-beoordeling {
  color: var(--tekst-zacht);
  font-size: .76rem;
  overflow-wrap: anywhere;
}

.zoekterm-beoordeling > * { display: block; margin-bottom: .25rem; }
.zoekterm-beoordeling .conflict-label { font-size: .7rem; }

.zoekterm-acties details { position: relative; }
.zoekterm-acties summary { cursor: pointer; list-style: none; }
.zoekterm-acties summary::-webkit-details-marker { display: none; }
.zoekterm-acties details form {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  display: grid;
  gap: .5rem;
  margin-top: .45rem;
  min-width: 12rem;
  padding: .65rem;
}

.zoekterm-acties details form label {
  display: grid;
  gap: .2rem;
  font-size: .7rem;
}

.zoektermen-bulk-controls {
  align-items: end;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: .75rem 0;
  padding: .75rem;
}

.zoektermen-bulk-controls[hidden] { display: none; }
.zoektermen-bulk-controls label { min-width: 9rem; }
.zoektermen-bulk-controls legend { color: var(--navy); font-weight: 700; }

@media (max-width: 680px) {
  .zoektermen-paginainfo { align-items: flex-start; flex-direction: column; }
  .zoektermen-paginering { justify-content: space-between; width: 100%; }
  .zoektermen-bulk-controls { align-items: stretch; flex-direction: column; }
}

.ngram-kolomkop,
.ngram-samenvatting {
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(200px, 1.7fr) repeat(5, minmax(80px, .7fr));
}

.ngram-kolomkop {
  color: var(--tekst-zacht);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .035em;
  padding: 0 1rem .35rem;
  text-align: right;
  text-transform: uppercase;
}

.ngram-kolomkop > :first-child {
  text-align: left;
}

.ngram-lijst {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.ngram-rij {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-left: 4px solid var(--goud);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  overflow: hidden;
}

.ngram-rij[open] {
  border-left-color: var(--navy);
}

.ngram-samenvatting {
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: .8rem 1rem;
}

.ngram-samenvatting::-webkit-details-marker {
  display: none;
}

.ngram-samenvatting:hover {
  background: #fbfaf7;
}

.ngram-samenvatting > span:not(.ngram-naam) {
  color: var(--navy);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ngram-samenvatting > span > small {
  display: none;
}

.ngram-naam {
  align-items: center;
  color: var(--navy);
  display: flex;
  gap: .65rem;
  min-width: 0;
}

.ngram-naam strong {
  overflow-wrap: anywhere;
}

.ngram-type {
  background: var(--cream);
  border: 1px solid var(--rand);
  border-radius: 999px;
  color: var(--tekst-zacht);
  flex: 0 0 auto;
  font-size: .62rem;
  font-weight: 700;
  padding: .12rem .42rem;
  text-transform: uppercase;
}

.ngram-details {
  border-top: 1px solid var(--rand);
  padding: 1rem;
}

.ngram-termen-wrap {
  overflow-x: auto;
}

.ngram-termen {
  border-collapse: collapse;
  font-size: .75rem;
  min-width: 820px;
  width: 100%;
}

.ngram-termen th {
  color: var(--tekst-zacht);
  font-size: .62rem;
  letter-spacing: .03em;
  padding: .4rem .5rem;
  text-align: left;
  text-transform: uppercase;
}

.ngram-termen td {
  border-top: 1px solid #ebe7df;
  padding: .55rem .5rem;
  vertical-align: top;
}

.ngram-termen td:nth-child(n + 4) {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ngram-termen td small {
  color: var(--tekst-zacht);
  display: block;
  margin-top: .1rem;
}

.ngram-bulk-form {
  align-items: flex-end;
  background: var(--cream);
  border-radius: var(--radius);
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(260px, 1fr) 160px 190px auto;
  margin-top: 1rem;
  padding: .85rem;
}

.ngram-bulk-form > p {
  color: var(--tekst-zacht);
  font-size: .76rem;
}

.ngram-bulk-form label {
  color: var(--navy);
  display: grid;
  font-size: .68rem;
  font-weight: 600;
  gap: .22rem;
}

.ngram-bulk-form.is-bezig,
.bulk-undo-form.is-bezig {
  opacity: .58;
  pointer-events: none;
}

.knop:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.bulk-geblokkeerd {
  color: var(--tekst-zacht);
  font-size: .7rem;
}

.bulk-geblokkeerd {
  background: var(--cream);
  border-radius: 999px;
  padding: .25rem .55rem;
}

@media (max-width: 980px) {
  .ngram-kolomkop,
  .ngram-samenvatting {
    grid-template-columns: minmax(180px, 1.5fr) repeat(5, minmax(66px, .65fr));
    gap: .4rem;
  }

  .ngram-bulk-form {
    grid-template-columns: 1fr 1fr;
  }

  .ngram-bulk-form > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .zoektermen-tabs {
    overflow-x: auto;
  }

  .zoektermen-tab {
    flex: 0 0 auto;
  }

  .ngram-kolomkop {
    display: none;
  }

  .ngram-samenvatting {
    grid-template-columns: repeat(2, 1fr);
    padding: .8rem;
  }

  .ngram-naam {
    grid-column: 1 / -1;
  }

  .ngram-samenvatting > span:not(.ngram-naam) {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    text-align: left;
  }

  .ngram-samenvatting > span > small {
    color: var(--tekst-zacht);
    display: inline;
    font-size: .62rem;
    font-weight: 400;
  }

  .ngram-details {
    padding: .75rem;
  }

  .ngram-bulk-form {
    grid-template-columns: 1fr;
  }

  .ngram-bulk-form > p {
    grid-column: auto;
  }

}

/* ---- Leeg staat ---- */

.leeg-staat {
  background: var(--wit);
  border: 1px dashed var(--rand);
  border-radius: 2px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--tekst-zacht);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.leeg-staat::before {
  content: 'ø';
  display: block;
  font-size: 2rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--rand);
  margin-bottom: 0.5rem;
}

.leeg-staat--placeholder .leeg-staat-icoon {
  display: none;
}

.leeg-staat-titel {
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy);
  margin: 0;
}

.leeg-staat-tekst { font-size: .75rem; font-family: ui-monospace, SFMono-Regular, monospace; }

.geen-data {
  padding: 1.5rem 1.25rem;
  color: var(--tekst-zacht);
  font-size: .75rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-style: italic;
}

/* ---- Footer ---- */

.footer {
  background: var(--navy);
  color: rgba(255,255,255,.35);
  font-size: .75rem;
  text-align: center;
  padding: .75rem;
  margin-top: auto;
}

/* ============================================================
   Ronde 3: Acties, Checklist, Logboek
   ============================================================ */

/* ---- Acties ---- */
.acties-waarschuwing { background: #FFFBEB; color: #92400E; padding: 1rem; border: 1px solid #FDE68A; border-radius: 2px; margin-bottom: 1.5rem; font-weight: 500; font-size: .8125rem; font-family: ui-monospace, SFMono-Regular, monospace; }
.acties-tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--rand); margin-bottom: 1.5rem; }
.acties-tab { padding: .5rem .75rem; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--tekst-zacht); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .15s; }
.acties-tab:hover { color: var(--navy); border-bottom-color: var(--rand); text-decoration: none; }
.acties-tab--actief { color: var(--navy); border-bottom-color: var(--goud); }
.acties-tab-badge { background: #E2E8F0; color: var(--tekst-zacht); border-radius: 2px; padding: .125rem .375rem; font-size: .6875rem; margin-left: .5rem; font-family: ui-monospace, SFMono-Regular, monospace; }
.acties-tab--actief .acties-tab-badge { background: var(--navy); color: var(--wit); }
.acties-subfilters { display: flex; flex-wrap: wrap; gap: .5rem; margin: -0.5rem 0 1.5rem; }
.acties-subfilter { border: 1px solid var(--rand); border-radius: 2px; color: var(--tekst-zacht); font-size: .75rem; font-weight: 600; padding: .35rem .55rem; }
.acties-subfilter:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.acties-subfilter span { font-family: ui-monospace, SFMono-Regular, monospace; margin-left: .3rem; }
.acties-subfilter--actief { background: var(--navy); border-color: var(--navy); color: var(--wit); }
.acties-subfilter--actief:hover { color: var(--wit); }

.actie-kaart { background: var(--wit); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(10,29,51,0.05); margin-bottom: 1rem; overflow: hidden; position: relative; }
.actie-kop { padding: .75rem 1.25rem; background: #F8FAFC; border-bottom: 1px solid var(--rand); display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.actie-titel { font-size: .875rem; font-weight: 700; color: var(--navy); font-family: ui-monospace, SFMono-Regular, monospace; letter-spacing: -0.02em; }
.actie-meta { font-size: .75rem; color: var(--tekst-zacht); font-family: ui-monospace, SFMono-Regular, monospace; }
.actie-status { font-size: .625rem; font-weight: 700; padding: .25rem .5rem; border-radius: 2px; text-transform: uppercase; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 0.25rem; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); }
.actie-status::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.actie-status--voorgesteld { background: #FEF3C7; color: #92400E; }
.actie-status--goedgekeurd { background: var(--success-bg); color: var(--success); }
.actie-status--afgewezen { background: var(--fout-bg); color: var(--fout); }
.actie-status--handmatig_uitgevoerd { background: #E2E8F0; color: #334155; }
.actie-status--uitvoering_bezig { background: #DBEAFE; color: #1D4ED8; }
.actie-status--schaduw_uitgevoerd { background: #EDE9FE; color: #6D28D9; }
.actie-status--automatisch_uitgevoerd { background: #DCFCE7; color: #166534; }
.actie-status--uitvoering_mislukt,
.actie-status--uitvoering_onzeker,
.actie-status--uitvoering_geannuleerd,
.actie-status--uitvoering_geweigerd { background: var(--fout-bg); color: var(--fout); }

.actie-inhoud { padding: 1.25rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .actie-inhoud { grid-template-columns: 1fr 320px; }
}
.actie-details { font-size: .8125rem; }
.actie-label { font-weight: 700; color: var(--navy-licht); margin-bottom: .375rem; display: block; font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; }
.actie-waarde { background: #F8FAFC; padding: .75rem; border-radius: 2px; border: 1px solid var(--rand); font-family: ui-monospace, SFMono-Regular, monospace; font-size: .75rem; word-break: break-all; white-space: pre-wrap; color: var(--navy); }
.actie-reden { color: var(--fout); font-style: italic; margin-top: .5rem; font-size: .75rem; }
.actie-route { margin-top: 1rem; padding: .75rem; border-left: 3px solid var(--rand); background: #F8FAFC; font-size: .8125rem; }
.actie-route strong { color: var(--navy); display: block; }
.actie-route p { color: var(--tekst-zacht); font-size: .75rem; line-height: 1.45; margin: .3rem 0 0; }
.actie-route--handmatig { border-left-color: #D97706; }
.actie-route--ongeldig { border-left-color: var(--fout); }
.actie-route--script,
.actie-route--uitgeschakeld { border-left-color: #B45309; }
.actie-route--simulatie { border-left-color: #7C3AED; }
.actie-route--automatisch { border-left-color: var(--success); }

.actie-formulier { display: flex; flex-direction: column; gap: 1rem; background: #F1F5F9; padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--rand); box-shadow: inset 0 1px 2px rgba(0,0,0,0.02); }
.actie-knoppen { display: flex; gap: .75rem; flex-wrap: wrap; }
.actie-kopie-container { display: flex; align-items: center; gap: .75rem; margin-top: 0; }
.actie-kopie-knop { white-space: nowrap; }
.kopie-succes { color: var(--success); font-size: .75rem; font-weight: 600; opacity: 0; transition: opacity .2s; }
.kopie-succes.is-zichtbaar { opacity: 1; }
.is-verborgen-copy { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }

.groepen-container { margin-bottom: 2rem; display: grid; gap: 1rem; }
.groep-kaart { background: var(--wit); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(10,29,51,0.05); }
.groep-kop { padding: .75rem 1rem; background: var(--navy); color: var(--wit); border-bottom: 1px solid var(--navy-licht); display: flex; justify-content: space-between; align-items: center; }
.groep-titel { font-size: .875rem; font-weight: 600; font-family: ui-monospace, SFMono-Regular, monospace; }
.groep-titel span { color: var(--goud-licht); font-size: .75rem; margin-left: .5rem; opacity: 0.8; }
.groep-acties { padding: .75rem 1rem; background: #F8FAFC; border-bottom: 1px solid var(--rand); display: flex; justify-content: space-between; align-items: center; }
.groep-regels { padding: 0; margin: 0; list-style: none; max-height: 240px; overflow-y: auto; background: #F1F5F9; }
.groep-regel { padding: .5rem 1rem; border-bottom: 1px solid var(--rand); font-size: .75rem; display: flex; gap: 1rem; align-items: center; }
.groep-regel:last-child { border-bottom: none; }
.groep-regel-term { font-weight: 700; color: var(--navy); flex: 1; font-family: ui-monospace, SFMono-Regular, monospace; }
.groep-regel-meta { color: var(--tekst-zacht); font-size: .6875rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- Checklist ---- */
.checklist-navigatie { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; background: var(--wit); padding: .75rem 1.25rem; border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schaduw); }
.checklist-maand { font-size: 1.125rem; font-weight: 700; color: var(--navy); }

.checklist-account { margin-bottom: 2.5rem; background: var(--wit); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schaduw); overflow: hidden; }
.checklist-account-kop { padding: 1rem 1.25rem; background: var(--navy); color: var(--wit); display: flex; justify-content: space-between; align-items: center; }
.checklist-account-titel { font-size: 1.125rem; font-weight: 700; }
.checklist-voortgang { display: flex; align-items: center; gap: .75rem; font-size: .875rem; font-weight: 600; }
.checklist-voortgang-balk { width: 100px; height: 8px; background: rgba(255,255,255,.2); border-radius: 4px; overflow: hidden; }
.checklist-voortgang-vul { height: 100%; background: var(--goud); transition: width .3s ease; }
.checklist-voortgang-tekst { color: var(--goud-licht); }

.checklist-items { display: flex; flex-direction: column; }
.checklist-item { padding: 1.25rem; border-bottom: 1px solid var(--rand); display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; transition: background .15s; }
@media (min-width: 900px) {
  .checklist-item { grid-template-columns: 1fr 320px; }
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item--afgevinkt { background: #f8faf9; }
.checklist-item--disabled { opacity: .6; background: var(--cream); pointer-events: none; }
.checklist-item-info { display: flex; flex-direction: column; gap: .5rem; }
.checklist-item-titel { font-size: 1rem; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.checklist-item-badge { font-size: .65rem; background: var(--cream); color: var(--tekst-zacht); padding: .1rem .4rem; border-radius: 4px; font-weight: 700; text-transform: uppercase; border: 1px solid var(--rand); }
.checklist-item-badge--hygiene { background: #fff3cd; color: #856404; border-color: #ffeeba; }
.checklist-item-beschrijving { font-size: .875rem; color: var(--tekst-zacht); }

.checklist-form { display: flex; flex-direction: column; gap: .75rem; }
.checklist-vinkregel { align-items: center; color: var(--navy); cursor: pointer; display: flex; font-size: .8rem; font-weight: 700; gap: .5rem; }
.checklist-vinkvak { accent-color: var(--success); height: 1.15rem; width: 1.15rem; }
.checklist-notitie { font-size: .875rem; padding: .5rem; border: 1px solid var(--rand); border-radius: var(--radius); width: 100%; resize: vertical; min-height: 60px; font-family: inherit; }
.checklist-notitie:focus { outline: none; border-color: var(--navy); }
.checklist-acties { display: flex; gap: .5rem; justify-content: flex-end; }
.checklist-meta { font-size: .75rem; color: var(--tekst-zacht); text-align: right; margin-top: .25rem; font-style: italic; }

.dialog-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(14,42,74,.6); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity .2s; padding: 1rem; }
.dialog-overlay.is-open { opacity: 1; pointer-events: auto; }
.dialog-venster { background: var(--wit); padding: 2rem; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: 480px; width: 100%; transform: translateY(10px); transition: transform .2s; }
.dialog-overlay.is-open .dialog-venster { transform: translateY(0); }
.dialog-titel { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.dialog-tekst { font-size: .95rem; color: var(--tekst); margin-bottom: 1.5rem; line-height: 1.6; }
.dialog-knoppen { display: flex; justify-content: flex-end; gap: .75rem; }

/* ---- Logboek ---- */
.logboek-filters { background: var(--wit); border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; box-shadow: 0 1px 2px rgba(10,29,51,0.05); }
.logboek-filters .veld { flex: 1; min-width: 180px; margin: 0; }
.logboek-tabel-container { background: var(--wit); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(10,29,51,0.05); overflow-x: auto; margin-bottom: 2rem; }
.logboek-waarde { font-family: ui-monospace, SFMono-Regular, monospace; font-size: .75rem; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; background: #F1F5F9; padding: .125rem .375rem; border-radius: 2px; border: 1px solid var(--rand); }
.logboek-reden { font-size: .75rem; color: var(--tekst-zacht); font-style: italic; max-width: 250px; display: inline-block; }
.export-knop { margin-left: auto; }

@media (max-width: 680px) {
  .acties-tabs {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .acties-tab { flex: 0 0 auto; padding-inline: .75rem; }
  .acties-subfilters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: thin; }
  .acties-subfilter { flex: 0 0 auto; white-space: nowrap; }
  .actie-kaart,
  .actie-inhoud,
  .actie-details,
  .actie-formulier,
  .groepen-container,
  .groep-kaart { min-width: 0; max-width: 100%; }
  .actie-kop,
  .actie-inhoud,
  .actie-formulier,
  .groep-kop,
  .groep-acties,
  .groep-regel { padding-inline: .875rem; }
  .actie-kopie-container { align-items: flex-start; flex-wrap: wrap; }
  .actie-kopie-knop { max-width: 100%; white-space: normal; }
  .actie-titel,
  .groep-titel,
  .groep-regel-term { min-width: 0; overflow-wrap: anywhere; }
  .groep-regel { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .groep-regel-meta { overflow-wrap: anywhere; }

  .checklist-navigatie,
  .checklist-account-kop { flex-wrap: wrap; gap: .75rem; }
  .checklist-maand { flex-basis: 100%; order: -1; text-align: center; }
  .checklist-account-titel { overflow-wrap: anywhere; }
  .checklist-meta { text-align: left; }
  .checklist-acties { justify-content: flex-start; }

  .logboek-filters .veld { min-width: 100%; }
  .export-knop { margin-left: 0; width: 100%; }
}

/* ============================================================
   Ronde 4: Signalen & Regels
   ============================================================ */

/* ---- Signalen ---- */

.signalen-lijst {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.signaal-kaart {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}

.signaal-kaart:hover {
  box-shadow: 0 4px 16px rgba(14,42,74,.1);
}

.signaal-kop {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rand);
  flex-wrap: wrap;
  gap: .5rem;
}

.signaal-kop--hoog { background: #fff8e6; border-bottom-color: #ffeeba; }
.signaal-kop--midden { background: var(--cream); border-bottom-color: var(--goud-licht); }
.signaal-kop--laag { background: #f8faf9; }

.signaal-kop-inhoud {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.signaal-titel {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.signaal-meta {
  font-size: .75rem;
  color: var(--tekst-zacht);
  font-weight: 500;
}

.signaal-ernst-badge {
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.signaal-ernst-badge--hoog { background: #e09f3e; color: var(--wit); }
.signaal-ernst-badge--midden { background: var(--navy-licht); color: var(--wit); }
.signaal-ernst-badge--laag { background: #94a3b8; color: var(--wit); }

.signaal-inhoud {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signaal-bericht {
  font-size: .95rem;
  color: var(--tekst);
  font-weight: 500;
}

.signaal-details {
  background: #faf9f7;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: .8rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.signaal-entiteit {
  display: flex;
  gap: .5rem;
}

.signaal-label {
  font-weight: 600;
  color: var(--navy);
}

.signaal-waarde {
  color: var(--tekst);
}

.signaal-json {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: .4rem;
}

.signaal-code {
  font-family: monospace;
  background: var(--wit);
  padding: .75rem;
  border-radius: 4px;
  border: 1px solid var(--rand);
  color: var(--tekst-zacht);
  white-space: pre-wrap;
  word-break: break-all;
  font-size: .75rem;
}

.signaal-acties {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: .75rem;
  border-top: 1px dashed var(--rand);
}

.signaal-afhandel-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  width: min(100%, 620px);
}

.signaal-afhandel-form .veld-input {
  min-width: 0;
}

.visueel-verborgen {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.signaal-afgehandeld-door {
  font-size: .75rem;
  color: var(--tekst-zacht);
  font-style: italic;
  font-weight: 500;
}

/* ---- Signaalregels Instellingen ---- */
.regels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .regels-grid { grid-template-columns: 1fr 1fr; }
}

.regel-kaart {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all .15s;
  box-shadow: 0 1px 2px rgba(10,29,51,0.04);
}

.regel-kaart:focus-within,
.regel-kaart:hover {
  border-color: var(--navy-licht);
  box-shadow: inset 0 0 0 1px var(--navy-licht), 0 4px 12px rgba(10,29,51,0.08);
}

.regel-kop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.regel-info {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.regel-titel {
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--navy);
}

.regel-uitleg {
  font-size: .75rem;
  color: var(--tekst-zacht);
  line-height: 1.4;
}

.regel-instellingen {
  background: #F8FAFC;
  padding: 1rem;
  border-radius: 2px;
  border: 1px solid var(--rand);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.regel-uitleg {
  font-size: .85rem;
  color: var(--tekst-zacht);
  line-height: 1.4;
}

.regel-schakelaar {
  flex-shrink: 0;
  margin-top: .15rem;
}

/* ---- Google Ads schrijfbrug ---- */

.schrijfbrug-sectie {
  margin-top: 1.5rem;
}

.schrijfbrug-uitleg {
  margin-top: .35rem;
  color: var(--tekst-zacht);
  font-size: .8125rem;
  line-height: 1.5;
}

.schrijfbrug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 1rem;
  padding: 1rem;
  background: #F1F5F9;
}

.schrijfbrug-kaart {
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--wit);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.schrijfbrug-kaart::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--rand);
  transition: background 0.2s;
}

.schrijfbrug-kaart:has(.schrijfbrug-modus--live)::before {
  background: var(--success);
}

.schrijfbrug-kaart:has(.schrijfbrug-modus--uit)::before {
  background: var(--fout);
}

.schrijfbrug-kaart--uit {
  border-color: #d6a3a3;
}

.schrijfbrug-kop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.schrijfbrug-kop h3 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: .25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.schrijfbrug-modus {
  border-radius: 2px;
  padding: .25rem .5rem;
  font-size: .625rem;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.schrijfbrug-modus::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.schrijfbrug-modus--shadow {
  background: #F1F5F9;
  color: var(--tekst-zacht);
}

.schrijfbrug-modus--live {
  background: var(--success-bg);
  color: var(--success);
}

.schrijfbrug-modus--uit {
  background: var(--fout-bg);
  color: var(--fout);
}

.schrijfbrug-waarschuwing {
  margin: 0;
  padding: .75rem 1rem;
  font-size: .75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
  border-radius: 2px;
}

.schrijfbrug-statistieken {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: #F8FAFC;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--rand);
}

.schrijfbrug-statistieken div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.schrijfbrug-statistieken dt {
  color: var(--tekst-zacht);
  font-size: .625rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}

.schrijfbrug-statistieken dd {
  margin: 0;
  color: var(--navy);
  font-size: .875rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.schrijfbrug-acties {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--rand);
}

.schrijfbrug-acties form {
  margin: 0;
}

.schrijfbrug-bevestiging {
  max-width: 640px;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(10,29,51,0.05);
}

.schrijfbrug-bevestiging .formulier {
  padding: 1.5rem;
  background: #F8FAFC;
  border-top: 1px solid var(--rand);
}

.schrijfbrug-installatie {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: 1.25rem;
  align-items: start;
}

.schrijfbrug-stappen {
  padding: 1.25rem 1.25rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  font-size: .8125rem;
  line-height: 1.6;
}

.schrijfbrug-stappen li {
  padding-left: .25rem;
}
.schrijfbrug-stappen li strong {
  color: var(--navy);
  font-weight: 700;
}

.schrijfbrug-installatie .melding,
.schrijfbrug-installatie .veld-hint {
  margin: 1rem 1.25rem;
}

.schrijfbrug-code-kaart {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.schrijfbrug-code {
  display: block;
  width: calc(100% - 2.5rem);
  min-height: 500px;
  margin: 0 1.25rem 1.25rem;
  padding: 1rem;
  resize: vertical;
  border: 1px solid var(--navy-licht);
  border-radius: 2px;
  background: var(--navy);
  color: #E2E8F0;
  font: .75rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  tab-size: 2;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

.schrijfbrug-code:focus {
  outline: none;
  border-color: var(--goud-licht);
}

.schrijfbrug-code-kaart .kopie-succes {
  display: block;
  margin: -1rem 1.25rem 1.25rem;
  opacity: 0;
}

.schrijfbrug-code-kaart .kopie-succes--zichtbaar {
  opacity: 1;
}

/* ---- Koppelingscontrole ---- */

.koppeling-samenvatting {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.koppeling-statuskaart {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.25rem;
  border-top: 3px solid var(--goud);
}

.koppeling-statuskaart strong {
  color: var(--navy);
  font-size: 1rem;
}

.koppeling-statuskaart > span:last-child {
  color: var(--tekst-zacht);
  font-size: .75rem;
}

.koppeling-label {
  color: var(--tekst-zacht);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.koppeling-sectie {
  margin-top: 1.5rem;
  min-width: 0;
  overflow: hidden;
}

.koppeling-sectie .tabel-wrapper {
  max-width: 100%;
}

.koppeling-run-grid,
.koppeling-periodes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem;
}

.koppeling-run-item,
.koppeling-periodes div {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem;
  border: 1px solid var(--rand);
  background: var(--cream);
}

.koppeling-run-item strong,
.koppeling-periodes dd {
  color: var(--navy);
  font-weight: 700;
}

.koppeling-run-item > span:last-child,
.koppeling-periodes dt {
  color: var(--tekst-zacht);
  font-size: .75rem;
}

.koppeling-run-item--ontbreekt {
  border-color: #F59E0B;
  background: var(--waarschuwing-bg);
}

.koppeling-acties {
  margin-top: 1.5rem;
}

.actie-uitvoering {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px dashed var(--rand);
  border-radius: 2px;
  background: #F1F5F9;
}

.actie-uitvoering dl,
.logboek-uitvoering {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .5rem;
}

.actie-uitvoering dl div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 1rem;
  font-size: .75rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.actie-uitvoering dt {
  color: var(--tekst-zacht);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}

.actie-uitvoering dd,
.logboek-uitvoering .tabel-cel--mono {
  overflow-wrap: anywhere;
  color: var(--navy);
  font-weight: 600;
}

.actie-fout {
  color: var(--fout);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--fout-bg);
  padding: .25rem .5rem;
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: .6875rem;
  display: inline-block;
  border: 1px solid #FECACA;
}

@media (max-width: 800px) {
  .koppeling-samenvatting,
  .koppeling-run-grid,
  .koppeling-periodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schrijfbrug-installatie {
    grid-template-columns: 1fr;
  }

  .schrijfbrug-code {
    min-height: 460px;
  }
}

@media (max-width: 520px) {
  .koppeling-samenvatting,
  .koppeling-run-grid,
  .koppeling-periodes {
    grid-template-columns: 1fr;
  }
  .schrijfbrug-statistieken {
    grid-template-columns: 1fr;
  }

  .schrijfbrug-acties,
  .schrijfbrug-acties form,
  .schrijfbrug-acties .knop {
    width: 100%;
  }
}

.regel-instellingen {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  background: #faf9f7;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--rand);
  margin-top: auto;
}

.conversie-waarschuwing {
  background: #fff8e6;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  gap: .75rem;
  align-items: center;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .signaal-kop {
    align-items: flex-start;
  }

  .signaal-kop-inhoud,
  .signaal-entiteit,
  .regel-kop,
  .signaal-afhandel-form {
    align-items: stretch;
    flex-direction: column;
  }

  .signaal-waarde,
  .signaal-titel,
  .regel-uitleg {
    overflow-wrap: anywhere;
  }

  .signaal-acties {
    justify-content: stretch;
  }

  .signaal-afhandel-form,
  .signaal-afhandel-form .knop {
    width: 100%;
  }

  .regel-instellingen .veld-rij {
    flex-direction: column;
  }

  .conversie-waarschuwing {
    display: block;
  }
}

/* ---- Campagnegenerator ---- */

.cg-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.cg-publicatie-status {
  display: grid;
  gap: .65rem;
  padding: 1rem;
  border: 1px solid var(--border, #d8dee8);
  border-left: 4px solid var(--navy);
  border-radius: .5rem;
  background: #f8fafc;
}

.cg-publicatie-status code,
.cg-publicatie-onderdelen code {
  font-size: .8rem;
  overflow-wrap: anywhere;
}

.cg-publicatie-onderdelen {
  margin: .75rem 0 0;
  padding-left: 1.25rem;
}

.cg-activatie-checklist {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: .5rem;
  background: #fff8e6;
  border: 1px solid #ecd89c;
}

.cg-activatie-checklist h4 {
  margin: 0 0 .5rem;
}

.cg-activatie-checklist ul {
  margin: 0;
  padding-left: 1.25rem;
}

.cg-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.cg-content {
  flex: 1;
  min-width: 0;
}

.cg-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.cg-nav-item {
  display: flex;
  align-items: center;
  padding: .65rem 1rem;
  border-radius: var(--radius);
  color: var(--tekst-zacht);
  font-weight: 500;
  font-size: .875rem;
  transition: background .15s, color .15s;
}

.cg-nav-item:hover {
  background: var(--wit);
  color: var(--navy);
  text-decoration: none;
}

.cg-nav-item--actief {
  background: var(--navy);
  color: var(--wit);
  font-weight: 600;
}
.cg-nav-item--actief:hover {
  background: var(--navy);
  color: var(--wit);
}

.cg-prestaties-kop {
  align-items: flex-end;
}

.cg-prestaties-kop .veld-hint {
  display: block;
  margin-top: .35rem;
}

.cg-ongekoppeld-kaart {
  margin-top: 1.5rem;
}

.cg-telling {
  display: inline-flex;
  min-width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  font-weight: 700;
}

.cg-voortgang {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  background: var(--wit);
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--rand);
  box-shadow: var(--schaduw);
}

.cg-stap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  position: relative;
  color: var(--tekst-zacht);
}

.cg-stap::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--rand);
  z-index: 1;
}

.cg-stap:last-child::after {
  display: none;
}

.cg-stap-nummer {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--rand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  z-index: 2;
  position: relative;
}

.cg-stap--actief {
  color: var(--navy);
}

.cg-stap--actief .cg-stap-nummer {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--wit);
}

.cg-stap--voltooid {
  color: var(--navy);
}

.cg-stap--voltooid .cg-stap-nummer {
  background: var(--wit);
  border-color: var(--goud);
  color: var(--goud-tekst);
}
.cg-stap--voltooid::after {
  background: var(--goud);
}

.cg-stap-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cg-bron-tabs {
  display: flex;
  gap: 1rem;
}

.cg-bron-tab {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  cursor: pointer;
  padding: .5rem 0;
}

.cg-bron-tab input {
  accent-color: var(--navy);
}

.cg-bron-tab:has(input:disabled) {
  cursor: not-allowed;
  opacity: .5;
}

.cg-briefing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .75fr);
  gap: 1rem;
  align-items: start;
}

.cg-briefing-intro {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .8rem 1rem;
  background: #f4efe2;
  border-left: 4px solid var(--goud);
  color: var(--navy);
  font-size: .8125rem;
}

.cg-account-context {
  color: var(--tekst-zacht);
  font-size: .75rem;
}

.cg-account-context strong {
  color: var(--navy);
}

.cg-briefing-intro span,
.cg-briefing-note span {
  color: var(--tekst-zacht);
  font-size: .75rem;
}

.cg-briefing-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cg-briefing-aside .panel {
  padding: 1rem;
}

.cg-briefing-aside h3 {
  color: var(--navy);
  font-size: .95rem;
  margin-bottom: .65rem;
}

.cg-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  color: var(--tekst-zacht);
  font-size: .78rem;
}

.cg-checklist li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}

.cg-checklist li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

.cg-briefing-note {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.cg-advanced-settings {
  border-top: 1px solid var(--rand);
  padding-top: .75rem;
}

.cg-advanced-settings summary {
  color: var(--navy);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
}

.cg-advanced-settings[open] summary {
  margin-bottom: .6rem;
}

@media (max-width: 800px) {
  .cg-briefing-layout {
    grid-template-columns: 1fr;
  }
}

.cg-mode-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: .25rem;
}

.cg-ai-melding,
.cg-validatie-melding,
.cg-export-instructie {
  margin-bottom: 1rem;
  padding: .9rem 1rem;
  color: var(--navy);
  background: #f4efe2;
  border: 1px solid #ddcfac;
  border-left: 4px solid var(--goud);
  border-radius: var(--radius);
  font-size: .875rem;
}

.cg-export-instructie {
  margin-bottom: 1rem;
  background: #eef5f1;
  border-color: #bfd8ca;
  border-left-color: var(--groen);
}

.cg-textarea {
  min-height: 200px;
  resize: vertical;
}

.cg-char-count {
  font-size: .75rem;
  color: var(--tekst-zacht);
  text-align: right;
  margin-top: .35rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.cg-char-count--warn { color: #d97706; }
.cg-char-count--error { color: var(--fout); font-weight: 600; }

.cg-input--ongeldig {
  border-color: var(--fout);
  background: #fffafa;
}

.cg-input--ongeldig:focus {
  border-color: var(--fout);
  box-shadow: 0 0 0 3px rgba(155, 34, 38, .12);
}

.cg-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.cg-review-header { flex-wrap:wrap; gap:1rem; min-width:0; }
.cg-review-header h3 { flex:1 1 240px; min-width:0; overflow-wrap:anywhere; }
.cg-review-actions { flex-wrap:wrap; max-width:100%; }
@media(max-width:600px) {
  .cg-review-header { flex-direction:column; align-items:stretch !important; }
  .cg-review-header h3 { flex-basis:auto; }
  .cg-review-actions { flex-direction:column; width:100%; }
  .cg-review-actions .knop { width:100%; max-width:100%; white-space:normal; box-sizing:border-box; }
}

.cg-kop-review {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cg-review-acties {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.cg-instellingen-blok {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
}

.cg-review-blok {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--cream);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
}

.cg-review-blok--ongeldig {
  border-left: 4px solid var(--fout);
}

.cg-groep-fouten {
  margin: -.35rem 0 1rem;
  color: var(--fout);
  font-size: .8rem;
  font-weight: 600;
}

.knop--uitgeschakeld {
  cursor: not-allowed;
  opacity: .55;
  user-select: none;
}

.cg-bulk-tool {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f4efe2;
  border: 1px solid #ddcfac;
  border-radius: var(--radius);
}

.cg-replace-tool {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
}

.cg-replace-tool .cg-review-kop {
  margin-bottom: .35rem;
  padding-bottom: 0;
  border-bottom: 0;
}

.cg-replace-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: .75rem;
  margin-top: .9rem;
}

.cg-replace-dialog {
  width: min(620px, calc(100vw - 2rem));
  margin: auto;
  padding: 1.5rem;
  color: var(--tekst);
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: 0 16px 60px rgba(14, 42, 74, .24);
}

.cg-replace-dialog::backdrop {
  background: rgba(14, 42, 74, .55);
}

.cg-replace-dialog h3 {
  margin-bottom: .5rem;
  color: var(--navy);
}

.cg-replace-dialog ul {
  max-height: 240px;
  margin: 1rem 0;
  padding-left: 1.25rem;
  overflow-y: auto;
  color: var(--tekst-zacht);
  font-size: .8rem;
}

.account-delete-zone {
  display: grid;
  gap: 1rem;
  margin: 0 1.5rem 1.5rem;
  padding: 1.25rem;
  border: 1px solid #F3B8B8;
  border-radius: var(--radius);
  background: #FFF8F8;
}

.account-delete-zone h3,
.account-delete-dialog h2 {
  margin: 0 0 .35rem;
  color: #7F1D1D;
}

.account-delete-zone p,
.account-delete-dialog p {
  margin: 0;
  line-height: 1.55;
}

.account-delete-zone .knop {
  justify-self: start;
}

.account-delete-dialog {
  width: min(640px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  box-sizing: border-box;
  margin: auto;
  padding: 1.5rem;
  overflow-y: auto;
  color: var(--tekst);
  background: var(--wit);
  border: 1px solid #F3B8B8;
  border-radius: var(--radius);
  box-shadow: 0 18px 65px rgba(14, 42, 74, .3);
}

.account-delete-dialog::backdrop {
  background: rgba(14, 42, 74, .62);
}

.account-delete-dialog form {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.account-delete-dialog h2,
.account-delete-dialog p,
.account-delete-dialog label,
.account-delete-dialog strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-delete-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin: 0;
}

.account-delete-counts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .75rem;
  border: 1px solid var(--rand);
  border-radius: 6px;
  background: var(--cream);
}

.account-delete-counts dt {
  color: var(--tekst-zacht);
}

.account-delete-counts dd {
  margin: 0;
  font-weight: 700;
}

.account-delete-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  line-height: 1.45;
}

.account-delete-check input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: .15rem;
  flex: 0 0 auto;
}

@media (max-width: 600px) {
  .account-delete-counts {
    grid-template-columns: 1fr;
  }

  .account-delete-dialog .formulier-acties {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .account-delete-dialog .formulier-acties .knop {
    width: 100%;
    white-space: normal;
  }
}

.cg-adgroup-name {
  margin-bottom: 1rem;
}

.cg-keyword-section {
  min-width: 0;
  padding: .9rem;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
}

.cg-keyword-section-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}

.cg-keyword-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.cg-keyword-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 105px auto;
  gap: .5rem;
  align-items: center;
}

.cg-keyword-row .knop {
  white-space: nowrap;
}

.cg-bulk-tool .cg-review-kop {
  margin-bottom: .35rem;
  padding-bottom: 0;
  border-bottom: 0;
}

.cg-bulk-grid {
  display: grid;
  grid-template-columns: 150px 150px minmax(220px, 1fr) auto;
  gap: .75rem;
  align-items: center;
  margin-top: .9rem;
}

.cg-bulk-feedback {
  min-height: 1.25rem;
  margin-top: .5rem;
  color: var(--navy);
  font-size: .78rem;
}

.cg-review-kop {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--rand);
}

.cg-review-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.cg-review-item .veld {
  margin-bottom: 0;
}

.veld-waarde {
  font-size: .875rem;
  padding: .4rem 0;
  color: var(--tekst);
}

.cg-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--rand);
  border-top-color: var(--goud);
  border-radius: 50%;
  animation: cg-spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

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

.cg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(247, 244, 238, 0.85);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cg-overlay-content {
  background: var(--wit);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(14, 42, 74, 0.15);
  border: 1px solid var(--rand);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.cg-overlay-text {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  margin: 0;
}

.cg-overlay-stappen {
  color: var(--tekst-zacht);
  font-size: .78rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  text-align: left;
  width: 100%;
}

.cg-overlay-stappen li {
  margin-top: .35rem;
}

.cg-overlay-stappen .is-actief {
  color: var(--navy);
  font-weight: 700;
}

.cg-overlay-stappen .is-klaar {
  color: var(--success);
}

.cg-review-meta {
  margin-bottom: 1.5rem;
}

.cg-review-veld-kop {
  margin-bottom: .5rem;
}

@media (max-width: 900px) {
  .cg-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 1rem;
  }
  .cg-sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .cg-content {
    width: 100%;
    max-width: 100%;
  }
  .cg-nav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-direction: row;
    overflow-x: auto;
  }
  .cg-nav-item { white-space: nowrap; }
  .cg-grid-2 { grid-template-columns: 1fr; gap: 1rem; }
  .cg-bulk-grid { grid-template-columns: 1fr 1fr; }
  .cg-bulk-grid .veld-input { grid-column: 1 / -1; }
  .cg-replace-grid { grid-template-columns: 1fr 1fr; }
  .cg-replace-grid .knop { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .cg-stap-label { display: none; }
  .cg-stap::after { top: 14px; }
  .cg-kop-review { flex-direction: column; align-items: flex-start; }
  .cg-bulk-grid { grid-template-columns: 1fr; }
  .cg-bulk-grid .veld-input { grid-column: auto; }
  .cg-replace-grid { grid-template-columns: 1fr; }
  .cg-replace-grid .knop { grid-column: auto; }
  .cg-keyword-section-kop { align-items: flex-start; flex-direction: column; }
  .cg-keyword-row { grid-template-columns: minmax(0, 1fr) 92px; }
  .cg-keyword-row .knop { grid-column: 1 / -1; justify-self: start; }
}

/* ---- Background Job UI ---- */
.cg-job-overlay { position: fixed; inset: 0; background: rgba(10, 29, 51, 0.4); backdrop-filter: blur(2px); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cg-job-overlay.is-verborgen { display: none !important; }
.cg-job-dialog { background: var(--wit); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(10, 29, 51, 0.2); width: 100%; max-width: 480px; overflow: hidden; display: flex; flex-direction: column; }
.cg-job-header { background: var(--navy); color: var(--wit); padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.cg-job-header h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.cg-job-close { background: transparent; border: none; color: rgba(255, 255, 255, 0.7); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: color 0.15s; }
.cg-job-close:hover { color: var(--wit); }
.cg-job-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.cg-job-progress { display: flex; flex-direction: column; gap: 0.5rem; }
.cg-job-progress-bar { height: 8px; background: var(--cream); border: 1px solid var(--rand); border-radius: 4px; overflow: hidden; }
.cg-job-progress-fill { height: 100%; background: var(--goud); width: 0%; transition: width 0.3s ease; }
.cg-job-message { font-size: 0.875rem; font-weight: 600; color: var(--navy); text-align: center; }
.cg-job-network-error { font-size: 0.75rem; color: var(--waarschuwing); text-align: center; min-height: 1.2em; }
.cg-job-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.8125rem; }
.cg-job-steps li { display: flex; align-items: center; gap: 0.5rem; color: var(--tekst-zacht); }
.cg-job-steps li::before { content: ''; display: block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--rand); background: var(--wit); }
.cg-job-steps li.is-actief { color: var(--navy); font-weight: 600; }
.cg-job-steps li.is-actief::before { border-color: var(--navy); background: var(--navy); box-shadow: 0 0 0 2px rgba(10, 29, 51, 0.2); }
.cg-job-steps li.is-klaar { color: var(--navy); }
.cg-job-steps li.is-klaar::before { border-color: var(--success); background: var(--success); }
.cg-job-error { background: var(--fout-bg); border: 1px solid #FECACA; padding: 1rem; border-radius: var(--radius); display: flex; flex-direction: column; gap: 0.75rem; }
.cg-job-error-msg { color: var(--fout); font-size: 0.875rem; font-weight: 600; margin: 0; }
.cg-job-banner { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--navy); color: var(--wit); padding: 1rem 1.25rem; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(10, 29, 51, 0.2); display: flex; align-items: center; gap: 1.5rem; z-index: 9998; border: 1px solid var(--goud-licht); }
.cg-job-banner.is-verborgen { display: none !important; }
.cg-job-banner-info { display: flex; flex-direction: column; gap: 0.125rem; }
.cg-job-banner-info strong { font-size: 0.875rem; color: var(--goud-licht); }
.cg-job-banner-info span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.8); }

.pagina-intro { margin: 0.4rem 0 0; color: var(--tekst-zacht); max-width: 760px; line-height: 1.55; }

/* Canonieke beheercases */
.beheer-uitleg { margin-bottom: 1rem; padding: 0.9rem 1rem; border-left: 3px solid var(--goud); background: #fffcf4; color: var(--tekst); border-radius: var(--radius); font-size: 0.875rem; }
.beheer-filters { align-items: end; margin-bottom: 0.75rem; }
.beheer-telling { margin: 0 0 1rem; color: var(--tekst-zacht); font-size: 0.875rem; }
.beheer-lijst { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.beheer-case { padding: 1.15rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--wit); box-shadow: var(--schaduw); }
.beheer-case h2 { margin: 0.65rem 0 0.3rem; font-size: 1.05rem; }
.beheer-case h2 a { color: var(--navy); text-decoration: none; }
.beheer-case h2 a:hover, .beheer-detail-link:hover { text-decoration: underline; }
.beheer-case p { margin: 0.45rem 0; line-height: 1.5; font-size: 0.875rem; }
.beheer-case .beheer-account { color: var(--tekst-zacht); font-size: 0.78rem; font-weight: 600; }
.beheer-case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; color: var(--tekst-zacht); font-size: 0.72rem; font-weight: 600; }
.beheer-case-meta > span:not(.signaal-ernst-badge) { padding: 0.2rem 0.5rem; border: 1px solid var(--rand); border-radius: 999px; background: #fafafa; }
.beheer-detail-link, .beheer-terug { display: inline-block; margin-top: 0.55rem; color: var(--navy); font-size: 0.82rem; font-weight: 700; }
.beheer-terug { margin: 0 0 1rem; }
.beheer-detail-kop { align-items: flex-start; }
.beheer-detail-kop .beheer-case-meta { margin-bottom: 0.65rem; }
.beheer-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.beheer-paneel { padding: 1.25rem; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--wit); }
.beheer-paneel h2 { margin: 0 0 0.8rem; color: var(--navy); font-size: 1.05rem; }
.beheer-paneel h3 { margin: 1rem 0 0.5rem; font-size: 0.875rem; }
.beheer-paneel p, .beheer-paneel li, .beheer-paneel dd, .beheer-paneel dt { font-size: 0.85rem; line-height: 1.55; }
.beheer-aanbeveling { border-top: 3px solid var(--goud); }
.beheer-disclaimer { padding-top: 0.8rem; border-top: 1px solid var(--rand); color: var(--tekst-zacht); }
.beheer-statuslijst { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1rem; margin: 0 0 1rem; }
.beheer-statuslijst dt { color: var(--tekst-zacht); }
.beheer-statuslijst dd { margin: 0; font-weight: 600; }
.beheer-form { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rand); }
.beheer-form .veld-input { width: 100%; }
.beheer-log { margin: 0; padding-left: 1.2rem; }
.beheer-log li + li { margin-top: 0.8rem; }
.beheer-log span { display: block; color: var(--tekst-zacht); font-size: 0.75rem; }
.beheer-log p { margin: 0.2rem 0 0; }
@media (max-width: 760px) {
  .beheer-lijst, .beheer-detail-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   OPERATIONS DASHBOARD
   ============================================================ */

.dash-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--rand);
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-page-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-page-subtitle {
  font-size: 0.8125rem;
  color: var(--tekst-zacht);
}

.dash-period-selector {
  display: inline-flex;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 4px;
  padding: 0.15rem;
}

.dash-period-btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tekst-zacht);
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.15s;
}
.dash-period-btn:hover { background: var(--cream); text-decoration: none; color: var(--navy); }
.dash-period-btn.active { background: var(--navy); color: var(--wit); }

/* Account Card */
.dash-account {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(10, 29, 51, 0.04);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.dash-account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rand);
  background: #FAFAFA;
}

.dash-account-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dash-account-title h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.dash-account-id {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--tekst-zacht);
  background: var(--cream);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--rand);
}

/* Status Badges */
.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dash-badge-green { background: var(--success-bg); color: var(--success); border: 1px solid #99F6E4; }
.dash-badge-green .indicator { background: var(--success); box-shadow: 0 0 4px var(--success); }

.dash-badge-red { background: var(--fout-bg); color: var(--fout); border: 1px solid #FECACA; }
.dash-badge-red .indicator { background: var(--fout); box-shadow: 0 0 4px var(--fout); }

.dash-badge-amber { background: var(--waarschuwing-bg); color: var(--waarschuwing); border: 1px solid #FDE68A; }
.dash-badge-amber .indicator { background: var(--waarschuwing); }

.dash-badge-gray { background: #F1F5F9; color: var(--tekst-zacht); border: 1px solid var(--rand); }
.dash-badge-gray .indicator { background: var(--tekst-zacht); }

/* Summary Grid */
.dash-account-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rand);
  border-bottom: 1px solid var(--rand);
}

.dash-summary-block {
  background: var(--wit);
  padding: 1rem 1.25rem;
}

.dash-summary-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--tekst-zacht);
  margin-bottom: 0.5rem;
}

.dash-summary-value {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--navy);
}

.dash-text-small {
  font-size: 0.8125rem;
}

.dash-text-red { color: var(--fout); font-weight: 600; }
.dash-text-green { color: var(--success); font-weight: 600; }
.dash-text-muted { color: var(--tekst-zacht); }

/* Table */
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.dash-table th {
  text-align: left;
  padding: 0.75rem 1.25rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tekst-zacht);
  border-bottom: 1px solid var(--rand);
  background: var(--wit);
  font-weight: 700;
}

.dash-table th.right { text-align: right; }

.dash-table tbody tr {
  border-bottom: 1px solid #F1F5F9;
  transition: background 0.15s;
}

.dash-table tbody tr:hover {
  background: #F8FAFC;
}

.dash-table td {
  padding: 0.875rem 1.25rem;
  vertical-align: top;
}

.dash-table td.right { text-align: right; }

.dash-campaign-name {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
}
.dash-campaign-name a { color: inherit; text-decoration: none; }
.dash-campaign-name a:hover { color: var(--goud-tekst); text-decoration: underline; }

.dash-campaign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.dash-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: var(--cream);
  border: 1px solid var(--rand);
  font-size: 0.65rem;
  color: var(--tekst-zacht);
  white-space: nowrap;
}

.dash-metric-value {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.dash-metric-sub {
  font-size: 0.7rem;
  color: var(--tekst-zacht);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.dash-row-inactive {
  opacity: 0.6;
  background: #FAFAFA;
}
.dash-row-inactive:hover { opacity: 1; }

.dash-table tfoot th {
  padding: 0.75rem 1.25rem;
  background: #F8FAFC;
  border-top: 2px solid var(--rand);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
}
.dash-table tfoot th.right { text-align: right; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* Empty state */
.dash-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--tekst-zacht);
  font-size: 0.875rem;
}

@media (max-width: 1024px) {
  .dash-account-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .dash-account-summary {
    grid-template-columns: 1fr;
  }
  .dash-table {
    display: block;
    overflow-x: auto;
  }
  .dash-account-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ---- Beheer UI ---- */

.beheer-uitleg {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-left: 3px solid var(--goud-licht);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--tekst-zacht);
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(10,29,51,0.02);
  line-height: 1.5;
}

.beheer-filters {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  background: var(--wit);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--rand);
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(10,29,51,0.02);
}
.beheer-filters .veld {
  margin-bottom: 0;
}
.beheer-filters .knop {
  height: 36px;
}
@media (max-width: 600px) {
  .beheer-filters { flex-direction: column; align-items: stretch; }
  .beheer-filters .knop { height: auto; padding: 0.5rem; }
}

.beheer-telling {
  font-size: 0.875rem;
  color: var(--tekst-zacht);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rand);
}
.beheer-telling strong {
  color: var(--navy);
  font-weight: 700;
}

.beheer-lijst {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.beheer-case {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(10,29,51,0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}
.beheer-case:hover {
  box-shadow: 0 4px 12px rgba(10,29,51,0.08);
  border-color: var(--goud-licht);
}

.beheer-case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--tekst-zacht);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.beheer-case-meta span:not(.signaal-ernst-badge) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.beheer-case-meta span:not(.signaal-ernst-badge)::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rand);
}
.beheer-case-meta span:not(.signaal-ernst-badge):first-child::before {
  display: none;
}

.signaal-ernst-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--wit);
  text-transform: uppercase;
}
.signaal-ernst-badge--hoog { background: var(--fout); }
.signaal-ernst-badge--middel { background: var(--waarschuwing); color: var(--wit); }
.signaal-ernst-badge--laag { background: var(--success); }

.beheer-case h2 {
  font-size: 1.125rem;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}
.beheer-case h2 a {
  color: inherit;
  text-decoration: none;
}
.beheer-case h2 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.beheer-case h2 a:hover {
  color: var(--goud-tekst);
}

.beheer-account {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-licht);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--cream);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--rand);
}

.beheer-samenvatting {
  font-size: 0.875rem;
  color: var(--tekst);
  line-height: 1.5;
  max-width: 75ch;
  margin: 0;
}

.beheer-detail-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--goud-tekst);
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  z-index: 2;
  text-decoration: none;
}
.beheer-detail-link::after {
  content: '→';
  transition: transform 0.2s;
}
.beheer-case:hover .beheer-detail-link::after {
  transform: translateX(3px);
}
.beheer-detail-link:hover {
  text-decoration: underline;
}

/* Detail page */
.beheer-terug {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tekst-zacht);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s;
}
.beheer-terug::before {
  content: '←';
  font-size: 1rem;
  line-height: 1;
}
.beheer-terug:hover {
  color: var(--navy);
  text-decoration: none;
}

.beheer-detail-kop {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 2rem;
}
.beheer-detail-kop .beheer-case-meta {
  margin-bottom: 0.85rem;
}
.beheer-detail-kop .pagina-titel {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}
.beheer-detail-kop .pagina-intro {
  font-size: 0.875rem;
  color: var(--navy-licht);
  font-weight: 500;
}

.beheer-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .beheer-detail-grid {
    grid-template-columns: 1fr;
  }
}

.beheer-detail-hoofd {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.beheer-detail-zij {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.beheer-paneel {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(10,29,51,0.02);
}
.beheer-paneel h2 {
  font-size: 0.875rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rand);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.beheer-paneel h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 12px;
  background: var(--goud-licht);
  border-radius: 1px;
}
.beheer-paneel h3 {
  font-size: 0.875rem;
  color: var(--navy-licht);
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}
.beheer-paneel p {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.beheer-paneel ul {
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--tekst);
  line-height: 1.6;
}
.beheer-paneel ul li {
  margin-bottom: 0.5rem;
}

.beheer-aanbeveling {
  background: var(--navy);
  color: var(--wit);
  border-color: var(--navy);
}
.beheer-aanbeveling h2 {
  color: var(--wit);
  border-bottom-color: rgba(255,255,255,0.15);
}
.beheer-aanbeveling p {
  color: rgba(255,255,255,0.9);
  font-size: 0.9375rem;
  font-weight: 500;
}
.beheer-disclaimer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.6) !important;
  font-style: italic;
  font-weight: 400 !important;
}

.beheer-paneel--actie {
  border-top: 3px solid var(--goud);
}

.beheer-statuslijst {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.85rem 1.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rand);
}
.beheer-statuslijst dt {
  color: var(--tekst-zacht);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.6875rem;
  padding-top: 0.15rem;
}
.beheer-statuslijst dd {
  color: var(--navy);
  font-weight: 600;
}

.beheer-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.beheer-log {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.beheer-log li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.8125rem;
}
.beheer-log li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rand);
  box-shadow: 0 0 0 4px var(--wit);
  z-index: 2;
}
.beheer-log li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 0.35rem;
  bottom: -1.85rem;
  width: 1px;
  background: var(--rand);
  z-index: 1;
}
.beheer-log strong {
  display: block;
  color: var(--navy);
  font-size: 0.875rem;
  margin-bottom: 0.15rem;
}
.beheer-log span {
  display: block;
  color: var(--tekst-zacht);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}
.beheer-log p {
  margin: 0;
  color: var(--tekst);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.beheer-log .tekst-fout {
  color: var(--fout);
  margin-top: 0.5rem;
  background: var(--fout-bg);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border-left: 2px solid var(--fout);
}

/* ---- Generator Redesign Updates ---- */
.cg-subnav {
  display: flex;
  gap: 0.5rem;
}
.cg-subnav-tab {
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--cream);
  color: var(--tekst-zacht);
  border: 1px solid var(--rand);
  transition: all 0.2s ease;
}
.cg-subnav-tab:hover {
  background: #E2E8F0;
  color: var(--navy);
  text-decoration: none;
}
.cg-subnav-tab--actief {
  background: #E0E7FF;
  color: #1E3A8A;
  border-color: #C7D2FE;
}

.cg-def-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.6rem 1rem;
  font-size: 0.8125rem;
  margin: 0;
}
.cg-def-list dt {
  color: var(--tekst-zacht);
  font-weight: 600;
  margin: 0;
}
.cg-def-list dd {
  color: var(--navy);
  font-weight: 500;
  margin: 0;
}
.cg-def-list dd a {
  color: var(--goud-tekst);
  word-break: break-all;
}

.cg-keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cg-keyword-badge {
  background: var(--cream);
  border: 1px solid var(--rand);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--navy);
  font-weight: 500;
}
.cg-keyword-badge--negative {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}

.cg-ad-preview {
  background: var(--wit);
  border: 1px solid var(--rand);
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.cg-ad-preview-url {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tekst);
  margin-bottom: 0.35rem;
}
.cg-ad-preview-title {
  font-size: 1.125rem;
  color: #1A0DAB;
  text-decoration: none;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.cg-ad-preview-desc {
  font-size: 0.875rem;
  color: #4D5156;
  line-height: 1.4;
}

.cg-advanced-settings > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cg-advanced-settings > summary::-webkit-details-marker {
  display: none;
}
.cg-advanced-settings > summary::before {
  content: '▶';
  font-size: 0.75rem;
  transition: transform 0.2s;
}
.cg-advanced-settings[open] > summary::before {
  transform: rotate(90deg);
}

/* Beheercases: decision workspace, scoped to the two beheer views. */
.beheer-page {
  --beheer-line: #d7dfe5;
  --beheer-soft: #edf2f4;
  --beheer-ink: #173149;
  --beheer-gold: #987a43;
  max-width: 1320px;
  margin: 0 auto;
  padding-bottom: 3rem;
}
.beheer-page .beheer-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1.4rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy-licht);
}
.beheer-page .beheer-hero {
  border-top: 3px solid var(--goud);
  padding: 1.5rem 0 1.7rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--beheer-line);
}
.beheer-page .beheer-eyebrow {
  color: var(--beheer-gold);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: .45rem;
}
.beheer-page .beheer-hero h1 {
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1.13;
  letter-spacing: -.035em;
  max-width: 900px;
}
.beheer-page .beheer-lead {
  color: var(--tekst-zacht);
  font-size: .94rem;
  max-width: 74ch;
  line-height: 1.65;
  margin-top: .7rem;
}
.beheer-page .beheer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--tekst-zacht);
}
.beheer-page .beheer-meta a,
.beheer-page .beheer-link { color: var(--navy); text-decoration: underline; text-decoration-color: var(--goud); text-underline-offset: 3px; }
.beheer-page .beheer-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--beheer-line);
  border-radius: 3px;
  color: var(--navy);
  background: var(--wit);
  padding: .22rem .55rem;
  font-size: .71rem;
  font-weight: 700;
  line-height: 1.35;
}
.beheer-page .beheer-tag--priority { border-color: #d8c7a4; background: #faf5e9; color: #715627; }
.beheer-page .beheer-tag--waiting { border-color: #c9a96d; background: #f8eed9; color: #665027; }
.beheer-page .beheer-tag--disabled { background: var(--beheer-soft); color: var(--tekst-zacht); }
.beheer-page .beheer-section {
  background: var(--wit);
  border: 1px solid var(--beheer-line);
  border-radius: 4px;
  box-shadow: var(--schaduw);
  margin-top: 1.15rem;
  overflow: hidden;
}
.beheer-page .beheer-section-head {
  padding: 1.05rem 1.2rem;
  border-bottom: 1px solid var(--beheer-line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4rem 1rem;
}
.beheer-page .beheer-section-head h2 { color: var(--navy); font-size: 1.05rem; letter-spacing: -.015em; }
.beheer-page .beheer-section-head p { font-size: .76rem; color: var(--tekst-zacht); }
.beheer-page .beheer-section-body { padding: 1.1rem 1.2rem; }
.beheer-page .beheer-section-body > * + * { margin-top: .9rem; }
.beheer-page .beheer-summary { font-size: 1.02rem; line-height: 1.7; max-width: 78ch; color: var(--beheer-ink); }
.beheer-page .beheer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  padding: 1rem 1.2rem;
  background: var(--navy);
  color: var(--wit);
  border-radius: 4px;
}
.beheer-page .beheer-stats div { display: grid; gap: .12rem; }
.beheer-page .beheer-stats strong { font-size: 1.4rem; line-height: 1.15; font-variant-numeric: tabular-nums; color: #e8ca8d; }
.beheer-page .beheer-stats span { font-size: .72rem; color: #d4e0ea; }
.beheer-page .beheer-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(285px, .85fr); gap: 1.25rem; align-items: start; }
.beheer-page .beheer-layout > * { min-width: 0; }
.beheer-page .beheer-table-wrap { overflow-x: auto; }
.beheer-page .beheer-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .8rem; }
.beheer-page .beheer-table th { text-align: left; background: #f0f3f5; color: var(--tekst-zacht); font-size: .67rem; letter-spacing: .045em; text-transform: uppercase; padding: .8rem .7rem; border-bottom: 1px solid var(--beheer-line); white-space: nowrap; }
.beheer-page .beheer-table td { padding: .8rem .7rem; border-bottom: 1px solid var(--beheer-line); vertical-align: top; }
.beheer-page .beheer-table tr:last-child td { border-bottom: 0; }
.beheer-page .beheer-table tbody tr:hover { background: #f8fafb; }
.beheer-page .beheer-table .beheer-number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.beheer-page .beheer-term { display: block; font-size: .86rem; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; min-width: 145px; }
.beheer-page .beheer-subtext { display: block; color: var(--tekst-zacht); font-size: .72rem; line-height: 1.5; margin-top: .28rem; overflow-wrap: anywhere; }
.beheer-page .beheer-disable { display: grid; gap: .35rem; min-width: 170px; }
.beheer-page .beheer-disable label, .beheer-page .beheer-decision label { font-weight: 700; color: var(--navy); font-size: .75rem; }
.beheer-page .beheer-disable button { justify-self: start; }
.beheer-page .beheer-evidence { display: grid; margin: 0; }
.beheer-page .beheer-evidence > div { display: grid; grid-template-columns: minmax(125px, 28%) 1fr; gap: .4rem 1rem; padding: .78rem 0; border-bottom: 1px solid var(--beheer-line); }
.beheer-page .beheer-evidence > div:last-child { border-bottom: 0; }
.beheer-page .beheer-evidence dt { font-weight: 700; color: var(--navy); font-size: .8rem; }
.beheer-page .beheer-evidence dd { color: var(--beheer-ink); font-size: .85rem; overflow-wrap: anywhere; }
.beheer-page .beheer-evidence .beheer-evidence-depth { padding-left: 1.2rem; }
.beheer-page .beheer-decision form { display: grid; gap: .55rem; margin-top: 1rem; }
.beheer-page .beheer-decision button { justify-self: start; }
.beheer-page .beheer-decision .beheer-divider { border-top: 1px solid var(--beheer-line); margin-top: 1.2rem; }
.beheer-page .beheer-note { background: #f3f6f7; border-left: 3px solid var(--goud); padding: .85rem 1rem; color: var(--beheer-ink); font-size: .82rem; line-height: 1.55; }
.beheer-page .beheer-note ul { margin: .35rem 0 0 1.1rem; }
.beheer-page .beheer-small { font-size: .76rem; line-height: 1.55; color: var(--tekst-zacht); }
.beheer-page .beheer-history { list-style: none; margin: 0; padding: 0; }
.beheer-page .beheer-history li { display: grid; grid-template-columns: 125px 1fr; gap: 1rem; border-bottom: 1px solid var(--beheer-line); padding: .75rem 0; font-size: .83rem; }
.beheer-page .beheer-history li:last-child { border-bottom: 0; }
.beheer-page .beheer-history time { color: var(--tekst-zacht); font-size: .75rem; }
.beheer-page .beheer-filter-row { display: flex; align-items: end; flex-wrap: wrap; gap: .85rem; }
.beheer-page .beheer-filter-row .veld { flex: 1 1 200px; }
.beheer-page .beheer-filter-row button { min-height: 34px; }
.beheer-page .beheer-group-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 2rem 0 .65rem; }
.beheer-page .beheer-group-heading h2 { color: var(--navy); font-size: 1.08rem; }
.beheer-page .beheer-group-heading span { font-size: .74rem; color: var(--tekst-zacht); }
.beheer-page .beheer-case-table { min-width: 1000px; }
.beheer-page .beheer-case-table td { padding-top: .95rem; padding-bottom: .95rem; }
.beheer-page .beheer-case-table .beheer-title { font-size: .91rem; font-weight: 700; color: var(--navy); display: block; line-height: 1.35; }
.beheer-page .beheer-case-table .beheer-account { color: var(--tekst-zacht); font-size: .72rem; margin-top: .2rem; }
.beheer-page .beheer-bottom { margin-top: 2rem; border-top: 1px solid var(--beheer-line); padding-top: .75rem; font-size: .69rem; color: var(--tekst-zacht); }
.beheer-page button:disabled { cursor: not-allowed; opacity: .48; }
.beheer-page :is(a, button, input, textarea, select, summary):focus-visible { outline: 2px solid var(--goud); outline-offset: 3px; }
@media (max-width: 900px) {
  .beheer-page .beheer-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .beheer-page .beheer-hero { padding-top: 1rem; }
  .beheer-page .beheer-section-head, .beheer-page .beheer-section-body { padding-left: .9rem; padding-right: .9rem; }
  .beheer-page .beheer-history li { grid-template-columns: 1fr; gap: .2rem; }
  .beheer-page .beheer-evidence > div { grid-template-columns: 1fr; gap: .18rem; }
  .beheer-page .beheer-evidence .beheer-evidence-depth { padding-left: .65rem; }
}

.beheer-page .beheer-layout--actions { grid-template-columns: minmax(0, 1fr); }
.beheer-page .beheer-action-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.beheer-page .beheer-action-table th,
.beheer-page .beheer-action-table td {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
.beheer-page .beheer-action-table th:nth-child(1) { width: 19%; }
.beheer-page .beheer-action-table th:nth-child(2) { width: 14%; }
.beheer-page .beheer-action-table th:nth-child(3) { width: 19%; }
.beheer-page .beheer-action-table th:nth-child(4) { width: 9%; }
.beheer-page .beheer-action-table th:nth-child(5) { width: 15%; }
.beheer-page .beheer-action-table th:nth-child(6) { width: 12%; }
.beheer-page .beheer-action-table th:nth-child(7) { width: 12%; }
.beheer-page .beheer-action-metrics > span { display: block; line-height: 1.45; }
.beheer-page .beheer-action-metrics strong { color: var(--navy); }
.beheer-page .beheer-action-preview-row > td {
  padding: .25rem .7rem 1rem;
  background: #f7f9fa;
}
.beheer-page .beheer-alternatieven {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-left: 3px solid var(--goud);
  background: #fff;
  line-height: 1.55;
}
.beheer-page .beheer-alternatieven ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.beheer-page .beheer-alternatieven li + li { margin-top: .8rem; }
.beheer-page .beheer-alternatieven form { margin-top: .35rem; }
.beheer-page .beheer-action-table .beheer-disable {
  min-width: 0;
  width: 100%;
}
.beheer-page .beheer-action-table .beheer-disable .veld-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 760px) {
  .beheer-page .beheer-action-table { display: block; }
  .beheer-page .beheer-action-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .beheer-page .beheer-action-table,
  .beheer-page .beheer-action-table tbody { width: 100%; }
  .beheer-page .beheer-action-table tbody { display: grid; gap: .65rem; }
  .beheer-page .beheer-action-table .beheer-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--beheer-line);
    border-radius: .35rem .35rem 0 0;
    background: var(--wit);
  }
  .beheer-page .beheer-action-table .beheer-action-row td {
    min-width: 0;
    padding: .65rem;
    border-bottom: 1px solid var(--beheer-line);
  }
  .beheer-page .beheer-action-table .beheer-action-row td:first-child,
  .beheer-page .beheer-action-table .beheer-action-row td:nth-child(5),
  .beheer-page .beheer-action-table .beheer-action-row td:nth-child(6),
  .beheer-page .beheer-action-table .beheer-action-row td:last-child { grid-column: 1 / -1; }
  .beheer-page .beheer-action-table .beheer-action-preview-row {
    display: block;
    margin-top: -.65rem;
    border: 1px solid var(--beheer-line);
    border-top: 0;
    border-radius: 0 0 .35rem .35rem;
  }
  .beheer-page .beheer-action-table .beheer-action-preview-row td {
    display: block;
    width: auto;
    padding: .65rem;
  }
}

/* Campaign centre and campaign detail */
.campaign-centre { display: grid; gap: 1.15rem; }
.campaign-centre .campaign-filters { margin-bottom: 0; }
.campaign-filter-controls { display: flex; align-items: end; gap: 1rem; padding: 0 1rem 1rem; }
.campaign-filter-controls .veld { flex: 1 1 230px; }
.campaign-filter-controls .campaign-search-field { flex: 2 1 340px; }
.campaign-search-control { display: flex; gap: .55rem; }
.campaign-search-control .veld-input { min-width: 0; flex: 1; }
.campaign-list-heading { align-items: center; flex-wrap: wrap; }
.campaign-list-heading p { margin-top: .25rem; color: var(--tekst-zacht); font-size: .78rem; }
.campaign-status-toggle { display: flex; gap: .35rem; border: 1px solid var(--rand); border-radius: 6px; padding: .22rem; background: #f8fafc; }
.campaign-status-toggle a { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .7rem; border-radius: 4px; color: var(--tekst-zacht); font-size: .78rem; font-weight: 650; }
.campaign-status-toggle a.active { background: var(--navy); color: white; }
.campaign-status-toggle span { font-size: .68rem; opacity: .78; }
.campaign-row-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .38rem; }
.campaign-row-meta .status-label { font-size: .65rem; }
.campaign-table { min-width: 1580px; }
.campaign-table .status-label { align-items: center; gap: .35rem; white-space: nowrap; }
.campaign-table .status-label i { width: .42rem; height: .42rem; flex: 0 0 .42rem; border-radius: 50%; background: currentColor; }
.campaign-table .status-label--paused { color: #92400e; background: #fef3c7; }
.campaign-table .status-label--removed { color: #991b1b; background: #fee2e2; }
.campaign-technical-details { margin-top: .2rem; color: var(--tekst-zacht); font-size: .68rem; }
.campaign-technical-details summary { cursor: pointer; }
.campaign-technical-details span { display: block; max-width: 240px; overflow-wrap: anywhere; padding-top: .16rem; }
.campaign-audience-form--overview { align-items: center; flex-wrap: nowrap; }
.campaign-audience-form--overview select { min-width: 112px; max-width: 132px; padding: .3rem; font-size: .72rem; }
.campaign-audience-save { border: 0; border-radius: 4px; padding: .35rem .48rem; color: white; background: var(--navy); font-size: .68rem; font-weight: 650; cursor: pointer; }
.campaign-target--good { color: #166534 !important; font-weight: 700; }
.campaign-target--watch { color: #92400e !important; font-weight: 700; }
.campaign-target--bad { color: #991b1b !important; font-weight: 700; }
.campaign-metric-unreliable, .campaign-metric-unreliable small { color: var(--tekst-zacht) !important; background: transparent !important; font-weight: 400; }
.campaign-trend--flat { color: var(--tekst-zacht); background: #f1f5f9; }
.campaign-trend { display: inline-block; padding: .17rem .4rem; border-radius: 4px; font-size: .76rem; font-weight: 700; }
.campaign-trend--up { color: #9a3412; background: #ffedd5; }
.campaign-trend--down { color: #166534; background: #dcfce7; }
.campaign-trend-muted, .campaign-table td small { color: var(--tekst-zacht); font-size: .72rem; }
.campaign-table td small { display: block; margin-top: .18rem; }
.case-count-link { white-space: nowrap; font-size: .8rem; font-weight: 650; }
.campaign-secondary-panel { margin-top: .1rem; }
.campaign-detail-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.15rem; min-width: 0; overflow-wrap: anywhere; }
.campaign-detail-page > * { min-width: 0; max-width: 100%; }
.campaign-detail-account { margin-top: .25rem; color: var(--tekst-zacht); font-size: .85rem; }
.campaign-tabs { position: sticky; top: 0; z-index: 2; display: flex; gap: .2rem; overflow-x: auto; padding: .45rem; border: 1px solid var(--rand); border-radius: 6px; background: white; box-shadow: var(--schaduw); }
.campaign-tabs a { flex: 0 0 auto; padding: .45rem .65rem; border-radius: 4px; color: var(--tekst-zacht); font-size: .76rem; font-weight: 650; white-space: nowrap; }
.campaign-tabs a.active, .campaign-tabs a:hover { background: #f1f5f9; color: var(--navy); text-decoration: none; }
.campaign-overview-panel .panel-heading { flex-wrap: wrap; gap: 1rem; }
.campaign-overview-panel .panel-heading p { margin-top: .25rem; color: var(--tekst-zacht); font-size: .78rem; }
.campaign-daily-wrap { margin: 0 1rem 1rem; max-height: 360px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 5px; }
.campaign-daily-wrap .data-table { min-width: 540px; }
.campaign-audience-form { display: flex; align-items: end; flex-wrap: wrap; gap: .45rem; }
.campaign-audience-form label { font-size: .75rem; font-weight: 650; }
.campaign-audience-form select { min-height: 34px; border: 1px solid var(--rand); border-radius: 4px; padding: .35rem .55rem; background: white; }
.campaign-subsection-title { margin-top: 1rem !important; border-top: 1px solid #e2e8f0; padding-top: .8rem; }
.campaign-settings-list { display: grid; gap: .5rem; }
.campaign-settings-list > div { display: grid; grid-template-columns: minmax(115px, .65fr) 1.35fr; gap: .75rem; padding-bottom: .42rem; border-bottom: 1px solid #edf1f5; }
.campaign-settings-list dt { color: var(--tekst-zacht); font-size: .75rem; }
.campaign-settings-list dd { overflow-wrap: anywhere; font-size: .8rem; font-weight: 600; }
.rsa-copy { margin-top: .55rem; padding: .55rem; border-radius: 4px; background: #f8fafc; font-size: .75rem; }
.rsa-copy ul { display: grid; gap: .22rem; margin: .25rem 0 0 1rem; }
.technical-details { border: 1px solid var(--rand); border-radius: 6px; background: white; box-shadow: var(--schaduw); }
.technical-details > summary { padding: .85rem 1rem; color: var(--navy); font-size: .85rem; font-weight: 700; cursor: pointer; }
.technical-details-body { padding: 0 1rem 1rem; }
@media (max-width: 650px) {
  .campaign-filter-controls { align-items: stretch; flex-direction: column; }
  .campaign-filter-controls .veld, .campaign-filter-controls .campaign-search-field { flex: auto; }
  .campaign-list-heading { align-items: flex-start; }
  .campaign-status-toggle { width: 100%; }
  .campaign-status-toggle a { flex: 1; justify-content: center; }
  .campaign-settings-list > div { grid-template-columns: 1fr; gap: .1rem; }
  .campaign-audience-form { align-items: stretch; }
}

/* Unified cockpit shell. Navigation and screen component styles live here. */
.visually-hidden,.sr-only { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.sidebar-menu-label { display:none; }
.app-layout { display:flex; min-height:100dvh; width:100%; }
.app-sidebar { position:sticky; top:0; align-self:flex-start; display:flex; flex-direction:column; flex:0 0 212px; height:100dvh; min-width:0; background:var(--sidebar-bg); color:var(--sidebar-text); border-right:1px solid var(--sidebar-border); }
.sidebar-header { padding:var(--space-6) var(--space-4) var(--space-8); }
.sidebar-logo { display:flex; align-items:center; gap:var(--space-3); color:var(--wit); text-decoration:none; }
.sidebar-logo::before { content:""; display:block; flex:none; width:10px; height:26px; border-radius:2px; background:var(--goud-licht); }
.sidebar-logo strong { font-size:var(--type-body); letter-spacing:-.035em; line-height:1.2; }
.sidebar-logo:hover { color:var(--wit); text-decoration:none; }
.sidebar-account-switcher { padding:0 var(--space-3) var(--space-6); }
.sidebar-account-label { display:block; margin:0 var(--space-2) var(--space-2); color:#C9D6DF; font-size:var(--type-caption); font-weight:600; }
.account-tabs { display:flex; padding:4px; gap:4px; border:1px solid #567087; border-radius:8px; }
.account-tab { flex:1; min-width:0; padding:9px 6px; border:0; border-radius:5px; background:transparent; color:#D6E2EB; font:600 var(--type-caption)/1.3 var(--font-family); cursor:pointer; overflow-wrap:anywhere; }
.account-tab:hover,.account-tab.active { background:#D9C596; color:var(--navy); }
.account-select { width:100%; min-width:0; min-height:40px; padding:8px; border:1px solid #8094A5; border-radius:6px; background:var(--navy-licht); color:var(--wit); font:500 var(--type-caption) var(--font-family); }
.sidebar-account-other { display:inline-block; margin:8px; color:#E6D4AC; font-size:var(--type-caption); text-decoration:underline; }
.sidebar-account-warning { margin:8px; color:#FFE3AC; font-size:var(--type-caption); }
.sidebar-nav { display:flex; flex-direction:column; flex:1; gap:4px; padding:0 var(--space-3); }
.sidebar-link { display:flex; align-items:center; gap:12px; min-height:42px; padding:8px 12px; border-radius:6px; color:var(--sidebar-text); font-size:var(--type-ui); font-weight:500; text-decoration:none; }
.sidebar-link svg { width:18px; height:18px; flex:none; }
.sidebar-link:hover,.sidebar-link.active { background:var(--sidebar-hover); color:var(--wit); text-decoration:none; }
.sidebar-link.active { box-shadow:inset 3px 0 var(--goud-licht); font-weight:650; }
.sidebar-badge { margin-left:auto; padding:2px 6px; border-radius:20px; background:#F6E8C7; color:var(--navy); font-size:var(--type-caption); }
.sidebar-bottom { padding:var(--space-3); border-top:1px solid #47627A; }
.app-main-wrapper { display:flex; flex:1; min-width:0; flex-direction:column; background:var(--page-bg); }
.app-topbar { display:flex; align-items:flex-start; justify-content:space-between; gap:var(--space-4); width:100%; padding:var(--space-8) var(--space-8) var(--space-4); }
.topbar-left { min-width:0; }
.topbar-left h1 { margin:0; color:var(--navy); font-size:var(--type-title); line-height:1.2; letter-spacing:-.035em; font-weight:700; overflow-wrap:anywhere; }
.topbar-subtitle { margin:4px 0 0; color:var(--text-muted); font-size:var(--type-caption); }
.topbar-right { display:flex; gap:var(--space-2); align-items:center; }
.app-content-area { width:100%; max-width:1504px; min-width:0; margin:0 auto; padding:var(--space-6) var(--space-8) var(--space-12); }
.app-section-nav { border-bottom:1px solid var(--border-color); background:#FFFEFB; }
.app-section-nav-list { display:flex; gap:var(--space-4); width:100%; max-width:1504px; margin:auto; padding:0 var(--space-8); list-style:none; }
.app-section-nav-link { display:flex; align-items:center; min-height:44px; padding:8px 2px; border-bottom:2px solid transparent; color:var(--text-muted); font-size:var(--type-ui); font-weight:500; white-space:nowrap; text-decoration:none; }
.app-section-nav-link:hover,.app-section-nav-link.active { color:var(--navy); border-bottom-color:var(--goud); text-decoration:none; }
.app-section-nav-link.active { font-weight:650; }
.preview-button,.small-button { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:8px 14px; border:1px solid var(--rand); border-radius:6px; background:var(--wit); color:var(--navy); font:600 var(--type-ui)/1.3 var(--font-family); white-space:nowrap; text-decoration:none; cursor:pointer; }
.preview-button:hover,.small-button:hover { background:#F0EEE8; color:var(--navy); text-decoration:none; }
.preview-button--primary { background:var(--navy); color:var(--wit); border-color:var(--navy); }
.preview-button--primary:hover { background:var(--navy-licht); color:var(--wit); }
.preview-button--secondary { background:var(--wit); }
.app-layout .pagina-kop { padding:var(--space-4) var(--space-6); border:1px solid var(--rand); border-radius:var(--radius); background:var(--wit); margin-bottom:var(--space-6); }
.app-layout .pagina-titel { color:var(--navy); font-size:var(--type-section); letter-spacing:-.02em; text-transform:none; }
.app-layout .pagina-intro { color:var(--text-muted); font-size:var(--type-ui); }
.app-layout .kaart,.app-layout .schrijfbrug-kaart,.app-layout .google-ads-api-sectie,.panel,.dash-panel,.kpi-card { background:#fff; border:1px solid var(--rand); border-radius:8px; box-shadow:none; }
.dash-panel { padding:var(--space-6); }
.app-layout .kaart-kop,.panel-heading { padding:var(--space-6); border-bottom:1px solid var(--rand); background:transparent; }
.app-layout .kaart-titel { color:var(--navy); font-size:var(--type-body); letter-spacing:0; text-transform:none; }
.app-layout .kaart-titel::before { display:none; }
.app-layout .formulier { gap:var(--space-4); }
.app-layout .veld-label { font-size:var(--type-caption); color:var(--tekst-zacht); }
.app-layout .veld-input,.app-layout .veld-select,.app-layout textarea.veld-input { min-height:40px; border-radius:6px; font-size:var(--type-ui); }
.app-layout .knop { min-height:38px; border-radius:6px; font-size:var(--type-caption); }
.app-layout .tabel-wrapper,.table-scroll { max-width:100%; overflow-x:auto; }
.app-layout .tabel,.app-layout .dash-table,.data-table { width:100%; border-collapse:collapse; font-size:var(--type-caption); font-variant-numeric:tabular-nums; }
.app-layout .tabel th,.app-layout .dash-table th,.data-table th { padding:12px 16px; background:#F6F8FB; color:#415366; border-bottom:1px solid var(--rand); font-size:var(--type-caption); font-weight:650; text-align:left; white-space:nowrap; }
.app-layout .tabel td,.app-layout .dash-table td,.data-table td { padding:12px 16px; border-bottom:1px solid var(--rand); color:var(--tekst); vertical-align:middle; }
.app-layout .tabel tbody tr:hover,.app-layout .dash-table tbody tr:hover,.data-table tbody tr:hover { background:#EEF2F8; }
.data-table .right { text-align:right; }
.app-layout .beheer-filters,.app-layout .logboek-filters { padding:var(--space-4); border:1px solid var(--rand); border-radius:var(--radius); background:var(--wit); }
.app-layout .container { width:100%; max-width:none; margin:0; }
.app-layout .cg-content,.app-layout .inst-layout,.app-layout .beheer-detail,.app-layout .schrijfbrug-installatie { min-width:0; }
.cg-layout--unified { display:block; }
.cg-layout--unified > .cg-content { width:100%; max-width:100%; }
#accounts,#leesbrug,#schrijfbrug { scroll-margin-top:5rem; }

/* Semantic components work both in legacy content and new cockpit pages. */
.status-badge { display:inline-flex; align-items:center; gap:7px; max-width:100%; padding:4px 9px; border:1px solid currentColor; border-radius:999px; font-size:var(--type-caption); font-weight:650; line-height:1.2; white-space:nowrap; }
.status-badge svg { display:block; flex:none; }
.status-badge--success { color:#146957; background:#E4F3EC; }
.status-badge--warning { color:#805408; background:#FCF0D0; }
.status-badge--danger { color:#A33536; background:#FAEAE6; }
.status-badge--info { color:#285F82; background:#E7F1F5; }
.status-badge--muted { color:#526273; background:#F0F0ED; }
.warning-banner { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 10px; margin-bottom:var(--space-4); padding:var(--space-3) var(--space-4); border:1px solid currentColor; border-left-width:4px; border-radius:6px; font-size:var(--type-ui); line-height:1.5; }
.warning-banner__title { font-weight:700; }
.warning-banner--success { color:#146957; background:#E4F3EC; }
.warning-banner--warning { color:#805408; background:#FCF0D0; }
.warning-banner--danger { color:#A33536; background:#FAEAE6; }
.warning-banner--info { color:#285F82; background:#E7F1F5; }
.warning-banner--muted { color:#526273; background:#F0F0ED; }
.status-label--active,.status-label--keyword { color:var(--success); background:var(--success-bg); }
.status-label--paused { color:var(--waarschuwing); background:var(--waarschuwing-bg); }
.status-label--removed,.status-label--afgekeurd { color:var(--fout); background:var(--fout-bg); }
.status-label--unknown { color:var(--tekst-zacht); background:#F0F0ED; }
.status-dot { display:inline-block; width:7px; height:7px; margin-right:6px; border-radius:50%; }
.status-dot.active { background:var(--success); }
.status-dot.paused { background:var(--waarschuwing); }
.status-dot.unknown { background:var(--tekst-zacht); }
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline:3px solid var(--goud); outline-offset:3px; }
.app-sidebar :where(a,button,select):focus-visible { outline-color:#F6D891; }
:where(button,input,select,textarea):disabled { opacity:.5; cursor:not-allowed; }

/* Decision surfaces carried over from the dashboard and campaign detail. */
.dashboard-page,.campaign-detail-page { max-width:1280px; margin:auto; }
.dashboard-heading,.campaign-detail-heading,.account-context-row,.dash-panel-header { display:flex; justify-content:space-between; align-items:flex-start; gap:var(--space-4); margin-bottom:var(--space-4); }
.dashboard-heading h2,.campaign-detail-heading h2 { color:var(--navy); font-size:var(--type-section); line-height:1.25; letter-spacing:-.02em; }
.dashboard-heading .eyebrow,.campaign-detail-heading .eyebrow { color:var(--tekst-zacht); font-size:var(--type-caption); font-weight:650; letter-spacing:.05em; text-transform:uppercase; }
.dashboard-heading-actions,.campaign-detail-actions { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2); }
.dashboard-period,.account-context-meta,.campaign-detail-account,.data-provenance,.source-details,.source-note,.snapshot-note,.detail-data-footnote { color:var(--tekst-zacht); font-size:var(--type-caption); }
.dashboard-period { display:flex; gap:var(--space-2); margin-top:var(--space-2); }
.period-selector { display:inline-flex; max-width:100%; padding:3px; border:1px solid var(--rand); border-radius:6px; background:var(--wit); overflow:auto; }
.period-selector a { padding:7px 10px; border-radius:4px; color:var(--tekst-zacht); font-size:var(--type-caption); font-weight:600; text-decoration:none; white-space:nowrap; }
.period-selector a:hover,.period-selector a.active { background:var(--navy); color:var(--wit); }
.account-context-row { margin:var(--space-4) 0; }
.account-context-row h3 { color:var(--navy); font-size:var(--type-body); }
.account-context-warning { color:var(--waarschuwing); font-size:var(--type-caption); }
.data-provenance { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:4px 12px; }
.data-notice,.empty-card,.table-empty,.chart-empty,.detail-empty,.detail-no-data { padding:var(--space-6); border:1px solid var(--rand); border-radius:var(--radius); background:var(--wit); color:var(--tekst-zacht); font-size:var(--type-ui); }
.data-notice--warning { border-color:#C79549; background:var(--waarschuwing-bg); color:var(--waarschuwing); }
.empty-card,.table-empty,.chart-empty,.detail-empty,.detail-no-data { text-align:center; }
.empty-card h3,.detail-no-data h4 { margin-bottom:var(--space-2); color:var(--navy); }
.dashboard-main-grid,.dash-layout-grid { display:grid; grid-template-columns:minmax(0,1.75fr) minmax(280px,1fr); gap:var(--space-4); margin-bottom:var(--space-4); }
.settings-main-grid { grid-template-columns:minmax(0,1.75fr) minmax(0,1fr); }
.settings-main-grid > .panel { min-width:0; max-width:100%; }
.settings-main-grid .panel,
.settings-main-grid .panel * { overflow-wrap:anywhere; }
.panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:var(--space-3); }
.panel-heading h3,.dash-panel-title { font-size:var(--type-body); color:var(--navy); }
.panel-heading p,.proposal-text p { margin-top:4px; color:var(--tekst-zacht); font-size:var(--type-caption); }
.text-link,.campaign-name,.row-arrow { color:var(--navy-licht); font-weight:600; }
.kpi-grid,.detail-kpi-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--space-3); margin-bottom:var(--space-4); }
.kpi-card,.detail-kpi-grid article { min-width:0; padding:var(--space-6); }
.kpi-label,.detail-kpi-grid article span { display:block; margin-bottom:var(--space-2); color:var(--tekst-zacht); font-size:var(--type-caption); font-weight:600; }
.kpi-value,.detail-kpi-grid article strong { display:block; color:var(--navy); font-size:var(--type-section); font-weight:700; font-variant-numeric:tabular-nums; }
.kpi-delta,.kpi-subtext { color:var(--tekst-zacht); font-size:var(--type-caption); }
.kpi-delta.positive,.kpi-delta.is-good { color:var(--success); }
.kpi-delta.negative,.kpi-delta.is-bad { color:var(--fout); }
.chart-container { width:100%; height:240px; position:relative; }
.performance-chart { padding:var(--space-4); }
.performance-chart svg { display:block; width:100%; height:180px; }
.chart-axis { stroke:var(--rand); }
.chart-gridline { stroke:#E9E9E2; stroke-dasharray:3 4; }
.chart-line { fill:none; stroke:var(--navy); stroke-width:2.2; }
.chart-point { fill:var(--navy); stroke:var(--wit); }
.chart-labels,.chart-legend { display:flex; justify-content:space-between; color:var(--tekst-zacht); font-size:var(--type-caption); }
.chart-note,.dashboard-disclaimer,.table-subtitle { color:var(--tekst-zacht); font-size:var(--type-caption); }
.attention-list,.case-list { padding:0 var(--space-4); }
.attention-item,.case-row,.proposal-item { display:flex; justify-content:space-between; align-items:center; gap:var(--space-3); padding:var(--space-3) 0; border-bottom:1px solid var(--rand); }
.attention-icon,.proposal-icon { display:grid; flex:none; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--waarschuwing-bg); color:var(--waarschuwing); }
.attention-copy { min-width:0; flex:1; }
.attention-copy strong,.proposal-text h4 { color:var(--navy); font-size:var(--type-caption); }
.attention-copy p,.attention-evidence,.attention-empty,.case-meta,.case-row p { color:var(--tekst-zacht); font-size:var(--type-caption); }
.campaign-tabs { display:flex; flex-wrap:wrap; gap:var(--space-3); margin-bottom:var(--space-4); border-bottom:1px solid var(--rand); }
.campaign-tabs a,.tab-btn { padding:10px 4px; border:0; border-bottom:2px solid transparent; background:transparent; color:var(--tekst-zacht); font:600 var(--type-caption) var(--font-family); text-decoration:none; cursor:pointer; }
.campaign-tabs a:hover,.campaign-tabs a.active,.tab-btn.active { color:var(--navy); border-bottom-color:var(--goud); }
.tab-content { display:none; }
.tab-content.active { display:block; }
.campaign-status-row { display:flex; align-items:center; flex-wrap:wrap; gap:var(--space-2); margin-bottom:var(--space-4); padding:var(--space-3); border:1px solid var(--rand); border-radius:var(--radius); background:var(--wit); color:var(--tekst-zacht); font-size:var(--type-caption); }
.case-meta,.component-counts,.component-links,.technical-links { display:flex; flex-wrap:wrap; gap:var(--space-2); }
.case-row h4 { font-size:var(--type-ui); }
.component-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.component-section { min-width:0; padding:var(--space-4); }
.component-section + .component-section { border-left:1px solid var(--rand); }
.component-list { list-style:none; }
.component-list li { display:flex; justify-content:space-between; gap:var(--space-2); padding:var(--space-2) 0; border-bottom:1px solid var(--rand); color:var(--tekst-zacht); font-size:var(--type-caption); }
.component-list strong,.component-list small { display:block; }
.component-unavailable { padding:var(--space-3); background:var(--cream); color:var(--tekst-zacht); }
.technical-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--space-4); }
.technical-grid span,.technical-grid strong { display:block; overflow-wrap:anywhere; font-size:var(--type-caption); }
.technical-details summary { cursor:pointer; }
.flex-between { display:flex; justify-content:space-between; align-items:center; }
.gap-2 { gap:8px; } .gap-4 { gap:16px; } .mt-4 { margin-top:16px; } .mb-4 { margin-bottom:16px; }
.text-xs { font-size:var(--type-caption); } .text-muted { color:var(--tekst-zacht); } .text-right { text-align:right; }
@media (max-width:900px) {
  .dashboard-main-grid,.dash-layout-grid { grid-template-columns:1fr; }
  .kpi-grid,.detail-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:767px) {
  .app-layout { display:block; min-height:100dvh; }
  .app-sidebar { position:static; display:flex; flex-direction:column; width:100%; height:auto; border-right:0; border-bottom:1px solid var(--sidebar-border); }
  .sidebar-header { padding:12px 16px 8px; }
  .sidebar-account-switcher { padding:0 12px 8px; }
  .account-tabs { width:max-content; max-width:100%; overflow-x:auto; }
  .account-tab { flex:none; min-width:120px; }
  .sidebar-nav { display:flex; flex-direction:row; overflow-x:auto; padding:0 8px 8px; scrollbar-width:thin; }
  .sidebar-link { flex:none; gap:8px; white-space:nowrap; font-size:var(--type-caption); }
  .sidebar-bottom { display:flex; padding:0 8px 8px; border-top:0; }
  .app-topbar { flex-wrap:wrap; padding:24px 16px 12px; }
  .app-content-area { padding:16px 12px 48px; }
  .app-section-nav-list { overflow-x:auto; flex-wrap:nowrap; padding:0 12px; scrollbar-width:thin; }
  .app-section-nav-link { font-size:var(--type-caption); }
  .dashboard-heading,.campaign-detail-heading,.account-context-row { flex-direction:column; }
  .data-provenance { justify-content:flex-start; }
  .component-grid,.technical-grid { grid-template-columns:1fr; }
  .component-section + .component-section { border-left:0; border-top:1px solid var(--rand); }
  .campaign-table { min-width:38rem; }
}
@media (max-width:600px) {
}
@media (max-width:390px) {
  .topbar-left h1 { font-size:24px; }
  .topbar-right,.topbar-right .preview-button { width:100%; }
  .kpi-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .kpi-card { padding:16px; }
  .sidebar-link { min-height:40px; padding:8px 10px; }
  .sidebar-menu-label { display:flex; align-items:center; justify-content:space-between; min-height:44px; margin:0 12px 8px; padding:8px 12px; border:1px solid #607990; border-radius:6px; color:var(--wit); font-size:var(--type-ui); font-weight:600; cursor:pointer; }
  .sidebar-menu-chevron { width:9px; height:9px; margin-right:4px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); transition:transform .16s ease; }
  .sidebar-menu-toggle:checked + .sidebar-menu-label .sidebar-menu-chevron { transform:rotate(225deg); }
  .sidebar-menu-toggle:focus-visible + .sidebar-menu-label { outline:3px solid #F6D891; outline-offset:3px; }
  .sidebar-nav,.sidebar-bottom { display:none; }
  .sidebar-menu-toggle:checked ~ .sidebar-nav { display:flex; flex-wrap:wrap; overflow:visible; padding:0 12px 8px; }
  .sidebar-menu-toggle:checked ~ .sidebar-bottom { display:flex; padding:0 12px 12px; }
}

/* Compact campaign overview: keep the complete desktop table within the page. */
.campaign-centre .campaign-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: .74rem;
}
.campaign-centre .campaign-table th,
.campaign-centre .campaign-table td {
  min-width: 0;
  padding: .55rem .38rem;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.campaign-centre .campaign-table th { line-height: 1.25; }
.campaign-centre .campaign-column-name { width: 17%; }
.campaign-centre .campaign-column-audience { width: 8%; }
.campaign-centre .campaign-column-status { width: 8%; }
.campaign-centre .campaign-column-channel { width: 10%; }
.campaign-centre .campaign-column-budget { width: 7%; }
.campaign-centre .campaign-column-clicks { width: 6%; }
.campaign-centre .campaign-column-cost { width: 8%; }
.campaign-centre .campaign-column-conversions { width: 7%; }
.campaign-centre .campaign-column-cpl { width: 10%; }
.campaign-centre .campaign-column-trend { width: 11%; }
.campaign-centre .campaign-column-cases { width: 8%; }
.campaign-centre .campaign-cpl-cell > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .18rem;
  white-space: nowrap;
}
.campaign-centre .campaign-cpl-cell > span small { display: inline; margin: 0; }
.campaign-centre .campaign-cpl-cell > span strong { font-size: .7rem; }
.campaign-centre .campaign-table .campaign-trend {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: .15rem 0;
  padding: .12rem .2rem;
  font-size: .66rem;
  white-space: normal;
}
.campaign-detail-page > .campaign-audience-form--detail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  padding: .8rem 1rem;
}
.campaign-audience-form--detail label { margin: 0; }
.campaign-audience-form--detail select { min-width: 12rem; }
@media (max-width: 767px) {
  .campaign-centre .campaign-table { min-width: 38rem; }
  .campaign-centre .campaign-column-name { width: 12rem; }
  .campaign-centre .campaign-column-trend { width: 8rem; }
}

@media (max-width: 600px) {
  .campaign-centre {
    width: 100%;
    min-width: 0;
  }
  .campaign-centre > *,
  .campaign-centre .campaign-filters,
  .campaign-centre .campaign-filter-controls,
  .campaign-centre .campaign-filter-controls > .veld,
  .campaign-centre .campaign-search-control {
    min-width: 0;
    max-width: 100%;
  }
  .campaign-filters { width: 100%; }
  .campaign-filters .panel-heading {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
  }
  .campaign-filters .period-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    gap: 4px;
    overflow: visible;
  }
  .campaign-filters .period-selector a {
    display: flex;
    min-width: 0;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 5px;
    text-align: center;
    white-space: normal;
  }
  .campaign-filter-controls { width: 100%; }
  .campaign-filter-controls .campaign-search-field { width: 100%; }
  .campaign-filter-controls .veld-select { width: 100%; max-width: 100%; }
  .campaign-search-control { width: 100%; }
  .campaign-search-control .veld-input {
    width: 0;
    min-width: 0;
    flex: 1 1 0;
  }
  .campaign-search-control .small-button {
    max-width: 100%;
    flex: 0 0 auto;
  }
}

@media (max-width: 600px) {
  body:has(.vandaag-stack) .topbar-subtitle .tech-details-inline {
    display: none !important;
  }

  .vandaag-stack,
  .vandaag-stack .vandaag-card,
  .vandaag-stack .vandaag-lijst,
  .vandaag-stack .vandaag-statusregel,
  .vandaag-stack .vandaag-statusregel > span,
  .vandaag-stack .vandaag-actie,
  .vandaag-stack .vandaag-actie > strong,
  .vandaag-stack .vandaag-actie-detail,
  .vandaag-stack .vandaag-rij > div,
  .vandaag-stack .vandaag-rij > span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .vandaag-stack .vandaag-datumkop,
  .vandaag-stack .vandaag-card > h2,
  .vandaag-stack .vandaag-card > h3 {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .vandaag-stack .status-badge,
  .vandaag-stack .small-button {
    max-width: 100%;
    white-space: normal;
  }
}
