#view-customers.customer-dashboard-enabled > :not(#customerDashboard){display:none!important}
body[data-huidi-view="customers"] .topbar{display:none}
.customer-dashboard{color:#1b2b43;font-size:13px}
.customer-dashboard *{box-sizing:border-box}
.cd-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}
.cd-top h3{margin:0;font-size:24px}.cd-top p{margin:4px 0 0;color:#738097}
.cd-top-actions{display:flex;gap:8px;flex-wrap:wrap}
.cd-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px}
.cd-metric{display:flex;flex-direction:column;text-align:left;gap:8px;min-height:88px;padding:14px 16px;border:1px solid #e0e8f2;border-radius:13px;background:#fff;cursor:pointer;color:#1b2b43;box-shadow:0 5px 18px rgba(30,56,100,.04)}
.cd-metric:hover,.cd-metric.active{border-color:#3e78ee;background:#f0f6ff}.cd-metric small{font-size:12px;color:#66778f}.cd-metric strong{font-size:24px;color:#143b83}
.cd-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,370px);align-items:start;gap:14px}
.cd-list,.cd-detail{min-width:0;border:1px solid #e0e8f2;border-radius:14px;background:#fff;box-shadow:0 8px 23px rgba(30,56,100,.04)}
.cd-filters{display:flex;gap:8px;align-items:end;flex-wrap:wrap;padding:13px;border-bottom:1px solid #e9eef5}.cd-filters label{display:flex;flex:1 1 125px;flex-direction:column;gap:5px;color:#718098;font-size:11px;font-weight:650}.cd-filters label:first-child{flex:2 1 220px}.cd-filters input,.cd-filters select{width:100%;height:37px;border:1px solid #dce5f0;border-radius:8px;background:#fff;color:#24384f;padding:6px 10px;font:inherit;font-size:12px}.cd-filters .btn{height:37px}
.cd-table-scroll{overflow:auto}.cd-table{width:100%;min-width:900px;border-collapse:collapse;text-align:left}.cd-table th{padding:12px 10px;border-bottom:1px solid #e8eef6;white-space:nowrap;color:#64758d;font-size:11px;font-weight:700;background:#f8faff}.cd-table td{padding:11px 10px;border-bottom:1px solid #edf1f6;vertical-align:middle;max-width:170px;overflow-wrap:anywhere}.cd-table tbody tr{cursor:pointer}.cd-table tbody tr:hover,.cd-table tbody tr.selected{background:#f0f6ff}.cd-table tbody tr:focus-visible{outline:2px solid #2674ed;outline-offset:-2px}.cd-customer{display:flex;align-items:center;gap:9px;min-width:165px}.cd-customer i,.cd-detail-identity i{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#e8f0ff;color:#1760dc;font-style:normal;font-weight:800}.cd-customer b,.cd-customer small,.cd-muted{display:block}.cd-customer b{font-size:12px}.cd-customer small,.cd-muted{margin-top:3px;color:#8794a7;font-size:11px}.cd-contact{font-size:11px}.cd-status{display:inline-block;border-radius:7px;padding:4px 7px;background:#e9eef6;color:#526982;font-size:11px;white-space:nowrap}.cd-status-active{background:#e9f1ff;color:#1a61d5}.cd-status-won{background:#e4f7ec;color:#178358}.cd-status-quotation{background:#fff3dd;color:#ba7205}.cd-overdue{color:#d33439;font-weight:650}.cd-empty{padding:22px 10px;color:#8694a7;text-align:center}.cd-pager{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 13px;color:#718099}.cd-pager>div{display:flex;gap:7px}
.cd-detail{position:sticky;top:12px;max-height:calc(100vh - 24px);display:flex;flex-direction:column;overflow:hidden}.cd-detail-empty{min-height:240px;display:grid;place-items:center;padding:20px;text-align:center;color:#8492a5}.cd-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding:17px 15px 12px}.cd-detail-identity{display:flex;align-items:center;gap:9px;min-width:0}.cd-detail-identity i{width:42px;height:42px}.cd-detail-identity h3{margin:0;font-size:17px;overflow-wrap:anywhere}.cd-detail-identity small{display:block;margin-top:4px;color:#7c8ba0}.cd-close{flex:none;width:28px;height:28px;border:0;border-radius:50%;background:#f0f3f7;color:#5a6b82;font-size:19px;cursor:pointer}
.cd-detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#e9eff6;border-block:1px solid #e9eff6}.cd-detail-meta>div{min-width:0;background:#fafcff;padding:10px 13px}.cd-detail-meta small,.cd-detail-meta b{display:block}.cd-detail-meta small{color:#8290a3;font-size:10px}.cd-detail-meta b{margin-top:3px;font-size:12px;overflow-wrap:anywhere}.cd-detail-tabs{display:flex;overflow:auto;flex:none;border-bottom:1px solid #e6ecf4}.cd-detail-tabs button{flex:1;min-width:max-content;padding:12px 8px;border:0;border-bottom:2px solid transparent;background:#fff;color:#66768e;font-size:11px;cursor:pointer}.cd-detail-tabs button.active{border-bottom-color:#1968e9;color:#1763dc;font-weight:750}.cd-detail-content{min-height:170px;overflow:auto;padding:14px 15px;flex:1}.cd-info{margin:0}.cd-info>div{display:grid;grid-template-columns:82px 1fr;gap:8px;padding:8px 0;border-bottom:1px solid #f0f3f7}.cd-info dt{color:#8795a7}.cd-info dd{margin:0;overflow-wrap:anywhere}.cd-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:13px}.cd-tags span{padding:4px 7px;border-radius:6px;background:#eaf3ff;color:#2670d0}.cd-detail-actions{display:flex;flex-wrap:wrap;gap:6px;padding:12px 15px;border-top:1px solid #e7edf5;background:#fff}.cd-detail-actions .btn{font-size:11px}
.cd-detail-content h4{font-size:13px;margin:8px 0}.cd-deal-filter{display:flex;gap:5px;overflow:auto;padding-bottom:8px}.cd-deal-filter button{flex:none;border:1px solid #dce6f1;border-radius:16px;background:#fff;padding:5px 8px;color:#536a84;cursor:pointer;font-size:11px}.cd-deal-filter button.active{background:#eaf2ff;border-color:#a4c2fa;color:#1966d6}.cd-timeline{list-style:none;padding:0;margin:0}.cd-timeline li{position:relative;display:flex;gap:9px;border-left:2px solid #dfe9f7;padding:0 0 16px 12px;margin-left:5px}.cd-timeline li>div{min-width:0}.cd-timeline-dot{position:absolute;top:2px;left:-5px;width:8px;height:8px;border-radius:50%;background:#2878f0}.cd-timeline small,.cd-timeline b{display:block}.cd-timeline small{color:#7a8ba1;font-size:10px;margin-bottom:3px;overflow-wrap:anywhere}.cd-timeline b{font-size:12px;line-height:1.5}.cd-timeline p{margin:5px 0;color:#5b6d83}.cd-text-button{padding:0;border:0;background:none;color:#1768e9;font-size:11px;cursor:pointer}.cd-task-list{display:grid;gap:5px}.cd-task-list button{border:1px solid #e0e8f2;border-radius:8px;padding:8px;text-align:left;background:#fafcff;cursor:pointer}.cd-task-list b,.cd-task-list small{display:block}.cd-task-list small{color:#7f8ea1;margin-top:4px}.cd-record-list{display:grid;gap:8px}.cd-record-list article{display:flex;justify-content:space-between;align-items:center;gap:7px;border:1px solid #e1eaf5;border-radius:8px;padding:9px}.cd-record-list article>div{min-width:0}.cd-record-list b,.cd-record-list small{display:block;overflow-wrap:anywhere}.cd-record-list small{margin-top:3px;color:#75869c}.cd-load-error{padding:20px;border:1px solid #f4d2d2;border-radius:10px;background:#fff5f5;color:#aa2525}
.cd-detail-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.cd-detail-actions .btn{min-width:0;min-height:34px;padding:6px 3px;white-space:nowrap;text-align:center}.cd-detail-actions .btn:not(.primary){background:#fff;color:#23436b;border:1px solid #dde7f2}
.cd-page-controls,.cd-page-numbers{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.cd-page-controls label{display:flex;align-items:center;gap:5px;font-size:11px}.cd-page-controls select{max-width:105px;height:32px;border:1px solid #dce5f0;border-radius:7px;background:#fff;color:#24384f}.cd-page-active{background:#eaf2ff!important;border-color:#8fb5f5!important;color:#1665dc!important;font-weight:700}.cd-page-gap{padding:0 2px;color:#7e8da2}
.cd-table{min-width:1120px}.cd-table td:nth-child(2){white-space:nowrap}.cd-table td:nth-child(3){max-width:85px}.cd-table td:nth-child(5){max-width:150px}.cd-table td:nth-child(8){max-width:150px;min-width:115px}.cd-inline-select{max-width:120px;border:0;min-height:30px;font:600 11px system-ui,sans-serif;cursor:pointer;padding:5px 20px 5px 7px}.cd-status-unconverted{background:#fff0f1;color:#c73c4d}.cd-priority-high{background:#fff0f1;color:#cc4652}.cd-priority-medium{background:#fff5df;color:#b57c14}.cd-priority-low{background:#eaf3ff;color:#2c70d0}.cd-priority-none{background:#f0f3f7;color:#75849a}.cd-priority{max-width:80px;border-radius:7px}.cd-contact-date{white-space:nowrap}.cd-sort{border:0;padding:0;background:transparent;color:inherit;font:inherit;cursor:pointer;white-space:nowrap}.cd-operation{position:sticky;right:0;min-width:50px;background:#fff;text-align:center!important;box-shadow:-4px 0 6px rgba(30,56,100,.025)}th.cd-operation{z-index:3;background:#f8faff}.cd-table tr.selected .cd-operation,.cd-table tr:hover .cd-operation{background:#f0f6ff}.cd-row-menu-button{width:30px;height:30px;padding:0;border:1px solid #e0e8f2;border-radius:8px;background:#f8faff;color:#536a88;font-size:20px;font-weight:700}.cd-row-menu{position:fixed;z-index:2001;inset:auto;margin:0;padding:7px;width:160px;border:1px solid #e0e8f2;border-radius:11px;background:#fff;box-shadow:0 9px 35px rgba(20,40,70,.18);color:#263c59}.cd-row-menu[hidden]{display:none!important}.cd-row-menu button{display:block;width:100%;border:0;background:#fff;text-align:left;border-radius:7px;padding:9px;font-size:12px;color:#263c59}.cd-row-menu button:hover,.cd-row-menu button:focus-visible{background:#edf4ff;color:#1763dc}
.cd-cleanup-dialog{width:min(620px,calc(100vw - 24px));max-height:min(85vh,780px);border:0;border-radius:16px;padding:20px;color:#1b2b43;box-shadow:0 20px 70px rgba(20,40,70,.25)}.cd-cleanup-dialog::backdrop{background:rgba(15,31,52,.5)}.cd-cleanup-head{display:flex;justify-content:space-between;align-items:center}.cd-cleanup-head h3{margin:0;font-size:20px}.cd-cleanup-dialog>p{line-height:1.6;color:#64758d}.cd-cleanup-counts{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:12px;border-radius:9px;background:#edf4ff}.cd-cleanup-list{max-height:300px;overflow:auto;margin:12px 0;border:1px solid #e3eaf3;border-radius:9px}.cd-cleanup-list>div{padding:9px 12px;border-bottom:1px solid #edf1f6}.cd-cleanup-list b,.cd-cleanup-list small{display:block}.cd-cleanup-list small{color:#708199;margin-top:4px}.cd-cleanup-list>p{padding:10px}.cd-cleanup-status{min-height:26px}.cd-cleanup-actions{display:flex;justify-content:flex-end;gap:8px}
@media(max-width:1400px){.cd-main{grid-template-columns:minmax(0,1fr) 330px}}
@media(max-width:1100px){.cd-main{display:block}.cd-detail:not(.cd-detail-empty){position:fixed;z-index:1001;inset:0 0 0 auto;width:min(100%,500px);max-height:none;border-radius:0;box-shadow:-10px 0 35px rgba(18,41,73,.25)}.cd-has-detail:before{content:"";position:fixed;z-index:1000;inset:0;background:rgba(16,31,52,.42)}.cd-detail-empty{display:none}}
@media(max-width:650px){.cd-top{align-items:flex-start;flex-direction:column}.cd-metrics{display:flex;overflow:auto}.cd-metric{flex:0 0 135px}.cd-filters label{flex-basis:42%}.cd-pager{flex-direction:column;align-items:stretch}.cd-detail-actions{grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:max(12px,env(safe-area-inset-bottom))}.cd-page-numbers{display:none}}
