#crm-view{max-width:none}
.customers-heading{margin-bottom:1rem}
.customers-heading h1{font-size:2rem;letter-spacing:-.035em}
.customers-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:15px}
.customers-stats button{display:grid;grid-template-columns:46px minmax(0,1fr) 12px;align-items:center;gap:12px;min-height:86px;padding:15px;border:0;border-radius:6px;background:#fff;box-shadow:0 3px 14px rgba(22,42,68,.08),0 1px 3px rgba(22,42,68,.035);color:var(--ink);text-align:left;cursor:pointer}
.customers-stats button:hover,.customers-stats button:focus-visible{box-shadow:0 7px 22px rgba(22,42,68,.13);transform:translateY(-1px)}
.customers-stats i{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#e9f5ef;color:#15905d;font:700 23px 'Google Sans','Poppins'}
.customers-stats button:nth-child(2) i{background:#fce9eb;color:#d92034}.customers-stats button:nth-child(3) i{background:#e8f0fc;color:#1665c3}.customers-stats button:nth-child(4) i{background:#edf1f5;color:#50647c}
.customers-stats span{display:grid;gap:3px;font-size:.79rem;font-weight:600;color:#31425e}.customers-stats b{font-size:1.65rem;line-height:1.05;color:var(--ink);font-variant-numeric:tabular-nums}.customers-stats em{font:normal 22px 'Google Sans','Poppins';color:#5a6b83}
.customers-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(310px,.8fr);gap:14px;align-items:start}
.customers-list,.customers-preview{min-width:0;border:0;border-radius:6px;background:#fff;box-shadow:0 3px 14px rgba(22,42,68,.08),0 1px 3px rgba(22,42,68,.035);overflow:hidden}
.customers-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) 118px 124px auto;gap:9px;padding:13px}
.customers-toolbar input,.customers-toolbar select{width:100%;height:38px;margin:0;border:1px solid #dae1eb;border-radius:5px;background:#fff;color:var(--ink);font-size:.76rem}
.customers-toolbar input{padding:0 12px}.customers-toolbar select{padding:0 8px}.customers-toolbar .primary{white-space:nowrap;margin:0}
.customers-tabs{display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto;padding:0 13px;border-bottom:1px solid #e8edf3}
.customers-tabs button{flex:0 0 auto;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#536884;padding:11px 9px;font-size:.76rem;font-weight:600}
.customers-tabs button.active{border-bottom-color:var(--brand);background:transparent;color:#bd0f20}
.customers-list table{min-width:650px}.customers-list th{padding:11px 12px;background:#f4f7fa;color:#42536d;font-size:.68rem;text-transform:none;letter-spacing:0}.customers-list td{padding:10px 12px;font-size:.76rem}.customers-list td small{display:block;margin-top:3px;color:#66778f;font-size:.68rem}.customers-row{cursor:pointer}.customers-row:hover td,.customers-row:focus-visible td{background:#f7f9fc}.customers-row.selected td{background:#fff4f5}
.customers-source{display:inline-block;border-radius:5px;padding:4px 7px;background:#e9f0fc;color:#1857a8;font-size:.67rem;font-weight:600;white-space:nowrap}.customers-source.rd{background:#edf0f5;color:#43536b}
.customers-secondary-actions{display:flex;gap:8px;justify-content:flex-end;padding:9px 13px;border-top:1px solid #edf0f4}.customers-secondary-actions button{font-size:.7rem;padding:6px 9px}
.customers-preview{position:sticky;top:70px}.customers-preview>header{display:flex;align-items:center;gap:11px;padding:16px;border-bottom:1px solid #edf0f4}.customers-avatar{display:grid;place-items:center;flex:0 0 auto;width:45px;height:45px;border-radius:50%;background:#e4f6ee;color:#18845b;font-size:1.3rem;font-weight:700}.customers-preview>header div{min-width:0;flex:1}.customers-preview h2{margin:0;font-size:1.13rem}.customers-preview header small{display:block;color:#65758d;font-size:.69rem}.customers-preview section{padding:11px 16px;border-bottom:1px solid #edf0f4}.customers-preview section:last-child{border:0}.customers-preview h3{margin:0 0 8px;font-size:.81rem}.customers-preview p{margin:5px 0;color:#2d405d;font-size:.73rem;line-height:1.4}.customers-preview p small{display:block;color:#708098;font-size:.67rem}.customers-preview-empty{padding:2rem 1rem;color:#66778f;text-align:center;font-size:.8rem}
.customers-preview-actions{padding:0 16px 12px}.customers-preview-actions a{display:inline-block;padding:7px 11px;border-radius:5px;background:var(--brand);color:#fff;text-decoration:none;font-size:.72rem;font-weight:700}.customers-preview-actions a:hover{filter:brightness(.92)}
.customers-match-note{margin:0;padding:10px 16px;background:#fff8e7;color:#735115;font-size:.72rem}
@media(max-width:1150px){.customers-layout{grid-template-columns:minmax(0,1fr) 300px}.customers-toolbar{grid-template-columns:minmax(170px,1fr) 110px 110px}.customers-toolbar .primary{grid-column:1/-1;justify-self:end}}
@media(max-width:850px){.customers-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.customers-layout{grid-template-columns:1fr}.customers-preview{position:static}}
@media(max-width:580px){.customers-stats{gap:8px}.customers-stats button{grid-template-columns:1fr 12px;min-height:80px}.customers-stats i{display:none}.customers-toolbar{grid-template-columns:1fr 1fr}.customers-toolbar input{grid-column:1/-1}.customers-toolbar .primary{grid-column:1/-1;justify-self:stretch}.customers-secondary-actions{justify-content:stretch;flex-wrap:wrap}}
