.finance-menu-bar{position:relative;gap:8px;align-items:flex-start;margin:18px 0;z-index:12}
.finance-menu{position:relative;flex:0 0 auto}
.finance-menu>summary{list-style:none;cursor:pointer;padding:12px 18px;border:1px solid var(--border,#cedbed);border-radius:10px;background:var(--panel,#fff);font-weight:700;display:flex;gap:16px;align-items:center}
.finance-menu>summary::-webkit-details-marker{display:none}
.finance-menu>summary:after{content:'⌄';font-size:15px}
.finance-menu>summary.active,.finance-menu[open]>summary{background:var(--primary,#6959df);color:white;border-color:transparent}
.finance-menu>summary:focus-visible{outline:3px solid #22b8cf;outline-offset:2px}
.finance-menu-panel{position:absolute;right:0;top:calc(100% + 6px);width:260px;max-height:65vh;overflow-y:auto;padding:10px;background:var(--panel,#fff);color:var(--text,#19324d);border:1px solid var(--border,#cedbed);border-radius:12px;box-shadow:0 15px 35px #132e502b;display:flex;flex-direction:column;gap:4px}
.finance-menu-panel section{display:flex;flex-direction:column;gap:4px;padding-bottom:8px;border-bottom:1px solid var(--border,#cedbed)}
.finance-menu-panel section:last-child{border-bottom:0;padding-bottom:0}
.finance-menu-panel h4{margin:7px 8px;color:var(--muted,#71849b);font-size:11px}
.finance-menu-panel button{text-align:right;border-color:transparent;background:transparent;width:100%;padding:9px 12px;min-height:38px;box-shadow:none}
.finance-menu-panel button:hover{background:#8c79ed17}
.finance-menu-panel button.primary{background:var(--primary,#6959df);color:#fff}
table tfoot[data-report-totals] th{padding:10px 12px;border-top:2px solid var(--border,#cedbed);background:#6b60dd0d;font-weight:700;white-space:nowrap}
table tfoot[data-report-totals] tr+tr th{border-top:1px solid var(--border,#cedbed);background:#13a7ba0d}
@media(max-width:700px){.finance-menu-bar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.finance-menu>summary{justify-content:space-between;padding:10px 12px;font-size:12px}.finance-menu-panel{width:min(280px,calc(100vw - 58px));max-height:55vh}.finance-menu:nth-child(even) .finance-menu-panel{right:auto;left:0}table tfoot[data-report-totals] th{padding:9px 10px;font-size:12px}}
@media print{.finance-menu-bar{display:none!important}table tfoot[data-report-totals]{display:table-row-group}table tfoot[data-report-totals] th{background:transparent;color:#000}}
@media(max-width:700px){.finance-menu[open]{grid-column:1/-1}.finance-menu[open] .finance-menu-panel{position:static;width:100%;margin-top:6px;max-height:55vh}}
html[data-theme=dark] .finance-menu>summary,html[data-theme=dark] .finance-menu-panel{background:#1c324b;color:#edf3fa;border-color:#34506a}
html[data-theme=dark] .finance-menu>summary.active,html[data-theme=dark] .finance-menu[open]>summary{background:#6959df;color:#fff}
html[data-theme=dark] .finance-menu-panel h4{color:#a2b3c7}
html[data-theme=dark] .finance-menu-panel button{color:#edf3fa}
html[data-theme=dark] table tfoot[data-report-totals] th{background:#243953;color:#edf3fa}
