/* Scope compact layout to customer archives and the new trade controls. */
#customersPage{--customer-border:#e3e9f2}
#customersPage>.toolbar{margin-bottom:12px;min-height:0;align-items:center}
#customersPage h2{font-size:23px;letter-spacing:.02em}
#customersPage .customer-overview{margin:10px 0 12px}
#customersPage .customer-category-cards{gap:10px}
#customersPage .customer-category-cards button{padding:12px 16px;gap:4px;min-height:0}
#customersPage .customer-category-cards strong{font-size:23px}
#customersPage .customer-filter-line{margin-top:10px;gap:14px}
#customersPage .customer-overview p{font-size:12px;margin-top:8px}
#customersPage #adminCustomerScope{margin:8px 0!important;padding:0!important;gap:10px;align-items:center;justify-content:flex-start!important}
#customersPage #adminCustomerScope label{margin:0;display:flex;align-items:center;gap:10px;white-space:nowrap}
#customersPage #adminCustomerScope select{min-width:170px;width:200px;padding:8px 10px}
#customersPage .table-wrap{border:1px solid var(--customer-border);border-radius:12px}
#customersPage .table-wrap table{table-layout:fixed;min-width:1180px;width:100%}
#customersPage th{font-size:13px;background:#eef3f9;padding:12px 14px;white-space:nowrap}
#customersPage td{padding:12px 14px;vertical-align:top;font-size:13px;line-height:1.55;overflow-wrap:anywhere;border-color:var(--customer-border)}
#customersPage th:nth-child(1){width:18%}#customersPage th:nth-child(2){width:18%}#customersPage th:nth-child(3){width:7%}
#customersPage th:nth-child(4){width:23%}#customersPage th:nth-child(5){width:13%}#customersPage th:nth-child(6){width:10%}#customersPage th:nth-child(7){width:235px}
#customersPage tbody tr:hover{background:#f8faff}
#customersPage td:last-child button{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:0;padding:6px 10px;margin:0 4px 5px 0;font-size:12px;line-height:1.5;white-space:nowrap;border-radius:7px}
#customersPage td:last-child .danger{background:#fff5f3;color:#ae382a;border:1px solid #f2c7c0}
#customersPage td small{color:#7d8a9c;line-height:1.5}
#customersPage .business-list-controls{margin:8px 0 12px}
.trade-freight{background:#f3f7fc;border:1px solid #dce6f3;border-radius:12px;padding:16px}
.trade-freight[hidden],.trade-freight [hidden]{display:none!important}
.trade-total{padding:15px 18px;background:#edf4fd;border-radius:10px;font-weight:600;color:#294d7e}
.trade-customer-search{margin:6px 0 8px}
.trade-import-dialog{width:min(1180px,96vw);max-height:92vh;overflow:auto}
.trade-import-tools{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.trade-import-tools label{flex:1;min-width:250px}.trade-import-dialog [data-message]{white-space:pre-wrap}
.trade-import-dialog .table-wrap{margin-top:16px}.trade-import-dialog td{font-size:13px;overflow-wrap:anywhere}
@media(max-width:900px){#customersPage .customer-category-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.trade-import-tools{align-items:stretch;flex-direction:column}}


#customersPage td:last-child{white-space:nowrap}
