.budgeting-workspace{display:grid;gap:16px;min-width:0;max-width:100%}
.budgeting-workspace .panel{padding:20px;margin:0;min-width:0}
.budgeting-workspace h2,.budgeting-workspace h3{margin:0 0 12px}
.budgeting-workspace p{line-height:1.55;overflow-wrap:anywhere}
.budgeting-workspace .row-actions{justify-content:flex-start;flex-wrap:wrap;gap:8px}
.budgeting-workspace .btn{font-size:12px;min-height:34px;margin-right:4px}
.budgeting-workspace .table-wrap{overflow-x:auto;border:1px solid var(--border,#ccd9e9);border-radius:12px;background:var(--panel,#fff)}
.budgeting-workspace table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.budgeting-workspace th,.budgeting-workspace td{padding:14px 12px;text-align:right;border-bottom:1px solid var(--border,#dce5ef);font:inherit;white-space:nowrap}
.budgeting-workspace th:first-child,.budgeting-workspace td:first-child{text-align:left}
.budgeting-workspace thead th{font-size:12px;font-weight:600;white-space:normal;min-width:100px}
.budgeting-workspace tfoot th,.budgeting-workspace tfoot td{font-weight:700;border-top:2px solid var(--border,#ccd9e9)}
.budgeting-workspace summary{font-weight:600;cursor:pointer;line-height:1.5}
.budgeting-workspace details[open]>summary{margin-bottom:18px}
.budgeting-workspace .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.budgeting-workspace .field{min-width:0;margin:0}
.budgeting-workspace textarea{min-height:80px;width:100%}
.budgeting-workspace .span-2{grid-column:1/-1}
.budgeting-workspace [data-budget-line]{display:grid;grid-template-columns:minmax(0,2fr) minmax(90px,1fr) auto;gap:12px;align-items:end;margin-bottom:14px}
.budgeting-workspace [data-budget-role]{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;border:1px solid var(--border,#ccd9e9);border-radius:10px;margin-bottom:16px}
.budgeting-workspace dl{display:grid;grid-template-columns:minmax(130px,1fr) 3fr;gap:8px 16px}
.budgeting-workspace dd{margin:0;overflow-wrap:anywhere}
.budgeting-workspace dt{font-weight:600}
.budgeting-workspace .budget-form-error:not(:empty){padding:12px;border:1px solid #d46a49;border-radius:8px}
@media(max-width:700px){.budgeting-workspace .panel{padding:16px}.budgeting-workspace .form-grid,.budgeting-workspace [data-budget-role],.budgeting-workspace [data-budget-line]{grid-template-columns:minmax(0,1fr)}.budgeting-workspace .span-2{grid-column:auto}.budgeting-workspace dl{grid-template-columns:1fr}.budgeting-workspace dd{margin-bottom:10px}}
