.budget-heading{align-items:center;gap:20px}.budget-heading h2{margin-bottom:8px}.budget-tools{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.budget-tools label,.budget-form label{display:grid;gap:7px;font-size:.95rem}.budget-tools input,.budget-form input,.budget-form select{padding:11px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);font:inherit;min-width:0}.budget-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.budget-summary-card{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--white);display:grid;gap:10px;min-width:0}.budget-summary-card span{font-size:.9rem;color:var(--muted)}.budget-summary-card strong{font-size:1.4rem;color:var(--ink);overflow-wrap:anywhere}.budget-accounting-note{font-size:.9rem;line-height:1.6;margin-bottom:20px}.budget-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.budget-card.warning{border-top-color:#b47319}.budget-card.reached,.budget-card.exceeded{border-top-color:#c23d58}.budget-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}.budget-card h3{margin:0;overflow-wrap:anywhere}.budget-state{font-size:.875rem;line-height:1.4;color:var(--muted)}.budget-consumed{font-size:1.35rem;color:var(--ink)}.budget-consumed small{font-weight:400;font-size:1rem;color:var(--muted)}.budget-meter{display:flex;height:12px;overflow:hidden;background:var(--line);border-radius:6px;margin-top:18px}.budget-paid{background:var(--green)}.budget-pending{background:#c9a24a}.budget-percentage{font-size:.9rem;color:var(--muted);line-height:1.5}.budget-card dl{display:grid;gap:9px;margin:18px 0}.budget-card dl>div{display:flex;justify-content:space-between;gap:12px}.budget-card dt{color:var(--muted)}.budget-card dd{margin:0;font-weight:600}.budget-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.budget-empty{grid-column:1/-1;line-height:1.6}.budget-empty h3{margin-top:0}.budget-empty p{color:var(--muted)}#budgetDialog{width:min(500px,94vw);max-height:calc(90dvh - env(safe-area-inset-bottom));overflow:auto;box-sizing:border-box}.budget-form{display:grid;gap:18px}.budget-form h2{margin:0}.budget-form .muted{font-size:.9rem;line-height:1.5;margin:0}.budget-form [hidden]{display:none}.budget-form .dialog-actions{flex-wrap:wrap}.budget-tools button{white-space:normal}@media(max-width:1000px){.budget-heading{align-items:flex-start;flex-direction:column}.budget-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.budget-grid{grid-template-columns:1fr}.budget-tools{width:100%;align-items:stretch;display:grid;grid-template-columns:1fr 1fr}.budget-tools label{grid-column:1/-1}.budget-card header{flex-direction:column;gap:8px}.budget-summary-card{padding:14px}.budget-summary-card strong{font-size:1.1rem}.budget-actions button{flex:1;white-space:normal}}
