.shipments-page{--ship-accent:#317ab4;--ship-soft:#edf5fc}.content[data-trade-mode=wholesale] .shipments-page{--ship-accent:#32848a;--ship-soft:#edf7f7}.shipments-page .page-heading{margin-bottom:16px}.shipments-page .page-heading h1{font-size:20px}.shipments-page .page-heading .btn{border-radius:11px;min-height:38px;font-size:12px;padding:8px 13px}.shipment-tabs{display:flex;gap:22px;border-bottom:1px solid #e2ebf2;margin-bottom:15px}.shipment-tabs button{position:relative;display:flex;align-items:center;gap:7px;padding:10px 3px 12px;border:0;background:transparent;color:#8b9eae;font:inherit;font-size:12px;cursor:pointer;transition:color .2s}.shipment-tabs button:after{content:'';position:absolute;bottom:-1px;inset-inline:0;height:2px;background:var(--ship-accent);border-radius:2px;transform:scaleX(0);transition:transform .23s ease}.shipment-tabs button[aria-pressed=true]{color:var(--ship-accent);font-weight:600}.shipment-tabs button[aria-pressed=true]:after{transform:scaleX(1)}.shipment-tabs button>span{min-width:19px;text-align:center;border-radius:6px;font-size:10px;padding:1px 5px;background:#eaf0f5;color:#7c96a9}.shipment-tabs button[aria-pressed=true]>span{color:var(--ship-accent);background:var(--ship-soft)}.shipment-tools{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:9px;align-items:center}.shipment-tools .search-field{max-width:none;min-width:0;background:#fff;border:1px solid #e0eaf2;border-radius:11px;min-height:40px;padding:0 11px;margin:0}.shipment-tools input{width:100%;min-width:0;font-size:12px}.shipment-tools .input,.shipment-tools .select-trigger{height:40px;min-height:40px;font-size:11px;border-radius:10px;border-color:#e0eaf2}.shipment-tools .select-picker{min-width:0}.shipment-list-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:15px 1px 10px;color:#90a2b0;font-size:10px}.shipment-list-caption small{font-size:10px;white-space:nowrap}.shipment-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shipment-card{min-width:0;padding:13px 14px 9px;background:#fff;border:1px solid #e1eaf2;border-radius:14px;box-shadow:0 2px 7px #31566d02;transition:border-color .2s,box-shadow .2s;animation:shipment-in .22s ease}.shipment-card:hover{border-color:#c7dce9;box-shadow:0 4px 14px #31566d06}.shipment-card-top{display:flex;align-items:center;gap:8px;min-width:0}.shipment-symbol{display:grid;place-items:center;width:29px;height:29px;flex-shrink:0;border-radius:9px;background:var(--ship-soft);color:var(--ship-accent)}.shipment-symbol .icon{width:16px;height:16px}.shipment-code{font-size:12px;min-width:0;overflow-wrap:anywhere;color:#416580;font-weight:600}.shipment-status{display:inline-flex;align-items:center;gap:4px;font-size:10px;white-space:nowrap;color:#7a95a8}.shipment-card-top>.shipment-status{margin-inline-start:auto}.shipment-status i{width:4px;height:4px;border-radius:50%;background:currentColor}.shipment-status.received{color:#609584}.shipment-status.partial{color:#b39265}.shipment-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:11px 0 10px;font-size:11px;color:#8097aa;flex-wrap:wrap}.shipment-card-meta>span{display:flex;align-items:center;gap:5px}.shipment-card-meta .icon{width:13px;height:13px;color:#9aafbe}.shipment-card-meta small{font-size:10px;color:#9baebb}.shipment-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:9px;padding-top:8px;border-top:1px solid #f0f4f7}.shipment-receipt{display:flex;align-items:center;gap:7px;min-width:0}.shipment-receipt progress{width:46px;height:3px;appearance:none;border:0;border-radius:9px;background:#edf2f5;overflow:hidden}.shipment-receipt progress::-webkit-progress-bar{background:#edf2f5}.shipment-receipt progress::-webkit-progress-value{background:#91b7ae;border-radius:9px}.shipment-receipt progress::-moz-progress-bar{background:#91b7ae}.shipment-receipt small{font-size:10px;color:#95a8b5}.shipment-details{display:inline-flex;align-items:center;gap:4px;border:0;border-radius:8px;background:var(--ship-soft);color:var(--ship-accent);font:inherit;font-size:10px;min-height:32px;padding:6px 9px;cursor:pointer;white-space:nowrap;transition:background .2s,transform .2s}.shipment-details:hover{filter:brightness(.97)}.shipment-details:active{transform:scale(.97)}.shipment-details .icon{width:12px;height:12px}.shipment-note{display:flex;align-items:center;gap:6px;margin:13px 2px;color:#9aadb9;font-size:10px}.shipment-note .icon{width:12px;height:12px}.shipment-list>.empty-state{grid-column:1/-1}.shipment-tabs button:focus-visible,.shipment-details:focus-visible{outline:2px solid #86b3d0;outline-offset:3px}.shipment-detail-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}.shipment-detail-summary>span:last-child{width:100%;color:#8a9eae;font-size:11px}.shipment-timeline{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:16px 0;margin:10px 0 6px;gap:10px;border-bottom:1px solid #edf2f6}.shipment-timeline li{display:flex;flex-direction:column;gap:5px;border-top:2px solid #b5cfc8;padding-top:9px;font-size:11px;color:#698e85}.shipment-timeline li.pending{border-color:#e3ebf0;color:#92a5b3}.shipment-timeline time,.shipment-timeline small{font-size:10px;line-height:1.8;color:#91a5b2}.shipment-detail-summary+.shipment-timeline+ .table-wrap table{font-size:12px}
@media(max-width:1050px){.shipment-list{grid-template-columns:1fr}}@media(max-width:600px){.shipment-card{padding:11px 12px 8px;border-radius:13px}.shipment-tools{grid-template-columns:minmax(0,1fr) 122px;gap:7px}.shipment-tools input{font-size:11px}.shipment-card-meta{margin-top:9px;font-size:10px}.shipment-card-top{gap:7px}.shipment-code{font-size:11px}.shipment-card-top>.shipment-status{font-size:9px}.shipments-page .page-heading h1{font-size:18px}.shipments-page .page-heading .btn{font-size:11px;min-height:36px}.shipment-timeline{gap:8px}.shipment-timeline li{font-size:10px}}@media(max-width:360px){.shipment-tools{grid-template-columns:1fr}.shipment-card-top{flex-wrap:wrap}.shipment-symbol{width:24px;height:24px}.shipment-status{font-size:9px}.shipment-receipt progress{width:28px}}
.shipment-shortages{margin:16px 0;padding:14px;border:1px solid #edd9ba;background:#fffaf1;border-radius:12px}.shipment-shortages h3{font-size:13px;color:#916b36;margin:0 0 10px}.shipment-shortages article{display:grid;gap:5px;padding:10px 0;border-top:1px solid #efe3d1;font-size:12px;overflow-wrap:anywhere}.shipment-shortages small{font-size:10px;color:#8a7e6c}.shipment-shortages span{font-size:11px;color:#9b6628}.shipment-records table{font-size:12px}.shipment-record-short{background:#fffaf1}.shipment-record-state{display:inline-block;padding:4px 7px;border-radius:6px;font-size:10px;white-space:nowrap}.shipment-record-state.short{color:#91652b;background:#f9ecd6}.shipment-record-state.complete{color:#4f8472;background:#edf6f1}.shipment-record-state.waiting{color:#7892a5;background:#f0f5f8}
@keyframes shipment-in{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.shipment-card{animation:none}.shipment-tabs button,.shipment-tabs button:after,.shipment-details,.shipment-card{transition:none}}

.shipment-record-short[data-action]{cursor:pointer}.shipment-record-short[data-action]:hover{background:#fff2dc}.shipment-record-link{display:inline-flex;align-items:center;gap:5px;padding:4px 0;border:0;background:none;color:#986a2e;font:inherit;font-size:11px;cursor:pointer}.shipment-record-link .icon{width:12px;height:12px}.shipment-record-link:focus-visible{outline:2px solid #c69b61;outline-offset:3px;border-radius:3px}.shipment-record-product{margin:18px 0}.shipment-record-product h3{font-size:14px;color:#476982}.shipment-record-product p,.shipment-record-product small{font-size:11px;color:#849aaa}.shipment-record-quantities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}.shipment-record-quantities>div{padding:12px 8px;border:1px solid #e0eaf2;border-radius:10px;text-align:center}.shipment-record-quantities dt{font-size:10px;color:#8097aa}.shipment-record-quantities dd{margin:8px 0 0;font-size:14px;font-weight:600;color:#4e728d}.shipment-record-quantities .is-short{background:#fff8ed;border-color:#ecd9b8}.shipment-record-quantities .is-short dd{color:#996c30}.shipment-record-detail>.btn{margin-top:15px}.shipment-record-detail>.small{line-height:1.9}

.shipment-record-back{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:6px 0;margin:0 0 16px;border:0;background:none;color:#467b9f;font:inherit;font-size:12px;cursor:pointer}.shipment-record-back .icon{width:16px;height:16px}.shipment-record-back:focus-visible{outline:2px solid #86b3d0;outline-offset:3px;border-radius:4px}.shipment-record-detail .shipment-detail-summary>span:last-child{width:auto}.shipment-record-detail .shipment-detail-summary{justify-content:space-between;min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){.shipment-records.table-wrap{overflow:visible;border:1px solid #e4ecf2;border-radius:10px;background:#fff}.shipment-records table{display:table;table-layout:fixed;width:100%;min-width:0;border-collapse:collapse}.shipment-records thead{display:table-header-group}.shipment-records tbody{display:table-row-group}.shipment-records tbody tr{display:table-row;border:0;border-radius:0;background:#fff}.shipment-records tbody tr.shipment-record-short{background:#fffcf6}.shipment-records th,.shipment-records tbody td{box-sizing:border-box;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:start;padding:9px 6px;font-size:10px;line-height:1.8;border:0;border-bottom:1px solid #edf2f6}.shipment-records th{padding:7px 6px;color:#8ba0b1;font-size:9px;font-weight:500;background:#f6f9fc}.shipment-records th:nth-child(1){width:25%}.shipment-records th:nth-child(2){width:29%}.shipment-records th:nth-child(3),.shipment-records th:nth-child(4){width:12%}.shipment-records th:nth-child(5){width:22%}.shipment-records tbody td{display:table-cell;vertical-align:middle}.shipment-records tbody td::before{display:none}.shipment-records tbody tr:last-child td{border-bottom:0}.shipment-records .small,.shipment-records small{font-size:9px;line-height:1.8}.shipment-records .shipment-record-link{display:inline-flex;max-width:100%;gap:3px;padding:2px 0;white-space:normal;overflow-wrap:anywhere;flex-wrap:wrap;font-size:9px;line-height:1.8}.shipment-records .shipment-record-link .icon{width:10px;height:10px}.shipment-records .shipment-record-state{padding:3px 5px;border-radius:5px;font-size:9px;line-height:1.6;white-space:normal;max-width:100%}.shipment-records .shipment-record-state.short{background:#faf0df;color:#aa8755}.shipment-records .shipment-record-state.complete{background:#edf6f2;color:#7ba393}.shipment-records .shipment-source-link{font-size:9px;padding:4px 0}.shipment-records .shipment-pending{font-size:8px;margin-top:4px}.shipment-records .ltr{overflow-wrap:anywhere}.shipment-record-quantities>div{min-width:0}.shipment-record-back{margin-bottom:12px}}

.shipment-source-link{display:flex;align-items:center;gap:5px;max-width:100%;overflow-wrap:anywhere;border:0;background:none;color:#477c9f;font:inherit;font-size:10px;text-align:start;padding:7px 0;cursor:pointer}.shipment-source-link .icon{width:12px;height:12px;flex-shrink:0}.shipment-linked-note{padding:12px;background:#edf5fc;border-radius:10px;font-size:11px;line-height:1.9;color:#547b97}.shipment-pending{display:block;margin-top:6px;line-height:1.8;color:#8c784e;font-size:10px}.shipment-replacements{margin-top:20px}.shipment-replacements h3{font-size:12px}.shipment-replacements button{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between;width:100%;padding:12px;border:1px solid #dce8f2;border-radius:10px;background:#f6fafd;color:#547c98;font:inherit;font-size:11px;cursor:pointer;margin:8px 0}.shipment-replacements small{font-size:10px}.shipment-replacements .icon{width:13px;height:13px}#shortage-shipment-form{display:grid;gap:14px}#shortage-shipment-form .shipment-record-back{justify-self:start;margin:0}.shipment-record-detail>.btn-primary{margin-top:12px}
.modal:has(.shipment-record-detail) .modal-header{padding:14px 16px}.modal:has(.shipment-record-detail) .modal-header h2{font-size:14px}.modal:has(.shipment-record-detail) .modal-header .eyebrow{font-size:9px}.modal:has(.shipment-record-detail) .modal-body{padding:12px 16px 16px}.shipment-record-detail{font-size:11px}.shipment-record-detail .shipment-record-back{min-height:32px;padding:4px 0;margin:0 0 7px;font-size:10px;gap:4px;color:#7594a9}.shipment-record-detail .shipment-record-back .icon{width:13px;height:13px}.shipment-record-detail .shipment-detail-summary{gap:7px;font-size:10px}.shipment-record-detail .shipment-detail-summary>strong{font-size:10px;font-weight:550;color:#66859b}.shipment-record-detail .shipment-record-state{font-size:9px;padding:3px 6px;border-radius:5px}.shipment-record-detail .shipment-record-state.short{color:#ae8c5d;background:#fbf3e7}.shipment-record-detail .shipment-record-product{margin:12px 0 10px}.shipment-record-detail .shipment-record-product h3{margin:0 0 5px;font-size:12px;font-weight:550;line-height:1.9;color:#55788f}.shipment-record-detail .shipment-record-product p{margin:3px 0;font-size:10px;color:#8aa0af}.shipment-record-detail .shipment-record-product small{font-size:9px;color:#97a9b6}.shipment-record-detail .shipment-record-quantities{gap:0;margin:12px 0;border:1px solid #e9eff4;border-radius:8px;overflow:hidden;background:#fbfcfd}.shipment-record-detail .shipment-record-quantities>div{padding:9px 5px;border:0;border-radius:0;border-inline-end:1px solid #e9eff4}.shipment-record-detail .shipment-record-quantities>div:last-child{border-inline-end:0}.shipment-record-detail .shipment-record-quantities dt{font-size:9px;color:#91a4b1;line-height:1.7}.shipment-record-detail .shipment-record-quantities dd{font-size:12px;font-weight:550;margin:4px 0 0;color:#66859a}.shipment-record-detail .shipment-record-quantities .is-short{background:#fffbf4}.shipment-record-detail .shipment-record-quantities .is-short dd{color:#ae8954}.shipment-record-detail .shipment-linked-note{padding:8px 10px;margin:10px 0;font-size:10px;line-height:1.9;border-radius:7px;background:#f3f8fc;color:#7997ab}.shipment-record-detail>.btn-primary{min-height:34px;padding:6px 11px;font-size:11px;border-radius:8px;margin-top:3px}.shipment-record-detail>.btn-primary .icon{width:14px;height:14px}.shipment-record-detail .shipment-replacements{margin-top:12px}.shipment-record-detail .shipment-replacements h3{font-size:10px;font-weight:550;color:#7893a6;margin:0 0 6px}.shipment-record-detail .shipment-replacements button{padding:8px 9px;margin:5px 0;border-color:#e9eff4;border-radius:7px;background:#f9fbfd;gap:5px;font-size:10px;color:#7896aa}.shipment-record-detail .shipment-replacements button strong{font-weight:500}.shipment-record-detail .shipment-replacements small{font-size:9px;color:#91a7b6}.shipment-record-detail>.small{font-size:9px;line-height:1.9;color:#98aab7;margin:10px 0 0;overflow-wrap:anywhere}

.shipment-record-state.pending,.shipment-record-detail .shipment-record-state.pending{color:#7799af;background:#f0f6fb}

/* Receipt states stay distinct and readable in both shipment dialogs. */
:is(.shipment-records,.shipment-record-detail) .shipment-record-state:is(.complete,.short,.pending,.waiting){color:#000;font-weight:600}
:is(.shipment-records,.shipment-record-detail) .shipment-record-state.complete{background:#d9f3e3}
:is(.shipment-records,.shipment-record-detail) .shipment-record-state.short{background:#ffe2d5}
:is(.shipment-records,.shipment-record-detail) .shipment-record-state.pending{background:#dcecff}
:is(.shipment-records,.shipment-record-detail) .shipment-record-state.waiting{background:#fff0bf}
