/* 客户 CRM（独立测试模块） */
.crm-nav-beta,.crm-beta{display:inline-flex;align-items:center;border:1px solid #E6BE72;border-radius:99px;background:#FFF5DD;color:#9A641D;font-weight:700;line-height:1}
.crm-nav-beta{margin-left:auto;padding:3px 6px;font-size:8px}.crm-beta{margin-left:7px;padding:4px 7px;font-size:9px;vertical-align:middle}
.crm-nav-group{display:grid;gap:3px}.crm-nav-parent{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:var(--ink2);font:inherit;font-weight:600;text-align:left;transition:.18s}.crm-nav-parent:hover,.crm-nav-group.is-active .crm-nav-parent{background:#F7F0E7;color:var(--ink)}.crm-nav-parent svg{width:19px;height:19px;flex:0 0 auto}.crm-nav-chevron{margin-left:2px;font-size:16px;font-style:normal;line-height:1;transition:.2s}.crm-nav-group.collapsed .crm-nav-chevron{transform:rotate(-90deg)}.crm-nav-group.collapsed .crm-nav-sub{display:none}.crm-nav-sub{display:grid;gap:2px;padding:2px 0 4px 25px}.nav .crm-nav-sub a{gap:8px;padding:8px 10px;color:var(--ink3);font-size:12px}.nav .crm-nav-sub a.active{background:#F1E7DA;color:#B54824}.crm-sub-icon{width:19px;height:19px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid #DDD1C2;border-radius:6px;background:#fff;color:#A1693B;font-size:11px;font-weight:800}
.crm-page-head{align-items:center;margin-bottom:14px}
.crm-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:13px}
.crm-kpis>div{position:relative;min-height:100px;padding:15px 17px;border:1px solid #E6DED2;border-radius:13px;overflow:hidden;background:linear-gradient(145deg,#fff,#FCF9F4);box-shadow:var(--shadow-sm)}
.crm-kpis>div:after{content:"";position:absolute;right:-16px;top:-25px;width:80px;height:80px;border-radius:50%;background:#D4975A;opacity:.08}
.crm-kpis span,.crm-kpis small{display:block}.crm-kpis span{color:var(--ink2);font-size:10.5px;font-weight:600}.crm-kpis b{display:block;margin:6px 0 4px;font-size:25px;line-height:1;color:var(--ink)}.crm-kpis small{font-size:9.5px;color:var(--ink3)}.crm-kpis .crm-kpi-money b{color:#2E8751}
.crm-list-shell{padding:14px}.crm-toolbar{display:grid;grid-template-columns:minmax(250px,1fr) 130px 150px auto auto;gap:7px;margin-bottom:11px}.crm-toolbar .ipt,.crm-toolbar .btn{height:36px}.crm-search{min-width:0}
.crm-table-wrap{overflow-x:auto}.crm-table{width:100%;min-width:960px;border-collapse:collapse;font-size:12px}.crm-table th{padding:0;border-bottom:1px solid var(--line);color:var(--ink3);font-size:10px;font-weight:600;text-align:left;white-space:nowrap}.crm-table th:last-child{padding:8px 9px}.crm-sort-head{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:4px;padding:8px 9px;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;text-align:left;white-space:nowrap;cursor:pointer}.crm-sort-head:hover,.crm-sort-head.active{background:#FAF4EB;color:#9A5A28}.crm-sort-head i{color:#B7A999;font-size:10px;font-style:normal}.crm-sort-head.active i{color:#C15A2F}.crm-table td{padding:11px 9px;border-bottom:1px solid var(--line2);vertical-align:middle}.crm-table tbody tr{transition:.15s}.crm-table tbody tr:hover{background:#FCF8F2}.crm-table tr:last-child td{border-bottom:0}.crm-table td>b,.crm-table td>small,.crm-table td>span{display:block}.crm-table td>b{font-size:12.5px}.crm-table td>small{margin-top:2px;color:var(--ink3);font-size:9.5px}.crm-table td>span{max-width:170px;overflow:hidden;color:var(--ink2);text-overflow:ellipsis;white-space:nowrap}.crm-table .crm-rating{display:inline-flex;margin-top:4px}.crm-table .crm-value{color:#2E8751}.crm-unassigned{color:#B45C2E!important;font-weight:700}
.crm-rating{display:inline-flex;align-items:center;padding:3px 7px;border-radius:99px;font-size:9px;font-weight:800;line-height:1}.crm-rating-A{background:#FBE6DF;color:#C6411B}.crm-rating-B{background:#FFF0D8;color:#A7691D}.crm-rating-C{background:#E8F0F7;color:#3E6E98}.crm-rating-D{background:#EEEAE4;color:#776D60}
.crm-progress{display:inline-flex;align-items:center;padding:4px 8px;border-radius:99px;font-size:9.5px;font-weight:700}.crm-progress-active{background:#FFF0D8;color:#956020}.crm-progress-won{background:#E5F4EA;color:#27764A}.crm-progress-lost{background:#EEEAE4;color:#776D60}.crm-progress-select{max-width:108px;border:1px solid transparent;outline:0;font-family:inherit;line-height:1.2;cursor:pointer}.crm-progress-select:hover,.crm-progress-select:focus{border-color:currentColor;box-shadow:0 0 0 2px rgba(186,119,53,.12)}.crm-progress-select:disabled{cursor:wait;opacity:.65}
.crm-empty,.crm-sub-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed var(--line);border-radius:10px;color:var(--ink3);text-align:center}.crm-empty{min-height:220px}.crm-empty b{color:var(--ink2);font-size:14px}.crm-empty span{margin-top:5px;font-size:11px}.crm-sub-empty{min-height:100px;padding:18px;font-size:11px;background:#FCFAF6}
.crm-mobile-list{display:none}
.crm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.crm-form-wide{grid-column:1/-1}.crm-form-tip{margin-top:2px;padding:9px 11px;border-radius:8px;background:#FBF6EC;color:#947044;font-size:10.5px}.crm-form-context{margin-bottom:14px;padding:9px 11px;border-radius:8px;background:var(--panel2);color:var(--ink2);font-size:11px}.f-row>label small{color:var(--ink3);font-weight:400}.crm-value-preview{padding:7px 10px;border:1px solid #D7E8DD;border-radius:9px;background:#F4FBF6}.crm-value-preview label{margin-bottom:0}.crm-value-preview strong{display:block;font-size:18px;color:#2E8751}.crm-value-preview small{display:block;font-size:9px;color:var(--ink3)}.crm-follow-text{min-height:125px}
.crm-detail-title>div span,.crm-detail-title>div b{display:block}.crm-detail-title>div span{color:var(--ink3);font-size:9px;letter-spacing:.1em}.crm-detail-title>div b{margin-top:1px;font-size:17px}.crm-detail-body{padding:17px 19px 22px;background:#F8F5F0}
.crm-profile-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:13px;margin-bottom:13px;padding:15px 16px;border:1px solid #E4DBCE;border-radius:13px;background:#fff;box-shadow:var(--shadow-sm)}.crm-profile-main{display:flex;align-items:center;gap:11px}.crm-profile-avatar{width:43px;height:43px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:13px;background:linear-gradient(135deg,#E05A2B,#B93310);color:#fff;font-size:17px;font-weight:800}.crm-profile-main h2{font-size:18px}.crm-profile-main h2 .crm-rating{vertical-align:middle}.crm-profile-main p{margin-top:2px;color:var(--ink3);font-size:10.5px}.crm-profile-main p b{color:var(--ink2)}.crm-profile-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-top:1px solid var(--line2);padding-top:11px}.crm-profile-grid span{min-width:0;padding:0 9px;border-right:1px solid var(--line2);color:var(--ink3);font-size:9px}.crm-profile-grid span:first-child{padding-left:0}.crm-profile-grid span:last-child{border-right:0}.crm-profile-grid b{display:block;margin-top:3px;overflow:hidden;color:var(--ink2);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.crm-detail-columns{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr);gap:12px}.crm-detail-columns>section{min-width:0;padding:14px;border:1px solid #E4DBCE;border-radius:13px;background:#fff;box-shadow:var(--shadow-sm)}.crm-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:11px}.crm-section-head span{display:block;color:#AC7A3B;font-size:8px;font-weight:800;letter-spacing:.12em}.crm-section-head h3{font-size:15px}.crm-opportunity-list,.crm-followup-list{display:grid;gap:9px}
.crm-opportunity{position:relative;padding:12px;border:1px solid #E9E0D4;border-radius:10px;background:linear-gradient(145deg,#FFFDF9,#fff)}.crm-opportunity:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:#D89B4A}.crm-opportunity-head{display:flex;align-items:center;justify-content:space-between;gap:9px}.crm-opportunity-head>div{display:flex;align-items:center;gap:7px}.crm-opportunity-head small{color:var(--ink3);font-size:8.5px}.crm-opportunity-value{display:flex;align-items:baseline;justify-content:space-between;margin:10px 0 8px;padding-bottom:8px;border-bottom:1px solid var(--line2)}.crm-opportunity-value span{color:var(--ink3);font-size:9px}.crm-opportunity-value b{color:#2E8751;font-size:20px}.crm-opportunity-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.crm-opportunity-grid span{color:var(--ink3);font-size:8.5px}.crm-opportunity-grid b{display:block;margin-top:2px;overflow:hidden;color:var(--ink2);font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}.crm-opportunity-next{display:flex;align-items:center;justify-content:space-between;margin-top:9px;padding:6px 8px;border-radius:7px;background:#FAF5EC}.crm-opportunity-next span{font-size:9px;color:var(--ink3)}.crm-opportunity-next b{font-size:10.5px;color:#9A641D}.crm-opportunity>p{margin-top:8px;color:var(--ink2);font-size:10.5px;line-height:1.55;white-space:pre-wrap}.crm-inline-action{margin-top:8px;color:#A96326;font-size:10px}.crm-inline-action:hover{text-decoration:underline}
.crm-opportunity-followups{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;margin-top:8px;padding:7px 8px;border:1px solid var(--line2);border-radius:7px;background:#fff}.crm-opportunity-followups b{font-size:9.5px;color:var(--ink2);white-space:nowrap}.crm-opportunity-followups span{overflow:hidden;color:var(--ink3);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.crm-followup{position:relative;padding:2px 2px 10px 17px;border-left:1px solid #E1D6C7}.crm-followup:last-child{padding-bottom:0}.crm-followup>i{position:absolute;left:-4px;top:5px;width:7px;height:7px;border-radius:50%;background:#D68E43;box-shadow:0 0 0 3px #F8EEDD}.crm-followup-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.crm-followup-head b{font-size:10.5px}.crm-followup-head span{color:var(--ink3);font-size:8.5px}.crm-followup p{margin-top:4px;color:var(--ink2);font-size:11px;line-height:1.6;white-space:pre-wrap}.crm-followup-meta{display:flex;flex-wrap:wrap;gap:4px 8px;margin-top:5px}.crm-followup-meta span{padding:2px 6px;border-radius:5px;background:#F7F3ED;color:var(--ink3);font-size:8.5px}

@media (max-width:1000px){.crm-profile-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 0}.crm-profile-grid span:nth-child(3){border-right:0}.crm-detail-columns{grid-template-columns:1fr}.crm-toolbar{grid-template-columns:minmax(220px,1fr) 120px 140px auto auto}}
@media (max-width:768px){
  .crm-page-head{align-items:stretch}.crm-page-head .btn{width:100%;justify-content:center}.crm-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.crm-kpis>div{min-height:88px;padding:12px}.crm-kpis b{font-size:21px}.crm-list-shell{padding:10px}.crm-toolbar{grid-template-columns:1fr 1fr}.crm-toolbar .crm-search{grid-column:1/-1}.crm-toolbar #crm-sales{grid-column:1/-1}.crm-toolbar .btn{justify-content:center}.crm-table-wrap{display:none}.crm-mobile-list{display:grid;gap:8px}.crm-customer-card{width:100%;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff;text-align:left;box-shadow:var(--shadow-sm)}.crm-customer-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.crm-customer-card-head b,.crm-customer-card-head small{display:block}.crm-customer-card-head b{font-size:14px}.crm-customer-card-head small{margin-top:1px;color:var(--ink3);font-size:10px}.crm-customer-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0}.crm-customer-card-grid span{padding:6px 7px;border-radius:7px;background:#FAF7F2;color:var(--ink3);font-size:8.5px}.crm-customer-card-grid b{display:block;margin-top:2px;overflow:hidden;color:var(--ink2);font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}.crm-customer-card-foot{display:flex;align-items:center;justify-content:space-between;padding-top:8px;border-top:1px solid var(--line2);color:var(--ink3);font-size:9px}.crm-form-grid{grid-template-columns:1fr}.crm-form-wide{grid-column:auto}.crm-detail-body{padding:11px}.crm-profile-summary{grid-template-columns:1fr auto;padding:12px}.crm-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 0}.crm-profile-grid span:nth-child(2n){border-right:0}.crm-profile-grid span:nth-child(3){border-right:1px solid var(--line2)}.crm-detail-columns>section{padding:11px}.crm-opportunity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-section-head{align-items:center}.crm-opportunity-head small{display:none}
}
@media (max-width:430px){.crm-kpis>div{min-height:80px;padding:10px}.crm-kpis small{display:none}.crm-profile-summary{grid-template-columns:1fr}.crm-profile-summary>#crm-edit-customer{width:100%;justify-content:center}.crm-profile-grid{grid-template-columns:1fr}.crm-profile-grid span,.crm-profile-grid span:nth-child(3){padding:0;border-right:0}.crm-section-head{align-items:flex-start;flex-direction:column}.crm-section-head .btn{width:100%;justify-content:center}}

/* CRM 数据看盘与商机总览 */
.crm-loading{min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--ink3);font-size:11px}.crm-loading span{width:28px;height:28px;border:3px solid #EADFD2;border-top-color:#C65D32;border-radius:50%;animation:crm-spin .8s linear infinite}@keyframes crm-spin{to{transform:rotate(360deg)}}
.crm-dashboard-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:-26px -30px 16px;padding:27px 30px 22px;background:linear-gradient(120deg,#2E2923 0%,#42372D 57%,#624533 100%);color:#fff;box-shadow:0 10px 24px rgba(58,43,30,.12)}.crm-eyebrow{display:block;margin-bottom:4px;color:#DDBA8A;font-size:8px;font-weight:800;letter-spacing:.2em}.crm-dashboard-hero h1{font-size:25px;line-height:1.2}.crm-dashboard-hero h1 em{display:inline-flex;margin-left:7px;padding:3px 7px;border:1px solid rgba(255,255,255,.25);border-radius:99px;color:#F4D5AA;font-size:9px;font-style:normal;vertical-align:middle}.crm-dashboard-hero p{margin-top:5px;color:#D7CBC0;font-size:11px}.crm-dashboard-filter{display:flex;align-items:flex-end;gap:6px}.crm-dashboard-filter label{display:grid;gap:4px;color:#D9CDC0;font-size:9px}.crm-dashboard-filter .ipt{height:34px;min-width:126px;border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.09);color:#fff;color-scheme:dark}.crm-dashboard-filter select.ipt{min-width:118px}.crm-dashboard-filter>b{padding-bottom:10px;color:#A99B8E;font-size:9px}.crm-label-spacer{visibility:hidden}.crm-dashboard-query{height:34px;border-color:#D7A163!important;background:#D7A163!important;color:#251D17!important;font-weight:700}
.crm-dashboard-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:12px}.crm-dashboard-kpis article{min-width:0;display:flex;align-items:center;gap:10px;padding:13px 12px;border:1px solid #E4DCD1;border-radius:13px;background:#fff;box-shadow:var(--shadow-sm)}.crm-dashboard-kpis article>div{min-width:0}.crm-dashboard-kpis small,.crm-dashboard-kpis em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-dashboard-kpis small{color:var(--ink3);font-size:9px}.crm-dashboard-kpis b{display:block;margin:4px 0 3px;overflow:hidden;color:var(--ink);font-size:18px;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.crm-dashboard-kpis em{color:#968A7C;font-size:8.5px;font-style:normal}.crm-kpi-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:10px;font-size:12px;font-weight:800}.crm-icon-customer{background:#F7E9DF;color:#B8522C}.crm-icon-value{background:#E6F1E9;color:#2F7A50}.crm-icon-open{background:#E8EEF6;color:#416C98}.crm-icon-won{background:#E4F2EB;color:#267348}.crm-icon-rate{background:#F6ECDA;color:#9A6827}.crm-icon-alert{background:#F7E5E1;color:#B94332}.crm-dashboard-kpis .crm-kpi-alert{border-color:#ECD0C9}
.crm-dashboard-grid{display:grid;gap:12px;margin-bottom:12px}.crm-grid-wide{grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr)}.crm-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-dashboard-panel{min-width:0;padding:15px}.crm-panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:13px}.crm-panel-head>div>span{display:block;color:#B27A40;font-size:7.5px;font-weight:800;letter-spacing:.14em}.crm-panel-head h2{margin-top:2px;font-size:14px}.crm-panel-head>a,.crm-panel-head>small{color:var(--ink3);font-size:9px}.crm-panel-head>a:hover{color:#B14A28}.crm-panel-empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #E0D5C8;border-radius:9px;background:#FCFAF7;color:var(--ink3);text-align:center}.crm-panel-empty b{color:var(--ink2);font-size:12px}.crm-panel-empty span{margin-top:4px;font-size:9px}
.crm-stage-list{display:grid;gap:8px}.crm-stage-meta{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:8px}.crm-stage-meta>i{width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#F6EDE2;color:#A6672D;font-size:8px;font-style:normal;font-weight:800}.crm-stage-meta span b,.crm-stage-meta span small{display:block}.crm-stage-meta span b{font-size:10.5px}.crm-stage-meta span small{margin-top:1px;color:var(--ink3);font-size:8px}.crm-stage-meta strong{color:#3E7556;font-size:10.5px}.crm-stage-track{height:4px;margin:4px 0 0 28px;overflow:hidden;border-radius:99px;background:#F0EBE4}.crm-stage-track i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#D27842,#DCAE69)}
.crm-bar-list{display:grid;gap:11px}.crm-bar-label{display:flex;align-items:center;justify-content:space-between;gap:10px}.crm-bar-label span{min-width:0;display:flex;align-items:center;gap:7px;overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.crm-bar-label span i{width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:5px;background:#F2ECE4;color:#A66B35;font-size:8px;font-style:normal;font-weight:800}.crm-bar-label b{color:var(--ink3);font-size:8.5px;font-weight:500;white-space:nowrap}.crm-bar-track{height:5px;margin:4px 0 0 24px;border-radius:99px;background:#F0ECE6}.crm-bar-track i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#C66839,#E1AB67)}
.crm-rating-analysis{min-height:180px;display:flex;align-items:center;justify-content:center;gap:24px}.crm-donut{position:relative;width:112px;height:112px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:50%}.crm-donut:before{content:"";position:absolute;inset:17px;border-radius:50%;background:#fff}.crm-donut span{position:relative;text-align:center;color:var(--ink3);font-size:8px}.crm-donut b{display:block;color:var(--ink);font-size:19px}.crm-rating-legend{display:grid;gap:9px}.crm-rating-legend span{display:grid;grid-template-columns:8px 32px auto;align-items:center;gap:5px;color:var(--ink3);font-size:9px}.crm-rating-legend span i{width:8px;height:8px;border-radius:50%}.crm-rating-legend b{color:var(--ink2);font-size:10px}
.crm-activity-list{display:grid}.crm-activity-list button{position:relative;width:100%;display:grid;grid-template-columns:10px minmax(0,1fr);gap:8px;padding:0 0 11px 0;border:0;background:transparent;text-align:left}.crm-activity-list button:before{content:"";position:absolute;left:3px;top:10px;bottom:0;width:1px;background:#E6DDD2}.crm-activity-list button:last-child:before{display:none}.crm-activity-list button>i{position:relative;z-index:1;width:7px;height:7px;margin-top:5px;border-radius:50%;background:#CE7943;box-shadow:0 0 0 3px #F8EEE4}.crm-activity-list span b,.crm-activity-list span small,.crm-activity-list span em{display:block}.crm-activity-list span b{font-size:10.5px}.crm-activity-list span small{margin-top:2px;overflow:hidden;color:var(--ink2);font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}.crm-activity-list span em{margin-top:2px;color:var(--ink3);font-size:8px;font-style:normal}
.crm-ranking-panel{margin-bottom:12px}.crm-ranking-wrap{overflow-x:auto}.crm-ranking{width:100%;border-collapse:collapse}.crm-ranking th{padding:7px 10px;border-bottom:1px solid var(--line);color:var(--ink3);font-size:9px;font-weight:600;text-align:left}.crm-ranking td{padding:10px;border-bottom:1px solid var(--line2);color:var(--ink2);font-size:10.5px}.crm-ranking tr:last-child td{border-bottom:0}.crm-ranking td:first-child{display:flex;align-items:center;gap:8px}.crm-ranking td:first-child i{width:21px;height:21px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;background:#F3ECE3;color:#9E6A37;font-size:8px;font-style:normal;font-weight:800}.crm-ranking td strong{color:#2C7850}.crm-ranking-panel .crm-panel-empty{min-height:110px}
.crm-opportunity-table{min-width:1040px}.crm-opportunity-table .crm-progress{display:inline-flex}.crm-date-overdue{color:#B94735!important;font-weight:700}.crm-archive-card{width:100%;padding:13px;border:1px solid var(--line);border-radius:11px;background:#fff;text-align:left;box-shadow:var(--shadow-sm)}.crm-archive-card>div{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.crm-archive-card>div span b,.crm-archive-card>div span small{display:block}.crm-archive-card>div span b{font-size:14px}.crm-archive-card>div span small{margin-top:2px;color:var(--ink3);font-size:9px}.crm-archive-card>strong{display:block;margin:12px 0;color:#2D7850;font-size:22px}.crm-archive-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}.crm-archive-card dl>div{padding:7px;border-radius:7px;background:#F8F5F0}.crm-archive-card dt{color:var(--ink3);font-size:8px}.crm-archive-card dd{margin-top:2px;overflow:hidden;color:var(--ink2);font-size:10px;text-overflow:ellipsis;white-space:nowrap}

@media (max-width:1180px){.crm-dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-grid-three{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-grid-three>article:last-child{grid-column:1/-1}.crm-dashboard-hero{align-items:stretch;flex-direction:column}.crm-dashboard-filter{align-self:flex-end}}
@media (min-width:769px) and (max-width:900px){.crm-nav-parent{justify-content:center;padding:10px}.crm-nav-parent>span,.crm-nav-beta,.crm-nav-chevron{display:none}.crm-nav-sub{padding:2px 0}.nav .crm-nav-sub a{justify-content:center;padding:7px}.nav .crm-nav-sub .crm-sub-icon{display:inline-flex}.crm-sub-label{display:none}.crm-grid-wide{grid-template-columns:1fr}.crm-dashboard-hero{margin-left:-30px;margin-right:-30px}}
@media (max-width:900px){.crm-grid-wide{grid-template-columns:1fr}.crm-dashboard-filter{width:100%;display:grid;grid-template-columns:1fr auto 1fr 1fr auto}.crm-dashboard-filter label,.crm-dashboard-filter .ipt{min-width:0;width:100%}}
@media (max-width:768px){.crm-nav-parent{padding:11px 13px;font-size:14px}.crm-nav-parent>span,.crm-nav-parent .crm-nav-beta,.crm-nav-chevron,.nav .crm-nav-sub .crm-sub-label,.nav .crm-nav-sub .crm-sub-icon{display:inline-flex}.crm-nav-sub{padding-left:30px}.nav .crm-nav-sub a{font-size:13px}.crm-dashboard-hero{margin:-16px -14px 12px;padding:20px 14px 16px}.crm-dashboard-hero h1{font-size:22px}.crm-dashboard-filter{align-self:stretch;grid-template-columns:1fr 12px 1fr}.crm-dashboard-filter label:nth-of-type(3){grid-column:1/-1}.crm-dashboard-filter .crm-dashboard-query{grid-column:1/-1;width:100%;justify-content:center}.crm-label-spacer{display:none}.crm-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.crm-dashboard-kpis article{padding:11px 10px}.crm-dashboard-kpis b{font-size:16px}.crm-grid-three{grid-template-columns:1fr}.crm-grid-three>article:last-child{grid-column:auto}.crm-dashboard-panel{padding:12px}.crm-ranking{min-width:620px}.crm-panel-empty{min-height:130px}.crm-opportunity-toolbar{grid-template-columns:1fr 1fr}.crm-opportunity-toolbar .crm-search{grid-column:1/-1}.crm-opportunity-toolbar select[id="crm-op-sales-filter"]{grid-column:1/-1}}
@media (max-width:430px){.crm-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-dashboard-kpis article{min-height:68px}.crm-dashboard-kpis .crm-kpi-icon{width:28px;height:28px}.crm-rating-analysis{gap:16px}.crm-donut{width:96px;height:96px}.crm-donut:before{inset:15px}.crm-dashboard-filter{grid-template-columns:1fr}.crm-dashboard-filter>b{display:none}.crm-dashboard-filter label:nth-of-type(3){grid-column:auto}.crm-dashboard-hero p{max-width:320px}.crm-opportunity-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 商机分析 2026.10：参考经营驾驶舱布局 */
.crm-opp-shell{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:14px;align-items:start}
.crm-opp-main,.crm-opp-side{min-width:0;display:grid;gap:14px}
.crm-opp-count-grid,.crm-opp-amount-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.crm-opp-metric{min-width:0;min-height:106px;display:flex;align-items:center;gap:12px;padding:17px;border:1px solid #DFE4EA;border-radius:16px;background:#fff;box-shadow:0 4px 14px rgba(33,45,61,.035);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.crm-opp-metric:hover{transform:translateY(-2px);border-color:#CCD5E0;box-shadow:0 10px 22px rgba(33,45,61,.08)}
.crm-opp-metric>div{min-width:0}.crm-opp-metric small,.crm-opp-metric em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-opp-metric small{color:#5C6675;font-size:10px}.crm-opp-metric b{display:block;margin:6px 0 4px;overflow:hidden;color:#263445;font-size:22px;line-height:1;text-overflow:ellipsis;white-space:nowrap}.crm-opp-metric em{color:#99A2AF;font-size:8.5px;font-style:normal}
.crm-opp-metric-icon{width:34px;height:34px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:11px;background:#EEF4FF;color:#3478F6;font-size:12px;font-weight:800;cursor:help}.crm-metric-cyan .crm-opp-metric-icon{background:#E6F8F6;color:#129C95}.crm-metric-gold .crm-opp-metric-icon{background:#FFF5D8;color:#B88500}.crm-metric-rose .crm-opp-metric-icon{background:#FFF0ED;color:#D75C4B}
.crm-opp-card{min-width:0;padding:17px;border-color:#DFE4EA;border-radius:16px;box-shadow:0 4px 14px rgba(33,45,61,.035)}
.crm-opp-card-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}.crm-opp-card-head>div>span{display:block;color:#7B8CA3;font-size:7.5px;font-weight:800;letter-spacing:.14em}.crm-opp-card-head h2{margin-top:2px;color:#263445;font-size:14px}.crm-opp-card-head>small,.crm-opp-card-head>a{color:#8C97A5;font-size:8.5px}.crm-opp-card-head>a:hover{color:#3478F6}
.crm-trend-legend{display:flex;align-items:center;gap:18px;margin-bottom:4px;color:#687382;font-size:9px}.crm-trend-legend span{display:flex;align-items:center;gap:6px}.crm-trend-legend i{width:8px;height:8px;border-radius:50%}.crm-trend-scroll{width:100%;overflow-x:auto}.crm-trend-svg{width:100%;min-width:700px;height:auto;display:block}.crm-trend-grid{stroke:#E8ECF1;stroke-width:1}.crm-trend-axis{fill:#8993A1;font-size:10px}.crm-trend-hit{fill:transparent;cursor:crosshair}.crm-trend-dot{pointer-events:none}.crm-trend-hit:hover+.crm-trend-dot{r:5;stroke:#fff;stroke-width:2}
.crm-opp-bottom-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.crm-opp-bottom-grid .crm-opp-card{min-height:318px}
.crm-funnel{min-height:238px;display:flex;flex-direction:column;justify-content:center;gap:4px}.crm-funnel-step{display:grid;grid-template-columns:43px minmax(0,1fr);align-items:center;gap:6px;cursor:help}.crm-funnel-step>small{color:#8793A1;font-size:8px;text-align:right}.crm-funnel-step>span{height:25px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:auto;padding:0 9px;border-radius:4px;background:linear-gradient(90deg,#397CF2,#5C97FF);color:#fff;clip-path:polygon(4% 0,96% 0,100% 100%,0 100%)}.crm-funnel-step:nth-child(2n)>span{background:linear-gradient(90deg,#1DBBB3,#55D5CE)}.crm-funnel-step:nth-child(3n)>span{background:linear-gradient(90deg,#E9AA05,#F5C84E)}.crm-funnel-step b{overflow:hidden;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}.crm-funnel-step em{font-size:9px;font-style:normal;font-weight:800}
.crm-stage-bars{min-height:235px;display:flex;flex-direction:column;justify-content:center;gap:11px}.crm-stage-bar-row{display:grid;grid-template-columns:54px minmax(0,1fr) 46px;align-items:center;gap:8px;cursor:help}.crm-stage-bar-row>span{overflow:hidden;color:#737F8E;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}.crm-stage-bar-row>div{height:15px;overflow:hidden;border-radius:3px;background:#F0F3F7}.crm-stage-bar-row>div i{height:100%;display:block;border-radius:3px;background:linear-gradient(90deg,#3B7DF4,#629BFF);transition:width .25s ease}.crm-stage-bar-row>b{overflow:hidden;color:#4775C7;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.crm-stage-bars-count .crm-stage-bar-row>div i{background:linear-gradient(90deg,#18B7AE,#4BD1C9)}.crm-stage-bars-count .crm-stage-bar-row>b{color:#188F89}
.crm-sales-rank-card{min-height:430px}.crm-sales-podium{height:160px;display:flex;align-items:flex-end;justify-content:center;gap:7px;padding:4px 0 13px}.crm-sales-podium-item{width:78px;display:flex;flex-direction:column;align-items:center;border:0;background:transparent;color:#263445;cursor:pointer}.crm-sales-podium-item>span{position:relative;width:46px;height:46px;display:flex;align-items:center;justify-content:center;border:3px solid #E7EBF0;border-radius:50%;background:linear-gradient(145deg,#F5F7FA,#E8EDF3);font-size:17px;font-weight:800}.crm-sales-podium-item>span i{position:absolute;right:-4px;bottom:-4px;width:18px;height:18px;display:flex;align-items:center;justify-content:center;border:2px solid #fff;border-radius:50%;background:#AAB4C1;color:#fff;font-size:8px;font-style:normal}.crm-sales-podium-item>b{max-width:74px;margin-top:8px;overflow:hidden;font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}.crm-sales-podium-item>strong{margin-top:3px;font-size:18px}.crm-sales-podium-item>em{color:#99A2AE;font-size:7.5px;font-style:normal}.crm-sales-place-1{order:2;align-self:flex-start}.crm-sales-place-1>span{width:56px;height:56px;border-color:#F1B60A;background:#FFF7D9}.crm-sales-place-1>span i{background:#EAAF00}.crm-sales-place-2{order:1}.crm-sales-place-2>span{border-color:#AFC0D1}.crm-sales-place-3{order:3}.crm-sales-place-3>span{border-color:#E3A46D}.crm-sales-place-3>span i{background:#D98B4C}.crm-sales-podium-item:hover>span{transform:translateY(-2px);box-shadow:0 7px 15px rgba(44,68,95,.15)}
.crm-sales-rank-list{overflow:hidden;border:1px solid #E8ECF1;border-radius:10px}.crm-sales-rank-list button{width:100%;display:grid;grid-template-columns:20px 24px minmax(0,1fr) auto 25px;align-items:center;gap:7px;padding:8px 9px;border:0;border-bottom:1px solid #EEF1F4;background:#fff;color:#263445;text-align:left;cursor:pointer}.crm-sales-rank-list button:last-child{border-bottom:0}.crm-sales-rank-list button:hover{background:#F5F8FC}.crm-sales-rank-list button>i{color:#8F99A5;font-size:8px;font-style:normal}.crm-sales-rank-list button>span{width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#EEF2F6;color:#657486;font-size:8px;font-weight:800}.crm-sales-rank-list button>b{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.crm-sales-rank-list button>small{color:#8B96A4;font-size:7.5px}.crm-sales-rank-list button>strong{color:#3478F6;font-size:10px;text-align:right}.crm-rank-hint{margin:9px 0 0;color:#98A2AF;font-size:7.5px;text-align:center}
.crm-stage-donut-card{min-height:342px}.crm-stage-donut-wrap{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:8px;min-height:250px}.crm-stage-donut{width:150px;height:150px;transform:rotate(-90deg)}.crm-donut-segment{pointer-events:stroke;cursor:help}.crm-donut-segment:hover{stroke-width:28}.crm-donut-total,.crm-donut-label{transform:rotate(90deg);transform-origin:70px 70px;fill:#273444}.crm-donut-total{font-size:25px;font-weight:800}.crm-donut-label{fill:#8994A2;font-size:8px}.crm-stage-legend{display:grid;gap:8px}.crm-stage-legend span{display:grid;grid-template-columns:7px minmax(0,1fr) auto;align-items:center;gap:6px;cursor:help}.crm-stage-legend i{width:7px;height:7px;border-radius:50%}.crm-stage-legend b{overflow:hidden;color:#65717F;font-size:8px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.crm-stage-legend em{color:#263445;font-size:8px;font-style:normal;font-weight:800}
.crm-follow-alert-card{min-height:144px}.crm-follow-alerts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.crm-follow-alerts>span{display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;gap:1px 8px;align-items:center;padding:11px;border-radius:11px;background:#FFF4F1;cursor:help}.crm-follow-alerts>span:last-child{background:#EEF6FF}.crm-follow-alerts i{grid-row:1/3;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#FBD8D0;color:#C7503F;font-size:9px;font-style:normal;font-weight:800}.crm-follow-alerts>span:last-child i{background:#D9EAFE;color:#3478F6}.crm-follow-alerts b{font-size:16px}.crm-follow-alerts em{color:#8994A2;font-size:7.5px;font-style:normal}
.crm-hover-tooltip{position:fixed;z-index:10000;max-width:260px;padding:8px 10px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:rgba(32,42,55,.96);box-shadow:0 8px 24px rgba(18,28,40,.24);color:#fff;font-size:10px;line-height:1.6;white-space:pre-line;pointer-events:none;opacity:0;transform:translateY(3px);transition:opacity .12s ease,transform .12s ease}.crm-hover-tooltip.show{opacity:1;transform:translateY(0)}
.crm-modal-loading{min-height:230px}.crm-sales-modal-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:13px}.crm-sales-modal-summary span{padding:11px;border:1px solid #E4E8ED;border-radius:10px;background:#F8FAFC;color:#8A95A3;font-size:8.5px}.crm-sales-modal-summary b{display:block;margin-top:4px;overflow:hidden;color:#263445;font-size:12px;text-overflow:ellipsis;white-space:nowrap}

@media (max-width:1280px){.crm-opp-shell{grid-template-columns:minmax(0,1fr) 280px}.crm-opp-bottom-grid{grid-template-columns:1fr}.crm-opp-bottom-grid .crm-opp-card{min-height:0}.crm-funnel,.crm-stage-bars{min-height:220px}}
@media (max-width:1080px){.crm-opp-shell{grid-template-columns:1fr}.crm-opp-side{grid-template-columns:1fr 1fr}.crm-follow-alert-card{grid-column:1/-1}.crm-sales-rank-card,.crm-stage-donut-card{min-height:360px}}
@media (max-width:768px){.crm-opp-count-grid,.crm-opp-amount-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.crm-opp-metric{min-height:88px;padding:12px}.crm-opp-metric b{font-size:17px}.crm-opp-side{grid-template-columns:1fr}.crm-follow-alert-card{grid-column:auto}.crm-stage-donut-wrap{grid-template-columns:140px minmax(0,1fr)}.crm-stage-donut{width:140px;height:140px}.crm-sales-modal-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:430px){.crm-opp-count-grid,.crm-opp-amount-grid{grid-template-columns:1fr 1fr}.crm-opp-metric{gap:8px;padding:10px}.crm-opp-metric-icon{width:28px;height:28px}.crm-opp-metric small{font-size:8.5px}.crm-opp-metric b{font-size:14px}.crm-opp-metric em{display:none}.crm-stage-donut-wrap{grid-template-columns:1fr}.crm-stage-donut{margin:auto}.crm-follow-alerts{grid-template-columns:1fr}.crm-stage-bar-row{grid-template-columns:48px minmax(0,1fr) 40px}}

/* CRM 可读性与业务操作增强 */
.crm-rating-S{background:#F0E8FC;color:#7441B8}.crm-rating-empty{background:#EEF1F4;color:#778291}.crm-rating-invalid{background:#FBE8E5;color:#B24738}
.crm-auto-rating{min-height:36px;display:flex;align-items:center;gap:9px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#F8FAFC}.crm-auto-rating span{color:var(--ink3);font-size:11px}
.crm-row-actions,.crm-opportunity-actions,.crm-mobile-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.crm-row-actions{min-width:max-content}.crm-opportunity-actions{margin-top:10px;padding-top:9px;border-top:1px solid var(--line2)}.crm-mobile-actions{margin-top:10px;justify-content:flex-end}.crm-win-btn{border-color:#B9DEC8!important;background:#EFF9F3!important;color:#227347!important}.crm-lose-btn,.crm-danger-btn{border-color:#F0CBC4!important;background:#FFF3F0!important;color:#B84C3A!important}.crm-loss-reason{padding:7px 9px;border-radius:7px;background:#FFF3F0;color:#A84A3A!important}
.crm-opportunity-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.crm-customer-table{min-width:1080px}.crm-opportunity-table{min-width:1240px}.crm-opportunity-table .crm-progress{margin-top:0}
.crm-dashboard-hero{margin-bottom:20px}.crm-eyebrow{font-size:10px}.crm-dashboard-hero h1{font-size:28px}.crm-dashboard-hero p{font-size:13px}.crm-dashboard-filter label,.crm-dashboard-filter>b{font-size:11px}
.crm-opp-shell{grid-template-columns:minmax(0,1fr) 340px;gap:18px}.crm-opp-main,.crm-opp-side{gap:16px}.crm-opp-count-grid,.crm-opp-amount-grid{gap:14px}.crm-opp-metric{min-height:118px;padding:19px}.crm-opp-metric-icon{width:40px;height:40px;font-size:15px}.crm-opp-metric small{font-size:12px}.crm-opp-metric b{font-size:24px}.crm-opp-metric em{font-size:11px}.crm-opp-card{padding:20px}.crm-opp-card-head>div>span,.crm-panel-head>div>span{font-size:10px}.crm-opp-card-head h2,.crm-panel-head h2{font-size:17px}.crm-opp-card-head>small,.crm-opp-card-head>a,.crm-panel-head>a,.crm-panel-head>small{font-size:11px}.crm-opp-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.crm-opp-bottom-grid .crm-opp-card{min-height:340px}
.crm-trend-legend{gap:22px;font-size:12px}.crm-trend-axis{font-size:12px}.crm-funnel-step{grid-template-columns:52px minmax(0,1fr);gap:8px}.crm-funnel-step>small{font-size:11px}.crm-funnel-step>span{height:31px}.crm-funnel-step b{font-size:11px}.crm-funnel-step em{font-size:12px}.crm-stage-bars{gap:13px}.crm-stage-bar-row{grid-template-columns:70px minmax(0,1fr) 62px;gap:9px}.crm-stage-bar-row>span,.crm-stage-bar-row>b{font-size:11px}.crm-stage-bar-row>div{height:18px}
.crm-sales-podium-item>b{font-size:12px}.crm-sales-podium-item>strong{font-size:21px}.crm-sales-podium-item>em,.crm-rank-hint{font-size:10px}.crm-sales-rank-list button{grid-template-columns:22px 28px minmax(0,1fr) auto 28px;padding:10px}.crm-sales-rank-list button>i,.crm-sales-rank-list button>span,.crm-sales-rank-list button>b,.crm-sales-rank-list button>small,.crm-sales-rank-list button>strong{font-size:11px}.crm-stage-legend{gap:10px}.crm-stage-legend b,.crm-stage-legend em,.crm-donut-label{font-size:11px}.crm-follow-alerts em{font-size:10px}.crm-hover-tooltip{font-size:12px}.crm-bar-label span{font-size:12px}.crm-bar-label b{font-size:11px}.crm-bar-track{height:7px}.crm-rating-legend span{font-size:11px}.crm-rating-legend b{font-size:12px}.crm-activity-list span b{font-size:12px}.crm-activity-list span small{font-size:11px}.crm-activity-list span em{font-size:10px}.crm-dashboard-panel{padding:18px}.crm-panel-empty b{font-size:14px}.crm-panel-empty span{font-size:11px}.crm-source-structure-card{min-height:330px}.crm-customer-shell .crm-dashboard-panel{margin:0}.crm-customer-shell .crm-opp-side{display:grid;gap:16px}
.crm-bar-row{cursor:help}.crm-customer-donut-card{min-height:340px}.crm-structure-donut-wrap{min-height:245px;display:grid;grid-template-columns:160px minmax(0,1fr);align-items:center;justify-content:center;gap:18px}.crm-structure-donut{width:160px;height:160px;transform:rotate(-90deg)}.crm-structure-legend{display:grid;gap:10px}.crm-structure-legend span{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:7px;cursor:help}.crm-structure-legend span>i{width:8px;height:8px;border-radius:50%}.crm-structure-legend span>b{overflow:hidden;color:#65717F;font-size:11px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.crm-structure-legend span>em{color:#263445;font-size:11px;font-style:normal;font-weight:800;white-space:nowrap}
@media (max-width:1440px){.crm-opp-shell{grid-template-columns:minmax(0,1fr) 320px}.crm-opp-count-grid,.crm-opp-amount-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-opp-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-opp-metric{padding:17px}.crm-opp-metric b{font-size:22px}}
@media (max-width:1180px){.crm-opp-shell{grid-template-columns:1fr}.crm-opp-side{grid-template-columns:1fr 1fr}.crm-opp-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-customer-shell .crm-opp-side{grid-template-columns:1fr 1fr}}
@media (max-width:768px){.crm-opp-bottom-grid,.crm-customer-shell .crm-opp-side{grid-template-columns:1fr}.crm-opportunity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-row-actions{min-width:0}.crm-opp-metric small{font-size:11px}.crm-opp-metric b{font-size:18px}.crm-trend-axis{font-size:11px}.crm-structure-donut-wrap{grid-template-columns:140px minmax(0,1fr);gap:10px}.crm-structure-donut{width:140px;height:140px}}
@media (max-width:430px){.crm-structure-donut-wrap{grid-template-columns:1fr}.crm-structure-donut{margin:auto}}

/* CRM v11：地域、快捷分配与无横向滚动商机档案 */
.crm-inline-sales{width:100%;min-width:88px;max-width:124px;height:30px;padding:0 24px 0 7px;border:1px solid #E3D8C9;border-radius:7px;background:#fff;color:var(--ink2);font:inherit;font-size:10.5px;cursor:pointer}.crm-inline-sales:hover,.crm-inline-sales:focus{border-color:#C99562;outline:0;box-shadow:0 0 0 2px rgba(201,149,98,.12)}.crm-inline-sales:disabled{cursor:wait;opacity:.6}
.crm-rating-S{background:#EFE7FF;color:#7142C2}.crm-rating-invalid{background:#F8E1E1;color:#A63D3D}.crm-rating-empty{background:#F0EEE9;color:#82796F}.crm-inline-rating{max-width:82px;padding:4px 22px 4px 8px;border:1px solid transparent;outline:0;font-family:inherit;cursor:pointer}.crm-inline-rating:hover,.crm-inline-rating:focus{border-color:currentColor;box-shadow:0 0 0 2px rgba(186,119,53,.12)}.crm-inline-rating:disabled{cursor:wait;opacity:.6}
.crm-profile-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
.crm-opportunity-table-wrap{overflow-x:visible}.crm-opportunity-table{width:100%;min-width:0;table-layout:fixed}.crm-opportunity-table .crm-col-customer{width:16%}.crm-opportunity-table .crm-col-product{width:10%}.crm-opportunity-table .crm-col-progress{width:10%}.crm-opportunity-table .crm-col-value{width:13%}.crm-opportunity-table .crm-col-followup{width:15%}.crm-opportunity-table .crm-col-region{width:12%}.crm-opportunity-table .crm-col-sales{width:9%}.crm-opportunity-table .crm-col-actions{width:15%}
.crm-opportunity-table th:last-child,.crm-opportunity-table td{padding-left:6px;padding-right:6px}.crm-opportunity-table .crm-sort-head{padding-left:6px;padding-right:6px}.crm-opportunity-table td{overflow:hidden}.crm-opportunity-table td>b,.crm-opportunity-table td>span,.crm-opportunity-table td>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-opportunity-table .crm-progress-select{width:100%;max-width:96px;padding-left:5px;padding-right:18px}.crm-opportunity-table .crm-row-actions{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.crm-opportunity-table .crm-row-actions .btn{min-width:0;padding:5px 3px;justify-content:center;font-size:9px;white-space:nowrap}
.crm-followup-date{max-width:100%;display:block;padding:0;border:0;background:transparent;color:#94602A;text-align:left;cursor:pointer}.crm-followup-date b,.crm-followup-date small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-followup-date b{font-size:10.5px}.crm-followup-date small{margin-top:2px;color:var(--ink3);font-size:9px}.crm-followup-date:hover b{text-decoration:underline}.crm-next-followup{display:block;margin-top:4px;color:var(--ink3);font-size:8.5px}
@media (max-width:1100px){.crm-opportunity-table{font-size:10.5px}.crm-opportunity-table td>b{font-size:11px}.crm-opportunity-table td>small{font-size:8.5px}.crm-opportunity-table .crm-col-customer{width:15%}.crm-opportunity-table .crm-col-followup{width:16%}.crm-opportunity-table .crm-col-actions{width:16%}.crm-opportunity-table .crm-col-region{width:11%}.crm-opportunity-table .crm-col-sales{width:8%}}
@media (max-width:1000px){.crm-profile-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.crm-profile-grid span:nth-child(4n){border-right:0}}
@media (max-width:768px){.crm-opportunity-table-wrap{display:none}.crm-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-archive-card .crm-followup-date{font-size:10px}.crm-customer-card-grid span:last-child{grid-column:1/-1}}

/* CRM v12：复购排行、紧凑下拉与商机档案可读性 */
.crm-inline-rating,.crm-inline-sales,.crm-progress-select{display:inline-block;min-width:0;max-width:none;vertical-align:middle;white-space:nowrap;transition:width .16s ease,border-color .16s ease,box-shadow .16s ease}
.crm-inline-rating{padding-left:8px;padding-right:20px}
.crm-inline-sales{height:29px;padding-left:8px;padding-right:22px}
.crm-progress-select{padding-left:9px;padding-right:22px}
.crm-repeat-ranking-card{min-height:250px}
.crm-opportunity-table{font-size:13px;line-height:1.35}
.crm-opportunity-table .crm-col-customer{width:14%}.crm-opportunity-table .crm-col-product{width:11%}.crm-opportunity-table .crm-col-progress{width:9%}.crm-opportunity-table .crm-col-value{width:12%}.crm-opportunity-table .crm-col-followup{width:16%}.crm-opportunity-table .crm-col-region{width:10%}.crm-opportunity-table .crm-col-sales{width:8%}.crm-opportunity-table .crm-col-actions{width:20%}
.crm-opportunity-table th{font-size:11px}.crm-opportunity-table td{padding:13px 7px}.crm-opportunity-table td>b{font-size:13.5px}.crm-opportunity-table td>small{font-size:10px}.crm-opportunity-table td>span{font-size:12px}.crm-opportunity-table .crm-sort-head{padding-left:7px;padding-right:7px}.crm-opportunity-table .crm-followup-date b{font-size:11.5px}.crm-opportunity-table .crm-followup-date small,.crm-opportunity-table .crm-next-followup{font-size:9.5px}
.crm-opportunity-table .crm-progress-select{max-width:none;padding-left:9px;padding-right:22px;font-size:10.5px}
.crm-opportunity-table .crm-row-actions{min-width:0;display:flex;flex-wrap:nowrap;align-items:center;gap:5px}.crm-opportunity-table .crm-row-actions .btn{min-width:0;flex:0 0 auto;padding:5px 7px;justify-content:center;font-size:10.5px;white-space:nowrap}
@media (max-width:900px) and (min-width:769px){.crm-opportunity-table{font-size:12px}.crm-opportunity-table td{padding-left:5px;padding-right:5px}.crm-opportunity-table td>b{font-size:12.5px}.crm-opportunity-table .crm-row-actions{gap:3px}.crm-opportunity-table .crm-row-actions .btn{padding-left:5px;padding-right:5px;font-size:10px}}

/* CRM v13：确保深色分析页中的原生销售下拉菜单文字清晰可见 */
.crm-dashboard-filter select.ipt{color:#fff;color-scheme:light}
.crm-dashboard-filter select.ipt option{background:#fff;color:#263445}
