/* Switchboard customer directory: source-scoped accounts and a persistent inspector. */
.customer-workspace { display:grid; grid-template-columns:minmax(0, 1fr) minmax(290px, 340px); gap:20px; align-items:start; }
.customer-directory { min-width:0; }
.customer-search { display:flex; align-items:end; gap:10px; margin-bottom:14px; }
.customer-search > div { flex:1; min-width:0; }
.customer-search label, .customer-filters label { display:block; color:var(--foreground-muted); font-size:11px; margin-bottom:6px; }
.customer-search .form-input { width:100%; min-height:42px; }
.customer-search > button { min-height:42px; padding-inline:24px; }
.customer-filters { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; margin-bottom:18px; }
.customer-filters .form-input { width:100%; }
.customer-summary { display:grid; grid-template-columns:repeat(3, 1fr); padding:16px 0; background:var(--surface); border:1px solid var(--border); border-radius:6px; margin-bottom:18px; }
.customer-summary > div { display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; padding-inline:8px; }
.customer-summary > div + div { border-left:1px solid var(--border); }
.customer-summary strong { font-size:23px; font-variant-numeric:tabular-nums; }
.customer-summary span { font-size:12px; color:var(--foreground-muted); }
.customer-table-wrap { border:1px solid var(--border); border-radius:6px; overflow:hidden; background:var(--surface); }
.customer-table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:12px; }
.customer-table th { text-align:left; font-weight:500; color:var(--foreground-muted); padding:13px 12px; background:var(--card); }
.customer-table th:first-child { width:43%; }
.customer-table th:last-child { width:19%; }
.customer-table td { border-top:1px solid var(--border); padding:10px 12px; overflow-wrap:anywhere; }
.customer-table td:first-child { padding:0; }
.customer-table tr.selected { background:var(--primary-subtle); box-shadow:inset 3px 0 var(--primary-strong); }
.customer-table tbody tr:hover { background:var(--card-hover); }
.customer-select { display:flex; align-items:center; gap:11px; width:100%; border:0; background:transparent; color:var(--foreground); text-align:left; padding:13px 12px; cursor:pointer; font:inherit; }
.customer-select > span:last-child { min-width:0; }
.customer-select strong { display:block; font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
.customer-select small { display:block; color:var(--foreground-muted); margin-top:3px; font-size:11px; overflow-wrap:anywhere; }
.customer-avatar { display:grid; place-items:center; flex:0 0 34px; width:34px; height:34px; border-radius:50%; background:var(--card-hover); border:1px solid var(--border-strong); color:var(--foreground); font-size:12px; font-weight:600; }
.customer-avatar.large { width:48px; height:48px; flex-basis:48px; font-size:17px; }
.customer-inspector { border:1px solid var(--border); border-radius:6px; background:var(--surface); padding:20px; min-width:0; position:sticky; top:var(--sticky-top); }
.customer-inspector-heading { display:flex; align-items:center; gap:10px; }
.customer-inspector-heading > div { flex:1; min-width:0; overflow-wrap:anywhere; }
.customer-inspector-heading h3 { font-size:17px; line-height:1.35; margin:0 0 5px; }
.customer-inspector-heading .crm-muted { font-size:12px; }
.customer-inspector-heading > button { align-self:start; padding:5px; }
.customer-badges { display:flex; gap:8px; flex-wrap:wrap; margin:16px 0; }
.customer-open { display:flex; justify-content:space-between; gap:10px; width:100%; font-size:12px; margin-bottom:22px; padding:12px; }
.customer-inspector h4 { font-size:13px; font-weight:600; margin:0 0 16px; }
.customer-facts { display:grid; grid-template-columns:88px minmax(0, 1fr); gap:13px; font-size:12px; margin:0 0 24px; }
.customer-facts dt { color:var(--foreground-muted); font-weight:400; }
.customer-facts dd { margin:0; overflow-wrap:anywhere; }
.customer-mono { font-family:ui-monospace, monospace; font-size:11px; }
.customer-sources { border-top:1px solid var(--border); padding-top:20px; }
.customer-sources > div { display:flex; justify-content:space-between; gap:10px; margin:13px 0; font-size:12px; }
.customer-sources > div > span:first-child { display:flex; align-items:center; gap:9px; }
.customer-sources > div > span:last-child { color:var(--foreground-muted); text-align:right; }
.customer-sources i { font-size:8px; }
.customer-sources .responding { color:var(--success-strong); }
.customer-sources .unavailable { color:var(--warning-strong); }
.customer-sources p { font-size:11px; color:var(--foreground-muted); line-height:1.6; margin:20px 0 0; }
.customer-pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin:16px 0; font-size:11px; color:var(--foreground-muted); }
.customer-pagination > div { display:flex; align-items:center; gap:10px; }
.customer-coverage-note { display:flex; gap:10px; align-items:start; font-size:11px; line-height:1.6; padding:12px; background:var(--card); border:1px solid var(--border); border-radius:4px; color:var(--foreground-muted); }
.customer-export { display:flex; align-items:center; gap:12px; margin-top:16px; }
.customer-export span { font-size:11px; color:var(--foreground-muted); max-width:400px; }
.customer-export a { flex-shrink:0; }
.customer-empty { padding:35px 20px; text-align:center; }
.customer-empty > i { font-size:26px; color:var(--foreground-muted); }
.customer-empty h3 { font-size:15px; margin:14px 0 9px; }
.customer-empty p { font-size:12px; line-height:1.7; color:var(--foreground-muted); }
.customer-select:focus-visible, .customer-inspector:focus-visible { outline:2px solid var(--ring); outline-offset:-2px; }
@media (min-width:1700px) { .customer-workspace { grid-template-columns:minmax(0, 1fr) 380px; } }
@media (max-width:1199px) { .customer-workspace { grid-template-columns:minmax(0, 1fr); } .customer-inspector { position:static; } .customer-facts { grid-template-columns:120px minmax(0, 1fr); } }
@media (max-width:600px) {
    .customer-filters { grid-template-columns:1fr 1fr; } .customer-filters > div:last-child { grid-column:1 / -1; }
    .customer-table thead { display:none; } .customer-table, .customer-table tbody { display:block; }
    .customer-table tr { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); border-bottom:1px solid var(--border); padding-bottom:9px; }
    .customer-table td { border:0; padding:4px 12px; font-size:11px; } .customer-table td:first-child { grid-column:1 / -1; }
    .customer-table td[data-label]::before { content:attr(data-label); display:block; color:var(--foreground-muted); font-size:10px; margin-bottom:5px; }
    .customer-summary span { font-size:10px; } .customer-inspector { padding:16px; }
    .customer-search > button { padding-inline:15px; } .customer-export { align-items:start; flex-direction:column; }
}
