/* Preserve logo proportions in both supplier preview and print. */
#po-supplier-panel .document-heading img{width:auto;height:auto;max-width:210px;max-height:78px;object-fit:contain;flex:0 1 auto;align-self:center}
#po-supplier-panel .document-heading{gap:22px;align-items:center}
.formal-shipment-paper .document-heading{padding:0 0 10px;margin-bottom:12px;gap:18px}
.formal-shipment-paper .document-heading h2{font-size:20px;margin:0}
.formal-shipment-paper .document-heading p{margin:3px 0 0}
.formal-shipment-paper .detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 16px;margin:0 0 10px;font-size:12px}
.formal-shipment-paper .detail-grid span{margin-bottom:2px}
.shipment-contact-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 20px;border-top:1px solid #dde6eb;border-bottom:1px solid #dde6eb;padding:9px 0;margin-bottom:12px;font-size:12px}
.shipment-contact-strip>div{display:flex;gap:10px;overflow-wrap:anywhere}
.shipment-contact-strip>div.wide{grid-column:1/-1}
.shipment-contact-strip span{color:#6f8290;min-width:54px;flex-shrink:0}
.formal-shipment-paper th,.formal-shipment-paper td{padding:8px 10px}
.formal-shipment-paper .sub{margin-top:2px;font-size:11px}
.formal-shipment-paper .total-row{margin:10px 0;font-size:12px}
.formal-shipment-paper .signature-box{margin:16px 0 7px;padding:12px 14px;border-style:solid;border-color:#d2dce3}
.formal-shipment-paper .hint{margin:7px 0;font-size:10px}
.quote-delivery-paper{min-height:0}
.quote-delivery-paper .quote-delivery-heading{margin-bottom:9px;padding-bottom:8px}
.quote-delivery-paper .quote-delivery-parties{margin-top:0;margin-bottom:10px}
.quote-delivery-paper.delivery-summit .quote-delivery-parties>div,.quote-delivery-paper.delivery-ruixin .quote-delivery-parties>div{padding:4px 7px;line-height:1.4}
.quote-delivery-paper.delivery-summit .quote-delivery-parties{gap:3px 12px;padding:3px 0 7px}
.quote-delivery-paper.delivery-ruixin .quote-delivery-parties{margin-bottom:8px}
.quote-delivery-paper .table-wrap th,.quote-delivery-paper .table-wrap td{padding:8px;line-height:1.45}
.quote-delivery-paper .quote-delivery-total{margin:8px 0 10px;padding:8px 10px}
.quote-delivery-paper .quote-delivery-signature{margin-top:12px;padding:11px 12px;font-size:12px}
.quote-delivery-paper .quote-delivery-heading img{object-fit:contain}
#delivery-assignment-field[hidden]{display:none}
@media screen and (max-width:650px){.formal-shipment-paper .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shipment-contact-strip{grid-template-columns:1fr}#po-supplier-panel .document-heading img{max-width:40%;max-height:65px}}
@media print{
 @page shipping{size:A4;margin:12mm}
 .formal-shipment-paper,.quote-delivery-paper{page:shipping}
 .formal-shipment-paper .document-heading,.formal-shipment-paper .detail-grid,.shipment-contact-strip,.formal-shipment-paper .signature-box{break-inside:avoid}
 .formal-shipment-paper th,.formal-shipment-paper td,.quote-delivery-paper .table-wrap th,.quote-delivery-paper .table-wrap td{padding:7px 8px}
 .quote-delivery-paper .quote-delivery-signature{break-inside:avoid}
 .list-sort-marker{display:none}
}

.purchase-language-label{display:flex;align-items:center;gap:8px;font-size:12px;margin-left:auto}.purchase-language-label select{padding:6px 9px}.supplier-purchase-paper .detail-grid{margin-bottom:18px}.supplier-purchase-paper{color:#243a49}
@media print{#modal.purchase-document{position:static!important;inset:auto!important;transform:none!important;translate:none!important;margin:0!important;padding:0!important;height:auto!important;min-height:0!important;max-height:none!important;min-width:0!important;max-width:none!important;overflow:visible!important}#modal.purchase-document :is(#modal-content,#dialog-form,.modal-body){position:static!important;inset:auto!important;display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;transform:none!important}#modal.purchase-document::after{display:none!important}#modal.purchase-document #po-supplier-panel{margin:0!important;padding:0!important;break-before:auto!important}#po-supplier-panel .document-heading{margin-top:0!important;padding-top:0!important;break-inside:avoid}#po-supplier-panel .list-sort-marker{display:none!important}#po-supplier-panel .list-sort-button{padding:0!important}#po-supplier-panel th,#po-supplier-panel td{padding:8px!important;font-size:10px}#po-supplier-panel .quote-terms{break-inside:avoid}}

.shipment-partial{color:#c53636!important;font-weight:650}
@media print{#modal:is(.shipment-document,.quote-shipment-document){position:static!important;inset:auto!important;transform:none!important;translate:none!important;margin:0!important;padding:0!important;height:auto!important;min-height:0!important;max-height:none!important;min-width:0!important;max-width:none!important;overflow:visible!important}#modal:is(.shipment-document,.quote-shipment-document) :is(#modal-content,#dialog-form,.modal-body){display:block!important;position:static!important;inset:auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;transform:none!important}#modal:is(.shipment-document,.quote-shipment-document)::after{display:none!important}.formal-shipment-paper{margin:0!important;padding-top:0!important;break-before:auto!important}.formal-shipment-paper .document-heading{margin-top:0!important;padding-top:0!important}}

.formal-shipment-paper .signature-box{display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;gap:20px;flex-wrap:nowrap}.formal-shipment-paper .signature-box>span:last-child{margin-left:auto;white-space:nowrap}

.quote-delivery-paper .quote-delivery-signature{display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;flex-wrap:nowrap}.quote-delivery-paper .quote-delivery-signature>span:last-child{margin-left:auto;white-space:nowrap}
