.modalbox:has(.shipment-editor){width:min(900px,calc(100vw - 32px));max-height:calc(100vh - 24px);overflow:auto;padding:18px 22px}
.shipment-editor{width:100%;max-width:none;color:#13233f}
.shipment-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:14px;border-bottom:1px solid #e7edf6}
.shipment-heading h2{margin:0;font-size:23px;line-height:1.2;letter-spacing:-.35px;color:#10213d}
.shipment-heading p{margin:7px 0 0;max-width:570px;color:#70809b;font-size:14px;line-height:1.45}
.shipment-tools{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.shipment-tool-btn{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 12px;border:1px solid #d9e4f2;border-radius:10px;background:#fff;color:#29405f;font-size:12px;font-weight:750;text-decoration:none;transition:.18s ease}
.shipment-tool-btn:hover{border-color:#9dbef0;background:#f6f9ff;color:#1264dd}
.shipment-tool-btn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.shipment-section{padding:14px 0;border-bottom:1px solid #edf1f7}
.shipment-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:11px}
.shipment-section-head h3{margin:0;font-size:15px;color:#192b48}
.shipment-section-head small{color:#8593a9;font-size:12px}
.shipment-product-search{display:block;position:relative}
.shipment-product-search>span{display:block;margin-bottom:7px;color:#50617d;font-size:12px;font-weight:750}
.shipment-product-search input{width:100%;height:42px;padding:0 13px;border:1px solid #cfdced;border-radius:10px;background:#fff;font-size:14px;font-weight:700;color:#172b4d;outline:none;transition:.18s ease}
.shipment-product-search input:focus{border-color:#2478f3;box-shadow:0 0 0 3px rgba(36,120,243,.11)}
.shipment-product-preview{display:flex;align-items:center;gap:12px;margin-top:8px;padding:9px 12px;border:1px solid #dfe8f4;border-radius:11px;background:linear-gradient(135deg,#f8fbff 0%,#f3f7fd 100%)}
.shipment-product-preview img{width:48px;height:48px;flex:0 0 48px;border-radius:10px;object-fit:cover;background:#edf2f8;box-shadow:0 1px 2px rgba(16,35,72,.08)}
.shipment-product-preview b,.shipment-product-preview span{display:block}
.shipment-product-preview b{font-size:14px;color:#142744}
.shipment-product-preview span{margin-top:3px;font-size:12px;color:#7183a1}
.shipment-cost-field{display:block;margin-top:10px;padding:11px 12px;border:1px solid #dbe6f5;border-radius:11px;background:#f8fbff}
.shipment-cost-field>span{display:block;margin-bottom:7px;color:#29405f;font-size:12px;font-weight:800}
.shipment-cost-field>div{position:relative;max-width:260px}
.shipment-cost-field input{width:100%;height:42px;padding:0 42px 0 13px;border:1px solid #bfcfe4;border-radius:9px;background:#fff;color:#102348;font-size:16px;font-weight:800;outline:none}
.shipment-cost-field input:focus{border-color:#2478f3;box-shadow:0 0 0 3px rgba(36,120,243,.1)}
.shipment-cost-field b{position:absolute;right:14px;top:10px;color:#526984;font-size:15px}
.shipment-cost-field small{display:block;margin-top:7px;color:#7183a1;font-size:11px;line-height:1.4}
.shipment-size-grid{display:grid;grid-template-columns:repeat(7,minmax(64px,1fr));gap:7px}
.shipment-size-cell{display:grid;grid-template-columns:1fr;gap:4px;padding:6px;border:1px solid #dfe7f2;border-radius:10px;background:#fafcff;text-align:center;transition:.18s ease}
.shipment-size-cell:focus-within{border-color:#8eb8f6;background:#fff;box-shadow:0 0 0 3px rgba(36,120,243,.08)}
.shipment-size-cell span{font-size:12px;font-weight:800;color:#536681}
.shipment-size-cell input{width:100%;height:32px;padding:0 4px;border:1px solid #d6e0ed;border-radius:7px;background:#fff;text-align:center;font-size:13px;font-weight:800;color:#102348;outline:none;-moz-appearance:textfield}
.shipment-size-cell input::-webkit-inner-spin-button,.shipment-size-cell input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.shipment-size-cell input:focus{border-color:#2478f3}
.shipment-size-cell.is-filled{border-color:#87b6fa;background:#f2f7ff}
.shipment-size-cell.is-filled span{color:#1169e8}
.shipment-size-cell.custom{background:#fffaf2;border-color:#eed9b3}
.shipment-custom-row{display:flex;align-items:flex-end;gap:9px;margin-top:10px}
.shipment-custom-row label{display:grid;gap:6px;width:190px;color:#60718e;font-size:12px;font-weight:750}
.shipment-custom-row input{height:40px;padding:0 12px;border:1px solid #cfdced;border-radius:9px;background:#fff;outline:none}
.shipment-custom-row input:focus{border-color:#2478f3;box-shadow:0 0 0 3px rgba(36,120,243,.09)}
.shipment-custom-row .btn{height:40px}
.shipment-footer{position:sticky;bottom:-18px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 -22px -18px;padding:12px 22px 16px;border-top:1px solid #e8eef6;background:rgba(255,255,255,.97);backdrop-filter:blur(10px)}
.shipment-total{display:flex;align-items:center;gap:10px;min-width:220px;padding:9px 13px;border:1px solid #dbe8f9;border-radius:11px;background:#f3f8ff;color:#526984}
.shipment-total-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#e3efff;color:#0d6efd;font-size:18px}
.shipment-total-text{display:grid;gap:2px;font-size:12px}
.shipment-total b{font-size:18px;color:#0d6efd}
.shipment-save-row{display:flex;justify-content:flex-end;gap:9px;margin:0}
.shipment-save-row .btn{min-height:42px;padding:0 18px;border-radius:10px}
.shipment-save-row .primary{min-width:174px;box-shadow:0 6px 14px rgba(13,110,253,.18)}
.shipment-status{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e8f8ef;color:#15905b;font-size:12px;font-weight:800}
.shipment-row-actions{display:flex;gap:6px;justify-content:flex-end}.shipment-row-actions .btn{white-space:nowrap}
@media(max-width:820px){.modalbox:has(.shipment-editor){width:calc(100vw - 24px);padding:16px}.shipment-editor{width:100%}.shipment-header{display:block}.shipment-tools{margin-top:12px}.shipment-size-grid{grid-template-columns:repeat(4,1fr)}.shipment-footer{bottom:-16px;margin:0 -16px -16px;padding:11px 16px 14px}.shipment-total{min-width:190px}.shipment-save-row .primary{flex:1}}
@media(max-width:520px){.modalbox:has(.shipment-editor){width:calc(100vw - 14px);max-height:calc(100vh - 14px);padding:14px}.shipment-tools{display:grid;grid-template-columns:1fr 1fr}.shipment-tool-btn{justify-content:center}.shipment-section-head{display:block}.shipment-section-head small{display:block;margin-top:4px}.shipment-size-grid{grid-template-columns:repeat(3,1fr)}.shipment-custom-row{align-items:stretch;flex-direction:column}.shipment-custom-row label{width:100%}.shipment-footer{align-items:stretch;flex-direction:column;bottom:-14px;margin:0 -14px -14px;padding:10px 14px 13px}.shipment-total{width:100%}.shipment-save-row{display:grid;grid-template-columns:1fr 1.5fr}}
