/* Small contextual controls; no permanent allowance form in the estimate. */
.estimate-table .tonnage-cell{white-space:nowrap}
.tonnage-allowance-button{display:inline-flex;align-items:center;justify-content:center;margin-left:4px;padding:2px 5px;min-width:24px;min-height:26px;border:1px solid var(--border,#cad2dc);border-radius:4px;background:transparent;color:var(--text,#17212b);font:inherit;font-size:.8125rem;cursor:pointer}
.tonnage-allowance-button:hover,.tonnage-allowance-button:focus-visible,.tonnage-allowance-button.has-allowance{border-color:#d46c17;background:#fff2e6;color:#803b06}
/* One column definition for headings and inputs; long materials cannot resize the row. */
.regulating-wrap{margin:6px 0 0;max-width:100%;overflow-x:auto}
.regulating-table{width:100%;min-width:66rem;table-layout:fixed;border-collapse:collapse;font-size:.875rem;font-variant-numeric:tabular-nums}
.regulating-table th,.regulating-table td{padding:5px 6px;vertical-align:middle;text-align:left}
.regulating-table th{font-size:.75rem;font-weight:600;line-height:1.3;white-space:normal;overflow-wrap:anywhere;background:var(--bindr-subtle,#f3f5f8);color:var(--bindr-muted,#566477);border-bottom:1px solid var(--bindr-border,#ccd4df)}
.regulating-table td{border-bottom:1px solid var(--bindr-border,#ccd4df)}
.regulating-table th:nth-child(n+6):nth-child(-n+10),.regulating-table td:nth-child(n+6):nth-child(-n+10){text-align:right}
.view .regulating-table input,.view .regulating-table select{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:30px;padding:4px 6px;font:inherit}
.regulating-table input{text-align:right}.regulating-table select{text-overflow:ellipsis}
.regulating-table small{display:block;font-size:.75rem;font-weight:400;line-height:1.3;color:var(--bindr-muted,#566477)}
.regulating-table small:empty{display:none}.regulating-table [data-regulating-summary]{white-space:normal;overflow-wrap:anywhere}
.regulating-table td:last-child{padding-inline:6px;text-align:center}

/* One compact allowance line beneath the main tonnage, matching PSV extras. */
#estimateView .estimate-table .tonnage-allowance-button{height:24px;min-height:24px;min-width:22px;padding:1px 4px;line-height:1;vertical-align:middle}
#estimateView .estimate-table .tonnage-inline{display:grid;grid-template-columns:8px minmax(0,1fr) 20px;align-items:center;gap:3px;margin-top:6px;min-width:0;max-width:100%;line-height:1.2;text-align:left}
#estimateView .estimate-table .tonnage-inline[hidden]{display:none}
#estimateView .estimate-table .tonnage-inline-label{font-size:.75rem;font-weight:400;color:#566477}
#estimateView .estimate-table .tonnage-inline select{appearance:none;-moz-appearance:none;width:20px;min-width:0;min-height:24px;height:24px;padding:0;border:0;background:transparent;font-size:.75rem;line-height:1.2;text-align:center;cursor:pointer}
#estimateView .estimate-table .tonnage-inline input{appearance:textfield;-moz-appearance:textfield;width:100%;max-width:100%;min-width:0;min-height:24px;height:24px;padding:2px 3px;font-size:.8125rem;font-weight:400;line-height:1.2}
#estimateView .estimate-table .tonnage-inline input::-webkit-inner-spin-button,
#estimateView .estimate-table .tonnage-inline input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
