.fd-workspace{font-family:inherit;color:#dce7f2;font-size:12px;line-height:1.4;height:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#658098 #142237;padding:12px;--fd-line:#34485d;--fd-muted:#9db1c6}
.fd-workspace *{box-sizing:border-box}.fd-workspace button,.fd-workspace input,.fd-workspace select{font:inherit;color:inherit;background:#102036;border:1px solid #4a647b;border-radius:4px;padding:6px 9px;min-height:31px}.fd-workspace button{cursor:pointer;font-weight:400}.fd-workspace button:hover{border-color:#18b9df}.fd-workspace button:disabled{opacity:.5;cursor:default}.fd-workspace button[hidden]{display:none}
.fd-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.fd-periods{display:flex;gap:4px}.fd-periods button[aria-pressed=true]{background:#0e7294;border-color:#19b8db}.fd-toolbar label{display:flex;align-items:center;gap:7px;color:var(--fd-muted);font-size:11px}.fd-toolbar-end{display:flex;gap:7px;margin-left:auto}.fd-range{color:var(--fd-muted);font-size:11px}.fd-status{color:var(--fd-muted);font-size:11px;min-height:32px;padding:8px 0}.fd-empty{text-align:center;color:var(--fd-muted);padding:80px 20px}
.fd-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.fd-kpi{background:#19263b;border:1px solid var(--fd-line);border-top:2px solid var(--fd-color);border-radius:6px;padding:13px 15px;min-width:0;--fd-color:#18b9df;display:flex;flex-direction:column;gap:9px}.fd-kpi.green{--fd-color:#42c69c}.fd-kpi.orange{--fd-color:#f7b358}.fd-kpi.violet{--fd-color:#b890ef}.fd-kpi-title{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;font-weight:400;text-transform:uppercase;color:#9db1c6;min-height:25px}.fd-kpi-title i,.fd-card h3 i{border:1px solid #285572;border-radius:4px;width:25px;height:25px;display:grid;place-items:center;flex:none;color:var(--fd-color,#18b9df)}.fd-workspace svg{width:18px;height:18px;stroke-width:1.5}.fd-kpi strong{font-size:23px;line-height:1.2;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}.fd-kpi-rule{height:4px;border-radius:2px;background:var(--fd-color);opacity:.8}.fd-kpi small{font-size:10px;font-weight:400;color:var(--fd-muted);line-height:1.35;min-height:14px}
.fd-context{display:flex;gap:10px 24px;flex-wrap:wrap;margin:14px 0;color:var(--fd-muted);font-size:11px}.fd-context span:first-child{color:#dce7f2}.fd-notice{font-size:11px;border-left:2px solid #f7b358;background:#272b35;padding:9px 12px;color:#cbd2dc;margin:12px 0}.fd-notice strong{font-weight:500;color:#f7b358}.fd-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(350px,1fr);gap:12px}.fd-card{min-width:0;background:#19263b;border:1px solid var(--fd-line);border-radius:6px;padding:13px 15px}.fd-card h3{display:flex;align-items:center;gap:9px;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid var(--fd-line);font-size:12px;line-height:1.3;font-weight:500}.fd-card h3 span{margin-left:auto;font-size:9px;color:var(--fd-muted);font-weight:400}.fd-table{overflow:auto;scrollbar-width:thin}.fd-table table{width:100%;border-collapse:collapse;font-size:11px}.fd-table th,.fd-table td{padding:8px 5px;border-bottom:1px solid #2e3e53;text-align:right;font-variant-numeric:tabular-nums}.fd-table th{font-size:9px;color:var(--fd-muted);text-transform:uppercase;font-weight:400}.fd-table th:first-child,.fd-table td:first-child{text-align:left}.fd-table td:nth-child(2){white-space:nowrap}.fd-table td:last-child{font-size:10px;color:var(--fd-muted)}.fd-table td.fd-unknown{color:#f7b358}.fd-table td i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--fd-color);margin-right:7px}.fd-table tfoot td{font-weight:500;border-top:1px solid #567087}.fd-card p,.fd-method{font-size:11px;color:var(--fd-muted);line-height:1.55}.fd-settlement dl{display:grid;grid-template-columns:1fr auto;gap:15px 12px;margin:16px 0 25px}.fd-settlement dt{color:var(--fd-muted)}.fd-settlement dd{margin:0;font-variant-numeric:tabular-nums}.fd-settlement dt:nth-last-of-type(1),.fd-settlement dd:last-child{padding-top:12px;border-top:1px solid var(--fd-line);color:#dce7f2}.fd-period-table{margin-top:12px}.fd-period-table .fd-table{max-height:320px}.fd-period-table th{position:sticky;top:0;background:#19263b}.fd-method{padding:14px 2px}.fd-method summary{cursor:pointer}.fd-method li{margin:5px 0}
.fd-workspace .fd-chart,.fd-workspace .fd-energy-chart{background:transparent!important;color:inherit;border:0;padding:0;height:auto;min-height:0;display:flex;flex-direction:column}.fd-workspace .scada-plot{height:280px!important;min-height:280px!important;flex:none!important}.fd-workspace .fd-energy-chart .scada-plot{height:225px!important;min-height:225px!important}.fd-workspace .scada-range-toolbar{display:none}.fd-workspace .scada-display-toolbar{gap:5px;flex-wrap:wrap}.fd-workspace .scada-display-toolbar button,.fd-workspace .scada-display-toolbar select{font-size:10px;min-height:26px;padding:4px 6px}.fd-workspace .scada-display-toolbar label{font-size:10px}.fd-workspace .scada-display-toolbar input[type=checkbox]{min-height:0;padding:0}.fd-workspace .scada-navigation-row,.fd-workspace .scada-load-row,.fd-workspace .scada-chart-status{font-size:10px}.fd-workspace .scada-load-row{display:none}.fd-workspace .scada-series-panel{font-size:11px;padding:4px 0}.fd-workspace .scada-series-panel summary{margin:0;line-height:1.5;padding:6px 0}.fd-workspace .scada-cursor-caption{max-width:calc(100% - 100px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fd-workspace .scada-compact-legend{margin:3px 0}.fd-workspace .scada-chart-actions{flex-wrap:wrap}
.fd-workspace :is(.fd-chart,.fd-energy-chart):is(:fullscreen,.fw-fullscreen-fallback){position:fixed;inset:0;z-index:2147483000;width:100vw;height:100dvh;background:#19263b!important;padding:16px 24px;overflow:hidden;display:flex;flex-direction:column}.fd-workspace :is(.fd-chart,.fd-energy-chart):is(:fullscreen,.fw-fullscreen-fallback) .scada-plot{height:auto!important;min-height:200px!important;flex:1 1 0!important}.fd-workspace :is(.fd-chart,.fd-energy-chart):is(:fullscreen,.fw-fullscreen-fallback) .scada-range-toolbar{display:flex}
@media(min-width:1800px){.fd-kpis{grid-template-columns:repeat(8,minmax(0,1fr))}.fd-kpi{padding:12px}.fd-kpi strong{font-size:20px}.fd-kpi-title{font-size:10px}.fd-kpi small{min-height:27px}}
@media(max-width:1100px){.fd-grid{grid-template-columns:1fr}.fd-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.fd-kpi strong{font-size:20px}.fd-toolbar-end{margin-left:0}}
@media(max-width:700px){.fd-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.fd-kpi{padding:10px}.fd-kpi strong{font-size:18px}.fd-card{padding:10px}.fd-workspace{padding:8px}.fd-toolbar-end{flex-wrap:wrap}.fd-kpi-title{font-size:10px}.fd-context{gap:7px}.fd-card h3{font-size:11px}}
.fd-workspace .fd-card .scada-range-toolbar,.fd-workspace .fd-card .scada-load-row{display:none!important}
.fd-workspace .fd-card :is(.fd-chart,.fd-energy-chart):is(:fullscreen,.fw-fullscreen-fallback) .scada-range-toolbar{display:flex!important}
.fd-workspace .fd-card :is(.fd-chart,.fd-energy-chart){background:#19263b!important}

/* Natural card height: shared chart height:100% must not include the heading twice. */
.fd-workspace .fd-grid{align-items:start;grid-template-columns:minmax(0,1.75fr) minmax(320px,1fr)}
.fd-workspace .fd-card{height:auto;min-height:0;overflow:visible;display:flex;flex-direction:column}
.fd-workspace .fd-card h3{flex:none;flex-wrap:wrap}
.fd-workspace .fd-card .emi-technical-view.emi-scada-history:not(:fullscreen):not(.fw-fullscreen-fallback){height:auto!important;min-height:0!important;max-height:none!important;flex:none;padding:0!important;overflow:visible;gap:6px}
.fd-workspace .fd-card .emi-technical-view.emi-scada-history{background:var(--panel,#19263b)!important}
.fd-workspace .fd-kpi,.fd-workspace .fd-card,.fd-workspace .fd-period-table th{background:var(--panel,#19263b)}
.fd-workspace .fd-chart-note{margin:12px 0 0;font-size:10px}
.fd-workspace .scada-compact-legend{display:flex;flex-wrap:wrap;max-height:none;gap:4px 10px}
.fd-workspace .scada-compact-legend button{white-space:normal;text-align:left}
.fd-workspace .scada-series-panel{flex:none;max-width:100%;min-width:0}
.fd-workspace .fd-card .emi-technical-view.emi-scada-history:is(:fullscreen,.fw-fullscreen-fallback){height:100dvh!important;min-height:0!important;max-height:none!important;overflow:auto;padding:16px 24px!important}
@media(max-width:1100px){.fd-workspace .fd-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.fd-workspace .fd-card .emi-technical-view.emi-scada-history:is(:fullscreen,.fw-fullscreen-fallback){padding:12px!important}}
