/* Scoped card theme works in classic dashboards, tactile screens and Studio. */
.energy-dashboard-card{--ed-ink:var(--ink,#183c38);--ed-muted:var(--muted,#7d8983);--ed-line:var(--border,#e8ece5);--ed-soft:var(--surface-subtle,#f5f5ef);--ed-surface:var(--surface,#fff);display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;height:100%;padding:1.2rem;color:var(--ed-ink);text-align:left;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}
.energy-dashboard-card [hidden],.ed-editor [hidden]{display:none!important}.ed-heading{margin-bottom:1rem;flex-shrink:0}.ed-heading h3{font-size:1.1rem;line-height:1.3;margin:.35rem 0;letter-spacing:-.025em;color:inherit;overflow-wrap:anywhere}.ed-eyebrow{display:block;font-size:.62rem;letter-spacing:.14em;color:var(--ed-muted);font-weight:650}.ed-period{font-size:.74rem;color:var(--ed-muted);margin:0}.ed-body{min-width:0;flex:1}.ed-charts{min-width:0}.ed-chart-section+.ed-chart-section{margin-top:1rem}.ed-chart-section h4{font-size:.85rem;margin:.3rem 0 .65rem;font-weight:550;color:var(--ed-muted)}.energy-dashboard-card svg{display:block;width:100%;height:auto;max-height:360px;overflow:visible}.energy-dashboard-card svg text{fill:var(--ed-muted);font-family:inherit;font-size:11px}.ed-grid-line{stroke:var(--ed-line);stroke-width:1}.ed-line{vector-effect:non-scaling-stroke}.ed-legend{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin:.75rem 0}.ed-legend-item{display:flex;align-items:center;gap:.4rem;font-size:.75rem;min-width:0}.ed-legend-item>span:not(.ed-legend-dot){overflow-wrap:anywhere}.ed-legend-item strong{font-size:.75rem;font-weight:550;white-space:nowrap}.ed-legend-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.ed-footnote{font-size:.72rem!important;line-height:1.55!important;color:var(--ed-muted)!important;margin:.65rem 0 0!important}.ed-empty{border:1px dashed var(--ed-line,var(--border,#e8ece5));border-radius:10px;padding:1rem;margin:.4rem 0;font-size:.8rem;text-align:center;color:var(--ed-muted,var(--muted,#7d8983))}.ed-notice,.ed-error{font-size:.78rem;line-height:1.5;padding:.7rem .8rem;border:1px solid #dfaa5760;background:#dfaa5712;border-radius:9px;margin:.6rem 0;color:inherit}.ed-error{border-color:#c77e6d70;background:#c77e6d12}.ed-details{margin-top:.75rem;font-size:.75rem}.ed-details>summary{cursor:pointer;color:var(--ed-muted);padding:.35rem 0}.ed-table-scroll{overflow-x:auto;margin-top:.5rem}.ed-details table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.ed-details th,.ed-details td{padding:.5rem .6rem;text-align:right;border-bottom:1px solid var(--ed-line);white-space:nowrap;font-size:.74rem}.ed-details th{font-weight:550;color:var(--ed-muted)}.ed-details th:first-child,.ed-details td:first-child{text-align:left}
.ed-flow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.ed-flow-item{padding:.9rem;border-radius:12px;background:var(--ed-soft);border:1px solid var(--ed-line);min-width:0}.ed-flow-item h4{font-size:.8rem;font-weight:500;margin:0 0 .5rem}.ed-flow-item strong{font-size:1.45rem;font-variant-numeric:tabular-nums;letter-spacing:-.035em}.ed-flow-item[data-kind=building]{background:#1b645b;color:#fff;border-color:#1b645b}.ed-flow-item[data-kind=building] .ed-footnote{color:#d1e5da!important}.ed-flow>.ed-batteries{grid-column:1/-1}.ed-batteries{display:grid;gap:1rem}.ed-battery{border:1px solid var(--ed-line);border-radius:12px;padding:1rem}.ed-battery-top{display:flex;align-items:center;justify-content:space-between;gap:.7rem}.ed-battery h4{font-size:.9rem;margin:0;font-weight:550;overflow-wrap:anywhere}.ed-battery strong{font-size:1.4rem;font-variant-numeric:tabular-nums;white-space:nowrap}.ed-battery-track{height:9px;overflow:hidden;background:var(--ed-soft);border:1px solid var(--ed-line);border-radius:20px;margin:.85rem 0}.ed-battery-fill{height:100%;border-radius:inherit;max-width:100%}
.touch-layout-grid>.touch-card.touch-energy-card,.touch-preview-grid>.touch-card.touch-energy-card,.touch-card.touch-energy-card{padding:0;display:block;overflow:hidden;min-height:0}.touch-card .energy-dashboard-card{--ed-ink:var(--touch-card-text,var(--touch-text,#f4f7fa));--ed-muted:var(--touch-muted,#b4c1cf);--ed-line:#98acc72b;--ed-soft:#b5c8df0c;--ed-surface:transparent;color:var(--ed-ink);padding:var(--touch-card-padding,16px);text-align:left}.touch-card .ed-heading h3{font-size:1.05rem}.touch-card .ed-heading{margin-bottom:.75rem}.touch-card .ed-footnote{font-size:.7rem!important}.touch-card[data-touch-hide-title=true] .ed-heading h3{display:none}.touch-preview .energy-dashboard-card details{pointer-events:none}.touch-preview .energy-dashboard-card{user-select:none}
.ed-editor{border:1px solid var(--border,#e8ece5);border-radius:12px;padding:1rem;margin:1rem 0;background:var(--surface,#fff);color:var(--ink,#183c38)}.ed-editor h4{font-size:.85rem;margin:.8rem 0}.ed-field{display:flex;flex-direction:column;gap:.4rem;margin:.6rem 0;min-width:0}.ed-field>span{font-size:.8rem;font-weight:550}.ed-field input:not([type=checkbox]),.ed-field select{display:block;min-width:0;width:100%;min-height:41px;padding:.55rem .65rem;border:1px solid var(--border,#dce4da);border-radius:8px;background:var(--input-bg,var(--surface,#fff));color:var(--ink,#183c38);font:inherit;font-size:.83rem}.ed-field input[type=color]{padding:.2rem;min-width:48px;height:38px}.ed-check{display:flex;flex-direction:row;align-items:center;gap:.5rem}.ed-check input[type=checkbox]{width:17px;height:17px;margin:0;accent-color:var(--teal,#1b645b);flex-shrink:0}.ed-field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.ed-field-row>.ed-field:only-child{grid-column:1/-1}.ed-help{font-size:.73rem;color:var(--muted,#7d8983);line-height:1.55;margin:.4rem 0}.ed-series-list{max-height:360px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.ed-series-row{padding:.6rem 0;border-top:1px solid var(--border,#e8ece5)}.ed-series-row>.ed-check{margin:.25rem 0}.ed-series-row>.ed-help{display:block;margin-left:1.55rem}.ed-series-custom{display:grid;grid-template-columns:65px minmax(0,1fr);gap:.6rem;margin:.3rem 0 0 1.55rem}.ed-series-custom .ed-field>span{font-size:.7rem;font-weight:450}.ed-series-custom .ed-field{margin:.2rem 0}
@media(max-width:640px){.energy-dashboard-card{padding:1rem}.ed-flow{gap:.5rem}.ed-flow-item{padding:.7rem}.ed-flow-item strong{font-size:1.2rem}.ed-legend{gap:.5rem}.ed-heading h3{font-size:1rem}.ed-editor{padding:.8rem}}
