#drop-purchase-warning{grid-column:1}
#home-imports:has(#drop-purchase-warning)>.import-connector{display:none}
.warning-tools,.warning-settings{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:12px 0}
.warning-settings label,.warning-mapping label{display:flex;flex-direction:column;gap:5px;min-width:0}
.warning-mapping{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
#purchase-warning-dialog{width:min(1120px,96vw)}
#purchase-warning-dialog input,#purchase-warning-dialog select,#warning-paste{border:1px solid var(--line);border-radius:7px;padding:8px;max-width:100%;background:white;color:var(--ink)}
#warning-paste{width:100%;margin:8px 0}
.warning-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:8px}
.warning-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.warning-table th,.warning-table td{padding:9px 12px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
.warning-table th{background:#f3f7f9;color:#527084;font-weight:600}
.warning-table th:nth-child(-n+2),.warning-table td:nth-child(-n+2),.warning-table th:nth-child(10),.warning-table td:nth-child(10){text-align:left}
.warning-table tr:last-child td{border-bottom:0}
.purchase-warning-details{margin-top:18px;min-width:0}
.purchase-warning-details h3{font-size:14px;margin:0 0 4px}
.purchase-warning-details p{margin:4px 0 10px;font-size:12px}
@media(max-width:600px){.warning-mapping{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Fit warehouse warning columns within the wider product details dialog. */
.purchase-warning-details .warning-table{table-layout:fixed;min-width:900px}
.purchase-warning-details .warning-table th,.purchase-warning-details .warning-table td{padding:9px 8px;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
.purchase-warning-details .warning-table th:nth-child(1){width:12%}
.purchase-warning-details .warning-table th:nth-child(2){width:29%}
.purchase-warning-details .warning-table th:nth-child(9){width:9%}
.purchase-warning-details .warning-table th:nth-child(n+3):nth-child(-n+5){width:5%}
.purchase-warning-details .warning-table th:nth-child(n+6):nth-child(-n+8){width:7%}
.purchase-warning-details .warning-table th:nth-child(10){width:7%}
.purchase-warning-details .warning-table th:nth-child(11){width:7%}
.purchase-warning-details .warning-table th:nth-child(11),.purchase-warning-details .warning-table td:nth-child(11){text-align:left}
.purchase-warning-details .warning-table td:nth-child(2){line-height:1.65}
