/* Dense estimate rows: fit both tables without a desktop horizontal scrollbar. */
.top-actions a.btn,.top-actions a.btn:visited{display:inline-flex;align-items:center;justify-content:center;color:var(--text);text-decoration:none;line-height:inherit}
.top-actions a.btn.primary,.top-actions a.btn.primary:visited{color:#18210d}
.top-actions a.btn[hidden]{display:none}
.workspace{padding-inline:clamp(12px,2vw,30px)}
.panel{padding:11px 13px;margin-bottom:9px}
.section-head{margin-bottom:7px}
.table-wrap{max-width:100%;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}
.table-wrap::-webkit-scrollbar{display:none}
.lines,.lines.products{width:100%;min-width:0;table-layout:fixed}
.lines th{padding:6px 5px;font-size:10px;line-height:1.15;letter-spacing:.025em;overflow-wrap:anywhere}
.lines td{padding:4px 5px;font-size:12px}
.lines th:first-child,.lines td:first-child{width:24px;text-align:left;padding-left:5px;padding-right:2px}
.lines td.number{text-align:left}
.lines th:last-child,.lines td:last-child{width:28px;padding-inline:0;text-align:center}
.lines:not(.products) .name-col{width:calc(45% - 52px)}
.lines:not(.products) .qty-col{width:8%}
.lines:not(.products) .discount-col{width:7%}
.lines:not(.products) .money-col{width:10%}
.lines.products .name-col{width:calc(31% - 52px)}
.lines.products .code-col{width:11%}
.lines.products .qty-col{width:7%}
.lines.products .unit-col{width:5%}
.lines.products .discount-col{width:6%}
.lines.products .money-col{width:10%}
.row-input{height:29px;padding:4px 6px;font-size:12px}
.row-input[type=number]{appearance:textfield;-moz-appearance:textfield}
.row-input[type=number]::-webkit-inner-spin-button,.row-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.lines .money{font-size:12px;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.lines [data-remove]{padding:3px 5px;font-size:18px;line-height:1}
.table-footer{margin-top:7px}
.table-footer .btn{padding:6px 9px}
/* Compact product picker, including the narrower embedded estimate workspace. */
#stockOverlay .stock-head{padding:8px 12px;gap:10px}
#stockOverlay .stock-head h2{font-size:17px;line-height:1.25}
#stockOverlay .stock-head .eyebrow,#stockOverlay .stock-head p{display:none}
#stockOverlay .btn{padding:5px 8px;font-size:12px;min-height:28px}
#stockOverlay .stock-tools{padding:8px 12px;gap:10px;flex-direction:row;align-items:center}
#stockOverlay .stock-tools input{flex:1;min-width:0;width:auto;height:32px;padding:5px 8px;font-size:13px}
#stockOverlay .stock-tools .help{font-size:12px;white-space:nowrap}
#stockOverlay .stock-table-wrap{padding:0 12px;scrollbar-width:none}
#stockOverlay .stock-table-wrap::-webkit-scrollbar{display:none}
#stockOverlay .stock-table{table-layout:fixed;min-width:640px;width:100%}
#stockOverlay .stock-table th{padding:6px 7px;font-size:10px;line-height:1.2;letter-spacing:.015em}
#stockOverlay .stock-table td{padding:5px 7px;font-size:13px;line-height:1.3;vertical-align:middle}
#stockOverlay .stock-table th:nth-child(2){width:108px}
#stockOverlay .stock-table th:nth-child(3){width:34px}
#stockOverlay .stock-table th:nth-child(4){width:46px}
#stockOverlay .stock-table th:nth-child(5),#stockOverlay .stock-table th:nth-child(6){width:78px}
#stockOverlay .stock-table th:nth-child(7){width:64px}
#stockOverlay .stock-table th:nth-child(8){width:86px}
#stockOverlay .stock-pick{padding-inline:5px}
#stockOverlay .stock-name{font-weight:550;overflow-wrap:anywhere}
#stockOverlay .stock-table td:nth-child(2){font-size:12px;overflow-wrap:anywhere}
#stockOverlay .stock-secondary{font-size:11px;line-height:1.2;margin-top:2px}
#stockOverlay .stock-qty{width:100%;height:28px;padding:3px 5px;font-size:13px}
#stockOverlay .stock-foot{padding:7px 12px;gap:10px}
#stockOverlay .stock-foot .help{font-size:11px;line-height:1.25}
@media(max-width:1050px){
  .lines:not(.products){min-width:820px}
  .lines.products{min-width:1010px}
}
@media(max-width:760px){
  .workspace{padding-inline:10px}
  .panel{padding:10px}
  .lines:not(.products){min-width:820px}
  .lines.products{min-width:1010px}
}
