
/* Monthly category report. Scoped to this report; financial forms are untouched. */
.eg-category-report { padding:0; border:1px solid #e2e8f0; border-radius:18px; width:min(680px,calc(100vw - 24px)); max-width:680px; max-height:88vh; max-height:88dvh; color:#172b4d; background:#fff; box-shadow:0 24px 80px #0f172a33; }
.eg-category-report[open] { display:flex; flex-direction:column; }
.eg-category-report::backdrop { background:#0f172a66; }
.eg-category-report *, .eg-category-report *::before, .eg-category-report *::after { box-sizing:border-box; }
.eg-category-report-open { overflow:hidden; }
.eg-category-report-head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px 24px; border-bottom:1px solid #e8edf4; flex:none; }
.eg-category-report-head h2 { margin:0; font-family:inherit; font-weight:700; line-height:1.25; font-size:21px; letter-spacing:-.5px; }
.eg-category-report-head p { margin:6px 0 0; color:#65748b; font-size:13px; text-transform:capitalize; }
.eg-category-close { flex:none; width:44px; height:44px; border:1px solid #dfe6ef; border-radius:10px; background:#f8fafc; color:#475569; font-size:26px; cursor:pointer; }
.eg-category-report-body { padding:20px 24px 28px; overflow-y:auto; overscroll-behavior:contain; min-height:0; }
.eg-category-report-total { display:flex; align-items:center; justify-content:space-between; gap:14px; background:#f3f7ff; border:1px solid #e4ecff; border-radius:12px; padding:18px; margin-bottom:18px; }
.eg-category-report-total span { display:block; font-size:13px; color:#52627b; }
.eg-category-report-total small { display:block; margin-top:6px; color:#65748b; font-size:11px; }
.eg-category-report-total>strong { font-size:25px; color:#245ce0; letter-spacing:-.7px; text-align:right; overflow-wrap:anywhere; }
.eg-category-detail { border:1px solid #e2e8f0; border-radius:11px; margin:10px 0; overflow:hidden; }
.eg-category-detail summary { list-style:none; display:grid; grid-template-columns:10px minmax(0,1fr) minmax(72px,auto) 14px; gap:12px; align-items:center; min-height:76px; padding:14px 16px; cursor:pointer; }
.eg-category-detail summary::-webkit-details-marker { display:none; }
.eg-category-dot { width:9px; height:9px; border-radius:50%; }
.eg-category-label,.eg-category-values { min-width:0; }
.eg-category-label strong,.eg-category-values strong { display:block; font-size:14px; font-weight:650; overflow-wrap:anywhere; }
.eg-category-label small,.eg-category-values small { display:block; margin-top:5px; font-size:11px; color:#65748b; }
.eg-category-values { text-align:right; font-variant-numeric:tabular-nums; }
.eg-category-chevron { font-size:20px; color:#718198; }
.eg-category-detail[open] summary { background:#f8fafc; }
.eg-category-detail[open] .eg-category-chevron { transform:rotate(180deg); }
.eg-category-transactions { list-style:none; padding:0 16px; margin:0; }
.eg-category-transaction { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; align-items:center; padding:15px 0; border-top:1px solid #edf1f6; }
.eg-category-transaction-copy { min-width:0; }
.eg-category-transaction-copy strong { display:block; font-size:13px; font-weight:550; overflow-wrap:anywhere; }
.eg-category-transaction-copy small { display:block; font-size:11px; color:#65748b; margin-top:6px; overflow-wrap:anywhere; }
.eg-category-amount { text-align:right; font-size:13px; font-weight:650; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; max-width:38vw; }
.eg-category-note,.eg-category-empty,.eg-category-error { margin:14px 0; font-size:13px; line-height:1.6; color:#65748b; }
.eg-category-error { color:#b42318; }
.eg-category-report :is(button,summary):focus-visible,.overview-category-spending-row[data-category-expand]:focus-visible { outline:3px solid #2563eb; outline-offset:-3px; }
.overview-category-spending-row[data-category-expand] { cursor:pointer; }
.overview-category-spending-heading>button { white-space:normal; min-height:44px; }
@media(max-width:520px) {
 .eg-category-report { width:calc(100vw - 16px); max-height:calc(100dvh - 24px); border-radius:14px; }
 .eg-category-report-head { padding:18px 16px; }
 .eg-category-report-head h2 { font-size:19px; }
 .eg-category-report-body { padding:16px; }
 .eg-category-report-total { align-items:flex-start; flex-direction:column; padding:16px; }
 .eg-category-report-total>strong { font-size:28px; text-align:left; }
 .eg-category-detail summary { padding:14px 12px; gap:9px; grid-template-columns:8px minmax(0,1fr) minmax(64px,auto) 12px; }
 .eg-category-label strong,.eg-category-values strong { font-size:13px; }
 .eg-category-transactions { padding:0 12px; }
 .overview-category-spending-heading { flex-wrap:wrap; }
}
