.crm-root{margin:0 0 18px;padding:20px;border:1px solid #d8e3f0;border-radius:18px;background:#fff;box-shadow:0 12px 32px rgba(29,57,100,.05);color:#1a2a42}
.crm-priority-root{margin:0 0 14px;padding:17px 20px;border:1px solid #d8e3f0;border-radius:16px;background:#fff;color:#1a2a42}.crm-priority-head,.crm-priority-opportunity-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.crm-priority-head h3,.crm-priority-opportunity-head h3{margin:0;font-size:18px}.crm-priority-head p,.crm-priority-opportunity-head p{margin:4px 0 0;color:#66758b;font-size:12px}.crm-priority-head>span{white-space:nowrap;color:#2459b3;font-size:12px;font-weight:700}.crm-priority-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:275px;overflow:auto;margin:13px 0;padding-right:3px}.crm-priority-card{display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0;padding:10px;border:1px solid #e0e8f2;border-radius:10px;background:#f8fbff}.crm-priority-card>div:first-child{min-width:0}.crm-priority-card b,.crm-priority-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-priority-card small{margin-top:4px;color:#708097}.crm-priority-opportunity-head{border-top:1px solid #e2e9f3;padding-top:12px}
.crm-root *,.crm-dialog *{box-sizing:border-box}
.crm-head,.crm-subhead{display:flex;justify-content:space-between;align-items:center;gap:18px}
.crm-head h3,.crm-subhead h4{margin:0;font-size:21px}
.crm-head p,.crm-subhead p,.crm-split p,.crm-meta{margin:5px 0 0;color:#66758b;font-size:13px}
.crm-quick{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.crm-tabs{display:flex;gap:5px;border-bottom:1px solid #dce5f0;margin:18px 0 0;overflow:auto}
.crm-tab{padding:10px 13px;border:0;border-bottom:3px solid transparent;background:transparent;color:#65748a;cursor:pointer;white-space:nowrap;font-weight:650}
.crm-tab.active{color:#1d4ed8;border-bottom-color:#2b67e8}
.crm-body{padding:18px 0 2px}
.crm-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.crm-controls label,.crm-dialog-form label,.crm-form-grid label,.crm-customer-layout aside label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:650;color:#617189}
.crm-controls input,.crm-controls select,.crm-dialog-form input,.crm-dialog-form select,.crm-dialog-form textarea,.crm-form-grid input,.crm-form-grid select,.crm-form-grid textarea,.crm-customer-layout input{width:100%;min-height:40px;border:1px solid #d3deec;border-radius:9px;background:#fff;padding:8px 10px;color:#1c2d44;font:inherit;font-size:14px}
.crm-controls label{min-width:165px}
.crm-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:17px}
.crm-metrics>div{display:flex;flex-direction:column;gap:3px;padding:14px;border:1px solid #e0e8f2;border-radius:12px;background:#f8fbff}
.crm-metrics strong{font-size:23px;color:#173d82}.crm-metrics span{font-size:12px;color:#63748c}
.crm-split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:16px}.crm-split>div{padding:16px;border:1px solid #e0e8f2;border-radius:12px}.crm-split h4,.crm-body h4{margin:0 0 12px}
.crm-list{list-style:none;margin:0;padding:0}.crm-task{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #eef2f7}.crm-task:first-child{border-top:0}.crm-task span:first-child{min-width:0}.crm-task b,.crm-task small{display:block}.crm-task small{margin-top:4px;color:#708097}.crm-task-actions{display:flex;gap:5px;white-space:nowrap}
.crm-customer-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px}.crm-customer-layout aside{border-right:1px solid #e6edf5;padding-right:15px}.crm-customer-matches{max-height:450px;overflow:auto;margin-top:10px}.crm-customer-matches button{display:block;width:100%;text-align:left;padding:9px;border:0;border-radius:8px;background:transparent;cursor:pointer;color:#1e324d}.crm-customer-matches button:hover,.crm-customer-matches button.active{background:#edf4ff}.crm-customer-matches small{display:block;color:#728199;font-size:11px;margin-top:3px}
.crm-customer-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0}.crm-customer-filters select{width:100%;min-height:34px;border:1px solid #d3deec;border-radius:7px;background:#fff;color:#1e324d}
.crm-related{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:12px 0;margin:12px 0;border-top:1px solid #edf1f6;border-bottom:1px solid #edf1f6}.crm-related span{color:#728199}
.crm-contact-details{padding:12px 14px;margin:12px 0;border:1px solid #dce7f4;border-radius:10px;background:#f8fbff}.crm-contact-details>b{display:block;margin-bottom:9px}.crm-contact-details>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px 16px}.crm-contact-details span{min-width:0}.crm-contact-details small{display:block;color:#6b7b92;font-size:11px}.crm-contact-details strong{display:block;overflow-wrap:anywhere;font-size:13px;color:#20354f}.crm-contact-details p{margin:0;color:#708097;font-size:12px}
.crm-timeline{list-style:none;margin:0 0 18px;padding:0}.crm-timeline li{display:flex;align-items:flex-start;gap:10px;border-left:2px solid #dce7f4;padding:7px 0 12px 14px;margin-left:6px}.crm-timeline li>div{flex:1;min-width:0}.crm-timeline b,.crm-timeline small{display:block}.crm-timeline small{margin-top:4px;color:#6b7b92}.crm-timeline p{margin:5px 0;color:#455873}.crm-type{border-radius:20px;padding:3px 8px;background:#eaf1ff;color:#2459b3;font-size:11px;white-space:nowrap}.crm-type.inbound{background:#e8f8ee;color:#08753e}.crm-type.background,.crm-type.note{background:#f1f3f6;color:#617085}
.crm-form-grid,.crm-dialog-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.crm-form-grid textarea,.crm-dialog-form textarea{min-height:76px;resize:vertical}.crm-form-foot,.crm-dialog-actions{grid-column:1/-1;display:flex;align-items:center;gap:10px}.crm-form-foot span{font-size:12px;color:#6b7b92}.crm-dialog-actions{justify-content:flex-end;margin-top:4px}
.crm-report-table{width:100%;border-collapse:collapse}.crm-report-table th,.crm-report-table td{padding:10px 13px;border-bottom:1px solid #e8edf4;text-align:left}.crm-report-table button{padding:3px 7px;border:0;border-radius:5px;background:#edf4ff;color:#2459b3;cursor:pointer}.crm-drill{padding:14px;margin-top:15px;background:#f8fbff;border:1px solid #dce7f4;border-radius:10px}.crm-drill p{margin:7px 0}
.crm-stage-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px}.crm-stage-summary span{padding:5px 9px;border-radius:8px;background:#f0f5fb;color:#36516f;font-size:12px}
.crm-dialog{width:min(650px,calc(100vw - 24px));max-height:88vh;border:0;border-radius:18px;padding:24px;box-shadow:0 25px 70px rgba(20,39,69,.28);overflow:auto}.crm-dialog::backdrop{background:rgba(15,30,55,.48)}.crm-dialog h3{grid-column:1/-1;margin:0 0 7px;font-size:22px}.crm-dialog-form .full{grid-column:1/-1}.crm-empty{color:#75849a;font-size:13px}
.crm-dialog-form [hidden]{display:none!important}.crm-new-customer-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:13px;border:1px solid #dce7f4;border-radius:10px;background:#f8fbff}.crm-new-customer-note{margin:0;color:#63748c;font-size:12px}
.crm-import-dialog{width:min(850px,calc(100vw - 24px))}.crm-import-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.crm-import-body{display:grid;gap:12px;margin-top:16px}.crm-import-body h4{margin:12px 0 0}.crm-import-body label{display:grid;gap:5px;padding:9px;border:1px solid #e1e9f3;border-radius:9px;font-size:13px}.crm-import-body select,.crm-import-dialog input[type=file]{width:100%;min-height:38px;border:1px solid #d3deec;border-radius:8px;background:#fff;padding:7px}.crm-import-metrics{display:flex;flex-wrap:wrap;gap:7px}.crm-import-metrics span{padding:7px 10px;border-radius:8px;background:#edf4ff;color:#2459b3;font-weight:650;font-size:12px}.crm-import-candidates{display:grid;gap:7px;max-height:300px;overflow:auto}.crm-import-dialog [role=status]{font-weight:650;color:#244c8e}
@media(max-width:900px){.crm-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-split,.crm-customer-layout{grid-template-columns:1fr}.crm-customer-layout aside{border-right:0;border-bottom:1px solid #e6edf5;padding-right:0;padding-bottom:12px}}
@media(max-width:600px){.crm-root,.crm-priority-root{padding:14px}.crm-head,.crm-subhead,.crm-priority-card{align-items:flex-start;flex-direction:column}.crm-priority-list{grid-template-columns:1fr}.crm-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-form-grid,.crm-dialog-form,.crm-new-customer-fields{grid-template-columns:1fr}.crm-form-foot,.crm-dialog-actions,.crm-dialog h3,.crm-dialog-form .full{grid-column:1}.crm-task{align-items:flex-start;flex-direction:column}}
.crm-import-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
