:root {
  --ink: #14213d;
  --muted: #667085;
  --line: #e6eaf0;
  --paper: #ffffff;
  --canvas: #f4f6f8;
  --navy: #102544;
  --blue: #1769e0;
  --blue-soft: #eaf2ff;
  --green: #16855b;
  --green-soft: #e8f6f0;
  --amber: #a15c00;
  --amber-soft: #fff3dc;
  --red: #bd2c3d;
  --red-soft: #ffedf0;
  --shadow: 0 8px 30px rgba(25, 40, 65, .07);
}
* { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 28px 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand-mark { align-items: center; background: #fff; border-radius: 10px; color: var(--navy); display: flex; font-weight: 800; height: 40px; justify-content: center; width: 40px; }
.brand strong, .brand small { display: block; }
.brand small { color: #aebbd0; font-size: 11px; margin-top: 2px; }
.nav { display: grid; gap: 7px; }
.nav a { border-radius: 10px; color: #cbd5e5; font-weight: 650; padding: 12px 14px; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.11); color: #fff; }
.sidebar-foot { color: #98a8c1; font-size: 12px; margin-top: auto; padding: 18px 9px 0; }
.privacy-dot { background: #3dd391; border-radius: 50%; display: inline-block; height: 8px; margin-right: 7px; width: 8px; }
.main { min-width: 0; }
.topbar { align-items: center; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 96px; padding: 20px 34px; position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 24px; margin-bottom: 0; }
h2 { font-size: 20px; margin-bottom: 8px; }
h3 { font-size: 16px; margin-bottom: 6px; }
.eyebrow { color: #76839a; font-size: 10px; font-weight: 800; letter-spacing: .13em; margin-bottom: 4px; }
.user-menu { align-items: center; display: flex; gap: 14px; }
.user-identity { display: grid; line-height: 1.2; text-align: right; }
.user-identity small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 30px 34px 55px; }
.hero-panel, .panel, .detail-card, .alert, .info-banner, .truth-banner { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.hero-panel { align-items: center; background: linear-gradient(120deg, #102544, #153767); color: #fff; display: flex; justify-content: space-between; overflow: hidden; padding: 28px 30px; }
.hero-panel h2 { font-size: 28px; margin: 10px 0 5px; }
.hero-panel p { color: #ced8e7; margin-bottom: 0; }
.panel { padding: 22px; }
.panel-warning { border-color: #e8bb6f; }
.panel-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 16px; }
.panel-head h2, .panel-head p { margin-bottom: 0; }
.panel-head > a, .back-link { color: var(--blue); font-weight: 700; }
.metric-grid { display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0,1fr)); }
.sync-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 20px 22px; }
.sync-head { align-items: center; display: flex; gap: 20px; justify-content: space-between; }
.sync-head h2 { margin-bottom: 3px; }
.sync-head p { color: var(--muted); margin-bottom: 0; }
.progress-track { background: #e9edf3; border-radius: 999px; height: 12px; margin: 16px 0 9px; overflow: hidden; }
.progress-track span { background: linear-gradient(90deg, #1769e0, #38a2ef); border-radius: inherit; display: block; height: 100%; min-width: 2px; transition: width .35s ease; }
.sync-panel[data-status="success"] .progress-track span { background: linear-gradient(90deg, #16855b, #3bbf8c); }
.sync-panel[data-status="failed"] .progress-track span { background: var(--red); }
.sync-foot { color: var(--muted); display: flex; font-size: 12px; justify-content: space-between; }
.sync-foot a { color: var(--blue); font-weight: 750; }
.metric { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid #9aa9bf; border-radius: 13px; box-shadow: var(--shadow); padding: 17px; }
.metric span, .metric small, .detail-card small, .detail-card span { color: var(--muted); display: block; }
.metric strong { display: block; font-size: 27px; margin: 7px 0 2px; }
.metric-link { color: inherit; display: block; position: relative; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.metric-link:hover { box-shadow: 0 13px 34px rgba(25,40,65,.13); transform: translateY(-2px); }
.metric-link em { color: var(--blue); display: block; font-size: 11px; font-style: normal; font-weight: 750; margin-top: 10px; }
.metric-danger { border-top-color: var(--red); }
.metric-warn { border-top-color: #e69922; }
.split-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.stage-list { display: grid; gap: 8px; }
.stage-list a { align-items: center; background: #f7f9fc; border-radius: 10px; display: grid; gap: 8px; grid-template-columns: 1fr auto 72px; padding: 11px 13px; }
.stage-list small { color: var(--muted); text-align: right; }
.compact-list { display: grid; }
.compact-list a, .compact-list > div { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 13px; grid-template-columns: 82px 1fr auto; padding: 11px 3px; }
.compact-list a:first-child, .compact-list > div:first-child { border-top: 0; }
.compact-list span, .compact-list small { display: block; }
.compact-list small, .compact-list time { color: var(--muted); }
.static-list > div { grid-template-columns: 190px 1fr; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; min-width: 760px; width: 100%; }
th { color: #6b778b; font-size: 11px; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 10px; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tfoot th { background: #f7f9fc; color: var(--ink); font-size: 12px; }
td small { color: var(--muted); display: block; margin-top: 3px; }
.wide-table { min-width: 1050px; }
.orders-table { min-width: 1700px; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.row-link { color: var(--blue); font-weight: 800; }
.source-link { color: var(--blue); font-weight: 700; }
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { border-radius: 999px; display: inline-block; font-size: 11px; font-weight: 750; padding: 4px 9px; white-space: nowrap; }
.pill-blue { background: var(--blue-soft); color: #1555ad; }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-neutral { background: #eef1f5; color: #536074; }
.button { border: 1px solid transparent; border-radius: 9px; cursor: pointer; display: inline-flex; font-weight: 750; justify-content: center; padding: 9px 14px; }
.button-primary { background: var(--blue); color: #fff; }
.button-ghost { background: #fff; border-color: #d9dee7; color: var(--ink); }
.button-danger { background: var(--red); color: #fff; }
.button-small { font-size: 12px; padding: 6px 10px; }
.button:hover { filter: brightness(.97); }
.hero-panel .button-ghost { color: var(--ink); }
.filterbar { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 13px; display: flex; flex-wrap: wrap; gap: 10px; padding: 13px; }
input, select, textarea { background: #fff; border: 1px solid #cfd6e2; border-radius: 8px; color: var(--ink); padding: 9px 10px; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,224,.13); outline: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { border-radius: 5px; box-shadow: 0 0 0 3px rgba(23,105,224,.22); outline: 2px solid var(--blue); outline-offset: 2px; }
.filterbar input[type=search] { flex: 1 1 250px; }
.filterbar select { min-width: 175px; }
.filterbar-grid { align-items: end; display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
.filterbar-grid label { color: var(--muted); display: grid; font-size: 11px; font-weight: 750; gap: 5px; }
.filterbar-grid label:first-child { grid-column: span 2; }
.filterbar-grid input, .filterbar-grid select { min-width: 0; width: 100%; }
.filter-actions { align-items: center; display: flex; gap: 8px; }
.info-banner, .truth-banner { align-items: flex-start; border-left: 4px solid var(--blue); display: flex; gap: 18px; padding: 16px 18px; }
.info-banner span, .truth-banner p { color: var(--muted); margin: 0; }
.truth-banner { border-left-color: #d68b1e; }
.truth-banner strong { min-width: 230px; }
.issue-list { display: grid; gap: 10px; }
.issue-card { align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid #d5dbe4; border-radius: 12px; display: grid; gap: 14px; grid-template-columns: 10px 1fr auto; padding: 16px 18px; }
.issue-card small, .issue-card strong { display: block; }
.issue-card p { color: var(--muted); margin: 4px 0 0; }
.issue-critical { border-left-color: var(--red); }
.issue-warning { border-left-color: #e69922; }
.issue-info { border-left-color: var(--blue); }
.status-dot { background: #aab4c3; border-radius: 50%; height: 8px; width: 8px; }
.issue-critical .status-dot { background: var(--red); }
.issue-warning .status-dot { background: #e69922; }
.issue-info .status-dot { background: var(--blue); }
.issue-content { min-width: 0; }
.issue-title { display: block; margin-top: 6px; }
.issue-title:hover strong { color: var(--blue); }
.workflow-note { background: var(--blue-soft); border-radius: 8px; color: var(--ink) !important; padding: 9px 11px; }
.workflow-editor { border-top: 1px solid var(--line); margin-top: 11px; padding-top: 10px; }
.workflow-editor summary { color: var(--blue); cursor: pointer; font-weight: 750; }
.workflow-form { align-items: end; display: grid; gap: 8px; grid-template-columns: 160px minmax(160px, 1fr) 155px minmax(240px, 2fr) auto; margin-top: 11px; }
.workflow-form label { color: var(--muted); display: grid; font-size: 11px; gap: 4px; }
.workflow-form input, .workflow-form select { min-width: 0; width: 100%; }
.cause-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cause-grid a { background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; display: flex; gap: 12px; padding: 13px; }
.cause-grid a:hover { border-color: #a8c6ef; }
.cause-grid strong { color: var(--blue); font-size: 19px; }
.cause-grid span { align-self: center; }
.pagination { align-items: center; display: grid; grid-template-columns: 1fr auto 1fr; margin-top: 4px; }
.pagination span:last-child { text-align: right; }
.arrow { color: var(--blue); font-size: 22px; }
.form-stack { display: grid; gap: 15px; margin-top: 18px; }
.file-drop { background: #f7f9fc; border: 2px dashed #bdc8d8; border-radius: 12px; display: grid; gap: 6px; padding: 22px; }
.file-drop span, .muted { color: var(--muted); }
.file-drop input { margin-top: 9px; }
.check-list { display: grid; gap: 10px; padding-left: 21px; }
.alert { padding: 14px 17px; }
.alert-success { background: var(--green-soft); border-color: #bce4d3; color: var(--green); }
.alert-critical { background: var(--red-soft); border-color: #f4c0c8; color: var(--red); }
.page-actions { align-items: center; display: flex; justify-content: space-between; }
.export-actions { margin-bottom: -6px; }
.action-group { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.workorder-hero { align-items: flex-end; }
.article-hero { align-items: flex-end; }
.article-metrics { grid-template-columns: repeat(6, minmax(0,1fr)); }
.management-metrics, .compact-metrics { grid-template-columns: repeat(4, minmax(0,1fr)); }
.freshness-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.freshness-grid > div { background: #f7f9fc; border: 1px solid var(--line); border-radius: 11px; padding: 14px; }
.freshness-grid span, .freshness-grid small { color: var(--muted); display: block; }
.freshness-grid strong { display: block; font-size: 18px; margin: 4px 0; }
.import-count { display: block; white-space: nowrap; }
.customer-total-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.customer-total-grid article { background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 13px; }
.customer-total-grid span, .customer-total-grid strong, .customer-total-grid small { display: block; }
.customer-total-grid strong { font-size: 20px; margin: 5px 0 2px; }
.customer-total-grid small { color: var(--muted); }
.date-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; min-width: 190px; padding: 15px 18px; text-align: right; }
.date-card small, .date-card span { color: #cbd7e6; display: block; }
.date-card strong { display: block; font-size: 22px; margin: 3px 0; }
.jump-nav { background: #fff; border: 1px solid var(--line); border-radius: 11px; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; position: sticky; top: 103px; z-index: 4; }
.jump-nav a { border-radius: 7px; color: var(--blue); font-size: 12px; font-weight: 750; padding: 7px 10px; }
.jump-nav a:hover { background: var(--blue-soft); }
.decision-panel { align-items: center; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 14px; display: grid; gap: 22px; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr); padding: 20px 22px; }
.decision-panel h2, .decision-panel p { margin-bottom: 0; }
.decision-panel p:not(.eyebrow) { color: var(--muted); margin-top: 5px; }
.decision-risk { border-left-color: var(--red); }
.decision-blocked, .decision-check { border-left-color: #e69922; }
.decision-facts { display: grid; gap: 9px; grid-template-columns: repeat(4, minmax(0,1fr)); }
.decision-facts span { background: #f7f9fc; border-radius: 9px; padding: 11px; }
.decision-facts small, .decision-facts strong { display: block; }
.decision-facts small { color: var(--muted); }
.decision-facts strong { margin-top: 4px; }
.detail-grid { display: grid; gap: 13px; grid-template-columns: repeat(4, minmax(0,1fr)); }
.detail-card { padding: 16px; }
.detail-card strong { display: block; margin: 5px 0; }
.reconcile-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
.reconcile-grid > div { background: #f7f9fc; border-radius: 10px; padding: 14px; }
.reconcile-grid small, .reconcile-grid strong { display: block; }
.reconcile-grid strong { font-size: 20px; margin-top: 4px; }
.order-meta { background: #f7f9fc; border-radius: 10px; display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 12px; padding: 13px 14px; }
.order-meta small, .order-meta strong { display: block; }
.order-meta small { color: var(--muted); }
.order-explanation { box-shadow: none; margin-bottom: 15px; }
.match-banner { align-items: center; background: #f7f9fc; border-left: 4px solid var(--blue); border-radius: 10px; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 14px; padding: 14px 16px; }
.match-banner strong, .match-banner span { display: block; }
.match-banner div > span { color: var(--muted); margin-top: 3px; }
.match-high { border-left-color: var(--green); }
.match-group { border-left-color: var(--blue); }
.match-medium, .match-missing, .match-uncertain { border-left-color: #e69922; }
.related-list { border-top: 1px solid var(--line); display: grid; margin-top: 15px; padding-top: 5px; }
.related-row { align-items: center; display: grid; gap: 10px; grid-template-columns: 90px 100px 1fr auto 90px; padding: 8px; }
.review-list { display: grid; gap: 14px; }
.review-card { background: #f8fafc; border: 1px solid var(--line); border-radius: 13px; display: grid; gap: 20px; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); padding: 17px; }
.review-summary p { color: var(--muted); }
.review-summary dl { display: grid; font-size: 13px; grid-template-columns: 150px 1fr; margin: 12px 0 0; }
.review-summary dt { color: var(--muted); }
.review-summary dd { margin: 0 0 5px; }
.manual-mark { color: var(--green); font-size: 11px; font-weight: 800; margin-left: 8px; }
.review-form { display: grid; gap: 9px; }
.review-form label { color: var(--muted); display: grid; font-size: 12px; gap: 4px; }
.review-form textarea { resize: vertical; }
.text-danger { color: var(--red) !important; font-weight: 750; }
.text-success { color: var(--green) !important; }
.empty { color: var(--muted); padding: 18px; text-align: center; }
.sticky-table thead th { background: #fff; position: sticky; top: 0; z-index: 2; }
.sticky-table th:first-child, .sticky-table td:first-child { background: #fff; box-shadow: 1px 0 0 var(--line); left: 0; position: sticky; z-index: 1; }
.sticky-table thead th:first-child { z-index: 3; }
.sticky-table tbody tr:hover td { background: #f8fbff; }
.procurement-table { min-width: 1600px; }
.customer-table { min-width: 1250px; }
.login-body { align-items: center; background: linear-gradient(140deg, #0d203c, #163f72); display: flex; justify-content: center; min-height: 100vh; padding: 22px; }
.login-card { background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); max-width: 420px; padding: 34px; width: 100%; }
.login-brand { align-items: center; display: flex; gap: 12px; margin-bottom: 20px; }
.login-brand strong, .login-brand small { display: block; }
.login-brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.login-card .brand-mark { background: var(--navy); color: #fff; flex: 0 0 40px; }
.login-card form { display: grid; gap: 13px; }
.login-card label { display: grid; gap: 5px; }
.button-wide { width: 100%; }
.security-note { align-items: flex-start; color: var(--muted); display: flex; font-size: 12px; margin: 18px 0 0; }
.security-note .privacy-dot { flex: 0 0 8px; margin-top: 5px; }

.repair-hero { background: linear-gradient(120deg, #112a4e, #165b7a); }
.repair-search-panel { display: grid; gap: 12px; scroll-margin-top: 112px; }
.repair-global-search { display: grid; gap: 7px; }
.repair-global-search > label span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.repair-search-control { display: flex; flex-wrap: wrap; gap: 10px; }
.repair-search-control input { flex: 1 1 560px; min-width: 180px; }
.repair-search-control .button { white-space: nowrap; }
.repair-search-help { color: var(--muted); font-size: 13px; margin: 0; }
.repair-search-result { align-items: baseline; background: var(--blue-soft); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 7px 18px; padding: 11px 13px; }
.repair-search-result strong { color: var(--blue); }
.repair-search-result span { color: var(--muted); font-size: 13px; }
.repair-filter-heading { align-items: baseline; display: flex; flex-wrap: wrap; gap: 5px 14px; margin: 2px 2px -8px; }
.repair-filter-heading span { color: var(--muted); font-size: 13px; }
.search-match { color: var(--blue) !important; font-weight: 700; }
.repair-filterbar {
  align-items: end;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  position: relative;
  z-index: 20;
}
.multi-filter {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 750;
  gap: 5px;
  min-width: 0;
  position: relative;
}
.multi-select { min-width: 0; position: relative; }
.multi-select summary {
  align-items: center;
  background: #fff;
  border: 1px solid #cfd6e2;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 500;
  height: 37px;
  list-style: none;
  padding: 0 32px 0 10px;
  position: relative;
}
.multi-select summary::-webkit-details-marker { display: none; }
.multi-select summary::after {
  content: "▾";
  position: absolute;
  right: 11px;
}
.multi-select summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.multi-select[open] summary { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,224,.13); }
.multi-select-options {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  left: 0;
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  position: absolute;
  top: calc(100% + 7px);
  width: min(460px, calc(100vw - 48px));
  z-index: 50;
}
.repair-filterbar .multi-select-options label {
  align-items: flex-start;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 500;
  gap: 9px;
  line-height: 1.35;
  padding: 8px;
}
.repair-filterbar .multi-select-options label:hover { background: var(--blue-soft); }
.repair-filterbar .multi-select-options input[type="checkbox"] {
  flex: 0 0 16px;
  height: 16px;
  margin: 1px 0 0;
  width: 16px;
}
.repair-filterbar label {
  min-width: 0;
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 750;
  gap: 5px;
}
.repair-filterbar input,
.repair-filterbar select {
  min-width: 0;
  width: 100%;
}
.repair-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.repair-grid .panel { min-width: 0; }
.repair-grid .panel-wide { grid-column: 1 / -1; }
#klantgeschiedenis { scroll-margin-top: 112px; }
.health-panel { margin-bottom: 18px; }
.health-summary { display: grid; gap: 10px; grid-template-columns: 1.35fr repeat(3, 1fr); margin-bottom: 18px; }
.health-summary > div { background: #f7faff; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 3px; padding: 14px 16px; }
.health-summary strong { color: var(--navy); font-size: 25px; line-height: 1; }
.health-summary span { color: var(--muted); font-size: 12px; }
.health-summary .health-score { background: linear-gradient(135deg, #ebfaf4, #f7fffc); border-color: #b8e5d4; }
.health-summary .health-score strong { color: #13815e; font-size: 32px; }
.health-period-switch { background: #edf3f9; border-radius: 10px; display: flex; gap: 3px; padding: 4px; }
.health-period-switch a { border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 750; padding: 8px 11px; text-decoration: none; }
.health-period-switch a:hover { background: rgba(255,255,255,.65); color: var(--ink); }
.health-period-switch a.active { background: #fff; box-shadow: 0 2px 7px rgba(8,37,70,.11); color: var(--blue); }
.health-legend { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.health-legend span { align-items: center; color: var(--muted); display: flex; font-size: 12px; gap: 6px; }
.health-legend i { border-radius: 3px; display: inline-block; height: 10px; width: 10px; }
.health-legend .health-good { background: #24a979; }
.health-legend .health-bad { background: #ee6472; }
.health-legend small { color: var(--muted); margin-left: auto; }
.health-chart { border: 1px solid var(--line); border-radius: 12px; display: grid; max-height: 650px; overflow-y: auto; }
.health-row { align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); display: grid; gap: 14px; grid-template-columns: 105px minmax(180px, 1.4fr) 68px minmax(330px, 1fr); padding: 13px 15px; text-decoration: none; transition: background .14s ease; }
.health-row:last-child { border-bottom: 0; }
.health-row:hover { background: #f3f9ff; }
.health-row > strong { font-size: 14px; }
.health-row > b { color: #13815e; font-size: 16px; text-align: right; }
.health-row > span { color: var(--muted); font-size: 12px; text-align: right; }
.health-row > span strong { color: #13815e; }
.health-row > span em { color: #d94e5d; font-style: normal; font-weight: 750; }
.health-row > span i { color: #a5b0c0; font-style: normal; padding: 0 4px; }
.health-meter { appearance: none; background: #ee6472; border: 0; border-radius: 999px; height: 20px; overflow: hidden; width: 100%; }
.health-meter::-webkit-meter-bar { background: #ee6472; border: 0; border-radius: 999px; }
.health-meter::-webkit-meter-optimum-value,
.health-meter::-webkit-meter-suboptimum-value,
.health-meter::-webkit-meter-even-less-good-value { background: linear-gradient(90deg, #16845f, #36bd8d); border-radius: 999px 0 0 999px; }
.health-meter::-moz-meter-bar { background: linear-gradient(90deg, #16845f, #36bd8d); border-radius: 999px 0 0 999px; }
.health-note { color: var(--muted); font-size: 11px; margin: 8px 0 0; }

/* Merkenintelligentie */
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.brand-hero { background: radial-gradient(circle at 84% 14%, rgba(25,200,192,.28), transparent 30%), linear-gradient(120deg, #0d2343, #153d6d 58%, #126b7d); }
.brand-hero-score { align-items: flex-end; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; display: grid; min-width: 220px; padding: 17px 20px; text-align: right; }
.brand-hero-score strong { font-size: 34px; line-height: 1; }
.brand-hero-score span { color: #d9f3f3; font-size: 12px; margin-top: 5px; }
.brand-filterbar { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.brand-filterbar .brand-search { grid-column: span 2; }
.brand-kpis { display: grid; gap: 12px; grid-template-columns: 1.25fr repeat(4, 1fr); margin-bottom: 18px; }
.brand-kpi { background: linear-gradient(145deg, #fff, #f4f8fd); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); display: grid; gap: 5px; min-width: 0; padding: 17px 18px; }
.brand-kpi span { color: var(--muted); font-size: 12px; font-weight: 700; }
.brand-kpi strong { color: var(--navy); font-size: 28px; line-height: 1.05; }
.brand-kpi small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.brand-kpi-primary { background: linear-gradient(145deg, #eaf4ff, #f9fcff); border-color: #bad8fb; }
.brand-kpi-primary strong { color: var(--blue); font-size: 34px; }
.brand-kpi-teal { background: linear-gradient(145deg, #e8fbf8, #f9fffe); border-color: #b8e7df; }
.brand-kpi-teal strong { color: #078978; }
.brand-kpi-muted strong { color: #63748d; }
.brand-dashboard-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); margin-bottom: 18px; }
.brand-overview-grid { grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr); }
.brand-module { min-width: 0; }
.donut-layout { align-items: center; display: grid; gap: 26px; grid-template-columns: 250px minmax(0, 1fr); }
.donut-chart { align-items: center; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 13px 30px rgba(22,69,112,.12); display: flex; justify-content: center; margin: 8px auto; max-width: 240px; position: relative; width: 100%; }
.donut-chart > svg { height: 100%; inset: 0; position: absolute; width: 100%; }
.donut-chart .donut-base, .donut-chart .donut-segment { fill: none; stroke-width: 19; }
.donut-chart .donut-base { stroke: #edf2f7; }
.donut-chart > div { display: grid; position: relative; text-align: center; z-index: 1; }
.donut-chart strong { color: var(--navy); font-size: 29px; line-height: 1; }
.donut-chart span { color: var(--muted); font-size: 11px; margin-top: 5px; }
.donut-chart-small { max-width: 200px; }
.donut-legend { display: grid; max-height: 365px; overflow: auto; padding-right: 5px; }
.donut-legend a { align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); display: grid; gap: 9px; grid-template-columns: 10px minmax(0, 1fr) auto; padding: 8px 2px; text-decoration: none; }
.donut-legend a:hover { background: #f5f9fe; }
.donut-legend i, .trend-legend i, .brand-performance i, .recognition-list i { display: inline-block; height: 9px; width: 9px; }
.donut-legend i svg, .trend-legend i svg, .brand-performance i svg, .recognition-list i svg { display: block; height: 100%; width: 100%; }
.donut-legend span strong, .donut-legend span small { display: block; }
.donut-legend span strong { font-size: 13px; }
.donut-legend span small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.donut-legend > a > b { font-size: 13px; text-align: right; }
.donut-legend > a > b small { color: var(--muted); display: block; font-size: 10px; }
.recognition-layout { grid-template-columns: 205px minmax(0, 1fr); }
.recognition-list { display: grid; gap: 7px; }
.recognition-list a { align-items: center; background: #f6f9fd; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); display: grid; gap: 2px 8px; grid-template-columns: minmax(0,1fr) auto; padding: 10px; text-decoration: none; }
.recognition-list span { align-items: center; display: flex; font-size: 12px; gap: 7px; }
.recognition-list a > span { grid-row: 1 / 3; }
.recognition-list a > strong, .recognition-list b { text-align: right; }
.recognition-list b { color: var(--muted); font-size: 10px; }
.model-note { background: #eef6ff; border-left: 3px solid var(--blue); border-radius: 9px; margin-top: 18px; padding: 11px 13px; }
.model-note strong { color: var(--navy); font-size: 12px; }
.model-note p { color: var(--muted); font-size: 11px; line-height: 1.45; margin: 4px 0 0; }
.trend-legend { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-bottom: 14px; }
.trend-legend span { align-items: center; color: var(--muted); display: flex; font-size: 11px; gap: 6px; }
.brand-trend-chart { border: 1px solid var(--line); border-radius: 12px; display: grid; max-height: 610px; overflow: auto; }
.brand-trend-row { align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); display: grid; gap: 12px; grid-template-columns: 90px minmax(220px,1fr) 70px 80px; padding: 11px 13px; text-decoration: none; }
.brand-trend-row:last-child { border-bottom: 0; }
.brand-trend-row:hover { background: #f4f9ff; }
.brand-trend-row > strong { font-size: 12px; }
.brand-trend-row > b { text-align: right; }
.brand-trend-row > small { color: var(--muted); text-align: right; }
.trend-scale { background: #edf2f7; border-radius: 7px; height: 24px; overflow: hidden; }
.trend-scale svg { display: block; height: 100%; width: 100%; }
.trend-bar { display: flex; height: 100%; min-width: 2px; overflow: hidden; transition: width .25s ease; }
.trend-bar span { display: block; height: 100%; min-width: 1px; }
.brand-performance { display: grid; max-height: 675px; overflow: auto; }
.brand-performance > a { align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); display: grid; gap: 12px; grid-template-columns: minmax(170px,1.4fr) 75px 75px minmax(105px,.8fr); padding: 11px 3px; text-decoration: none; }
.brand-performance > a:hover { background: #f5f9fe; }
.brand-performance > a > span { display: grid; grid-template-columns: 10px minmax(0,1fr); gap: 1px 7px; }
.brand-performance > a > span i { grid-row: 1 / 3; margin-top: 4px; }
.brand-performance > a > span small { color: var(--muted); font-size: 10px; }
.brand-performance > a > div { display: grid; text-align: right; }
.brand-performance > a > div small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.brand-performance .reject-rate meter { height: 7px; margin-left: auto; max-width: 85px; width: 100%; }
.brand-code-grid { display: grid; gap: 11px; grid-template-columns: repeat(2, minmax(0,1fr)); max-height: 675px; overflow: auto; }
.brand-code-grid article { background: #f7faff; border: 1px solid var(--line); border-radius: 11px; padding: 11px; }
.brand-code-grid h3 { align-items: baseline; display: flex; font-size: 13px; justify-content: space-between; margin: 0 0 6px; }
.brand-code-grid h3 small { color: var(--muted); font-size: 9px; font-weight: 600; }
.brand-code-grid a { align-items: center; color: var(--ink); display: grid; font-size: 11px; gap: 7px; grid-template-columns: minmax(130px,1.65fr) minmax(60px,1fr) 58px; padding: 5px 0; text-decoration: none; }
.brand-code-grid a > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-code-grid a meter { height: 9px; width: 100%; }
.brand-code-grid a b { text-align: right; }
.brand-code-grid a b small { color: var(--muted); display: block; font-size: 9px; font-weight: 700; margin-top: 1px; }
.brand-rejection-explorer { margin-bottom: 18px; overflow: hidden; padding-bottom: 20px; }
.brand-rejection-explorer[aria-busy="true"] .brand-explorer-period::before { animation: brand-period-spin .8s linear infinite; border: 2px solid #b8d4f2; border-top-color: #1769e0; border-radius: 50%; content: ""; display: inline-block; height: 9px; margin-right: 7px; vertical-align: -1px; width: 9px; }
.brand-period-updating { opacity: .56; transition: opacity .15s ease; }
@keyframes brand-period-spin { to { transform: rotate(360deg); } }
.brand-explorer-head { align-items: end; }
.brand-explorer-head h2 { font-size: 22px; }
.brand-explorer-head p:not(.eyebrow) { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.brand-explorer-period { background: linear-gradient(135deg,#e7f2ff,#f6fbff); border: 1px solid #c6ddf8; border-radius: 999px; color: #174f8d; font-size: 11px; font-weight: 800; padding: 8px 12px; white-space: nowrap; }
.brand-explorer-kpis { display: grid; gap: 10px; grid-template-columns: repeat(5,minmax(0,1fr)); margin: 2px 0 16px; }
.brand-explorer-kpis article { background: linear-gradient(150deg,#f7faff,#fff); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 3px; padding: 10px 13px; }
.brand-explorer-kpis span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.brand-explorer-kpis strong { color: var(--navy); font-size: 21px; font-variant-numeric: tabular-nums; }
.brand-explorer-kpis .brand-explorer-kpi-alert { background: linear-gradient(145deg,#fff1f4,#fffafb); border-color: #f3c3cd; }
.brand-explorer-kpis .brand-explorer-kpi-alert strong { color: #bf2440; }
.brand-explorer-legend { align-items: center; display: flex; gap: 7px; margin-bottom: 12px; overflow-x: auto; padding: 1px 1px 7px; scrollbar-width: thin; }
.brand-explorer-legend button, .brand-explorer-legend-total { align-items: center; background: #fff; border: 1px solid #d4dfec; border-radius: 999px; color: var(--muted); display: inline-flex; flex: 0 0 auto; font-size: 10px; font-weight: 750; gap: 6px; min-height: 28px; padding: 5px 9px; }
.brand-explorer-legend button { cursor: pointer; }
.brand-explorer-legend button:hover { border-color: #8eb8e9; color: var(--ink); }
.brand-explorer-legend button[aria-pressed="false"] { background: #f7f9fc; opacity: .48; }
.brand-explorer-legend button[aria-pressed="true"] { border-color: #9dc5f1; box-shadow: 0 3px 9px rgba(21,91,164,.08); color: var(--ink); }
.brand-explorer-legend i { border-radius: 50%; display: inline-block; height: 8px; width: 8px; }
.brand-explorer-canvas { background: radial-gradient(circle at 80% 0,rgba(13,110,253,.055),transparent 34%),linear-gradient(180deg,#fbfdff,#f3f8fd); border: 1px solid #cfdceb; border-radius: 15px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8),0 12px 28px rgba(25,70,116,.07); min-height: 430px; overflow-x: auto; position: relative; }
.brand-explorer-canvas svg { display: block; min-width: 850px; width: 100%; }
.brand-chart-background { fill: rgba(255,255,255,.6); stroke: #dce6f1; }
.brand-chart-gridline { stroke: #cdd9e7; stroke-width: 1; vector-effect: non-scaling-stroke; }
.brand-chart-gridline-vertical { opacity: .52; stroke-dasharray: 3 6; }
.brand-chart-axis-label { fill: #6b7d94; font-size: 11px; font-weight: 650; }
.brand-chart-month-label { font-size: 10px; }
.brand-chart-axis-title { fill: #3f5977; font-size: 10px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.brand-chart-series { filter: drop-shadow(0 2px 2px rgba(16,45,82,.13)); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; transition: opacity .16s ease; vector-effect: non-scaling-stroke; }
.brand-chart-series-overall { stroke-dasharray: 7 5; stroke-width: 3.5; }
.brand-chart-point { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.brand-chart-hitarea { cursor: crosshair; outline: none; }
.brand-chart-hitarea:focus { stroke: rgba(13,110,253,.28); stroke-width: 2; }
.brand-explorer-tooltip { background: rgba(7,22,44,.96); border: 1px solid rgba(255,255,255,.13); border-radius: 11px; box-shadow: 0 14px 34px rgba(6,28,55,.26); color: #fff; display: grid; gap: 6px; min-width: 265px; padding: 11px 12px; pointer-events: none; position: absolute; z-index: 6; }
.brand-explorer-tooltip[hidden] { display: none; }
.brand-explorer-tooltip > strong { border-bottom: 1px solid rgba(255,255,255,.15); font-size: 12px; padding-bottom: 7px; }
.brand-explorer-tooltip > span { align-items: center; display: grid; font-size: 10px; gap: 7px; grid-template-columns: 8px minmax(80px,1fr) auto; }
.brand-explorer-tooltip i { border-radius: 50%; height: 7px; width: 7px; }
.brand-explorer-tooltip em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-explorer-tooltip b { font-variant-numeric: tabular-nums; text-align: right; }
.brand-range-panel { background: linear-gradient(180deg,#f5f9fe,#eef5fc); border: 1px solid #d5e1ee; border-radius: 13px; margin-top: 13px; padding: 12px 16px 11px; }
.brand-range-meta { align-items: center; color: #516983; display: grid; font-size: 10px; grid-template-columns: 110px 1fr 110px; margin-bottom: 4px; }
.brand-range-meta strong { color: #74869a; font-size: 9px; letter-spacing: .045em; text-align: center; text-transform: uppercase; }
.brand-range-meta span:last-child { text-align: right; }
.brand-range-control { height: 30px; position: relative; }
.brand-range-rail { background: #cbd8e7; border-radius: 999px; height: 6px; left: 8px; overflow: hidden; position: absolute; right: 8px; top: 12px; }
.brand-range-rail span { background: linear-gradient(90deg,#0d6efd,#00a9a5); border-radius: inherit; bottom: 0; box-shadow: 0 0 10px rgba(13,110,253,.25); position: absolute; top: 0; }
.brand-range-control input { appearance: none; background: transparent; height: 30px; inset: 0; margin: 0; padding: 0 8px; pointer-events: none; position: absolute; width: 100%; }
.brand-range-control input[data-brand-range-start] { z-index: 3; }
.brand-range-control input[data-brand-range-end] { z-index: 2; }
.brand-range-control input::-webkit-slider-runnable-track { background: transparent; border: 0; height: 6px; }
.brand-range-control input::-webkit-slider-thumb { appearance: none; background: #fff; border: 3px solid #0d6efd; border-radius: 50%; box-shadow: 0 3px 9px rgba(12,62,118,.28); cursor: ew-resize; height: 18px; margin-top: -6px; pointer-events: auto; width: 18px; }
.brand-range-control input[data-brand-range-end]::-webkit-slider-thumb { border-color: #00a9a5; }
.brand-range-control input::-moz-range-track { background: transparent; border: 0; height: 6px; }
.brand-range-control input::-moz-range-thumb { background: #fff; border: 3px solid #0d6efd; border-radius: 50%; box-shadow: 0 3px 9px rgba(12,62,118,.28); cursor: ew-resize; height: 13px; pointer-events: auto; width: 13px; }
.brand-range-control input[data-brand-range-end]::-moz-range-thumb { border-color: #00a9a5; }
.brand-range-presets { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 5px; }
.brand-range-presets button { background: #fff; border: 1px solid #c8d7e7; border-radius: 999px; color: #45617e; cursor: pointer; font-size: 9px; font-weight: 800; padding: 5px 9px; }
.brand-range-presets button:hover { background: #e8f3ff; border-color: #8eb8e9; color: #0b5bb7; }
.brand-explorer-empty { margin: 30px 0; text-align: center; }
.brand-pattern-table { min-width: 1050px; }
.brand-pattern-table td { vertical-align: middle; }
.brand-review-module { margin-bottom: 0; }
.unknown-grid { display: grid; gap: 9px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.unknown-grid a { background: linear-gradient(145deg,#f7f9fc,#fff); border: 1px solid var(--line); border-radius: 11px; color: var(--ink); display: grid; gap: 4px; grid-template-columns: minmax(0,1fr) auto; padding: 12px; text-decoration: none; }
.unknown-grid a:hover { border-color: #9bc3f4; box-shadow: 0 6px 18px rgba(17,75,135,.09); }
.unknown-grid a strong { color: #63748d; }
.unknown-grid a small { color: var(--muted); grid-column: 1 / -1; line-height: 1.3; }
.bar-stack {
  display: grid;
  gap: 10px;
}
.bar-stack a,
.bar-stack div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(170px, 1fr) minmax(160px, 2fr) 66px;
  padding: 8px 0;
}
.bar-stack a:last-child,
.bar-stack div:last-child {
  border-bottom: 0;
}
.bar-stack meter {
  height: 14px;
  width: 100%;
}
.bar-stack strong {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.bar-stack .reject-reason-row { grid-template-columns: minmax(170px, 1fr) minmax(160px, 2fr) 116px; }
.reject-reason-row strong { white-space: nowrap; }
.reject-reason-row strong small { color: var(--muted); font-size: 11px; font-weight: 700; }
.stat-label { min-width: 0; }
.stat-label b, .stat-label small { display: block; }
.stat-label b { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.stat-label small { color: var(--muted); line-height: 1.3; margin-top: 3px; }
.reject-instrument-head { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.tile-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.maintenance-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.maintenance-tile {
  background: linear-gradient(180deg, #fff, #f6faff);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  display: grid;
  gap: 5px;
  min-height: 122px;
  padding: 17px;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.maintenance-tile:hover {
  background: #f4faff;
  border-color: rgba(13, 110, 253, .28);
  transform: translateX(2px);
}
.maintenance-tile > span { color: var(--muted); font-weight: 800; }
.maintenance-tile strong { color: #0d6efd; font-size: 30px; line-height: 1; }
.maintenance-tile small { color: var(--muted); line-height: 1.35; }
.maintenance-preventive { border-top: 4px solid #18a36b; }
.maintenance-reactive { border-top: 4px solid #f09a22; }
.maintenance-preventive strong { color: #128158; }
.maintenance-reactive strong { color: #c36f08; }
.maintenance-detail-panel .panel-head {
  align-items: start;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr);
}
.maintenance-detail-panel .panel-head > .muted { text-align: left; }
.small-tile {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  display: grid;
  min-height: 92px;
  padding: 14px;
}
.small-tile strong {
  color: var(--blue);
  font-size: 28px;
}
.small-tile span {
  align-self: end;
  color: var(--muted);
  font-weight: 750;
}
.customer-stack {
  display: grid;
}
.customer-stack a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 92px 82px 78px;
  padding: 10px 0;
}
.customer-stack a:last-child {
  border-bottom: 0;
}
.customer-stack strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-stack span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.insight-list {
  display: grid;
  gap: 10px;
}
.insight-list p {
  background: #f7f9fc;
  border-left: 4px solid var(--blue);
  border-radius: 9px;
  color: var(--muted);
  margin: 0;
  padding: 11px 13px;
}

/* Accountbeheer */
.user-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.users-table { min-width: 980px; }
.users-table td:first-child { min-width: 220px; }
.users-table td:last-child { text-align: right; }
.audit-list { display: grid; }
.audit-list > div { align-items: start; border-top: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: 150px minmax(0, 1fr); padding: 12px 2px; }
.audit-list > div:first-child { border-top: 0; }
.audit-list time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.audit-list span, .audit-list small { display: block; }
.audit-list small { color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.user-hero .date-card { min-width: 250px; }
.user-admin-grid { align-items: start; display: grid; gap: 22px; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.user-side-stack { display: grid; gap: 22px; }
.account-form label, .user-side-stack label, .delete-user-form label { color: var(--muted); display: grid; font-size: 12px; font-weight: 700; gap: 6px; }
.account-form label small, .user-side-stack label small, .delete-user-form label small { font-weight: 400; }
.account-form input, .account-form select, .user-side-stack input, .delete-user-form input { min-width: 0; width: 100%; }
.form-two-columns, .password-fields { display: grid; gap: 15px; grid-template-columns: 1fr 1fr; }
.password-fields { border-top: 1px solid var(--line); padding-top: 17px; }
.password-policy { background: var(--blue-soft); border-radius: 8px; color: #315478; font-size: 12px; margin: 0; padding: 10px 12px; }
.form-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; padding-top: 3px; }
.toggle-field { align-content: start; }
.checkbox-line { align-items: center; background: #f7f9fc; border: 1px solid #cfd6e2; border-radius: 8px; color: var(--ink); display: flex; font-size: 14px; font-weight: 500; min-height: 42px; padding: 9px 11px; }
.checkbox-line input { flex: 0 0 auto; height: 17px; margin: 0 9px 0 0; width: 17px; }
.toggle-static { align-items: center; background: var(--green-soft); border: 1px solid #bce4d3; border-radius: 8px; color: var(--green); display: flex; font-size: 14px; min-height: 42px; padding: 9px 11px; }
.toggle-static i { background: var(--green); border-radius: 50%; display: inline-block; height: 8px; margin-right: 9px; width: 8px; }
.danger-zone { align-items: center; border-color: #f0bbc3; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(330px, .65fr); }
.danger-zone h2 { color: var(--red); }
.danger-zone p:last-child { margin-bottom: 0; }
.delete-user-form { align-items: end; display: grid; gap: 10px; grid-template-columns: minmax(190px, 1fr) auto; }

/* Gegroepeerde vergelijking tussen Service en Exact */
.bom-difference-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bom-difference-table { min-width: 1900px; }
.bom-difference-table th:nth-child(1) { min-width: 255px; }
.bom-difference-table th:nth-child(2) { min-width: 220px; }
.bom-difference-table th:nth-child(3), .bom-difference-table th:nth-child(4) { min-width: 330px; }
.bom-difference-table th:nth-child(5) { min-width: 220px; }
.bom-difference-table th:nth-child(6), .bom-difference-table th:nth-child(7) { min-width: 300px; }
.bom-difference-table td { vertical-align: top; }
.bom-difference-table td p { margin: 0 0 7px; }
.bom-difference-table td small { color: var(--muted); display: block; margin-top: 5px; }
.bom-difference-table .product-code { display: block; font-size: 14px; margin-top: 9px; }

@media (max-width: 1200px) {
  .brand-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-explorer-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .brand-dashboard-grid, .brand-overview-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .repair-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .repair-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-form { grid-template-columns: 1fr 1fr; }
  .workflow-note-field { grid-column: span 2; }
  .decision-panel { grid-template-columns: 1fr; }
  .user-admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .brand-explorer-head { align-items: flex-start; flex-direction: column; }
  .brand-explorer-period { white-space: normal; }
  .brand-explorer-canvas { min-height: 360px; }
  .donut-layout, .recognition-layout { grid-template-columns: 1fr; }
  .unknown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-trend-row { grid-template-columns: 72px minmax(140px, 1fr) 58px; }
  .brand-trend-row > small { display: none; }
  .brand-performance > a { grid-template-columns: minmax(150px, 1fr) 58px 58px; }
  .brand-performance .reject-rate { grid-column: 1 / -1; grid-template-columns: 1fr auto 110px; gap: 8px; text-align: left; }
  .app-shell { display: block; }
  .sidebar { height: auto; position: static; }
  .nav { grid-template-columns: 1fr 1fr; }
  .sidebar-foot { display: none; }
  .topbar { padding: 16px 18px; position: static; }
  .content { padding: 20px 14px 35px; }
  .split-grid, .review-card { grid-template-columns: 1fr; }
  .hero-panel { align-items: flex-start; flex-direction: column; gap: 18px; }
  .sync-head { align-items: stretch; flex-direction: column; }
  .metric-grid, .detail-grid, .reconcile-grid, .order-meta { grid-template-columns: 1fr 1fr; }
  .decision-facts { grid-template-columns: 1fr 1fr; }
  .jump-nav { position: static; }
  .truth-banner { display: block; }
  .truth-banner strong { display: block; margin-bottom: 6px; }
  .user-metrics { grid-template-columns: 1fr 1fr; }
  .customer-stack a { grid-template-columns: minmax(0, 1fr) 80px 72px; }
  .customer-stack a span:last-child { display: none; }
  .danger-zone { align-items: start; grid-template-columns: 1fr; }
  .health-summary { grid-template-columns: 1fr 1fr; }
  .health-panel .panel-head { align-items: flex-start; flex-direction: column; }
  .health-row { gap: 8px; grid-template-columns: 80px minmax(120px, 1fr) 58px; }
  .health-row > span { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 520px) {
  .brand-kpis, .unknown-grid, .brand-code-grid { grid-template-columns: 1fr; }
  .brand-explorer-kpis { grid-template-columns: 1fr 1fr; }
  .brand-range-meta { grid-template-columns: 1fr 1fr; }
  .brand-range-meta strong { display: none; }
  .brand-filterbar .brand-search { grid-column: auto; }
  .metric-grid, .detail-grid, .reconcile-grid, .order-meta, .repair-filterbar, .repair-summary, .tile-grid, .maintenance-grid { grid-template-columns: 1fr; }
  .bar-stack a, .bar-stack div { grid-template-columns: minmax(0, 1fr) 54px; }
  .bar-stack .reject-reason-row { grid-template-columns: minmax(0, 1fr) 96px; }
  .bar-stack meter { grid-column: 1 / -1; grid-row: 2; }
  .customer-stack a { grid-template-columns: minmax(0, 1fr) 72px; }
  .customer-stack a span:nth-child(3) { display: none; }
  .decision-facts, .workflow-form { grid-template-columns: 1fr; }
  .workflow-note-field, .filterbar-grid label:first-child { grid-column: span 1; }
  .health-summary { grid-template-columns: 1fr; }
  .filterbar-grid { grid-template-columns: 1fr; }
  .form-two-columns, .password-fields, .user-metrics { grid-template-columns: 1fr; }
  .delete-user-form { align-items: stretch; grid-template-columns: 1fr; }
  .audit-list > div { gap: 4px; grid-template-columns: 1fr; }
  .user-identity { display: none; }
  .user-menu > span { display: none; }
  .nav { grid-template-columns: 1fr; }
  .page-actions { align-items: stretch; flex-direction: column; gap: 10px; }
}

/* Regie Cockpit redesign */
:root {
  --ink: #061429;
  --muted: #617089;
  --line: #dce5f2;
  --paper: rgba(255, 255, 255, .88);
  --canvas: #eef4fb;
  --navy: #07162c;
  --blue: #0d6efd;
  --blue-soft: #e5f0ff;
  --green: #00a878;
  --green-soft: #ddfbf0;
  --amber: #d07900;
  --amber-soft: #fff2da;
  --red: #d62f4b;
  --red-soft: #ffe6eb;
  --cyan: #00b8d9;
  --violet: #7c3aed;
  --shadow: 0 18px 45px rgba(5, 18, 38, .09);
  --glow-blue: 0 0 0 1px rgba(13, 110, 253, .16), 0 20px 55px rgba(13, 110, 253, .16);
}

html {
  background:
    linear-gradient(135deg, rgba(0,184,217,.08), transparent 28%),
    linear-gradient(225deg, rgba(124,58,237,.08), transparent 32%),
    var(--canvas);
  color: var(--ink);
  font-size: 16px;
}

body {
  min-height: 100vh;
}

.app-shell {
  grid-template-columns: 272px minmax(0, 1fr);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(8, 29, 57, .96), rgba(4, 12, 27, .98)),
    var(--navy);
  border-right: 1px solid rgba(156, 184, 224, .18);
  box-shadow: 20px 0 50px rgba(2, 8, 20, .18);
  padding: 22px 14px;
}

.brand {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  margin-bottom: 14px;
  padding: 12px;
}

.brand:hover {
  background: rgba(255, 255, 255, .04);
}

.brand-mark {
  background: linear-gradient(135deg, #fff, #dceaff);
  border-radius: 13px;
  box-shadow: 0 0 24px rgba(0, 184, 217, .22);
  color: #07162c;
  height: 44px;
  width: 44px;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0;
}

.brand small {
  color: #9fb0c9;
  font-size: 12px;
}

.sidebar-status {
  align-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  color: #d7e3f6;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: 10px 1fr;
  margin: 0 4px 18px;
  padding: 12px;
}

.sidebar-status span {
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(0, 168, 120, .8);
  grid-row: span 2;
  height: 10px;
  width: 10px;
}

.sidebar-status strong,
.sidebar-status small {
  display: block;
  line-height: 1.15;
}

.sidebar-status strong {
  font-size: 13px;
}

.sidebar-status small {
  color: #91a2bd;
  font-size: 11px;
}

.nav {
  gap: 6px;
}

.nav a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #c9d6e9;
  display: flex;
  font-size: 14px;
  min-height: 44px;
  padding: 11px 12px;
  position: relative;
}

.nav a::before {
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  border-radius: 999px;
  content: "";
  height: 18px;
  margin-right: 10px;
  opacity: .38;
  width: 4px;
}

.nav a:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .1);
  color: #fff;
  transform: translateX(2px);
}

.nav a.active {
  background: linear-gradient(135deg, rgba(13, 110, 253, .28), rgba(0, 184, 217, .16));
  border-color: rgba(145, 190, 255, .32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 34px rgba(0,0,0,.18);
  color: #fff;
}

.nav a.active::after {
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(0, 184, 217, .9);
  content: "";
  height: 7px;
  position: absolute;
  right: 12px;
  width: 7px;
}

.sidebar-foot {
  background: rgba(255, 255, 255, .05);
  border-radius: 13px;
  color: #9fb0c9;
  margin: auto 4px 0;
  padding: 13px;
}

.topbar {
  background: rgba(246, 250, 255, .82);
  border-bottom: 1px solid rgba(150, 170, 205, .34);
  box-shadow: 0 10px 34px rgba(5, 18, 38, .06);
  min-height: 92px;
  padding: 22px 38px;
}

.topbar h1 {
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 850;
  letter-spacing: 0;
}

.eyebrow {
  color: #60718e;
  font-size: 11px;
  letter-spacing: .08em;
}

.user-menu {
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(150, 170, 205, .34);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(5, 18, 38, .06);
  padding: 6px;
}

.density-toggle {
  background: #061429;
  border: 1px solid rgba(13, 110, 253, .25);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 36px;
  padding: 0 13px;
}

.density-toggle[aria-pressed="true"] {
  background: linear-gradient(135deg, #0d6efd, #00a6c8);
}

.user-identity {
  padding-left: 12px;
}

.content {
  gap: 24px;
  padding: 30px 38px 62px;
}

.hero-panel {
  background:
    linear-gradient(135deg, rgba(2, 16, 36, .96), rgba(10, 70, 113, .92)),
    linear-gradient(90deg, rgba(0,184,217,.2), rgba(124,58,237,.16));
  border: 1px solid rgba(117, 178, 255, .24);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(5, 18, 38, .22);
  padding: 30px 32px;
}

.hero-panel h2 {
  font-size: clamp(24px, 2.35vw, 38px);
  letter-spacing: 0;
}

.hero-panel p {
  color: #d5e2f5;
  font-size: 16px;
}

.panel,
.metric,
.detail-card,
.alert,
.info-banner,
.truth-banner,
.sync-panel,
.filterbar {
  backdrop-filter: blur(14px);
  border-color: rgba(142, 163, 195, .34);
  box-shadow: var(--shadow);
}

.panel,
.sync-panel,
.filterbar {
  border-radius: 18px;
}

.panel {
  padding: 24px;
}

.panel-head {
  border-bottom: 1px solid rgba(220, 229, 242, .82);
  margin: -2px 0 18px;
  padding-bottom: 14px;
}

.panel-head h2 {
  font-size: 21px;
  letter-spacing: 0;
}

.metric {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,251,255,.9));
  border-radius: 18px;
  border-top-width: 0;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.metric::before {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  content: "";
  height: 3px;
  inset: 0 0 auto;
  position: absolute;
}

.metric-danger::before {
  background: linear-gradient(90deg, var(--red), #ff7a45);
}

.metric-warn::before {
  background: linear-gradient(90deg, var(--amber), #ffbf3f);
}

.metric strong {
  color: #061429;
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 850;
}

.metric-link:hover {
  box-shadow: var(--glow-blue);
  transform: translateY(-3px);
}

.metric-link em {
  color: #0b63d1;
  font-size: 12px;
}

.button {
  border-radius: 12px;
  min-height: 40px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button:hover {
  filter: none;
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #0d6efd, #00a6c8);
  box-shadow: 0 10px 24px rgba(13, 110, 253, .2);
}

.button-ghost {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(142, 163, 195, .46);
}

input,
select,
textarea {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(142, 163, 195, .55);
  border-radius: 12px;
  min-height: 41px;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(0, 184, 217, .16);
}

.filterbar {
  background: rgba(255, 255, 255, .78);
  padding: 16px;
}

.sync-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(247,251,255,.86));
}

.progress-track {
  background: rgba(208, 220, 235, .8);
  height: 14px;
}

.progress-track span {
  background: linear-gradient(90deg, #0d6efd, #00d1b2);
  box-shadow: 0 0 18px rgba(0, 184, 217, .45);
}

th {
  background: #f2f6fb;
  color: #52647f;
  font-size: 12px;
  letter-spacing: .03em;
}

th,
td {
  padding: 14px 12px;
}

tbody tr {
  transition: background .12s ease, box-shadow .12s ease;
}

tbody tr:hover td {
  background: #f3f9ff;
}

.sticky-table thead th {
  background: #f2f6fb;
  top: 0;
}

.sticky-table th:first-child,
.sticky-table td:first-child {
  background: inherit;
}

.row-link {
  color: #075fc2;
}

.pill {
  border-radius: 10px;
  font-size: 12px;
  padding: 5px 10px;
}

.bar-stack a,
.bar-stack div,
.customer-stack a,
.compact-list a,
.compact-list > div {
  border-color: rgba(220, 229, 242, .9);
}

.bar-stack a,
.customer-stack a,
.small-tile {
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}

.bar-stack a:hover,
.customer-stack a:hover,
.small-tile:hover {
  background: #f4faff;
  border-color: rgba(13, 110, 253, .28);
  transform: translateX(2px);
}

.small-tile {
  background: linear-gradient(180deg, #ffffff, #f6faff);
  border-radius: 16px;
  min-height: 104px;
}

.small-tile strong {
  color: #0d6efd;
  font-weight: 850;
}

.login-body {
  background:
    linear-gradient(140deg, #07162c, #0c3d68);
}

.login-card {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(2, 8, 20, .36);
}

@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(156, 184, 224, .18);
    height: auto;
  }

  .content,
  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .user-menu {
    border-radius: 16px;
  }
}

html[data-density="compact"] .content {
  gap: 16px;
  padding-top: 22px;
}

html[data-density="compact"] .panel,
html[data-density="compact"] .sync-panel,
html[data-density="compact"] .filterbar {
  padding: 16px;
}

html[data-density="compact"] .hero-panel {
  padding: 22px 24px;
}

html[data-density="compact"] th,
html[data-density="compact"] td {
  padding: 9px 10px;
}

html[data-density="compact"] .metric {
  padding: 14px;
}

html[data-density="compact"] .metric strong {
  font-size: 24px;
}
