.shipment-meta {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.shipment-meta p,.shipment-address {margin:.4rem 0;overflow-wrap:anywhere}
.shipment-balances {margin-top:1rem}
#shipments .document-actions {margin:0;gap:.4rem}
#shipments td:last-child {white-space:nowrap}
#shipments th {white-space:normal}
input[name^="qty_"] {width:7rem;max-width:100%}
[data-shipment-address-fields][hidden] {display:none}
@media(max-width:700px){.shipment-meta{grid-template-columns:1fr}}

#shipments td small {display:block;margin-top:.2rem;color:var(--muted)}
/* V27: compact, inline order groups. No sidebar overflow changes. */
.fulfillment-card{padding:0;overflow:visible;margin:16px 0}.group-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:16px 20px;background:#f6f8fa;border-radius:10px 10px 0 0}.group-heading h3{margin:0 0 6px}.group-heading .document-actions{margin:0;flex-wrap:wrap}.group-items{padding:0 20px}.group-item{display:grid;grid-template-columns:minmax(220px,1fr) 90px 110px auto;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid #e5e9ed}.group-product{display:flex;gap:12px;align-items:center;min-width:0}.group-product strong,.group-product small{display:block;overflow-wrap:anywhere}.group-thumbnail{width:48px;height:48px;object-fit:contain;background:white;border:1px solid #edf0f2;border-radius:6px}.group-quantity,.group-price{text-align:right}.group-quantity strong{font-size:18px}.group-item small{display:block;color:#617080}.group-line-actions{display:flex;flex-direction:column;gap:8px;font-size:13px}.group-files{grid-column:1/-1}.group-files .order-file-drawer{margin:0}.group-delivery{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:16px 20px;background:#fbfcfd}.group-delivery h4{margin:0 0 6px}.group-delivery p{margin:6px 0;font-size:13px}.group-delivery details,.group-delivery summary{font-size:13px}.group-footer{padding:12px 20px;text-align:right;border-top:1px solid #e5e9ed}.group-confirm{display:flex;gap:12px;flex-wrap:wrap;align-items:end;padding:16px 20px}.group-confirm label{flex:1;min-width:160px;font-size:13px}.group-more{position:relative}.group-more[open]{padding:8px;border:1px solid #dfe5eb;background:white}.group-more a{display:block;padding:8px}.group-comparison{display:grid;grid-template-columns:1fr 1fr;gap:20px}.comparison-group{padding:12px;border:1px solid #dfe5eb;margin:8px 0;overflow-wrap:anywhere}.group-review{border-left:4px solid #bb7a14}.group-remove-line{display:flex;gap:15px;align-items:center;padding:10px 0;border-bottom:1px solid #e5e9ed}.group-remove-line span{flex:1}.order-defaults>summary{font-weight:600}.group-dialog{width:min(760px,calc(100vw - 32px));max-height:90vh;box-sizing:border-box;overflow:auto;border:1px solid #d4dce4;border-radius:12px;padding:28px;box-shadow:0 20px 80px #0004}.group-dialog::backdrop{background:#14223588}.group-dialog-close{position:absolute;right:14px;top:10px;background:none;border:0;font-size:28px;cursor:pointer}.group-form-content h2{margin-top:0;padding-right:20px}.group-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.group-field.wide{grid-column:1/-1}.group-form-content label,.group-form-content small{display:block}.group-form-content .table-wrap input{max-width:100px}.group-address{margin:16px 0}.group-address summary{margin-bottom:12px}
@media(max-width:1100px){.group-heading{align-items:flex-start;flex-direction:column}.group-item{grid-template-columns:minmax(160px,1fr) 70px 90px}.group-line-actions{grid-column:1/-1;flex-direction:row}.group-heading .button{padding:8px 10px}}
@media(max-width:600px){.group-fields,.group-delivery,.group-comparison{grid-template-columns:1fr}.group-item{grid-template-columns:minmax(120px,1fr) 64px}.group-price{grid-column:2}.group-product{align-self:start}.group-thumbnail{width:36px;height:36px}.group-dialog{padding:20px}.group-heading,.group-items,.group-delivery{padding-left:12px;padding-right:12px}.group-remove-line{flex-wrap:wrap}.group-remove-line span{flex-basis:100%}}
.shipment-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.shipment-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:16px}.shipment-filters label{flex:1;min-width:130px;font-size:13px}.shipment-filters label:first-of-type{flex:2;min-width:200px}.shipment-overview{table-layout:fixed;min-width:660px}.shipment-overview th:nth-child(1){width:22%}.shipment-overview th:nth-child(2){width:30%}.shipment-overview th:nth-child(3){width:18%}.shipment-overview th:nth-child(4){width:17%}.shipment-overview th:nth-child(5){width:13%}.shipment-overview td{overflow-wrap:anywhere}.shipment-overview small{display:block;margin:5px 0;color:#617080}.shipment-overview .tag{white-space:normal}.shipment-row-actions{display:flex;flex-direction:column;gap:10px}

/* V29: the draft Remove item action must be readable on light order cards. */
.group-line-actions .text-button{color:#006a9e;font-weight:600;text-align:left;cursor:pointer}
.group-line-actions .text-button:hover{text-decoration:underline}
/* Keep the private connector address readable and selectable at narrow widths. */
.connector-setup{padding:24px}
.connector-setup code{white-space:normal;overflow-wrap:anywhere;word-break:break-word}

.group-line-actions .text-button:focus-visible{outline:2px solid #006a9e;outline-offset:3px}
