/* WeCharge laadbeheer, in the we-charge.nl house style: Barlow, brand blue, soft blue surfaces. */
@font-face {
  font-family: Barlow;
  src: url(/fonts/barlow-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(/fonts/barlow-500.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(/fonts/barlow-600.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(/fonts/barlow-700.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --brand: #225be3;
  --deep: #123b8f;
  --brand-soft: #eaf0fd;
  --gradient: linear-gradient(120deg, #123b8f 0%, #225be3 62%, #4388f5 100%);
  --ink: #14181e;
  --text: #14181e;
  --text-2: #4d5766;
  --text-3: #8590a0;
  --line: #e1e8f2;
  --line-2: #cfd9e8;
  --bg: #f3f6fc;
  --surface: #ffffff;
  --ok: #12925a;
  --ok-soft: #e6f6ee;
  --warn: #9a5b0b;
  --warn-soft: #fdf3e2;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --radius: 20px;
  --shadow: 0 1px 2px #14181e08, 0 12px 32px -20px #123b8f40;
  --sans: Barlow, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--brand-soft);
  color: var(--deep);
}
button,
input,
select {
  font: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons: brand-blue pills, like the website */
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  background: var(--brand);
  color: white;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
button:hover,
.button:hover {
  background: var(--deep);
  border-color: var(--deep);
}
button:active {
  transform: scale(0.98);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #225be359;
  outline-offset: 2px;
}
.secondary,
.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.secondary:hover,
.button.secondary:hover {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand);
}
.secondary:disabled:hover {
  border-color: var(--line);
  color: var(--ink);
}

/* Sidebar */
aside {
  width: 260px;
  background: var(--surface);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 8px;
  color: var(--brand);
  text-decoration: none;
}
.logo {
  /* The exact we-charge.nl logo (white mask), tinted per background like the site does. */
  display: block;
  width: 62px;
  height: 47px;
  flex: none;
  background: currentColor;
  -webkit-mask: url(/brand-mask.png) center / contain no-repeat;
  mask: url(/brand-mask.png) center / contain no-repeat;
}
.brand-sub {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 32px;
}
.nav-group {
  padding: 18px 12px 6px;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 600;
}
.nav-group:first-child {
  padding-top: 0;
}
nav button {
  justify-content: flex-start;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  white-space: normal;
}
nav button:hover {
  background: var(--bg);
  color: var(--ink);
}
nav button.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
nav svg,
.station-icon svg,
.metric-icon svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.aside-bottom {
  margin-top: auto;
  padding: 14px 12px;
  border-radius: 16px;
  background: var(--bg);
  display: grid;
  gap: 2px;
  font-size: 13px;
}
#organization {
  color: var(--ink);
  font-weight: 600;
}
.env {
  color: var(--text-3);
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--ok);
  display: inline-block;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
}

/* Main column */
main {
  margin-left: 260px;
  padding: 0 44px 56px;
  max-width: 1660px;
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 -44px;
  padding: 22px 44px 18px;
  background: #f3f6fcde;
  backdrop-filter: saturate(180%) blur(18px);
}
header small {
  display: block;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 2px 0 0;
}
h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 4px;
}
h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
}
p {
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}
small {
  font-size: 13px;
  color: var(--text-3);
}
.muted {
  color: var(--text-3);
  font-size: 13.5px;
}
.badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--warn);
  background: var(--warn-soft);
  padding: 5px 11px;
  border-radius: 999px;
}
#app {
  padding-top: 12px;
}
.toolbar {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Overview hero, the first thing a customer sees */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 16px;
  padding: 34px 36px;
  border-radius: 28px;
  background:
    radial-gradient(60% 90% at 100% 0%, #ffffff26 0, transparent 60%),
    var(--gradient);
  color: white;
  box-shadow: 0 24px 48px -28px #123b8fb3;
}
.hero::after {
  /* Large faint W from the logo, like the livery on the vans */
  content: "";
  position: absolute;
  right: -30px;
  bottom: -60px;
  width: 380px;
  height: 230px;
  background: #ffffff12;
  -webkit-mask: url(/brand-w.svg) center / contain no-repeat;
  mask: url(/brand-w.svg) center / contain no-repeat;
  pointer-events: none;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid #ffffff4d;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
.hero h2 {
  margin: 16px 0 6px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.hero p {
  color: #dce6fb;
  font-size: 16px;
}
.hero-stat {
  min-width: 220px;
  padding: 18px 22px;
  border-radius: 20px;
  background: #ffffff1f;
  border: 1px solid #ffffff2e;
  backdrop-filter: blur(8px);
}
.hero-stat span,
.hero-stat small {
  display: block;
  color: #dce6fb;
  font-size: 14px;
}
.hero-stat strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* Metric tiles */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
#service-summary {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.metric {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}
.metric p {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
}
.metric strong {
  display: block;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 4px 0 4px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.metric small {
  display: block;
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Section heads */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 16px;
}
#app > section > .section-head:first-child {
  margin-top: 8px;
}
.section-head p {
  font-size: 15px;
  max-width: 780px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--ok-soft);
  color: var(--ok);
  border-radius: 999px;
  padding: 4px 12px 4px 10px;
  white-space: nowrap;
  line-height: 1.5;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill.offline {
  background: #eef1f6;
  color: #66707f;
}
.pill.warning {
  background: var(--warn-soft);
  color: var(--warn);
}
.pill.failure {
  background: var(--danger-soft);
  color: var(--danger);
}
.pill.live {
  background: var(--surface);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pill.live::before {
  box-shadow: 0 0 0 0 #225be366;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px #225be300;
  }
  100% {
    box-shadow: 0 0 0 0 #225be300;
  }
}

/* Charge point cards */
.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.station {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition:
    border-color 0.15s,
    transform 0.15s;
  min-width: 0;
}
.station:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
}
.station-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.station-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}
.station h3 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.station > p {
  font-size: 14.5px;
}
.station .stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}
.station .stats > div {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
}
.station .stats p {
  font-size: 13px;
  color: var(--text-3);
}
.station .stats b {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.station-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.station-actions:empty {
  display: none;
}
.station-actions button {
  min-height: 36px;
  font-size: 14px;
  padding: 6px 15px;
}

/* Notices */
.notice {
  display: block;
  background: var(--brand-soft);
  border: 0;
  border-radius: 18px;
  padding: 18px 22px;
  margin-top: 20px;
  font-size: 14.5px;
  color: #2c4a86;
}
.notice b,
.notice h3 {
  font-size: 15px;
  color: var(--deep);
  margin: 0;
}
.notice p {
  font-size: 14.5px;
  color: #2c4a86;
  margin-top: 3px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 52px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
}
footer b {
  color: var(--text-2);
  font-weight: 700;
}

/* Tables */
.table-wrap {
  border-radius: var(--radius);
  overflow: auto;
  background: var(--surface);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  position: sticky;
  top: 0;
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface);
  white-space: nowrap;
}
td {
  color: var(--text);
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td {
  background: #f8faff;
}
#message {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(440px, calc(100vw - 48px));
  margin: 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: white;
  font-size: 14.5px;
  white-space: pre-wrap;
  box-shadow: 0 16px 36px -14px #14181e80;
}
#message:empty {
  display: none;
}
#message[data-error="true"] {
  background: var(--danger);
}

/* Forms */
label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  display: grid;
  gap: 7px;
}
input,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 400;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:hover,
select:hover {
  border-color: var(--line-2);
}
input:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px #225be31f;
  outline: none;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.form-grid button {
  align-self: end;
  min-height: 46px;
}
.form-grid label,
.form-grid input,
.form-grid select {
  min-width: 0;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.6;
  font-weight: 500;
}
.check-label input {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--brand);
}
.wide {
  grid-column: 1/-1;
}
details {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0 24px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}
details[open] {
  padding-bottom: 24px;
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}
details[open] > summary::after {
  content: "−";
}
details[open] > summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
details details {
  box-shadow: none;
  border: 1px solid var(--line);
}

/* Commands and other list cards */
.command-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.command-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.command-card > button,
.command-card > .button {
  justify-self: start;
  margin-top: 8px;
}
.command-card > span {
  color: var(--text-2);
  font-size: 14.5px;
}
.command-card p {
  overflow-wrap: anywhere;
  font-size: 14.5px;
}
.command-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.command-card-top > div {
  min-width: 0;
  flex: 1 1 180px;
}
.command-card h3 {
  font-size: 16.5px;
  margin: 0 0 2px;
  overflow-wrap: anywhere;
}
.command-card .station-actions {
  margin-top: 10px;
}
.command-card.warning {
  box-shadow:
    inset 0 0 0 1px #efd29f,
    var(--shadow);
  background: #fffcf6;
}

/* Sign-in: brand panel left, form right, no app chrome */
body:has(#login:not([hidden])) aside,
body:has(#login:not([hidden])) header {
  display: none;
}
body:has(#login:not([hidden])) main {
  margin: 0;
  padding: 0;
  max-width: none;
}
#login:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--surface);
}
.login-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  margin: 16px;
  padding: 40px 52px;
  border-radius: 28px;
  background:
    radial-gradient(55% 60% at 100% 0%, #ffffff29 0, transparent 60%),
    var(--gradient);
  color: white;
}
.login-brand .brand {
  padding: 0;
  color: white;
}
.login-brand .logo {
  width: 84px;
  height: 63px;
}
.login-brand .brand-sub {
  border-left-color: #ffffff4d;
  color: #dce6fb;
}
.login-brand h1 {
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 600px;
}
.login-brand p {
  color: #dce6fb;
  font-size: 18px;
  max-width: 470px;
  margin-top: 20px;
}
.login-points {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  gap: 14px;
  font-size: 16.5px;
  font-weight: 500;
}
.login-points li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-points li::before {
  content: "";
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E")
    center/15px no-repeat #ffffff26;
}
.login-brand .login-foot {
  color: #c9d8fa;
  font-size: 14px;
  margin: 0;
}
.login-card {
  align-self: center;
  justify-self: center;
  width: min(420px, 100%);
  padding: 40px 24px;
}
.login-card h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.login-card p {
  font-size: 15.5px;
}
.login-card form {
  display: grid;
  gap: 10px;
  margin: 30px 0;
}
.login-card form button[type="submit"] {
  justify-content: space-between;
  min-height: 54px;
  margin-top: 10px;
  padding: 8px 8px 8px 26px;
  font-size: 16.5px;
}
.login-card form button[type="submit"]::after {
  /* Arrow chip, as on the website's call-to-action buttons */
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
    center/18px no-repeat #ffffff2e;
}
.login-card input,
.login-card select {
  min-height: 52px;
  font-size: 16px;
}
.login-card > .muted {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.login-card .notice {
  background: var(--warn-soft);
  color: var(--warn);
}
#identity-qr {
  max-width: 220px;
  height: auto;
  margin: 20px auto;
  display: block;
  padding: 14px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}
#identity-setup-uri {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 12px;
  font-size: 12px;
}
#identity-mfa h2 {
  margin-top: 8px;
}
#identity-mfa > button {
  margin-top: 4px;
}

/* Charts */
.telemetry-chart svg {
  display: block;
  width: 100%;
  max-height: 380px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
  margin: 12px 0 24px;
}
[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  main {
    padding: 0 24px 40px;
  }
  header {
    margin: 0 -24px;
    padding: 18px 24px 14px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #login:not([hidden]) {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 32px 28px;
  }
  .login-points {
    display: none;
  }
}
@media (max-width: 760px) {
  aside {
    position: sticky;
    top: 0;
    z-index: 20;
    width: auto;
    padding: 14px 16px 10px;
    overflow: visible;
  }
  .logo {
    width: 48px;
    height: 36px;
  }
  nav {
    flex-direction: row;
    overflow-x: auto;
    margin: 14px -16px 0;
    padding: 0 16px;
    scrollbar-width: none;
  }
  .nav-group,
  .aside-bottom {
    display: none;
  }
  nav button {
    white-space: nowrap;
    flex: none;
    min-height: 38px;
    font-size: 14.5px;
    gap: 8px;
  }
  main {
    margin: 0;
    padding: 0 16px 32px;
  }
  header {
    position: static;
    margin: 0 -16px;
    padding: 18px 16px 6px;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 28px;
  }
  .header-actions {
    flex-wrap: wrap;
  }
  #updated {
    display: none;
  }
  .hero {
    padding: 24px 22px;
    border-radius: 24px;
  }
  .hero-stat {
    width: 100%;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
  }
  .metric strong {
    font-size: 26px;
  }
  .station-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .login-brand {
    margin: 10px;
    padding: 24px 22px 28px;
    gap: 24px;
    border-radius: 24px;
  }
  .login-brand .login-foot {
    display: none;
  }
  .login-card {
    padding: 28px 20px 40px;
  }
  input,
  select {
    font-size: 16px;
  }
  footer {
    flex-direction: column;
    gap: 4px;
  }
  #message {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Charger setup card: what the installer enters, shown once after registration */
.setup-card {
  margin-top: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 2px var(--brand),
    var(--shadow);
}
.setup-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.setup-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.setup-head p {
  max-width: 640px;
}
#charger-setup-fields {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}
#charger-setup-fields > div {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg);
}
#charger-setup-fields dt {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}
#charger-setup-fields dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin: 0;
}
#charger-setup-fields code {
  overflow-wrap: anywhere;
  font:
    600 15px/1.4 ui-monospace,
    "SFMono-Regular",
    Consolas,
    monospace;
}
#charger-setup-fields button {
  min-height: 32px;
  padding: 4px 14px;
  font-size: 13.5px;
}
.form-intro {
  margin-top: 14px;
}
@media (max-width: 760px) {
  #charger-setup-fields > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
#payout-summary {
  margin: 20px 0 16px;
}

/* Employer and employee portal: same look, no management menu */
body.portal nav {
  display: none;
}
#portal {
  padding-top: 12px;
}
.portal-month {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 8px 0 0;
}
.portal-month label {
  width: min(260px, 100%);
}
.portal-month button {
  min-height: 46px;
}
/* Result panels stay out of sight until they have something to say. */
.notice:empty {
  display: none;
}

/* Sign-up and invitations */
.switch-link {
  margin-top: 4px;
}
.switch-link a {
  color: var(--brand);
  font-weight: 600;
}
#identity-signup-form .muted {
  margin: -2px 0 0;
}
.invite-message {
  margin: 16px 0 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}
select[multiple] {
  min-height: 120px;
  padding: 6px;
}
.login-card > .switch-link {
  padding-top: 0;
  border-top: 0;
}
.unknown-cards {
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 2px var(--brand),
    var(--shadow);
}
.unknown-cards h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.unknown-cards p {
  max-width: 640px;
  margin: 0 0 12px;
}
.unknown-cards td:last-child {
  text-align: right;
}
.cell-sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-3);
}
.qr-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 16px;
}
.qr-sticker {
  width: 300px;
  max-width: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 24px 24px 20px;
  text-align: center;
  box-shadow: inset 0 0 0 3px var(--brand);
}
.qr-logo {
  display: block;
  width: 72px;
  height: 54px;
  margin: 0 auto 4px;
  background: var(--brand);
  -webkit-mask: url(/brand-mask.png) center / contain no-repeat;
  mask: url(/brand-mask.png) center / contain no-repeat;
}
.qr-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}
.qr-image svg {
  display: block;
  width: 100%;
  height: auto;
}
.qr-station {
  margin: 8px 0 2px;
  font-weight: 700;
  color: var(--brand);
}
.qr-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}
.qr-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
  flex: 1;
}
.qr-actions code {
  word-break: break-all;
}
@media print {
  body.printing-qr * {
    visibility: hidden;
  }
  body.printing-qr #qr-sticker,
  body.printing-qr #qr-sticker * {
    visibility: visible;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body.printing-qr #qr-sticker {
    position: fixed;
    left: 0;
    top: 0;
    width: 9cm;
    box-shadow: inset 0 0 0 3px #225be3;
  }
}
.auto-invoice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 20px;
}
.auto-invoice h3 {
  margin: 0 0 6px;
}
.auto-invoice p {
  margin: 0 0 8px;
}
@media (max-width: 760px) {
  .auto-invoice {
    grid-template-columns: 1fr;
  }
}

/* Menu counters, sub-tabs and "Aandacht nodig" (December 2026 restructure). */
nav button {
  position: relative;
}
.nav-count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.subnav {
  display: flex;
  gap: 4px;
  margin: 0 0 22px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.subnav[hidden] {
  display: none;
}
.subnav button {
  flex: none;
  min-height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
.subnav button:hover {
  background: var(--bg);
  color: var(--ink);
}
.subnav button.active {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
.attention {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.attention-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.attention-item div {
  flex: 1;
  min-width: 0;
}
.attention-item b {
  display: block;
  font-size: 15.5px;
}
.attention-item p {
  margin: 2px 0 0;
  color: var(--text-2);
  font-size: 14px;
}
.attention-item .button {
  flex: none;
}
.attention-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 5px var(--ok-soft);
}
.attention-item.warn .attention-dot {
  background: var(--warn);
  box-shadow: 0 0 0 5px var(--warn-soft);
}
.attention-item.bad .attention-dot {
  background: var(--danger);
  box-shadow: 0 0 0 5px var(--danger-soft);
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.settings-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.settings-card[hidden] {
  display: none;
}
.settings-card h3 {
  margin: 0;
}
@media (max-width: 760px) {
  .subnav {
    width: auto;
    margin: 0 0 16px;
  }
  .attention-item {
    flex-wrap: wrap;
  }
  .attention-item .button {
    width: 100%;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .nav-count {
    margin-left: 0;
  }
}
.label-short {
  display: none;
}
/* Phone: the six pages as a fixed bar at the bottom, like an app. */
@media (max-width: 760px) {
  nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
    margin: 0;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    overflow: visible;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -18px #123b8f40;
  }
  nav button {
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 54px;
    padding: 6px 2px;
    border-radius: 12px;
    font-size: 11px;
    text-align: center;
  }
  nav button.active {
    background: transparent;
  }
  nav button.active svg {
    stroke-width: 2.2;
  }
  .label-long {
    display: none;
  }
  .label-short {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-count {
    position: absolute;
    top: 2px;
    left: calc(50% + 6px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    line-height: 18px;
  }
  main {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
  body.portal main {
    padding-bottom: 32px;
  }
}
.list-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.list-search {
  flex: 1 1 260px;
  max-width: 420px;
}
.list-search input {
  width: 100%;
}
.list-filter {
  flex: 0 1 200px;
}
.list-filter select,
.list-filter input {
  width: 100%;
}
.list-count {
  margin-left: auto;
  font-size: 14px;
}
tr.no-match td,
tr.empty-row td {
  color: var(--text-3);
  text-align: center;
  padding: 28px 16px;
}
@media (max-width: 760px) {
  .list-search,
  .list-filter {
    flex: 1 1 100%;
    max-width: none;
  }
  .list-count {
    margin-left: 0;
  }
}
@media (max-width: 760px) {
  /* Messages sit above the bottom menu, never over it. */
  #message {
    left: 16px;
    right: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    max-width: none;
  }
  body.portal #message {
    bottom: 16px;
  }
}
