#budget-detail { width:min(1120px,95vw); }
#budget-detail [hidden] { display:none!important; }
#budget-detail .dialog-head h2 {font-size:1.65rem;overflow-wrap:anywhere;}
#budget-detail .budget-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
#budget-detail .budget-metric {padding:16px;border:1px solid #d7dfec;border-radius:10px;display:flex;flex-direction:column;gap:8px;}
#budget-detail .budget-metric strong {font-size:1.5rem;}
#budget-detail .budget-metric:last-child {background:#edf5f3;}
#budget-detail .budget-tabs {display:flex;gap:8px;border-bottom:1px solid #d7dfec;margin-top:20px;padding-bottom:8px;}
#budget-detail .budget-tabs button {background:white;color:#19375e;border:1px solid #ccd7e6;}
#budget-detail .budget-tabs button[aria-selected=true] {background:#19375e;color:white;}
#budget-detail .budget-filter {display:flex;align-items:center;gap:8px;margin-bottom:16px;}
#budget-detail .budget-filter input {width:auto;}
#budget-detail #budget-entries,#budget-detail #section-history,#budget-detail #budget-sections {max-height:none;height:auto;overflow:visible;padding:0;display:block;}
#budget-detail .budget-table-scroll {overflow-x:auto;}
#budget-detail table {width:100%;border-collapse:collapse;font-size:14px;}
#budget-detail th {text-align:left;background:#f6f8fb;font-size:12px;}
#budget-detail th,#budget-detail td {padding:12px 10px;border-bottom:1px solid #e4e9f1;vertical-align:top;}
#budget-detail .budget-amount {white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums;}
#budget-detail td details {border:0;margin:0;padding:0;min-width:180px;}
#budget-detail td summary {padding:0;}
#budget-detail td .transfer-item {padding:8px 0;border:0;margin:0;}
#budget-detail td .transfer-item p {font-size:13px;margin:8px 0;}
#budget-detail .pagination {padding:12px 0;}
#budget-detail [data-budget-write] > details {margin-top:12px;}
@media(max-width:600px){#budget-detail .budget-metric {padding:10px;}#budget-detail .budget-metric strong {font-size:1.1rem;}#budget-detail .budget-metric span {font-size:12px;}#budget-detail .budget-tabs {gap:4px;}#budget-detail .budget-tabs button {padding:10px;}}
