[hidden]{display:none!important}
:root{color:#234357;background:#f3f7fa;font-family:Arial,"Microsoft JhengHei",sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #bfd5e2;border-radius:9px;padding:9px 15px;background:#fff;color:#234357}button:disabled{opacity:.5;cursor:default}input,select,textarea{border:1px solid #bfd5e2;border-radius:7px;padding:8px;min-width:0;width:100%;background:#fff;color:#234357}input,select{height:38px}textarea{min-height:68px}label{display:grid;gap:5px;font-size:13px}h1{font-size:26px;margin:0}h2{font-size:19px;margin:0 0 12px}p{line-height:1.55}small,.muted{color:#647d8d}.work-shell{display:grid;grid-template-columns:205px minmax(0,1fr);min-height:100vh}.work-sidebar{background:#e8f1f7;padding:20px}.work-sidebar a{display:block;margin-bottom:18px;color:#234357}.work-sidebar nav button{width:100%;margin-bottom:8px;text-align:left}.active{background:#dceef8!important;border-color:#87b8d5!important;font-weight:700}.work-main{padding:20px;min-width:0}.work-topbar,.actions,.filters,.tabs{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.work-topbar{justify-content:space-between}.filters{margin:18px 0}.filters label{width:150px}.filters label.search{flex:1;min-width:180px}.tabs{margin:12px 0}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.stat{padding:13px;background:#fff;border:1px solid #d3e4ee;border-radius:12px}.stat strong{display:block;font-size:22px;margin-top:6px}.panel{background:#fff;border:1px solid #d3e4ee;border-radius:12px;padding:14px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:10px 8px;border-bottom:1px solid #e0eaf1;vertical-align:top}th{background:#f0f6fa;white-space:nowrap}td small{display:block;max-width:260px}.numeric{text-align:right;white-space:nowrap}.warning{color:#985b00;background:#fff8e5;padding:7px 10px;border-radius:6px}.status{min-height:25px;overflow-wrap:anywhere}.error{color:#b42318}.success{color:#267246}.green{background:#e2f4e9;color:#216f44;border-color:#8cc4a0}.yellow{background:#fff2cc;color:#8a6000;border-color:#dbc273}.red{background:#fbe5e5;color:#a42c2c;border-color:#e5b0b0}.badge{display:inline-block;padding:3px 6px;border-radius:5px;background:#edf3f7;font-size:12px;margin:3px 0}.row-actions{display:flex;gap:5px;white-space:nowrap}dialog{border:1px solid #b6cddb;border-radius:15px;padding:0;width:min(860px,94vw);max-height:92vh;color:#234357}dialog::backdrop{background:#153c5866}.dialog-head{padding:16px 20px;border-bottom:1px solid #d5e4ed}.form-content{padding:18px 20px;max-height:68vh;overflow:auto}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.form-grid .wide{grid-column:1/-1}fieldset{border:1px solid #d6e5ee;border-radius:10px;padding:14px;margin:16px 0}legend{padding:0 5px;font-weight:bold}.dialog-footer{padding:12px 20px;background:#f3f8fb;border-top:1px solid #d5e4ed;display:flex;justify-content:flex-end;gap:8px}.read-detail{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.pagination{justify-content:flex-end;margin-top:12px}.empty{text-align:center;padding:35px}.notice{font-size:13px;margin:8px 0}.trend-row{display:grid;grid-template-columns:80px minmax(60px,1fr) 150px;gap:12px;align-items:center;margin:8px 0;font-size:13px}.trend-bar{height:12px;border-radius:6px;background:#61a8ce}.trend{margin:14px 0}.void{opacity:.55}@media(max-width:700px){.work-shell{display:block}.work-sidebar{padding:10px}.work-main{padding:12px}.stats{grid-template-columns:1fr}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filters label{width:calc(50% - 8px)}.trend-row{grid-template-columns:66px 1fr 100px}.dialog-footer button{flex:1}th,td{padding:8px 6px}.form-content{padding:12px}}@mediaprint{.work-sidebar,.filters,.tabs,.actions,.pagination,.oa-language-switch,button{display:none!important}.work-shell{display:block}.work-main{padding:0}.table-wrap{overflow:visible}.stats{grid-template-columns:repeat(3,1fr)}body{background:white}th,td{font-size:10px;padding:4px}.panel{border:0;padding:0}}

#optional-fields{border:1px solid #d6e5ee;border-radius:10px;padding:12px;margin-top:16px}#optional-fields>summary{cursor:pointer;font-weight:bold;margin-bottom:12px}.attachment-field{margin-top:14px}.attachment-field input{height:auto}input[readonly]{background:#eef5f9;font-weight:bold}#existing-attachments a,td a{display:inline-block;margin:5px 8px 5px 0}.stats{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}

body.report-mode{background:#f4f6f9}.report-mode .work-main{max-width:1480px;margin:auto}.management-report{background:#fff;border:1px solid #dce3eb;border-radius:12px;padding:24px 28px;margin:20px 0 0;color:#203249}.report-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #24445e;padding-bottom:18px;margin-bottom:22px}.report-heading h2{font-size:28px;letter-spacing:1px;margin:5px 0 8px}.report-heading p{margin:0;color:#667588;font-size:13px}.report-eyebrow{letter-spacing:2px}.report-asof{font-size:12px;text-align:right;color:#68768a}.report-asof strong{display:block;color:#203249;font-size:18px;margin-top:6px}.report-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px}.report-kpi{border-left:3px solid #5183a3;padding:8px 15px;background:#f7f9fc}.report-kpi span{font-size:13px;color:#56687c}.report-kpi strong{display:block;font-size:23px;font-weight:700;margin:9px 0;white-space:normal;font-variant-numeric:tabular-nums}.report-kpi small{font-size:11px;color:#77879a}.report-footnote{font-size:12px;color:#6b798a;margin:14px 0 0;line-height:1.6}.analysis-block{margin-top:26px}.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:15px;margin-bottom:10px}.section-heading h3{margin:0;font-size:17px;color:#203249}.section-heading span{font-size:12px;color:#738295}.analysis-table th{background:#edf2f7;color:#46586e}.analysis-table td,.analysis-table th{padding:11px 10px;font-size:13px;font-variant-numeric:tabular-nums}.report-mode #management-report+.stats{display:none}.report-mode .panel{border-radius:0 0 12px 12px;border-top:0}.report-mode #columns th{background:#24445e;color:#fff;padding:13px 10px}.report-mode #rows td{padding:14px 10px;font-size:14px;font-variant-numeric:tabular-nums}.month-cell{font-weight:700;color:#2b4965}.month-empty{color:#97a2b1;background:#fcfdfe}.month-empty td{font-size:13px!important}.coverage{font-size:12px;white-space:nowrap}.coverage.complete{color:#46647a}.coverage.partial{color:#917140}.report-mode .status:empty{display:none}.form-content .status:empty{display:none!important}.report-mode .notice{background:transparent!important;border:0!important;padding:0!important;color:#6b798a!important}.report-mode .demo-switch,.report-mode .contact-demo-switch,.report-mode .work-demo-switch,.report-mode .oa-demo-switch{display:none!important}
@media(max-width:850px){.management-report{padding:18px 15px}.report-heading h2{font-size:22px}.section-heading{display:block}.section-heading span{display:block;margin-top:5px}.report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.report-kpi strong{font-size:18px}}
@mediaprint{@page{size:A4 landscape;margin:12mm}.work-topbar,#entry-notice,#status,#fee-notice,.demo-switch,.oa-demo-switch,.oa-language-switch,.filters,.tabs{display:none!important}.work-main{max-width:none!important;width:100%!important;margin:0!important;padding:0!important}.management-report{border:0;border-radius:0;padding:0;margin:0 0 15px}.report-heading{margin-bottom:12px;padding-bottom:10px}.report-heading h2{font-size:20px}.report-kpis{grid-template-columns:repeat(4,1fr);gap:10px}.report-kpi strong{font-size:16px}.report-kpi small,.report-footnote{font-size:9px}.analysis-block{margin-top:12px}.section-heading h3{font-size:13px}.analysis-table td,.analysis-table th,.report-mode #rows td,.report-mode #columns th{font-size:10px!important;padding:6px 8px!important}.report-mode .panel{padding:0}.table-wrap{overflow:visible}.analysis-block{break-inside:avoid}thead{display:table-header-group}tr{break-inside:avoid}.coverage{font-size:9px}}

html body.oa-ui.report-mode .report-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}html body.oa-ui.report-mode .report-kpi strong{font-size:20px}
html body.oa-ui #energy-app table.oa-table-stacked{display:table!important;min-width:760px;width:100%;border-collapse:collapse}
html body.oa-ui #energy-app table.oa-table-stacked thead{display:table-header-group!important;position:static!important;width:auto!important;height:auto!important;clip-path:none!important;overflow:visible!important}
html body.oa-ui #energy-app table.oa-table-stacked tbody{display:table-row-group!important;width:auto!important}
html body.oa-ui #energy-app table.oa-table-stacked tr{display:table-row!important;border:0!important;border-radius:0!important;background:transparent!important;padding:0!important}
html body.oa-ui #energy-app table.oa-table-stacked td{display:table-cell!important;padding:11px 10px!important;border-bottom:1px solid #e3e8ef!important;max-width:none!important}
html body.oa-ui #energy-app table.oa-table-stacked td::before{display:none!important;content:none!important}
html body.oa-ui.report-mode .management-report{box-shadow:none!important;background:#fff!important}
html body.oa-ui.report-mode #columns th{background:#24445e!important;color:#fff!important}
html body.oa-ui.report-mode .analysis-table th{background:#edf2f7!important;color:#40546b!important}
@media(max-width:850px){html body.oa-ui.report-mode .report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@mediaprint{html body.oa-ui #energy-app table.oa-table-stacked{min-width:0!important}html body.oa-ui #energy-app table.oa-table-stacked td{font-size:10px!important;padding:5px 8px!important}html body.oa-ui.report-mode .report-kpis{grid-template-columns:repeat(4,1fr)}html body.oa-ui.report-mode .report-kpi strong{font-size:16px}html body.oa-ui.report-mode .table-wrap{border-radius:0!important;overflow:visible!important}}
html body.oa-ui.report-mode #rows td.numeric,html body.oa-ui.report-mode .analysis-table td.numeric{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
html body.oa-ui.report-mode #rows .month-cell,html body.oa-ui.report-mode .coverage{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}

.money-kpi>small{display:block;margin-top:7px}.money-kpi>strong{margin:3px 0!important}.report-kpi{min-width:0}.report-kpi strong{overflow-wrap:normal!important;word-break:normal!important}

html body.oa-ui.report-mode .management-report{padding:12px 18px!important;margin-top:10px!important}html body.oa-ui.report-mode .report-heading{padding-bottom:8px;margin-bottom:10px}html body.oa-ui.report-mode .report-heading h2{font-size:21px;margin:2px 0 4px}html body.oa-ui.report-mode .report-kpis{gap:10px}html body.oa-ui.report-mode .report-kpi{padding:5px 10px}html body.oa-ui.report-mode .report-kpi strong{font-size:17px;margin:3px 0!important}html body.oa-ui.report-mode .report-kpi small{font-size:11px;margin-top:3px}html body.oa-ui.report-mode .report-footnote{margin:7px 0 0;font-size:11px}html body.oa-ui.report-mode .analysis-block{margin-top:12px}html body.oa-ui.report-mode .section-heading{margin-bottom:5px}html body.oa-ui.report-mode .section-heading h3{font-size:15px}html body.oa-ui #energy-app table.oa-table-stacked td,html body.oa-ui.report-mode #rows td{padding:5px 8px!important;font-size:13px!important;line-height:1.3!important}html body.oa-ui.report-mode #columns th,html body.oa-ui.report-mode .analysis-table th{padding:7px 8px!important;font-size:12px!important}html body.oa-ui.report-mode .panel{padding:8px 10px!important}html body.oa-ui.report-mode td small{font-size:11px;line-height:1.2}html body.oa-ui.report-mode .analysis-extra{margin-top:8px;border-top:1px solid #e3e8ef;padding-top:7px}html body.oa-ui.report-mode .analysis-extra>summary{font-size:12px;color:#58738b;cursor:pointer}html body.oa-ui.report-mode .filters{margin:8px 0!important}html body.oa-ui.report-mode .tabs{margin:6px 0!important}html body.oa-ui.report-mode .work-topbar{padding-top:4px!important;padding-bottom:4px!important;min-height:42px!important}html body.oa-ui.report-mode .coverage{font-size:11px}
@mediaprint{html body.oa-ui.report-mode .management-report{padding:0!important}html body.oa-ui.report-mode .report-heading h2{font-size:18px}html body.oa-ui.report-mode .analysis-extra:not([open]){display:none}html body.oa-ui #energy-app table.oa-table-stacked td,html body.oa-ui.report-mode #rows td{font-size:10px!important;padding:4px 6px!important}}

html body.oa-ui.report-mode .table-wrap :is(th,td),html body.oa-ui.report-mode .table-wrap td.numeric{text-align:center!important}html body.oa-ui.report-mode .total-column{font-weight:700;background:#f1f6f9!important}html body.oa-ui.report-mode #columns th:last-child{background:#17384d!important}

html body.oa-ui #energy-app .table-wrap :is(th,td){text-align:center!important}

html body.oa-ui #energy-app .table-wrap :is(th,td){padding:5px 8px!important;font-size:13px!important;line-height:1.3!important}html body.oa-ui #energy-app .table-wrap td.numeric{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}html body.oa-ui #energy-app .table-wrap .total-column{font-weight:700;background:#f1f6f9!important}html body.oa-ui #energy-app .row-actions{justify-content:center}html body.oa-ui #energy-app .table-wrap button{padding:4px 8px!important;min-height:28px!important;font-size:12px!important}html body.oa-ui #energy-app .stats{gap:8px;margin:10px 0}html body.oa-ui #energy-app .stat{padding:8px 12px}html body.oa-ui #energy-app .stat strong{font-size:18px;margin-top:3px}html body.oa-ui #energy-app .panel{padding:8px 10px}html body.oa-ui #energy-app .filters{margin:8px 0}html body.oa-ui #energy-app .tabs{margin:6px 0}

html body.oa-ui #energy-app #status:empty{display:none!important}html body.oa-ui #energy-app .work-topbar{padding-top:4px!important;padding-bottom:4px!important;min-height:42px!important}html body.oa-ui #energy-app #entry-notice,html body.oa-ui #energy-app #fee-notice{margin:4px 0!important;padding:4px 8px!important;font-size:12px!important}html body.oa-ui #energy-app .stat{padding:7px 12px!important}html body.oa-ui #energy-app .stat small{font-size:11px!important}

/* Compact time bands: consumption above, amount-per-kWh below. */
#energy-app .slot-cell small{display:block;font-size:11px;color:#55758a;margin:0}
#slot-fields{grid-template-columns:repeat(3,minmax(100px,1fr));gap:8px}
#slots{margin:10px 0;padding:10px;border:1px solid #c8dce9;border-radius:8px}
#manage-sites{font-size:13px}#files-content form{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
#files-content a{display:inline-block;margin:5px}#files-dialog{width:min(850px,95vw)}
#energy-app .table-wrap{overflow-x:auto}#energy-app .slot-cell{min-width:95px}

/* Keep each month together, with an opening band and closing subtotal. */
html body.oa-ui #energy-app .table-wrap .detail-month-heading td{text-align:left!important;background:#e3eef5!important;color:#17384d;font-weight:700;padding:7px 12px!important;border-top:2px solid #a9c3d5!important}
html body.oa-ui #energy-app .table-wrap .detail-month-subtotal td{background:#edf4f8!important;font-weight:700;border-top:1px solid #bfd0dc!important;border-bottom:2px solid #bfd0dc!important}
@mediaprint{#energy-app .detail-month-heading{break-after:avoid}#energy-app .detail-month-subtotal{break-before:avoid}}

/* Reading pass: primary figures first; original detailed columns remain available. */
html body.oa-ui #energy-app .energy-data-table [hidden]{display:none!important}
html body.oa-ui #energy-app .energy-data-table{table-layout:auto;min-width:0!important;width:100%!important}
html body.oa-ui #energy-app .energy-data-table td.numeric{text-align:right!important;font-variant-numeric:tabular-nums;font-feature-settings:'tnum';padding-right:14px!important}
html body.oa-ui #energy-app .energy-data-table th{text-align:right!important;white-space:normal;line-height:1.3}
html body.oa-ui #energy-app .energy-data-table th:first-child,html body.oa-ui #energy-app .energy-data-table th:nth-child(2){text-align:left!important}
html body.oa-ui #energy-app .energy-data-table td:first-child,html body.oa-ui #energy-app .energy-data-table td:nth-child(2){text-align:left!important}
html body.oa-ui #energy-app .energy-data-table td{height:auto;vertical-align:middle;padding:7px 10px!important}
html body.oa-ui #energy-app .energy-data-table .total-column{font-size:14px!important;color:#173e57;background:#edf5fa!important;white-space:nowrap;font-weight:750}
html body.oa-ui #energy-app .energy-data-table td small{display:block;line-height:1.3;color:#5b7182;font-size:11px!important}
html body.oa-ui #energy-app .energy-row-tools{white-space:nowrap;min-width:225px;text-align:right!important}
html body.oa-ui #energy-app .energy-row-tools>button{margin:0 3px 0 0!important}
.energy-actions-menu{display:inline-block;vertical-align:middle;position:relative;font-size:12px;text-align:left}
.energy-actions-menu>summary{cursor:pointer;border:1px solid #bed1df;border-radius:7px;padding:6px 8px;min-height:28px;box-sizing:border-box;background:#f4f9fc}
.energy-actions-menu[open]>button{display:block!important;position:relative;margin-top:4px!important;width:100%}
html body.oa-ui #energy-app .energy-expanded-row td{padding:10px 12px!important;background:#f5f9fc!important}
.energy-number-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px;text-align:left}
.energy-number-grid span{display:block;font-size:12px;color:#567184;margin-bottom:4px}
.energy-number-grid strong{display:block;font-size:14px;font-variant-numeric:tabular-nums}
.energy-number-grid small{display:block;color:#577081;font-weight:400}
.energy-number-note{font-size:12px;text-align:left;color:#577081;margin:8px 0 0}
.energy-reading-bar{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin:0 0 8px;font-size:12px}
.energy-reading-hint{margin-right:auto;color:#49687d}
.energy-reading-bar label{display:flex;align-items:center;gap:5px;white-space:nowrap}
html body.oa-ui #energy-app .energy-reading-bar select{width:135px;min-height:32px;height:32px;padding:4px 7px;font-size:12px}
html body.oa-ui #energy-app .energy-reading-bar button{min-height:32px;padding:5px 8px;font-size:12px}
.energy-analysis,.energy-explanation{font-size:12px;display:inline-block;margin:8px 12px 0 0;vertical-align:top}
.energy-analysis>summary,.energy-explanation>summary{cursor:pointer;color:#366484;padding:3px 0}
.energy-analysis[open],.energy-explanation[open]{display:block}
.energy-insight{display:flex;gap:10px;flex-wrap:wrap;padding:6px 0 0;color:#2d5872;font-size:12px}
.energy-insight span{font-variant-numeric:tabular-nums}
html body.oa-ui.report-mode .report-heading{border-bottom:1px solid #bbcfdd;margin-bottom:8px;padding-bottom:5px}
html body.oa-ui.report-mode .report-heading h2{font-size:18px;margin:0 0 2px}
html body.oa-ui.report-mode .report-asof strong{font-size:13px;margin-top:2px}
html body.oa-ui.report-mode .report-kpi{border-left-width:2px;background:#f4f8fb}
html body.oa-ui.report-mode .report-kpi strong{font-size:17px!important}
html body.oa-ui #energy-app .stats .stat{min-width:0}
.energy-target-month{outline:2px solid #327ea8;outline-offset:-2px;background:#e3f2fc!important}
.energy-data-table td:has(.warning){white-space:normal!important}
@media(max-width:700px){
 .energy-reading-hint{width:100%;font-size:11px}
 .energy-reading-bar{justify-content:flex-start}
 html body.oa-ui #energy-app .energy-row-tools{min-width:0;white-space:normal}
 html body.oa-ui #energy-app .energy-data-table.energy-compact-columns thead{display:none!important}
 html body.oa-ui #energy-app .energy-data-table.energy-compact-columns,html body.oa-ui #energy-app .energy-data-table.energy-compact-columns tbody{display:block!important;min-width:0!important}
 html body.oa-ui #energy-app .energy-data-table.energy-compact-columns tr{display:grid!important;grid-template-columns:1fr 1fr;padding:5px!important;border-bottom:1px solid #cddde7!important;gap:3px 5px}
 html body.oa-ui #energy-app .energy-data-table.energy-compact-columns td{display:block!important;min-width:0;padding:3px 5px!important;white-space:normal!important;text-align:left!important;font-size:12px!important;border:0!important}
 html body.oa-ui #energy-app .energy-data-table.energy-compact-columns td[hidden],html body.oa-ui #energy-app .energy-data-table.energy-compact-columns tr[hidden]{display:none!important}
 html body.oa-ui #energy-app .energy-data-table.energy-compact-columns td::before{display:block!important;content:attr(data-label)!important;position:static;font-size:10px;color:#567184;margin-bottom:2px}
 html body.oa-ui #energy-app .energy-data-table.energy-compact-columns .detail-month-heading td,html body.oa-ui #energy-app .energy-data-table.energy-compact-columns .energy-expanded-row td,html body.oa-ui #energy-app .energy-data-table.energy-compact-columns td[colspan]{grid-column:1/-1}
 html body.oa-ui #energy-app .energy-data-table.energy-compact-columns td[colspan]::before{display:none!important}
 html body.oa-ui #energy-app .energy-data-table.energy-compact-columns .total-column{font-size:14px!important}
 html body.oa-ui #energy-app .energy-data-table.energy-compact-columns .energy-row-tools::before{display:none!important}
 html body.oa-ui #energy-app .energy-data-table.energy-compact-columns .energy-row-tools>button{min-height:34px!important;padding:5px!important;font-size:11px!important}
 .energy-number-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .energy-insight{font-size:11px}
 html body.oa-ui.report-mode .management-report{padding:8px!important}
 html body.oa-ui.report-mode .report-kpi strong{font-size:14px!important}
}
@mediaprint{
 .energy-reading-bar,.energy-insight,.energy-expand,.energy-actions-menu{display:none!important}
 .energy-analysis{display:block}.energy-analysis>summary,.energy-explanation>summary{display:none}
 html body.oa-ui #energy-app .energy-data-table td.numeric{text-align:right!important}
}
/* Embedded OA shell sets width:auto; flex growth keeps the full workspace usable. */
html body.oa-ui #energy-app>.work-main{flex:1 1 0!important;max-width:none!important;margin-right:0!important}
html body.oa-ui #energy-app #entry-notice,html body.oa-ui #energy-app #fee-notice{display:none!important}
html body.oa-ui #energy-app .energy-reading-bar{border-bottom:1px solid #d8e5ed;padding-bottom:7px}
html body.oa-ui #energy-app .energy-data-table.energy-compact-columns tr:not(.detail-month-heading):not(.detail-month-subtotal):not(.energy-expanded-row):hover td{background:#f5fafe}
html body.oa-ui #energy-app .energy-data-table .detail-month-subtotal td:first-child{white-space:nowrap}

/* Explanations share one compact line until opened. */
html body.oa-ui #energy-app #management-report>.energy-analysis:not([open]),html body.oa-ui #energy-app #management-report>.energy-explanation:not([open]),html body.oa-ui #energy-app #management-report>.analysis-extra:not([open]){display:inline-block!important;width:auto!important;margin:7px 12px 0 0!important;padding:0!important;vertical-align:top}
html body.oa-ui #energy-app #management-report>.energy-analysis>summary,html body.oa-ui #energy-app #management-report>.energy-explanation>summary,html body.oa-ui #energy-app #management-report>.analysis-extra>summary{font-size:12px!important;padding:3px 0!important;min-height:0!important}

#energy-print-heading{display:none}
@mediaprint{
 html body.oa-ui #energy-app #energy-print-heading{display:block!important;margin:0 0 3mm!important;color:#111}
 #energy-print-heading h2{font-size:14pt!important;margin:0 0 2mm!important}#energy-print-heading p{font-size:9pt!important;margin:0!important}
 html body.oa-ui #energy-app .table-wrap,html body.oa-ui #energy-app .panel{overflow:visible!important;border:0!important;margin:0!important;padding:0!important}
 html body.oa-ui #energy-app .energy-data-table{min-width:0!important;width:100%!important}
 html body.oa-ui #energy-app .energy-data-table :is(th,td){font-size:9pt!important;line-height:1.15!important;padding:1.2mm 1.5mm!important;min-width:0!important;height:auto!important;color:#111!important}
 html body.oa-ui #energy-app .energy-data-table :is(.total-column,td.numeric){font-size:9pt!important;padding-right:1.5mm!important}
 html body.oa-ui #energy-app .energy-data-table td small{font-size:8pt!important;line-height:1.15!important}
 html body.oa-ui #energy-app .energy-data-table .slot-cell{min-width:0!important}
 html body.oa-ui #energy-app .energy-data-table tr{break-inside:avoid!important}
 html body.oa-ui #energy-app .energy-data-table thead{display:table-header-group!important}
 html body.oa-ui #energy-app .management-report{margin:0 0 3mm!important;padding:0!important;box-shadow:none!important;border:0!important}
 html body.oa-ui #energy-app .report-heading{display:none!important}
 html body.oa-ui #energy-app .report-kpis{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:2mm!important;margin:0 0 2mm!important}
 html body.oa-ui #energy-app .report-kpi{padding:1mm 2mm!important;min-height:0!important;font-size:8pt!important}
 html body.oa-ui #energy-app .report-kpi strong{font-size:11pt!important;margin:1mm 0!important}
 html body.oa-ui #energy-app .report-kpi small{font-size:7pt!important}
 html body.oa-ui #energy-app .analysis-block{margin:2mm 0!important;padding:0!important}
 html body.oa-ui #energy-app .analysis-table :is(th,td){font-size:8pt!important;line-height:1.15!important;padding:1mm 1.5mm!important}
 html body.oa-ui #energy-app :is(.section-heading,.section-heading h3){font-size:9pt!important;margin:1mm 0!important}
 html body.oa-ui #energy-app .report-footnote{font-size:7pt!important;line-height:1.2!important;margin:1mm 0!important}
 html body.oa-ui #energy-app :is(.energy-analysis,.energy-explanation,.analysis-extra){display:block!important;margin:0!important;padding:0!important}
 html body.oa-ui #energy-app :is(.energy-analysis,.energy-explanation,.analysis-extra)>summary{display:none!important}
 html body.oa-ui #energy-app .detail-month-heading td,html body.oa-ui #energy-app .detail-month-subtotal td{padding:1.2mm 1.5mm!important}
}
@mediaprint{
 html body.oa-ui #energy-app .energy-data-table :is(th,td),html body.oa-ui #energy-app .energy-data-table :is(.total-column,td.numeric){padding:.7mm 1.3mm!important}
 html body.oa-ui #energy-app .section-heading{display:flex!important;align-items:baseline!important;justify-content:space-between!important;gap:3mm!important;margin:.6mm 0!important}
 html body.oa-ui #energy-app .section-heading span{font-size:8pt!important}
 html body.oa-ui #energy-app .analysis-block{margin:1mm 0!important}
 html body.oa-ui #energy-app .energy-data-table,html body.oa-ui #energy-app .table-wrap{box-shadow:none!important}
}
@mediaprint{
 html body.oa-ui #energy-app .energy-data-table tr>:nth-child(1),html body.oa-ui #energy-app .energy-data-table tr>:nth-child(2),html body.oa-ui #energy-app .energy-data-table tr>:nth-child(3){white-space:nowrap!important;word-break:normal!important}
}
@mediaprint{
 html body.oa-ui #energy-app .stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:2mm!important;margin:1mm 0 3mm!important}
 html body.oa-ui #energy-app .stat{box-shadow:none!important;border:0!important;border-left:1px solid #777!important;border-radius:0!important;background:none!important;padding:1mm 2mm!important;min-height:0!important;font-size:8pt!important}
 html body.oa-ui #energy-app .stat strong{font-size:11pt!important;margin:1mm 0!important}.stat small{font-size:7pt!important}
 html body.oa-ui #energy-app .detail-month-heading td{font-size:9pt!important;padding:.7mm 1.3mm!important}
 html body.oa-ui #energy-app .detail-month-subtotal td{font-size:9pt!important;padding:.7mm 1.3mm!important}
}
@mediaprint{html body.oa-ui #energy-app .stats[hidden],html body.oa-ui #energy-app #management-report[hidden]{display:none!important}}
.energy-place-buttons,.water-meter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.energy-place-buttons button{padding:16px;text-align:left;white-space:normal}.energy-place-buttons small{display:block;margin-top:5px}.water-meter-grid{margin:12px 0}.water-meter-grid fieldset{min-width:0;border:1px solid #bdd2df;border-radius:8px;padding:12px}.water-meter-grid label,#energy-water-entry label{display:flex;flex-direction:column;gap:5px;margin:8px 0}#energy-water-entry{width:min(700px,95vw)}#energy-water-entry input{width:100%;box-sizing:border-box}#energy-water-entry .status:empty{display:none}@media(max-width:540px){.energy-place-buttons,.water-meter-grid{grid-template-columns:1fr}.water-meter-grid fieldset{padding:8px}.water-meter-grid{gap:6px}#energy-water-entry .form-content{padding:12px}}
.water-meter-grid fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.water-meter-grid label{min-width:0}#energy-water-entry .dialog-head h2{font-size:1.1rem}#energy-water-entry .form-content>p{margin:5px 0 8px}#energy-water-entry .form-content>label{margin:5px 0}@media(max-width:540px){#energy-water-entry .dialog-head,#energy-water-entry .dialog-footer{padding:10px 12px}#energy-water-entry .water-meter-grid label{margin:4px 0}#energy-water-entry input{min-height:40px}}

/* Compact bill recording: no payment workflow. */
#editor .energy-record-section{border:1px solid #c9d8e5;border-radius:6px;margin:10px 0;padding:8px 12px}#editor .energy-record-section legend{font-weight:600;font-size:14px}#energy-water-entry select{width:100%;min-height:36px}#energy-water-entry [data-tax-label]{font-weight:400;color:#586e82}#editor .form-grid,#energy-water-entry .energy-bill-dates{gap:8px 12px}#editor label{min-width:0}#editor input,#editor select{max-width:100%;box-sizing:border-box}@media(max-width:540px){#energy-water-entry .energy-bill-dates{grid-template-columns:1fr}}

#editor #energy-record-dates .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:540px){#editor #energy-record-dates .form-grid{grid-template-columns:1fr}}

html body #energy-app .energy-row-tools :is(button,summary) { min-height:32px; }
@media (max-width:600px) {
  html body #energy-app :is(.energy-row-tools,.energy-reading-bar,.filters,.actions,.tabs) :is(button,summary,select,input),
  html body #energy-app #manage-sites { min-height:44px!important; min-width:44px; }
  html body #energy-app #manage-sites:not([hidden]) { display:inline-flex; align-items:center; }
}
