/* Reuses the accepted sales row controls; scoped layout belongs only to budget editing. */
.budget-online{--d-ink:#17334e;--d-line:#d1dce9;--d-soft:#f4f6f9}
.budget-schemes{display:flex;gap:16px;align-items:flex-end;justify-content:space-between;margin-bottom:12px}.budget-schemes label{min-width:220px;max-width:450px;flex:1}.budget-title{display:block;max-width:300px;margin:14px 0}
.budget-online .sales-entry-table{overflow-x:auto}.budget-online table{table-layout:fixed;width:100%;min-width:1100px;border-collapse:collapse}.budget-online th{background:#50697d;color:white;font-weight:500}.budget-online td,.budget-online th{padding:8px 3px;border-bottom:1px solid #d1dce9}.budget-online th:last-child{width:156px}.budget-online td input{color:#17334e}.budget-online td.num{white-space:nowrap}
.budget-foot-fields{display:grid;grid-template-columns:180px 1fr 1fr;gap:14px;margin-top:18px}.budget-totals{padding:15px 0;text-align:right;font-weight:600}.budget-main-actions{margin-top:12px}.budget-main-actions label{display:flex;align-items:center;gap:6px}.budget-main-actions select{width:auto}
.budget-search{position:fixed;z-index:80;max-height:180px;overflow:auto;background:white;border:1px solid #c4d3e3;box-shadow:0 4px 14px #172f4822;border-radius:4px}.budget-search button{display:block;border:0;background:white;text-align:left;width:100%;padding:8px 10px;color:#17334e;cursor:pointer}.budget-search button:hover,.budget-search button:focus{background:#eaf1fa}
@media(max-width:800px){.budget-schemes{flex-wrap:wrap}.budget-foot-fields{grid-template-columns:1fr}.budget-totals{text-align:left}.budget-online .panel-body{padding:10px}}

#cabinet-whole #document-preview.budget-online .budget-input table{min-width:1100px;width:100%}
#cabinet-whole #document-preview.budget-online .budget-input th{width:auto}
#cabinet-whole #document-preview.budget-online .budget-input th,#cabinet-whole #document-preview.budget-online .budget-input td{padding:8px 3px}
#cabinet-whole .budget-foot-fields{align-items:start}
#cabinet-whole .budget-foot-fields label{align-self:start;grid-template-rows:auto auto}
#cabinet-whole .budget-foot-fields input{height:40px}
#cabinet-whole #document-preview.budget-online .budget-input th:nth-child(1){width:8%}
#cabinet-whole #document-preview.budget-online .budget-input th:nth-child(2){width:9%}
#cabinet-whole #document-preview.budget-online .budget-input th:nth-child(3){width:17%}
#cabinet-whole #document-preview.budget-online .budget-input th:nth-child(4){width:6%}
#cabinet-whole #document-preview.budget-online .budget-input th:nth-child(5){width:6%}
#cabinet-whole #document-preview.budget-online .budget-input th:nth-child(6){width:6%}
#cabinet-whole #document-preview.budget-online .budget-input th:nth-child(7){width:4%}
#cabinet-whole #document-preview.budget-online .budget-input th:nth-child(8){width:9%}
#cabinet-whole #document-preview.budget-online .budget-input th:nth-child(9){width:9%}
#cabinet-whole #document-preview.budget-online .budget-input th:nth-child(10){width:auto}
#cabinet-whole #document-preview.budget-online .budget-input th:nth-child(11){width:156px}
