:root { --report-value-font-size:14px; --report-dot-size:9px; --report-plot-height:132px; --report-summary-plot-height:157px; --report-caption-font-size:10px; }
.report-section-list { display:grid; gap:var(--ui-space-compact,10px); }
.report-section { width:100%; min-width:0; min-height:40px; padding:var(--ui-space-compact,10px) 0; border:0; border-radius:3px; background:transparent; display:flex; gap:var(--ui-space-compact,10px); align-items:center; text-align:left; position:relative; }
.report-section-open { min-width:0; flex:1; padding:0; border:0; background:none; text-align:left; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.report-section[aria-current=true] { background:white; }
.report-section:hover { background:#e1c16e25; }
.report-section.drop-before::before,.report-section.drop-after::after { content:''; position:absolute; height:2px; background:var(--brass); left:0; right:0; }
.report-section.drop-before::before { top:-6px; }
.report-section.drop-after::after { bottom:-6px; }
.report-toolbar { display:flex; gap:var(--ui-space,25px); justify-content:flex-end; align-items:center; min-width:0; }
.has-reporting main > .page-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:var(--ui-space,25px); }
.has-reporting main > .page-heading>h1 { grid-column:1 / -1; grid-row:1; }
.has-reporting main > .page-heading .report-toolbar { grid-column:2; grid-row:2; align-self:center; margin-top:var(--ui-space,25px); }
.report-heading-controls { grid-column:1; grid-row:2; display:flex; align-items:center; min-width:0; min-height:25px; gap:var(--ui-space,25px); overflow-x:auto; margin-top:var(--ui-space,25px); }
.report-heading-controls .report-section-navigator { flex:0 1 350px; min-width:200px; }
.report-snapshot { margin:var(--ui-space,25px) 0 0; font-size:10px; flex:none; }
.report-bookkeeping-status { display:flex; flex:none; align-items:center; gap:var(--ui-space,25px); font-size:var(--ui-empty-text-size,12px); font-weight:var(--ui-empty-text-weight,400); line-height:var(--ui-empty-line-height,18px); white-space:nowrap; letter-spacing:normal; }
.report-tools { display:flex; gap:var(--ui-space,25px); flex:none; }
.report-tools button { flex:none; }
.report-tools svg { display:block; width:15px; height:15px; }
.report-months-scroll { overflow:visible; }
.report-month-plot > svg { display:block; width:100%; height:132px; }
.report-month-zoom-row { display:grid; grid-template-columns:repeat(var(--report-month-count),minmax(0,1fr)); margin-top:var(--ui-space,25px); margin-bottom:var(--ui-space,25px); }
.report-month-zoom-row > div { display:flex; flex-direction:column; align-items:center; gap:5px; }
.report-detail-label { color:#000000; font-size:var(--report-caption-font-size); font-weight:400; line-height:15px; white-space:nowrap; }
.report-months [data-zoom] { display:grid; place-items:center; width:25px; height:25px; padding:0; border:0; border-radius:3px; background:#f2f2f2; color:var(--muted); cursor:pointer; }
.report-months [data-zoom] svg { display:block; width:var(--action-icon-size,15px); height:var(--action-icon-size,15px); }
.report-months [data-zoom]:focus-visible { outline:2px solid var(--brass); outline-offset:-2px; }
.report-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; gap:var(--ui-space,25px); margin-top:var(--ui-space,25px); }

.report-summary { min-width:0; }
.report-summary-heading { display:flex; align-items:center; gap:var(--ui-space-compact,10px); justify-content:space-between; min-height:25px; height:auto; align-self:start; width:100%; }
.report-summary-heading h2 { margin:0; line-height:25px; min-height:var(--action-small-size); min-width:0; display:flex; align-items:center; }
.report-summary-plot { overflow:auto; margin-top:var(--ui-space,25px); }
.report-summary-plot > svg { display:block; width:260px; height:185px; max-width:none; margin-inline:auto; }
.report-switch-symbol { display:inline-grid; place-items:center; flex:none; width:15px; height:15px; padding:0; border:0; border-radius:3px; color:#fff; background:var(--action-neutral); }
.report-switch-symbol svg { display:block; width:10px; height:10px; }
.report-switch-symbol.is-selected { background:var(--action-positive); }
.report-inclusion-symbols { display:flex; align-items:center; gap:5px; width:35px; }

.report-legend-items { display:flex; flex:1; flex-direction:column; gap:var(--ui-space,25px); }
.report-legend-items p { display:grid; grid-template-columns:35px minmax(0,1fr); align-items:center; gap:5px; flex:none; font-size:var(--report-caption-font-size); font-weight:400; line-height:15px; margin:0; min-height:15px; }
.report-legend-items .report-switch-symbol,.report-legend-icon { justify-self:center; }
.legend-dot { width:var(--report-dot-size); height:var(--report-dot-size); border-radius:50%; justify-self:center; }
.report-legend-icon { display:inline-flex; flex:none; width:15px; height:15px; color:var(--ink); }
.report-legend-icon svg { display:block; width:100%; height:100%; }
.report-source { font-size:10px; color:var(--muted); margin:var(--ui-space,25px) 0; text-align:center; overflow-wrap:anywhere; }
.report-unavailable { font-size:10px; }
dialog.report-detail { --report-detail-base-width:700px; --ui-dialog-width:var(--report-detail-base-width); width:min(var(--ui-dialog-width),calc(100vw - 50px)); max-height:calc(100dvh - 50px); overflow:auto; }
.report-detail-heading { display:flex; align-items:center; justify-content:space-between; gap:var(--ui-space,25px); }
.report-detail-heading h2 { margin:0; }
.report-detail-content { min-width:0; }
.report-detail-table-scroll { min-width:0; max-width:100%; overflow-x:auto; }
.report-detail table { border-collapse:collapse; width:max-content; min-width:calc(var(--report-detail-base-width) - 2 * var(--ui-space)); }
.report-detail-number-column { width:65px; }
.report-detail-month-column { width:95px; }
.report-detail-index-column { width:62px; }
.report-detail-budget-column { width:75px; }
.report-detail-chart { overflow:auto; margin:var(--ui-space,25px) 0; }
.report-detail-chart svg { display:block; height:330px; width:auto; max-width:none; margin-inline:auto; }
.report-detail :is(th,td) { padding:12px 6px; padding-inline-end:var(--ui-space-compact); border-bottom:1px solid var(--line); text-align:left; overflow-wrap:anywhere; }
.report-detail :is(th,td):nth-child(n+3),.report-detail tfoot td { text-align:right; white-space:nowrap; }
.report-detail thead { position:relative; }
.report-detail thead th { padding-block:0; vertical-align:middle; border:0; }
/* The first Index is third from the end even when the totals label spans two columns. */
.report-detail :is(th,td):nth-last-child(3) { border-inline-end:1px solid var(--line); }
.report-detail thead::before { content:""; position:absolute; inset:100% 0 auto; z-index:1; height:1px; background:var(--line); pointer-events:none; }
.report-detail thead th:nth-child(2) { min-width:120px; }
.report-detail-header { display:flex; align-items:center; block-size:var(--form-grid-row-height);
  font:var(--ui-form-label-weight) var(--ui-form-label-size)/var(--form-grid-label-line) Raleway,sans-serif; }
.report-detail th:nth-child(n+3) .report-detail-header { justify-content:flex-end; }
.report-detail-header-label { display:inline-block; position:relative; vertical-align:top; white-space:nowrap; }
.report-detail th[aria-sort] .report-detail-header-label::after {
  content:""; position:absolute; inset-inline-start:calc(100% + var(--form-grid-label-gap));
  inset-block-start:50%; transform:translateY(-50%); width:5px; height:5px; border-radius:50%; background:currentColor;
}
.report-detail tfoot :is(th,td) { font-weight:700; }
.report-print-frame { position:fixed; width:1px; height:1px; bottom:0; right:0; border:0; }
@media (max-width:750px) { .report-summary-grid { grid-template-columns:1fr; } }

.report-table-control { display:inline-flex; align-items:center; gap:8px; border:0; padding:0; background:none; color:inherit; font:inherit; cursor:pointer; text-align:inherit; }
.report-table-control:focus-visible { outline:2px solid var(--brass); outline-offset:2px; }

.report-values { width:100%; table-layout:fixed; border-collapse:collapse; font-size:var(--report-value-font-size); font-weight:400; }
.report-values :is(th,td) { height:25px; padding:0 2px; text-align:center; font-weight:400; white-space:nowrap; }
.report-values th { font-size:12px; color:var(--muted); }
.report-month-values th { font-weight:600; letter-spacing:0.1em; }
.report-values th.current-month { color:var(--ink); }
.values-previous { color:#869087; }
.values-budget { color:#b89a4e; }

.report-section-navigator { width:350px; max-width:100%; font-size:var(--selector-label-size); font-weight:var(--selector-label-weight); }
.report-section-navigator button { display:flex; align-items:center; justify-content:center; height:25px; min-width:0; padding:5px; border:0; background:none; color:#000000; font:inherit; line-height:1; }
.report-section-navigator [data-section-picker] { display:block; padding:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:var(--selector-label-weight); letter-spacing:0.1em; }
.report-section-navigator svg { width:15px; height:15px; flex:none; }
.report-section-navigator button:disabled { color:#a6aaa6; cursor:default; opacity:1; }
.report-section-navigator button:not(:disabled):hover { color:var(--brass); }
.report-section-picker .report-section[aria-current=true] { background:var(--field); }
.report-section-picker .report-section-open { white-space:normal; overflow-wrap:anywhere; }

/* A dedicated label gutter keeps month values, zoom controls and bars aligned. */
.report-month-layout { width:100%; min-width:0; }
.report-month-plot,.report-month-zoom-row { margin-left:100px; }
.report-month-values .report-row-label { width:100px; text-align:left; letter-spacing:normal; font-weight:400; color:inherit; }
.report-values tbody th { font-size:var(--report-value-font-size); }
.report-summary-values th { text-align:left; color:inherit; width:auto; }
.report-summary-values td { text-align:right; }
.report-summary-values .report-deviation { width:auto; padding-left:5px; }
.report-summary-plot[data-forecast] { overflow:visible; }
.report-summary-plot[data-forecast] > svg { width:100%; max-width:100%; margin:0; }
.report-summary-values-scroll { overflow-x:auto; max-width:100%; }
.report-summary-values { min-width:0; table-layout:auto; }
.report-summary-actions { display:flex; align-items:center; gap:var(--ui-space,25px); flex:none; }
.report-explanation { max-height:calc(100dvh - 50px); overflow-y:auto; overflow-x:hidden; }
.report-explanation h2 { margin:0; font-size:12px; font-weight:600; }
.report-explanation-body p { margin:var(--ui-space,25px) 0 0; line-height:1.5; overflow-wrap:anywhere; }
.report-send-dialog [data-report-recipients] { display:grid; gap:var(--ui-space,25px); list-style:none; padding:0; margin:var(--ui-space,25px) 0; }
.report-send-dialog .user-toggle-row > label { min-width:0; overflow-wrap:anywhere; }

/* Flexible graph rows reserve space for headings, tables and controls first. */
.has-reporting #content { display:flex; flex-direction:column; gap:var(--ui-space,25px); }
/* Reserve padding, zoom controls and table rows; the plot receives the remaining
   height instead of forcing overflow when action controls grow. */
.report-months { flex:0 0 auto; display:flex; flex-direction:column; }
.report-months-scroll,.report-month-layout { height:100%; min-height:0; }
.report-month-layout { display:flex; flex-direction:column; }
.report-month-plot { flex:0 0 var(--report-plot-height); height:var(--report-plot-height); min-height:var(--report-plot-height); }
.report-month-plot>svg { height:100%; }
.report-month-zoom-row { margin-top:var(--ui-space-compact,10px); margin-bottom:0; flex:none; }
.report-summary-grid { flex:0 0 auto; min-height:min-content; margin-top:0; gap:var(--ui-space,25px); }
.report-summary { display:grid; grid-template-rows:minmax(25px,max-content) var(--report-summary-plot-height) auto; grid-row:1; height:100%; align-content:start; row-gap:var(--ui-space-compact,10px); }
.report-summary-heading { flex:none; }
.report-summary .report-summary-heading {
  /* Fixed small controls share the title row without hover-driven wrapping. */
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  justify-content:stretch;
  align-items:center;
}
.report-summary .report-summary-actions {
  justify-content:flex-end;
  min-width:0;
  height:var(--action-small-size);
}
.report-summary-heading h2 { font-size:12px; }
.report-summary-actions { gap:var(--ui-space-compact,var(--ui-space-compact,10px)); }
/* Let the shared graph row size the SVG, not its 185px intrinsic height. */
.report-summary-plot { min-height:var(--report-summary-plot-height); height:var(--report-summary-plot-height); margin-top:0; }
.report-summary-plot[data-forecast] { contain:size; min-height:var(--report-summary-plot-height); margin-top:0; }
.report-summary-plot[data-forecast]>svg { width:100%; height:100%; }
.report-summary-values-scroll { flex:none; overflow:visible; }
.report-summary-values { font-size:11px; }
.report-summary-values tbody th { font-size:11px; }
.report-legend { grid-column:4; grid-row:1; display:flex; flex-direction:column; gap:var(--ui-space-compact,10px); min-width:0; height:100%; }
.report-legend .report-source { margin:0; font-size:10px; line-height:15px; text-align:left; }
.report-summary-grid { grid-template-rows:auto; row-gap:var(--ui-space-compact,10px); }
.report-summary-unavailable .report-summary-heading h2 { color:var(--muted); opacity:.6; }
.report-summary-unavailable { --action-positive:var(--action-neutral); }
.report-values,.report-values tbody th { font-size:clamp(9px,.85vw,14px); }
.report-month-values th { font-size:10px; }
.report-month-plot,.report-month-zoom-row { margin-left:80px; }
.report-month-values .report-row-label { width:80px; }
@media(min-width:751px) and (max-width:1279px) {
 .has-reporting #content { display:block; }
 .report-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:none; margin-top:var(--ui-space,25px); }
 .report-summary { display:flex; flex-direction:column; grid-row:auto; }
 .report-legend { grid-column:auto; grid-row:auto; display:flex; flex-direction:column; gap:5px; }
 .report-summary-plot[data-forecast] { flex:0 0 var(--report-summary-plot-height); height:var(--report-summary-plot-height); margin-top:var(--ui-space-compact,10px); }
 .report-months-scroll { overflow-x:auto; }
 .report-month-layout { min-width:850px; }
}
@media(max-width:750px) {
 .has-reporting #content { display:block; }
 .report-months { min-height:260px; }
 .report-summary-grid { display:grid; grid-template-columns:minmax(0,1fr); margin-top:var(--ui-space,25px); }
 .report-summary-grid { grid-template-rows:none; }
 .report-summary { display:flex; flex-direction:column; grid-row:auto; min-height:280px; }
 .report-summary-plot[data-forecast] { flex:0 0 var(--report-summary-plot-height); height:var(--report-summary-plot-height); margin-top:var(--ui-space-compact,10px); }
 .report-legend { grid-column:auto; grid-row:auto; display:flex; flex-direction:column; gap:5px; }
 .report-months-scroll { overflow-x:auto; }
 .report-month-layout { min-width:850px; }
}

.has-reporting .report-values :is(th,td) { height:20px; }
@media(max-width:1000px) {
 .has-reporting main > .page-heading { grid-template-columns:minmax(0,1fr); }
 .has-reporting main > .page-heading .report-toolbar { grid-column:1; grid-row:3; margin-top:var(--ui-space,25px); }
 .report-toolbar { flex-wrap:wrap; }
 .report-bookkeeping-status { flex:1 1 150px; }
}
@media(max-width:1279px) {
 .report-summary-values-scroll { overflow-x:auto; }
 .report-summary-values { min-width:240px; }
 .report-legend { min-width:0; }
}

.report-deviation.development-positive { color:#2A922A; }
.report-deviation.development-negative { color:#b73535; }
.report-deviation.development-neutral { color:#000000; }

.report-section-navigator { grid-template-columns:25px minmax(0,1fr) 25px; height:25px; font-size:var(--selector-label-size); }
.report-section-navigator [data-section-picker].system-standard-raised-action { width:100% !important; min-width:0 !important; }
.report-section-navigator [data-section-picker] .system-standard-action-label { overflow:hidden; text-overflow:ellipsis; }

/* Keep the text edge on the 50px monthly zero marker, not the cell edge. */
.report-month-values .report-month-number { display:block; width:50px; margin-inline:auto; text-align:right; }
.report-month-values thead th:not(.report-row-label) { font-size:8px; }
.report-month-values { flex:none; }
dialog.report-detail.system-standard-dialog { padding:var(--ui-space,25px); }
.report-detail table { margin-inline:auto; }
.report-detail-legend { min-width:0; overflow-x:auto; }
.report-detail-legend .report-legend-items { flex-direction:row; align-items:center; width:max-content; min-width:0; gap:var(--ui-space,25px); }
.report-detail-legend .report-legend-items p { display:flex; gap:5px; white-space:nowrap; font-size:var(--report-caption-font-size); }
.report-detail-legend .legend-dot { flex:none; }
@media(min-width:1280px) {
 .report-months { flex:1 0 auto; min-height:225px; }
 .report-months-scroll { display:flex; flex:1; height:auto; }
 .report-month-layout { flex:1; height:auto; }
 .report-month-plot { flex:1 0 35px; height:auto; min-height:35px; }
 .report-month-plot>svg { height:100%; position:absolute; inset:0; }
 .report-month-plot { position:relative; }
 /* A footer keeps all legend explanations available on short desktop screens. */
 .report-summary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .report-legend { grid-column:1 / -1; grid-row:2; height:auto; flex-direction:row; align-items:center; padding-block:10px; overflow-x:auto; }
 .report-legend-items { flex-direction:row; flex:none; gap:25px; }
 .report-legend-items p { display:flex; white-space:nowrap; }
 .report-legend .report-source { flex:none; white-space:nowrap; }
 .report-summary { grid-template-rows:minmax(25px,max-content) 125px auto; }
 .report-summary-plot,.report-summary-plot[data-forecast] { height:125px; min-height:125px; }
}

@media(min-width:1280px) and (max-height:850px) {
 .report-summary { grid-template-rows:minmax(25px,max-content) 65px auto; }
 .report-summary-plot,.report-summary-plot[data-forecast] { height:65px; min-height:65px; }
}

/* Preserve 8px month labels on narrow summary cards using their own scroller. */
.report-summary-plot[data-forecast] { overflow:auto; }
.report-summary-plot[data-forecast]>svg { min-width:240px; max-width:none; }

/* Align bars and zoom controls with the right edge of the monthly values. */
.report-month-zoom-row > div { align-items:center; }
.report-month-zoom-row [data-zoom] { transform:translateX(12.5px); }
.report-performance { flex:none; margin-bottom:10px; }
.report-performance .report-row-label { width:80px; text-align:left; white-space:normal; font-size:10px; color:inherit; }
.report-performance .report-month-number { font-size:10px; display:block; width:50px; margin-inline:auto; text-align:right; }
.report-performance .performance-negative { color:#b73535; }
.report-detail-content { display:flex; flex-direction:column; }
.report-detail-chart { flex:0 0 calc(100% / 3); min-height:0; margin:var(--ui-space-compact) 0; }
.report-detail-chart svg { height:100%; }
.report-detail-table-scroll { flex:1; overflow:auto; }

.report-detail-chart { position:relative; }
.report-account-tooltip { position:fixed; z-index:100; max-width:min(350px,calc(100vw - 50px)); padding:5px 10px; border-radius:3px; background:#0d200e; color:white; font-size:12px; pointer-events:none; transform:translate(-50%,-100%); }

dialog.report-detail[open] { display:flex; flex-direction:column; height:calc(100dvh - 50px); }
.report-detail-heading { flex:none; }
.report-detail-content { flex:1; min-height:0; }
.report-detail-table-scroll { min-height:0; }

/* Reserve enough label space for the fixed performance heading on screen. */
.report-month-plot,.report-month-zoom-row { margin-left:160px; }
.report-month-values .report-row-label,.report-performance .report-row-label { width:160px; }
.report-performance .report-row-label { white-space:nowrap; }

/* Shared right edges: each month ends at its column edge; summary values and
   curves end on the same inner-card edge, including the final forecast column. */
.report-month-values :is(th,td),.report-performance :is(th,td) { padding-inline:0; }
.report-month-values .report-month-number,.report-performance .report-month-number { margin-inline:auto 0; }
.report-month-zoom-row > div { align-items:flex-end; }
.report-month-zoom-row [data-zoom] { transform:none; }
.report-summary-values :is(th,td) { padding-inline:0; }
.report-summary-result { display:flex; justify-content:flex-end; align-items:baseline; gap:10px; }
.report-summary-result > span { flex:none; }
.report-total-dif { font-size:11px; color:var(--ink,#000000); }
.performance-negative { color:#b73535; }

/* Only the major surfaces and control faces pulse; no pretend chart details. */
#content:has(.portal-loading) { position:relative; }
.portal-loading { width:100%; min-width:0; flex:1 0 auto; display:flex; flex-direction:column; gap:var(--ui-space,25px); }
.portal-loading-area { border:0; box-shadow:none; border-radius:3px; background:var(--canvas,#f2f2f2); animation:report-area-pulse 1200ms ease-in-out infinite; }
.portal-balance-loading { height:100%; min-height:350px; }
.portal-balance-loading .portal-balance-controls { flex:none; }
.portal-balance-loading-search { height:var(--ui-field-height,25px); }
.portal-balance-loading-list { flex:1; min-height:250px; }
.report-loading-months { flex:1 0 225px; }
.report-loading-summaries { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--ui-space,25px); }
.report-loading-summaries > div { height:260px; }
.report-loading-legend { height:40px; flex:none; }
.report-loading-tools { pointer-events:none; justify-self:end; }
.report-loading-tools span { display:block; width:25px; height:25px; border-radius:3px; background:var(--canvas,#f2f2f2); animation:report-control-pulse 1200ms ease-in-out infinite; }
.report-loading-selector { pointer-events:none; }
.report-loading-selector span { display:block; width:350px; max-width:100%; height:25px; border-radius:3px; background:var(--canvas,#f2f2f2); animation:report-control-pulse 1200ms ease-in-out infinite; }
.portal-loading.is-finishing { position:absolute; inset:0; z-index:2; pointer-events:none; }
@keyframes report-area-pulse { 0%,100% { background-color:var(--canvas,#f2f2f2); } 50% { background-color:#fff; } }
@keyframes report-control-pulse { 0%,100% { background-color:var(--canvas,#f2f2f2); } 50% { background-color:var(--action-neutral,#383e42); } }
@media(min-width:1280px) and (max-height:850px) { .report-loading-summaries > div { height:160px; } }
@media(max-width:750px) { .report-loading-summaries { grid-template-columns:minmax(0,1fr); } }
@media(prefers-reduced-motion:reduce) { .portal-loading-area,.report-loading-tools span,.report-loading-selector span { animation:none; } .portal-loading-area { background:#fff; } .report-loading-tools span,.report-loading-selector span { background:var(--action-neutral,#383e42); } }

.report-detail tbody td { vertical-align:top; }
.report-detail :is(.report-middle-account,.report-posting-account) td { vertical-align:middle; }
.report-detail .report-middle-account td { font-weight:600; }
.report-detail .report-posting-account td { font-weight:400; }
.report-detail tr:has([data-detail-toggle]) { cursor:pointer; }
.report-detail tr:has([data-detail-toggle]):hover { background:var(--canvas,#f2f2f2); }
.report-detail .report-postings-row td { text-align:start; }
.report-postings-content { contain:inline-size; overflow-x:auto; }
.report-posting-list { margin:0; padding:0; list-style:none; white-space:nowrap; overflow-wrap:normal; }
