/* Homepage-only visual grouping. Keep customer-card children and data handlers unchanged. */
.dashboard{--crm-nav-offset:140px;margin-top:16px}
.dashboard .crm-home-nav{position:sticky;top:0;z-index:30;display:flex;gap:6px;flex-wrap:wrap;background:#fff;padding:10px;border:1px solid #d8e2ee;border-radius:12px;box-shadow:0 3px 12px #24334a12;margin-bottom:16px}
.dashboard .crm-home-nav button{flex:1 1 auto;min-height:44px;padding:8px 12px;background:transparent;color:#344968;border:0;border-radius:8px;cursor:pointer;white-space:nowrap}
.dashboard .crm-home-nav button[aria-pressed=true]{background:#315ac1;color:#fff}
.dashboard .crm-home-nav button:disabled{color:#768398;cursor:wait}
.dashboard .welcome{padding:18px 22px;gap:14px;border-radius:14px}
.dashboard .welcome h2{font-size:24px}
.dashboard .crm-primary-actions{gap:9px}
.dashboard .crm-primary-actions button,.dashboard .crm-primary-actions a{padding:9px 14px;min-height:44px}
.dashboard .crm-section-heading{margin:20px 0 10px!important;font-size:21px;color:#24334a}
.dashboard .stats{gap:10px;margin:10px 0 18px;grid-template-columns:repeat(4,minmax(0,1fr));padding:16px;border-radius:14px}
.dashboard #crm-overview{background:#eaf2ff}
.dashboard .stats .stat-card{padding:13px 14px;border-radius:10px;box-shadow:none;min-width:0;border:1px solid #dce5ef;background:#fff}
.dashboard .stats .stat-card>span{font-size:15px;color:#40536d}
.dashboard .stats .stat-card>strong{font-size:26px;line-height:1.2;margin:6px 0 4px;color:#24334a}
.dashboard .stats .stat-card small{font-size:13px;line-height:1.4;color:#536780;overflow-wrap:anywhere}
.dashboard .stats .stat-card[role=button]{cursor:pointer}
.dashboard #priority-dashboard{background:#fff5d9;border-color:#f0dfaa}
.dashboard #priority-dashboard .priority-row{background:#fff}
.dashboard #buyer-refund-reminders{background:#f1edff;border-color:#ded6f6}
.dashboard #buyer-refund-reminders .refund-summary-item{background:#fff;border-color:#e4def3;padding:10px}
.dashboard #buyer-refund-reminders .refund-summary-item strong{font-size:23px;margin-top:3px}
.dashboard #follow-up-stats{background:#e7f5f1;border:1px solid #cfe5dd}
.dashboard #overdue-follow-up-card{border-left:4px solid #cb4949}
.dashboard #today-follow-up-card{border-left:4px solid #c77c21}
.dashboard #follow-up-stats .crm-task-selected{outline:2px solid #315ac1;outline-offset:-2px;background:#f4f8ff}
.dashboard #follow-up-task-list{border:1px solid #b9d7cc;box-shadow:none!important;background:#f6fcf9!important;border-radius:12px!important}
.dashboard #crm-client-panel{background:#eaf0f6;padding:20px;border-radius:14px;box-shadow:none}
.dashboard #crm-client-panel .lead-card{background:#fff;margin:10px 0;gap:16px;border-color:#d8e2ed}
.dashboard #crm-client-panel .lead-info p,.dashboard #crm-client-panel .lead-meta span{color:#536780}
.dashboard .crm-list-context{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 0 14px;color:#315ac1}
.dashboard .crm-list-context button{min-height:44px;padding:8px 12px;border:1px solid #cbd8e9;border-radius:8px;background:white;color:#315ac1;cursor:pointer}
.dashboard :is(#crm-overview,#priority-dashboard,#buyer-refund-reminders,#crm-follow-heading,#follow-up-task-list,#crm-client-panel){scroll-margin-top:var(--crm-nav-offset)}
.dashboard .crm-section-arrived{outline:2px solid #315ac1;outline-offset:3px}
.dashboard :is(.crm-home-nav button,.stat-card[role=button],.crm-list-context button):focus-visible{outline:3px solid #315ac1;outline-offset:3px}
@media(min-width:1100px){.dashboard #crm-overview{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:800px){.dashboard .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard #crm-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dashboard{width:94%;margin-top:12px}.dashboard .crm-home-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:6px}.dashboard .crm-home-nav button{padding:8px 3px;font-size:14px;white-space:normal;min-height:44px}.dashboard .stats{padding:12px;gap:8px}.dashboard .stats .stat-card{padding:11px}.dashboard .stats .stat-card>strong{font-size:24px}.dashboard #crm-client-panel{padding:14px}.dashboard #crm-client-panel .lead-card{padding:16px 12px;column-gap:10px;grid-template-columns:44px minmax(0,1fr)}.dashboard #crm-client-panel .lead-info,.dashboard #crm-client-panel .lead-meta{min-width:0;overflow-wrap:anywhere}.dashboard .welcome{padding:16px}.dashboard .panel-heading{flex-wrap:wrap;gap:10px}.dashboard .crm-primary-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard .crm-primary-actions button,.dashboard .crm-primary-actions a{white-space:normal;padding:8px;font-size:15px}}
