/* All report presentation stays behind the v2 root attribute. */
body[data-ui-version="v2"] .fb2-reports {color:var(--fb2-color-text);max-width:1800px;margin:0 auto;min-width:0;}
body[data-ui-version="v2"] .fb2-report-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px;}
body[data-ui-version="v2"] .fb2-report-heading h2 {font-size:clamp(24px,2.4vw,32px);line-height:1.2;letter-spacing:-.6px;margin:8px 0;font-weight:600;}
body[data-ui-version="v2"] .fb2-reports h3 {font-size:18px;font-weight:600;line-height:1.35;margin:0 0 8px;}
body[data-ui-version="v2"] .fb2-reports p {color:var(--fb2-color-text-muted);line-height:1.55;}
body[data-ui-version="v2"] .fb2-report-heading p {margin:0;max-width:660px;}
body[data-ui-version="v2"] .fb2-reports :is(button,input,select,summary) {font:inherit;}
body[data-ui-version="v2"] .fb2-reports button {min-height:44px;font-weight:600;}
body[data-ui-version="v2"] .fb2-reports :is(input,select) {min-height:44px;min-width:0;border:1px solid var(--fb2-color-border-control);border-radius:8px;padding:8px 12px;background:var(--fb2-color-surface);color:var(--fb2-color-text);}
body[data-ui-version="v2"] .fb2-reports :is(button,summary,input,select):focus-visible {outline:3px solid var(--fb2-color-focus);outline-offset:3px;}
body[data-ui-version="v2"] .fb2-reports :is(button,summary) {transition:opacity 80ms,transform 80ms;color:var(--fb2-color-text);}
body[data-ui-version="v2"] .fb2-reports .primary-button {background:var(--fb2-color-primary);color:var(--fb2-color-on-primary);}
body[data-ui-version="v2"] .fb2-reports .heading-actions {flex-wrap:wrap;flex-shrink:0;gap:8px;}
body[data-ui-version="v2"] .fb2-reports .report-commandbar {display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px;border:1px solid var(--fb2-color-border);background:var(--fb2-color-surface);padding:16px;border-radius:12px;}
body[data-ui-version="v2"] .fb2-reports .report-presets {display:flex;flex-wrap:wrap;gap:4px;flex:1 1 560px;}
body[data-ui-version="v2"] .fb2-reports .report-presets button {border:1px solid transparent;border-radius:8px;padding:8px 12px;background:transparent;color:var(--fb2-color-text-muted);}
body[data-ui-version="v2"] .fb2-reports .report-presets button[aria-pressed="true"] {background:var(--fb2-color-surface-selected);color:var(--fb2-color-primary);border-color:var(--fb2-color-border-control);}
body[data-ui-version="v2"] .fb2-reports .report-custom-range summary {min-height:44px;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border:1px solid var(--fb2-color-border-control);border-radius:8px;cursor:pointer;gap:8px;}
body[data-ui-version="v2"] .fb2-reports .report-custom-fields {background:var(--fb2-color-surface);border-color:var(--fb2-color-border);z-index:5;}
body[data-ui-version="v2"] .fb2-report-context {display:flex;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;padding:16px 0 24px;color:var(--fb2-color-text-muted);font-size:12px;}
body[data-ui-version="v2"] .fb2-report-context strong {font-weight:600;}
body[data-ui-version="v2"] .fb2-report-layout {display:grid;grid-template-columns:204px minmax(0,1fr);gap:24px;align-items:start;}
body[data-ui-version="v2"] .fb2-report-navigation {display:flex;flex-direction:column;gap:4px;overflow:visible;border:0;padding:0;margin:0;background:transparent;}
body[data-ui-version="v2"] .fb2-report-navigation button {display:flex;flex-direction:column;align-items:flex-start;white-space:normal;flex:none;width:100%;padding:12px;text-align:left;min-height:68px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--fb2-color-text);}
body[data-ui-version="v2"] .fb2-report-navigation button small {display:block;font-size:11px;font-weight:400;line-height:1.4;color:var(--fb2-color-text-muted);margin-top:4px;}
body[data-ui-version="v2"] .fb2-report-navigation button[aria-current="page"] {background:var(--fb2-color-surface);border-color:var(--fb2-color-border);box-shadow:inset 3px 0 var(--fb2-color-primary);color:var(--fb2-color-primary);}
body[data-ui-version="v2"] .fb2-report-content {min-width:0;}
body[data-ui-version="v2"] .fb2-report-mobile-nav {display:none;}
body[data-ui-version="v2"] .fb2-report-kpis {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--fb2-color-border);border-radius:12px;background:var(--fb2-color-surface);overflow:hidden;margin-bottom:24px;}
body[data-ui-version="v2"] .fb2-report-kpi {display:flex;flex-direction:column;align-items:flex-start;padding:20px;gap:8px;background:transparent;text-align:left;border:0;border-right:1px solid var(--fb2-color-border);min-width:0;}
body[data-ui-version="v2"] .fb2-report-kpi:last-child {border-right:0;}
body[data-ui-version="v2"] .fb2-report-kpi>span:first-child {font-size:13px;}
body[data-ui-version="v2"] .fb2-report-kpi strong {font-size:clamp(20px,2.1vw,28px);font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;white-space:normal;overflow-wrap:anywhere;}
body[data-ui-version="v2"] .fb2-report-kpi small {font-size:11px;color:var(--fb2-color-text-muted);font-weight:400;}
body[data-ui-version="v2"] .fb2-reports .report-change {font-size:11px;display:block;color:var(--fb2-color-text-muted);font-weight:400;}
body[data-ui-version="v2"] .fb2-report-overview {display:grid;grid-template-columns:minmax(0,1fr) 228px;gap:24px;}
body[data-ui-version="v2"] .fb2-report-panel {min-width:0;background:var(--fb2-color-surface);border:1px solid var(--fb2-color-border);border-radius:12px;padding:20px;}
body[data-ui-version="v2"] .fb2-report-reading {border-left:1px solid var(--fb2-color-border);padding:4px 0 4px 20px;}
body[data-ui-version="v2"] .fb2-report-reading dl {margin:0;}
body[data-ui-version="v2"] .fb2-report-reading dl>div {padding:16px 0;border-bottom:1px solid var(--fb2-color-border);}
body[data-ui-version="v2"] .fb2-report-reading dt {font-size:12px;color:var(--fb2-color-text-muted);}
body[data-ui-version="v2"] .fb2-report-reading dd {font-size:20px;font-weight:600;margin:8px 0 0;font-variant-numeric:tabular-nums;}
body[data-ui-version="v2"] .fb2-report-reading small {display:block;font-size:11px;color:var(--fb2-color-text-muted);line-height:1.5;margin-top:8px;}
body[data-ui-version="v2"] .fb2-report-reading button {text-align:left;justify-content:flex-start;width:100%;}
body[data-ui-version="v2"] .fb2-report-note {font-size:12px;margin:20px 0;max-width:100ch;}
body[data-ui-version="v2"] .fb2-reports .report-chart-wrap {margin:8px -8px;min-width:0;}
body[data-ui-version="v2"] .fb2-reports .report-evolution-chart {width:100%;height:auto;display:block;overflow:visible;}
body[data-ui-version="v2"] .fb2-reports .report-chart-fill {fill:var(--fb2-color-surface-selected);}
body[data-ui-version="v2"] .fb2-reports .report-chart-stroke {stroke:var(--fb2-color-primary);fill:none;}
body[data-ui-version="v2"] .fb2-reports .report-chart-grid {stroke:var(--fb2-color-border);}
body[data-ui-version="v2"] .fb2-reports .report-evolution-chart text {fill:var(--fb2-color-text-muted);}
body[data-ui-version="v2"] .fb2-reports .report-chart-selection {background:var(--fb2-color-surface-subtle);border-color:var(--fb2-color-border);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-radius:8px;}
body[data-ui-version="v2"] .fb2-reports .report-chart-selection :is(span,small) {font-size:11px;color:var(--fb2-color-text-muted);line-height:1.5;}
body[data-ui-version="v2"] .fb2-reports .report-chart-selection strong {font-size:13px;font-weight:600;}
body[data-ui-version="v2"] .fb2-reports .report-daily-details {margin-top:16px;}
body[data-ui-version="v2"] .fb2-reports .report-daily-details summary {min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px;}
body[data-ui-version="v2"] .fb2-report-ledger {background:var(--fb2-color-surface);border:1px solid var(--fb2-color-border);border-radius:12px;padding:20px;min-width:0;}
body[data-ui-version="v2"] .fb2-report-ledger-head {display:flex;justify-content:space-between;align-items:flex-start;gap:16px;}
body[data-ui-version="v2"] .fb2-report-ledger-head p {font-size:12px;margin:0;max-width:95ch;}
body[data-ui-version="v2"] .fb2-report-ledger-head>button {flex-shrink:0;}
body[data-ui-version="v2"] .fb2-report-ledger-toolbar {display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;margin:24px 0 16px;}
body[data-ui-version="v2"] .fb2-report-ledger-toolbar>label {display:flex;flex-direction:column;gap:8px;font-size:12px;flex:1 1 160px;}
body[data-ui-version="v2"] .fb2-report-ledger-toolbar>label:last-child {flex:0 1 140px;}
body[data-ui-version="v2"] #fb2-report-search-form {flex:2 1 220px;min-width:0;}
body[data-ui-version="v2"] #fb2-report-search-form>label {display:block;margin-bottom:8px;font-size:12px;}
body[data-ui-version="v2"] #fb2-report-search-form>div {display:flex;gap:8px;}
body[data-ui-version="v2"] #fb2-report-search-form button {flex:0 0 auto;min-width:80px;padding:8px 12px;white-space:nowrap;}
body[data-ui-version="v2"] #fb2-report-search {width:100%;min-width:0;}
body[data-ui-version="v2"] .fb2-report-day {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:16px;font-size:12px;}
body[data-ui-version="v2"] .fb2-report-applied {display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:var(--fb2-color-surface-selected);padding:4px 12px;border-radius:8px;margin-bottom:12px;font-size:12px;}
body[data-ui-version="v2"] .fb2-reports .report-table-scroll {width:100%;overflow:auto;border:1px solid var(--fb2-color-border);border-radius:8px;}
body[data-ui-version="v2"] .fb2-reports .report-table {width:100%;font-size:12px;border-collapse:collapse;background:var(--fb2-color-surface);font-variant-numeric:tabular-nums;}
body[data-ui-version="v2"] .fb2-reports .report-table :is(th,td) {padding:12px;line-height:1.5;border-bottom:1px solid var(--fb2-color-border);vertical-align:middle;color:var(--fb2-color-text);text-align:left;font-weight:400;max-width:360px;overflow-wrap:break-word;}
body[data-ui-version="v2"] .fb2-reports .report-table thead th {background:var(--fb2-color-surface-subtle);font-weight:600;white-space:nowrap;}
body[data-ui-version="v2"] .fb2-report-table thead button {padding:4px 0;border:0;background:transparent;text-align:left;white-space:nowrap;width:100%;color:var(--fb2-color-text-muted);}
body[data-ui-version="v2"] .fb2-reports .report-table td.fb2-report-number {text-align:right;white-space:nowrap;}
body[data-ui-version="v2"] .fb2-report-table[data-density="compact"] td {padding:4px 12px;}
body[data-ui-version="v2"] .fb2-report-row-actions {min-width:128px;}
body[data-ui-version="v2"] .fb2-report-pagination {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;padding-top:20px;color:var(--fb2-color-text-muted);font-size:12px;}
body[data-ui-version="v2"] .fb2-report-pagination>div {display:flex;gap:8px;}
body[data-ui-version="v2"] .fb2-reports .report-definitions {margin-top:24px;padding:16px 0;border-top:1px solid var(--fb2-color-border);background:transparent;}
body[data-ui-version="v2"] .fb2-reports .report-definitions summary {display:flex;align-items:center;min-height:44px;cursor:pointer;font-weight:600;font-size:13px;}
body[data-ui-version="v2"] .fb2-reports .report-definitions dl {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:16px 0;}
body[data-ui-version="v2"] .fb2-reports .report-definitions dt {font-size:12px;font-weight:600;margin-bottom:8px;}
body[data-ui-version="v2"] .fb2-reports .report-definitions dd {font-size:12px;line-height:1.6;color:var(--fb2-color-text-muted);margin:0;}
body[data-ui-version="v2"] .fb2-reports .report-export-menu>div {width:280px;max-width:calc(100vw - 40px);border:1px solid var(--fb2-color-border);background:var(--fb2-color-surface);color:var(--fb2-color-text);z-index:6;box-shadow:none;}
body[data-ui-version="v2"] .fb2-reports .report-export-menu>div>p {font-size:11px;margin:12px;line-height:1.5;}
body[data-ui-version="v2"] .fb2-reports .report-export-menu button {min-height:64px;}
body[data-ui-version="v2"] .fb2-reports .report-message {background:var(--fb2-color-info-bg);color:var(--fb2-color-info);padding:12px 16px;border:1px solid var(--fb2-color-border);border-radius:8px;margin:12px 0;font-size:13px;}
body[data-ui-version="v2"] .fb2-reports .report-message.is-error {background:var(--fb2-color-danger-bg);color:var(--fb2-color-danger);}
body[data-ui-version="v2"] .fb2-reports .report-empty {padding:40px 24px;text-align:left;background:var(--fb2-color-surface);border:1px solid var(--fb2-color-border);border-radius:12px;}
body[data-ui-version="v2"] .fb2-reports .report-result-layout {grid-template-columns:minmax(0,1fr) 260px;gap:24px;}
body[data-ui-version="v2"] .fb2-reports :is(.report-statement,.report-result-side>article) {background:var(--fb2-color-surface);border:1px solid var(--fb2-color-border);border-radius:12px;padding:20px;}
body[data-ui-version="v2"] .fb2-reports .report-statement-lines>div {min-height:48px;padding:12px 0;border-color:var(--fb2-color-border);gap:16px;}
body[data-ui-version="v2"] .fb2-reports :is(.report-statement-lines strong,.report-fact strong) {font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums;}
body[data-ui-version="v2"] .fb2-reports .report-statement-lines .total {background:var(--fb2-color-primary);color:var(--fb2-color-on-primary);padding:16px;border-radius:8px;}
body[data-ui-version="v2"] .fb2-reports .report-statement-lines :is(.subtotal,.total) span {font-weight:600;}
body[data-ui-version="v2"] .fb2-reports .report-expense-note strong {color:var(--fb2-color-text);}
@media(max-width:1200px){body[data-ui-version="v2"] .fb2-report-layout{grid-template-columns:180px minmax(0,1fr);gap:20px;}body[data-ui-version="v2"] .fb2-report-overview{grid-template-columns:1fr;}body[data-ui-version="v2"] .fb2-report-reading{border-left:0;border-top:1px solid var(--fb2-color-border);padding:20px 0;}body[data-ui-version="v2"] .fb2-report-reading dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;}body[data-ui-version="v2"] .fb2-reports .report-result-layout{grid-template-columns:1fr;}}
@media(max-width:900px){body[data-ui-version="v2"] .fb2-report-layout{display:block;}body[data-ui-version="v2"] .fb2-report-navigation{display:none;}body[data-ui-version="v2"] .fb2-report-mobile-nav{display:flex;flex-direction:column;gap:8px;font-size:12px;margin-bottom:20px;}body[data-ui-version="v2"] .fb2-report-heading{flex-direction:column;gap:16px;}body[data-ui-version="v2"] .fb2-report-context{padding-bottom:16px;}body[data-ui-version="v2"] .fb2-report-kpi{padding:16px;}}
@media(max-width:560px){body[data-ui-version="v2"] .fb2-reports .report-commandbar{padding:12px;gap:8px;}body[data-ui-version="v2"] .fb2-reports .report-presets{flex-wrap:nowrap;overflow:auto;width:100%;flex-basis:100%;padding-bottom:4px;}body[data-ui-version="v2"] .fb2-reports .report-presets button{flex-shrink:0;}body[data-ui-version="v2"] .fb2-reports .report-custom-range{flex:1;min-width:0;}body[data-ui-version="v2"] .fb2-reports .report-custom-fields{position:static;display:flex;flex-direction:column;align-items:stretch;width:auto;min-width:0;margin-top:8px;padding:0;border:0;box-shadow:none;}body[data-ui-version="v2"] .fb2-reports .report-custom-range:not([open]) .report-custom-fields{display:none;}body[data-ui-version="v2"] .fb2-report-kpis{grid-template-columns:1fr;}body[data-ui-version="v2"] .fb2-report-kpi{border-right:0;border-bottom:1px solid var(--fb2-color-border);padding:16px;}body[data-ui-version="v2"] .fb2-report-kpi:last-child{border-bottom:0;}body[data-ui-version="v2"] .fb2-report-kpi strong{font-size:24px;}body[data-ui-version="v2"] :is(.fb2-report-panel,.fb2-report-ledger){padding:16px;}body[data-ui-version="v2"] .fb2-reports .report-block-heading{flex-direction:column;gap:12px;}body[data-ui-version="v2"] .fb2-reports .report-chart-selection{flex-direction:column;align-items:flex-start;}body[data-ui-version="v2"] .fb2-report-ledger-head{flex-direction:column;}body[data-ui-version="v2"] .fb2-report-ledger-toolbar{gap:12px;}body[data-ui-version="v2"] .fb2-report-ledger-toolbar>label{flex-basis:100%;}body[data-ui-version="v2"] .fb2-reports .report-definitions dl{grid-template-columns:1fr;}body[data-ui-version="v2"] .fb2-report-reading dl{grid-template-columns:1fr;}body[data-ui-version="v2"] .fb2-reports .report-statement-lines>div{font-size:12px;}body[data-ui-version="v2"] .fb2-reports .report-statement-lines strong{font-size:14px;}}
@media(prefers-reduced-motion:reduce){body[data-ui-version="v2"] .fb2-reports *{transition:none!important;animation:none!important;}}
