.budget-workspace{min-width:0}.bw-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.bw-tabs [aria-pressed=true]{color:var(--gold);border-color:var(--gold);background:#b99a5d14}.bw-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;margin:18px 0}.bw-filters label,.bw-form label,.bw-new-template label{display:flex;flex-direction:column;gap:6px;min-width:0}.bw-filters .bw-pending,.bw-check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important}.bw-pending input,.bw-check input{width:16px;flex:0 0 auto}.bw-stage{margin:14px 0;overflow:hidden}.bw-stage>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 22px;cursor:pointer;border-bottom:1px solid var(--line)}.bw-stage>summary>span{font-size:11px;color:var(--muted)}.bw-service-title{display:flex;gap:8px;align-items:center;min-width:230px}.bw-service-title .btn{padding:5px;min-height:28px;cursor:grab;color:var(--gold)}.bw-table{min-width:1270px}.bw-table td>small{display:block;line-height:1.5;margin-top:5px;color:var(--muted)}.bw-table input[type=checkbox]{width:16px;min-height:16px}.bw-table input{min-width:80px}.bw-table input[type=checkbox]{min-width:16px}.bw-table .budget-money{min-width:130px}.bw-row-actions{display:flex;gap:5px;flex-wrap:wrap;min-width:180px}.bw-row-actions .btn{font-size:10px;padding:6px 8px;min-height:28px}.bw-form{min-width:0}.bw-form .form-grid{padding:12px 0}.bw-form .form-actions{margin-top:20px}.bw-form p{line-height:1.7;margin:10px 0}.bw-form .bw-check{margin:18px 0}.bw-new-template{grid-column:1/-1;border:1px solid var(--line);border-radius:7px;padding:16px;margin:0 0 10px}.bw-new-template legend{color:var(--gold);font-size:12px}.bw-new-template p{font-size:11px;line-height:1.6}.bw-chooser{margin:14px 0;display:grid;gap:12px}.budget-workspace [data-bw-drop-stage]{min-height:65px}.budget-workspace .metrics{margin-bottom:18px}@media(max-width:700px){.bw-filters{grid-template-columns:1fr}.bw-stage>summary{align-items:flex-start;flex-direction:column;padding:14px}.bw-tabs .btn{flex:1;min-width:90px;padding:10px 7px}.bw-form .form-grid{grid-template-columns:1fr}.budget-workspace .padded{padding:16px}.bw-new-template{padding:12px}.bw-row-actions .btn{min-height:32px}}
.budget-workspace .bw-table{min-width:1501px;width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}.bw-table th,.bw-table td{white-space:normal;vertical-align:top;overflow-wrap:break-word;padding:12px 10px}.bw-table thead th{position:sticky;top:0;z-index:2;background:var(--ui-field);font-size:10px}.bw-table td:nth-child(n+5){text-align:right}.bw-table td:last-child{text-align:left}.bw-table .bw-service-title{min-width:0;align-items:flex-start}.bw-table .bw-service-title .btn{flex:0 0 auto}.bw-table .bw-service-title a{min-width:0;overflow-wrap:anywhere}.bw-table input{max-width:100%;min-width:0;width:100%;text-align:right}.bw-table input[type=checkbox]{width:16px}.bw-table .budget-money{display:flex;gap:5px;align-items:center;min-width:0}.bw-table .bw-row-actions{min-width:0}
.bw-table tr.bw-highlight td{background:rgba(185,154,93,.07)}.bw-table tr.bw-highlight td:first-child{border-left:2px solid var(--gold)}

/* Cabeçalhos e valores partilham o alinhamento; identificadores não se fragmentam. */
.bw-table :is(th,td):first-child{text-align:center;overflow-wrap:normal}
.bw-table :is(th,td):nth-child(3),.bw-table :is(th,td):nth-child(4){white-space:nowrap;overflow-wrap:normal;text-align:center}
.bw-table th:nth-child(n+5):not(:last-child){text-align:right;overflow-wrap:normal}
.bw-table :is(td:nth-child(8),td:nth-child(9)){white-space:nowrap;font-variant-numeric:tabular-nums}
.bw-table input{font-variant-numeric:tabular-nums}.bw-table th{line-height:1.5}
