.oms-delivery-record{border:1px solid var(--color-border);border-radius:12px;padding:18px;margin:12px 0;background:var(--color-surface)}
.oms-delivery-record header{display:flex;align-items:center;justify-content:space-between;gap:12px}.oms-delivery-record header div{display:grid;gap:6px}.oms-delivery-record p{margin:10px 0;overflow-wrap:anywhere}.oms-delivery-record .actions{display:flex;flex-wrap:wrap;gap:8px}
.oms-delivery-status{font-size:12px;padding:6px 10px;border-radius:20px;background:var(--color-surface-muted);white-space:nowrap}.oms-delivery-evidence{font-size:12px;color:var(--color-text-secondary);overflow-wrap:anywhere}
.oms-delivery-review-item{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:10px;align-items:end;border-top:1px solid var(--color-border);padding:12px 0}.oms-delivery-review-item small{grid-column:1/-1}.oms-delivery-box-item{display:grid;grid-template-columns:2fr 1fr auto;gap:10px;margin:10px 0}.oms-delivery-table td small{display:block;color:var(--color-text-secondary);margin-top:5px}.oms-delivery-table input{max-width:120px}.oms-document-modal select{width:100%;min-width:0}.oms-delivery-fields>label input,.oms-delivery-box-item input{min-width:0;width:100%}
.oms-delivery-source pre{max-height:280px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:var(--color-surface-muted);font-size:12px}.oms-delivery-source summary{cursor:pointer}
@media(max-width:700px){.oms-delivery-review-item{grid-template-columns:1fr 1fr}.oms-delivery-review-item>.ui-field:first-child{grid-column:1/-1}.oms-delivery-record{padding:12px}.oms-delivery-record header{align-items:flex-start}.oms-delivery-box-item{grid-template-columns:1fr 90px}.oms-delivery-box-item button{grid-column:1/-1}.oms-delivery-table input{max-width:100%}}
.oms-delivery-table td:nth-child(5){min-width:190px;max-width:230px}.oms-delivery-table td:nth-child(5) select{margin-top:8px;font-size:var(--font-size-caption)}.oms-delivery-table td:nth-child(6){white-space:nowrap}
@media(max-width:640px){.oms-delivery-table td:nth-child(5){grid-column:1/-1;min-width:0;max-width:none}}
@media(min-width:641px){.oms-document-modal:has([data-dw-box-summary]){width:min(1080px,calc(100vw - 48px));max-width:1080px}.oms-delivery-table td:not(:first-child):not(:nth-child(5)) input{min-width:76px;width:90px}}
.oms-delivery-preview-frame{width:100%;height:65vh;min-height:380px;border:1px solid var(--color-border);border-radius:8px;background:#eee}.oms-document-modal:has(.oms-delivery-preview-frame){width:min(1020px,calc(100vw - 32px));max-width:1020px}
