.modal-card.modal-card-asn-history{width:min(1500px,calc(100vw - 32px))!important;max-width:none!important;height:min(820px,calc(100vh - 32px));max-height:calc(100vh - 32px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
.modal-card-asn-history .modal-head{flex:0 0 auto}
.modal-card-asn-history #modalBody{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden!important;padding:12px 16px 16px!important}
.asn-history-hint{flex:0 0 auto;margin:0 0 9px;padding:8px 11px;border:1px solid #dbe5f4;border-radius:8px;background:#f5f8fe;color:#60708a;font-size:12px}
.asn-history-table{flex:1 1 auto;min-height:0;width:100%;max-width:100%;overflow:auto!important;border:1px solid #e1e7ef;border-radius:10px}
.asn-history-table table{min-width:1320px!important;margin:0;table-layout:auto}
.asn-history-table th,.asn-history-table td{white-space:nowrap;vertical-align:middle}
.asn-history-table thead th{position:sticky;top:0;z-index:4;background:#f3f6fb}
.asn-history-table th:nth-child(8),.asn-history-table td:nth-child(8){max-width:300px;overflow:hidden;text-overflow:ellipsis}
.asn-history-table .asn-history-action{position:sticky!important;right:0;z-index:5;min-width:210px;background:#fff;box-shadow:-8px 0 12px -12px #40506b}
.asn-history-table thead .asn-history-action{z-index:7;background:#f3f6fb}
.asn-history-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}
@media(max-width:700px){.modal-card.modal-card-asn-history{width:calc(100vw - 10px)!important;height:calc(100vh - 10px);max-height:calc(100vh - 10px)!important}.modal-card-asn-history #modalBody{padding:9px!important}.asn-history-table .asn-history-action{min-width:190px}}

/* ASN confirmation: headers and data share one column geometry and alignment. */
.asn-inspection-scroll{width:100%;max-width:100%;max-height:65vh;overflow:auto}
.asn-inspection-table{width:100%!important;min-width:1420px!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important}
.asn-inspection-table th,.asn-inspection-table td{box-sizing:border-box!important;padding:8px 12px!important;text-align:left!important;vertical-align:middle!important;white-space:nowrap!important}
.asn-inspection-table th:nth-child(8),.asn-inspection-table td:nth-child(8),
.asn-inspection-table th:nth-child(9),.asn-inspection-table td:nth-child(9),
.asn-inspection-table th:nth-child(10),.asn-inspection-table td:nth-child(10){text-align:right!important;font-variant-numeric:tabular-nums}
.asn-inspection-table th:nth-child(12),.asn-inspection-table td:nth-child(12){text-align:center!important}
.asn-inspection-table thead th{position:sticky!important;top:0!important;z-index:4;background:#f4f7fb!important}
.asn-inspection-table tfoot td{position:static!important}
.asn-inspection-table tfoot td:nth-child(2){text-align:right!important;font-variant-numeric:tabular-nums}
.asn-inspection-table input[type=checkbox]{width:16px!important;height:16px!important;margin:0!important;vertical-align:middle!important}
