.report-workspace { min-width:0; }
.report-navigation { display:flex; justify-content:flex-end; align-items:center; gap:4px 12px; margin-bottom:4px; }
.report-sections { flex:0 1 auto; min-width:0; max-width:100%; }
.report-sections .q-tab { min-height:40px; }
.page-heading>.customer-tools:has(.report-heading-tabs) { gap:0; }
.customer-tools>.report-heading-tabs { flex:1 1 auto; width:auto; margin:0; min-width:0; }
.desktop-erp .page-heading>.customer-tools:has(.report-heading-tabs) { flex:1 1 420px; }
.shell:not(.desktop-erp) .page-heading>.customer-tools:has(.report-heading-tabs) { order:3; flex:1 0 100%; margin:4px 0 0; }
.report-list-toggle { flex:0 0 auto; }
.report-selection-hint { margin:6px 0 10px; }
.ready-report-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:12px; margin-bottom:12px; }
.ready-report-card { display:flex; align-items:center; gap:12px; padding:17px; min-height:102px; border:1px solid var(--line,#a5b4ad); border-radius:8px; background:var(--panel,#fff); color:inherit; text-align:left; cursor:pointer; font:inherit; }
.ready-report-card>span { flex:1; }
.ready-report-card strong { display:block; font-size:15px; }
.ready-report-card small { display:block; font-size:12px; line-height:1.45; margin-top:7px; color:var(--muted,#58685f); }
.ready-report-card>.q-icon { color:var(--q-primary,#00622d); }
.ready-report-card:hover,.ready-report-card:focus-visible { outline:2px solid var(--q-primary,#00622d); outline-offset:1px; }
.ready-report-card.selected { border:2px solid var(--q-primary,#00622d); padding:16px; background:var(--surface,#eaf2ed); }
.ready-report-card.energy { border-left:5px solid var(--q-primary,#00622d); }
.ready-report-controls,.energy-overview { margin-bottom:16px; }
.energy-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(215px,1fr)); gap:10px; }
.energy-metrics>div { padding:14px; border:1px solid var(--line,#b6c4bc); border-radius:6px; background:var(--panel,#fff); }
.energy-metrics span { display:block; min-height:36px; font-size:12px; }
.energy-metrics strong { display:block; margin-top:8px; font-size:21px; font-variant-numeric:tabular-nums; }
.energy-warning { background:var(--surface,#f4f0de); border-left:3px solid #a97514; }
.energy-warning-action { display:flex; align-items:center; gap:16px; width:100%; border:0; border-left:3px solid #a97514; padding:14px 16px; text-align:left; color:inherit; font:inherit; cursor:pointer; }
.energy-warning-action>span { flex:1; }
.energy-warning-action small { display:block; margin-top:4px; color:var(--q-primary,#00622d); font-weight:600; }
.energy-warning-action:hover,.energy-warning-action:focus-visible { outline:2px solid var(--q-primary,#00622d); outline-offset:-2px; }
.energy-warning-action:disabled { cursor:wait; opacity:.65; }
.body--dark .energy-warning-action small { color:#9fe1b4; }
.energy-editor { width:760px; max-width:96vw!important; }
.energy-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.body--dark .ready-report-card,.body--dark .energy-metrics>div { background:#202c26; }
.body--dark .ready-report-card.selected,.body--dark .energy-warning { background:#2b3d32; }
.body--dark .ready-report-card small { color:#bdcdc2; }
@media(max-width:700px) { .ready-report-cards,.energy-form-grid { grid-template-columns:1fr; } .energy-form-grid>span { display:none; } }
.report-builder,.report-result { margin-bottom:16px; }
.report-main-toolbar,.report-date-toolbar,.report-result-head,.report-totals { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.report-main-toolbar { gap:8px; }
.report-main-toolbar>.q-field { width:220px; }
.report-date-toolbar { margin:14px 0; }
.report-date-toolbar>.q-field { width:200px; }
.report-settings-body { padding-top:14px; }
.report-filter-group { border:1px solid var(--line,#a5b4ad); border-radius:6px; padding:10px; margin-top:8px; }
.report-filter-group .report-filter-group { margin-left:18px; }
.report-filter-group-head,.report-condition,.report-range,.report-sort-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.report-filter-group-head>.q-field { width:220px; }
.report-condition { margin-top:10px; }
.report-condition>.q-field { flex:0 1 210px; min-width:150px; }
.report-condition>.report-condition-value { flex:1 1 290px; }
.report-range>.q-field { flex:1; min-width:130px; }
.report-condition .q-chip { max-width:100%; }
.report-condition .q-chip__content { white-space:normal; }
.report-sort-row { margin-bottom:10px; }
.report-sort-row>.q-field { width:260px; }
.report-columns-editor { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.report-columns-editor>div:first-child { display:flex; flex-direction:column; align-items:flex-start; }
.report-order-row { display:flex; align-items:center; gap:4px; border-bottom:1px solid var(--line,#b7c2bc); padding:3px 0; }
.report-order-row>span { flex:1; }
.report-result-head { justify-content:space-between; margin-bottom:12px; }
.report-totals { background:var(--surface,#edf3ef); padding:10px; margin-bottom:10px; font-size:13px; }
.report-totals>span { margin-right:14px; }
.report-sheet { overflow:auto; max-height:65vh; background:var(--panel,#fff); border:1px solid var(--line,#9caaa2); }
.report-sheet table { border-collapse:separate; border-spacing:0; width:max-content; min-width:100%; table-layout:fixed; font-size:13px; }
.report-sheet th,.report-sheet td { padding:8px 10px; border-right:1px solid #cad3cd; border-bottom:1px solid #d7ded9; min-width:90px; max-width:600px; overflow-wrap:anywhere; }
.report-sheet th { text-align:left; background:var(--surface,#e1e9e3); font-weight:600; position:relative; }
.report-sheet thead th { position:sticky; top:0; z-index:3; }
.report-sheet .numeric { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.report-sheet .report-index { min-width:44px; width:44px; max-width:44px; text-align:center; background:var(--surface,#e8ede9); color:#627369; position:sticky; left:0; z-index:1; }
.report-sheet thead .report-index { z-index:4; }
.report-row-index { width:44px; }
.report-group td { background:var(--surface,#e7efe9); }
.report-group button { color:inherit; background:none; border:0; cursor:pointer; text-align:left; display:flex; align-items:center; gap:5px; min-height:25px; font:inherit; }
.report-compact-group td { font-weight:600; }
.report-compact-group button { width:100%; }
.report-sheet-compact thead .numeric { white-space:normal; }
.report-subtotal td { font-weight:600; background:var(--surface,#f3f7f4); }
.report-sheet tfoot td,.report-sheet tfoot th { position:sticky; bottom:0; background:var(--surface,#dce9df); font-weight:700; border-top:2px solid #83a48d; z-index:2; }
.report-sheet tfoot .report-index { z-index:3; }
.report-resize { position:absolute; right:0; top:0; height:100%; width:7px; cursor:col-resize; touch-action:none; }
.report-resize:hover { background:#448560; }
.report-empty { padding:30px!important; text-align:center; }
.report-dirty { border-left:3px solid #ad7d28; margin-bottom:12px; }
.report-error { margin-bottom:12px; border:1px solid currentColor; }
.body--dark .report-sheet td,.body--dark .report-sheet th { border-color:#415149; }
.body--dark .report-sheet { background:#202c26; }
.body--dark .report-sheet th,.body--dark .report-group td,.body--dark .report-sheet .report-index,.body--dark .report-sheet tfoot td { background:#2b3d32; color:inherit; }
.body--dark .report-subtotal td,.body--dark .report-totals { background:#24362b; }
@media(max-width:700px) { .report-main-toolbar>.q-field,.report-date-toolbar>.q-field { width:100%; } .report-columns-editor { grid-template-columns:1fr; } .report-condition>.q-field,.report-condition>.report-condition-value { flex:1 1 100%; } }
