.website-sale-dialog{width:min(1040px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #9eafb1;border-radius:6px;background:#fff;color:#183d43;font:14px/1.5 Arial,"Microsoft YaHei",sans-serif;letter-spacing:0;box-shadow:0 12px 48px #0003}
.website-sale-dialog::backdrop{background:#182c3866}.website-sale-dialog form{margin:0;display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
.website-sale-dialog header,.website-sale-dialog footer{display:flex;align-items:center;gap:12px;padding:12px 18px;background:#f3f7f7;flex-shrink:0}.website-sale-dialog header{border-bottom:1px solid #cad5d6;justify-content:space-between}.website-sale-dialog h2{font-size:18px;margin:0}.website-sale-dialog footer{justify-content:flex-end;border-top:1px solid #cad5d6}
.website-sale-dialog button,.website-sale-dialog input,.website-sale-dialog select{font:inherit;min-height:36px;border:1px solid #a7bdc0;border-radius:3px;background:#fff;color:inherit;box-sizing:border-box;letter-spacing:0}.website-sale-dialog button{padding:6px 16px;cursor:pointer}.website-sale-dialog button[data-submit]{background:#176b83;border-color:#176b83;color:#fff}.website-sale-dialog button:disabled{opacity:.6;cursor:wait}.website-sale-dialog button[data-remove],.website-sale-dialog header button,.website-sale-dialog .website-sale-add{width:36px;height:36px;padding:0;font-size:22px;flex-shrink:0}
.website-sale-scroll{overflow:auto;padding:0 18px 12px}.website-sale-dialog section{border-bottom:1px solid #d8e2e4;padding:16px 0}.website-sale-line-heading{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;margin-bottom:10px}.website-sale-line-heading span{color:#51666b}.website-sale-allocation{display:grid;grid-template-columns:minmax(200px,3fr) minmax(130px,1.5fr) minmax(90px,1fr) 36px;gap:10px;align-items:end;margin-bottom:10px}.website-sale-allocation label{display:flex;flex-direction:column;gap:4px;min-width:0}.website-sale-allocation input,.website-sale-allocation select{width:100%;padding:5px 6px}.website-sale-allocation [hidden]{display:none!important}.website-sale-allocation:has([data-kind] option[value="cut"]:checked){grid-template-columns:minmax(200px,3fr) repeat(5,minmax(85px,1fr)) 36px}.website-sale-allocation:has([data-kind] option[value="weight"]:checked){grid-template-columns:minmax(200px,3fr) repeat(3,minmax(110px,1fr)) 36px}.website-sale-error{color:#b33627;margin:8px 0;overflow-wrap:anywhere}.website-sale-summary{background:#edf7f3;border-left:3px solid #40977d;padding:8px 12px;margin-top:12px}.website-sale-summary p{margin:4px 0}
@media(max-width:760px){.website-sale-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.website-sale-dialog form{max-height:calc(100dvh - 14px)}.website-sale-scroll{padding:0 12px 12px}.website-sale-dialog header,.website-sale-dialog footer{padding:10px 12px}.website-sale-allocation,.website-sale-allocation:has([data-kind] option:checked){grid-template-columns:1fr 1fr 36px}.website-sale-allocation .website-sale-batch{grid-column:1/-1}.website-sale-allocation input,.website-sale-allocation select{font-size:16px}.website-sale-line-heading{gap:3px}.website-sale-line-heading strong{overflow-wrap:anywhere}.website-sale-dialog footer button{min-height:42px}}

.website-sale-allocation [data-full-batch]{grid-column:1/-1;order:1;background:#fff7e6;border:1px solid #e5cb91;border-radius:3px;padding:8px 10px}.website-sale-allocation [data-full-batch]>span{display:flex;align-items:center;gap:8px}.website-sale-allocation input[data-full-batch-confirm]{width:20px;height:20px;min-height:20px;flex-shrink:0;padding:0}.website-sale-allocation [data-weight-difference]{color:#665531;overflow-wrap:anywhere}

@media(max-width:760px){.website-sale-allocation:has([data-kind] option[value="weight"]:checked),.website-sale-allocation:has([data-kind] option[value="cut"]:checked){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.website-sale-allocation button[data-remove]{justify-self:end}.website-sale-scroll{min-width:0}}
