/* JuiceBox console: a single visual layer over the existing functional styles. */
:root {
  --juice-green: #087f63; --deep-emerald: #087f63; --matte-charcoal: #202c35;
  --muted: #76818a; --line: #e3e7e8; --surface: #f5f6f7;
  --shadow: none; --clay-shadow: none; --green-shadow: none;
}
body { background: #f5f6f7; color: #202c35; font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; font-size: 14px; }
button, input, select, textarea { font-family: inherit; }
button { border-radius: 7px; box-shadow: none; font-weight: 600; font-size: 13px; background: #087f63; min-height: 38px; transition: background .15s; }
button:hover { filter: none; background: #06664f; }
button:active { transform: none; box-shadow: none; }
button.secondary { border: 1px solid #dce2e3; background: #fff; color: #43515b; box-shadow: none; }
button.secondary:hover { background: #f4f6f6; border-color: #aebcb9; }
button.danger, .row button.danger { background: #b83f45; box-shadow: none; }
button:focus-visible, summary:focus-visible { outline: 3px solid #54bca4; outline-offset: 3px; }
input, select, textarea { border-color: #dce2e3; border-radius: 7px; min-height: 40px; font-size: 13px; background: #fff; }
.shell { max-width: none; padding: 0; }
body:not(.customer-view) .app { grid-template-columns: 228px minmax(0,1fr); gap: 0 34px; padding: 0 34px 28px 0; }
body:not(.customer-view) .tabs { position: fixed; left: 0; top: 0; bottom: 0; height: 100dvh; width: 228px; padding: 26px 16px; background: #14282b; box-shadow: none; border: 0; border-radius: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.nav-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 23px; font-weight: 650; letter-spacing: -.8px; padding: 0 0 26px; }
.brand-mascot { display: block; flex: 0 0 54px; width: 54px; height: 64px; object-fit: contain; background: #eef5ef; border-radius: 12px; padding: 3px; }
.brand-wordmark { display: block; line-height: 1.15; white-space: nowrap; }
body:not(.customer-view) .tabs { scrollbar-width: thin; scrollbar-color: #365354 #14282b; }
.driver-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 5px; }
.driver-identity > div { display: grid; gap: 2px; }
.driver-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #edf4f1; color: #53796b; font-size: 12px; font-weight: 600; }
.driver-card-summary { overflow-wrap: anywhere; }
.nav-brand small { display: block; color: #91aaac; font-size: 8px; font-weight: 500; letter-spacing: 1.7px; line-height: 1.5; margin-top: 6px; }
.console-icon { width: 19px; height: 19px; display: block; flex: 0 0 auto; }
body:not(.customer-view) .tabs button { width: 100%; display: grid; grid-template-columns: 22px 1fr auto; gap: 11px; align-items: center; min-height: 43px; padding: 10px 13px; background: transparent; color: #a9babc; border: 0; border-radius: 7px; font-weight: 500; font-size: 13px; text-align: left; box-shadow: none; }
body:not(.customer-view) .tabs button:hover { background: #20383b; color: #fff; }
body:not(.customer-view) .tabs button.active { background: #284441; color: #bcf0dd; box-shadow: none; }
.tabs button em { background: #304a4a; color: #b5c9c9; font-size: 10px; font-weight: 500; min-width: 21px; padding: 2px 5px; border-radius: 5px; }
.tabs button.active em { background: #45635b; color: #d9f4e9; }
.nav-group { margin: 21px 13px 8px; color: #769092; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; }
.nav-brand + .nav-group { margin-top: 0; }
body:not(.customer-view) .tabs .quick-action { min-height: 36px; font-size: 12px; border: none; }
body:not(.customer-view) .topbar { grid-column: 2; margin: 0 0 25px; min-height: 110px; padding: 26px 0 20px; background: transparent; border: 0; border-bottom: 1px solid #e1e5e6; border-radius: 0; box-shadow: none; gap: 20px; }
.brand-block { min-width: 170px; }
.eyebrow { color: #859198; font-size: 8px; font-weight: 600; letter-spacing: 1.8px; }
.topbar h1 { font-size: 28px; font-weight: 600; color: #1e3037; letter-spacing: -1px; margin: 5px 0 3px; }
.topbar p { margin: 0; font-size: 12px; color: #7e8a91; }
.topbar-actions { gap: 8px; align-items: center; justify-content: flex-end; }
.topbar-actions button { font-size: 11px; padding: 8px 11px; min-height: 34px; }
.live-status { min-width: 155px; background: transparent; border: 0; padding: 0 12px; box-shadow: none; gap: 8px; }
.live-status strong { font-size: 11px; font-weight: 500; color: #41615b; }
.live-status small { font-size: 10px; color: #8b969b; }
.status-dot { width: 6px; height: 6px; box-shadow: none !important; }
body:not(.customer-view) .metric-wall { grid-column: 2; margin-bottom: 22px; }
.metric-highlights { gap: 0; border: 1px solid #e1e6e7; border-radius: 11px; background: #fff; overflow: hidden; margin-bottom: 0; }
.metrics article.metric-primary { padding: 23px 20px; min-height: 126px; border: 0; border-right: 1px solid #e9eded; border-radius: 0; box-shadow: none; background: #fff; }
.metrics article.metric-primary:first-child { background: #edf6f2; }
.metrics article.metric-primary:last-child { border-right: 0; }
.metrics span { color: #78868a; font-size: 10px; font-weight: 500; text-transform: none; letter-spacing: .1px; }
.metrics strong { margin: 9px 0 5px; font-size: 27px; font-weight: 600; line-height: 1.1; letter-spacing: -1px; font-variant-numeric: tabular-nums; color: #233f3d; }
.metrics small { font-size: 10px; color: #8b969b; }
.metrics article.metric-primary { display: flex; flex-direction: column; align-items: flex-start; }
.metrics article.metric-primary > span { min-height: 2.8em; line-height: 1.4; }
.metrics article.metric-primary > strong { white-space: nowrap; }
.metrics article.metric-primary > small { line-height: 1.5; }
.metrics article { box-shadow: none; border: 1px solid #e4e9e9; border-radius: 8px; }
.secondary-metrics { margin: 9px 0 0; }
.secondary-metrics summary { color: #82918e; font-size: 11px; font-weight: 400; padding: 4px 0; }
.panel { padding: 22px; border-radius: 10px; border: 1px solid #e1e6e7; box-shadow: none; background: #fff; margin-bottom: 20px; }
.panel h2 { color: #25383e; font-size: 15px; font-weight: 600; letter-spacing: -.25px; }
.panel-head { align-items: center; min-height: 32px; margin-bottom: 16px; gap: 12px; }
.panel-head h2 { margin: 0; }
.panel-head > div { min-width: 0; }
.panel-head > div > p { margin: 6px 0 0; }
.panel-head > button, .panel-head > small { flex-shrink: 0; }
.row > strong, .row > small, .alert-copy { overflow-wrap: anywhere; }
.inline-controls { align-items: flex-end; }
.inline-controls > button { margin-bottom: 0; }
.alert-main { text-align: left; }
.dashboard-disclosure > summary > span { min-width: 0; flex: 1; }
.panel-head small { font-size: 10px; color: #7b8b8e; }
.panel p, .hint { color: #7d888d; font-size: 12px; line-height: 1.6; }
.row { padding: 15px; border: 1px solid #e7ecec; border-radius: 8px; background: #fff; box-shadow: none; }
.row strong { color: #33474c; font-weight: 600; font-size: 13px; }
.row small { color: #819095; font-size: 11px; line-height: 1.6; }
.row button { min-height: 32px; padding: 6px 12px; font-size: 11px; }
.action-panel { border-left: 1px solid #e1e6e7; }
.action-list { gap: 0; }
.alert-row, .alert-row.warning, .alert-row.info, .alert-row.critical { border: 0; border-top: 1px solid #edf0f0; border-radius: 0; background: transparent; grid-template-columns: minmax(0,1fr) auto; gap: 14px; }
.alert-row:first-child { border-top: 0; }
.alert-main { background: transparent; display: grid; grid-template-columns: 7px minmax(0,1fr) auto; padding: 12px 0; gap: 13px; box-shadow: none; min-height: 52px; border-radius: 0; }
.alert-main:hover { background: #fafcfb; }
.alert-marker { width: 5px; height: 5px; border-radius: 50%; background: #bf9652; }
.alert-row.critical .alert-marker { background: #c44e55; }
.alert-row.info .alert-marker { background: #578bba; }
.alert-copy { display: grid; gap: 4px; }
.alert-row .alert-copy strong { color: #405157; font-weight: 500; font-size: 12px; line-height: 1.45; }
.alert-row .alert-copy small { color: #869397; font-size: 11px; font-weight: 400; }
.alert-row em { color: #508074; font-size: 10px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.alert-ack.secondary { font-size: 10px; min-height: 29px; padding: 5px 10px; margin: 0; background: #fafbfb; color: #7d8b8f; border-color: #e3e8e8; }
.dashboard-split { grid-template-columns: minmax(250px,.85fr) minmax(0,1.4fr); gap: 20px; align-items: stretch; }
.dashboard-split > .panel { min-width: 0; }
.console-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 30px 16px; min-height: 210px; text-align: center; }
.console-empty > svg { width: 38px; height: 38px; padding: 8px; box-sizing: content-box; border-radius: 15px; background: #eff6f3; color: #648f82; }
.console-empty strong { font-size: 14px; font-weight: 500; color: #4e6567; }
.console-empty small { max-width: 240px; font-size: 11px; line-height: 1.65; color: #8c999d; }
.console-empty button { font-size: 11px; margin-top: 6px; }
.charger-mini { padding: 13px 0; grid-template-columns: 6px minmax(0,1fr); gap: 9px; border-bottom: 1px solid #eff1f1; }
.charger-mini:last-child { border-bottom: 0; }
.charger-mini strong { font-size: 12px; font-weight: 500; color: #3c5156; }
.charger-mini > div { grid-column: 2; display: flex; flex-wrap: wrap; gap: 5px; }
.charger-dot { width: 5px; height: 5px; box-shadow: none; }
.status-chip { font-size: 9px; padding: 3px 6px; border-radius: 4px; font-weight: 400; line-height: 1.4; }
.status-chip.available { background: #edf6f0; color: #678a72; border-color: transparent; }
.text-link { background: transparent; border: 0; color: #408070; box-shadow: none; font-size: 11px; font-weight: 500; min-height: 26px; }
.text-link:hover { background: #edf6f2; }
.dashboard-disclosure { border: 1px solid #e1e6e7; border-radius: 9px; box-shadow: none; margin-bottom: 12px; }
.dashboard-disclosure > summary { padding: 16px 20px; gap: 15px; }
.dashboard-disclosure summary strong { font-size: 12px; font-weight: 500; color: #4a6266; }
.dashboard-disclosure summary small { font-size: 10px; color: #8d9a9e; margin-top: 3px; }
.dashboard-disclosure summary em { background: #eff3f2; color: #728783; font-size: 10px; font-weight: 500; }
.bar { padding: 12px 0; }
.bar strong { font-size: 12px; font-weight: 500; }
.bar small { font-size: 11px; color: #8b989b; font-variant-numeric: tabular-nums; }
progress { height: 5px; accent-color: #639e87; }
progress::-webkit-progress-bar { background: #eef2f1; border-radius: 5px; }
progress::-webkit-progress-value { background: #639e87; border-radius: 5px; }
.form h2 { margin-bottom: 20px; }
.form label { font-weight: 500; font-size: 12px; color: #65767b; }
.ocpp-panel { background: #f4f8f7; border-left: 1px solid #e1e6e7; }
.ocpp-panel code { background: #e9f0ed; color: #4f7267; border: 1px solid #d8e6df; }
.section-kicker { color: #758c85; font-size: 9px; letter-spacing: 1px; }
.modal-card { box-shadow: 0 20px 80px #10252b26; border-radius: 12px; }
.creator-mark { position: static; margin: 0 34px 18px 262px; padding: 0; text-align: right; color: #a4aeb1; border: 0; background: transparent; box-shadow: none; font-size: 9px; }
body.customer-view .nav-brand { display: none; }
body.customer-view .creator-mark { margin: 15px; }
body.customer-view .topbar { box-shadow: none; }
.login-panel { background: #fff; box-shadow: 0 10px 50px #183b3210; border: 1px solid #e1e8e5; border-radius: 14px; }
.login-panel h1 { font-weight: 600; letter-spacing: -1.5px; color: #23483e; }
@media (max-width: 1150px) {
  .topbar-actions { max-width: 450px; flex-wrap: wrap; }
  .metrics article.metric-primary { padding: 20px 13px; }
  .metrics strong { font-size: 23px; }
}
@media (max-width: 900px) {
  body:not(.customer-view) .app { display: block; padding: 0 20px 24px; }
  body:not(.customer-view) .tabs { position: sticky; top: 0; width: 100%; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; border-radius: 9px; margin-bottom: 20px; z-index: 10; }
  body:not(.customer-view) .tabs button { display: flex; width: auto; min-width: max-content; min-height: 38px; padding: 9px 12px; gap: 8px; }
  .tabs .nav-brand, .tabs .nav-group, body:not(.customer-view) .tabs .quick-action { display: none; }
  body:not(.customer-view) .topbar { min-height: 100px; padding: 20px 0; }
  .creator-mark { margin: 10px 20px 20px; }
  .dashboard-split { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 620px) {
  body:not(.customer-view) .app { padding: 0 14px 20px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .topbar-actions { width: 100%; justify-content: flex-start; gap: 7px; }
  .live-status { margin-left: auto; min-width: 0; padding: 0; }
  .live-status strong { font-size: 10px; }
  .metric-highlights { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metrics article.metric-primary { min-height: 107px; border-bottom: 1px solid #edf0f0; padding: 18px; }
  .metrics article.metric-primary:last-child { grid-column: 1 / -1; }
  .metrics strong { font-size: 26px; }
  .panel { padding: 18px; }
  .alert-main { grid-template-columns: 5px minmax(0,1fr); gap: 9px; }
  .alert-main em { grid-column: 2; }
  .alert-row { gap: 8px; }
  .alert-ack.secondary { padding: 5px 7px; }
  .dashboard-disclosure > summary { padding: 15px; }
  .console-empty { min-height: 200px; }
}
