/* =====================================================================
   ReviewFlow — Design System "Editorial Luxe"
   Plain CSS. No framework. Works with Flask/Jinja + vanilla JS.
   ---------------------------------------------------------------------
   HOW TO USE IN FLASK:
   - Drop this file in /static/css/reviewflow.css
   - Load Google fonts (Plus Jakarta Sans + JetBrains Mono) in base.html
   - The .app shell (sidebar + topbar) belongs in base.html.
     Each page only renders the content inside <main class="content">.
   ===================================================================== */

/* ----------------------------------------------------------------- *
 * 1. DESIGN TOKENS                                                   *
 * ----------------------------------------------------------------- */
:root {
  /* Typography */
  --rf-sans: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --rf-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Font sizes */
  --rf-fs-eyebrow: 12px;   /* uppercase section labels */
  --rf-fs-caps:    11.5px; /* table headers, nav group labels */
  --rf-fs-hint:    12.5px; /* helper text under fields */
  --rf-fs-sm:      13px;
  --rf-fs-body:    14px;
  --rf-fs-nav:     14.5px;
  --rf-fs-lead:    15.5px; /* page subtitles */
  --rf-fs-panel:   18px;   /* panel/section titles */
  --rf-fs-h2:      26px;
  --rf-fs-h1:      34px;
  --rf-fs-display: 44px;   /* hero on settings */
  --rf-fs-stat:    44px;   /* big dashboard numbers */

  /* Color — surfaces */
  --rf-bg:        #FAF8F5;
  --rf-bg-soft:   #F4F1EC;
  --rf-surface:   #FFFFFF;
  --rf-surface-2: #FAF8F5;

  /* Color — ink */
  --rf-ink:    #1C1714;
  --rf-ink-2:  #4A423B;
  --rf-muted:  #938A7E;

  /* Color — lines */
  --rf-line:   #ECE6DE;
  --rf-line-2: #F3EEE7;

  /* Color — brand (terracotta) */
  --rf-terra:      #BC6B25;
  --rf-terra-700:  #9A4F15;
  --rf-terra-50:   #FBF1E6;
  --rf-terra-tint: rgba(188,107,37,.10);

  /* Color — sidebar (deep espresso) */
  --rf-sidebar:        #201B17;
  --rf-sidebar-soft:   rgba(255,255,255,.03);
  --rf-on-dark:        #FFFFFF;
  --rf-on-dark-2:      rgba(255,255,255,.62);
  --rf-on-dark-3:      rgba(255,255,255,.34);
  --rf-on-dark-active: #F2C597;
  --rf-on-dark-line:   rgba(255,255,255,.10);

  /* Color — status */
  --rf-success-bg:  #EAF6EE;
  --rf-success-ink: #1F7A45;
  --rf-success-dot: #2B9D5A;
  --rf-neutral-bg:  #F0EDE8;
  --rf-neutral-ink: #8A8073;
  --rf-info-bg:     #EBF0F6;
  --rf-info-ink:    #3B5575;

  /* Radius */
  --rf-r-sm:   8px;
  --rf-r-md:   11px;
  --rf-r-lg:   14px;
  --rf-r-xl:   20px;
  --rf-r-pill: 999px;

  /* Shadows */
  --rf-shadow-sm:   0 1px 2px rgba(20,16,12,.04);
  --rf-shadow-card: 0 1px 2px rgba(20,16,12,.04), 0 24px 48px -36px rgba(20,16,12,.22);
  --rf-shadow-pop:  0 16px 40px -16px rgba(20,16,12,.30);
  --rf-shadow-btn:  0 8px 20px -8px rgba(168,79,21,.55);

  /* Layout */
  --rf-sidebar-w: 268px;
  --rf-topbar-h:  72px;
  --rf-gutter:    44px;
}

/* ----------------------------------------------------------------- *
 * 2. RESET / BASE                                                    *
 * ----------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--rf-sans);
  color: var(--rf-ink);
  background: var(--rf-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.mono { font-family: var(--rf-mono); }
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ----------------------------------------------------------------- *
 * 3. APP SHELL                                                       *
 * ----------------------------------------------------------------- */
.app { display: flex; width: 100%; min-height: 100vh; }

/* ---- Sidebar ---- */
.sidebar {
  width: var(--rf-sidebar-w);
  flex: 0 0 var(--rf-sidebar-w);
  background: var(--rf-sidebar);
  color: var(--rf-on-dark);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(150deg, var(--rf-terra), var(--rf-terra-700));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 22px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6);
}
.brand__name { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand__sub  { font-size: 11.5px; color: var(--rf-on-dark-3); margin-top: 1px; }

.ws {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 16px;
  border: 1px solid var(--rf-on-dark-line); border-radius: 12px;
  background: var(--rf-sidebar-soft); cursor: pointer;
}
.ws__icon { width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,.10); display: grid; place-items: center; font-size: 12px; }
.ws__name { flex: 1; font-weight: 700; font-size: 14.5px; }

.nav { display: flex; flex-direction: column; }
.nav__group { font-size: var(--rf-fs-caps); font-weight: 700; letter-spacing: .14em; color: var(--rf-on-dark-3); padding: 0 12px; margin: 16px 0 6px; }
.nav__item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--rf-on-dark-2); font-size: var(--rf-fs-nav); font-weight: 500;
  transition: background .15s, color .15s;
}
.nav__item:hover { background: rgba(255,255,255,.05); color: var(--rf-on-dark); }
.nav__item.is-active { background: var(--rf-on-dark-active-bg, rgba(188,107,37,.18)); color: var(--rf-on-dark-active); font-weight: 700; }
.nav__item.is-active::before {
  content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px; background: var(--rf-terra);
}
.nav__item.is-active .ic { stroke-width: 2; }

.sidebar__user {
  margin-top: auto;
  display: flex; align-items: center; gap: 11px;
  padding: 12px 10px 2px; border-top: 1px solid var(--rf-on-dark-line);
}
.avatar--user { width: 32px; height: 32px; border-radius: 50%; background: var(--rf-terra); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.sidebar__user .who { flex: 1; line-height: 1.2; }
.sidebar__user .who b { font-weight: 700; font-size: 14px; }
.sidebar__user .who span { display: block; font-size: 11.5px; color: var(--rf-on-dark-3); }

/* ---- Main column ---- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--rf-topbar-h); flex: 0 0 var(--rf-topbar-h);
  background: var(--rf-surface); border-bottom: 1px solid var(--rf-line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--rf-gutter); position: sticky; top: 0; z-index: 5;
}
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: var(--rf-fs-lead); }
.breadcrumb .sep { color: var(--rf-muted); display: grid; place-items: center; }
.breadcrumb .root { color: var(--rf-muted); }
.breadcrumb .current { font-weight: 700; }
.status-pill {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 14px; border: 1px solid var(--rf-line); border-radius: var(--rf-r-pill);
  background: var(--rf-surface); font-size: var(--rf-fs-sm); color: var(--rf-ink-2);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rf-success-dot); }

.content { flex: 1; padding: 0 var(--rf-gutter) 120px; }

/* ----------------------------------------------------------------- *
 * 4. PAGE HERO                                                       *
 * ----------------------------------------------------------------- */
.page-hero { padding: 46px 0 30px; }
.page-hero__eyebrow { font-size: var(--rf-fs-eyebrow); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--rf-terra-700); }
.page-hero__title { font-size: var(--rf-fs-h1); font-weight: 800; letter-spacing: -.025em; margin: 10px 0 0; line-height: 1.05; }
.page-hero--xl .page-hero__title { font-size: var(--rf-fs-display); letter-spacing: -.03em; }
.page-hero__sub { color: var(--rf-muted); font-size: var(--rf-fs-lead); margin: 12px 0 0; max-width: 720px; line-height: 1.5; }

/* ----------------------------------------------------------------- *
 * 5. BUTTONS                                                         *
 * ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: var(--rf-r-md);
  font-weight: 700; font-size: var(--rf-fs-body); border: 1px solid transparent;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(160deg, var(--rf-terra), var(--rf-terra-700)); color: #fff; box-shadow: var(--rf-shadow-btn); }
.btn--primary:hover { box-shadow: 0 12px 26px -8px rgba(168,79,21,.6); }
.btn--ghost { background: var(--rf-surface); border-color: var(--rf-line); color: var(--rf-ink); font-weight: 600; }
.btn--ghost:hover { border-color: #DCD3C7; background: #FCFBF9; }
.btn--danger-ghost { background: var(--rf-surface); border-color: var(--rf-line); color: #B23B2E; font-weight: 600; }
.btn--sm { padding: 8px 14px; font-size: var(--rf-fs-sm); }
.btn .ic { stroke-width: 2; }

.linkbtn { color: var(--rf-info-ink); font-weight: 600; font-size: var(--rf-fs-body); background: none; border: none; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.linkbtn:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- *
 * 6. BADGES & PILLS                                                  *
 * ----------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: var(--rf-r-pill);
  font-size: var(--rf-fs-hint); font-weight: 700; white-space: nowrap;
}
.badge .ddot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge--success { background: var(--rf-success-bg); color: var(--rf-success-ink); }
.badge--neutral { background: var(--rf-neutral-bg); color: var(--rf-neutral-ink); }
.badge--soft    { background: var(--rf-terra-50); color: var(--rf-terra-700); }
.badge--count   { background: var(--rf-terra-50); color: var(--rf-terra-700); letter-spacing: .04em; }

.tag-readonly {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--rf-r-pill);
  background: var(--rf-surface); border: 1px solid var(--rf-line);
  font-size: 11.5px; font-weight: 700; color: var(--rf-terra-700); white-space: nowrap;
}

/* ----------------------------------------------------------------- *
 * 7. CARDS / PANELS                                                  *
 * ----------------------------------------------------------------- */
.card {
  background: var(--rf-surface); border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-xl); box-shadow: var(--rf-shadow-card);
}
.panel { background: var(--rf-surface); border: 1px solid var(--rf-line); border-radius: var(--rf-r-xl); box-shadow: var(--rf-shadow-card); overflow: hidden; }
.panel__head { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--rf-line); }
.panel__chip { width: 44px; height: 44px; border-radius: 13px; background: var(--rf-terra-50); color: var(--rf-terra-700); display: grid; place-items: center; flex: none; }
.panel__titles { flex: 1; min-width: 0; }
.panel__title { font-size: var(--rf-fs-panel); font-weight: 800; letter-spacing: -.01em; }
.panel__desc  { font-size: var(--rf-fs-sm); color: var(--rf-muted); margin-top: 2px; }
.panel__body  { padding: 26px; }
.panel__toolbar { display: flex; align-items: center; gap: 14px; padding: 18px 26px; border-bottom: 1px solid var(--rf-line); flex-wrap: wrap; }

/* Plain section header (no chip) — used on tables like "Recente verzendingen" */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--rf-line); }
.section-head__eyebrow { font-size: var(--rf-fs-caps); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rf-muted); }
.section-head__title { font-size: var(--rf-fs-panel); font-weight: 800; letter-spacing: -.01em; }
.section-head__sub { font-size: var(--rf-fs-sm); color: var(--rf-muted); margin-top: 3px; }

/* ----------------------------------------------------------------- *
 * 8. STAT CARDS (dashboard)                                          *
 * ----------------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card {
  background: var(--rf-surface); border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-xl); padding: 24px; box-shadow: var(--rf-shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--rf-shadow-card); }
.stat-card__head { display: flex; align-items: center; gap: 10px; color: var(--rf-muted); font-size: var(--rf-fs-body); font-weight: 600; }
.stat-card__head .ic { color: var(--rf-terra); }
.stat-card__value { font-size: var(--rf-fs-stat); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 22px 0 18px; }
.stat-card__value--sm { font-size: 28px; }
.stat-card__foot { font-size: var(--rf-fs-sm); color: var(--rf-muted); }

/* ----------------------------------------------------------------- *
 * 9. DATA TABLES                                                     *
 * ----------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
  text-align: left; font-size: var(--rf-fs-caps); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--rf-muted);
  padding: 6px 26px 16px; white-space: nowrap;
}
.data-table tbody td {
  padding: 18px 26px; border-top: 1px solid var(--rf-line);
  font-size: var(--rf-fs-body); color: var(--rf-ink-2); vertical-align: middle;
}
.data-table tbody tr:hover td { background: #FCFAF7; }
.data-table .ta-right { text-align: right; }
.data-table .ta-center { text-align: center; }
.cell-strong { color: var(--rf-ink); font-weight: 700; }
.cell-mono { font-family: var(--rf-mono); font-size: 13.5px; color: var(--rf-ink-2); }
.cell-muted { color: var(--rf-muted); }

.person { display: flex; align-items: center; gap: 13px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: #3A332D; color: #fff; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; flex: none;
}
.person__name { color: var(--rf-ink); font-weight: 700; }

.status-dot { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--rf-success-ink); }
.status-dot .ddot { width: 8px; height: 8px; border-radius: 50%; background: var(--rf-success-dot); }

/* ----------------------------------------------------------------- *
 * 10. BANNERS                                                        *
 * ----------------------------------------------------------------- */
.banner {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px; border-radius: var(--rf-r-lg);
  background: var(--rf-info-bg); color: var(--rf-info-ink);
}
.banner .ic { color: var(--rf-info-ink); margin-top: 1px; }
.banner__body { line-height: 1.5; }
.banner__body b { font-weight: 800; }
.banner__body .muted { color: rgba(59,85,117,.72); font-weight: 500; }

.notice {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 18px; border-radius: var(--rf-r-lg); background: var(--rf-terra-50);
}
.notice__text { font-size: var(--rf-fs-sm); color: var(--rf-ink-2); line-height: 1.45; }

/* ----------------------------------------------------------------- *
 * 11. FORM CONTROLS                                                  *
 * ----------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: var(--rf-fs-sm); font-weight: 700; color: var(--rf-ink); }
.field__hint { font-size: var(--rf-fs-hint); color: var(--rf-muted); line-height: 1.45; }
.control {
  display: flex; align-items: center; height: 46px;
  border: 1px solid var(--rf-line); border-radius: var(--rf-r-md);
  background: var(--rf-surface-2); padding: 0 14px; gap: 8px;
  font-size: var(--rf-fs-body);
}
.control:focus-within { border-color: var(--rf-terra); box-shadow: 0 0 0 3px var(--rf-terra-tint); background: #fff; }
.control input, .control select {
  flex: 1; border: none; background: none; outline: none;
  font-family: inherit; font-size: var(--rf-fs-body); color: var(--rf-ink); min-width: 0;
}
.control--mono input, .control--mono .value { font-family: var(--rf-mono); }
.control .value { flex: 1; color: var(--rf-ink); }
.control .value.placeholder { color: var(--rf-muted); }
.control .ic { color: var(--rf-muted); }
.control__btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--rf-line); background: #fff; display: grid; place-items: center; color: var(--rf-muted); flex: none; }
.control__btn:hover { color: var(--rf-ink); border-color: #DCD3C7; }
.control--select { cursor: pointer; }

.search { min-width: 280px; }
.search .ic { color: var(--rf-muted); }

/* ----------------------------------------------------------------- *
 * 12. SETTINGS — label-left rows (Editorial Luxe signature)          *
 * ----------------------------------------------------------------- */
.settings-section { display: flex; gap: 64px; padding: 44px 0; border-bottom: 1px solid var(--rf-line); }
.settings-section:last-child { border-bottom: none; }
.settings-section__aside { width: 300px; flex: 0 0 300px; }
.settings-section__num { font-size: var(--rf-fs-sm); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rf-terra-700); }
.settings-section__title { font-size: var(--rf-fs-h2); font-weight: 800; letter-spacing: -.02em; margin: 12px 0 0; }
.settings-section__desc { font-size: var(--rf-fs-body); color: var(--rf-muted); margin: 10px 0 0; line-height: 1.5; }
.settings-card { flex: 1; max-width: 720px; background: var(--rf-surface); border: 1px solid var(--rf-line); border-radius: var(--rf-r-xl); padding: 6px 28px; box-shadow: var(--rf-shadow-card); }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--rf-line); }
.settings-row:last-child { border-bottom: none; }
.settings-row__label { font-size: var(--rf-fs-body); font-weight: 700; }
.settings-row__hint { font-size: var(--rf-fs-hint); color: var(--rf-muted); margin-top: 4px; max-width: 300px; line-height: 1.45; }
.settings-row .control { width: 340px; max-width: 46vw; }
.settings-row .control--narrow { width: 130px; }

/* ----------------------------------------------------------------- *
 * 13. DROPZONE (upload)                                              *
 * ----------------------------------------------------------------- */
.dropzone {
  border: 1.5px dashed #D9CFC2; border-radius: var(--rf-r-xl);
  background: var(--rf-surface); padding: 64px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  transition: border-color .15s, background .15s;
}
.dropzone:hover { border-color: var(--rf-terra); background: #FFFDFB; }
.dropzone__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--rf-terra-50); color: var(--rf-terra); display: grid; place-items: center; }
.dropzone__title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.dropzone__hint { font-size: var(--rf-fs-sm); color: var(--rf-muted); }

/* ----------------------------------------------------------------- *
 * 14. UTILITIES                                                      *
 * ----------------------------------------------------------------- */
.stack { display: flex; flex-direction: column; }
.stack-16 > * + * { margin-top: 16px; }
.stack-22 > * + * { margin-top: 22px; }
.stack-26 > * + * { margin-top: 26px; }
.row { display: flex; align-items: center; }
.gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-14 { gap: 14px; }
.mt-24 { margin-top: 24px; } .mt-30 { margin-top: 30px; }
.spacer { flex: 1; }

/* ----------------------------------------------------------------- *
 * 15. WARNING BANNER (Google Reviews empty/error state)             *
 * ----------------------------------------------------------------- */
.warn {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 26px; border-radius: var(--rf-r-lg);
  background: var(--rf-terra-50); border: 1px solid #F0DCC4;
}
.warn .ic { color: var(--rf-terra-700); margin-top: 2px; flex: none; }
.warn__body { flex: 1; }
.warn__title { font-size: 16px; font-weight: 800; color: var(--rf-ink); }
.warn__text { font-size: var(--rf-fs-body); color: var(--rf-ink-2); margin-top: 5px; line-height: 1.5; }
.warn__text b { font-weight: 700; }
.warn .btn { margin-top: 16px; }

/* ----------------------------------------------------------------- *
 * 16. TEMPLATE CARDS (E-mail Templates)                             *
 * ----------------------------------------------------------------- */
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tpl-card {
  position: relative; background: var(--rf-surface);
  border: 1px solid var(--rf-line); border-radius: var(--rf-r-xl);
  padding: 24px; box-shadow: var(--rf-shadow-sm);
  display: flex; flex-direction: column; min-height: 230px;
  transition: transform .15s, box-shadow .15s;
}
.tpl-card:hover { transform: translateY(-3px); box-shadow: var(--rf-shadow-card); }
.tpl-card.is-active { border-color: var(--rf-terra); background: var(--rf-terra-50); box-shadow: 0 12px 30px -18px rgba(168,79,21,.4); }
.tpl-card__name { font-size: 17px; font-weight: 800; letter-spacing: -.01em; padding-right: 64px; }
.tpl-card__meta { font-size: 13.5px; color: var(--rf-muted); margin-top: 12px; line-height: 1.5; }
.tpl-card__meta b { color: var(--rf-ink-2); font-weight: 700; }
.tpl-card__actions { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tpl-badge {
  position: absolute; top: 22px; right: 22px;
  padding: 5px 11px; border-radius: var(--rf-r-pill);
  background: linear-gradient(160deg, var(--rf-terra), var(--rf-terra-700)); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
}

/* variable chips */
.varchips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.varchip {
  font-family: var(--rf-mono); font-size: 13px; color: var(--rf-terra-700);
  background: var(--rf-terra-50); border: 1px solid #F0DCC4;
  padding: 8px 13px; border-radius: var(--rf-r-sm);
}

/* ----------------------------------------------------------------- *
 * 17. CONTACT AVATARS (colorful initials)                           *
 * ----------------------------------------------------------------- */
.avatar--c { color: #fff; }
.avatar--c0 { background: #C8632A; } .avatar--c1 { background: #4F9D69; }
.avatar--c2 { background: #4C7FB8; } .avatar--c3 { background: #8B6FC4; }
.avatar--c4 { background: #C2495A; } .avatar--c5 { background: #D69A2D; }
.avatar--c6 { background: #5AA6B5; } .avatar--c7 { background: #B05AA0; }

/* round icon action buttons in table rows */
.row-actions { display: inline-flex; gap: 8px; }
.row-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--rf-line); background: var(--rf-surface); display: grid; place-items: center; color: var(--rf-muted); }
.row-btn:hover { color: var(--rf-ink); border-color: #DCD3C7; }
.row-btn.danger:hover { color: #B23B2E; border-color: #E6C7C1; }
.count-pill { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 9px; border-radius: var(--rf-r-pill); background: var(--rf-terra-50); color: var(--rf-terra-700); font-size: 13px; font-weight: 700; }

/* ----------------------------------------------------------------- *
 * 18. EXCLUSIONS (Uitsluitingen)                                    *
 * ----------------------------------------------------------------- */
.excl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.excl-card { background: var(--rf-surface); border: 1px solid var(--rf-line); border-radius: var(--rf-r-xl); box-shadow: var(--rf-shadow-card); overflow: hidden; }
.excl-card--full { grid-column: 1 / -1; }
.excl-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--rf-line); }
.excl-head .ic { color: var(--rf-terra-700); }
.excl-head__title { flex: 1; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rf-ink); }
.excl-body { padding: 22px 24px; }
.excl-body__desc { font-size: var(--rf-fs-sm); color: var(--rf-muted); line-height: 1.5; margin-bottom: 16px; }
.excl-empty { text-align: center; color: var(--rf-muted); font-size: var(--rf-fs-sm); padding: 22px 0 6px; }
.input-row { display: flex; gap: 12px; align-items: stretch; }
.input-row .control { flex: 1; }

/* empty-state mono count */
.head-count { font-size: var(--rf-fs-sm); color: var(--rf-muted); font-family: var(--rf-mono); }

@media (max-width: 1240px) {
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-section { flex-direction: column; gap: 24px; }
  .settings-section__aside { width: auto; flex: none; }
  .excl-grid { grid-template-columns: 1fr; }
}
