.budget-panel{margin-bottom:24px}.budget-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.budget-header p{margin:5px 0 0}.budget-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px}.budget-metric{padding:16px;background:#f4f7f0;border-radius:12px;min-width:0}.budget-metric small{display:block;color:#73817b;font-size:12px}.budget-metric strong{display:block;margin:8px 0;font-size:24px;overflow-wrap:anywhere}.budget-daily{border-top:1px solid #e1e6de;padding-top:18px;margin-top:18px}.budget-progress{height:10px;background:#edf2eb;border-radius:6px;overflow:hidden;margin:16px 0 8px}.budget-progress i{height:100%;display:block;background:#378660}.budget-progress.warning i{background:#b48328}.budget-progress.danger i{background:#bf634d}.budget-notice{padding:14px 16px;border-radius:10px;background:#e9f2e7;font-size:13px;line-height:1.6;margin-top:14px}.budget-notice.warning{background:#fff3d8;color:#76550d}.budget-notice.danger{background:#fae5df;color:#963f31}.budget-settings{border-top:1px solid #e1e6de;margin-top:20px;padding-top:18px}.budget-settings[hidden]{display:none}.budget-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.budget-settings .check-label{display:flex;gap:10px;align-items:flex-start;line-height:1.6;font-size:13px;font-weight:400}.budget-settings input[type=checkbox]{width:18px;height:18px;flex-shrink:0;margin-top:3px}.budget-actions{display:flex;gap:10px;margin-top:18px}.budget-help{margin:8px 0 0;font-size:12px;line-height:1.6}.budget-panel [role=status]{font-size:12px;margin-top:12px}.budget-panel button{white-space:nowrap}html[data-theme=dark] .budget-metric{background:#23362a}html[data-theme=dark] .budget-metric small{color:#a8b9ae}html[data-theme=dark] .budget-daily,html[data-theme=dark] .budget-settings{border-color:#34463b}html[data-theme=dark] .budget-progress{background:#34463b}html[data-theme=dark] .budget-notice{background:#294832;color:#d4ebd9}html[data-theme=dark] .budget-notice.warning{background:#493d22;color:#efd296}html[data-theme=dark] .budget-notice.danger{background:#4c2d28;color:#ffc0ac}@media(max-width:620px){.budget-grid{gap:8px}.budget-metric{padding:12px 9px}.budget-metric strong{font-size:18px}.budget-header{align-items:flex-start}.budget-fields{grid-template-columns:1fr;gap:0}.budget-header h2{font-size:17px}.budget-header button{font-size:12px;padding:10px}.budget-metric small{font-size:11px}}
.budget-panel [hidden]{display:none!important}@media(max-width:620px){.budget-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.budget-metric:last-child{grid-column:1/-1}.budget-metric strong{font-size:20px}.budget-actions{flex-wrap:wrap}}
.budget-summary-amount{display:flex;align-items:center;gap:12px;margin:18px 0;color:#73817b;font-size:13px}.budget-summary-amount strong{font-size:24px;color:#213b35}.budget-summary-bars{display:grid;grid-template-columns:1fr 1fr;gap:28px}.budget-bar-heading{display:flex;flex-direction:column;gap:6px;font-size:13px}.budget-bar-heading span{font-size:12px;color:#73817b}.budget-summary-bars .budget-progress{margin:12px 0 8px}.budget-caption{font-size:12px;margin:0;line-height:1.6}.budget-toggle{margin-top:18px;padding:8px 12px;font-size:12px}#budgetDetails{border-top:1px solid #e1e6de;margin-top:18px}html[data-theme=dark] .budget-summary-amount,html[data-theme=dark] .budget-bar-heading span{color:#a8b9ae}html[data-theme=dark] .budget-summary-amount strong{color:#e0ebe5}html[data-theme=dark] #budgetDetails{border-color:#34463b}@media(max-width:620px){.budget-summary-bars{grid-template-columns:1fr;gap:20px}}
/* Compact budget strip: figures and spending indicators share one row. */
.budget-panel{position:relative;padding:14px 20px}.budget-header{gap:8px}.budget-header h2{font-size:15px;margin:0}.budget-header p{font-size:10px;margin:2px 0 0}.budget-header>button{font-size:11px;padding:7px 10px}.budget-summary-figures{display:flex;gap:22px;align-items:center}.budget-summary-amount{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:0;font-size:11px}.budget-summary-amount strong{font-size:21px;white-space:nowrap}.budget-summary-bars{gap:24px}.budget-bar-heading{font-size:11px;gap:3px}.budget-bar-heading span{font-size:10px}.budget-summary-bars .budget-progress{height:6px;margin:7px 0 4px}.budget-caption{font-size:10px;line-height:1.4}.budget-toggle{font-size:10px;padding:4px 8px;margin:0;justify-self:end;align-self:center}.budget-notice{margin-top:8px;padding:7px 10px;font-size:11px}.budget-panel #budgetStatus:empty{display:none}#budgetContent{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.6fr) auto;gap:10px 22px;align-items:center;margin-top:12px}#budgetContent>.budget-summary-figures{grid-column:1}#budgetContent>.budget-summary-bars{grid-column:2}#budgetContent>.budget-toggle{grid-column:3}#budgetAlerts:empty{display:none}#budgetAlerts,#budgetRollover,#budgetReviewActions,#budgetDetails{grid-column:1/-1}#budgetAlerts{grid-row:3}#budgetDetails{margin-top:4px}#budgetReviewActions{margin-top:0}.budget-panel:has(#budgetContent[hidden]){padding-bottom:14px}@media(max-width:900px){#budgetContent{grid-template-columns:1fr auto;gap:10px}.budget-summary-figures{gap:28px}#budgetContent>.budget-summary-bars{grid-column:1/-1;grid-row:2}#budgetContent>.budget-toggle{grid-column:2;grid-row:1}.budget-summary-bars{grid-template-columns:1fr 1fr;gap:16px}#budgetAlerts{grid-row:auto}}@media(max-width:620px){.budget-panel{padding:12px 15px}.budget-summary-amount strong{font-size:18px}.budget-summary-figures{gap:20px}.budget-bar-heading span{line-height:1.4}.budget-summary-bars{gap:14px}.budget-header h2{font-size:14px}.budget-toggle{font-size:9px;padding:4px}.budget-summary-amount{font-size:10px}}
