.report-filters{position:relative;margin-bottom:18px;padding:16px 18px;overflow:visible}
.report-primary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;max-width:1150px;margin:10px auto}.report-primary-card{position:relative;overflow:hidden;min-width:0;min-height:244px;padding:24px 26px;text-align:start;border:1px solid var(--border);border-radius:15px;background:var(--panel);box-shadow:0 4px 12px #1d324805;color:var(--ink);transition:transform .15s,box-shadow .15s,border-color .15s}.report-primary-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px #1d32480c;border-color:var(--report-color)}.report-primary-card:focus-visible{outline:3px solid var(--report-color);outline-offset:3px}.expense{--report-color:#E04C54}.income{--report-color:#70A34D}.cash-flow{--report-color:#D7A12F}.net-worth{--report-color:#20A6BD}.report-primary-top{display:flex;justify-content:space-between;align-items:center}.report-primary-top>.ui-icon{height:20px;width:20px;color:var(--muted)}.report-group-symbol{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:15px;color:var(--report-color);background:color-mix(in srgb,var(--report-color) 11%,var(--panel))}.report-group-symbol svg{width:27px;height:27px}.report-primary-card h2{position:relative;z-index:1;font-size:22px;margin:18px 0 8px;font-weight:600}.report-primary-card p{position:relative;z-index:1;margin:0;max-width:80%;font-size:12px;line-height:1.6;color:var(--muted)}.report-primary-art{position:absolute;inset-inline-end:-9px;bottom:-2px;width:55%;height:75px;color:var(--report-color);opacity:.65}.report-primary-art path:first-child{fill:none;stroke:currentColor;stroke-width:2}.report-primary-art path:last-child{fill:currentColor;opacity:.08}.report-menu-heading{display:flex;align-items:center;gap:15px;margin:6px 0 25px}.report-menu-heading h2{font-size:22px;margin:0}.report-type-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.report-type-card{display:flex;align-items:center;gap:14px;min-height:78px;text-align:start;padding:17px;border:1px solid var(--border);border-radius:11px;background:var(--panel);font-size:14px;color:var(--ink)}.report-type-card>span:nth-child(2){flex:1}.report-type-card>.ui-icon{width:17px;height:17px;color:var(--muted)}.report-type-icon{display:flex;align-items:center;justify-content:center;flex:none;width:38px;height:38px;border-radius:10px;color:var(--report-color);background:color-mix(in srgb,var(--report-color) 9%,var(--panel))}.report-type-icon svg{height:20px;width:20px}.report-unavailable{max-width:720px;margin:10px auto;padding:32px}.report-unavailable h2{font-size:19px;margin:20px 0 12px}.report-unavailable p{font-size:14px;color:var(--muted);line-height:1.8;max-width:570px}
@media(max-width:700px){.report-primary-grid{gap:14px}.report-primary-card{padding:19px;min-height:220px}.report-primary-card h2{font-size:20px}.report-type-list{grid-template-columns:1fr}}@media(max-width:480px){.report-primary-grid{grid-template-columns:1fr}.report-primary-card{min-height:185px}.report-primary-card h2{margin-top:12px}.report-primary-card p{max-width:85%}}@media(prefers-reduced-motion:reduce){.report-primary-card{transition:none}}
.report-control-bar{display:grid;grid-template-columns:minmax(180px,1fr) minmax(130px,180px) minmax(75px,100px);gap:12px;padding-inline-end:132px}
.report-field{display:flex;min-width:0;flex-direction:column;gap:6px;font-size:12px;font-weight:500;color:var(--muted)}
.report-field>span{line-height:16px}.report-field input,.report-field select{width:100%;min-width:0;min-height:38px;padding:8px 10px;font-size:13px;color:var(--ink)}
.report-secondary-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-top:14px}.report-secondary-controls>.report-field{width:170px}.report-secondary-controls>.report-field-project{width:300px;max-width:100%}
.report-more-filters>summary{position:absolute;inset-inline-end:18px;top:38px;display:flex;align-items:center;gap:7px;min-height:38px;padding:7px 10px;border:1px solid var(--border);border-radius:7px;cursor:pointer;font-size:12px;list-style:none}
.report-more-filters>summary::-webkit-details-marker,.report-data>summary::-webkit-details-marker{display:none}.report-more-filters>summary:hover{border-color:var(--accent)}.report-more-filters[open]>summary{background:var(--soft);color:var(--accent);border-color:var(--accent)}
.report-more-filters>summary svg,.report-data>summary svg{width:16px;height:16px;flex:none}.report-count{color:var(--muted);background:var(--bg);font-variant-numeric:tabular-nums;font-size:11px;padding:2px 6px;border-radius:4px;font-weight:500}
.report-filter-panel{display:grid;grid-template-columns:minmax(200px,1fr) minmax(180px,1fr);gap:24px;border-top:1px solid var(--border);margin-top:18px;padding-top:18px}
.report-account-list{border:0;padding:0;margin:0;min-width:0}.report-account-list legend{font-size:12px;color:var(--muted);margin-bottom:8px;padding:0}.report-account-list>div{max-height:190px;overflow:auto;display:grid;gap:3px}.report-account-list label{display:flex;gap:8px;align-items:center;font-size:13px;padding:5px 0}.report-account-list input{width:16px;height:16px;min-height:16px;flex:none;margin:0}.report-extra-fields{display:grid;gap:14px;align-content:start}
.report-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:0 3px;margin-bottom:20px}.report-summary article{min-width:0}.report-summary h3{font-size:12px;font-weight:500;color:var(--muted);margin:0 0 7px}.report-summary article>.num{font-size:clamp(18px,2vw,27px);font-weight:600;letter-spacing:-.02em;overflow-wrap:anywhere}
.report-visual,.report-data,.report-drill{margin-bottom:16px}.report-section-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:22px}.report-section-heading h2{margin:0;font-size:15px}.report-period{color:var(--muted);font-size:12px;margin:6px 0 0;line-height:1.5}.report-actions{display:flex;gap:6px;flex:none}.report-icon-button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;height:34px;width:34px;padding:7px;border:1px solid transparent;background:transparent;border-radius:7px}.report-icon-button svg{height:18px;width:18px}.report-icon-button:hover{background:var(--soft);color:var(--accent)}.report-secondary-controls>.report-icon-button{height:38px;width:38px;border-color:var(--border)}
.report-bars{max-height:480px;overflow:auto;padding-inline-end:6px}.report-bar-row{display:grid;grid-template-columns:minmax(140px,25%) minmax(0,1fr);gap:18px;align-items:center;width:100%;text-align:start;border:0;background:transparent;padding:9px 0;border-radius:0;min-height:40px}.report-bar-row:hover{background:var(--soft)}.report-bar-title{overflow:hidden;text-overflow:ellipsis;font-size:13px}.report-bar-tracks{display:flex;flex-direction:column;gap:5px;min-width:0}.report-bar-track{position:relative;height:27px;min-width:0;background:color-mix(in srgb,var(--muted) 8%,transparent);border-radius:4px;overflow:hidden}.report-bar-fill{position:absolute;inset:0;width:100%;height:100%;border-radius:4px;opacity:.25}.report-bar-fill.income{fill:#0c9868}.report-bar-fill.expense{fill:#df6442}.report-bar-number{position:relative;display:block;text-align:end;padding:5px 8px;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.report-legend{display:flex;gap:20px;font-size:12px;margin-bottom:18px}.report-legend .income{color:var(--green)}.report-legend .expense{color:var(--red)}.report-line{width:100%;height:auto;max-height:290px;overflow:visible;color:var(--accent)}.report-line polyline{fill:none;stroke:currentColor;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}.report-line .report-zero{stroke:var(--border);stroke-width:1;stroke-dasharray:4 4}.report-line-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.report-chart-dates{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}
.report-pages{display:flex;justify-content:end;align-items:center;gap:10px;padding-top:16px;margin-top:14px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}.report-pages select{font-size:12px;min-height:34px;padding:6px 10px}
.report-data{padding:0;overflow:hidden}.report-data>summary{display:flex;align-items:center;gap:9px;list-style:none;padding:15px 18px;font-size:13px;color:var(--muted);cursor:pointer}.report-data>summary:after{content:'+';margin-inline-start:auto;font-size:18px;line-height:1}.report-data[open]>summary:after{content:'−'}.report-data[open]>summary{border-bottom:1px solid var(--border);color:var(--ink)}.report-table-scroll{overflow:auto}.report-data table{width:100%}.report-drill{scroll-margin-top:24px}.report-drill-scroll{overflow:auto;max-height:520px}.report-drill table{width:100%;min-width:650px}.report-filters select:disabled{opacity:.45}.dark .report-bar-fill{opacity:.35}
@media(max-width:1100px){.report-control-bar{grid-template-columns:minmax(150px,1fr) minmax(100px,145px) 78px;gap:9px;padding-inline-end:120px}.report-more-filters>summary{gap:5px;padding-inline:8px}}
@media(max-width:1000px){.report-control-bar{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 80px;padding-inline-end:0}.report-more-filters>summary{position:static;width:max-content;margin-top:12px}.report-filter-panel{margin-top:14px}.report-field select{font-size:12px}}
@media(max-width:600px){.report-filters{padding:14px}.report-control-bar{grid-template-columns:1fr 85px}.report-field-report{grid-column:1/-1}.report-control-bar .report-field-period{grid-column:1}.report-filter-panel{grid-template-columns:1fr;gap:16px}.report-secondary-controls>.report-field{flex:1;min-width:130px}.report-secondary-controls>.report-field-project{flex-basis:100%}.report-summary{gap:12px;margin-bottom:18px}.report-summary article>.num{font-size:18px}.report-summary h3{font-size:11px}.report-section-heading{gap:10px}.report-bar-row{grid-template-columns:110px minmax(0,1fr);gap:10px}.report-data table{min-width:500px}.report-visual,.report-drill{padding:18px}}
[dir=rtl] .report-primary-top>.ui-icon,[dir=rtl] .report-type-card>.ui-icon{transform:rotate(180deg)}
/* Lighter report entry points and quieter detail controls. */
.report-primary-grid{gap:14px;max-width:none;margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}.report-primary-card{padding:20px;min-height:158px;border-radius:11px;box-shadow:none}.report-group-symbol{width:36px;height:36px;border-radius:10px}.report-group-symbol svg{height:20px;width:20px}.report-primary-card h2{font-size:17px;margin:14px 0 5px}.report-primary-card p{font-size:11px;max-width:85%}.report-primary-art{height:40px;opacity:.35;width:35%}.report-primary-card:hover{box-shadow:0 4px 15px #14334009}.report-menu-heading{margin:0 0 18px;gap:12px}.report-menu-heading h2{font-size:18px}.report-type-card{min-height:61px;padding:12px 14px;font-size:13px;border-radius:9px;gap:11px}.report-type-icon{width:30px;height:30px;border-radius:8px}.report-type-icon svg{width:17px;height:17px}.report-filters{padding:13px 15px;border-radius:10px;box-shadow:none}.report-summary{gap:16px;margin-bottom:16px}.report-summary h3{font-size:11px}.report-summary article>.num{font-size:23px}.report-section-heading{margin-bottom:16px}.report-visual{padding:18px;border-radius:10px}.report-data{padding:0 18px;border-radius:10px}.report-data>summary{padding-block:13px}.report-more-filters>summary{inset-inline-end:15px;top:35px}.report-unavailable{margin:0;max-width:none;padding:24px}.report-unavailable h2{font-size:17px}.report-unavailable p{font-size:13px}
@media(max-width:650px){.report-primary-card{min-height:145px;padding:16px}.report-primary-card h2{font-size:16px}.report-primary-art{display:none}.report-primary-card p{max-width:100%}.report-type-list{grid-template-columns:1fr}.report-summary article>.num{font-size:18px}}
@media(max-width:410px){.report-primary-grid{grid-template-columns:1fr}.report-primary-card{min-height:128px}}
.cashflow-period-list{overflow:auto;margin-top:16px;border-top:1px solid var(--border)}.cashflow-period-list table{width:100%;min-width:600px;border-collapse:collapse}.cashflow-period-list th,.cashflow-period-list td{padding:11px 12px;border-bottom:1px solid var(--border);white-space:nowrap}.cashflow-period-list thead th{position:sticky;top:0;background:var(--soft);color:var(--muted);font-size:11px;font-weight:600}.cashflow-period-list tbody th{font-weight:550;text-align:start}.cashflow-period-list .positive{color:var(--green)}.cashflow-period-list .negative{color:var(--red)}.cashflow-period-list tbody tr:hover{background:var(--soft)}

/* Report detail: chart first, filters in a quiet vertical side pane. */
.content:has(.detail-mode)>.heading{display:none}
.detail-mode{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:20px;align-items:start}
.report-page-title{grid-column:1/-1;margin:0;font-size:26px;font-weight:600}
.detail-mode .report-filters{grid-column:2;grid-row:2;margin:0;position:sticky;top:20px}
.report-main{grid-column:1;grid-row:2;min-width:0}
.detail-mode .report-control-bar,.detail-mode .report-filter-panel{display:grid;grid-template-columns:1fr;padding-inline-end:0;gap:16px}
.detail-mode .report-more-filters>summary{position:static;margin-top:16px;width:100%;border:0;padding-inline:0}
.detail-mode .report-secondary-controls{display:grid;grid-template-columns:1fr}
.detail-mode .report-secondary-controls>.report-field{width:100%;min-width:0}
.detail-mode .report-visual .report-section-heading h2{display:none}
@media(max-width:850px){.detail-mode{grid-template-columns:minmax(0,1fr)}.detail-mode .report-filters{grid-column:1;grid-row:3;position:static}.report-main{grid-row:2}.report-page-title{font-size:22px}}

.content:has(.report-category-menu)>.heading{display:none}
.report-category-menu .report-menu-heading{margin:0 0 24px}
.report-menu-heading h1{margin:0;font-size:26px;font-weight:600}
.report-visual-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.report-visual-card{padding:0;overflow:hidden;border:1px solid var(--border);border-radius:14px;background:var(--panel);text-align:start;color:var(--ink);transition:transform .16s,border-color .16s,box-shadow .16s}
.report-visual-card:hover{transform:translateY(-3px);border-color:var(--report-color);box-shadow:0 8px 24px #18334512}
.report-visual-card:focus-visible{outline:3px solid var(--report-color);outline-offset:3px}
.report-card-art{display:block;padding:20px 22px 10px;background:linear-gradient(145deg,color-mix(in srgb,var(--report-color) 8%,var(--panel)),var(--panel));color:var(--report-color)}
.report-card-art svg{display:block;width:100%;height:145px}
.art-soft{stroke:currentColor;opacity:.17}.art-soft-fill{fill:currentColor;opacity:.13}.art-axis{fill:none;stroke:var(--border);stroke-width:1}.art-strokes{fill:none;stroke:currentColor;stroke-width:9;stroke-linecap:round;opacity:.3}
.report-card-label{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px 22px;font-weight:600;font-size:14px;min-height:70px}
.report-card-label>.ui-icon{width:17px;height:17px;flex:none;color:var(--report-color)}
.report-category-choice{width:min(440px,calc(100vw - 32px));max-width:none;padding:0;border:1px solid var(--border);border-radius:14px;background:var(--panel);color:var(--ink);box-shadow:0 18px 55px #14212c35}
.report-category-choice::backdrop{background:#17232e66;backdrop-filter:blur(2px)}
.report-category-choice-content{padding:24px}
.report-category-choice h2{margin:0 0 8px;font-size:18px}
.report-category-choice p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.report-category-choice-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:24px}
.report-category-choice-actions .text-button{border:0;background:transparent;color:var(--muted)}
@media(max-width:480px){.report-category-choice-content{padding:20px}.report-category-choice-actions{display:grid;grid-template-columns:1fr}.report-category-choice-actions button{width:100%}}
@media(max-width:1100px){.report-visual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.report-visual-grid{grid-template-columns:1fr;gap:14px}.report-card-art svg{height:120px}.report-menu-heading h1{font-size:22px}}
@media(prefers-reduced-motion:reduce){.report-visual-card{transition:none}}

.cashflow-period-row{cursor:pointer}.cashflow-period-link{border:0;background:transparent;color:inherit;font:inherit;padding:0;text-align:inherit;cursor:pointer}.cashflow-period-row:focus-within{outline:2px solid var(--accent);outline-offset:-2px}

@media(min-width:851px){.detail-mode{grid-template-columns:minmax(0,1fr) var(--report-filter-width,260px)}.report-pane-resizer{position:absolute;inset-inline-start:-11px;top:0;bottom:0;width:12px;cursor:col-resize;touch-action:none}.report-pane-resizer:hover,.report-pane-resizer:focus-visible{background:var(--soft);outline:1px solid var(--border)}}@media(max-width:850px){.report-pane-resizer{display:none}}

/* Shared flat illustration palette, approved alongside the Android menu. */
.report-visual-card.expense{--report-color:#ea4a7b;--report-secondary:#aa63d5;--report-tertiary:#ffad45}
.report-visual-card.income{--report-color:#12aa7d;--report-secondary:#87c83e;--report-tertiary:#f5bd30}
.report-visual-card.cash-flow{--report-color:#138dac;--report-secondary:#41bda7;--report-tertiary:#f3bd38}
.report-visual-card{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:230px;padding:26px 20px;gap:22px}
.report-card-art{padding:0;background:transparent;width:150px;max-width:100%}
.report-card-art svg{height:110px;width:100%}
.report-card-label{display:block;text-align:center;padding:0;min-height:0;font-size:16px;line-height:1.45}
.report-menu-heading,.report-detail-heading{display:flex;align-items:center;gap:12px}.report-detail-heading{grid-column:1/-1}.report-detail-heading .report-page-title{margin:0}
.report-primary-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}.report-primary-card.expense{--report-color:#ea4a7b;--report-secondary:#aa63d5;--report-tertiary:#ffad45}.report-primary-card.income{--report-color:#12aa7d;--report-secondary:#87c83e;--report-tertiary:#f5bd30}.report-primary-card.cash-flow{--report-color:#138dac;--report-secondary:#41bda7;--report-tertiary:#f3bd38}.report-primary-card{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:18px;padding:24px 22px;min-height:180px;background:color-mix(in srgb,var(--report-color) 3%,var(--panel));text-align:start}.report-primary-card h2{margin:0;font-size:18px;line-height:1.4;min-width:0;overflow-wrap:break-word}.report-primary-card .report-card-art{width:132px;flex:0 0 132px}.report-primary-card .report-card-art svg{height:104px}@media(max-width:650px){.report-primary-grid{grid-template-columns:1fr}.report-primary-card{min-height:150px}}
