/* Customer overview: scoped, light, and independent of the internal workbench. */
.customer-overview-savings,.customer-overview-weekly{--co-ink:#203b43;--co-muted:#60737a;--co-line:#dce5e6;color:var(--co-ink);min-width:0}
.customer-overview-savings{margin-block:0 21px}.co-savings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.co-saving-card{min-width:0;padding:22px 23px 18px;border:1px solid var(--co-line);border-radius:15px;background:#fff;box-shadow:0 4px 16px #143b4505}.co-saving-daily{border-top:3px solid #ac4c13}.co-saving-monthly{border-top:3px solid #438c7f;background:#fbfdfc}.co-saving-annual{border-top:3px solid #28766a;background:#f8fcfa}.co-saving-project{border-top:3px solid #81949b;background:#fafbfc}.co-saving-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.co-saving-heading h3{font-size:14px;font-weight:650;line-height:1.55;margin:0;color:var(--co-ink)}.co-badge{display:inline-block;flex:none;padding:2px 7px;border:1px solid #dce5e3;border-radius:5px;color:#526b67;background:#fff;font-size:10px;font-weight:500;line-height:1.6}.co-money{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:15px 0 9px;color:#245d53;font-variant-numeric:tabular-nums;line-height:1.15}.co-money bdi{max-width:100%;overflow-wrap:anywhere;font-size:clamp(27px,3.4vw,42px);font-weight:650;letter-spacing:-1.2px}.co-money>span{color:#5c7270;font-size:19px}.co-saving-daily .co-money{color:#9c4b18}.co-saving-card.is-negative .co-money{color:#a0443c}.co-saving-card.is-unavailable .co-money{color:#7b898c}.co-caption{margin:0;font-size:11px;line-height:1.7;color:var(--co-muted)}.co-quality{margin:6px 0 0;color:#8b5c19;font-size:11px;line-height:1.7}.co-method{margin:10px 2px 0;color:var(--co-muted);font-size:11px;line-height:1.8}.co-method summary{display:list-item;width:fit-content;cursor:pointer;padding:4px 0;color:#416666}.co-method p{margin:6px 0;max-width:980px}.co-method .co-basis{font-variant-numeric:tabular-nums}.co-method summary:focus-visible,.co-record summary:focus-visible{outline:3px solid #176b96;outline-offset:4px;border-radius:3px}
.customer-overview-weekly{margin-block:27px 24px}.co-week-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:16px}.co-eyebrow{font-size:10px;letter-spacing:.3px;color:#367366;margin:0 0 6px}.co-week-heading h2{font-size:24px;line-height:1.3;margin:0;font-weight:650;letter-spacing:-.5px}.co-week-period{display:flex;flex-direction:column;gap:4px;text-align:end;font-size:12px;font-variant-numeric:tabular-nums;color:#465e65}.co-week-period small{font-size:10px;color:var(--co-muted)}.co-week-quality{margin-block:-5px 13px}.co-comparison-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:15px}.co-comparison{border:1px solid var(--co-line);border-radius:13px;background:#fff;padding:18px 20px;min-width:0}.co-comparison h3{margin:0 0 12px;color:#51676d;font-size:12px;font-weight:600}.co-comparison-value{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px;line-height:1.2;font-variant-numeric:tabular-nums}.co-comparison-value bdi{font-size:29px;font-weight:650;letter-spacing:-.6px;overflow-wrap:anywhere;max-width:100%}.co-comparison-value>span{font-size:12px;color:var(--co-muted)}.co-comparison-previous{margin:10px 0 5px;font-size:11px;color:var(--co-muted);line-height:1.6}.co-change{font-size:10px;color:#4c676e;line-height:1.7;margin:0}.co-change bdi{font-weight:650;color:#294e58}.co-supply-panel{border:1px solid var(--co-line);border-radius:14px;background:#fff;padding:19px 23px;margin-bottom:15px}.co-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.co-section-heading h3{font-size:14px;line-height:1.5;margin:0;font-weight:650}.co-section-heading>span{font-size:11px;color:var(--co-muted)}.co-supply-days{list-style:none;margin:5px 0 15px;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.co-supply-day{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;font-size:10px;color:#586e74;text-align:center;font-variant-numeric:tabular-nums}.co-day-dot{display:grid;place-items:center;width:29px;height:29px;border:1px solid #bbc9cd;border-radius:50%;background:#f3f6f7;color:#64787f;font-size:14px;font-weight:700}.is-supplied .co-day-dot{background:#317955;border-color:#317955;color:#fff}.is-measured-zero .co-day-dot{background:#fff;border-color:#acbdc1;color:#60737a}.is-partial .co-day-dot{outline:1px dashed #8d9da0;outline-offset:3px}.co-supply-key{display:flex;flex-wrap:wrap;gap:8px 19px;font-size:10px;color:var(--co-muted)}.co-supply-key>span{display:inline-flex;align-items:center;gap:6px}.co-key-dot{display:inline-block;width:8px;height:8px;border-radius:50%;border:1px solid #b2c1c4;background:#eef3f5}.co-key-dot.supplied{background:#317955;border-color:#317955}.co-key-dot.measured-zero{background:#fff;border-color:#81999e}.co-key-dot.unknown{border-style:dashed}.co-fine-print{margin:10px 0 0;font-size:10px;color:var(--co-muted);line-height:1.7}.co-operations-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.co-operations-panel{min-width:0;border:1px solid var(--co-line);border-radius:14px;background:#fff;padding:19px 23px}.co-section-heading .co-count{display:grid;place-items:center;min-width:25px;height:25px;border-radius:7px;border:1px solid #dce5e6;background:#f3f7f7;color:#38595f;font-weight:650}.co-records{list-style:none;margin:0;padding:0}.co-records>li+li{border-top:1px solid #e8eded}.co-record summary{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;padding:11px 0;font-size:12px;line-height:1.7}.co-record summary::-webkit-details-marker{display:none}.co-record summary:after{content:'+';flex:none;color:#617b81;font-size:16px}.co-record[open] summary:after{content:'−'}.co-record-title{flex:1;overflow-wrap:anywhere}.co-record-meta{display:flex;flex-wrap:wrap;gap:6px 15px;color:var(--co-muted);font-size:10px;line-height:1.6;padding-bottom:11px}.co-badge.is-critical{color:#9e463c;background:#fff8f5;border-color:#efd2c9}.co-empty{margin:14px 0;color:var(--co-muted);font-size:12px;line-height:1.8}.co-updated{margin-top:14px;font-size:10px;color:var(--co-muted);text-align:end}.co-status{border:1px solid #dce5e6;border-radius:13px;padding:24px;color:#60737a;background:#fff;font-size:13px;line-height:1.7}.co-status.is-error{border-color:#e6cebc;color:#7b542c}
@media(max-width:900px){.co-saving-card{padding:18px 17px}.co-saving-heading{flex-wrap:wrap;gap:6px}.co-saving-heading h3{font-size:13px}.co-savings-grid{gap:10px}.co-money bdi{font-size:30px}.co-comparison{padding:16px}.co-operations-panel,.co-supply-panel{padding:18px}.co-comparison-value bdi{font-size:26px}}
@media(max-width:600px){.co-savings-grid{grid-template-columns:1fr}.co-saving-card{padding:17px 19px}.co-saving-heading{flex-wrap:nowrap;align-items:center}.co-money{margin:12px 0 6px}.co-money bdi{font-size:35px}.co-caption{font-size:11px}.co-week-heading{align-items:flex-start;flex-direction:column;gap:10px}.co-week-period{text-align:start;font-size:11px}.co-week-heading h2{font-size:22px}.co-comparison-grid{grid-template-columns:1fr;gap:9px}.co-comparison{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:14px 17px}.co-comparison h3{margin:0;align-self:center}.co-comparison-value{grid-column:2;grid-row:1/3;align-self:center;justify-content:flex-end}.co-comparison-value bdi{font-size:25px}.co-comparison-previous{grid-column:1;grid-row:2;margin:0;font-size:10px}.co-change{grid-column:1/-1;font-size:10px}.co-supply-panel{padding:17px 13px}.co-section-heading{gap:8px}.co-section-heading h3{font-size:13px}.co-section-heading>span{font-size:10px}.co-supply-days{gap:3px}.co-supply-day{gap:9px;font-size:9px;line-height:1.6}.co-day-dot{width:25px;height:25px;font-size:12px}.co-supply-key{gap:8px 13px;font-size:9px}.co-operations-grid{grid-template-columns:1fr;gap:12px}.co-record summary{min-height:44px;padding:9px 0}.co-updated{text-align:start}.co-method summary{min-height:32px}.co-fine-print{font-size:9px}}
@media(forced-colors:active){.co-day-dot,.co-key-dot{forced-color-adjust:auto}.is-supplied .co-day-dot{border:2px solid Highlight}.co-saving-card,.co-comparison,.co-supply-panel,.co-operations-panel{border-color:CanvasText}}
@media print{.co-saving-card,.co-comparison,.co-supply-panel,.co-operations-panel{break-inside:avoid;box-shadow:none;background:#fff}.co-method{display:none}}

/* Audience layout uses the server-backed affiliation plus the selected view.
   Visibility of journal/maintenance remains controlled by their hidden state. */
#portal [hidden]{display:none!important}
body[data-affiliation="external"] #portal .audience-switch{display:none!important}
body:not([data-customer-view="tempo"]) #portal #customer-savings,
body:not([data-customer-view="tempo"]) #portal #customer-weekly{display:none!important}
body[data-customer-view="tempo"] #portal #customer-overview-slot,
body[data-customer-view="tempo"] #portal #operations-overview-slot,
body[data-customer-view="tempo"] #portal #process-instruments,
body[data-customer-view="tempo"] #portal #telemetry-details,
body[data-customer-view="tempo"] #portal #operations-summary,
body[data-customer-view="tempo"] #portal #operations-board,
body[data-customer-view="tempo"] #portal #finance-summary,
body[data-customer-view="tempo"] #portal #finance-details,
body[data-customer-view="tempo"] #portal #steam-economics,
body[data-customer-view="tempo"] #portal .chart-controls,
body[data-customer-view="tempo"] #portal #sensor-detail,
body[data-customer-view="tempo"] #portal #period-overview,
body[data-customer-view="tempo"] #portal #notice-ticker,
body[data-customer-view="tempo"] #portal .toolbar .date-controls,
body[data-customer-view="tempo"] #portal #export-energy{display:none!important}
body[data-audience="customer"] #portal #journal-view:not([hidden]),
body[data-audience="customer"] #portal #maintenance-view:not([hidden]){display:block!important}
body[data-audience="customer"] #portal [data-view="journal"]:not([hidden]),
body[data-audience="customer"] #portal [data-view="maintenance"]:not([hidden]){display:inline-flex!important}
body[data-customer-view="tempo"] #portal .toolbar{justify-content:flex-end;min-height:44px;padding:0 0 9px;margin-bottom:7px;border:0;box-shadow:none;background:transparent}
body[data-customer-view="tempo"] #portal .toolbar-actions{width:auto;justify-content:flex-end}
body[data-customer-view="tempo"] #portal #refresh{min-width:44px;min-height:44px}
body[data-customer-view="tempo"] #portal #refresh:focus-visible{outline:3px solid #176b96;outline-offset:2px}
body[data-customer-view="tempo"] #portal #metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch;margin-block:15px 22px}
body[data-customer-view="tempo"] #portal #metrics .metric-gauge{padding:15px 18px 0;border-radius:14px}
body[data-customer-view="tempo"] #portal #metrics .gauge-heading{min-height:36px;align-items:center}
body[data-customer-view="tempo"] #portal #metrics .metric-label{font-size:15px;line-height:1.4}
body[data-customer-view="tempo"] #portal #metrics .gauge-icon{display:grid}
body[data-customer-view="tempo"] #portal #metrics .gauge-status-row{margin:4px 0 10px}
body[data-customer-view="tempo"] #portal #metrics .gauge-dial{max-width:200px}
body[data-customer-view="tempo"] #portal #metrics .gauge-dial .metric-value{font-size:31px}
body[data-customer-view="tempo"] #portal #metrics .gauge-dial .metric-value.gauge-number-wide{font-size:25px}
body[data-customer-view="tempo"] #portal #metrics .gauge-dial .metric-value.gauge-number-long{font-size:21px}
body[data-customer-view="tempo"] #portal #metrics .gauge-dial .metric-value small{font-size:12px}
body[data-customer-view="tempo"] #portal #metrics .gauge-detail{font-size:11px;line-height:1.5;min-height:33px}
body[data-customer-view="tempo"] #portal #metrics .ops-gauge-details>summary{min-height:44px;font-size:11px}
@media(max-width:760px){
 body[data-customer-view="tempo"] #portal #metrics{gap:10px}
 body[data-customer-view="tempo"] #portal #metrics .metric-gauge{padding:12px 11px 0}
 body[data-customer-view="tempo"] #portal #metrics .gauge-icon{display:none}
 body[data-customer-view="tempo"] #portal #metrics .metric-label{font-size:13px}
 body[data-customer-view="tempo"] #portal #metrics .gauge-dial .metric-value{font-size:25px}
}
@media(max-width:600px){
 body[data-customer-view="tempo"] #portal #metrics{grid-template-columns:1fr;gap:11px}
 body[data-customer-view="tempo"] #portal #metrics .metric-gauge{padding:16px 20px 0}
 body[data-customer-view="tempo"] #portal #metrics .gauge-icon{display:grid}
 body[data-customer-view="tempo"] #portal #metrics .metric-label{font-size:15px}
 body[data-customer-view="tempo"] #portal #metrics .gauge-dial{max-width:210px}
 body[data-customer-view="tempo"] #portal #metrics .gauge-dial .metric-value{font-size:31px}
}

/* Emissions share the verified savings cohort, with an independent quality state. */
.customer-overview-savings .co-emissions{margin-block-start:14px;padding-block-start:12px;border-block-start:1px solid var(--co-line)}
.customer-overview-savings .co-emissions-label{margin:0;color:#45695d;font-size:11px;line-height:1.6;font-weight:600}
.customer-overview-savings .co-emissions-value{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px;margin:5px 0 3px;color:#28664f;font-variant-numeric:tabular-nums;line-height:1.2}
.customer-overview-savings .co-emissions-number{font-size:23px;font-weight:650;max-width:100%;overflow-wrap:anywhere}
.customer-overview-savings .co-emissions-value>span{font-size:11px;color:#526e62;white-space:nowrap}
.customer-overview-savings .co-emissions-note{margin:0;color:var(--co-muted);font-size:10px;line-height:1.6}
.customer-overview-savings .co-emissions-missing .co-emissions-value{color:#7b898c}
.customer-overview-savings .co-emissions-scope{max-width:980px}
@media(max-width:600px){.customer-overview-savings .co-emissions{margin-block-start:12px;padding-block-start:10px}.customer-overview-savings .co-emissions-number{font-size:25px}}

/* Four cumulative horizons; legacy layouts retain their three-card grid. */
.co-savings-grid-cumulative{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.co-savings-grid-cumulative{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.co-savings-grid-cumulative{grid-template-columns:1fr}}
