.finance-presentation-switch { display:flex; align-items:center; gap:12px; padding:9px 14px; border-bottom:1px solid var(--line,#d5e1ee); background:#f7faff; }
.finance-presentation-switch .segmented-control { flex-shrink:0; }
.finance-presentation-switch > span { font-size:11px; color:#57718a; }
.finance-sign-note { margin-left:auto; color:#57718a; font-size:10px; }
.finance-selection-note { display:flex; align-items:center; gap:8px; margin:0; padding:9px 14px; background:#fff9ed; color:#80601e; font-size:11px; border-bottom:1px solid #efe2c4; }
.finance-statement-table { table-layout:fixed; width:100%; min-width:1020px; }
.finance-statement-table .finance-label-column { width:34%; }
.finance-statement-table thead th,.finance-statement-table thead th.numeric { white-space:normal; vertical-align:top; padding:12px 10px; }
.finance-statement-table thead th small { display:block; margin-top:5px; color:#647b90; font-size:9px; font-weight:400; line-height:1.35; white-space:normal; }
.finance-statement-table tbody th { text-align:left; padding:11px 10px 11px calc(12px + var(--finance-depth,0) * 15px); font-weight:500; line-height:1.4; }
.finance-statement-table td { padding:11px 10px; font-variant-numeric:tabular-nums; }
.finance-primary-column { background:rgba(226,237,247,.28); font-weight:650; }
.finance-section { background:#e7f0f8; color:#153b60; }
.finance-section th,.finance-section td { font-weight:750!important; border-top:1px solid #aec7df; }
.finance-rubric { background:#f5f8fc; }
.finance-rubric th,.finance-rubric td { font-weight:650!important; }
.finance-subtotal { color:#163f65; }
.finance-subtotal th,.finance-subtotal td { border-top:1px solid #c6d7e6; font-weight:750!important; }
.finance-total { background:#edf5fc; color:#102e4e; }
.finance-total th,.finance-total td { border-top:2px solid #8eafca; font-weight:800!important; padding-top:14px; padding-bottom:14px; }
.finance-rubric-button { display:inline-flex; align-items:center; gap:7px; padding:0; border:0; color:inherit; background:transparent; font:inherit; text-align:left; cursor:pointer; }
.finance-amount-link { background:transparent; border:0; padding:0; color:inherit; font:inherit; cursor:pointer; text-decoration:underline; text-decoration-color:transparent; text-underline-offset:3px; }
.finance-amount-link:hover { color:#075cab; text-decoration-color:currentColor; }
.finance-amount-link:focus-visible,.finance-rubric-button:focus-visible { outline:2px solid #0662b0; outline-offset:4px; border-radius:2px; }
.finance-account-code { color:#5c7389; font-size:10px; margin-right:9px; }
.finance-negative { color:#864747; }
.finance-definition-notes { border-top:1px solid #d5e1ee; padding:10px 14px; color:#566e86; font-size:11px; }
.finance-definition-notes summary { display:flex; gap:7px; align-items:center; cursor:pointer; color:#315678; }
.finance-definition-notes p { margin:9px 0; line-height:1.5; }
.comparison-return { display:flex; align-items:center; gap:10px; padding:9px 14px; background:#edf5fc; border:1px solid #c7dcec; border-radius:6px; color:#315678; font-size:11px; }
.finance-insights { margin:10px 0 14px; border:1px solid var(--border,#d5e1ee); border-radius:var(--radius,10px); background:var(--surface,#fff); overflow:hidden; }
.finance-insight-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:39px; padding:8px 13px; border-bottom:1px solid var(--border,#d5e1ee); background:var(--raised,#f7f9fb); }
.finance-insight-heading > span { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; }
.finance-insight-heading .icon { width:16px; height:16px; color:#177f83; }
.finance-insight-heading strong { font-size:12px; color:var(--text,#152c3b); }
.finance-insight-heading small { color:var(--muted,#62788b); font-size:10px; }
.finance-insight-heading .text-button { display:flex; align-items:center; gap:6px; font-size:11px; white-space:nowrap; }
.finance-insight-content { display:grid; grid-template-columns:minmax(190px,27%) minmax(0,1fr); gap:22px; padding:13px; }
.finance-insight-metrics { padding:4px 18px 0 3px; border-right:1px solid var(--border,#d5e1ee); }
.finance-insight-metrics > div + div { margin-top:18px; }
.finance-insight-metrics > div > span { display:block; font-size:11px; color:var(--muted,#62788b); }
.finance-insight-metrics strong { display:block; margin-top:4px; font-size:clamp(20px,2vw,28px); letter-spacing:-.6px; color:var(--primary-deep,#173647); font-variant-numeric:tabular-nums; line-height:1.2; }
.finance-insight-metrics small { display:block; margin-top:6px; font-size:10px; line-height:1.5; color:var(--muted,#62788b); }
.finance-insight-metrics small b { display:block; font-size:12px; font-weight:600; color:var(--text,#152c3b); }
.finance-insight-metrics p { display:flex; align-items:flex-start; gap:6px; margin:15px 0 0; color:var(--muted,#62788b); font-size:10px; line-height:1.6; }
.finance-insight-metrics p .icon { flex:0 0 13px; width:13px; height:13px; margin-top:2px; color:#177f83; }
.finance-insight-chart { min-width:0; }
.finance-insight-chart > header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px; margin:0 0 5px; }
.finance-insight-chart > header strong { color:var(--text,#152c3b); font-size:11px; }
.finance-insight-chart > header span { color:var(--muted,#62788b); font-size:10px; }
.finance-chart-rows { list-style:none; padding:0; margin:0; }
.finance-chart-row { display:grid; grid-template-columns:minmax(110px,36%) minmax(0,1fr) 116px; gap:9px; align-items:center; width:100%; min-height:37px; padding:5px 3px; border:0; border-radius:5px; text-align:left; background:transparent; font:inherit; color:var(--text,#152c3b); cursor:pointer; }
.finance-chart-row:hover:enabled { background:var(--raised,#f2f6f8); }
.finance-chart-row:disabled { opacity:1; cursor:default; }
.finance-chart-row:focus-visible { outline:2px solid var(--focus,#157f83); outline-offset:2px; }
.finance-chart-label { grid-column:1; grid-row:1; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:10px; font-weight:550; line-height:1.4; }
.finance-chart-value { grid-column:3; grid-row:1; text-align:right; font-size:11px; font-weight:650; font-variant-numeric:tabular-nums; }
.finance-chart-value small { display:block; margin-top:2px; color:var(--muted,#62788b); font-size:9px; font-weight:450; }
.finance-chart-track { position:relative; grid-column:2; grid-row:1; display:block; height:21px; min-width:0; background:linear-gradient(to right,transparent 49.8%,var(--border,#d5e1ee) 49.8%,var(--border,#d5e1ee) 50.2%,transparent 50.2%); }
.finance-chart-track i { position:absolute; display:block; border-radius:2px; }
.finance-chart-current { top:2px; height:8px; background:#16848c; }
.finance-chart-current.negative { background:#937051; }
.finance-chart-previous { top:13px; height:5px; background:#aebfce; }
.finance-chart-legend { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; margin-top:7px; font-size:9px; color:var(--muted,#62788b); }
.finance-chart-legend span { display:flex; align-items:center; gap:5px; }
.finance-chart-legend i { display:inline-block; width:10px; height:5px; border-radius:2px; background:#16848c; }
.finance-chart-legend .previous i { background:#aebfce; }
.finance-chart-legend small { margin-left:auto; font-size:9px; }
.finance-chart-empty { display:grid; justify-items:center; gap:7px; padding:25px 12px; color:var(--muted,#62788b); text-align:center; font-size:11px; }
.finance-chart-empty .icon { width:25px; height:25px; color:#16848c; }
.finance-chart-empty strong { color:var(--text,#152c3b); }
.finance-sort-control { display:flex; align-items:center; gap:6px; color:var(--muted,#62788b); font-size:10px; white-space:nowrap; }
.finance-sort-control select,.finance-statement-filter select { min-height:29px; max-width:190px; padding:4px 24px 4px 7px; border:1px solid var(--border,#d5e1ee); border-radius:5px; background:var(--surface,#fff); color:var(--text,#152c3b); font:inherit; font-size:11px; }
.finance-sort-control select:disabled { color:var(--muted,#62788b); background:var(--raised,#f7f9fb); opacity:.7; }
.finance-sort-control select:focus-visible,.finance-statement-filter select:focus-visible { outline:2px solid var(--focus,#157f83); outline-offset:2px; }
.finance-reading-tools { flex-wrap:wrap; gap:8px 14px; }
.finance-display-toggle { display:none; }
.finance-reading-tools .finance-sign-note { flex-basis:100%; margin:0; font-size:9px; line-height:1.5; }
.finance-order-note { flex-basis:100%; color:var(--muted,#62788b); font-size:10px; line-height:1.4; }
.finance-scroll-hint { display:none; }
.finance-reading-tools .segmented-control button { white-space:nowrap; }
.finance-reset-filters { display:flex; align-items:center; gap:4px; white-space:nowrap; font-size:10px; }
.financial-workspace .table-tools { flex-wrap:wrap; justify-content:flex-start; }
.financial-workspace .table-tools .row-count { margin-left:auto; }
@media(max-width:1100px) { .finance-insight-content { grid-template-columns:minmax(160px,25%) minmax(0,1fr); gap:14px; } .finance-chart-row { grid-template-columns:minmax(100px,35%) minmax(0,1fr) 106px; gap:7px; } }
@media(max-width:700px) { .finance-insight-heading { align-items:flex-start; gap:8px; padding:9px 10px; } .finance-insight-heading > span { gap:5px; } .finance-insight-heading small { flex-basis:100%; margin-left:21px; } .finance-insight-heading .text-button { font-size:10px; } .finance-insight-content { grid-template-columns:1fr; padding:10px; gap:14px; } .finance-insight-metrics { display:flex; flex-wrap:wrap; gap:14px 24px; padding:0 0 12px; border-right:0; border-bottom:1px solid var(--border,#d5e1ee); } .finance-insight-metrics > div { flex:1 1 150px; } .finance-insight-metrics > div + div { margin:0; } .finance-insight-metrics p { flex-basis:100%; margin:0; } .finance-insight-metrics strong { font-size:21px; } .finance-chart-row { grid-template-columns:minmax(94px,35%) minmax(0,1fr) 92px; gap:5px; } .finance-chart-label { font-size:9px; } .finance-chart-value { font-size:10px; } .finance-chart-legend small { margin-left:0; flex-basis:100%; } .finance-reading-tools .segmented-control { overflow-x:auto; max-width:100%; } .finance-reading-tools .segmented-control button { font-size:10px; } .finance-sort-control select { max-width:175px; } }
@media(max-width:900px) { .finance-presentation-switch { align-items:flex-start; flex-wrap:wrap; gap:7px; } .finance-sign-note { margin-left:0; flex-basis:100%; } .finance-statement-table { min-width:960px; } .comparison-return { flex-wrap:wrap; } }
@media(max-width:980px) {
  .ledger-workspace .button.ledger-back { min-height:44px; }
  .financial-workspace .finance-display-toggle { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:44px; padding:7px 10px; border:0; border-bottom:1px solid var(--border,#d5e1ee); color:var(--text,#152c3b); background:var(--raised,#f7f9fb); font:inherit; text-align:left; cursor:pointer; }
  .finance-display-toggle > span { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; min-width:0; }
  .finance-display-toggle strong { font-size:11px; font-weight:650; }
  .finance-display-toggle small { color:var(--muted,#62788b); font-size:10px; line-height:1.4; }
  .finance-display-toggle > .icon { flex:0 0 14px; width:14px; height:14px; transition:transform .15s ease; }
  .finance-display-toggle[aria-expanded="true"] > .icon { transform:rotate(180deg); }
  .finance-display-toggle:focus-visible { outline:2px solid var(--focus,#157f83); outline-offset:-3px; }
  .financial-workspace .finance-reading-tools { display:none; }
  .financial-workspace .finance-reading-tools.is-expanded { display:flex; }
  .financial-workspace .finance-mode-bar > span { display:none; }
  .financial-workspace .financial-command-bar .period-form input,
  .financial-workspace .financial-command-bar .period-form select { height:44px; min-height:44px; }
  .financial-workspace .financial-command-bar .period-form .button,
  .financial-workspace .financial-command-bar .header-actions .button,
  .financial-workspace .financial-command-bar .header-actions .icon-button,
  .financial-workspace .period-presets button,
  .financial-workspace .finance-mode-bar .segmented-control button,
  .financial-workspace .finance-reading-tools .segmented-control button,
  .financial-workspace .finance-reading-tools .level-control button,
  .financial-workspace .finance-sort-control select,
  .financial-workspace .finance-statement-filter select,
  .financial-workspace .statement-paper .report-tabs button { min-height:44px; }
  .financial-workspace .financial-command-bar .header-actions .icon-button,
  .financial-workspace .finance-reading-tools .level-control button { width:44px; min-width:44px; }
  .financial-workspace .finance-reading-tools .level-control { flex-wrap:wrap; }
  .financial-workspace .table-tools .search-field,
  .financial-workspace .table-tools .search-field input,
  .financial-workspace .table-tools .checkbox-field,
  .financial-workspace .finance-reset-filters,
  .financial-workspace .finance-insight-heading .text-button,
  .financial-workspace .finance-chart-row,
  .financial-workspace .finance-definition-notes summary,
  .financial-workspace .comparison-return .text-button,
  .financial-workspace .finance-selection-note .text-button { min-height:44px; }
  .financial-workspace .table-tools .checkbox-field { display:flex; align-items:center; }
  .financial-workspace .finance-selection-note { flex-wrap:wrap; }
  .finance-scroll-hint { display:flex; align-items:center; gap:6px; margin:0; padding:7px 10px; color:var(--muted,#62788b); background:var(--surface,#fff); border-bottom:1px solid var(--border,#d5e1ee); font-size:10px; line-height:1.4; }
  .finance-scroll-hint .icon { flex:0 0 13px; width:13px; height:13px; }
  .finance-statement-table { --finance-label-width:184px; --finance-value-width:148px; width:calc(var(--finance-label-width) + var(--finance-column-count) * var(--finance-value-width)); min-width:calc(var(--finance-label-width) + var(--finance-column-count) * var(--finance-value-width)); }
  .finance-statement-table .finance-label-column { width:var(--finance-label-width); }
  .finance-statement-table .finance-value-column { width:var(--finance-value-width); }
  .finance-statement-table thead th { padding:10px 8px; }
  .finance-statement-table thead .finance-label-column { position:sticky; left:0; z-index:12; box-shadow:1px 0 var(--border,#d5e1ee); }
  .finance-statement-table tbody tr { --finance-label-background:#fff; }
  .finance-statement-table tbody tr:nth-child(even) { --finance-label-background:#fbfcfe; }
  .finance-statement-table tbody tr.finance-section { --finance-label-background:#e7f0f8; }
  .finance-statement-table tbody tr.finance-rubric { --finance-label-background:#f5f8fc; }
  .finance-statement-table tbody tr.finance-total { --finance-label-background:#edf5fc; }
  .finance-statement-table tbody tr:hover { --finance-label-background:#eef5fb; }
  .finance-statement-table tbody th { position:sticky; left:0; z-index:2; padding:3px 8px 3px calc(8px + min(var(--finance-depth,0),4) * 8px); background:var(--finance-label-background); box-shadow:1px 0 var(--border,#d5e1ee); font-size:11px; hyphens:auto; overflow-wrap:anywhere; }
  .finance-statement-table td { height:44px; padding:3px 8px; }
  .finance-statement-table .finance-rubric-button { min-height:44px; width:100%; gap:5px; }
  .finance-statement-table .finance-amount-link { min-height:44px; width:100%; text-align:right; }
  .finance-statement-table .finance-account-code { display:block; margin:0 0 2px; }
}
@media(max-width:700px) {
  .financial-workspace .financial-command-bar .period-presets { grid-column:3; justify-self:stretch; }
  .financial-workspace .financial-command-bar .period-presets button { flex:1; min-width:0; padding-inline:5px; }
}
@media print { .finance-insights,.finance-presentation-switch,.finance-display-toggle,.finance-reading-tools,.finance-scroll-hint,.comparison-return,.finance-definition-notes { display:none!important; } .finance-statement-table { width:100%; min-width:0; font-size:9px; } .finance-statement-table .finance-label-column { width:34%; } .finance-statement-table .finance-value-column { width:auto; } .finance-statement-table tbody th,.finance-statement-table thead .finance-label-column { position:static; box-shadow:none; } }
