/* Compact account groups and currency-aware totals, shared visual hierarchy. */
#dashboard-accounts .sidebar-accounts-total{display:grid;gap:4px;padding:8px 9px;margin:0 0 9px;background:#e4f0e9;border-radius:7px;color:#1c5842;font-size:11px}
.sidebar-account-totals{display:flex;flex-wrap:wrap;gap:3px 12px;font-size:14px;font-variant-numeric:tabular-nums}
.sidebar-account-totals strong,.sidebar-group-totals strong{white-space:nowrap}
.sidebar-account-group{margin-top:7px}
.sidebar-account-group-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 7px;background:#eaf0ed;border-radius:5px;border-left:3px solid #78a38c}
#dashboard-accounts .account-group-label{font-size:11px;line-height:1.35;letter-spacing:0;text-transform:none;color:#315e49;margin:0;padding:0;border:0;font-weight:700;overflow-wrap:anywhere}
.sidebar-group-totals{display:grid;gap:2px;text-align:right;font-size:11px;line-height:1.35;color:#315e49;font-variant-numeric:tabular-nums}
#dashboard-accounts .sidebar-account{grid-template-columns:minmax(0,1fr) auto;gap:3px 6px;padding:5px 3px;margin:0;border:0;align-items:start}
#dashboard-accounts .sidebar-account>strong{grid-row:auto;line-height:1.4;font-size:11px;overflow-wrap:anywhere}
.sidebar-account-balances{display:grid;gap:2px;text-align:right}
.balance-evidence-value{display:grid;gap:2px;min-width:0;text-align:right}
.balance-evidence-note{display:block;max-width:180px;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.35;font-weight:400;color:#626e67}
#dashboard-accounts .sidebar-balance{font-size:11px;line-height:1.4}
#accounts-view .account-group-heading{background:#e5eee8;padding:7px 12px;min-height:39px;gap:10px;border-left:3px solid #78a38c}
#accounts-view .account-row{min-height:39px;padding-top:5px;padding-bottom:5px}
#accounts-view .account-group-values{color:#315e49;font-variant-numeric:tabular-nums}
#accounts-view .accounts-total-values{font-variant-numeric:tabular-nums}
@media(max-width:700px){#dashboard-accounts .sidebar-account{padding:6px 3px}#dashboard-accounts .sidebar-account>strong,#dashboard-accounts .sidebar-balance{font-size:12px}.sidebar-group-totals{font-size:12px}}

/* Bank-evidence captions must not consume the account-name column. Keep the
   original balance wrappers for behavior; only the compact sidebar flattens
   their visual grid, placing each caption below its own amount. */
.finance-sidebar #dashboard-accounts .sidebar-account-has-evidence>.sidebar-account-balances,
.finance-sidebar #dashboard-accounts .sidebar-account-has-evidence>.sidebar-account-balances>.balance-evidence-value{display:contents}
.finance-sidebar #dashboard-accounts .sidebar-account-has-evidence>.sidebar-account-balances .sidebar-balance{grid-column:2;justify-self:end}
.finance-sidebar #dashboard-accounts .sidebar-account-has-evidence>.sidebar-account-balances .balance-evidence-note{grid-column:1/-1;max-width:none;text-align:left}
