.document-freight-preview-button{white-space:nowrap}
.document-freight-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#263445;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;scrollbar-color:#a8b4c4 #f3f5f7;scrollbar-width:thin}
.document-freight-dialog::backdrop{background:rgba(15,23,42,.38)}
.document-freight-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.document-freight-dialog h3{margin:0;font-size:20px;line-height:1.4;font-weight:600}
.document-freight-dialog-heading button{min-height:36px;min-width:60px;font:inherit;cursor:pointer}
.document-freight-fields{display:grid;gap:22px}
.document-freight-label{display:block;margin-bottom:8px;font-weight:600;color:#263445}
.document-freight-weight-control{position:relative}
.document-freight-weight-control span{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#526477;pointer-events:none}
.document-freight-fields input,.document-freight-fields select{box-sizing:border-box;width:100%;height:44px;min-width:0;border:1px solid #a8b4c4;border-radius:6px;background:#fff;color:#263445;padding:10px 12px;font:inherit;caret-color:#165dff;font-variant-numeric:tabular-nums}
.document-freight-weight-control input{padding-right:62px}
.document-freight-fields input::placeholder{color:#526477}
.document-freight-fields input:hover{border-color:#697d94}
.document-freight-fields input:disabled{background:#f3f5f7;color:#526477;cursor:not-allowed}
.document-freight-fields input[aria-invalid=true]{border-color:#b1392e}
.document-freight-weight-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin-top:7px;min-height:22px;font-size:13px;color:#526477}
.document-freight-weight-meta [data-freight-tonnes]{font-variant-numeric:tabular-nums}
.document-freight-reset{border:0;padding:2px 0;background:transparent;color:#165dba;font:inherit;cursor:pointer;text-underline-offset:3px}
.document-freight-reset:hover{text-decoration:underline}
.document-freight-dialog [hidden]{display:none!important}
.document-freight-field-hint{margin:7px 0 0;color:#526477;font-size:12px}
.document-freight-results{max-height:190px;overflow:auto;margin-top:6px;border:1px solid #cbd5e1;border-radius:6px;scrollbar-color:#a8b4c4 #f3f5f7;scrollbar-width:thin}
.document-freight-results button{display:block;width:100%;min-height:40px;padding:9px 12px;border:0;border-radius:0;border-bottom:1px solid #e2e8f0;background:#fff;color:#263445;text-align:left;font:inherit;cursor:pointer;overflow-wrap:anywhere}
.document-freight-results button:last-child{border-bottom:0}
.document-freight-results button:hover,.document-freight-results button:focus-visible{background:#edf4ff;color:#124aa0}
.document-freight-results p{padding:12px;color:#526477;font-size:13px}
.document-freight-result{margin-top:24px;padding-top:20px;border-top:1px solid #e2e8f0}
.document-freight-result-row{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 16px}
.document-freight-result-row>span{color:#526477}
.document-freight-dialog [data-freight-amount]{font-size:26px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.document-freight-dialog [role=status]{min-height:21px;margin:8px 0 0;color:#465d76;font-size:13px;overflow-wrap:anywhere}
.document-freight-dialog [role=status][data-state=error]{color:#a32e25}
.document-freight-note{margin:20px 0 0;color:#526477;font-size:12px}
.document-freight-dialog :focus-visible{outline:2px solid #165dff;outline-offset:3px}
.document-freight-dialog ::selection{background:#dce8ff;color:#163962}
@media(max-width:420px){.document-freight-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:18px}.document-freight-dialog-heading{margin-bottom:20px}.document-freight-fields{gap:18px}.document-freight-dialog [data-freight-amount]{font-size:24px}}
