.abi-po-dialog { width: min(1180px,calc(100vw - 32px)); max-height: 90vh; box-sizing: border-box; border: 1px solid #dce1e8; border-radius: 10px; overflow: auto; color: #182438; background: #f7f8fa; }
.abi-po-dialog::backdrop { background: #0f172a70; }
.abi-po-dialog h2 { font-size: 18px; margin-top: 24px; }
.abi-po-dialog .abi-po-source { flex: 1 0 100%; }
#abi-po-error,#abi-po-detail-error { color: #b91c1c; }
#abi-po-save-state { color: #166534; }
.dms-table .abi-po-alert { display: block; width: fit-content; margin: 3px 0; padding: 3px 6px; border-radius: 4px; color: #991b1b; background: #fee2e2; font-weight: 600; }
#abi-po-skus h2 { font-size: 18px; margin-top: 24px; }
#workspace-warehouse:has(.wh-tab-content.active[data-wh-tab="abi-orders"]) :is(#wh-global-filter,#app-bu-note) { display: none !important; }
#abi-po-misa { margin-top: 24px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 2px 18px rgba(20,20,25,.05); }
#abi-po-misa .abi-misa-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.abi-po-dialog #abi-po-misa h2 { margin: 0 8px 0 0; }
.abi-misa-chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; color: #6b6b72; background: #f1f1f3; }
.abi-misa-chip::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: currentColor; }
.abi-misa-chip[data-state="pending"] { color: #b45309; background: #fef3c7; }
.abi-misa-chip[data-state="sent"] { color: #0e9f90; background: #e3f8f5; }
.abi-misa-chip[data-state="failed"] { color: #e2445c; background: #fde7ea; }
#abi-po-misa-state { color: #166534; font-weight: 700; }
#abi-po-misa-hint { flex: 1 0 100%; color: #6b6b72; }
#abi-po-misa .abi-misa-where { margin-top: 12px; padding: 10px 14px; border-left: 3px solid #2563eb; border-radius: 8px; color: #182438; background: #eef4ff; }
#abi-po-misa .abi-misa-where h3 { margin: 0 0 6px; font-size: 14px; }
#abi-po-misa .abi-misa-where ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }
#abi-po-misa .abi-misa-where li + li { margin-top: 2px; }
#abi-po-misa-out { margin-top: 12px; }
#abi-po-misa-out .dms-counts { margin-top: 12px; }
.abi-po-pick { display: flex; justify-content: flex-end; margin: 10px 0 6px; }
.dms-table td.abi-po-dntt { white-space: nowrap; }
.abi-po-dntt small { display: block; margin: 2px 0; color: #1d4ed8; font-weight: 600; }
.abi-po-dntt small.abi-po-muted { color: #94a3b8; font-weight: 400; text-decoration: line-through; }
.abi-po-dialog > .abi-po-dntt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 8px 0; }
.abi-po-kind { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0; padding: 10px 14px; border: 1px solid #dce1e8; border-radius: 8px; }
.abi-po-kind label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.abi-po-kind small { color: #b45309; font-weight: 400; }
#abi-po-dntt-dialog [data-err] { color: #b91c1c; }
#abi-po-dntt-dialog [data-ok] { color: #166534; font-weight: 700; }
