/* Shared cash/bank report rows: identity left, readable balance right. */
:is(.cash-report-account,.br-bank){display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;padding:12px!important;border:0!important;border-bottom:1px solid var(--hairline,var(--br-line,#d2dceb))!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-height:68px}
:is(.cash-report-account,.br-bank)::before{content:attr(data-report-symbol);display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--surface,var(--br-surface,#fff));border:1px solid var(--hairline,var(--br-line,#d2dceb));color:var(--brass,var(--br-accent,#80662e));font-size:12px;font-weight:700}
:is(.cash-report-account,.br-bank)>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;text-align:left}
:is(.cash-report-account,.br-bank)>strong{font-size:clamp(14px,2vw,18px)!important;white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}
.cash-report .cash-report-account[aria-pressed=true]{background:var(--surface,var(--br-surface,#fff))!important;color:var(--text,#193451)!important;box-shadow:inset 3px 0 var(--brass,var(--br-accent,#80662e))!important}
.cash-report .cash-report-card{border:0!important;box-shadow:none!important;border-radius:0!important;background:transparent!important}
.cash-report .cr-hero{padding:16px 12px!important;background:var(--surface,var(--br-surface,#fff))!important;color:var(--text,#193451)!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.cash-report .cr-totals{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;gap:20px!important;margin-top:14px!important}
.cash-report .cr-totals>div{border-top:1px solid var(--hairline,var(--br-line,#d2dceb))!important;padding-top:10px!important}
.cash-report .cr-totals strong{font-size:clamp(20px,2.2vw,28px)!important}
.cash-report .cr-brand{justify-content:flex-start!important;margin-bottom:12px!important}
@media(max-width:480px){:is(.cash-report-account,.br-bank){grid-template-columns:36px minmax(0,1fr) auto!important;gap:8px!important;padding:10px 6px!important}:is(.cash-report-account,.br-bank)::before{width:34px;height:34px;font-size:10px}.cash-report .cr-totals{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}}
.cash-report .cr-brand h2{color:var(--text,#193451)!important}.cash-report .cr-balance-caption{color:var(--muted,#53677d)!important}

@media(max-width:600px){#bankBalanceReport>h1{display:none!important}}

/* Bank balance report interaction acceptance 2026-10-06. */
#bankBalanceReport .br-report-date{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;margin:6px 0 10px}
#bankBalanceReport .br-report-date>.mmg-day-nav{flex:0 0 auto}
#bankBalanceReport .br-report-date>#brToday{flex:0 0 auto;min-width:max-content;height:30px;border:1px solid var(--br-line);border-radius:7px;background:var(--br-surface);padding:3px 9px;font-weight:400}
#bankBalanceReport .br-statement-dates{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;margin:2px 0 8px;padding:8px 0;border-bottom:1px solid var(--br-line)}
#bankBalanceReport .br-statement-dates label{display:flex;align-items:center;gap:5px;font-size:12px}
#bankBalanceReport .br-statement-dates input{height:30px;min-width:142px;border:1px solid var(--br-line);border-radius:6px;background:var(--br-surface);padding:3px 8px}
#bankBalanceReport .br-titlebar{justify-content:center}
#bankBalanceReport .br-titlebar h2{text-align:center;margin:4px 0}
#bankBalanceReport #brMatrix tbody tr[data-bank]{cursor:pointer;transition:background-color .12s,box-shadow .12s}
#bankBalanceReport #brMatrix tbody tr[data-bank]:hover{background:color-mix(in srgb,var(--br-accent) 10%,transparent)}
#bankBalanceReport #brMatrix tbody tr[data-bank]:focus-visible{outline:2px solid var(--br-accent);outline-offset:-2px}
#bankBalanceReport #brMatrix tbody tr[data-bank][aria-expanded=true]{background:color-mix(in srgb,var(--br-accent) 16%,transparent);box-shadow:inset 3px 0 var(--br-accent)}
#bankBalanceReport #brMatrix tbody tr[data-bank] td:first-child{font-weight:600}
#bankBalanceReport #brMatrix tbody tr[data-bank] td button{cursor:pointer;border-radius:4px;padding:3px 5px}
#bankBalanceReport #brMatrix tbody tr[data-bank] td button:hover,#bankBalanceReport #brMatrix tbody tr[data-bank] td button:focus-visible{background:color-mix(in srgb,var(--br-accent) 15%,transparent)}
#bankBalanceReport .br-bank{cursor:pointer}
#bankBalanceReport .br-bank:hover,#bankBalanceReport .br-bank:focus-visible,#bankBalanceReport .br-bank[aria-expanded=true]{background:color-mix(in srgb,var(--br-accent) 12%,var(--br-surface))!important;box-shadow:inset 3px 0 var(--br-accent)!important}
#bankBalanceReport .br-detail{scroll-margin-top:8px}
@media(max-width:600px){#bankBalanceReport .br-report-date{flex-wrap:wrap}#bankBalanceReport .br-report-date>#brToday{flex-basis:auto}#bankBalanceReport .br-statement-dates{display:grid;grid-template-columns:1fr 1fr;gap:6px}#bankBalanceReport .br-statement-dates label{display:block;min-width:0}#bankBalanceReport .br-statement-dates input{width:100%;min-width:0;font-size:16px}#bankBalanceReport .br-bank{min-height:52px}}

/* Final visual spacing acceptance. */
#bankBalanceReport .br-detail{margin-top:14px!important}
#bankBalanceReport .mmg-report-overview #brCurrencies .br-currency{min-width:0!important;padding-inline:12px!important;gap:10px!important}
#bankBalanceReport .mmg-report-overview #brCurrencies .br-currency>strong{min-width:0!important;max-width:100%!important;margin-left:auto!important;padding-left:8px!important;white-space:nowrap!important;font-size:clamp(18px,2.2vw,28px)!important;line-height:1.15!important}
@media(max-width:600px){#bankBalanceReport .br-detail{margin-top:14px!important}#bankBalanceReport .mmg-report-overview #brCurrencies .br-currency{padding-inline:10px!important}#bankBalanceReport .mmg-report-overview #brCurrencies .br-currency>strong{font-size:clamp(17px,7vw,26px)!important}}

/* Bank table is a sibling below the left summary; statement stays in the right column. */
#bankBalanceReport.mmg-report-shell>#brMatrixPanel,#bankBalanceReport.mmg-report-shell>#brBanks{grid-column:1!important;width:100%!important;max-width:none!important;margin:0!important;min-width:0!important}
#bankBalanceReport.mmg-report-shell>#brMatrixPanel{grid-row:2!important;align-self:start!important}
#bankBalanceReport.mmg-report-shell>.mmg-report-content{grid-column:2!important;grid-row:1/4!important;min-width:0!important}
#bankBalanceReport #brMatrix{min-width:680px!important}
#bankBalanceReport #brMatrix th:first-child,#bankBalanceReport #brMatrix td:first-child{text-align:left!important;white-space:normal!important;min-width:190px}
#bankBalanceReport .br-bank{grid-template-columns:minmax(0,1fr) auto!important}
#bankBalanceReport .br-bank::before{display:none!important;content:none!important}
#bankBalanceReport .mmg-report-overview #brCurrencies .br-currency>strong{font-weight:700!important}
#bankBalanceReport .br-report-date>#brToday{width:30px;min-width:30px;padding:0!important;font-size:17px;line-height:1;font-weight:700}
@media(max-width:760px){#bankBalanceReport.mmg-report-shell>#brMatrixPanel{display:none!important}#bankBalanceReport.mmg-report-shell>#brBanks{display:block!important;grid-column:1!important;grid-row:auto!important}#bankBalanceReport.mmg-report-shell>.mmg-report-content{grid-column:1!important;grid-row:auto!important}}

/* Compact aligned matrix; date belongs to the balance overview. */
#bankBalanceReport #brMatrix{table-layout:fixed!important;min-width:0!important;width:100%!important}
#bankBalanceReport #brMatrix :is(th,td){min-width:0!important;max-width:none!important;padding-inline:6px!important;box-sizing:border-box!important}
#bankBalanceReport #brMatrix :is(th,td):first-child{width:34%!important;min-width:0!important}
#bankBalanceReport #brMatrix :is(th,td):not(:first-child){width:auto!important}
#bankBalanceReport #brMatrix tbody tr[data-bank],#bankBalanceReport #brMatrix tbody tr[data-bank] :is(td,button){transition:none!important;animation:none!important}
#bankBalanceReport #brMatrix tbody tr[data-bank] td button{background:transparent!important;box-shadow:none!important;color:inherit!important;width:100%;text-align:right;min-width:0!important;padding:2px 0!important}
#bankBalanceReport #brMatrix tbody tr[data-bank]:hover td{background:color-mix(in srgb,var(--br-accent) 10%,var(--br-surface))!important}
#bankBalanceReport .mmg-report-overview .br-report-date{width:100%;margin:10px 0 18px;gap:6px;justify-content:center;flex-wrap:nowrap}
#bankBalanceReport .mmg-report-overview .br-report-date>.mmg-day-nav{flex:0 1 auto;min-width:0;max-width:calc(100% - 36px)}
#bankBalanceReport[data-report-ready=false] :is(#brCurrencies,#brMatrixPanel,#brBanks,#brDetail){visibility:hidden!important;pointer-events:none!important}
#bankBalanceReport[data-report-ready=false] #brCurrencies{min-height:160px}

/* Same inline statement on phone and desktop: totals, matrix, selected row details. */
#bankBalanceReport.mmg-report-shell{display:block!important}
#bankBalanceReport .mmg-report-overview{width:100%!important;box-sizing:border-box!important;margin:0 0 14px!important}
#bankBalanceReport.mmg-report-shell>#brMatrixPanel{display:block!important;width:100%!important;box-sizing:border-box!important}
#bankBalanceReport #brBanks{display:none!important}
#bankBalanceReport .mmg-report-content:empty{display:none!important}
#bankBalanceReport #brMatrix tr[data-bank-detail]>td{padding:8px 0!important;width:auto!important}
#bankBalanceReport #brDetail{width:100%;box-sizing:border-box;margin:0!important;border-radius:8px}
#bankBalanceReport #brDetail :is(th,td){width:auto!important;min-width:0!important}
#bankBalanceReport #brDetail h2{text-align:center!important}
@media(max-width:760px){#bankBalanceReport #brMatrix{font-size:12px!important}#bankBalanceReport #brMatrix>thead>tr>th,#bankBalanceReport #brMatrix>tbody>tr[data-bank]>td,#bankBalanceReport #brMatrix>tfoot>tr>td{padding-inline:3px!important}#bankBalanceReport #brMatrix>thead>tr>th:first-child,#bankBalanceReport #brMatrix>tbody>tr[data-bank]>td:first-child,#bankBalanceReport #brMatrix>tfoot>tr>td:first-child{width:31%!important}#bankBalanceReport #brMatrix td button{font:inherit!important;white-space:nowrap!important}}

#bankBalanceReport.mmg-report-shell>#brBanks{display:none!important}
#bankBalanceReport .mmg-report-overview .mmg-report-brand{justify-content:center!important}
#bankBalanceReport .mmg-report-overview .mmg-report-title{text-align:center!important}

/* Bank overview and ledger sit side by side on desktop. */
@media(min-width:1000px){html body main#bankBalanceReport.mmg-report-shell{display:grid!important;grid-template-columns:minmax(300px,28%) minmax(0,1fr)!important;gap:22px!important;align-items:start!important}#bankBalanceReport .mmg-report-overview{grid-column:1!important;grid-row:1!important;margin:0!important}#bankBalanceReport.mmg-report-shell>#brMatrixPanel{grid-column:2!important;grid-row:1!important;min-width:0!important}#bankBalanceReport .mmg-report-content{grid-column:1/-1!important}}
html body #bankBalanceReport .mmg-report-overview .mmg-day-nav{background:transparent!important;--text:#fff;border-color:#ffffff55!important}html body #bankBalanceReport .mmg-report-overview .mmg-day-nav>*{background:transparent!important;color:#fff!important;-webkit-text-fill-color:#fff!important}html body #bankBalanceReport .mmg-report-overview .br-report-date>button{background:transparent!important;color:#fff!important;border-color:#ffffff55!important}
html body #bankBalanceReport #brMatrixPanel{background:linear-gradient(125deg,var(--mmg-report-hero-start,#193c50),var(--mmg-report-hero-end,#24586b))!important;color:#fff!important;border:1px solid #244f61!important;border-radius:24px!important;padding:12px!important;box-shadow:0 7px 0 #102c3c,0 18px 28px #15283e20!important}html body #bankBalanceReport #brMatrix>tbody>tr[data-bank]>td{background:transparent!important;color:#fff!important}html body #bankBalanceReport #brMatrix>tbody>tr[data-bank]:hover>td{background:#ffffff18!important}

/* Bank totals expand to accounts, then account movements. */
.br-accounts table{width:100%;table-layout:fixed}.br-account{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;border:1px solid color-mix(in srgb,var(--text) 20%,transparent);border-radius:8px;background:color-mix(in srgb,#24576a 10%,var(--surface));color:var(--text);text-align:left;cursor:pointer}.br-account span{overflow-wrap:anywhere}.br-account strong{white-space:nowrap}.br-account[aria-expanded="true"]{border-color:var(--accent,#16897c)}#brAccountStatement{padding:12px 0}#brAccountStatement[hidden]{display:none!important}

/* Cash and bank ledgers use the same date-range control and calendar dialog. */
#bankBalanceReport .br-statement-dates{display:flex!important;justify-content:center!important;padding:4px 0 8px!important;border:0!important}
#bankBalanceReport .br-movement-range{width:100%!important;justify-content:center!important;flex-wrap:nowrap!important}
#bankBalanceReport .br-movement-range>.mmg-day-nav{min-width:0;max-width:calc(100% - 36px)}
#bankBalanceReport .br-movement-range>.mmg-date-range-toggle{flex:0 0 30px!important}
.cash-report-detail>.mmg-date-range{width:100%!important;justify-content:center!important;flex-wrap:nowrap!important;margin:0 0 9px!important}
.cash-report-detail>.mmg-date-range>.mmg-day-nav{min-width:0;max-width:calc(100% - 36px)}
@media(max-width:600px){#bankBalanceReport .br-statement-dates,.cash-report-detail>.mmg-date-range{display:flex!important;grid-template-columns:none!important}.mmg-date-range-dialog{width:calc(100vw - 16px)!important;max-width:440px!important}}

/* Keep collapsed table borders inside the balance matrix viewport. */
html body #bankBalanceReport #brMatrix{width:calc(100% - 1px)!important;max-width:calc(100% - 1px)!important}
html body #bankBalanceReport #brMatrix>colgroup>col{width:auto!important;min-width:0!important}

/* Scope/status share the matrix flow; remaining report notes occupy their own row. */
#bankBalanceReport #brMatrixPanel>#brScope{margin:0 0 6px;min-width:0;overflow-wrap:anywhere}
@media(min-width:1000px){html body main#bankBalanceReport.mmg-report-shell>.mmg-report-content{grid-column:1/-1!important;grid-row:2!important}}

/* Subaccounts remain real two-column grid rows, with inline movement rows. */
#bankBalanceReport #brAccountsGrid{border-collapse:collapse!important;table-layout:fixed!important;width:100%!important}
#bankBalanceReport #brAccountsGrid>thead>tr>th:first-child,#bankBalanceReport #brAccountsGrid>tbody>tr[data-account-row]>td:first-child{width:auto!important;text-align:left!important}
#bankBalanceReport #brAccountsGrid>thead>tr>th:last-child,#bankBalanceReport #brAccountsGrid>tbody>tr[data-account-row]>td:last-child{width:145px!important;text-align:right!important}
#bankBalanceReport #brAccountsGrid>tbody>tr[data-account-row]>td{padding:4px 6px!important;border:1px solid var(--br-line)!important}
#bankBalanceReport .br-account-select{display:block!important;width:100%!important;text-align:left!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;color:inherit!important;font:inherit!important;overflow-wrap:anywhere;white-space:normal!important}
#bankBalanceReport #brAccountsGrid>tbody>tr[data-account-row]{cursor:pointer}
#bankBalanceReport #brAccountsGrid>tbody>tr[data-account-row][aria-expanded=true]{background:color-mix(in srgb,var(--br-accent) 12%,var(--br-surface))}
#bankBalanceReport #brAccountsGrid>tbody>tr[data-account-detail]>td{padding:4px 0!important}
#bankBalanceReport #brAccountStatement{padding:4px 0!important}
#bankBalanceReport #brDetail .br-movement-table{display:block!important;max-width:100%;overflow:auto}
#bankBalanceReport #brDetail .br-movement-cards{display:none!important}

#bankBalanceReport #brMovements{min-width:600px!important}
/* Mobile account drill-down: currency, bank, account, movements. */
@media(max-width:600px){html body #bankBalanceReport.mmg-report-shell>#brMatrixPanel,html body #bankBalanceReport #brMatrixPanel{display:none!important}html body #bankBalanceReport.mmg-report-shell #brBanks{display:block!important;width:100%}html body #bankBalanceReport .br-bank,html body #bankBalanceReport .br-account-card{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;min-height:0!important;padding:8px!important;margin:6px 0;border-radius:8px;text-align:left}#bankBalanceReport .br-account-card span{min-width:0;overflow-wrap:anywhere}#bankBalanceReport .br-account-card strong{white-space:nowrap}html body #bankBalanceReport .br-report-date>.mmg-date-range{flex:1 1 auto;min-width:0}html body #bankBalanceReport .br-report-date>#brToday{display:none!important}html body #bankBalanceReport #brAccountStatement{min-width:0}html body #bankBalanceReport .br-report-date{gap:4px!important}html body #bankBalanceReport .mmg-report-overview{padding:10px!important}}

/* Bank panel controls and readable ledger on the matching report surface. */
#bankBalanceReport .br-report-date>.mmg-date-range{width:190px;max-width:100%;flex:0 1 190px}
#bankBalanceReport .mmg-report-overview .mmg-report-brand{flex-wrap:wrap!important;gap:8px!important}
#bankBalanceReport #brTypeFilter{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:1px solid #ffffff55;border-radius:7px;background:transparent;color:#fff}
#bankBalanceReport #brMatrixPanel :is(#brScope,#brStatus){color:#fff!important}
#bankBalanceReport #brMatrix :is(th,td){border-color:#ffffff35!important}
#bankBalanceReport #brMatrix tfoot td{background:#ffffff12!important;color:#fff!important}
#bankBalanceReport[data-bank-balance-window] #brMatrix tfoot td.num{font-family:var(--mmg-table-font,Inter,Arial,sans-serif)!important;font-weight:600!important}
@media print{html body #bankBalanceReport #brMatrixPanel{background:#fff!important;color:#163345!important;box-shadow:none!important}html body #bankBalanceReport #brMatrix :is(th,td),#bankBalanceReport #brMatrixPanel :is(#brScope,#brStatus){background:#fff!important;color:#163345!important;border-color:#aaa!important}}

/* Bank statement: stable two-column flow and bounded movement cells. */
html body main#bankBalanceReport[data-bank-statement]{display:grid!important;grid-template-columns:minmax(240px,28%) minmax(0,1fr)!important;align-items:start!important;gap:18px!important}
#bankBalanceReport[data-bank-statement]>.br-statement-sidebar,#bankBalanceReport[data-bank-statement]>.br-statement-main{min-width:0;width:100%;max-width:100%}
#bankBalanceReport[data-bank-statement] .br-statement-sidebar>.mmg-report-overview{margin-bottom:14px!important}
#bankBalanceReport[data-bank-statement] .br-statement-main>#brScope{margin:0 0 8px;overflow-wrap:anywhere}
html body #bankBalanceReport[data-bank-statement] .br-bank{min-height:0!important;height:auto!important;padding:4px 10px!important;line-height:22px!important;margin:5px 0!important;border-radius:7px!important}
html body #bankBalanceReport[data-bank-statement] .br-bank[aria-expanded=true]{background:#d9ebe6!important;color:#143f3a!important;border-color:#247c6b!important;box-shadow:inset 3px 0 #247c6b!important}
html.theme-dark body #bankBalanceReport[data-bank-statement] .br-bank[aria-expanded=true]{background:#245b54!important;color:#fff!important;border-color:#8bc4b4!important}
html body #bankBalanceReport[data-bank-statement] .br-report-date>.mmg-date-range{width:270px!important;max-width:100%!important;flex:0 1 270px!important}
#bankBalanceReport[data-bank-statement] .mmg-mobile-date{white-space:nowrap!important;font-weight:400!important}
html body #bankBalanceReport #brDetail{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;min-width:0!important;max-width:100%!important;width:100%!important}
html body #bankBalanceReport #brDetail .br-scroll{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
html body #bankBalanceReport #brMovements{table-layout:fixed!important}
html body #bankBalanceReport #brMovements :is(th,td){overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#bankBalanceReport #brDetail .record-output-tools{background:transparent!important}
#bankBalanceReport[data-bank-statement]>.br-note{grid-column:1/-1}
@media(max-width:999px){html body main#bankBalanceReport[data-bank-statement]{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}}

/* Bank report calendar fields: consistent bounds and visible keyboard focus. */
body:has(#bankBalanceReport) .mmg-date-range-dialog input[type=date]{border:1px solid var(--hairline,#a8c3c3)!important;border-radius:6px!important;background:var(--surface,#fff)!important;color:var(--text,#163e43)!important;box-shadow:none!important;margin:0!important;outline:2px solid transparent!important;outline-offset:1px!important}
body:has(#bankBalanceReport) .mmg-date-range-dialog input[type=date]:focus-visible{outline-color:var(--accent,#16897c)!important}

/* Bank Balances only: compact aligned title, date tools and scope strip. */
html body #bankBalanceReport[data-bank-balance-window]:not([data-bank-statement]) .mmg-report-brand{justify-content:center!important;flex-direction:column!important;flex-wrap:nowrap!important;gap:4px!important;margin-bottom:4px!important;padding-block:4px!important}
html body #bankBalanceReport[data-bank-balance-window]:not([data-bank-statement]) .mmg-report-title{text-align:center!important}
html body #bankBalanceReport[data-bank-balance-window]:not([data-bank-statement]) .br-cash-date{display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;gap:6px!important;min-height:28px!important;margin:0 0 4px!important}
html body #bankBalanceReport[data-bank-balance-window]:not([data-bank-statement]) .br-report-date{width:auto!important;flex:0 1 auto!important;min-width:0!important;margin:0!important;gap:6px!important;flex-wrap:nowrap!important}
html body #bankBalanceReport[data-bank-balance-window]:not([data-bank-statement]) .br-report-date>.mmg-date-range{width:auto!important;flex:0 1 auto!important;min-width:0!important}
html body #bankBalanceReport[data-bank-balance-window]:not([data-bank-statement]) :is(#brToday,#brTypeFilter){display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 28px!important;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;margin:0!important}
html body #bankBalanceReport[data-bank-balance-window]:not([data-bank-statement]) #brCurrencies .br-type-group>h2{margin-top:4px!important}
html body #bankBalanceReport[data-bank-balance-window]:not([data-bank-statement]) #brScope{align-items:center!important;gap:8px!important}
html body #bankBalanceReport[data-bank-balance-window]:not([data-bank-statement]) #brScope .mmg-grup-serit{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:8px!important}
html body #bankBalanceReport[data-bank-balance-window]:not([data-bank-statement]) #brScope .mmg-gs-not{white-space:nowrap;overflow-wrap:normal}
@media(max-width:980px){html body #bankBalanceReport[data-bank-balance-window]:not([data-bank-statement]) #brScope .mmg-grup-serit{flex-wrap:wrap!important;gap:4px 8px!important}html body #bankBalanceReport[data-bank-balance-window]:not([data-bank-statement]) #brScope .mmg-gs-not{white-space:normal;overflow-wrap:anywhere}}

/* One responsive presentation contract for cash/bank movement and report adapters. */
html body :is(.cash-daily,.bank-daily,.cash-report,#bankBalanceReport,.mmg-common-date-tools){--mmg-account-row-gap:6px;--mmg-account-row-radius:7px;--mmg-account-row-coin:30px;--mmg-account-row-ink:var(--text,var(--br-text,#193451));--mmg-account-row-surface:var(--surface-2,var(--br-surface,#e4edf1));--mmg-account-row-line:var(--hairline,var(--br-line,#91aaa8));}
html body :is(.cash-daily,.bank-daily,.cash-report,#bankBalanceReport) :is(.cash-daily-card,.bank-daily-card,.cash-report-account,.br-currency,.mmg-account-summary){box-sizing:border-box!important;display:grid!important;grid-template-columns:var(--mmg-account-row-coin,30px) minmax(0,1fr) max-content!important;grid-template-rows:auto!important;align-items:center!important;gap:6px 10px!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:46px!important;padding:7px 10px!important;border:1px solid var(--mmg-account-row-line)!important;border-radius:var(--mmg-account-row-radius)!important;color:var(--mmg-account-row-ink)!important;background:var(--mmg-account-row-surface)!important;box-shadow:0 2px 0 color-mix(in srgb,var(--mmg-account-row-line) 60%,transparent)!important;text-align:left!important;}
html body :is(.cash-daily,.bank-daily,.cash-report,#bankBalanceReport) :is(.cash-daily-card,.bank-daily-card,.cash-report-account,.br-currency,.mmg-account-summary)::before{grid-column:1!important;grid-row:1!important;display:grid!important;place-items:center!important;width:var(--mmg-account-row-coin,30px)!important;height:var(--mmg-account-row-coin,30px)!important;margin:0!important;border:1px solid #ba9852!important;border-radius:50%!important;background:linear-gradient(145deg,#ffe9b3,#cba461)!important;color:#193b43!important;box-shadow:0 1px 1px #0003!important;font:700 18px/1 Georgia,serif!important;}
html body :is(.cash-daily,.bank-daily,.cash-report,#bankBalanceReport) :is(.cash-daily-card>span,.bank-card-currency,.cash-report-account>span,.mmg-account-summary>span){grid-column:2!important;grid-row:1!important;min-width:0!important;text-align:left!important;font:700 12px/16px Inter,Arial,sans-serif!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;color:inherit!important;}
html body :is(.cash-daily,.bank-daily,.cash-report,#bankBalanceReport) :is(.cash-daily-card,.bank-daily-card,.cash-report-account,.br-currency,.mmg-account-summary)>strong{grid-column:3!important;grid-row:1!important;margin:0!important;min-width:0!important;max-width:100%!important;text-align:right!important;white-space:nowrap!important;font:700 18px/22px Inter,Arial,sans-serif!important;color:inherit!important;}
html body :is(.cash-daily,.bank-daily,.cash-report,#bankBalanceReport) :is(.cash-daily-card,.bank-daily-card,.cash-report-account,.br-currency,.mmg-account-summary)[aria-pressed=true]{background:linear-gradient(135deg,#ffe69a,#e9bb4e)!important;color:#243234!important;border-color:#a87916!important;outline:2px solid #a87916!important;outline-offset:-2px!important;}
html:not(.theme-light):not([data-theme=light]) body :is(.cash-daily,.bank-daily,.cash-report,#bankBalanceReport) :is(.cash-daily-card,.bank-daily-card,.cash-report-account,.br-currency,.mmg-account-summary)[aria-pressed=true]{background:linear-gradient(135deg,#efcf75,#c99b36)!important;border-color:#f4d47f!important;outline-color:#f4d47f!important;}
html body :is(.movement-date-tools,.cash-report-date,.br-cash-date){display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;flex-wrap:nowrap!important;min-width:0!important;max-width:100%!important;margin-block:0 6px!important;}
html body :is(.movement-date-tools,.cash-report-date,.br-cash-date) .mmg-date-range{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:5px!important;min-width:0!important;}
html body :is(.cash-report h2,.cash-report h3,#bankBalanceReport h2,.cash-daily h2,.bank-daily h2){text-align:center!important;}
@media(max-width:768px){
 html body :is(.cash-daily,.bank-daily,.cash-report,#bankBalanceReport) :is(.cash-daily-card,.bank-daily-card,.cash-report-account,.br-currency,.mmg-account-summary)>strong{font-size:clamp(14px,4.85vw,22px)!important;line-height:1.15!important;}
 html body .br-movement-table:has(>table.mmg-compact-statement){display:block!important;}
 html body #bankBalanceReport:has(table.mmg-compact-statement) #brMovementCards{display:none!important;}
 html body :is(.cash-daily-cards,.bank-daily-cards,.cash-report-accounts,.br-currencies){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--mmg-account-row-gap,6px)!important;min-width:0!important;width:100%!important;}
 html body :is(.cash-daily,.bank-daily,.cash-report,#bankBalanceReport) :is(.cash-daily-card,.bank-daily-card,.cash-report-account,.br-currency,.mmg-account-summary){margin:0!important;}
 html body .bank-daily-workspace>.mmg-common-date-tools{grid-column:1!important;grid-row:1!important;width:100%!important;}
 html body .bank-daily-workspace>.bank-daily{grid-column:1!important;grid-row:2!important;}
 html body .bank-daily-workspace>.bank-daily-panel{grid-column:1!important;grid-row:3!important;}
 html body .cash-daily-workspace>.mmg-common-date-tools{grid-column:1/-1!important;width:100%!important;}
 html body .cash-report .cr-movement-title,html body .br-bank-statement-dialog h2{display:none!important;}
 html body table.mmg-compact-statement{display:table!important;table-layout:fixed!important;width:100%!important;min-width:0!important;max-width:100%!important;}
 html body table.mmg-compact-statement thead{display:table-header-group!important;}
 html body table.mmg-compact-statement tbody{display:table-row-group!important;}
 html body table.mmg-compact-statement tr:not([hidden]){height:auto!important;min-height:0!important;}
 html body table.mmg-compact-statement tr:is([hidden],.mmg-gizli,[style*="display: none"]),html body table.mmg-compact-statement tr:is([hidden],.mmg-gizli,[style*="display: none"])+tr.mmg-statement-inline-detail{display:none!important;}
 html body table.mmg-compact-statement :is(th,td){box-sizing:border-box!important;display:table-cell!important;padding:6px 4px!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:18px!important;min-width:0!important;text-align:right!important;}
 html body table.mmg-compact-statement th:first-child,html body table.mmg-compact-statement td:first-child{width:32%!important;text-align:left!important;}
 html body table.mmg-compact-statement th{text-align:center!important;font-weight:700!important;}
 html body .mmg-statement-expand{appearance:none!important;display:block!important;width:100%!important;min-height:28px!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;color:inherit!important;font:inherit!important;text-align:left!important;}
 html body .mmg-statement-expand:focus-visible{outline:2px solid var(--teal,var(--br-accent,#357b75))!important;outline-offset:-2px!important;}
 html body tr.mmg-statement-inline-detail[hidden]{display:none!important;}
 html body tr.mmg-statement-inline-detail>td{width:auto!important;text-align:left!important;padding:6px 8px!important;background:var(--surface-2,var(--br-surface,#edf3f4))!important;}
 html body tr.mmg-statement-inline-detail dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 8px;margin:0;font:12px/18px Inter,Arial,sans-serif;}
 html body tr.mmg-statement-inline-detail dt{font-weight:700;}
 html body tr.mmg-statement-inline-detail dd{margin:0;overflow-wrap:anywhere;}
 html body table.mmg-compact-statement td::before{content:none!important;}
}
@media print{html body .mmg-statement-inline-detail{display:none!important;}}

/* Same explicit theme palette for all four adapters; local generic surface-2 defaults cannot turn dark cards white. */
html.theme-light body :is(.cash-daily,.bank-daily,.cash-report,#bankBalanceReport,.mmg-common-date-tools),html[data-theme=light] body :is(.cash-daily,.bank-daily,.cash-report,#bankBalanceReport,.mmg-common-date-tools){--mmg-account-row-surface:#e5eff0;--mmg-account-row-ink:#193d43;--mmg-account-row-line:#9ab3b6;}
html:not(.theme-light):not([data-theme=light]) body :is(.cash-daily,.bank-daily,.cash-report,#bankBalanceReport,.mmg-common-date-tools){--mmg-account-row-surface:#244a50;--mmg-account-row-ink:#eef7f7;--mmg-account-row-line:#61858b;}
html body .cash-report .mmg-account-summary::before{content:var(--mmg-currency-symbol,attr(data-report-symbol))!important;}
html body .cash-report .mmg-account-summary>span::before{content:none!important;}
html body .cash-report .cr-hero .cr-totals,html body .cash-report .cash-report-currency-helper .cr-totals{grid-template-columns:minmax(0,1fr)!important;gap:8px!important;margin-top:0!important;}
html body :is(.cash-daily,.bank-daily,.cash-report,#bankBalanceReport) [data-currency-symbol=CHF]::before{font-size:11px!important;}
html body .mmg-common-filter{height:28px!important;min-height:28px!important;width:28px!important;min-width:28px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;}
html body dialog.mmg-common-filter-dialog{position:fixed!important;inset:0!important;margin:auto!important;width:320px!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;box-sizing:border-box!important;overflow:auto!important;padding:12px!important;border:1px solid var(--hairline,#9ab3b6)!important;border-radius:8px!important;background:var(--surface,#fff)!important;color:var(--text,#193d43)!important;}
.mmg-common-filter-dialog h2{margin:0 0 10px;text-align:center;font:600 18px/24px Inter,Arial,sans-serif;}.mmg-common-filter-dialog label{display:flex;align-items:center;gap:8px;padding:5px 0;}.mmg-common-filter-dialog>button{margin-top:8px;}
@media(max-width:768px){html body .cash-report .cr-brand{display:none!important;}}

@media(max-width:768px){html body table.mmg-compact-statement td[data-mmg-compact-value]::before,html body table.mmg-compact-statement td[data-mmg-compact-value]::after{content:none!important;}html body table.mmg-compact-statement :is(th,td){border-right:1px solid var(--hairline,var(--br-line,#9ab3b6));}html body table.mmg-compact-statement tr>:last-child{border-right:0;}}

@media(max-width:768px){html body .cash-report .cash-report-date.mmg-common-date-tools{position:static!important;inset:auto!important;z-index:auto!important;width:100%!important;flex:none!important;margin:0 0 8px!important;}html body .cash-report .cr-hero{display:flex!important;flex-direction:column!important;align-items:stretch!important;}html body .cash-daily-workspace .cash-card-layout{align-items:flex-start!important;}html body .cash-daily-workspace .cash-card-layout>.cash-account-actions{height:60px!important;align-self:flex-start!important;}html body table.mmg-compact-statement td[data-mmg-compact-value]{overflow-wrap:normal!important;word-break:normal!important;font-size:clamp(10px,3.15vw,12px)!important;}}

html body .cash-report .cash-report-date.mmg-common-date-tools{position:static!important;inset:auto!important;z-index:auto!important;width:100%!important;}

html body .mmg-common-date-tools :is(.mmg-day-nav,button,select){background:var(--mmg-account-row-surface,#244a50)!important;color:var(--mmg-account-row-ink,#eef7f7)!important;box-shadow:none!important;}

/* Movement toolbar flex items share a center line without report-section spacing. */
html body .mmg-record-toolbar>.movement-date-tools{margin-block:0!important;}

/* Cash account names and balances use the same content column. */
html body #cashDailyAccounts.cash-daily .cash-daily-cards>.cash-daily-card{
 grid-template-columns:var(--mmg-account-row-coin,30px) minmax(0,1fr)!important;
 grid-template-rows:auto auto!important;row-gap:2px!important;
 height:auto!important;max-height:none!important;
}
html body #cashDailyAccounts.cash-daily .cash-daily-cards>.cash-daily-card::before{grid-row:1 / span 2!important;align-self:center!important}
html body #cashDailyAccounts.cash-daily .cash-daily-cards>.cash-daily-card>span,
html body #cashDailyAccounts.cash-daily .cash-daily-cards>.cash-daily-card>strong{
 grid-column:2!important;justify-self:stretch!important;text-align:right!important;
 display:block!important;white-space:normal!important;overflow:visible!important;
 overflow-wrap:anywhere!important;word-break:normal!important;
}
html body #cashDailyAccounts.cash-daily .cash-daily-cards>.cash-daily-card>span{grid-row:1!important;-webkit-line-clamp:unset!important}
html body #cashDailyAccounts.cash-daily .cash-daily-cards>.cash-daily-card>strong{grid-row:2!important}

#cashDailyAccounts .cash-daily-currency-summary{width:100%;margin:0 0 .45rem;border-collapse:collapse;color:var(--text);font-variant-numeric:tabular-nums}
#cashDailyAccounts .cash-daily-currency-summary caption{font-weight:700;padding:.2rem;text-align:center}
#cashDailyAccounts .cash-daily-currency-summary :is(th,td){padding:.2rem .5rem;border-bottom:1px solid var(--hairline);white-space:nowrap}
#cashDailyAccounts .cash-daily-currency-summary th{text-align:start}
#cashDailyAccounts .cash-daily-currency-summary td{text-align:end;font-weight:700}

/* Cash-only manual refresh, single-line descriptions, and currency helpers. */
html body .cash-report .cash-report-description-cell{max-width:0;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;}
html body .cash-report .cash-report-description-value{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html body .cash-report .cash-report-refresh{display:inline-flex;align-items:center;justify-content:center;width:28px;min-width:28px;height:28px;padding:0;}
html body .cash-daily-workspace .cash-daily-currency-summary{border:1px solid var(--hairline,#9ab3b6)!important;border-collapse:separate!important;border-radius:8px;padding:6px 8px!important;}
@media(max-width:768px){
 html body .cash-report .cash-report-description-cell{max-width:none;min-width:0;}
 html body .cash-report .cash-report-date .cash-report-refresh{min-width:44px!important;width:44px!important;min-height:44px!important;height:44px!important;}
 html.cash-report-mode body .cash-report{gap:2px!important;padding:0!important;}
 html.cash-report-mode body main{padding:4px 8px!important;}
 html body .cash-report>header.cr-hero{padding:4px 8px!important;margin-bottom:4px!important;}
 html body .cash-report>.cash-report-accounts{margin-top:0!important;}
 html body .cash-report>.cash-report-currency-helper{border:1px solid var(--hairline,#9ab3b6);border-radius:8px;padding:8px;background:var(--surface,#fff);}
 html body .cash-report .cash-report-currency-helper>.cash-report-currency-label{display:block!important;color:var(--text,#193d43)!important;text-align:center;font-size:12px;font-weight:600;margin:0 0 6px!important;}
 html body .cash-daily-workspace .cash-daily-currency-summary{border:0!important;padding:0!important;border-collapse:collapse!important;border-spacing:0!important;outline:1px solid var(--hairline,#9ab3b6);outline-offset:0;}
}
