/* =========================================================================
   styles.css — nrg charge design system
   Refined minimalism. Geen rondingen behalve de kenmerkende schuine hoek.
   ========================================================================= */

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

html, body {
  height: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--brand-ink);
  background: var(--brand-paper-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app { min-height: 100vh; }

button { font-family: inherit; }
input { font-family: inherit; font-size: 14px; }

/* ===== app shell ===== */
.shell {
  display: flex;
  min-height: 100vh;
}

/* ===== sidebar ===== */
.sidebar {
  width: 248px;
  background: var(--brand-paper);
  border-right: 1px solid var(--brand-line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
}

.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--brand-line);
}

.sidebar-mark {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.sidebar-mark-img {
  height: 22px;
  width: auto;
  display: block;
}

.sidebar-mark-product {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  color: var(--brand-primary-dark);
  letter-spacing: -0.01em;
}

.sidebar-mark-reg {
  font-size: 9px;
  color: var(--brand-primary);
  vertical-align: super;
  margin-left: 2px;
}

.sidebar-tagline {
  margin-top: 8px;
  font-size: 11px;
  color: var(--brand-muted);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.sidebar-section {
  padding: 8px 20px 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-muted-soft);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  color: var(--brand-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  border-left: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
}

.sidebar-link:hover {
  background: var(--brand-paper-grey);
}

.sidebar-link.is-active {
  background: var(--brand-paper-grey);
  border-left-color: var(--brand-primary);
  color: var(--brand-primary-dark);
  font-weight: 500;
}

.sidebar-link-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.sidebar-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--brand-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  background: var(--brand-paper-grey);
  color: var(--brand-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.sidebar-user-meta { min-width: 0; }
.sidebar-user-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 11px;
  color: var(--brand-muted);
  text-transform: lowercase;
}

.icon-btn {
  background: none;
  border: 1px solid var(--brand-line);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--brand-muted);
  transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.icon-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ===== main content ===== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  background: var(--brand-paper);
  border-bottom: 1px solid var(--brand-line);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--brand-ink-deep);
  letter-spacing: -0.01em;
}

.topbar-sub {
  font-size: 13px;
  color: var(--brand-muted);
  margin-top: 2px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  background: var(--brand-paper-soft);
}

.content-narrow { max-width: 1200px; margin: 0 auto; }

/* ===== signature: schuine hoek (van de huisstijl) ===== */
.slant {
  position: relative;
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
}
.slant--accent {
  background: var(--brand-primary-dark);
  color: var(--brand-paper);
  border: none;
}
.slant--green {
  background: var(--brand-accent);
  color: var(--brand-paper-soft);
  border: none;
}

/* een echte schuine afgesneden hoek rechtsboven, zoals de branding gids */
.slant::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: var(--brand-paper-soft);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.slant--accent::before {
  background: var(--brand-paper-soft);
}
.slant--green::before {
  background: var(--brand-paper-soft);
}

/* ===== cards & panels ===== */
.card {
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  padding: 20px;
}

.card-pad-lg { padding: 28px; }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-ink-deep);
  letter-spacing: -0.005em;
}

.card-sub {
  font-size: 12px;
  color: var(--brand-muted);
  margin-top: 2px;
}

.card-foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--brand-line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--brand-muted);
}

/* ===== KPI tile ===== */
.kpi {
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  padding: 24px;
  position: relative;
}

.kpi-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  color: var(--brand-ink-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}

.kpi-value-unit {
  font-size: 16px;
  font-weight: 400;
  color: var(--brand-muted);
  margin-left: 4px;
  letter-spacing: 0;
}

.kpi-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--brand-muted);
}

.kpi-delta {
  font-weight: 500;
}
.kpi-delta--good { color: var(--signal-good); }
.kpi-delta--bad  { color: var(--signal-bad); }

.kpi-bar {
  margin-top: 14px;
  height: 4px;
  background: var(--brand-paper-grey);
  position: relative;
  overflow: hidden;
}
.kpi-bar-fill {
  height: 100%;
  background: var(--brand-accent);
  transition: width 0.3s;
}
.kpi-bar-fill--primary { background: var(--brand-primary); }

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  background: var(--brand-paper);
  color: var(--brand-ink);
  border: 1px solid var(--brand-line);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn--primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-paper);
}
.btn--primary:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: var(--brand-paper);
}

.btn--accent {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--brand-paper);
}
.btn--accent:hover {
  background: #008f5b;
  border-color: #008f5b;
  color: var(--brand-paper);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--brand-muted);
}
.btn--ghost:hover {
  color: var(--brand-primary);
  border-color: transparent;
}

.btn--danger {
  background: transparent;
  border-color: var(--signal-bad);
  color: var(--signal-bad);
}
.btn--danger:hover {
  background: var(--signal-bad);
  color: var(--brand-paper);
}

.btn--full { width: 100%; }
.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn--sm { padding: 6px 12px; font-size: 13px; }

/* ===== forms ===== */
.field { margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-ink);
  margin-bottom: 6px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
.field-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  font-size: 14px;
  color: var(--brand-ink);
  transition: border-color 0.15s;
}
.field-input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

/* ===== alert ===== */
.alert {
  padding: 12px 16px;
  border-left: 2px solid;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert--error {
  background: #FEF2F2;
  border-color: var(--signal-bad);
  color: #7F1D1D;
}
.alert--info {
  background: var(--brand-paper-grey);
  border-color: var(--brand-primary);
  color: var(--brand-primary-dark);
}

/* ===== grids ===== */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }

@media (max-width: 1100px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 20px; }
  .topbar { padding: 16px 20px; }
  .charger { grid-template-columns: 36px 1fr; gap: 10px; }
  .charger-cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-top: 4px; border-top: 1px dashed var(--brand-line); margin-top: 4px; }
  .charger-cta .btn { width: auto; }
  .topbar-actions .btn { display: none; }
  .card-head { flex-direction: column; align-items: flex-start; }
  .card-head .row { flex-wrap: wrap; }
  .login-aside { padding: 28px; min-height: 200px; }
  .login-aside-headline { font-size: 24px; }
}

/* ===== three-pillar widget — central to the dual journey ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--brand-line);
  background: var(--brand-paper);
}
.pillar {
  padding: 20px 18px;
  border-right: 1px solid var(--brand-line);
  position: relative;
}
.pillar:last-child { border-right: none; }

.pillar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pillar-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-paper-grey);
  color: var(--brand-primary-dark);
  flex-shrink: 0;
}
.pillar-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.pillar-icon--green { background: #DBF5E5; color: var(--brand-accent); }
.pillar-icon--blue  { background: #DAE9EC; color: var(--brand-primary); }
.pillar-icon--amber { background: #FCEBD5; color: #B45309; }

.pillar-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-ink-deep);
}
.pillar-sub {
  font-size: 11px;
  color: var(--brand-muted);
  text-transform: lowercase;
}

.pillar-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--brand-ink-deep);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pillar-value-unit {
  font-size: 13px;
  color: var(--brand-muted);
  margin-left: 4px;
  font-weight: 400;
}

.pillar-target {
  margin-top: 6px;
  font-size: 11px;
  color: var(--brand-muted);
}
.pillar-target b {
  color: var(--brand-ink);
  font-weight: 500;
}

.pillar-meter {
  margin-top: 10px;
  height: 3px;
  background: var(--brand-paper-grey);
  position: relative;
}
.pillar-meter-fill {
  height: 100%;
  background: var(--brand-accent);
  transition: width 0.3s;
}
.pillar-meter-fill--blue { background: var(--brand-primary); }
.pillar-meter-fill--amber { background: #D97706; }

/* ===== charger card (driver flow) ===== */
.charger-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.charger {
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.charger:hover {
  border-color: var(--brand-primary);
  background: var(--brand-paper-soft);
}
.charger.is-recommended {
  border-color: var(--brand-accent);
  border-left: 3px solid var(--brand-accent);
  padding-left: 16px;
}

.charger-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-paper-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary-dark);
}
.charger-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.charger-meta { min-width: 0; }
.charger-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--brand-ink-deep);
}
.charger-loc {
  font-size: 12px;
  color: var(--brand-muted);
  margin-top: 2px;
}
.charger-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--brand-paper-grey);
  font-size: 11px;
  color: var(--brand-ink);
  font-weight: 500;
}
.tag--green { background: #DBF5E5; color: #066540; }
.tag--blue  { background: #DAE9EC; color: var(--brand-primary-dark); }
.tag--amber { background: #FCEBD5; color: #92400E; }
.tag--off   { background: var(--brand-paper-grey); color: var(--brand-muted); }
.tag-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  display: inline-block;
}

.charger-pillar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  font-size: 12px;
}
.cpr-item { display: flex; align-items: center; gap: 4px; color: var(--brand-muted); }
.cpr-item b { color: var(--brand-ink); font-weight: 500; }

.charger-cta {
  text-align: right;
}
.charger-price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--brand-ink-deep);
  letter-spacing: -0.01em;
}
.charger-price-unit { font-size: 12px; color: var(--brand-muted); font-weight: 400; }

/* ===== active session panel ===== */
.session-panel {
  background: var(--brand-primary-dark);
  color: var(--brand-paper);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}
.session-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background: var(--brand-paper-soft);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.session-panel-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 8px;
}
.session-panel-target {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}
.session-panel-time {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 14px 0 8px;
}
.session-panel-stats {
  display: flex;
  gap: 24px;
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.85;
}
.session-panel-stats b {
  font-weight: 500;
  color: var(--brand-accent-light);
}
.session-panel-stop {
  position: absolute;
  bottom: 24px;
  right: 28px;
}

/* ===== table ===== */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tbl thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--brand-line);
  background: var(--brand-paper-soft);
}
.tbl tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--brand-line-soft);
  color: var(--brand-ink);
  vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--brand-paper-soft); }
.tbl-num { font-variant-numeric: tabular-nums; text-align: right; }
.tbl-tight { font-size: 12px; }

/* ===== compliance pill ===== */
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  background: var(--brand-paper-grey);
  color: var(--brand-ink);
}
.score-pill--good { background: #DBF5E5; color: #066540; }
.score-pill--mid  { background: #FCEBD5; color: #92400E; }
.score-pill--bad  { background: #FBE0DB; color: #7F1D1D; }
.score-pill--neutral { background: var(--brand-paper-grey); color: var(--brand-ink); }

/* ===== mini bar (for compliance rows) ===== */
.mini-bar {
  width: 100px;
  height: 4px;
  background: var(--brand-paper-grey);
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.mini-bar-fill {
  height: 100%;
  background: var(--brand-accent);
}
.mini-bar-fill--primary { background: var(--brand-primary); }
.mini-bar-fill--amber { background: #D97706; }

/* ===== empty state ===== */
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--brand-muted);
  font-size: 13px;
}

/* ===== login ===== */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--brand-paper);
}
.login-aside {
  background: var(--brand-primary-dark);
  color: var(--brand-paper);
  padding: 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-aside::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: var(--brand-paper);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.login-aside-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--brand-paper);
}
.login-aside-mark-reg {
  font-size: 12px;
  vertical-align: super;
  opacity: 0.7;
}
.login-aside-product {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--brand-accent-light);
  margin-left: 6px;
}
.login-aside-headline {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 460px;
}
.login-aside-headline em {
  font-style: normal;
  color: var(--brand-accent-light);
}
.login-aside-tag {
  font-size: 13px;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form {
  width: 100%;
  max-width: 380px;
}
.login-form-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--brand-ink-deep);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.login-form-sub {
  color: var(--brand-muted);
  font-size: 13px;
  margin-bottom: 28px;
}
.login-form-roles {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.login-form-roles .btn { flex: 1; }
.login-form-hint {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--brand-line);
  font-size: 12px;
  color: var(--brand-muted);
  line-height: 1.6;
}
.login-form-hint b { color: var(--brand-ink); font-weight: 500; }

@media (max-width: 880px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-aside { padding: 32px 28px; min-height: 220px; }
  .login-aside-headline { font-size: 28px; }
}

/* ===== utilities ===== */
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spacer { flex: 1; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.muted { color: var(--brand-muted); }
.small { font-size: 12px; }
.bold  { font-weight: 500; }
.nowrap { white-space: nowrap; }
.lower { text-transform: lowercase; }

/* ===== final mobile cascade overrides — these must come last to win === */
@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--brand-line); }
  .pillar:last-child { border-bottom: none; }
}

/* =========================================================================
   v2.03 — kaart, bottom-nav, preview-switcher, mobile-first driver
   ========================================================================= */

/* ===== preview FAB ===== */
.preview-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9000;
  font-family: var(--font-display);
}
.preview-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--brand-ink-deep);
  color: var(--brand-paper);
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0,36,52,0.18);
  transition: background 0.15s;
}
.preview-trigger:hover { background: var(--brand-primary-dark); }
.preview-trigger svg { stroke: var(--brand-accent-light); }

.preview-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  width: 280px;
  box-shadow: 0 8px 24px rgba(0,36,52,0.14);
  display: flex;
  flex-direction: column;
}
.preview-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--brand-line);
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.preview-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--brand-muted);
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-close:hover { color: var(--brand-ink); }

.preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--brand-paper);
  border: none;
  border-bottom: 1px solid var(--brand-line-soft);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  transition: background 0.15s;
}
.preview-item:hover { background: var(--brand-paper-soft); }
.preview-item.is-current { background: #DAE9EC; }
.preview-item:last-child { border-bottom: none; }
.preview-item-icon {
  width: 28px;
  height: 28px;
  background: var(--brand-paper-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary-dark);
  flex-shrink: 0;
}
.preview-item-icon svg { width: 14px; height: 14px; }
.preview-item.is-current .preview-item-icon { background: var(--brand-primary); color: var(--brand-paper); }
.preview-item-meta { flex: 1; min-width: 0; }
.preview-item-label { font-size: 13px; font-weight: 500; color: var(--brand-ink-deep); }
.preview-item-hint { font-size: 11px; color: var(--brand-muted); margin-top: 1px; }
.preview-item-check { color: var(--brand-primary); font-weight: 600; }
.preview-menu-foot {
  padding: 10px 14px;
  font-size: 11px;
  color: var(--brand-muted-soft);
  text-align: center;
  border-top: 1px solid var(--brand-line);
  background: var(--brand-paper-soft);
}

/* op kleine schermen: trigger compacter */
@media (max-width: 720px) {
  .preview-fab { bottom: 84px; right: 14px; }  /* boven de bottom-nav */
  .preview-trigger-label { display: none; }
  .preview-trigger { padding: 10px; }
  .preview-menu { width: 240px; }
}

/* preview frame — als modus geforceerd is op een viewport die niet matcht,
   tonen we een 'device-frame' om duidelijk te maken dat dit een preview is */
.preview-frame {
  margin: 0 auto;
  background: var(--brand-paper);
  position: relative;
}
.preview-frame--mobile {
  width: 390px;
  max-width: 100%;
  height: min(844px, calc(100vh - 130px));
  border: 12px solid #1d1d1b;
  border-radius: 36px;
  overflow: hidden;
  margin-top: 30px;
  margin-bottom: 60px;
  box-shadow: 0 20px 60px rgba(0,36,52,0.18);
}
.preview-frame--desktop {
  max-width: 1280px;
  border: 1px solid var(--brand-line);
  margin-top: 20px;
  margin-bottom: 40px;
  box-shadow: 0 20px 60px rgba(0,36,52,0.10);
  min-height: 720px;
}

.preview-banner {
  background: var(--brand-ink-deep);
  color: var(--brand-paper);
  padding: 8px 16px;
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.02em;
}
.preview-banner b { color: var(--brand-accent-light); font-weight: 500; }

/* ===== map ===== */
.map-canvas {
  width: 100%;
  height: 100%;
  background: var(--brand-paper-grey);
}

.leaflet-container { font-family: var(--font-body); }

/* user pin */
.user-pin {
  position: relative;
  width: 24px;
  height: 24px;
}
.user-pin-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--brand-primary);
  border: 3px solid var(--brand-paper);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,77,89,0.3);
}
.user-pin-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: var(--brand-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: user-pulse 2s ease-out infinite;
}
@keyframes user-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

/* charger pin — één SVG, kleur via currentColor (v2.11) */
.charger-pin {
  width: 32px;
  height: 40px;
  color: var(--brand-primary);
}
.charger-pin svg { display: block; overflow: visible; }
.charger-pin--good { color: var(--brand-accent); }
.charger-pin--mid  { color: #D97706; }
.charger-pin--bad  { color: var(--brand-muted); }

.charger-pin.is-recommended {
  filter: drop-shadow(0 0 0 var(--brand-accent-light)) drop-shadow(0 0 4px var(--brand-accent-light));
}

/* ===== bottom nav (driver mobile) ===== */
.botnav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-paper);
  border-top: 1px solid var(--brand-line);
  display: flex;
  height: 64px;
  z-index: 1100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.botnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  color: var(--brand-muted);
  padding: 8px 4px;
  position: relative;
  transition: color 0.15s;
}
.botnav-item.is-active { color: var(--brand-primary-dark); }
.botnav-item.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--brand-primary);
}
.botnav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.botnav-item-label { font-weight: 500; }

/* ===== driver-mobile shell ===== */
.app-mobile {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--brand-paper-soft);
  overflow: hidden;
}
.preview-frame .app-mobile { position: relative; height: 100%; }

.app-mobile-bar {
  background: var(--brand-paper);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--brand-line);
  padding-top: max(12px, env(safe-area-inset-top, 12px));
  flex-shrink: 0;
}
.app-mobile-bar-mark {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.app-mobile-bar-mark img { height: 18px; width: auto; }
.app-mobile-bar-mark span {
  font-size: 14px;
  color: var(--brand-primary-dark);
  font-weight: 400;
}
.app-mobile-bar-greet {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--brand-ink-deep);
  font-weight: 500;
}
.app-mobile-bar-actions { display: flex; gap: 6px; }

.app-mobile-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* ===== map view (driver mobile) ===== */
.map-view {
  position: absolute;
  inset: 0;
}
.map-view-canvas { position: absolute; inset: 0; }

.map-view-search {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 800;
  background: var(--brand-paper);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  box-shadow: 0 2px 10px rgba(0,36,52,0.10);
  border: 1px solid var(--brand-line);
}
.map-view-search svg { width: 16px; height: 16px; stroke: var(--brand-muted); fill: none; stroke-width: 1.5; }
.map-view-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: var(--brand-ink);
}
.map-view-search-input::placeholder { color: var(--brand-muted-soft); }

.map-view-filter {
  position: absolute;
  top: 70px;
  left: 12px;
  right: 12px;
  z-index: 800;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.map-view-filter::-webkit-scrollbar { display: none; }
.map-view-filter-chip {
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-ink);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(0,36,52,0.08);
}
.map-view-filter-chip.is-active {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: var(--brand-paper);
}

/* sheet overlay (driver mobile) — slides up from bottom */
.sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-paper);
  border-top: 1px solid var(--brand-line);
  box-shadow: 0 -4px 20px rgba(0,36,52,0.12);
  z-index: 1200;  /* boven bottom-nav (1100) */
  max-height: 80%;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}
.sheet.is-open { transform: translateY(0); }

/* sheet-backdrop ook boven bottom-nav, zodat hele scherm dimt incl. de nav */
.sheet-backdrop {
  z-index: 1150;
}

/* bottom-nav verbergen wanneer sheet open is (focus op de sheet) */
body.sheet-open .botnav {
  visibility: hidden;
}
.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--brand-line);
  margin: 8px auto 4px;
  border-radius: 0;
  flex-shrink: 0;
}
.sheet-head {
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--brand-line-soft);
  flex-shrink: 0;
}
.sheet-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--brand-ink-deep);
  letter-spacing: -0.01em;
}
.sheet-sub {
  font-size: 12px;
  color: var(--brand-muted);
  margin-top: 2px;
}
.sheet-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}
.sheet-foot {
  padding: 14px 16px;
  border-top: 1px solid var(--brand-line);
  flex-shrink: 0;
  padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
}

.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .btn { flex: 1; }

.sheet-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.sheet-pillar {
  padding: 12px;
  background: var(--brand-paper-soft);
  border: 1px solid var(--brand-line);
  text-align: center;
}
.sheet-pillar-icon {
  width: 24px;
  height: 24px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet-pillar-icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.sheet-pillar-icon--match { color: var(--brand-accent); }
.sheet-pillar-icon--miss  { color: var(--brand-muted-soft); }
.sheet-pillar-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-ink-deep);
}
.sheet-pillar-value--miss { color: var(--brand-muted); }
.sheet-pillar-label {
  font-size: 10px;
  color: var(--brand-muted);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.sheet-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--brand-line-soft);
  font-size: 13px;
}
.sheet-stat-row:last-child { border-bottom: none; }
.sheet-stat-row-key { color: var(--brand-muted); }
.sheet-stat-row-val { color: var(--brand-ink); font-weight: 500; }

/* sheet backdrop */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,36,52,0.3);
  z-index: 890;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ===== driver desktop split ===== */
.driver-desktop-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  height: calc(100vh - 73px);
  background: var(--brand-paper-soft);
}
.driver-desktop-split-map { position: relative; }
.driver-desktop-split-list {
  border-left: 1px solid var(--brand-line);
  background: var(--brand-paper);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.driver-desktop-list-head {
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--brand-line);
}
.driver-desktop-list-head .card-title { font-size: 14px; }
.driver-desktop-list-pillars { padding: 14px 24px; border-bottom: 1px solid var(--brand-line); }
.driver-desktop-list-body { padding: 14px 24px; flex: 1; }

/* fleet mobile compact */
.fleet-mobile {
  display: flex;
  flex-direction: column;
  background: var(--brand-paper-soft);
  min-height: 100%;
}
.fleet-mobile-bar {
  background: var(--brand-paper);
  padding: 14px 16px;
  border-bottom: 1px solid var(--brand-line);
  padding-top: max(14px, env(safe-area-inset-top, 14px));
}
.fleet-mobile-bar-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--brand-ink-deep);
}
.fleet-mobile-bar-sub {
  font-size: 12px;
  color: var(--brand-muted);
  margin-top: 2px;
}
.fleet-mobile-body {
  flex: 1;
  padding: 16px;
  padding-bottom: 80px;
  overflow-y: auto;
}
.fleet-mobile-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.fleet-mobile-kpi {
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  padding: 14px;
}
.fleet-mobile-kpi-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-muted);
  margin-bottom: 8px;
}
.fleet-mobile-kpi-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--brand-ink-deep);
  letter-spacing: -0.02em;
}
.fleet-mobile-kpi-value-unit {
  font-size: 12px;
  color: var(--brand-muted);
  margin-left: 3px;
}
.fleet-mobile-driver-row {
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  padding: 14px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.fleet-mobile-driver-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--brand-ink-deep);
}
.fleet-mobile-driver-vehicle {
  font-size: 12px;
  color: var(--brand-muted);
  margin-top: 2px;
}
.fleet-mobile-driver-pillars {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--brand-muted);
}
.fleet-mobile-driver-pillars span b { color: var(--brand-ink); font-weight: 500; }

/* recommended badge floating on map */
.map-recommended-card {
  position: absolute;
  bottom: 84px;
  left: 12px;
  right: 12px;
  background: var(--brand-paper);
  border: 1px solid var(--brand-accent);
  border-left: 3px solid var(--brand-accent);
  padding: 12px 14px;
  z-index: 850;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,36,52,0.12);
}
.map-recommended-card-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  font-weight: 600;
  margin-bottom: 4px;
}
.map-recommended-card-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-ink-deep);
}
.map-recommended-card-meta {
  font-size: 11px;
  color: var(--brand-muted);
  margin-top: 2px;
}
.map-recommended-card-price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--brand-primary-dark);
  letter-spacing: -0.01em;
}
.map-recommended-card-price-unit { font-size: 11px; color: var(--brand-muted); font-weight: 400; }

/* ===== fixes for desktop driver: keep sidebar/topbar working === */
.driver-desktop-shell { /* equivalent to existing .shell */ }


/* ===== preview-frame mobile: force mobile layout for components inside =====
   wanneer de viewport groot is maar het frame een telefoon simuleert, moeten
   layout-keuzes die normaal aan media queries hangen ook hier mobile zijn.
   We gebruiken een container class die eenzelfde effect heeft. */
.preview-frame--mobile .pillars { grid-template-columns: 1fr; }
.preview-frame--mobile .pillar { border-right: none; border-bottom: 1px solid var(--brand-line); }
.preview-frame--mobile .pillar:last-child { border-bottom: none; }
.preview-frame--mobile .grid-3,
.preview-frame--mobile .grid-4,
.preview-frame--mobile .grid-2 { grid-template-columns: 1fr; }
.preview-frame--mobile .charger { grid-template-columns: 36px 1fr; gap: 10px; }
.preview-frame--mobile .charger-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px dashed var(--brand-line);
  margin-top: 4px;
}
.preview-frame--mobile .charger-cta .btn { width: auto; }
.preview-frame--mobile .topbar-actions .btn { display: none; }
.preview-frame--mobile .card-head { flex-direction: column; align-items: flex-start; }
.preview-frame--mobile .card-head .row { flex-wrap: wrap; }

/* The login aside also needs to stack inside mobile preview frame */
.preview-frame--mobile .login-shell { grid-template-columns: 1fr; }
.preview-frame--mobile .login-aside { padding: 28px; min-height: 200px; }
.preview-frame--mobile .login-aside-headline { font-size: 24px; }

/* Recente sessies tabel inside mobile: hide on mobile, alternatives are used */

/* desktop driver split — pijlers in smalle rail moeten stapelen */
.driver-desktop-list-pillars .pillars { grid-template-columns: 1fr; }
.driver-desktop-list-pillars .pillar { border-right: none; border-bottom: 1px solid var(--brand-line); padding: 14px 16px; }
.driver-desktop-list-pillars .pillar:last-child { border-bottom: none; }
.driver-desktop-list-pillars .pillar-value { font-size: 20px; }

/* nicer split ratio */
@media (min-width: 1280px) {
  .driver-desktop-split { grid-template-columns: 1.6fr 1fr; }
}
@media (min-width: 1500px) {
  .driver-desktop-split { grid-template-columns: 2fr 1fr; }
}

/* ===== login aside — grote brand-stamp (v2.05) ===== */
.login-aside-brand {
  width: 320px;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.login-aside-brand-mark {
  width: 100%;
  height: auto;
  display: block;
}
.login-aside-brand-product {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--brand-accent-light);
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: left;
  font-size: clamp(40px, 6vw, 64px);
  margin-top: 12px;
}

/* mobiel: kleiner */
@media (max-width: 880px) {
  .login-aside-brand { width: 220px; }
  .login-aside-brand-product { font-size: clamp(32px, 8vw, 48px); }
}

/* ===== sidebar brand stack (v2.06) — logo + charge stacked, equal width ===== */
.sidebar-brand-stack {
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.sidebar-brand-mark {
  width: 100%;
  height: auto;
  display: block;
}
.sidebar-brand-product {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--brand-primary);
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: left;
  margin-top: 6px;
}

/* =========================================================================
   v2.07 — toegangsbeheer: status badges, user avatars, modal
   ========================================================================= */

/* status badges (gebruiker status) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  background: var(--brand-paper-grey);
  color: var(--brand-ink);
  letter-spacing: 0.02em;
}
.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  display: inline-block;
}
.status-badge--good { background: #DBF5E5; color: #066540; }
.status-badge--warn { background: #FCEBD5; color: #92400E; }
.status-badge--bad  { background: #FBE0DB; color: #7F1D1D; }

/* avatars */
.user-avatar-sm {
  width: 32px;
  height: 32px;
  background: var(--brand-paper-grey);
  color: var(--brand-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.user-avatar-lg {
  width: 56px;
  height: 56px;
  background: var(--brand-primary);
  color: var(--brand-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}

/* clickable table */
.tbl-clickable tbody tr { cursor: pointer; }

/* modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 36, 52, 0.45);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFade 0.15s ease-out;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--brand-paper);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--brand-line);
  box-shadow: 0 20px 60px rgba(0, 36, 52, 0.25);
  display: flex;
  flex-direction: column;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--brand-line);
}
.modal-body {
  padding: 20px 24px;
  flex: 1;
}
.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--brand-line);
  background: var(--brand-paper-soft);
}

select.field-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}


/* =========================================================================
   v2.08 — live session screen + summary
   ========================================================================= */

/* ===== session screen — vol-scherm (mobile) of hele content (desktop) ===== */
.session-screen {
  display: flex;
  flex-direction: column;
  background: var(--brand-paper);
  min-height: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 24px 24px 100px;
}

.session-screen-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.session-screen-head-meta { min-width: 0; }
.session-screen-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-muted);
  font-weight: 500;
}
.session-screen-charger {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--brand-ink-deep);
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.session-screen-loc {
  font-size: 12px;
  color: var(--brand-muted);
  margin-top: 2px;
}

/* live pulsing dot to signal active session */
.session-screen-pulse {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.session-pulse-dot {
  position: absolute;
  inset: 50% 0 0 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--brand-accent);
  border-radius: 50%;
  z-index: 2;
}
.session-pulse-ring {
  position: absolute;
  inset: 50% 0 0 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--brand-accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: session-pulse 1.6s ease-out infinite;
}
@keyframes session-pulse {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

/* hero — laadsnelheid als hoofdgetal */
.session-screen-hero {
  margin-top: 32px;
  text-align: center;
  padding: 20px 0;
}
.session-power-display {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.session-power-value {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--brand-ink-deep);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.session-power-unit {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--brand-primary);
  letter-spacing: -0.01em;
}
.session-power-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-muted);
  margin-top: 8px;
  font-weight: 500;
}

.session-power-meter {
  margin: 24px auto 0;
  max-width: 360px;
  height: 6px;
  background: var(--brand-paper-grey);
  position: relative;
}
.session-power-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  transition: width 0.6s ease-out;
}
.session-power-meter-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--brand-muted-soft);
  letter-spacing: 0.04em;
}

/* live laad-curve */
.session-curve-wrap {
  margin-top: 28px;
  padding: 16px 0;
  border-top: 1px solid var(--brand-line-soft);
  border-bottom: 1px solid var(--brand-line-soft);
}
.session-curve-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-muted);
  font-weight: 500;
  margin-bottom: 10px;
}
.session-curve {
  width: 100%;
  height: 80px;
  display: block;
}

/* tellers grid */
.session-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 24px;
}
.session-stat {
  padding: 16px 8px;
  text-align: center;
  border-right: 1px solid var(--brand-line-soft);
}
.session-stat:last-child { border-right: none; }
.session-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.session-stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--brand-ink-deep);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.session-stat-unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--brand-muted);
  margin-left: 2px;
}

/* pijler-stripje */
.session-pillars-row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.session-pillar-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--brand-paper-soft);
  border: 1px solid var(--brand-line);
}
.session-pillar-mini-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.session-pillar-mini-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.session-pillar-mini-meta { min-width: 0; }
.session-pillar-mini-key {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-muted);
  font-weight: 500;
}
.session-pillar-mini-val {
  font-size: 12px;
  color: var(--brand-ink);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-screen-foot {
  position: sticky;
  bottom: 0;
  background: var(--brand-paper);
  padding: 16px 0 0;
  margin-top: auto;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
}

/* mobile preview frame: stack pillars when narrow */
.preview-frame--mobile .session-pillars-row { grid-template-columns: 1fr; }
.preview-frame--mobile .session-power-value { font-size: 80px; }
.preview-frame--mobile .session-stats-grid { grid-template-columns: 1fr 1fr; }
.preview-frame--mobile .session-stat:nth-child(2n) { border-right: none; }
.preview-frame--mobile .session-stat:nth-child(-n+2) { border-bottom: 1px solid var(--brand-line-soft); }

/* echte mobile viewport */
@media (max-width: 720px) {
  .session-pillars-row { grid-template-columns: 1fr; }
  .session-power-value { font-size: 72px; }
  .session-stats-grid { grid-template-columns: 1fr 1fr; }
  .session-stat:nth-child(2n) { border-right: none; }
  .session-stat:nth-child(-n+2) { border-bottom: 1px solid var(--brand-line-soft); }
  .session-screen { padding: 20px 16px 24px; }
}

/* ===== summary screen ===== */
.summary-screen {
  display: flex;
  flex-direction: column;
  background: var(--brand-paper);
  min-height: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 32px 24px 100px;
}

.summary-head {
  text-align: left;
  margin-bottom: 28px;
}
.summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.summary-charger {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--brand-ink-deep);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.summary-meta {
  font-size: 13px;
  color: var(--brand-muted);
  margin-top: 6px;
}

.summary-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
  padding: 20px 0;
}
.summary-total {
  text-align: center;
  border-right: 1px solid var(--brand-line-soft);
  padding: 0 12px;
}
.summary-total:last-child { border-right: none; }
.summary-total-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--brand-ink-deep);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.summary-total-unit {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-muted);
  margin-top: 8px;
  font-weight: 500;
}

.summary-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.summary-pillar-card {
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  padding: 18px 16px;
  border-top: 3px solid var(--brand-line);
  position: relative;
}
.summary-pillar-card.is-met { border-top-color: var(--brand-accent); }
.summary-pillar-card.is-missed { border-top-color: var(--brand-muted-soft); }
.summary-pillar-card.is-met::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--brand-accent);
  font-size: 16px;
  font-weight: 600;
}
/* is-missed has no after — minder nadruk op afwezigheid */

.summary-pillar-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.summary-pillar-card-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary-dark);
}
.summary-pillar-card.is-met .summary-pillar-card-icon { color: var(--brand-accent); }
.summary-pillar-card.is-missed .summary-pillar-card-icon { color: var(--brand-muted); }
.summary-pillar-card-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.summary-pillar-card-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-muted);
  font-weight: 500;
}
.summary-pillar-card-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--brand-ink-deep);
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.summary-pillar-card-value-unit {
  font-size: 13px;
  color: var(--brand-muted);
  font-weight: 400;
  margin-left: 2px;
  letter-spacing: 0;
}
.summary-pillar-card-detail {
  font-size: 12px;
  color: var(--brand-muted);
  margin-top: 8px;
  line-height: 1.4;
}

.summary-extras {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--brand-paper-soft);
  border: 1px solid var(--brand-line);
}
.summary-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--brand-line-soft);
  font-size: 13px;
}
.summary-extra-row:last-child { border-bottom: none; }
.summary-extra-key { color: var(--brand-muted); }
.summary-extra-val { color: var(--brand-ink); font-weight: 500; }

.summary-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.summary-actions .btn { flex: 1; min-width: 200px; }

/* mobile preview frame: stack summary pillars */
.preview-frame--mobile .summary-pillars { grid-template-columns: 1fr; }
.preview-frame--mobile .summary-totals { grid-template-columns: 1fr; }
.preview-frame--mobile .summary-total {
  border-right: none;
  border-bottom: 1px solid var(--brand-line-soft);
  padding: 14px 0;
}
.preview-frame--mobile .summary-total:last-child { border-bottom: none; }

@media (max-width: 720px) {
  .summary-pillars { grid-template-columns: 1fr; }
  .summary-totals { grid-template-columns: 1fr; }
  .summary-total {
    border-right: none;
    border-bottom: 1px solid var(--brand-line-soft);
    padding: 14px 0;
  }
  .summary-total:last-child { border-bottom: none; }
  .summary-screen { padding: 24px 16px; }
}


/* =========================================================================
   v2.09 — mobile cleanup: no charge in topbar, richer sessions,
            beleid in profiel, welcome card on first visit
   ========================================================================= */

/* mobile topbar tweak: when only logo, more space for greet */
.app-mobile-bar-mark img { height: 22px; width: auto; }
.app-mobile-bar-greet { font-size: 14px; }

/* ───── welcome card op de kaart ───── */
.welcome-card {
  position: absolute;
  bottom: 80px;
  left: 12px;
  right: 12px;
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  padding: 18px 18px 14px;
  z-index: 850;
  box-shadow: 0 8px 24px rgba(0, 36, 52, 0.14);
}
.welcome-card-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--brand-muted);
}
.welcome-card-close:hover { color: var(--brand-ink); }
.welcome-card-greeting {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-accent);
  font-weight: 600;
}
.welcome-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--brand-ink-deep);
  letter-spacing: -0.01em;
  margin-top: 4px;
  margin-bottom: 12px;
  line-height: 1.25;
}
.welcome-card-pillars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.welcome-card-pillar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--brand-ink);
}
.welcome-card-pillar-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.welcome-card-pillar-icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.welcome-card-pillar b { font-weight: 600; color: var(--brand-ink-deep); }
.welcome-card-tag {
  font-size: 11px;
  color: var(--brand-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

/* ───── sessies view ───── */
.sessions-view {
  padding: 16px 16px 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--brand-paper-soft);
}
.sessions-view-head { margin-bottom: 14px; flex-shrink: 0; }

.sessions-view-totals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.sessions-total {
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  padding: 12px 14px;
}
.sessions-total-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--brand-ink-deep);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.sessions-total-unit {
  font-size: 12px;
  color: var(--brand-muted);
  font-weight: 400;
  margin-left: 2px;
  letter-spacing: 0;
}
.sessions-total-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-muted);
  font-weight: 500;
  margin-top: 4px;
}

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* mobile: alleen de lijst scrollt, kop + KPI-tegels blijven staan (v2.18) */
.sessions-view .sessions-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 84px;   /* laatste rij scrollt vrij van de bottom-nav */
}

.session-row {
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  padding: 14px 14px 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  display: block;
  transition: border-color 0.15s, background 0.15s;
}
.session-row:hover { border-color: var(--brand-primary); }

.session-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.session-row-meta { min-width: 0; flex: 1; }
.session-row-charger {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--brand-ink-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-row-date {
  font-size: 11px;
  color: var(--brand-muted);
  margin-top: 2px;
}

.session-row-match {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--brand-paper-grey);
  color: var(--brand-ink);
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.session-row-match--good { background: #DBF5E5; color: #066540; }
.session-row-match--mid  { background: var(--brand-paper-grey); color: var(--brand-ink); }
.session-row-match--bad  { background: var(--brand-paper-grey); color: var(--brand-muted); }

.session-row-pillars {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.session-row-pillar {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.session-row-pillar.is-met { color: var(--brand-ink); }
.session-row-pillar.is-missed {
  color: var(--brand-muted-soft);
}
.session-row-pillar-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.session-row-pillar-icon svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.session-row-pillar-text { white-space: nowrap; }

.session-row-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--brand-muted);
  padding-top: 8px;
  border-top: 1px solid var(--brand-line-soft);
}
.session-row-foot b {
  color: var(--brand-ink);
  font-weight: 600;
}

/* ───── profiel view ───── */
.profile-view {
  padding: 0 0 84px;
  height: 100%;
  overflow-y: auto;
  background: var(--brand-paper-soft);
}

.profile-header {
  background: var(--brand-paper);
  padding: 24px 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--brand-line);
  margin-bottom: 16px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  background: var(--brand-primary);
  color: var(--brand-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 auto 12px;
}
.profile-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--brand-ink-deep);
  letter-spacing: -0.01em;
}
.profile-role {
  font-size: 13px;
  color: var(--brand-muted);
  margin-top: 4px;
}

.profile-section {
  padding: 0 16px;
  margin-bottom: 20px;
}
.profile-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.profile-card {
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  padding: 14px 16px;
}

.profile-card--list { padding: 0; }
.profile-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--brand-line-soft);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--brand-ink);
  text-align: left;
}
.profile-list-item:last-child { border-bottom: none; }
.profile-list-item:hover { background: var(--brand-paper-soft); }
.profile-list-item-val { font-size: 13px; color: var(--brand-muted); }
.profile-list-item svg { color: var(--brand-muted-soft); }

.profile-policy-intro {
  font-size: 13px;
  color: var(--brand-muted);
  line-height: 1.5;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--brand-line-soft);
  margin-bottom: 14px;
}

.profile-policy-pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-policy-pillar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-policy-pillar-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-policy-pillar-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.profile-policy-pillar-key {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-muted);
  font-weight: 500;
}
.profile-policy-pillar-val {
  font-size: 14px;
  color: var(--brand-ink-deep);
  margin-top: 2px;
  font-weight: 500;
}


/* =========================================================================
   v2.12 — kaart/lijst toggle, list view (Tap-stijl), pijler badges
   ========================================================================= */

/* ===== view toggle (kaart/lijst) ===== */
.view-toggle {
  display: inline-flex;
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  flex-shrink: 0;
}
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  background: var(--brand-paper);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-muted);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

/* in list view, toggle zit in de header zonder absolute positionering */
.list-view-head .view-toggle {
  align-self: flex-end;
  margin-bottom: 12px;
}

/* ===== lijst-view (Tap-stijl) ===== */
.list-view {
  height: 100%;
  overflow-y: auto;
  background: var(--brand-paper-soft);
  padding: 14px 14px 84px;
}
.list-view-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
.list-view-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--brand-ink-deep);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.list-view-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== charger card (locatie-card) ===== */
.charger-card {
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  padding: 16px 16px 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,36,52,0.04);
}
.charger-card:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(0,36,52,0.08);
}

.charger-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.charger-card-meta { min-width: 0; flex: 1; }
.charger-card-operator {
  font-size: 12px;
  color: var(--brand-muted);
  margin-bottom: 4px;
}
.charger-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--brand-ink-deep);
  letter-spacing: -0.01em;
}
.charger-card-chev {
  color: var(--brand-muted-soft);
  flex-shrink: 0;
  margin-top: 4px;
}

/* drie kolommen: laders / beoordeling / afstand */
.charger-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 14px;
}
.charger-card-stat {}
.charger-card-stat-label {
  font-size: 11px;
  color: var(--brand-muted);
  margin-bottom: 4px;
}
.charger-card-stat-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}
.charger-card-stat-value svg { stroke: currentColor; fill: none; }
.charger-card-stat-value--accent { color: var(--brand-primary); }

/* drie pijler-badges in een rij */
.charger-card-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--brand-line);
}

.pillar-badge {
  --pb-color: var(--brand-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 8px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--brand-line);
  background: var(--brand-paper);
  color: var(--pb-color);
  border-radius: 10px;
}
.pillar-badge svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.pillar-badge.is-met {
  border-color: var(--pb-color);
  background: color-mix(in srgb, var(--pb-color) 8%, var(--brand-paper));
}
.pillar-badge.is-partial {
  border-color: color-mix(in srgb, var(--pb-color) 50%, var(--brand-line));
  /* lichter dan is-met, geen vol vinkje */
  background: var(--brand-paper);
}
.pillar-badge.is-unmet {
  color: var(--brand-muted-soft);
  border-color: var(--brand-line);
  background: var(--brand-paper);
}

.pillar-badge-check {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  margin-left: 1px;
}

/* ===== connector rows binnen de card ===== */
.connector-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--brand-line-soft);
  gap: 12px;
}
.connector-row:last-child { border-bottom: none; padding-bottom: 0; }

.connector-row-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.connector-row-icon { color: var(--brand-muted); flex-shrink: 0; }
.connector-row-id {
  font-size: 13px;
  color: var(--brand-ink-deep);
  font-weight: 500;
}
.connector-row-power {
  font-size: 11px;
  color: var(--brand-muted);
  background: var(--brand-paper-grey);
  padding: 1px 6px;
  border-radius: 4px;
}

.connector-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.connector-row-price {
  font-size: 12px;
  color: var(--brand-muted);
  font-variant-numeric: tabular-nums;
}
.connector-row-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
}
.connector-row-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.connector-row-status.is-available { color: var(--brand-accent); }
.connector-row-status.is-busy      { color: var(--brand-muted); }
.connector-row-status.is-offline   { color: var(--brand-muted-soft); }


.list-view-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  margin-bottom: 12px;
}
.list-view-search svg { color: var(--brand-muted); flex-shrink: 0; }
.list-view-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  color: var(--brand-ink);
}
.list-view-search input::placeholder { color: var(--brand-muted-soft); }

.list-view-head {
  display: flex;
  flex-direction: column;
}
.list-view-head .view-toggle {
  align-self: flex-end;
  margin-top: -4px; /* compensate for search bar margin */
  margin-bottom: 14px;
}

.view-toggle-btn svg { stroke: currentColor; fill: none; flex-shrink: 0; }
.view-toggle-btn.is-active {
  background: var(--brand-primary-dark);
  color: var(--brand-paper);
}
.view-toggle-btn:not(.is-active):hover { background: var(--brand-paper-soft); color: var(--brand-ink); }

/* in map-view: combineer search-bar en toggle in een rij */
.map-view-search-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 800;
  display: flex;
  gap: 8px;
}
.map-view-search-row .map-view-search {
  position: relative;
  top: auto; left: auto; right: auto;
  flex: 1;
  margin: 0;
}

/* compact toggle: tekst weg op mobile preview en echt mobile */
.preview-frame--mobile .view-toggle-btn {
  padding: 8px;
  gap: 0;
}
.preview-frame--mobile .view-toggle-btn-label {
  display: none;
}

@media (max-width: 720px) {
  .view-toggle-btn { padding: 8px; gap: 0; }
  .view-toggle-btn-label { display: none; }
}

/* =========================================================================
   v2.13 — pijler-filter chips (kaart + lijst), empty state
   ========================================================================= */

/* chip-styling met icoon — extends bestaande .map-view-filter-chip */
.map-view-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  --chip-color: var(--brand-primary-dark);
}
.map-view-filter-chip-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.map-view-filter-chip-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

/* actieve chip krijgt z'n eigen pijler-kleur als achtergrond */
.map-view-filter-chip.is-active {
  background: var(--chip-color);
  border-color: var(--chip-color);
  color: var(--brand-paper);
}
.map-view-filter-chip.is-active .map-view-filter-chip-icon svg {
  stroke: var(--brand-paper);
}

/* filter-summary onder chips op de kaart */
.map-filter-summary {
  position: absolute;
  top: 124px;
  left: 12px;
  right: 12px;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: var(--brand-ink-deep);
  color: var(--brand-paper);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 36, 52, 0.15);
}
.map-filter-clear {
  background: none;
  border: none;
  color: var(--brand-accent-light);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.map-filter-clear:hover { color: var(--brand-paper); }

/* empty state als alle palen zijn weggefilterd */
.map-empty-card {
  position: absolute;
  bottom: 84px;
  left: 12px;
  right: 12px;
  z-index: 850;
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  padding: 18px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 36, 52, 0.12);
}
.map-empty-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-ink-deep);
  margin-bottom: 6px;
}
.map-empty-card-hint {
  font-size: 12px;
  color: var(--brand-muted);
  margin-bottom: 12px;
}

/* in lijst-view: empty state heeft andere positie */
.list-view .map-empty-card {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  z-index: auto;
  margin: 8px 0;
}

/* lijst-view filter rij — zelfde stijl als kaart */
.list-view-filter {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  margin-bottom: 16px;
  padding-bottom: 0;
}

.list-view-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* =========================================================================
   v2.14 — i18n NL/EN toggle UI
   ========================================================================= */

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 26px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid var(--brand-line);
  color: var(--brand-muted);
  cursor: pointer;
  transition: all 0.15s;
  margin-left: 4px;
}
.lang-pill:hover { border-color: var(--brand-primary); color: var(--brand-ink); }
.lang-pill.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-paper);
}

/* in profile setting row */
.profile-list-item--lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--brand-line-soft);
  font-size: 14px;
  color: var(--brand-ink);
}
.profile-list-item--lang:last-child { border-bottom: none; }
.profile-list-item--lang > span:first-child { flex: 1; }

/* on login page top-left */
.login-lang-switch {
  display: flex;
  gap: 6px;
  align-self: flex-start;
}
.login-lang-switch .lang-pill {
  margin-left: 0;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}
.login-lang-switch .lang-pill:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--brand-paper);
}
.login-lang-switch .lang-pill.is-active {
  background: var(--brand-paper);
  color: var(--brand-primary-dark);
  border-color: var(--brand-paper);
}


/* =========================================================================
   v2.19 — laadpas-beheer (berijder, in instellingen)
   ========================================================================= */
.pass-list { display: flex; flex-direction: column; gap: 10px; }

.pass-card {
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  padding: 14px;
}
.pass-card--inactive { opacity: 0.55; }

.pass-card-top { display: flex; align-items: center; gap: 12px; }
.pass-card-chip {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-paper-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-primary);
}
.pass-card-chip svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.pass-card-meta { flex: 1; min-width: 0; }
.pass-card-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--brand-ink-deep);
  letter-spacing: 0.01em;
}
.pass-card-sub { font-size: 12px; color: var(--brand-muted); margin-top: 2px; }

.pass-card-info {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--brand-muted);
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--brand-line-soft);
}
.pass-card-info b { color: var(--brand-ink); font-weight: 500; }

.pass-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn--sm { padding: 7px 12px; font-size: 12px; }
.pass-action-remove { margin-left: auto; }
.pass-action-remove:hover { color: #B91C1C !important; }

.pass-empty {
  font-size: 13px; color: var(--brand-muted);
  padding: 16px; text-align: center;
  background: var(--brand-paper);
  border: 1px dashed var(--brand-line);
}

/* =========================================================================
   v2.20 — sheet: drie doel-icoontjes i.p.v. "past op X van 3 pijlers"-tekst
   ========================================================================= */
.sheet-match {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}
.sheet-match-chip {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-paper-grey);
  color: var(--brand-muted-soft);
  border: 1px solid var(--brand-line);
  transition: all 0.15s;
}
.sheet-match-chip-icon { display: flex; }
.sheet-match-chip svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
}
.sheet-match-chip.is-miss { opacity: 0.6; }

/* per-doel kleur wanneer gehaald */
.sheet-match-chip--green.is-met  { background: #DBF5E5; color: #066540;                 border-color: #BFE6D0; }
.sheet-match-chip--price.is-met  { background: #DAE9EC; color: var(--brand-primary);    border-color: #C3DBE0; }
.sheet-match-chip--window.is-met { background: #FCEBD5; color: #B45309;                 border-color: #F3D9B5; }

.sheet-match-chip-check {
  position: absolute;
  right: -3px; bottom: -3px;
  width: 17px; height: 17px;
  border-radius: 50%;
  color: var(--brand-paper);
  border: 2px solid var(--brand-paper);
  font-size: 10px;
  line-height: 13px;
  text-align: center;
  font-weight: 700;
  background: var(--brand-muted);
}
.sheet-match-chip--green.is-met  .sheet-match-chip-check { background: #066540; }
.sheet-match-chip--price.is-met  .sheet-match-chip-check { background: var(--brand-primary); }
.sheet-match-chip--window.is-met .sheet-match-chip-check { background: #B45309; }

/* =========================================================================
   v2.21 — marker-clustering in NRG-huisstijl (volle demo-kaart)
   ========================================================================= */
.nrg-cluster { background: transparent; }
.nrg-cluster-inner {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-paper);
  border: 3px solid var(--brand-paper);
  box-shadow: 0 2px 8px rgba(0,36,52,0.30);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
/* grotere clusters iets prominenter */
.marker-cluster-large .nrg-cluster-inner,
.nrg-cluster-inner { transition: transform 0.12s; }
.leaflet-marker-icon.nrg-cluster:hover .nrg-cluster-inner { transform: scale(1.08); }

/* v2.22 — "toont dichtstbijzijnde N van X" hint onder begrensde lijsten */
.list-view-more {
  padding: 14px 4px 4px;
  text-align: center;
  font-size: 12px;
  color: var(--brand-muted);
}

/* v2.24 — "locate me" knop op de kaart */
.locate-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-paper);
  color: var(--brand-primary);
  border: 1px solid var(--brand-line);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,36,52,0.18);
  transition: all 0.15s;
}
.locate-btn:hover { color: var(--brand-paper); background: var(--brand-primary); border-color: var(--brand-primary); }
.leaflet-control.locate-btn { margin: 108px 12px 0 0; }

/* =========================================================================
   v2.25 — fleet: berijders / voertuigen / rapportages
   ========================================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tbl-center { text-align: center; }

/* trend-pijltjes */
.trend { font-size: 11px; font-weight: 700; }
.trend--up   { color: #0A7D46; }
.trend--down { color: #C0392B; }
.trend--flat { color: var(--brand-muted); }

/* kenteken-badge */
.plate {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  font-size: 12px; letter-spacing: 0.06em;
  background: #FFDD00; color: #111; border: 1px solid #d9bd00;
  padding: 3px 8px; border-radius: 4px;
}
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* voertuig-status chip */
.vstatus { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.vstatus--good    { background: #DBF5E5; color: #066540; }
.vstatus--warn    { background: #FCEBD5; color: #B45309; }
.vstatus--neutral { background: var(--brand-paper-grey); color: var(--brand-ink); }

/* state of charge bar */
.soc { display: flex; align-items: center; gap: 8px; }
.soc-track { flex: 1; height: 7px; background: var(--brand-paper-grey); border-radius: 4px; overflow: hidden; min-width: 60px; }
.soc-fill { height: 100%; border-radius: 4px; }
.soc-fill--good { background: #17A567; }
.soc-fill--mid  { background: #E0A32E; }
.soc-fill--bad  { background: #D0693B; }
.soc-val { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 34px; }

/* charts */
.chart { width: 100%; height: auto; display: block; margin-top: 8px; }
.chart-lbl { font-size: 10px; fill: rgba(0,36,52,0.50); font-family: var(--font-body); }
.chart-val { font-size: 10px; fill: rgba(0,36,52,0.55); font-weight: 600; font-family: var(--font-body); }
.chart-grid { stroke: rgba(0,36,52,0.08); stroke-width: 1; }
.chart-axis { stroke: rgba(0,36,52,0.18); stroke-width: 1; }
.chart-bar { transition: opacity 0.12s; }
.chart-bar:hover { opacity: 0.82; }
.chart-target { stroke: rgba(0,36,52,0.45); stroke-width: 1.4; stroke-dasharray: 4 3; }
.chart-legend { display: flex; gap: 10px 18px; align-items: center; flex-wrap: wrap; padding: 8px 12px; background: var(--brand-paper-soft); border: 1px solid var(--brand-line); font-size: 11px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--brand-muted); }
.legend-dot { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.legend-dot--dashed { border: 1.5px dashed var(--brand-muted); background: transparent; border-radius: 0; height: 0; width: 12px; }

/* donut */
.donut-row { display: flex; align-items: center; gap: 24px; }
.donut { width: 140px; height: 140px; flex-shrink: 0; }
.donut-val { font-family: var(--font-display); font-weight: 600; font-size: 26px; fill: var(--brand-ink-deep); }
.donut-sub { font-size: 11px; fill: var(--brand-muted); }
.donut-legend { flex: 1; }
.donut-legend-item { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; color: var(--brand-ink); }

/* horizontale balken (kosten per aanbieder) */
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar-row { display: grid; grid-template-columns: 120px 1fr 72px; align-items: center; gap: 12px; }
.hbar-label { font-size: 13px; color: var(--brand-ink); }
.hbar-track { height: 10px; background: var(--brand-paper-grey); border-radius: 5px; overflow: hidden; }
.hbar-fill { height: 100%; background: var(--brand-primary); border-radius: 5px; }
.hbar-val { font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* besparingskaart */
.savings-card { background: linear-gradient(120deg, #E8F8F0, #F0F8FA); border-left: 4px solid var(--brand-accent); }
.savings-label { font-size: 13px; color: var(--brand-primary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.savings-value { font-family: var(--font-display); font-weight: 600; font-size: 40px; color: #0A7D46; margin-top: 6px; }
.savings-unit { font-size: 18px; color: var(--brand-muted); font-weight: 400; }
.savings-sub { font-size: 14px; color: var(--brand-ink); margin-top: 4px; }

/* patronen */
.patterns { display: flex; flex-direction: column; }
.pattern-row {
  display: grid; grid-template-columns: 1.2fr 1.6fr auto 1.8fr; gap: 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--brand-line-soft);
}
.pattern-row:last-child { border-bottom: none; }
.pattern-what { font-size: 14px; color: var(--brand-ink); }
.pattern-impact { font-weight: 700; font-size: 14px; white-space: nowrap; }
.pattern-impact--good { color: #0A7D46; }
.pattern-impact--bad  { color: #C0392B; }
.pattern-action { font-size: 13px; color: var(--brand-muted); }

/* responsive: stapel de grid-2 op smallere schermen */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .pattern-row { grid-template-columns: 1fr 1fr; }
}

/* v2.27 — as-titels + lijn/staaf-toggle (NRG range-btn stijl) */
.chart-axis-title { font-size: 10px; fill: rgba(0,36,52,0.6); font-family: var(--font-body); font-weight: 500; }
.chart-toggle { display: inline-flex; }
.chart-toggle-btn {
  background: #fff;
  border: 1px solid var(--brand-line);
  color: var(--brand-ink);
  padding: 4px 12px; font-size: 11px; font-family: var(--font-body);
  cursor: pointer; transition: all 0.12s;
}
.chart-toggle-btn + .chart-toggle-btn { border-left: none; }
.chart-toggle-btn:hover { background: var(--brand-paper-soft); border-color: var(--brand-primary); }
.chart-toggle-btn.active { background: var(--brand-ink-deep); color: #fff; border-color: var(--brand-ink-deep); }

/* =========================================================================
   v2.30 — filterbalk voor berijders & voertuigen
   ========================================================================= */
.filterbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  padding: 14px 0 18px; margin-bottom: 4px;
  border-bottom: 1px solid var(--brand-line-soft);
}
.filterbar-search {
  flex: 1 1 240px; min-width: 200px;
  padding: 8px 12px; font-size: 13px; font-family: var(--font-body);
  border: 1px solid var(--brand-line); background: #fff; color: var(--brand-ink);
}
.filterbar-search:focus { outline: none; border-color: var(--brand-primary); }
.filterbar-group { display: flex; align-items: center; gap: 8px; }
.filterbar-group--right { margin-left: auto; }
.filterbar-label { font-size: 11px; color: var(--brand-muted); text-transform: uppercase; letter-spacing: 0.03em; }

.seg { display: inline-flex; border: 1px solid var(--brand-line); overflow: hidden; }
.seg-btn {
  background: #fff; border: none; border-left: 1px solid var(--brand-line);
  color: var(--brand-ink); padding: 6px 11px; font-size: 12px; font-family: var(--font-body);
  cursor: pointer; transition: all 0.12s; white-space: nowrap;
}
.seg-btn:first-child { border-left: none; }
.seg-btn:hover { background: var(--brand-paper-soft); }
.seg-btn.active { background: var(--brand-ink-deep); color: #fff; }

.filterbar-sort {
  padding: 6px 10px; font-size: 12px; font-family: var(--font-body);
  border: 1px solid var(--brand-line); background: #fff; color: var(--brand-ink); cursor: pointer;
}
.filterbar-sort:focus { outline: none; border-color: var(--brand-primary); }

.filter-count { font-size: 12px; color: var(--brand-muted); white-space: nowrap; }
.filter-clear {
  background: none; border: none; color: var(--brand-primary);
  font-size: 12px; font-family: var(--font-body); cursor: pointer; text-decoration: underline; padding: 0;
}
.tbl-empty { text-align: center; color: var(--brand-muted); padding: 28px 12px; font-size: 13px; }

@media (max-width: 900px) {
  .filterbar-group--right { margin-left: 0; }
  .filterbar { gap: 10px 12px; }
}

/* =========================================================================
   v2.31 — passen-overzicht + detail-drawer (alles verbonden)
   ========================================================================= */
.row-click { cursor: pointer; transition: background 0.1s; }
.row-click:hover { background: var(--brand-paper-soft); }
.tbl-actions { white-space: nowrap; }
.tbl-actions .btn { margin-left: 6px; }

/* detail-drawer (rechts) */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,36,52,0.28);
  display: flex; justify-content: flex-end;
  animation: drawerFade 0.15s ease;
}
@keyframes drawerFade { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  width: 420px; max-width: 92vw; height: 100%;
  background: var(--brand-paper); box-shadow: -8px 0 30px rgba(0,36,52,0.18);
  display: flex; flex-direction: column;
  animation: drawerSlide 0.18s ease;
}
@keyframes drawerSlide { from { transform: translateX(24px); } to { transform: translateX(0); } }
.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px; border-bottom: 1px solid var(--brand-line);
}
.drawer-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--brand-ink-deep); }
.drawer-sub { font-size: 13px; color: var(--brand-muted); margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.drawer-body { padding: 20px; overflow-y: auto; }
.drawer-scorewrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.drawer-section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--brand-muted); margin: 20px 0 8px; font-weight: 600;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.link-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-paper-soft); border: 1px solid var(--brand-line);
  color: var(--brand-primary); padding: 6px 11px; font-size: 12px;
  font-family: var(--font-body); cursor: pointer; transition: all 0.12s;
}
.link-chip:hover { background: #fff; border-color: var(--brand-primary); }
.link-chip::after { content: '↗'; font-size: 11px; opacity: 0.6; }
.drawer-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-12 { margin-bottom: 12px; }

/* v2.32 — OCPI-token weergave: whitelist-badges, eigen-vloot tag */
.wl-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.wl-badge--good  { background: #DBF5E5; color: #066540; }
.wl-badge--warn  { background: #FCEBD5; color: #B45309; }
.wl-badge--muted { background: var(--brand-paper-grey); color: var(--brand-muted); }
.status-badge--muted { background: var(--brand-paper-grey); color: var(--brand-muted); }
.own-tag {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.03em;
  background: var(--brand-ink-deep); color: #fff; padding: 1px 6px; border-radius: 3px; vertical-align: middle;
}
.row-own td:first-child { border-left: 2px solid var(--brand-accent); }

/* v2.35 — duidelijke logout-knop in sidebar + beleid-edit-formulier */
.sidebar-logout { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.sidebar-logout-icon { display: inline-flex; }
.sidebar-logout-icon svg { width: 15px; height: 15px; }

.policy-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin-top: 20px; }
.policy-field { display: flex; flex-direction: column; }
.policy-field--wide { grid-column: 1 / -1; }
.policy-field-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--brand-ink-deep); margin-bottom: 10px; }
.pillar-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pillar-dot--green { background: #17A567; }
.pillar-dot--primary { background: var(--brand-primary); }
.pillar-dot--amber { background: #E0A32E; }
.policy-input-row { display: flex; align-items: center; gap: 8px; }
.policy-input-row .field-input { max-width: 130px; }
.policy-field--wide .field-input { max-width: 100%; }
.policy-unit { font-size: 13px; color: var(--brand-muted); white-space: nowrap; }

@media (max-width: 800px) { .policy-form { grid-template-columns: 1fr; } }

/* v2.36 — pas-registratie: pas-teller + scope-notitie */
.pass-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand-primary); color: #fff; font-size: 11px; font-weight: 700; }
.scope-note { margin-top: 16px; padding: 12px 14px; background: var(--brand-paper-soft); border-left: 3px solid var(--brand-line); font-size: 12px; color: var(--brand-muted); line-height: 1.5; }
