:root {
  --brand-primary: #13293d;
  --brand-primary-hover: #0d1d2b;
  --brand-accent: #ec6608;
  --portal-bg: #f5f7fa;
  --portal-surface: #ffffff;
  --portal-surface-soft: #f8fafc;
  --portal-line: #d9e2ec;
  --portal-line-strong: #bcccdc;
  --portal-ink: #13293d;
  --portal-muted: #526477;
  --portal-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--portal-ink);
  background: var(--portal-bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(19, 41, 61, 0.03), transparent 160px),
    linear-gradient(90deg, rgba(236, 102, 8, 0.04), transparent 28%),
    var(--portal-bg);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

.topbar {
  align-items: center;
  background: rgba(245, 247, 250, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--portal-line);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px 24px;
}

.portal-nav {
  background: rgba(245, 247, 250, 0.94);
  border-bottom: 1px solid var(--portal-line);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.portal-nav a {
  align-items: center;
  border: 1px solid #d7e0e6;
  border-radius: 999px;
  color: #31404a;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  min-height: 36px;
  padding: 0 14px;
  text-decoration: none;
}

.portal-nav a:hover,
.portal-nav a:focus-visible {
  background: #e8f3ef;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  outline: 0;
}

.eyebrow {
  color: #60717d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 16px;
}

button {
  background: var(--brand-primary);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  min-height: 40px;
  padding: 0 14px;
}

button:hover {
  background: var(--brand-primary-hover);
}

.topbar > div {
  align-items: center;
  display: grid;
  gap: 4px 12px;
  grid-template-columns: auto 1fr;
}

.brand-logo {
  grid-row: span 2;
  max-height: 42px;
  max-width: 160px;
  object-fit: contain;
}

.layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 280px 340px 1fr;
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px 24px 48px;
}

.panel,
.summary-band,
.flow-panel {
  background: var(--portal-surface);
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  box-shadow: var(--portal-shadow);
  min-width: 0;
  padding: 16px;
}

.panel-head {
  align-items: center;
  border-bottom: 1px solid var(--portal-line);
  display: flex;
  justify-content: space-between;
  margin: -2px 0 12px;
  padding-bottom: 10px;
}

.panel-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.panel-actions .compact-month {
  min-height: 30px;
  padding: 4px 8px;
  width: 132px;
}

.filter-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 12px;
}

.filter-grid-sessions {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.compact-field {
  margin-top: 0;
}

.compact-actions {
  align-self: end;
}

.compact-actions span {
  color: #4c5c66;
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.compact-field select,
.compact-field input {
  min-height: 36px;
}

.panel-actions button {
  min-height: 30px;
  padding: 0 10px;
}

label {
  color: #4c5c66;
  display: grid;
  font-size: 13px;
  gap: 6px;
  margin-top: 14px;
}

input {
  border: 1px solid var(--portal-line-strong);
  border-radius: 10px;
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

select {
  border: 1px solid var(--portal-line-strong);
  border-radius: 10px;
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
  background: #ffffff;
}

.status-line,
.site-item span,
.charge-point-item span,
.charge-point-item small,
.empty,
.summary-band span,
.metric span {
  color: #60717d;
  font-size: 13px;
}

.status-line {
  margin-top: 14px;
}

.auth-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}

.session-line {
  background: rgba(236, 102, 8, 0.10);
  border: 1px solid rgba(236, 102, 8, 0.18);
  border-radius: 10px;
  color: var(--portal-ink);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 12px;
  padding: 8px 10px;
}

.site-list,
.charge-point-list,
.user-list,
.session-list {
  display: grid;
  gap: 8px;
}

.site-item,
.charge-point-item,
.user-item,
.session-item {
  background: var(--portal-surface-soft);
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  padding: 12px;
}

.site-item {
  cursor: pointer;
}

.site-item:hover,
.site-item.active {
  border-color: var(--brand-accent);
  box-shadow: inset 3px 0 0 var(--brand-accent);
}

.site-item strong,
.charge-point-item strong,
.user-item strong,
.session-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.summary-band {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.summary-band strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

.energy-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.metric {
  background: var(--portal-surface);
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  padding: 16px;
}

.metric strong {
  display: block;
  font-size: 24px;
  margin-top: 6px;
}

.metric-grid-power {
  border-left: 5px solid #446878;
}

.metric-pv-power {
  border-left: 5px solid var(--brand-accent);
}

.metric-charging-power {
  border-left: 5px solid var(--brand-primary);
}

.metric-battery-power {
  border-left: 5px solid #6d7a35;
}

.flow-panel {
  background:
    linear-gradient(135deg, rgba(23, 101, 93, 0.06), transparent 38%),
    linear-gradient(225deg, rgba(210, 147, 27, 0.08), transparent 42%),
    var(--portal-surface);
  display: block;
  min-height: 0;
  overflow: hidden;
  padding: 18px 20px;
}

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

.flow-card-head span {
  color: #60717d;
  font-size: 13px;
  font-weight: 700;
}

.flow-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.flow-legend span {
  align-items: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #dce6eb;
  border-radius: 999px;
  color: #425865;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  padding: 5px 9px;
}

.flow-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.flow-sankey-chart {
  height: clamp(260px, 34vw, 430px);
  min-height: 260px;
  width: 100%;
}

.flow-kpis {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  margin-top: 8px;
}

.flow-kpis span {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #dce6eb;
  border-radius: 8px;
  min-width: 0;
  padding: 9px 10px;
}

.flow-kpis small {
  color: #60717d;
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.flow-kpis strong {
  color: #12202a;
  display: block;
  font-size: 15px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.charge-point-item {
  cursor: default;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr auto;
}

.charge-point-item strong,
.charge-point-item span {
  min-width: 0;
}

.charge-point-item small {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.control-status {
  display: grid;
  gap: 12px;
}

.customer-operations-panel {
  background: linear-gradient(135deg, #ffffff, #f8fbfc);
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: var(--portal-shadow);
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.5fr) minmax(240px, 0.7fr);
  min-width: 0;
  padding: 16px;
  scroll-margin-top: 96px;
}

.operations-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.operations-copy h2 {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.operations-copy span {
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.4;
}

.operations-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
}

.operations-grid article,
.operations-action {
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
}

.operations-grid article {
  background: #ffffff;
}

.operations-grid span,
.operations-grid small,
.operations-action span {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.operations-grid strong,
.operations-action strong {
  color: var(--portal-ink);
  font-size: 17px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.operations-action {
  align-content: center;
  background: #f7fafb;
  border-left: 4px solid var(--portal-info);
}

.operations-action.ok {
  border-left-color: var(--portal-good);
}

.operations-action.warning {
  border-left-color: var(--portal-warn);
}

.operations-action.critical {
  border-left-color: #b3261e;
}

.customer-regulator-story {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1.1fr) repeat(3, minmax(140px, 0.55fr));
}

.customer-regulator-story > div,
.customer-regulator-story > article {
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
}

.customer-regulator-story > div {
  background: #13293d;
  color: #ffffff;
}

.customer-regulator-story > article {
  background: #ffffff;
  border: 1px solid var(--portal-line);
}

.customer-regulator-story span,
.customer-regulator-story small {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.customer-regulator-story > div span,
.customer-regulator-story > div small {
  color: rgba(255, 255, 255, 0.72);
}

.customer-regulator-story > article span,
.customer-regulator-story > article small {
  color: var(--portal-muted);
}

.customer-regulator-story strong {
  font-size: 18px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.control-overview {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.42fr);
}

.control-overview > div,
.control-overview > article {
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
}

.control-overview > div {
  background: #13293d;
  color: #ffffff;
}

.control-overview > article {
  background: #fff8f1;
  border: 1px solid rgba(236, 102, 8, 0.24);
}

.control-overview span,
.control-overview small {
  font-size: 12px;
  font-weight: 800;
}

.control-overview > div span,
.control-overview > div small {
  color: rgba(255, 255, 255, 0.72);
}

.control-overview > article span,
.control-overview > article small {
  color: #755238;
}

.control-overview strong {
  font-size: 22px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.control-overview small {
  line-height: 1.35;
}

.control-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.control-metric {
  background: #f8fbfc;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  min-width: 0;
  padding: 10px;
}

.control-metric span {
  color: #60717d;
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.control-metric strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.control-reason {
  color: #31404a;
  font-size: 13px;
  line-height: 1.4;
}

.control-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.control-tags span {
  background: #e8f3ef;
  border-radius: 999px;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.control-asset-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.control-asset-list article {
  background: #ffffff;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  min-width: 0;
  padding: 10px;
}

.control-asset-list strong,
.control-asset-list span,
.control-asset-list small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.control-asset-list span,
.control-asset-list small {
  color: #60717d;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

.portal-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1.2fr;
}

.monthly-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.monthly-grid > div {
  background: #f8fbfc;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  padding: 12px;
}

.monthly-grid span,
.mini-item small {
  color: #60717d;
  display: block;
  font-size: 12px;
}

.monthly-grid strong {
  display: block;
  font-size: 20px;
  margin-top: 4px;
}

.monthly-columns {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.monthly-columns h3 {
  font-size: 13px;
  margin: 0 0 8px;
}

.month-picker {
  align-items: center;
  color: #60717d;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
}

.month-picker input {
  border: 1px solid #cbd7dd;
  border-radius: 8px;
  font: inherit;
  min-height: 36px;
  padding: 6px 10px;
}

.chart-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.chart-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chart-panel {
  background: #f8fbfc;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}

.chart-panel h3 {
  font-size: 13px;
  margin: 0 0 8px;
}

.chart-box {
  height: 280px;
  min-width: 0;
  width: 100%;
}

.chart-box-wide {
  height: 300px;
}

.billing-table-wrap {
  border: 1px solid #dce5ea;
  border-radius: 8px;
  margin-top: 14px;
  overflow-x: auto;
}

.billing-status-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.billing-status-panel article {
  background: #f8fbfc;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  padding: 12px 14px;
}

.billing-status-panel span,
.billing-status-panel small {
  color: var(--muted);
  display: block;
}

.billing-status-panel strong {
  display: block;
  margin: 4px 0;
}

.billing-technical-disclosure {
  background: #ffffff;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
}

.billing-technical-disclosure summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  min-height: 42px;
  padding: 9px 12px;
}

.billing-technical-disclosure summary::-webkit-details-marker {
  display: none;
}

.billing-technical-disclosure summary span {
  color: #60717d;
  font-size: 12px;
  font-weight: 800;
}

.billing-technical-disclosure summary strong {
  color: #172026;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.billing-technical-grid {
  border-top: 1px solid #dce5ea;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  padding: 10px;
}

.customer-billing-work-tools {
  margin: 0 0 12px;
}

.customer-billing-tool-body {
  border-top: 1px solid var(--customer-work-line, #dce5ea);
  display: grid;
  gap: 10px;
  padding: 10px;
}

.customer-billing-work-tools .billing-run-actions,
.customer-billing-work-tools .billing-settings-form {
  margin: 0;
}

.customer-billing-work-tools .billing-settings-form {
  border: 0;
  padding: 0;
}

@media (max-width: 820px) {
  .billing-status-panel {
    gap: 1px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .billing-status-panel article {
    border-radius: 0;
    min-height: 72px;
    padding: 9px 10px;
  }

  .billing-status-panel strong {
    font-size: 14px;
    line-height: 1.18;
  }

  .billing-status-panel small,
  .billing-status-panel span {
    font-size: 11px;
    line-height: 1.25;
  }

  .billing-technical-disclosure {
    margin-top: 8px;
  }
}

.billing-table {
  border-collapse: collapse;
  min-width: 780px;
  width: 100%;
}

.billing-table th,
.billing-table td {
  border-bottom: 1px solid #e5ebef;
  font-size: 13px;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.billing-table th {
  background: #f2f7f8;
  color: #526572;
  font-size: 12px;
  font-weight: 800;
}

.billing-table tbody tr:last-child td {
  border-bottom: 0;
}

.customer-tools-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.tool-form {
  background: #f8fbfc;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
}

.tool-form h3,
.analytics-table-section h3 {
  font-size: 13px;
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.form-grid label,
.tool-form label {
  margin-top: 0;
}

.customer-mode-notes {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-mode-notes article {
  background: #ffffff;
  border: 1px solid #dce5ea;
  border-left: 4px solid #ec6608;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px;
}

.customer-mode-notes strong {
  color: var(--portal-ink);
  font-size: 14px;
  line-height: 1.15;
}

.customer-mode-notes span {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.customer-config-advanced details {
  display: grid;
  gap: 12px;
}

.customer-config-advanced summary {
  color: var(--portal-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.customer-config-advanced .form-grid {
  margin-top: 12px;
}

.readonly-runtime-field input {
  background: #eef3f6;
  color: var(--portal-muted);
  cursor: default;
}

.readonly-runtime-field small {
  color: var(--portal-muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 4px;
}

.field-label {
  color: #60717d;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.schedule-day-field {
  align-content: start;
  display: grid;
  gap: 0;
  min-width: 0;
}

.checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-pill {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce5ea;
  border-radius: 999px;
  display: inline-flex;
  flex-direction: row;
  gap: 8px;
  margin: 0;
  min-height: 34px;
  padding: 6px 10px;
}

.checkbox-pill input {
  min-height: 0;
  width: auto;
}

.config-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 14px;
}

.config-summary article,
.runtime-device-row {
  background: #f8fbfc;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}

.config-summary span,
.runtime-device-title span {
  color: #60717d;
  display: block;
  font-size: 12px;
}

.config-summary strong,
.runtime-device-title strong {
  display: block;
  overflow-wrap: anywhere;
}

.config-form {
  display: grid;
  gap: 12px;
}

.runtime-device-editor {
  display: grid;
  gap: 10px;
}

.runtime-device-row {
  display: grid;
  gap: 10px;
}

.runtime-device-title {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.runtime-device-title > div {
  min-width: 0;
}

.runtime-device-actions {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.runtime-status-pill {
  border: 1px solid #dce5ea;
  border-radius: 999px;
  color: #344957;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 9px;
  white-space: nowrap;
}

.runtime-status-pill.is-good {
  background: #e8f5ef;
  border-color: #a8d9c4;
  color: #0f6848;
}

.runtime-status-pill.is-warning {
  background: #fff6df;
  border-color: #f1cf7a;
  color: #805c00;
}

.runtime-status-pill.is-critical {
  background: #fdecec;
  border-color: #f2abab;
  color: #9b1c1c;
}

.runtime-status-pill.is-info {
  background: #edf5ff;
  border-color: #b9d6f5;
  color: #23527a;
}

.runtime-status-summary small {
  color: var(--portal-muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.customer-runtime-card {
  border-left: 4px solid #60717d;
}

.customer-runtime-card.is-pending {
  border-left-color: #d08a00;
}

.customer-runtime-card small {
  color: var(--portal-muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.runtime-device-row-remove {
  border-color: #d08a00;
  opacity: 0.72;
}

.runtime-device-row-remove .runtime-device-fields {
  display: none;
}

.runtime-device-row-remove .runtime-device-title span::after {
  content: " · wird entfernt";
}

.runtime-device-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.runtime-device-note {
  align-self: end;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 700;
  grid-column: 1 / -1;
  line-height: 1.35;
  margin: 0;
}

.runtime-check {
  align-items: center;
  background: #fff;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
}

.runtime-check input {
  min-height: 0;
  width: auto;
}

.analytics-table-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.analytics-table-section {
  background: #f8fbfc;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}

.analytics-table-wrap {
  margin-top: 10px;
  overflow-x: auto;
}

.compact-table {
  min-width: 640px;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-item {
  border-bottom: 1px solid #e5ebef;
  display: grid;
  gap: 3px;
  padding: 0 0 8px;
}

.mini-item span,
.mini-item strong {
  min-width: 0;
}

.compact-empty {
  padding: 4px 0;
}

.user-item {
  display: grid;
  gap: 10px;
}

.user-item-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.user-item-head > div {
  min-width: 0;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.secondary-button {
  background: #ffffff;
  border: 1px solid #bfd0d8;
  color: #17324a;
}

.secondary-button:hover {
  background: #f3f8fa;
}

.tiny-button {
  min-height: 30px;
  padding: 0 10px;
}

.user-item details {
  border-top: 1px solid #dce5ea;
  margin-top: 8px;
  padding-top: 8px;
}

.user-item summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.user-item summary::-webkit-details-marker {
  display: none;
}

.user-item summary::before {
  content: "▸ ";
}

.user-item details[open] summary::before {
  content: "▾ ";
}

.user-session-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.user-session-item {
  background: #ffffff;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  padding: 10px;
}

.user-session-item strong,
.user-session-item span,
.user-session-item small {
  display: block;
}

.user-session-item span,
.user-session-item small {
  color: #60717d;
  font-size: 12px;
}

.token-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.token-pill {
  background: #e8f3ef;
  border-radius: 999px;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.muted-pill {
  background: #edf2f4;
  color: #60717d;
}

.rfid-sync-overview,
.rfid-token-card {
  border: 1px solid #dce5ea;
  border-left: 4px solid #60717d;
  border-radius: 8px;
  min-width: 0;
}

.rfid-sync-overview {
  background: #f8fbfc;
  display: grid;
  gap: 2px;
  padding: 9px 11px;
}

.rfid-sync-overview span,
.rfid-sync-overview small,
.rfid-token-card span,
.rfid-token-card small {
  color: #60717d;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.rfid-sync-overview strong,
.rfid-token-card strong {
  color: var(--portal-ink);
  overflow-wrap: anywhere;
}

.rfid-token-card {
  align-items: start;
  background: #ffffff;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1.2fr) minmax(130px, 0.8fr) auto;
  padding: 10px;
}

.rfid-token-card > div {
  min-width: 0;
}

.rfid-token-card strong,
.rfid-token-card span,
.rfid-token-card small {
  display: block;
}

.rfid-token-sync {
  align-self: stretch;
  background: #f8fbfc;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  padding: 8px;
}

.rfid-token-sync span {
  color: var(--portal-ink);
  font-weight: 800;
}

.rfid-token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.rfid-sync-overview.is-good,
.rfid-token-card.is-good {
  border-left-color: var(--brand-primary);
}

.rfid-sync-overview.is-warning,
.rfid-token-card.is-warning {
  border-left-color: #d08a00;
}

.rfid-sync-overview.is-critical,
.rfid-token-card.is-critical {
  border-left-color: #b3261e;
}

.rfid-sync-overview.is-info,
.rfid-token-card.is-info {
  border-left-color: #60717d;
}

.session-item {
  align-items: start;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}

.session-item.active {
  border-color: var(--brand-primary);
  box-shadow: inset 0 0 0 1px var(--brand-primary);
}

.session-item > div:last-child {
  text-align: right;
}

.charge-status {
  border-radius: 999px;
  background: #e8f3ef;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
}

.charge-status.offline {
  background: #fdecea;
  color: #9f1d16;
}

.session-detail {
  border-top: 1px solid #e5ebef;
  margin-top: 12px;
  padding-top: 12px;
}

.detail-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.detail-grid article {
  background: #f8fbfc;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  padding: 10px;
}

.detail-grid span {
  color: #60717d;
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.mini-item button,
.user-item summary {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.empty {
  padding: 14px 0;
}

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

  .energy-grid,
  .summary-band {
    grid-template-columns: 1fr 1fr;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .monthly-grid,
  .monthly-columns {
    grid-template-columns: 1fr 1fr;
  }

  .chart-grid,
  .chart-grid-wide {
    grid-template-columns: 1fr;
  }

  .customer-tools-grid,
  .analytics-table-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .energy-grid,
  .summary-band,
  .session-item,
  .monthly-grid,
  .monthly-columns,
  .control-overview {
    grid-template-columns: 1fr;
  }

  .chart-grid,
  .chart-grid-wide {
    grid-template-columns: 1fr;
  }

  .chart-box,
  .chart-box-wide {
    height: 240px;
  }

  .session-item > div:last-child {
    text-align: left;
  }

  .flow-panel { padding: 14px; }

  .flow-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .flow-legend {
    justify-content: flex-start;
  }

  .flow-sankey-chart {
    height: 310px;
  }

  .flow-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rfid-token-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .rfid-token-actions {
    justify-content: flex-start;
  }
}

.portal-nav button {
  align-items: center;
  background: var(--portal-surface);
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  color: var(--portal-muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
}

.portal-nav button:hover,
.portal-nav button:focus-visible,
.portal-nav button.active {
  background: var(--portal-surface-soft);
  border-color: var(--portal-line-strong);
  color: var(--portal-ink);
  outline: 0;
}

.portal-view-layout.view-focused {
  grid-template-columns: minmax(0, 1fr);
}

.portal-view-layout.view-focused .portal-grid {
  grid-template-columns: minmax(0, 1fr);
}

.portal-view-layout.view-overview {
  align-items: start;
  grid-template-columns: 300px minmax(0, 1fr);
}

.portal-view-layout.view-overview #customer-operations {
  grid-column: 1 / -1;
}

.portal-view-layout.view-overview #standorte {
  grid-column: 1;
}

.portal-view-layout.view-overview #dashboard {
  grid-column: 2;
}

.portal-view-layout.view-overview #energy-flow {
  min-height: 340px;
}

.portal-view-layout.view-overview .flow-sankey-chart {
  height: 350px;
}

.portal-view-layout.view-overview .monthly-panel,
.portal-view-layout.view-overview .analytics-panel,
.portal-view-layout.view-overview .portal-grid {
  grid-column: 1 / -1;
}

[data-view-panel][hidden],
[data-view-shell][hidden] {
  display: none !important;
}

.topbar .topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.top-session-line {
  color: var(--portal-muted);
  font-size: 13px;
  max-width: min(460px, 52vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-login .portal-nav,
body.is-login .view-scope-line,
body.is-login .object-context,
body.is-login .customer-workbench-board,
body.is-login .edova-system-spine,
body.is-login #refresh-button,
body.is-login #top-logout-button,
body.is-login #top-session-line,
body.is-login #logout-button {
  display: none !important;
}

body.is-login .layout {
  display: block;
  max-width: 560px;
}

body.is-login [data-view-panel],
body.is-login [data-view-shell] {
  display: none !important;
}

body.is-login #zugang {
  display: block !important;
}

body.is-authenticated #zugang {
  display: none !important;
}

@media (max-width: 1120px) {
  .portal-view-layout.view-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-view-layout.view-overview #standorte,
  .portal-view-layout.view-overview #dashboard {
    grid-column: auto;
  }
}

/* EDOVA customer interface refresh */
:root {
  --brand-primary: #132b31;
  --brand-primary-hover: #ec6608;
  --brand-accent: #e7662b;
  --portal-bg: #eef3f6;
  --portal-surface: #ffffff;
  --portal-surface-soft: #f7faf9;
  --portal-line: #d5e0e4;
  --portal-line-strong: #aebdc5;
  --portal-ink: #111827;
  --portal-muted: #5e6b75;
  --portal-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

body {
  background:
    linear-gradient(180deg, #e7eef2 0, #f8fbfa 360px, #eef3f6 100%),
    var(--portal-bg);
  color: var(--portal-ink);
  min-height: 100vh;
}

body::before {
  background:
    linear-gradient(90deg, rgba(236, 102, 8, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.05) 0 1px, transparent 1px 100%);
  background-size: 40px 40px;
  content: "";
  inset: 0;
  opacity: 0.34;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.topbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.96));
  border-bottom: 1px solid rgba(174, 189, 197, 0.8);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.07);
  padding: 18px 28px;
  position: relative;
  z-index: 30;
}

.topbar > div:first-child {
  gap: 2px 12px;
}

.brand-logo {
  background: #ffffff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
  padding: 5px;
}

.eyebrow {
  color: #ec6608;
  font-weight: 850;
  letter-spacing: 0;
}

h1 {
  color: var(--portal-ink);
  font-size: 26px;
  line-height: 1.1;
}

h2 {
  color: var(--portal-ink);
  font-size: 15px;
  font-weight: 850;
}

.top-session-line,
.session-line,
.status-line,
.site-item span,
.charge-point-item span,
.charge-point-item small,
.empty,
.summary-band span,
.metric span {
  color: var(--portal-muted);
}

.portal-nav {
  background: rgba(248, 251, 250, 0.94);
  border-bottom: 1px solid rgba(213, 224, 228, 0.9);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
  gap: 8px;
  padding: 10px 28px;
}

.portal-nav a,
.portal-nav button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #31414a;
  min-height: 38px;
}

.portal-nav a:hover,
.portal-nav a:focus-visible,
.portal-nav button:hover,
.portal-nav button:focus-visible {
  background: #eaf4f2;
  border-color: rgba(236, 102, 8, 0.28);
  color: #ec6608;
}

.portal-nav button.active {
  background: #132b31;
  border-color: #132b31;
  box-shadow: 0 8px 18px rgba(19, 43, 49, 0.18);
  color: #ffffff;
}

.topbar > div:first-child .eyebrow,
.topbar > div:first-child h1,
.topbar > div:first-child .top-customer-context {
  grid-column: 2;
}

.top-customer-context {
  color: #41535d;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  max-width: min(760px, 58vw);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-nav-label {
  align-items: center;
  color: #60717d;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  margin-right: 4px;
  min-height: 38px;
  text-transform: uppercase;
}

.view-scope-line {
  align-items: center;
  background: rgba(248, 251, 250, 0.98);
  border-bottom: 1px solid rgba(213, 224, 228, 0.9);
  color: #41535d;
  display: flex;
  gap: 10px;
  min-height: 42px;
  padding: 8px 28px;
}

.view-scope-line strong {
  background: #132b31;
  border-radius: 999px;
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0;
  padding: 6px 10px;
  text-transform: uppercase;
}

.view-scope-line span {
  font-size: 13px;
  font-weight: 750;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button {
  background: linear-gradient(180deg, #16333a, #10272d);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
}

button:hover {
  background: linear-gradient(180deg, #ec6608, #bc4e00);
}

.secondary-button,
.tiny-button,
.mini-item button,
.user-item summary {
  box-shadow: none;
}

.secondary-button,
.tiny-button {
  background: #ffffff;
  border: 1px solid var(--portal-line-strong);
  color: var(--portal-ink);
}

.secondary-button:hover,
.tiny-button:hover {
  background: #eef8f6;
  color: #0f5f59;
}

.layout {
  gap: 18px;
  max-width: 1500px;
  padding: 22px 28px 56px;
}

.panel,
.summary-band,
.flow-panel,
.chart-panel,
.tool-form,
.analytics-table-section {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(213, 224, 228, 0.96);
  border-radius: 8px;
  box-shadow: var(--portal-shadow);
}

.panel,
.flow-panel {
  padding: 18px;
}

.panel-head {
  border-bottom: 1px solid rgba(213, 224, 228, 0.86);
  gap: 12px;
  min-height: 40px;
}

input,
select {
  background: #fbfdfd;
  border-color: var(--portal-line-strong);
  border-radius: 8px;
  color: var(--portal-ink);
}

input:focus,
select:focus {
  border-color: #ec6608;
  box-shadow: 0 0 0 3px rgba(236, 102, 8, 0.12);
  outline: 0;
}

.summary-band {
  background: linear-gradient(120deg, #10262d, #123d38 68%, #174652);
  border: 0;
  color: #ffffff;
  padding: 18px;
}

.summary-band span {
  color: rgba(255, 255, 255, 0.68);
}

.summary-band strong {
  color: #ffffff;
  font-size: 20px;
}

.energy-grid {
  gap: 12px;
}

.metric,
.monthly-grid > div,
.control-metric,
.detail-grid article,
.config-summary article,
.runtime-device-row,
.control-asset-list article,
.billing-status-panel article,
.mini-item,
.session-item,
.user-item,
.charge-point-item,
.site-item {
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.metric {
  border-top: 3px solid #2563eb;
  box-shadow: none;
  padding: 14px;
}

.metric-pv-power {
  border-top-color: #d97706;
}

.metric-charging-power {
  border-top-color: #e7662b;
}

.metric-battery-power {
  border-top-color: #ec6608;
}

.metric strong,
.monthly-grid strong,
.control-metric strong,
.flow-kpis strong,
.mini-item strong,
.detail-grid strong {
  color: #10272d;
}

.flow-panel {
  background:
    linear-gradient(180deg, #ffffff, #f6faf9);
}

.flow-card-head {
  align-items: start;
  gap: 12px;
}

.flow-legend span {
  background: #f7faf9;
  border: 1px solid var(--portal-line);
  border-radius: 999px;
  padding: 4px 8px;
}

.flow-sankey-chart {
  background:
    linear-gradient(90deg, rgba(236, 102, 8, 0.05) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.04) 0 1px, transparent 1px 100%);
  background-size: 32px 32px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.flow-kpis span {
  background: #ffffff;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
}

.control-panel {
  background: linear-gradient(135deg, #10262d, #123d38 72%, #1b4b55);
  border: 0;
  color: #ffffff;
}

.control-panel h2,
.control-panel .control-overview strong,
.control-panel .control-metric strong {
  color: #ffffff;
}

.control-panel .panel-head {
  border-color: rgba(255, 255, 255, 0.16);
}

.control-panel .panel-head span,
.control-panel .control-overview span,
.control-panel .control-overview small,
.control-panel .control-metric span,
.control-panel .control-reason,
.control-panel .control-tags span,
.control-panel .control-asset-list span,
.control-panel .control-asset-list small {
  color: rgba(255, 255, 255, 0.72);
}

.control-overview > div,
.control-overview > article,
.control-metric,
.control-asset-list article {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
}

.control-tags span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.site-item:hover,
.site-item.active,
.charge-point-item:hover,
.charge-point-item.active,
.session-item.active {
  background: #edf8f6;
  border-color: rgba(236, 102, 8, 0.28);
  box-shadow: inset 3px 0 0 #ec6608;
}

.chart-box,
.chart-box-wide,
.analytics-table-wrap,
.billing-table-wrap,
.session-detail,
.config-summary,
.runtime-device-editor {
  border-radius: 8px;
}

@media (max-width: 720px) {
  .topbar {
    padding: 16px;
  }

  .top-customer-context {
    max-width: 100%;
    white-space: normal;
  }

  .portal-nav-label {
    width: 100%;
  }

  .portal-nav {
    padding: 10px 16px;
  }

  .view-scope-line {
    align-items: flex-start;
    display: grid;
    gap: 6px;
    padding: 10px 16px;
  }

  .view-scope-line span {
    white-space: normal;
  }

  .layout {
    padding: 16px 14px 40px;
  }

  h1 {
    font-size: 22px;
  }
}

/* EDOVA customer cloud refresh 2026-05-22 */
:root {
  --customer-bg: #eef3f5;
  --customer-surface-subtle: #f7fafb;
  --customer-navy: #102a3a;
  --customer-teal: #ec6608;
  --customer-blue: #2563eb;
  --customer-orange: #e7662b;
  --customer-line: #d5e0e6;
  --customer-shadow: 0 16px 34px rgba(16, 39, 45, 0.08);
}

body {
  background:
    linear-gradient(180deg, rgba(16, 42, 58, 0.07), transparent 240px),
    var(--customer-bg);
}

input,
select,
textarea {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--customer-line);
  padding: 18px 28px;
}

.portal-nav {
  background: rgba(255, 255, 255, 0.96);
  gap: 8px;
  padding-left: 28px;
  padding-right: 28px;
}

.portal-nav button {
  border-radius: 8px;
}

.layout {
  gap: 18px;
  grid-template-columns: minmax(280px, 0.28fr) minmax(0, 1fr);
  max-width: 1500px;
  padding: 22px 28px 56px;
}

.panel,
.summary-band,
.flow-panel,
.metric,
.monthly-grid > div,
.control-metric,
.detail-grid article,
.config-summary article,
.runtime-device-row,
.control-asset-list article,
.billing-status-panel article,
.mini-item,
.session-item,
.user-item,
.charge-point-item,
.site-item {
  border-radius: 8px;
}

.panel,
.summary-band,
.flow-panel {
  box-shadow: var(--customer-shadow);
}

.portal-view-layout.view-overview {
  grid-template-columns: minmax(280px, 0.28fr) minmax(0, 1fr);
}

.portal-view-layout.view-overview #customer-operations {
  grid-column: 1 / -1;
}

.portal-view-layout.view-overview #standorte {
  grid-column: 1;
  grid-row: span 4;
}

.portal-view-layout.view-overview #dashboard {
  grid-column: 2;
}

.portal-view-layout.view-overview .monthly-panel,
.portal-view-layout.view-overview .analytics-panel,
.portal-view-layout.view-overview .portal-grid {
  display: none;
}

.energy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  min-width: 0;
}

.metric strong,
.metric span,
.flow-kpis strong,
.flow-kpis span {
  overflow-wrap: anywhere;
}

.summary-band {
  background:
    linear-gradient(135deg, rgba(16, 42, 58, 0.98), rgba(236, 102, 8, 0.90)),
    var(--customer-navy);
}

.flow-panel {
  background: linear-gradient(180deg, #ffffff, var(--customer-surface-subtle));
}

.control-panel {
  background:
    linear-gradient(135deg, rgba(16, 42, 58, 0.98), rgba(37, 99, 235, 0.78)),
    var(--customer-navy);
  overflow: hidden;
}

.control-overview {
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.5fr);
}

.control-overview > div,
.control-overview > article,
.control-metric,
.control-asset-list article {
  min-width: 0;
}

.control-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.control-tags span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.portal-grid,
.customer-tools-grid,
.analytics-table-grid,
.chart-grid,
.chart-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.view-scope-line {
  background: rgba(247, 250, 251, 0.96);
  padding-left: 28px;
  padding-right: 28px;
}

@media (max-width: 1080px) {
  .layout,
  .portal-view-layout.view-overview,
  .control-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-view-layout.view-overview #standorte,
  .portal-view-layout.view-overview #dashboard {
    grid-column: auto;
    grid-row: auto;
  }

  .energy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    display: grid;
    gap: 12px;
    padding: 16px;
  }

  .topbar .topbar-actions {
    justify-content: flex-start;
  }

  .portal-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-left: 14px;
    padding-right: 14px;
  }

  .layout {
    padding: 16px 14px 42px;
  }

  .energy-grid,
  .control-grid,
  .portal-grid,
  .customer-tools-grid,
  .analytics-table-grid,
  .chart-grid,
  .chart-grid-wide {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* EDOVA compact customer header */
.topbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.topbar > div:first-child {
  min-width: 0;
}

.topbar .top-session-line {
  max-width: min(42vw, 560px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar .topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .topbar .top-session-line {
    flex-basis: 100%;
    max-width: 100%;
    white-space: normal;
  }
}

/* EDOVA restrained palette: keep customer cloud aligned with Admin. */
:root {
  --customer-navy: #102f35;
  --customer-teal: #ec6608;
  --customer-blue: #102f35;
  --customer-orange: #b8792a;
  --customer-bg: #eef3f5;
  --customer-line: #d8e2e7;
}

body {
  background: var(--customer-bg);
}

.topbar {
  background: #ffffff;
}

.topbar > div:first-child .eyebrow {
  color: var(--customer-teal);
}

.top-customer-context,
.top-session-line {
  color: #53636d;
}

button,
.portal-nav button.active,
.secondary-button,
.tiny-button,
.mini-item button {
  background: var(--customer-navy);
  border-color: var(--customer-navy);
  color: #ffffff;
}

button:hover,
.portal-nav button.active:hover,
.secondary-button:hover,
.tiny-button:hover,
.mini-item button:hover {
  background: #0c252b;
  border-color: #0c252b;
}

.portal-nav button {
  background: #ffffff;
  border-color: transparent;
  color: #30424d;
}

.portal-nav button:hover,
.portal-nav button:focus-visible {
  background: #f3f7f8;
  border-color: var(--customer-line);
  color: var(--customer-navy);
}

.summary-band,
.control-panel {
  background: linear-gradient(135deg, #0c252b, var(--customer-navy));
}

.metric,
.energy-grid .metric {
  border-top-color: var(--customer-line);
}

.energy-grid .metric:first-child,
.metric.active,
.site-item.active {
  border-color: var(--customer-teal);
}

/* EDOVA customer cockpit 2026-05-22: calmer operating surface. */
:root {
  --customer-work-bg: #eef3f5;
  --customer-work-ink: #10272d;
  --customer-work-muted: #5c6c75;
  --customer-work-line: #d5e0e5;
  --customer-work-surface: #ffffff;
  --customer-work-soft: #f7fafb;
  --customer-work-teal: #ec6608;
  --customer-work-navy: #102f35;
}

body {
  background: var(--customer-work-bg);
  color: var(--customer-work-ink);
  overflow-x: hidden;
}

.topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--customer-work-line);
  box-shadow: none;
  min-height: 78px;
  padding: 16px 28px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar h1 {
  color: var(--customer-work-ink);
  font-size: 22px;
  line-height: 1.1;
}

.brand-logo {
  border-radius: 8px;
  max-height: 42px;
}

.portal-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--customer-work-line);
  box-shadow: none;
  gap: 6px;
  padding: 10px 28px;
  position: sticky;
  top: 78px;
  z-index: 25;
}

.portal-nav-label {
  align-items: center;
  color: var(--customer-work-muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  margin-right: 4px;
  text-transform: uppercase;
}

.portal-nav button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 36px;
  padding: 0 12px;
}

.portal-nav button.active {
  background: var(--customer-work-navy);
  border-color: var(--customer-work-navy);
}

.view-scope-line {
  background: #f8fbfb;
  border-bottom: 1px solid var(--customer-work-line);
  color: var(--customer-work-muted);
  gap: 10px;
  min-height: 42px;
  padding: 8px 28px;
}

.view-scope-line strong {
  background: var(--customer-work-teal);
  border-radius: 8px;
  color: #ffffff;
  letter-spacing: 0;
  padding: 5px 9px;
}

.layout {
  gap: 16px;
  grid-template-columns: 310px minmax(0, 1fr);
  max-width: none;
  padding: 20px 28px 52px;
}

.portal-view-layout.view-overview {
  grid-template-columns: 310px minmax(0, 1fr);
}

.portal-view-layout.view-overview #standorte {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.portal-view-layout.view-overview #dashboard {
  grid-column: 2;
  min-width: 0;
}

.panel,
.summary-band,
.flow-panel,
.metric,
.chart-panel,
.control-overview > div,
.control-overview > article,
.site-item,
.charge-point-item,
.user-item,
.session-item {
  border: 1px solid var(--customer-work-line);
  border-radius: 8px;
  box-shadow: none;
}

.panel,
.flow-panel {
  background: var(--customer-work-surface);
  padding: 16px;
}

.summary-band {
  background: var(--customer-work-navy);
  color: #ffffff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1px;
}

.summary-band > div {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0;
  min-width: 0;
  padding: 14px;
}

.summary-band span {
  color: #bfd4d7;
}

.summary-band strong {
  color: #ffffff;
}

.energy-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.energy-grid .metric {
  background: #ffffff;
  padding: 14px;
}

.energy-grid .metric strong {
  font-size: 24px;
  line-height: 1.1;
}

.flow-panel {
  min-height: 380px;
}

.flow-sankey-chart {
  min-height: 260px;
}

.flow-kpis,
.monthly-grid {
  gap: 8px;
}

.control-panel {
  background: #ffffff;
  color: var(--customer-work-ink);
}

.control-panel .panel-head h2,
.control-panel strong {
  color: var(--customer-work-ink);
}

.control-panel span,
.control-panel small {
  color: var(--customer-work-muted);
}

.chargers-panel .panel-head h2 {
  color: var(--customer-work-ink);
}

.session-line,
.status-line {
  background: var(--customer-work-soft);
  border: 1px solid var(--customer-work-line);
  border-radius: 8px;
  color: var(--customer-work-muted);
}

body.is-login .topbar {
  position: static;
}

body.is-login .layout {
  display: block;
  max-width: 620px;
}

@media (max-width: 1080px) {
  .layout,
  .portal-view-layout.view-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-view-layout.view-overview #standorte,
  .portal-view-layout.view-overview #dashboard {
    grid-column: 1;
    grid-row: auto;
  }

  .energy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    display: grid;
    gap: 12px;
    padding: 14px;
    position: static;
  }

  .portal-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 14px;
    position: static;
  }

  .view-scope-line {
    padding: 8px 14px;
  }

  .layout {
    padding: 14px;
  }

  .summary-band,
  .energy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* EDOVA bright orange customer experience, aligned with proven V1 cards. */
:root {
  --brand-primary: #13293d;
  --brand-primary-hover: #0d1d2b;
  --brand-accent: #ec6608;
  --portal-bg: #eaf1f6;
  --portal-line: rgba(19, 41, 61, 0.10);
  --portal-shadow: 0 20px 56px rgba(19, 41, 61, 0.09);
}

body {
  background:
    linear-gradient(180deg, rgba(236, 102, 8, 0.06), transparent 240px),
    var(--portal-bg);
}

.topbar,
.portal-nav {
  background: rgba(255, 255, 255, 0.94);
}

.portal-nav button.active,
.portal-nav button[aria-current="page"],
.portal-nav button:hover,
.portal-nav button:focus-visible {
  border-color: rgba(236, 102, 8, 0.32);
  background: #fff4ec;
  color: #bc4e00;
}

button,
.primary,
.secondary-button {
  background: #13293d;
}

.primary,
button.primary {
  background: #ec6608;
}

.panel,
.summary-band,
.flow-panel,
.metric,
.charge-point-card {
  border-color: rgba(19, 41, 61, 0.08);
  box-shadow: var(--portal-shadow);
}

.metric-pv-power,
.metric-charging-power {
  border-top-color: #ec6608;
}

.flow-panel {
  background:
    linear-gradient(135deg, rgba(236, 102, 8, 0.08), transparent 42%),
    #ffffff;
}

.charge-point-card {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
}

.charge-point-card-top {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.charge-point-type {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 999px;
  background: #fff1e8;
  color: #ec6608;
  font-size: 20px;
  font-weight: 900;
}

.charge-point-title {
  min-width: 0;
}

.charge-point-title strong {
  display: block;
  color: #13293d;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.02;
}

.charge-point-title span {
  color: #667085;
  font-size: 20px;
}

.charge-point-live {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.charge-point-live strong {
  color: #13293d;
  font-size: clamp(46px, 7vw, 64px);
  font-weight: 900;
  line-height: 0.95;
}

.charge-status {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff1e8;
  color: #9f3f00;
  font-size: 18px;
  font-weight: 900;
}

.charge-status.offline {
  background: #fdecea;
  color: #9f1d16;
}

.charge-point-powerbar {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.charge-point-powerbar i {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, #13293d, #ec6608);
}

.charge-point-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.charge-point-meta span {
  color: #52606d;
  font-size: 18px;
  font-weight: 900;
}

.charge-battery {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 92px;
}

.charge-battery-shell {
  position: relative;
  display: block;
  width: 82px;
  height: 42px;
  padding: 5px;
  border: 4px solid #ec6608;
  border-radius: 13px;
  background: #ffffff;
}

.charge-battery-shell::after {
  content: "";
  position: absolute;
  top: 10px;
  right: -12px;
  width: 9px;
  height: 20px;
  border-radius: 0 7px 7px 0;
  background: #ec6608;
}

.charge-battery-shell i {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff8a2a, #ec6608);
}

.charge-battery strong {
  color: #ec6608;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.energy-device-section {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.energy-device-section:first-child {
  margin-top: 0;
}

.energy-device-section h3 {
  align-items: center;
  color: #13293d;
  display: flex;
  font-size: 17px;
  justify-content: space-between;
}

.energy-device-section h3 span {
  background: #fff1e8;
  border-radius: 999px;
  color: #9f3f00;
  font-size: 13px;
  padding: 4px 9px;
}

.energy-device-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 720px) {
  .charge-point-card {
    padding: 20px;
  }

  .charge-point-card-top {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .charge-point-type {
    width: 54px;
    height: 54px;
    font-size: 17px;
  }

  .charge-point-title strong {
    font-size: clamp(28px, 8vw, 40px);
  }

  .charge-point-title span {
    font-size: 17px;
  }

  .charge-point-live strong {
    font-size: clamp(44px, 13vw, 60px);
  }

  .charge-point-live {
    align-items: flex-start;
    flex-direction: column;
  }

  .charge-point-meta span,
  .charge-status {
    font-size: 16px;
  }

  .charge-battery-shell {
    width: 72px;
    height: 38px;
  }
}

/* EDOVA typography polish: keep the V1 clarity, remove excessive black weights. */
body {
  font-weight: 400;
}

h1,
h2,
h3,
.topbar-brand h1,
.panel-head h2,
.charge-point-title h3,
.charge-point-title strong,
.charge-point-live strong,
.charge-battery strong,
.summary-card strong {
  font-weight: 700 !important;
}

h4,
label,
button,
select,
.portal-nav button,
.portal-nav-label,
.topbar-brand .eyebrow,
.panel-head .eyebrow,
.charge-point-type,
.charge-status,
.charge-point-meta,
.charge-point-meta span,
.status-pill,
.muted-pill,
.table-wrap th {
  font-weight: 600 !important;
}

.object-context {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 10px auto 0;
  max-width: 1500px;
  padding: 0 28px;
  scroll-margin-top: 112px;
}

.context-step {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(213, 224, 228, 0.96);
  border-left: 4px solid #13293d;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
}

.context-step.is-missing {
  border-left-color: #ec6608;
  opacity: 0.78;
}

.context-step span,
.context-step small {
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.context-step span {
  text-transform: uppercase;
}

.context-step strong {
  color: var(--portal-ink);
  font-size: 14px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .object-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .object-context {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 14px;
  }
}

@media (min-width: 1081px) {
  .portal-view-layout.view-overview #customer-operations {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .portal-view-layout.view-overview #standorte {
    grid-column: 1;
    grid-row: 2 / span 2;
  }

  .portal-view-layout.view-overview #dashboard {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 1080px) {
  .portal-view-layout.view-overview #customer-operations,
  .portal-view-layout.view-overview #standorte,
  .portal-view-layout.view-overview #dashboard {
    grid-column: 1;
    grid-row: auto;
  }
}

.customer-ems-console {
  background: #ffffff;
  border: 1px solid var(--customer-work-line);
  border-radius: 8px;
  box-shadow: none;
  display: grid;
  gap: 0;
  min-width: 0;
  overflow: hidden;
}

.ems-console-head {
  align-items: stretch;
  background: #f8fafb;
  border-bottom: 1px solid var(--customer-work-line);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1.42fr);
  min-width: 0;
}

.ems-console-head > div:first-child {
  align-content: center;
  border-right: 1px solid var(--customer-work-line);
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
}

.ems-console-head h2 {
  color: var(--customer-work-ink);
  font-size: 16px;
  line-height: 1.15;
  margin: 0;
}

.ems-console-head span {
  color: var(--customer-work-muted);
  font-size: 12px;
  line-height: 1.3;
}

.customer-ems-console .summary-band {
  background: transparent;
  border: 0;
  color: var(--customer-work-ink);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

.customer-ems-console .summary-band > div {
  background: #ffffff;
  border-left: 1px solid var(--customer-work-line);
  border-radius: 0;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
}

.customer-ems-console .summary-band span {
  color: var(--customer-work-muted);
  font-size: 11px;
  font-weight: 800;
}

.customer-ems-console .summary-band strong {
  color: var(--customer-work-ink);
  font-size: 15px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-ems-console .energy-grid {
  background: #ffffff;
  border-bottom: 1px solid var(--customer-work-line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-ems-console .metric {
  background: #ffffff;
  border: 0;
  border-left: 1px solid var(--customer-work-line);
  border-radius: 0;
  border-top: 0;
  display: grid;
  gap: 3px;
  min-height: 66px;
  padding: 10px 12px;
}

.customer-ems-console .metric:first-child {
  border-left: 0;
}

.customer-ems-console .metric::before {
  background: #13293d;
  content: "";
  height: 3px;
  margin: -10px -12px 6px;
}

.customer-ems-console .metric-pv-power::before {
  background: #d97706;
}

.customer-ems-console .metric-charging-power::before {
  background: #ec6608;
}

.customer-ems-console .metric-battery-power::before {
  background: #185a7d;
}

.customer-ems-console .metric span {
  color: var(--customer-work-muted);
  font-size: 11px;
  font-weight: 800;
}

.customer-ems-console .metric strong {
  color: var(--customer-work-ink);
  font-size: 22px;
  line-height: 1.08;
  margin: 0;
  overflow-wrap: anywhere;
}

.ems-console-body {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(520px, 1.35fr) minmax(360px, 0.9fr);
  min-width: 0;
}

.ems-console-body .flow-panel,
.ems-console-body .panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.ems-console-body .flow-panel {
  border-right: 1px solid var(--customer-work-line);
  min-height: 430px;
  padding: 14px;
}

.ems-console-side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
}

.ems-console-side .panel {
  border-bottom: 1px solid var(--customer-work-line);
  min-width: 0;
  padding: 12px;
}

.ems-console-side .panel:last-child {
  border-bottom: 0;
}

.ems-console-side .panel-head {
  margin: -12px -12px 10px;
  min-height: 34px;
  padding: 9px 12px;
}

.ems-console-side .control-panel {
  background: #ffffff;
  color: var(--customer-work-ink);
}

.ems-console-side .control-panel h2,
.ems-console-side .control-panel .control-overview strong,
.ems-console-side .control-panel .control-metric strong {
  color: var(--customer-work-ink);
}

.ems-console-side .control-panel .panel-head span,
.ems-console-side .control-panel .control-overview span,
.ems-console-side .control-panel .control-overview small,
.ems-console-side .control-panel .control-metric span,
.ems-console-side .control-panel .control-reason,
.ems-console-side .control-panel .control-tags span,
.ems-console-side .control-panel .control-asset-list span,
.ems-console-side .control-panel .control-asset-list small {
  color: var(--customer-work-muted);
}

.ems-console-side .control-overview > div,
.ems-console-side .control-overview > article,
.ems-console-side .control-metric,
.ems-console-side .control-asset-list article {
  background: #f8fafb;
  border-color: var(--customer-work-line);
}

.ems-console-side .charge-point-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.ems-console-side .energy-device-section h3 {
  align-items: center;
  color: var(--customer-work-muted);
  display: flex;
  font-size: 11px;
  gap: 6px;
  justify-content: space-between;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.ems-console-side .energy-device-grid {
  display: grid;
  gap: 6px;
}

.ems-console-side .charge-point-item {
  border-radius: 4px;
  padding: 9px;
}

@media (max-width: 1280px) {
  .ems-console-head,
  .ems-console-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .ems-console-head > div:first-child,
  .ems-console-body .flow-panel {
    border-right: 0;
  }

  .customer-ems-console .summary-band > div:first-child {
    border-left: 0;
  }
}

@media (max-width: 780px) {
  .customer-ems-console .summary-band,
  .customer-ems-console .energy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-ems-console .summary-band > div,
  .customer-ems-console .metric {
    border-left: 0;
    border-top: 1px solid var(--customer-work-line);
  }
}

/* EDOVA no-green contrast guard. Keep this block last. */
:root {
  --brand-primary: #ec6608;
  --brand-primary-hover: #c95000;
  --customer-teal: #ec6608;
  --customer-work-teal: #ec6608;
}

.topbar-brand .eyebrow,
.panel-head .eyebrow,
.portal-nav-label,
.summary-card span,
.flow-kpi span {
  color: #ec6608 !important;
}

.view-scope-line strong,
.scope-line strong,
.customer-scope-line strong {
  background: #ec6608 !important;
  border-color: #ec6608 !important;
  color: #ffffff !important;
}

.portal-nav button.active,
.portal-nav button[aria-current="page"],
.portal-nav button:hover,
.portal-nav button:focus-visible {
  background: #fff4ec !important;
  border-color: #ffd1b4 !important;
  color: #bc4e00 !important;
}

.charge-status,
.status-pill.ok,
.muted-pill.ok {
  background: #fff1e8 !important;
  border-color: #ffd1b4 !important;
  color: #9f3f00 !important;
}

.charge-point-powerbar i,
.flow-progress i {
  background: linear-gradient(90deg, #13293d, #ec6608) !important;
}

.legal-footer {
  align-items: center;
  color: var(--customer-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 10px 16px;
  justify-content: center;
  padding: 18px 24px 28px;
}

.legal-footer a {
  color: var(--customer-ink);
  font-weight: 700;
  text-decoration: none;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: var(--brand-primary);
  text-decoration: underline;
}

@media (max-width: 1120px) {
  .customer-operations-panel,
  .customer-regulator-story {
    grid-template-columns: minmax(0, 1fr);
  }

  .operations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .operations-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-mode-notes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Customer identity workspace: list-first, compact self-service surface. */
.customer-identity-workspace {
  overflow: hidden;
}

.customer-identity-workspace .customer-workspace-head {
  margin: -14px -14px 0;
  padding: 12px 14px;
}

.customer-identity-layout {
  background: var(--customer-work-line);
  border-top: 1px solid var(--customer-work-line);
  display: grid;
  gap: 1px;
  grid-template-columns: minmax(520px, 1fr) minmax(360px, 0.42fr);
  margin: 0 -14px -14px;
  min-width: 0;
}

.customer-list-rail,
.customer-form-rail {
  background: #ffffff;
  min-width: 0;
  padding: 12px;
}

.customer-list-rail {
  display: grid;
  gap: 10px;
  grid-template-rows: auto minmax(240px, 1fr);
}

.customer-list-toolbar {
  border-bottom: 1px solid var(--customer-work-line);
  padding-bottom: 10px;
}

.customer-list-toolbar .compact-field {
  margin: 0;
}

.customer-user-list {
  background: var(--customer-work-line);
  border: 1px solid var(--customer-work-line);
  gap: 1px;
  max-height: 580px;
  overflow: auto;
}

.customer-user-list > .empty {
  background: #ffffff;
  margin: 0;
  min-height: 220px;
  padding: 14px;
}

.customer-identity-workspace .user-item {
  background: #ffffff;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  display: grid;
  gap: 8px;
  padding: 9px 10px;
}

.customer-identity-workspace .user-item.is-inactive {
  border-left-color: #8a98a5;
}

.customer-identity-workspace .user-item-head {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto;
}

.customer-identity-workspace .customer-user-main {
  min-width: 0;
}

.customer-identity-workspace .customer-user-main > span {
  color: var(--customer-work-muted);
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-identity-workspace .customer-user-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.customer-identity-workspace .customer-user-kpis span,
.customer-identity-workspace .token-pill {
  border: 1px solid var(--customer-work-line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
}

.customer-identity-workspace .inline-actions {
  justify-content: flex-end;
}

.customer-identity-workspace .inline-actions button,
.customer-identity-workspace .rfid-token-actions button {
  min-height: 28px;
  padding: 0 9px;
}

.customer-identity-workspace .rfid-sync-overview {
  border-radius: 0;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(150px, 0.55fr) minmax(220px, 1fr) minmax(220px, 1fr);
  padding: 7px 8px;
}

.customer-identity-workspace .token-row {
  gap: 1px;
  grid-template-columns: minmax(0, 1fr);
}

.customer-identity-workspace .rfid-token-card {
  border-radius: 0;
  gap: 8px;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.55fr) auto;
  padding: 8px;
}

.customer-identity-workspace details:not(.customer-tool-section) {
  border-top-color: var(--customer-work-line);
  margin-top: 2px;
  padding-top: 6px;
}

.customer-identity-workspace details:not(.customer-tool-section) summary button {
  min-height: 28px;
}

.customer-form-rail {
  display: grid;
  align-content: start;
  gap: 8px;
}

.customer-tool-section {
  background: #ffffff;
  border: 1px solid var(--customer-work-line);
  border-radius: 0;
  min-width: 0;
}

.customer-tool-section summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
  padding: 9px 10px;
}

.customer-tool-section summary::-webkit-details-marker {
  display: none;
}

.customer-tool-section summary::before {
  content: "▸ ";
}

.customer-tool-section[open] summary::before {
  content: "▾ ";
}

.customer-tool-section .tool-form {
  background: #f9fbfc;
  border: 0;
  border-top: 1px solid var(--customer-work-line);
  border-radius: 0;
  box-shadow: none;
  gap: 8px;
  padding: 10px;
}

.customer-tool-section .tool-form h3 {
  margin: 0;
}

.customer-rfid-flow {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.customer-rfid-flow li {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--customer-work-line);
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 7px 8px;
}

.customer-rfid-flow span {
  align-items: center;
  background: #eaf3f6;
  border: 1px solid #c7dfe7;
  border-radius: 999px;
  color: #0f4f61;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  line-height: 1;
  width: 22px;
}

.customer-rfid-flow strong {
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.customer-rfid-flow small {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.customer-rfid-batch {
  background: #ffffff;
  border: 1px solid var(--customer-work-line);
  display: grid;
  gap: 8px;
  padding: 8px;
}

.customer-rfid-batch > div:first-child {
  display: grid;
  gap: 2px;
}

.customer-rfid-batch strong,
.customer-rfid-batch span,
.customer-rfid-batch label,
.customer-rfid-batch p {
  overflow-wrap: anywhere;
}

.customer-rfid-batch > div:first-child span,
.customer-rfid-batch .form-hint {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.customer-rfid-batch label {
  display: grid;
  gap: 5px;
}

.customer-rfid-batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-rfid-batch-actions button {
  min-height: 32px;
}

.customer-rfid-batch-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.customer-rfid-batch-list li {
  align-items: center;
  background: #f9fbfc;
  border: 1px solid var(--customer-work-line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 6px 7px;
}

.customer-tool-section .form-grid {
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-tool-section .form-grid label,
.customer-tool-section .customer-charge-point-picker {
  background: #ffffff;
  border: 1px solid var(--customer-work-line);
  display: grid;
  gap: 5px;
  padding: 7px 8px;
}

.customer-tool-section input,
.customer-tool-section select {
  min-height: 32px;
}

.customer-tool-section .form-actions {
  margin-top: 0;
}

.customer-tool-section .form-actions button,
.customer-tool-section > .tool-form > button {
  min-height: 34px;
}

@media (max-width: 1180px) {
  .customer-identity-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-user-list {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .customer-identity-workspace .user-item-head,
  .customer-identity-workspace .rfid-token-card,
  .customer-identity-workspace .rfid-sync-overview,
  .customer-rfid-flow,
  .customer-rfid-batch-list li,
  .customer-tool-section .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-rfid-batch-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Customer rules workspace 2026-06-04: dense self-service console. */
.customer-selfservice-console {
  overflow: hidden;
}

.customer-selfservice-head {
  align-items: stretch;
  background: #ffffff;
  border-bottom: 1px solid var(--customer-work-line);
  display: grid;
  gap: 1px;
  grid-template-columns: minmax(0, 1fr) 260px;
  margin: -14px -14px 0;
}

.customer-selfservice-head > div {
  background: #ffffff;
  min-width: 0;
  padding: 12px 14px;
}

.customer-selfservice-head h2 {
  font-size: 22px;
  line-height: 1.12;
  margin: 0;
}

.customer-selfservice-head span {
  color: var(--customer-work-muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 5px;
}

.customer-selfservice-head > div:last-child {
  align-content: center;
  border-left: 1px solid var(--customer-work-line);
  display: grid;
  gap: 4px;
}

.customer-selfservice-head > div:last-child strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.customer-selfservice-summary {
  background: var(--customer-work-line);
  border-bottom: 1px solid var(--customer-work-line);
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 -14px;
}

.customer-selfservice-summary article {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  padding: 9px 12px;
}

.customer-selfservice-proof {
  background: #f8fafb;
  border-bottom: 1px solid var(--customer-work-line);
  margin: 0 -14px;
}

.customer-selfservice-proof summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  list-style: none;
  padding: 8px 12px;
}

.customer-selfservice-proof summary::-webkit-details-marker {
  display: none;
}

.customer-selfservice-proof summary span {
  color: var(--customer-work-ink);
  font-size: 13px;
  font-weight: 600;
}

.customer-selfservice-proof summary strong {
  color: var(--customer-work-muted);
  font-size: 12px;
  font-weight: 500;
}

.customer-selfservice-proof summary::after {
  color: var(--customer-work-muted);
  content: "Aufklappen";
  font-size: 11px;
  font-weight: 600;
  justify-self: end;
}

.customer-selfservice-proof[open] summary {
  border-bottom: 1px solid var(--customer-work-line);
}

.customer-selfservice-proof[open] summary::after {
  content: "Schließen";
}

.customer-selfservice-proof .customer-selfservice-summary {
  border-bottom: 0;
  margin: 0;
}

.customer-selfservice-form {
  gap: 0;
}

.customer-selfservice-body {
  background: var(--customer-work-line);
  display: grid;
  gap: 1px;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.38fr);
  margin: 0 -14px;
}

.customer-selfservice-main,
.customer-selfservice-side {
  background: #ffffff;
  min-width: 0;
  padding: 12px;
}

.customer-selfservice-main {
  display: grid;
  gap: 8px;
}

.customer-selfservice-side {
  display: grid;
  gap: 8px;
  align-content: start;
}

.customer-config-simple,
.customer-device-console,
.customer-config-advanced,
.customer-runtime-devices {
  background: #ffffff;
  border: 1px solid var(--customer-work-line);
  border-radius: 0;
  box-shadow: none;
  gap: 0;
  padding: 0;
}

.customer-config-simple > h3,
.customer-runtime-devices summary,
.customer-device-details summary,
.customer-comfort-disclosure summary,
.customer-config-advanced summary {
  border-bottom: 1px solid var(--customer-work-line);
  color: var(--customer-work-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  list-style: none;
  padding: 9px 10px;
}

.customer-config-simple > h3,
.customer-runtime-devices > h3 {
  cursor: default;
}

.customer-device-details summary::-webkit-details-marker,
.customer-comfort-disclosure summary::-webkit-details-marker,
.customer-runtime-devices summary::-webkit-details-marker,
.customer-config-advanced summary::-webkit-details-marker {
  display: none;
}

.customer-device-details summary::before,
.customer-comfort-disclosure summary::before,
.customer-runtime-devices summary::before,
.customer-config-advanced summary::before {
  content: "▸ ";
}

.customer-device-details[open] summary::before,
.customer-comfort-disclosure[open] summary::before,
.customer-runtime-devices-details[open] summary::before,
.customer-config-advanced details[open] summary::before {
  content: "▾ ";
}

.customer-config-simple .form-grid,
.customer-comfort-disclosure .form-grid,
.customer-device-create .form-grid,
.customer-config-advanced .form-grid {
  align-items: start;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.customer-config-simple .form-grid label,
.customer-config-simple .schedule-day-field,
.customer-comfort-disclosure .form-grid label,
.customer-comfort-disclosure .schedule-day-field,
.customer-device-create .form-grid label,
.customer-config-advanced .form-grid label {
  align-content: start;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--customer-work-line);
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 7px 8px;
}

.customer-config-simple input,
.customer-config-simple select,
.customer-comfort-disclosure input,
.customer-comfort-disclosure select,
.customer-device-create input,
.customer-device-create select,
.customer-config-advanced input {
  height: 32px;
  min-height: 32px;
  padding: 5px 8px;
}

.customer-config-simple input[type="time"],
.customer-comfort-disclosure input[type="time"] {
  align-self: start;
  max-width: 150px;
}

.customer-config-simple .checkbox-list,
.customer-comfort-disclosure .checkbox-list {
  gap: 5px;
}

.customer-config-simple .checkbox-pill,
.customer-comfort-disclosure .checkbox-pill {
  border-radius: 0;
  gap: 5px;
  min-height: 28px;
  padding: 4px 7px;
}

.customer-config-simple .field-label,
.customer-comfort-disclosure .field-label {
  margin-bottom: 2px;
}

.customer-comfort-disclosure {
  border-top: 1px solid var(--customer-work-line);
}

.customer-mode-notes {
  border-top: 1px solid var(--customer-work-line);
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.customer-mode-notes article {
  border: 0;
  border-left: 3px solid var(--customer-work-teal);
  border-radius: 0;
  padding: 8px 10px;
}

.customer-device-create {
  display: grid;
  gap: 1px;
}

.customer-device-create h4 {
  background: #f7fafb;
  border-bottom: 1px solid var(--customer-work-line);
  color: var(--customer-work-muted);
  font-size: 12px;
  font-weight: 900;
  margin: 0;
  padding: 8px 10px;
  text-transform: uppercase;
}

.customer-device-create .runtime-device-note {
  background: #ffffff;
  border-top: 1px solid var(--customer-work-line);
  color: var(--customer-work-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  padding: 8px 10px;
}

.customer-device-create .runtime-catalog-summary {
  border-top: 1px solid var(--customer-work-line);
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.customer-device-create .runtime-catalog-summary article {
  border: 0;
  border-radius: 0;
  padding: 8px 10px;
}

.customer-config-advanced details {
  gap: 0;
}

.customer-config-advanced .form-grid {
  grid-template-columns: minmax(0, 1fr);
}

.customer-config-advanced .readonly-runtime-field small {
  font-size: 11px;
}

.customer-runtime-devices .runtime-device-editor {
  background: var(--customer-work-line);
  gap: 1px;
  max-height: 360px;
  overflow: auto;
}

.customer-runtime-devices .runtime-device-row {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  gap: 7px;
  padding: 8px 10px;
}

.customer-runtime-devices .runtime-device-fields {
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-selfservice-actions {
  background: #ffffff;
  border-top: 1px solid var(--customer-work-line);
  justify-content: flex-end;
  margin: 0 -14px -14px;
  padding: 10px 12px;
}

.customer-selfservice-actions button {
  min-height: 36px;
  padding: 0 14px;
}

@media (max-width: 1180px) {
  .customer-selfservice-head,
  .customer-selfservice-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-selfservice-head > div:last-child {
    border-left: 0;
    border-top: 1px solid var(--customer-work-line);
  }

  .customer-selfservice-summary,
  .customer-config-simple .form-grid,
  .customer-comfort-disclosure .form-grid,
  .customer-device-create .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .customer-selfservice-summary,
  .customer-selfservice-proof summary,
  .customer-config-simple .form-grid,
  .customer-comfort-disclosure .form-grid,
  .customer-device-create .form-grid,
  .customer-mode-notes,
  .customer-device-create .runtime-catalog-summary,
  .customer-runtime-devices .runtime-device-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-selfservice-proof summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .customer-selfservice-proof summary strong {
    grid-column: 1 / -1;
  }

  .customer-selfservice-proof summary::after {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}

/* EDOVA customer operating console 2026-06-04: final customer-specific pass. */
:root {
  --customer-console-bg: #eef3f5;
  --customer-console-surface: #ffffff;
  --customer-console-soft: #f7fafb;
  --customer-console-line: #d6e0e5;
  --customer-console-line-strong: #aebdc5;
  --customer-console-ink: #102330;
  --customer-console-muted: #5d6d77;
  --customer-console-blue: #12324a;
  --customer-console-orange: #ec6608;
  --customer-console-radius: 6px;
}

body.edova-customer-portal {
  background: var(--customer-console-bg);
  color: var(--customer-console-ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

body.edova-customer-portal::before {
  display: none;
}

body.edova-customer-portal .topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--customer-console-line);
  box-shadow: none;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 10px 18px;
  position: sticky;
  top: 0;
  z-index: 40;
}

body.edova-customer-portal .topbar > div:first-child {
  align-items: center;
  display: grid;
  gap: 1px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
}

body.edova-customer-portal .brand-logo {
  border: 1px solid var(--customer-console-line);
  border-radius: 4px;
  box-shadow: none;
  max-height: 36px;
  max-width: 130px;
  padding: 3px;
}

body.edova-customer-portal .topbar h1 {
  color: var(--customer-console-ink);
  font-size: 22px;
  line-height: 1.08;
}

body.edova-customer-portal .topbar .eyebrow,
body.edova-customer-portal .portal-nav-label,
body.edova-customer-portal .panel-head .eyebrow {
  color: var(--customer-console-orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

body.edova-customer-portal .top-customer-context,
body.edova-customer-portal .top-session-line {
  color: var(--customer-console-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  max-width: min(760px, 58vw);
}

body.edova-customer-portal .topbar-actions {
  gap: 6px;
}

body.edova-customer-portal button,
body.edova-customer-portal .primary,
body.edova-customer-portal button.primary {
  background: var(--customer-console-blue);
  border: 1px solid var(--customer-console-blue);
  border-radius: var(--customer-console-radius);
  box-shadow: none;
  color: #ffffff;
  min-height: 32px;
  padding: 5px 10px;
}

body.edova-customer-portal button:hover,
body.edova-customer-portal button:focus-visible {
  background: #0d2638;
  border-color: #0d2638;
}

body.edova-customer-portal .secondary-button,
body.edova-customer-portal .tiny-button {
  background: #ffffff;
  border-color: var(--customer-console-line-strong);
  color: var(--customer-console-ink);
}

body.edova-customer-portal > .portal-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--customer-console-line);
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 7px 18px;
  position: sticky;
  top: 64px;
  z-index: 35;
}

body.edova-customer-portal > .portal-nav button {
  background: #ffffff;
  border: 1px solid transparent;
  color: #344955;
  min-height: 30px;
  padding: 5px 9px;
}

body.edova-customer-portal > .portal-nav button.active,
body.edova-customer-portal > .portal-nav button[aria-current="page"],
body.edova-customer-portal > .portal-nav button:hover,
body.edova-customer-portal > .portal-nav button:focus-visible {
  background: #fff4ec;
  border-color: #ffd1b4;
  color: #9f3f00;
}

body.edova-customer-portal .view-scope-line,
body.edova-customer-portal .object-context {
  margin: 8px 18px 0;
}

body.edova-customer-portal .view-scope-line {
  background: #ffffff;
  border: 1px solid var(--customer-console-line);
  border-radius: var(--customer-console-radius);
  display: flex;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
}

body.edova-customer-portal .view-scope-line strong {
  background: var(--customer-console-orange);
  border-radius: 4px;
  color: #ffffff;
  font-size: 10px;
  padding: 4px 7px;
}

body.edova-customer-portal .view-scope-line span {
  color: var(--customer-console-muted);
  font-size: 12px;
  font-weight: 650;
}

body.edova-customer-portal .object-context {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: none;
  padding: 0;
}

body.edova-customer-portal .context-step {
  background: #ffffff;
  border: 1px solid var(--customer-console-line);
  border-left: 3px solid var(--customer-console-blue);
  border-radius: 0;
  gap: 2px;
  min-height: 48px;
  padding: 7px 9px;
}

body.edova-customer-portal .context-step.is-missing {
  border-left-color: var(--customer-console-orange);
}

body.edova-customer-portal .context-step strong {
  color: var(--customer-console-ink);
  font-size: 12px;
}

body.edova-customer-portal .context-step span,
body.edova-customer-portal .context-step small {
  color: var(--customer-console-muted);
  font-size: 10px;
}

body.edova-customer-portal .customer-workbench-board,
body.edova-customer-portal .edova-customer-system-spine {
  background: #ffffff;
  border: 1px solid var(--customer-console-line);
  border-radius: var(--customer-console-radius);
  box-shadow: none;
  margin: 8px 18px 0;
  overflow: hidden;
  padding: 0;
}

body.edova-customer-portal .customer-workbench-board {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(210px, 0.46fr) minmax(260px, 0.56fr) minmax(520px, 1.35fr);
}

body.edova-customer-portal .customer-workbench-board .workbench-lead,
body.edova-customer-portal .customer-workbench-board .operations-process,
body.edova-customer-portal .customer-workbench-board .operations-actions {
  background: #ffffff;
  border-right: 1px solid var(--customer-console-line);
  min-width: 0;
}

body.edova-customer-portal .customer-workbench-board .workbench-lead {
  align-content: center;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

body.edova-customer-portal .customer-workbench-board .workbench-lead h2,
body.edova-customer-portal .system-spine-head h2 {
  font-size: 14px;
  line-height: 1.15;
}

body.edova-customer-portal .customer-workbench-board .workbench-lead span,
body.edova-customer-portal .system-spine-head span {
  color: var(--customer-console-muted);
  font-size: 11px;
  line-height: 1.25;
}

body.edova-customer-portal .customer-workbench-board .operations-process {
  align-content: stretch;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0;
}

body.edova-customer-portal .customer-workbench-board .operations-process span {
  align-content: center;
  background: var(--customer-console-soft);
  color: var(--customer-console-muted);
  display: grid;
  font-size: 10px;
  gap: 3px;
  line-height: 1.15;
  min-height: 64px;
  padding: 7px;
  text-transform: uppercase;
}

body.edova-customer-portal .customer-workbench-board .operations-process strong {
  color: var(--customer-console-orange);
  font-size: 13px;
}

body.edova-customer-portal .customer-workbench-board .operations-actions {
  border-right: 0;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0;
}

body.edova-customer-portal .customer-workbench-board .operations-actions button {
  background: #ffffff;
  border: 0;
  border-left: 1px solid var(--customer-console-line);
  border-radius: 0;
  color: var(--customer-console-ink);
  display: grid;
  gap: 2px;
  justify-items: start;
  min-height: 64px;
  padding: 8px 9px;
  text-align: left;
}

body.edova-customer-portal .customer-workbench-board .operations-actions button:hover,
body.edova-customer-portal .customer-workbench-board .operations-actions button:focus-visible,
body.edova-customer-portal .customer-workbench-board .operations-actions button.active {
  background: #fff7f0;
  color: #9f3f00;
}

body.edova-customer-portal .customer-workbench-board .operations-actions button span {
  color: var(--customer-console-orange);
  font-size: 10px;
  font-weight: 800;
}

body.edova-customer-portal .customer-workbench-board .operations-actions button strong {
  color: inherit;
  font-size: 12px;
  line-height: 1.15;
}

body.edova-customer-portal .customer-workbench-board .operations-actions button small {
  color: var(--customer-console-muted);
  font-size: 10px;
  line-height: 1.2;
}

body.edova-customer-portal .edova-customer-system-spine {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1.58fr);
}

body.edova-customer-portal .system-spine-head {
  background: var(--customer-console-soft);
  border-right: 1px solid var(--customer-console-line);
  display: grid;
  gap: 3px;
  padding: 9px 12px;
}

body.edova-customer-portal .system-spine-track {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.edova-customer-portal .system-spine-node {
  background: #ffffff;
  border-left: 1px solid var(--customer-console-line);
  display: grid;
  gap: 2px;
  min-height: 52px;
  padding: 8px 9px;
}

body.edova-customer-portal .system-spine-node.is-owner {
  background: #fff8f2;
  box-shadow: inset 3px 0 0 var(--customer-console-orange);
}

body.edova-customer-portal .system-spine-node strong {
  color: var(--customer-console-ink);
  font-size: 12px;
}

body.edova-customer-portal .system-spine-node small {
  color: var(--customer-console-muted);
  font-size: 10px;
  line-height: 1.2;
}

body.edova-customer-portal .layout {
  display: grid;
  gap: 10px;
  grid-template-columns: 300px minmax(0, 1fr);
  margin: 10px 18px;
  max-width: none;
  padding: 0 0 12px;
}

body.edova-customer-portal .portal-view-layout.view-overview {
  grid-template-columns: 300px minmax(0, 1fr);
}

body.edova-customer-portal .portal-view-layout.view-overview #customer-operations {
  grid-column: 1 / -1;
  grid-row: 1;
}

body.edova-customer-portal .portal-view-layout.view-overview #standorte {
  grid-column: 1;
  grid-row: 2;
}

body.edova-customer-portal .portal-view-layout.view-overview #dashboard {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

body.edova-customer-portal .panel,
body.edova-customer-portal .flow-panel,
body.edova-customer-portal .chart-panel,
body.edova-customer-portal .tool-form,
body.edova-customer-portal .customer-ems-console,
body.edova-customer-portal .customer-operations-panel {
  background: var(--customer-console-surface);
  border: 1px solid var(--customer-console-line);
  border-radius: var(--customer-console-radius);
  box-shadow: none;
  color: var(--customer-console-ink);
  padding: 10px;
}

body.edova-customer-portal .panel-head {
  border-bottom: 1px solid var(--customer-console-line);
  margin: -10px -10px 9px;
  min-height: 34px;
  padding: 8px 10px;
}

body.edova-customer-portal .panel-head h2,
body.edova-customer-portal .panel h2,
body.edova-customer-portal .flow-panel h2 {
  color: var(--customer-console-ink);
  font-size: 14px;
  line-height: 1.2;
}

body.edova-customer-portal #customer-operations {
  align-items: stretch;
  display: grid;
  gap: 1px;
  grid-template-columns: minmax(240px, 0.46fr) minmax(0, 1.2fr) minmax(260px, 0.48fr);
  padding: 0;
}

body.edova-customer-portal #customer-operations .operations-copy,
body.edova-customer-portal #customer-operations .operations-grid,
body.edova-customer-portal #customer-operations .operations-action {
  background: #ffffff;
  min-width: 0;
  padding: 10px 12px;
}

body.edova-customer-portal #customer-operations .operations-copy {
  border-right: 1px solid var(--customer-console-line);
}

body.edova-customer-portal #customer-operations .operations-copy h2 {
  font-size: 16px;
}

body.edova-customer-portal #customer-operations .operations-copy span {
  color: var(--customer-console-muted);
  font-size: 12px;
}

body.edova-customer-portal .customer-privacy-line {
  border-top: 1px solid var(--customer-console-line);
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 210px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
}

body.edova-customer-portal .customer-privacy-line > summary {
  align-items: center;
  background: #f7faf9;
  border-right: 1px solid var(--customer-console-line);
  cursor: pointer;
  display: grid;
  gap: 3px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  list-style: none;
  min-height: 58px;
  padding: 9px 12px;
}

body.edova-customer-portal .customer-privacy-line > summary::-webkit-details-marker {
  display: none;
}

body.edova-customer-portal .customer-privacy-line > summary::after {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--customer-console-line);
  border-radius: 999px;
  color: var(--customer-console-muted);
  content: "Öffnen";
  display: inline-flex;
  font-size: 10px;
  font-weight: 600;
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-content: center;
  padding: 3px 7px;
}

body.edova-customer-portal .customer-privacy-line[open] > summary::after {
  content: "Schließen";
}

body.edova-customer-portal .customer-privacy-line > summary span,
body.edova-customer-portal .customer-privacy-line article span,
body.edova-customer-portal .customer-privacy-line article small {
  color: var(--customer-console-muted);
  font-size: 10px;
  line-height: 1.2;
}

body.edova-customer-portal .customer-privacy-line > summary strong {
  color: var(--customer-console-ink);
  font-size: 13px;
  line-height: 1.2;
}

body.edova-customer-portal .customer-privacy-line > summary small {
  color: var(--customer-console-muted);
  font-size: 10px;
  grid-column: 1;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.edova-customer-portal .customer-privacy-line > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.edova-customer-portal .customer-privacy-line:not([open]) > div {
  display: none !important;
}

body.edova-customer-portal .customer-privacy-line article {
  background: #ffffff;
  border-right: 1px solid var(--customer-console-line);
  display: grid;
  gap: 2px;
  min-height: 60px;
  min-width: 0;
  padding: 8px 9px;
}

body.edova-customer-portal .customer-privacy-line article:last-child {
  border-right: 0;
}

body.edova-customer-portal .customer-privacy-line article strong {
  color: var(--customer-console-ink);
  font-size: 12px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.edova-customer-portal .customer-privacy-line article.is-good {
  box-shadow: inset 0 3px 0 #0f766e;
}

body.edova-customer-portal .customer-privacy-line article.is-warning {
  box-shadow: inset 0 3px 0 var(--customer-console-orange);
}

body.edova-customer-portal .customer-privacy-line article.is-info {
  box-shadow: inset 0 3px 0 #567;
}

body.edova-customer-portal #customer-operations .operations-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
}

body.edova-customer-portal #customer-operations .operations-grid article {
  background: #ffffff;
  border-left: 1px solid var(--customer-console-line);
  border-radius: 0;
  display: grid;
  gap: 3px;
  min-height: 68px;
  padding: 9px 10px;
}

body.edova-customer-portal #customer-operations .operations-grid span,
body.edova-customer-portal #customer-operations .operations-grid small,
body.edova-customer-portal #customer-operations .operations-action span {
  color: var(--customer-console-muted);
  font-size: 11px;
  line-height: 1.22;
}

body.edova-customer-portal #customer-operations .operations-grid strong {
  color: var(--customer-console-ink);
  font-size: 16px;
}

body.edova-customer-portal #customer-operations .operations-action {
  border-left: 1px solid var(--customer-console-line);
  display: grid;
  gap: 4px;
}

body.edova-customer-portal #customer-operations .operations-action strong {
  color: var(--customer-console-ink);
  font-size: 14px;
}

body.edova-customer-portal #standorte .site-list {
  display: grid;
  gap: 1px;
  max-height: calc(100vh - 365px);
  overflow: auto;
}

body.edova-customer-portal .site-item,
body.edova-customer-portal .charge-point-item,
body.edova-customer-portal .user-item,
body.edova-customer-portal .session-item,
body.edova-customer-portal .mini-item,
body.edova-customer-portal .billing-status-panel article,
body.edova-customer-portal .monthly-grid > div,
body.edova-customer-portal .config-summary article,
body.edova-customer-portal .runtime-device-row {
  background: #ffffff;
  border: 1px solid var(--customer-console-line);
  border-radius: 4px;
  box-shadow: none;
}

body.edova-customer-portal .customer-ems-console {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

body.edova-customer-portal .ems-console-head {
  background: #ffffff;
  border-bottom: 1px solid var(--customer-console-line);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(250px, 0.5fr) minmax(0, 1.5fr);
}

body.edova-customer-portal .ems-console-head > div:first-child {
  border-right: 1px solid var(--customer-console-line);
  padding: 10px 12px;
}

body.edova-customer-portal .customer-ems-console .summary-band,
body.edova-customer-portal .customer-ems-console .energy-grid,
body.edova-customer-portal .ems-console-body,
body.edova-customer-portal .flow-kpis {
  gap: 1px;
}

body.edova-customer-portal .customer-ems-console .summary-band {
  background: var(--customer-console-line);
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}

body.edova-customer-portal .customer-ems-console .summary-band > div {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  padding: 9px 10px;
}

body.edova-customer-portal .customer-ems-console .summary-band span,
body.edova-customer-portal .customer-ems-console .metric span,
body.edova-customer-portal .flow-kpis small {
  color: var(--customer-console-muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

body.edova-customer-portal .customer-ems-console .summary-band strong {
  color: var(--customer-console-ink);
  font-size: 13px;
}

body.edova-customer-portal .customer-ems-console .energy-grid {
  background: var(--customer-console-line);
  border-bottom: 1px solid var(--customer-console-line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.edova-customer-portal .customer-ems-console .metric {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 8px 10px;
}

body.edova-customer-portal .customer-ems-console .metric::before {
  background: var(--customer-console-blue);
  content: "";
  height: 3px;
  margin: -8px -10px 5px;
}

body.edova-customer-portal .customer-ems-console .metric-pv-power::before,
body.edova-customer-portal .customer-ems-console .metric-charging-power::before {
  background: var(--customer-console-orange);
}

body.edova-customer-portal .customer-ems-console .metric-battery-power::before {
  background: #3c6573;
}

body.edova-customer-portal .customer-ems-console .metric strong {
  color: var(--customer-console-ink);
  font-size: 20px;
  line-height: 1.08;
}

body.edova-customer-portal .ems-console-body {
  background: var(--customer-console-line);
  display: grid;
  grid-template-columns: minmax(560px, 1.28fr) minmax(330px, 0.72fr);
}

body.edova-customer-portal .ems-console-body .flow-panel,
body.edova-customer-portal .ems-console-body .panel {
  border: 0;
  border-radius: 0;
  margin: 0;
}

body.edova-customer-portal .ems-console-body .flow-panel {
  min-height: 380px;
  padding: 10px;
}

body.edova-customer-portal .flow-card-head {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 8px;
}

body.edova-customer-portal .flow-card-head span,
body.edova-customer-portal .flow-legend span {
  color: var(--customer-console-muted);
  font-size: 11px;
}

body.edova-customer-portal .flow-sankey-chart {
  background: #ffffff;
  border: 1px solid var(--customer-console-line);
  border-radius: 4px;
  height: clamp(260px, 28vw, 330px);
  min-height: 260px;
}

.customer-chart-canvas {
  block-size: 100%;
  display: block;
  inline-size: 100%;
}

.flow-legend-marker {
  background: #3c6573;
  block-size: 0.75rem;
  border-radius: 999px;
  display: inline-block;
  inline-size: 0.75rem;
  margin-inline-end: 0.4rem;
}

.flow-legend-marker.is-pv {
  background: #d2931b;
}

.flow-legend-marker.is-battery {
  background: #46aaa0;
}

.flow-legend-marker.is-charging {
  background: #f06f85;
}

body.edova-customer-portal .flow-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 8px;
}

body.edova-customer-portal .flow-kpis span {
  background: #ffffff;
  border: 1px solid var(--customer-console-line);
  border-radius: 4px;
  display: grid;
  gap: 2px;
  padding: 7px 8px;
}

body.edova-customer-portal .flow-kpis strong {
  color: var(--customer-console-ink);
  font-size: 14px;
}

body.edova-customer-portal .ems-console-side {
  background: var(--customer-console-line);
  display: grid;
  gap: 1px;
  grid-template-rows: auto minmax(0, 1fr);
}

body.edova-customer-portal .ems-console-side .panel {
  background: #ffffff;
  padding: 10px;
}

body.edova-customer-portal .control-status {
  display: grid;
  gap: 8px;
}

body.edova-customer-portal .control-overview,
body.edova-customer-portal .control-grid {
  display: grid;
  gap: 1px;
}

body.edova-customer-portal .control-overview {
  grid-template-columns: minmax(0, 1fr);
}

body.edova-customer-portal .control-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.edova-customer-portal .control-overview > div,
body.edova-customer-portal .control-overview > article,
body.edova-customer-portal .control-metric,
body.edova-customer-portal .control-asset-list article {
  background: var(--customer-console-soft);
  border: 1px solid var(--customer-console-line);
  border-radius: 4px;
  padding: 8px;
}

body.edova-customer-portal .control-overview span,
body.edova-customer-portal .control-overview small,
body.edova-customer-portal .control-metric span,
body.edova-customer-portal .control-reason,
body.edova-customer-portal .control-tags span,
body.edova-customer-portal .control-asset-list span,
body.edova-customer-portal .control-asset-list small {
  color: var(--customer-console-muted);
  font-size: 11px;
}

body.edova-customer-portal .control-overview strong,
body.edova-customer-portal .control-metric strong,
body.edova-customer-portal .control-asset-list strong {
  color: var(--customer-console-ink);
  font-size: 13px;
}

body.edova-customer-portal .ems-console-side .charge-point-list {
  display: grid;
  gap: 8px;
  max-height: 480px;
  overflow: auto;
}

body.edova-customer-portal .ems-console-side .energy-device-section {
  display: grid;
  gap: 5px;
}

body.edova-customer-portal .ems-console-side .energy-device-section h3 {
  color: var(--customer-console-muted);
  font-size: 10px;
  margin: 0;
  text-transform: uppercase;
}

body.edova-customer-portal .ems-console-side .energy-device-section h3 span {
  background: #fff4ec;
  border-radius: 999px;
  color: #9f3f00;
  font-size: 10px;
  padding: 2px 6px;
}

body.edova-customer-portal .ems-console-side .energy-device-grid {
  display: grid;
  gap: 1px;
}

body.edova-customer-portal .charge-point-card {
  background: #ffffff;
  border: 1px solid var(--customer-console-line);
  border-left: 3px solid var(--customer-console-line-strong);
  border-radius: 4px;
  display: grid;
  gap: 6px;
  padding: 8px;
}

body.edova-customer-portal .charge-point-card.is-active {
  border-left-color: var(--customer-console-orange);
}

body.edova-customer-portal .charge-point-card-top {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

body.edova-customer-portal .charge-point-type {
  align-items: center;
  background: #eef3f5;
  border-radius: 4px;
  color: var(--customer-console-blue);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

body.edova-customer-portal .charge-point-title strong {
  color: var(--customer-console-ink);
  display: block;
  font-size: 13px;
  line-height: 1.15;
}

body.edova-customer-portal .charge-point-title span,
body.edova-customer-portal .charge-point-meta span {
  color: var(--customer-console-muted);
  font-size: 11px;
  line-height: 1.2;
}

body.edova-customer-portal .charge-point-live {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

body.edova-customer-portal .charge-point-live strong {
  color: var(--customer-console-ink);
  font-size: 18px;
  line-height: 1.05;
}

body.edova-customer-portal .charge-status {
  background: #f3f7f8;
  border: 1px solid var(--customer-console-line);
  border-radius: 999px;
  color: var(--customer-console-muted);
  font-size: 11px;
  font-weight: 750;
  padding: 4px 7px;
}

body.edova-customer-portal .charge-status.offline {
  background: #fff1f0;
  color: #9f1d16;
}

body.edova-customer-portal .charge-point-powerbar {
  background: #e5edf1;
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}

body.edova-customer-portal .charge-point-powerbar i {
  background: var(--customer-console-orange);
  display: block;
  height: 100%;
}

body.edova-customer-portal .charge-point-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

body.edova-customer-portal .charge-point-meta span {
  background: var(--customer-console-soft);
  border: 1px solid var(--customer-console-line);
  border-radius: 999px;
  padding: 3px 6px;
}

body.edova-customer-portal .charge-battery {
  align-items: end;
  display: grid;
  gap: 3px;
}

body.edova-customer-portal .charge-battery-shell {
  border: 2px solid var(--customer-console-orange);
  border-radius: 4px;
  display: block;
  height: 18px;
  padding: 2px;
  position: relative;
  width: 36px;
}

body.edova-customer-portal .charge-battery-shell::after {
  background: var(--customer-console-orange);
  border-radius: 0 3px 3px 0;
  content: "";
  height: 8px;
  position: absolute;
  right: -5px;
  top: 3px;
  width: 4px;
}

body.edova-customer-portal .charge-battery-shell i {
  background: var(--customer-console-orange);
  border-radius: 2px;
  display: block;
  height: 100%;
}

.charge-point-powerbar i.is-fill-0,
.charge-battery-shell i.is-fill-0 {
  width: 0%;
}

.charge-point-powerbar i.is-fill-5,
.charge-battery-shell i.is-fill-5 {
  width: 5%;
}

.charge-point-powerbar i.is-fill-10,
.charge-battery-shell i.is-fill-10 {
  width: 10%;
}

.charge-point-powerbar i.is-fill-15,
.charge-battery-shell i.is-fill-15 {
  width: 15%;
}

.charge-point-powerbar i.is-fill-20,
.charge-battery-shell i.is-fill-20 {
  width: 20%;
}

.charge-point-powerbar i.is-fill-25,
.charge-battery-shell i.is-fill-25 {
  width: 25%;
}

.charge-point-powerbar i.is-fill-30,
.charge-battery-shell i.is-fill-30 {
  width: 30%;
}

.charge-point-powerbar i.is-fill-35,
.charge-battery-shell i.is-fill-35 {
  width: 35%;
}

.charge-point-powerbar i.is-fill-40,
.charge-battery-shell i.is-fill-40 {
  width: 40%;
}

.charge-point-powerbar i.is-fill-45,
.charge-battery-shell i.is-fill-45 {
  width: 45%;
}

.charge-point-powerbar i.is-fill-50,
.charge-battery-shell i.is-fill-50 {
  width: 50%;
}

.charge-point-powerbar i.is-fill-55,
.charge-battery-shell i.is-fill-55 {
  width: 55%;
}

.charge-point-powerbar i.is-fill-60,
.charge-battery-shell i.is-fill-60 {
  width: 60%;
}

.charge-point-powerbar i.is-fill-65,
.charge-battery-shell i.is-fill-65 {
  width: 65%;
}

.charge-point-powerbar i.is-fill-70,
.charge-battery-shell i.is-fill-70 {
  width: 70%;
}

.charge-point-powerbar i.is-fill-75,
.charge-battery-shell i.is-fill-75 {
  width: 75%;
}

.charge-point-powerbar i.is-fill-80,
.charge-battery-shell i.is-fill-80 {
  width: 80%;
}

.charge-point-powerbar i.is-fill-85,
.charge-battery-shell i.is-fill-85 {
  width: 85%;
}

.charge-point-powerbar i.is-fill-90,
.charge-battery-shell i.is-fill-90 {
  width: 90%;
}

.charge-point-powerbar i.is-fill-95,
.charge-battery-shell i.is-fill-95 {
  width: 95%;
}

.charge-point-powerbar i.is-fill-100,
.charge-battery-shell i.is-fill-100 {
  width: 100%;
}

body.edova-customer-portal .charge-battery strong {
  color: var(--customer-console-orange);
  font-size: 11px;
}

body.edova-customer-portal .customer-selfservice-head,
body.edova-customer-portal .customer-workspace-head {
  background: #ffffff;
  border-bottom: 1px solid var(--customer-console-line);
  margin: -10px -10px 0;
  padding: 10px;
}

body.edova-customer-portal .customer-selfservice-head {
  display: grid;
  gap: 1px;
  grid-template-columns: minmax(0, 1fr) 230px;
}

body.edova-customer-portal .customer-selfservice-head h2 {
  font-size: 17px;
}

body.edova-customer-portal .customer-selfservice-summary,
body.edova-customer-portal .customer-selfservice-body,
body.edova-customer-portal .customer-identity-layout,
body.edova-customer-portal .customer-session-layout {
  background: var(--customer-console-line);
  gap: 1px;
  margin-left: -10px;
  margin-right: -10px;
}

body.edova-customer-portal .customer-selfservice-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.edova-customer-portal .customer-selfservice-proof {
  background: #f8fafb;
  border-bottom: 1px solid var(--customer-console-line);
  margin: 0 -10px;
}

body.edova-customer-portal .customer-selfservice-proof .customer-selfservice-summary {
  border-bottom: 0;
  margin: 0;
}

body.edova-customer-portal .customer-selfservice-body {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.35fr);
}

body.edova-customer-portal .customer-selfservice-main,
body.edova-customer-portal .customer-selfservice-side,
body.edova-customer-portal .customer-list-rail,
body.edova-customer-portal .customer-form-rail,
body.edova-customer-portal .customer-session-list-rail,
body.edova-customer-portal .customer-session-detail {
  background: #ffffff;
  padding: 10px;
}

body.edova-customer-portal input,
body.edova-customer-portal select,
body.edova-customer-portal textarea {
  background: #ffffff;
  border: 1px solid var(--customer-console-line-strong);
  border-radius: 4px;
  min-height: 32px;
}

body.edova-customer-portal label {
  color: var(--customer-console-muted);
  font-size: 12px;
  font-weight: 700;
}

@media (min-width: 1181px) {
  body.edova-customer-portal[data-active-view="overview"] .customer-ems-console,
  body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console {
    max-height: calc(100vh - 285px);
    overflow: hidden;
  }

  body.edova-customer-portal[data-active-view="overview"] .ems-console-body,
  body.edova-customer-portal[data-active-view="dashboard"] .ems-console-body {
    max-height: calc(100vh - 425px);
    min-height: 0;
    overflow: hidden;
  }
}

@media (max-width: 1180px) {
  body.edova-customer-portal .customer-workbench-board,
  body.edova-customer-portal .edova-customer-system-spine,
  body.edova-customer-portal .layout,
  body.edova-customer-portal .portal-view-layout.view-overview,
  body.edova-customer-portal #customer-operations,
  body.edova-customer-portal .ems-console-head,
  body.edova-customer-portal .ems-console-body,
  body.edova-customer-portal .customer-selfservice-head,
  body.edova-customer-portal .customer-selfservice-body,
  body.edova-customer-portal .customer-identity-layout,
  body.edova-customer-portal .customer-session-layout,
  body.edova-customer-portal .customer-privacy-line {
    grid-template-columns: minmax(0, 1fr);
  }

  body.edova-customer-portal .object-context,
  body.edova-customer-portal .system-spine-track,
  body.edova-customer-portal .customer-workbench-board .operations-actions,
  body.edova-customer-portal .customer-privacy-line > div,
  body.edova-customer-portal .flow-kpis,
  body.edova-customer-portal .customer-ems-console .energy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.edova-customer-portal .portal-view-layout.view-overview #standorte,
  body.edova-customer-portal .portal-view-layout.view-overview #dashboard,
  body.edova-customer-portal .portal-view-layout.view-overview #customer-operations {
    grid-column: 1;
    grid-row: auto;
  }

  body.edova-customer-portal .customer-workbench-board .workbench-lead,
  body.edova-customer-portal .customer-workbench-board .operations-process,
  body.edova-customer-portal .system-spine-head,
  body.edova-customer-portal .ems-console-head > div:first-child,
  body.edova-customer-portal #customer-operations .operations-copy,
  body.edova-customer-portal #customer-operations .operations-action,
  body.edova-customer-portal .customer-privacy-line > summary {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  body.edova-customer-portal .topbar {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 14px;
    position: static;
  }

  body.edova-customer-portal > .portal-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 7px 14px;
    position: static;
  }

  body.edova-customer-portal .view-scope-line,
  body.edova-customer-portal .object-context,
  body.edova-customer-portal .customer-workbench-board,
  body.edova-customer-portal .edova-customer-system-spine,
  body.edova-customer-portal .layout {
    margin-left: 14px;
    margin-right: 14px;
  }

  body.edova-customer-portal .object-context,
  body.edova-customer-portal .system-spine-track,
  body.edova-customer-portal .customer-workbench-board .operations-process,
  body.edova-customer-portal .customer-workbench-board .operations-actions,
  body.edova-customer-portal #customer-operations .operations-grid,
  body.edova-customer-portal .customer-privacy-line > div,
  body.edova-customer-portal .customer-ems-console .summary-band,
  body.edova-customer-portal .customer-ems-console .energy-grid,
  body.edova-customer-portal .flow-kpis,
  body.edova-customer-portal .control-grid,
  body.edova-customer-portal .customer-selfservice-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Customer console final clamp: avoid clipped controller content. */
body.edova-customer-portal[data-active-view="overview"] .customer-ems-console,
body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console,
body.edova-customer-portal[data-active-view="overview"] .ems-console-body,
body.edova-customer-portal[data-active-view="dashboard"] .ems-console-body {
  max-height: none !important;
  overflow: visible !important;
}

body.edova-customer-portal .ems-console-side .control-panel {
  background: #ffffff !important;
  color: var(--customer-console-ink) !important;
  max-height: 360px !important;
  overflow: auto !important;
}

body.edova-customer-portal .ems-console-side .control-panel .control-overview,
body.edova-customer-portal .ems-console-side .control-panel .control-grid {
  display: grid !important;
  gap: 1px !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

body.edova-customer-portal .ems-console-side .control-panel .control-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.edova-customer-portal .ems-console-side .customer-regulator-story {
  background: var(--customer-console-line) !important;
  display: grid !important;
  gap: 1px !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

body.edova-customer-portal .ems-console-side .customer-regulator-story > div,
body.edova-customer-portal .ems-console-side .customer-regulator-story > article {
  background: var(--customer-console-soft) !important;
  border: 1px solid var(--customer-console-line) !important;
  border-radius: 4px !important;
  color: var(--customer-console-ink) !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 8px !important;
}

body.edova-customer-portal .ems-console-side .customer-regulator-story strong {
  color: var(--customer-console-ink) !important;
  font-size: 13px !important;
  overflow-wrap: anywhere !important;
}

body.edova-customer-portal .ems-console-side .customer-regulator-story span,
body.edova-customer-portal .ems-console-side .customer-regulator-story small {
  color: var(--customer-console-muted) !important;
  font-size: 11px !important;
  overflow-wrap: anywhere !important;
}

body.edova-customer-portal .ems-console-side .control-panel .control-overview > div,
body.edova-customer-portal .ems-console-side .control-panel .control-overview > article,
body.edova-customer-portal .ems-console-side .control-panel .control-metric,
body.edova-customer-portal .ems-console-side .control-panel .control-asset-list article {
  background: var(--customer-console-soft) !important;
  border: 1px solid var(--customer-console-line) !important;
  border-radius: 4px !important;
  color: var(--customer-console-ink) !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 7px !important;
}

body.edova-customer-portal .ems-console-side .control-panel strong,
body.edova-customer-portal .ems-console-side .control-panel .control-overview strong,
body.edova-customer-portal .ems-console-side .control-panel .control-metric strong {
  color: var(--customer-console-ink) !important;
  font-size: 13px !important;
  overflow-wrap: anywhere !important;
}

body.edova-customer-portal .ems-console-side .control-panel span,
body.edova-customer-portal .ems-console-side .control-panel small,
body.edova-customer-portal .ems-console-side .control-panel .control-reason {
  color: var(--customer-console-muted) !important;
  font-size: 11px !important;
  overflow-wrap: anywhere !important;
}

body.edova-customer-portal .ems-console-side .charge-point-list {
  max-height: 320px !important;
  overflow: auto !important;
}

body.edova-customer-portal .ems-console-side .charge-point-card,
body.edova-customer-portal .ems-console-side .charge-point-card * {
  min-width: 0 !important;
}

body.edova-customer-portal .ems-console-side .charge-point-card {
  display: grid !important;
  gap: 6px !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

body.edova-customer-portal .ems-console-side .charge-point-card-top {
  align-items: center !important;
  display: flex !important;
  gap: 8px !important;
  min-width: 0 !important;
  width: 100% !important;
}

body.edova-customer-portal .ems-console-side .charge-point-title {
  flex: 1 1 160px !important;
  min-width: 120px !important;
}

body.edova-customer-portal .ems-console-side .charge-point-title strong,
body.edova-customer-portal .ems-console-side .charge-point-title span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.edova-customer-portal .ems-console-side .charge-point-live {
  align-items: center !important;
  display: flex !important;
  gap: 8px !important;
  justify-content: space-between !important;
}

/* Customer energy view: keep analysis visible, move technical details into menus. */
body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console {
  border-color: var(--customer-console-line-strong) !important;
  border-radius: 4px !important;
}

body.edova-customer-portal[data-active-view="dashboard"] .ems-console-head > div:first-child {
  gap: 2px !important;
}

body.edova-customer-portal[data-active-view="dashboard"] .ems-console-head h2 {
  font-size: 15px !important;
  font-weight: 650 !important;
}

body.edova-customer-portal[data-active-view="dashboard"] .ems-console-head span {
  color: #526978 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .summary-band strong,
body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .metric strong,
body.edova-customer-portal[data-active-view="dashboard"] .flow-kpis strong {
  font-weight: 650 !important;
}

body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .summary-band span,
body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .metric span,
body.edova-customer-portal[data-active-view="dashboard"] .flow-kpis small {
  font-weight: 650 !important;
}

body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .metric::before {
  background: #245f73 !important;
  height: 2px !important;
  opacity: 0.62;
}

body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .metric-pv-power::before,
body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .metric-charging-power::before,
body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .metric-battery-power::before {
  background: #3c6573 !important;
}

body.edova-customer-portal[data-active-view="dashboard"] .ems-console-side {
  align-content: start !important;
  background: #ffffff !important;
  display: grid !important;
  gap: 1px !important;
  grid-template-rows: auto auto !important;
}

body.edova-customer-portal .customer-energy-detail {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--customer-console-line);
  color: var(--customer-console-ink);
  min-width: 0;
}

body.edova-customer-portal .customer-energy-detail:last-child {
  border-bottom: 0;
}

body.edova-customer-portal .customer-energy-detail > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 42px;
  padding: 10px 12px;
}

body.edova-customer-portal .customer-energy-detail > summary::-webkit-details-marker {
  display: none;
}

body.edova-customer-portal .customer-energy-detail > summary::after {
  background: #eef5f6;
  border: 1px solid var(--customer-console-line);
  border-radius: 999px;
  color: #245f73;
  content: "Öffnen";
  font-size: 11px;
  font-weight: 650;
  padding: 3px 8px;
}

body.edova-customer-portal .customer-energy-detail[open] > summary::after {
  content: "Schließen";
}

body.edova-customer-portal .customer-energy-detail > summary span {
  color: var(--customer-console-muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

body.edova-customer-portal .customer-energy-detail > summary strong {
  color: var(--customer-console-ink);
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.edova-customer-portal .customer-energy-detail .panel {
  border-top: 1px solid var(--customer-console-line) !important;
  max-height: none !important;
  padding: 10px !important;
}

body.edova-customer-portal .customer-energy-detail .control-status,
body.edova-customer-portal .customer-energy-detail .charge-point-list {
  max-height: 360px !important;
  overflow: auto !important;
}

@media (max-width: 720px) {
  body.edova-customer-portal[data-active-view="dashboard"] .view-scope-line,
  body.edova-customer-portal[data-active-view="dashboard"] .object-context {
    display: none !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] #dashboard,
  body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console {
    margin-top: 8px !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console {
    overflow: hidden !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .ems-console-head {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .ems-console-head > div:first-child {
    display: none !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .summary-band,
  body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .energy-grid {
    gap: 1px !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .summary-band {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .summary-band > div {
    min-height: 39px !important;
    padding: 5px 6px !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .summary-band span {
    font-size: 9px !important;
    font-weight: 560 !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .summary-band strong {
    font-size: 10px !important;
    font-weight: 560 !important;
    line-height: 1.12 !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .energy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .metric {
    min-height: 50px !important;
    padding: 6px 7px !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .metric::before {
    height: 2px !important;
    margin: -6px -7px 3px !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .metric span {
    font-size: 10px !important;
    font-weight: 560 !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .customer-ems-console .metric strong {
    font-size: 17px !important;
    font-weight: 600 !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .ems-console-body .flow-panel {
    min-height: 0 !important;
    padding: 8px !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .flow-card-head {
    gap: 5px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    margin-bottom: 6px !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .flow-card-head h2 {
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .flow-card-head span {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .flow-legend {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .flow-legend span {
    font-size: 10px !important;
    min-height: 22px !important;
    padding: 3px 8px !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .flow-sankey-chart {
    height: 240px !important;
    min-height: 240px !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .flow-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .flow-kpis span {
    min-height: 40px !important;
    padding: 5px 6px !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .flow-kpis small {
    font-size: 9px !important;
    font-weight: 560 !important;
    line-height: 1.05 !important;
  }

  body.edova-customer-portal[data-active-view="dashboard"] .flow-kpis strong {
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  body.edova-customer-portal .customer-energy-detail > summary {
    min-height: 33px;
    padding: 6px 8px;
  }

  body.edova-customer-portal .customer-energy-detail > summary span,
  body.edova-customer-portal .customer-energy-detail > summary strong,
  body.edova-customer-portal .customer-energy-detail > summary::after {
    font-size: 11px !important;
    font-weight: 560 !important;
    line-height: 1.1 !important;
  }

  body.edova-customer-portal .customer-energy-detail > summary::after {
    content: "+" !important;
    padding: 3px 7px !important;
  }

  body.edova-customer-portal .customer-energy-detail[open] > summary::after {
    content: "-" !important;
  }
}

/* Customer login console: compact entry for the customer-facing operating surface. */
body.edova-customer-portal.is-login .view-scope-line,
body.edova-customer-portal.is-login .portal-nav,
body.edova-customer-portal.is-login .customer-workbench-board,
body.edova-customer-portal.is-login .edova-system-spine,
body.edova-customer-portal.is-login #customer-operations,
body.edova-customer-portal.is-login [data-view-panel]:not(#zugang),
body.edova-customer-portal.is-login [data-view-shell] {
  display: none !important;
}

body.edova-customer-portal.is-login .topbar {
  position: static !important;
}

body.edova-customer-portal.is-login .layout {
  display: block !important;
  margin: 18px auto 40px !important;
  max-width: 1320px !important;
  padding: 0 18px !important;
}

body.edova-customer-portal.is-login #zugang.customer-login-console {
  display: grid !important;
}

body.edova-customer-portal .customer-login-console {
  align-items: stretch;
  background: #ffffff !important;
  border: 1px solid var(--customer-console-line) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  gap: 0;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 0.9fr) minmax(280px, 0.7fr);
  overflow: hidden;
  padding: 0 !important;
}

body.edova-customer-portal .customer-login-form,
body.edova-customer-portal .customer-register-entry,
body.edova-customer-portal .customer-register-form {
  display: grid;
  gap: 10px;
  padding: 18px;
}

body.edova-customer-portal .customer-register-entry,
body.edova-customer-portal .customer-register-form {
  border-left: 1px solid var(--customer-console-line);
}

body.edova-customer-portal .customer-login-console > .customer-register-entry {
  border-left: 0;
}

body.edova-customer-portal .customer-login-console > .customer-login-form,
body.edova-customer-portal .customer-login-console > .customer-login-brief {
  border-left: 1px solid var(--customer-console-line);
}

body.edova-customer-portal .customer-login-form h2,
body.edova-customer-portal .customer-register-entry h2,
body.edova-customer-portal .customer-register-form h2 {
  color: var(--customer-console-ink);
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
}

body.edova-customer-portal .customer-login-form .login-entry-copy,
body.edova-customer-portal .customer-register-entry .login-entry-copy,
body.edova-customer-portal .customer-register-form .login-entry-copy {
  color: var(--customer-console-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 680px;
}

body.edova-customer-portal .customer-register-entry {
  align-content: start;
  background: #f8fafb;
}

body.edova-customer-portal .customer-register-entry small {
  color: var(--customer-console-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

body.edova-customer-portal .customer-login-form .login-entry-note {
  color: var(--customer-console-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

body.edova-customer-portal .customer-register-link {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 38px;
  text-decoration: none;
}

body.edova-customer-portal .customer-login-form label,
body.edova-customer-portal .customer-register-form label {
  color: var(--customer-console-muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 5px;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

body.edova-customer-portal .customer-register-form .registration-handoff-field {
  height: 0;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

body.edova-customer-portal .customer-login-form input,
body.edova-customer-portal .customer-register-form input {
  background: #f8fafb;
  border: 1px solid var(--customer-console-line-strong);
  border-radius: 4px;
  color: var(--customer-console-ink);
  font-size: 14px;
  font-weight: 800;
  min-height: 36px;
  padding: 7px 10px;
}

body.edova-customer-portal .register-address-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1.4fr) minmax(80px, 0.5fr) minmax(0, 1fr);
}

body.edova-customer-portal .customer-register-form #register-customer-button {
  min-height: 38px;
}

body.edova-customer-portal .customer-register-form .privacy-ack {
  align-items: flex-start;
  display: grid;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr);
  line-height: 1.3;
  text-transform: none;
}

body.edova-customer-portal .customer-register-form .privacy-ack input {
  min-height: 18px;
  padding: 0;
}

body.edova-customer-portal .customer-register-form .privacy-ack a {
  color: var(--customer-console-orange);
  font-weight: 900;
}

body.edova-customer-portal .customer-register-result {
  background: #f8fafb;
  border: 1px solid var(--customer-console-line);
  border-radius: 4px;
  color: var(--customer-console-ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  margin: 0;
  min-height: 34px;
  padding: 8px 10px;
}

body.edova-customer-portal .customer-register-result[data-tone="success"] {
  background: #ecfdf5;
  border-color: #9fd8bc;
  color: #0b6b47;
}

body.edova-customer-portal .customer-register-result[data-tone="warning"] {
  background: #fff7ed;
  border-color: #f2c38f;
  color: #8a4a00;
}

body.edova-customer-portal .customer-register-result[data-tone="error"] {
  background: #fff1f2;
  border-color: #f0a4af;
  color: #9f1239;
}

body.edova-customer-portal.customer-register-page .topbar {
  margin-bottom: 18px;
}

body.edova-customer-portal.customer-register-page {
  display: block !important;
}

body.edova-customer-portal.customer-register-page > .topbar,
body.edova-customer-portal.customer-register-page > .public-registration-shell,
body.edova-customer-portal.customer-register-page > .legal-footer {
  grid-column: auto !important;
}

body.edova-customer-portal.customer-register-page > .public-registration-shell {
  margin: 0 auto !important;
}

body.edova-customer-portal.customer-register-page > .legal-footer {
  min-height: auto !important;
}

body.edova-customer-portal.customer-register-page .secondary-link {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 4px;
  color: #ffffff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  min-height: 36px;
  padding: 0 12px;
  text-decoration: none;
}

body.edova-customer-portal .public-registration-shell {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  margin: 0 auto;
  max-width: 1120px;
}

body.edova-customer-portal .public-registration-copy {
  background: #12324a;
  color: #ffffff;
  display: grid;
  gap: 16px;
  padding: 24px;
}

body.edova-customer-portal .public-registration-copy h2 {
  color: #ffffff;
  font-size: 30px;
  line-height: 1.08;
  margin: 0;
}

body.edova-customer-portal .public-registration-copy > span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

body.edova-customer-portal .public-registration-flow {
  display: grid;
  gap: 9px;
}

body.edova-customer-portal .public-registration-flow span {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.88);
  display: grid;
  font-size: 13px;
  font-weight: 850;
  gap: 10px;
  grid-template-columns: 26px minmax(0, 1fr);
  min-height: 38px;
  padding: 7px 9px;
}

body.edova-customer-portal .public-registration-flow strong {
  align-items: center;
  background: var(--customer-console-orange);
  border-radius: 4px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

body.edova-customer-portal .public-customer-register-form {
  background: #ffffff;
  border: 1px solid var(--customer-console-line);
  border-left: 0;
  padding: 24px;
}

body.edova-customer-portal .customer-login-form .auth-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) auto;
  margin: 0;
}

body.edova-customer-portal .customer-login-form .auth-actions button {
  min-height: 38px;
}

body.edova-customer-portal .customer-login-form #logout-button {
  display: none !important;
}

body.edova-customer-portal .customer-login-form .session-line,
body.edova-customer-portal .customer-login-form .status-line {
  background: #f8fafb;
  border: 1px solid var(--customer-console-line);
  border-radius: 4px;
  color: var(--customer-console-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  min-height: 30px;
  padding: 7px 9px;
}

body.edova-customer-portal .customer-login-brief {
  background: #12324a;
  color: #ffffff;
  display: grid;
  gap: 12px;
  grid-template-rows: auto 1fr auto;
  padding: 18px;
}

body.edova-customer-portal .customer-login-brief strong {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.15;
}

body.edova-customer-portal .customer-login-brief div {
  display: grid;
  gap: 7px;
}

body.edova-customer-portal .customer-login-brief span {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.86);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  grid-template-columns: 24px minmax(0, 1fr);
  line-height: 1.25;
  min-height: 34px;
  padding: 6px 8px;
}

body.edova-customer-portal .customer-login-brief b {
  align-items: center;
  background: var(--customer-console-orange);
  border-radius: 4px;
  color: #ffffff;
  display: inline-flex;
  font-size: 11px;
  height: 22px;
  justify-content: center;
  width: 22px;
}

body.edova-customer-portal .customer-login-brief small {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  padding-top: 10px;
}

@media (max-width: 900px) {
  body.edova-customer-portal .customer-login-console {
    grid-template-columns: minmax(0, 1fr);
  }

  body.edova-customer-portal .customer-register-entry,
  body.edova-customer-portal .customer-register-form {
    border-left: 0;
    border-top: 1px solid var(--customer-console-line);
  }

  body.edova-customer-portal .public-registration-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body.edova-customer-portal .public-customer-register-form {
    border-left: 1px solid var(--customer-console-line);
    border-top: 0;
  }

  body.edova-customer-portal .register-address-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.edova-customer-portal .customer-login-brief {
    grid-template-rows: auto;
  }
}

/* EDOVA customer quiet technical pass: keep orange for warning, use teal/blue for controls. */
body.edova-customer-portal {
  --brand-primary: #245f73;
  --brand-primary-hover: #1b4d60;
  --brand-accent: #245f73;
  --customer-console-accent: #245f73;
  --customer-console-accent-hover: #1b4d60;
  --customer-console-accent-soft: #edf6f8;
  --customer-console-accent-line: #b8d1d8;
  --customer-console-warning: #b45309;
  --customer-console-warning-soft: #fff7ed;
  --customer-console-orange: var(--customer-console-accent);
}

body.edova-customer-portal .topbar h1,
body.edova-customer-portal .panel-head h2,
body.edova-customer-portal .panel h2,
body.edova-customer-portal .flow-panel h2,
body.edova-customer-portal .charge-point-live strong,
body.edova-customer-portal .charge-point-title strong,
body.edova-customer-portal .summary-card strong,
body.edova-customer-portal .workspace-count {
  font-weight: 600 !important;
}

body.edova-customer-portal .topbar .eyebrow,
body.edova-customer-portal .portal-nav-label,
body.edova-customer-portal .panel-head .eyebrow,
body.edova-customer-portal .summary-card span,
body.edova-customer-portal .flow-kpi span,
body.edova-customer-portal .customer-workbench-board .operations-actions button span,
body.edova-customer-portal .customer-workbench-board .operations-process strong {
  color: var(--customer-console-accent) !important;
  font-weight: 600 !important;
}

body.edova-customer-portal > .portal-nav button.active,
body.edova-customer-portal > .portal-nav button[aria-current="page"],
body.edova-customer-portal > .portal-nav button:hover,
body.edova-customer-portal > .portal-nav button:focus-visible,
body.edova-customer-portal .customer-workbench-board .operations-actions button:hover,
body.edova-customer-portal .customer-workbench-board .operations-actions button:focus-visible,
body.edova-customer-portal .customer-workbench-board .operations-actions button.active {
  background: var(--customer-console-accent-soft) !important;
  border-color: var(--customer-console-accent-line) !important;
  color: var(--customer-console-ink) !important;
}

body.edova-customer-portal .view-scope-line strong,
body.edova-customer-portal .scope-line strong,
body.edova-customer-portal .customer-scope-line strong,
body.edova-customer-portal .flow-progress i,
body.edova-customer-portal .charge-point-powerbar i,
body.edova-customer-portal .charge-battery-shell::after,
body.edova-customer-portal .charge-battery-shell i,
body.edova-customer-portal .public-registration-flow strong,
body.edova-customer-portal .customer-login-brief b {
  background: var(--customer-console-accent) !important;
  border-color: var(--customer-console-accent) !important;
  color: #ffffff !important;
}

body.edova-customer-portal .charge-point-card.is-active,
body.edova-customer-portal .system-spine-node.is-owner {
  border-left-color: var(--customer-console-accent) !important;
  box-shadow: inset 3px 0 0 var(--customer-console-accent) !important;
}

body.edova-customer-portal .context-step.is-missing,
body.edova-customer-portal .customer-privacy-line article.is-warning {
  border-left-color: var(--customer-console-warning) !important;
  box-shadow: inset 0 3px 0 var(--customer-console-warning) !important;
}

body.edova-customer-portal .charge-battery-shell {
  border-color: var(--customer-console-accent) !important;
}

body.edova-customer-portal .charge-battery strong,
body.edova-customer-portal .customer-register-form .privacy-ack a {
  color: var(--customer-console-accent) !important;
  font-weight: 600 !important;
}

body.edova-customer-portal .charge-status,
body.edova-customer-portal .status-pill.ok,
body.edova-customer-portal .muted-pill.ok {
  background: var(--customer-console-accent-soft) !important;
  border-color: var(--customer-console-accent-line) !important;
  color: var(--customer-console-accent-hover) !important;
  font-weight: 600 !important;
}

body.edova-customer-portal .charge-status.offline,
body.edova-customer-portal .customer-register-result[data-tone="warning"] {
  background: var(--customer-console-warning-soft) !important;
  border-color: #f2c38f !important;
  color: var(--customer-console-warning) !important;
}

body.edova-customer-portal .analytics-panel .analytics-summary-grid {
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -1px -1px 0;
}

body.edova-customer-portal .analytics-panel .analytics-summary-grid > div {
  border-radius: 0;
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 10px 12px;
}

body.edova-customer-portal .analytics-panel .analytics-summary-grid span {
  color: var(--customer-console-muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

body.edova-customer-portal .analytics-panel .analytics-summary-grid strong {
  color: var(--customer-console-ink);
  font-size: 20px;
  font-weight: 520;
  line-height: 1.15;
}

body.edova-customer-portal .analytics-panel > .chart-grid {
  margin-top: 10px;
}

body.edova-customer-portal .analytics-panel > .chart-grid .chart-panel {
  min-height: 300px;
}

body.edova-customer-portal .analytics-panel > .chart-grid .chart-box {
  height: 260px;
}

body.edova-customer-portal .analytics-detail-disclosure {
  background: #ffffff;
  border: 1px solid var(--customer-console-line);
  border-radius: 4px;
  margin-top: 10px;
}

body.edova-customer-portal .analytics-detail-disclosure summary {
  align-items: center;
  color: var(--customer-console-ink);
  cursor: pointer;
  display: grid;
  gap: 4px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 44px;
  padding: 9px 11px;
}

body.edova-customer-portal .analytics-detail-disclosure summary span {
  color: var(--customer-console-accent);
  font-size: 12px;
  font-weight: 650;
}

body.edova-customer-portal .analytics-detail-disclosure summary strong {
  color: var(--customer-console-muted);
  font-size: 12px;
  font-weight: 520;
  text-align: right;
}

body.edova-customer-portal .analytics-detail-disclosure[open] summary {
  border-bottom: 1px solid var(--customer-console-line);
}

body.edova-customer-portal .analytics-detail-disclosure .analytics-secondary-charts,
body.edova-customer-portal .analytics-detail-disclosure .monthly-columns,
body.edova-customer-portal .analytics-detail-disclosure .analytics-table-grid {
  margin: 10px;
}

body.edova-customer-portal .analytics-detail-disclosure .monthly-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.edova-customer-portal .analytics-panel .chart-panel.is-empty-chart-panel {
  background:
    linear-gradient(90deg, rgba(36, 95, 115, 0.05) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(36, 95, 115, 0.05) 0 1px, transparent 1px 100%),
    #ffffff;
  background-size: 24px 24px;
}

body.edova-customer-portal .analytics-panel .chart-box.is-empty-chart {
  align-items: center !important;
  background:
    linear-gradient(90deg, rgba(36, 95, 115, 0.05) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(36, 95, 115, 0.05) 0 1px, transparent 1px 100%),
    #ffffff !important;
  background-size: 24px 24px !important;
  display: grid !important;
  min-height: 180px !important;
}

body.edova-customer-portal .analytics-panel .chart-box.is-empty-chart canvas {
  opacity: 0 !important;
}

body.edova-customer-portal .analytics-panel .chart-box.is-empty-chart::after,
body.edova-customer-portal .analytics-panel .chart-panel.is-empty-chart-panel::after {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid var(--customer-console-accent-line) !important;
  border-radius: 4px !important;
  color: var(--customer-console-accent-hover) !important;
  font-size: 12px !important;
  font-weight: 620 !important;
  inset: 50% auto auto 50% !important;
  min-height: 34px !important;
  min-width: 0 !important;
  padding: 0 14px !important;
  transform: translate(-50%, -50%) !important;
  width: min(230px, calc(100% - 40px)) !important;
}

body.edova-customer-portal .analytics-panel .chart-panel.is-empty-chart-panel::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 720px) {
  body.edova-customer-portal .analytics-panel .analytics-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.edova-customer-portal .analytics-panel .analytics-summary-grid > div {
    min-height: 67px;
    padding: 8px 10px;
  }

  body.edova-customer-portal .analytics-panel .analytics-summary-grid strong {
    font-size: 18px;
  }

  body.edova-customer-portal .analytics-panel > .chart-grid .chart-box {
    height: 220px;
  }

  body.edova-customer-portal .analytics-detail-disclosure summary {
    grid-template-columns: minmax(0, 1fr);
  }

  body.edova-customer-portal .analytics-detail-disclosure summary strong {
    text-align: left;
  }

  body.edova-customer-portal .analytics-detail-disclosure .analytics-secondary-charts,
  body.edova-customer-portal .analytics-detail-disclosure .monthly-columns,
  body.edova-customer-portal .analytics-detail-disclosure .analytics-table-grid {
    grid-template-columns: minmax(0, 1fr);
    margin: 8px;
  }
}

body.edova-customer-portal .monthly-panel .billing-summary-grid {
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -1px -1px 0;
}

body.edova-customer-portal .monthly-panel .billing-summary-grid > div {
  border-radius: 0;
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 10px 12px;
}

body.edova-customer-portal .monthly-panel .billing-summary-grid span {
  color: var(--customer-console-muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

body.edova-customer-portal .monthly-panel .billing-summary-grid strong {
  color: var(--customer-console-ink);
  font-size: 20px;
  font-weight: 520;
  line-height: 1.15;
}

body.edova-customer-portal .monthly-panel .billing-primary-chart {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 10px;
}

body.edova-customer-portal .monthly-panel .billing-primary-chart .chart-panel {
  min-height: 292px;
}

body.edova-customer-portal .monthly-panel .billing-primary-chart .chart-box {
  height: 250px;
}

body.edova-customer-portal .billing-detail-disclosure {
  background: #ffffff;
  border: 1px solid var(--customer-console-line);
  border-radius: 4px;
  margin-top: 10px;
}

body.edova-customer-portal .billing-detail-disclosure summary {
  align-items: center;
  color: var(--customer-console-ink);
  cursor: pointer;
  display: grid;
  gap: 4px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 44px;
  padding: 9px 11px;
}

body.edova-customer-portal .billing-detail-disclosure summary > span {
  color: var(--customer-console-accent);
  font-size: 12px;
  font-weight: 650;
}

body.edova-customer-portal .billing-detail-disclosure summary strong {
  color: var(--customer-console-muted);
  font-size: 12px;
  font-weight: 520;
  text-align: right;
}

body.edova-customer-portal .billing-detail-disclosure[open] summary {
  border-bottom: 1px solid var(--customer-console-line);
}

body.edova-customer-portal .billing-detail-disclosure .billing-secondary-chart,
body.edova-customer-portal .billing-detail-disclosure .billing-table-wrap,
body.edova-customer-portal .billing-detail-disclosure .monthly-columns {
  margin: 10px;
}

body.edova-customer-portal .billing-detail-disclosure .billing-secondary-chart {
  grid-template-columns: minmax(0, 1fr);
}

body.edova-customer-portal .billing-detail-disclosure .monthly-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  body.edova-customer-portal .monthly-panel .billing-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.edova-customer-portal .monthly-panel .billing-summary-grid > div {
    min-height: 67px;
    padding: 8px 10px;
  }

  body.edova-customer-portal .monthly-panel .billing-summary-grid strong {
    font-size: 18px;
  }

  body.edova-customer-portal .monthly-panel .billing-primary-chart .chart-box {
    height: 220px;
  }

  body.edova-customer-portal .billing-detail-disclosure summary {
    grid-template-columns: minmax(0, 1fr);
  }

  body.edova-customer-portal .billing-detail-disclosure summary strong {
    text-align: left;
  }

  body.edova-customer-portal .billing-detail-disclosure .billing-secondary-chart,
  body.edova-customer-portal .billing-detail-disclosure .billing-table-wrap,
  body.edova-customer-portal .billing-detail-disclosure .monthly-columns {
    grid-template-columns: minmax(0, 1fr);
    margin: 8px;
  }
}

/* EDOVA customer status density lock: status proof stays compact and
   technical setup remains outside the customer portal. */
@media (max-width: 720px) {
  body.edova-customer-portal[data-active-view="status"] .view-scope-line,
  body.edova-customer-portal[data-active-view="status"] .object-context {
    display: none !important;
  }

  body.edova-customer-portal[data-active-view="status"] #dashboard,
  body.edova-customer-portal[data-active-view="status"] #status {
    margin-top: 8px;
  }

  body.edova-customer-portal[data-active-view="status"] #status {
    padding: 10px;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-head {
    align-items: center;
    gap: 1px;
    grid-template-columns: minmax(0, 1fr) minmax(104px, auto) !important;
    margin: -10px -10px 0;
    padding: 0;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-head > div {
    padding: 9px 10px;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-head .eyebrow,
  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-head > div:first-child > span {
    display: none;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-head h2 {
    font-size: 16px;
    line-height: 1.12;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-head > div:last-child {
    border-left: 1px solid var(--customer-console-line);
    border-top: 0;
    min-height: 54px;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-head > div:last-child span {
    font-size: 10px;
    font-weight: 650;
    line-height: 1.1;
    margin: 0;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-head > div:last-child strong {
    font-size: 13px;
    font-weight: 560;
    line-height: 1.12;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-proof {
    margin: 0 -10px;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-proof summary {
    gap: 4px 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 34px;
    padding: 6px 9px;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-proof summary span,
  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-proof summary strong,
  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-proof summary::after {
    font-size: 11px;
    line-height: 1.1;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-proof summary strong {
    grid-column: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-proof summary::after {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-body {
    margin: 0 -10px;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-main,
  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-side {
    padding: 8px;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-main {
    gap: 6px;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-config-simple > h3,
  body.edova-customer-portal[data-active-view="status"] .customer-runtime-devices summary,
  body.edova-customer-portal[data-active-view="status"] .customer-device-details summary,
  body.edova-customer-portal[data-active-view="status"] .customer-comfort-disclosure summary,
  body.edova-customer-portal[data-active-view="status"] .customer-config-advanced summary {
    font-size: 12px;
    min-height: 32px;
    padding: 7px 9px;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-everyday-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-config-simple .form-grid label {
    gap: 4px;
    min-height: 62px;
    padding: 6px 7px;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-config-simple label {
    font-size: 11px;
    line-height: 1.12;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-config-simple input,
  body.edova-customer-portal[data-active-view="status"] .customer-config-simple select {
    font-size: 12px;
    height: 30px;
    min-height: 30px;
    padding: 4px 7px;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-mode-notes,
  body.edova-customer-portal[data-active-view="status"] .customer-device-create .runtime-device-note,
  body.edova-customer-portal[data-active-view="status"] .customer-device-create h4 {
    display: none !important;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-actions {
    justify-content: stretch;
    margin: 0 -10px -10px;
    padding: 8px;
  }

  body.edova-customer-portal[data-active-view="status"] .customer-selfservice-actions button {
    min-height: 34px;
    width: 100%;
  }
}
