.admin-topbar{display:flex;justify-content:space-between;gap:16px;align-items:center;border-bottom:1px solid var(--border-color);padding-bottom:20px;margin-bottom:24px}.admin-workspaces{display:flex;gap:6px;flex-wrap:wrap}.admin-workspaces button{background:transparent;color:#637281;border-color:transparent}.admin-workspaces button.active{background:var(--brand-blue);color:white}.admin-user{display:flex;gap:10px;align-items:center;font-size:12px}.admin-user button{padding:6px 10px}.admin-panel-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.admin-panel-heading h2{margin:0 0 20px}.admin-table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse;min-width:620px}.admin-table th,.admin-table td{text-align:left;padding:13px 11px;border-bottom:1px solid var(--border-color);vertical-align:top;font-size:12px;max-width:450px;overflow-wrap:anywhere}.admin-table th{background:#f3f6f9;color:#637281;font-weight:500}.admin-table small{display:block;color:#788899;margin-top:5px;font-size:10px}.admin-table button,.admin-table .button{font-size:11px;padding:6px 9px;white-space:nowrap}.admin-table pre{white-space:pre-wrap;max-height:400px;overflow:auto;font-size:11px}.admin-error{color:#b63838}.admin-success{color:#26734d}.admin-login{max-width:420px}.admin-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.admin-form-grid textarea{width:100%}.admin-help{align-self:center;font-size:12px}.admin-check{display:inline-flex;align-items:center;margin-right:20px;gap:8px}.admin-check input{width:auto}#admin-dialog{width:min(1080px,94vw);max-height:90vh;padding:25px;border:1px solid var(--border-color);border-radius:12px}#admin-dialog::backdrop{background:#17324d66}.admin-dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.admin-dialog-head h2{margin:0}#admin-dialog label select[multiple]{min-height:110px}#admin-import-json{width:100%}.admin-view [hidden],#admin-menu[hidden],.admin-workspaces [hidden],.admin-user [hidden]{display:none!important}.sidebar nav{margin-top:14px;gap:2px}.sidebar nav button{padding:11px}.sidebar{overflow-y:auto}.sidebar-foot{position:static;margin-top:30px}.admin-topbar+header .eyebrow{letter-spacing:1px}@media(max-width:850px){.admin-topbar{align-items:flex-start;flex-direction:column}.admin-user{align-self:flex-end}.admin-form-grid{grid-template-columns:1fr}.admin-workspaces button{padding:9px;font-size:12px}}@media(max-width:600px){.admin-workspaces{gap:0}.admin-workspaces button{padding:8px 5px;font-size:11px}.admin-user{align-self:flex-start}.admin-table{min-width:600px}#admin-dialog{padding:16px}.admin-view .metrics{grid-template-columns:1fr 1fr}}
.sidebar{width:244px;padding:28px 18px 22px;display:flex;flex-direction:column;overflow:hidden}
.sidebar .workspace{flex-shrink:0;font-size:18px;font-weight:600;line-height:1.5;color:#fff;border-top:0;border-bottom:1px solid #45617b;padding:2px 10px 23px}
.sidebar nav.admin-navigation{display:flex;flex-direction:column;gap:7px;flex:1;min-height:0;overflow-y:auto;margin:10px -5px 0;padding:0 5px;scrollbar-width:thin;scrollbar-color:#55718c transparent}
#admin-menu{display:contents}
.admin-nav-group{margin:0}
.sidebar .admin-workspace-button{display:flex;align-items:center;gap:11px;width:100%;min-height:46px;padding:12px;border-radius:8px;font-size:14px;color:#dce6ef;flex-shrink:0}
.sidebar .admin-workspace-button:hover{background:#2d4b66}
.sidebar .admin-workspace-button.active{background:#365470;color:#fff;font-weight:600}
.admin-nav-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;font-size:20px;font-weight:400}
.admin-nav-chevron{margin-left:auto;font-size:23px;line-height:16px;transition:transform .15s}
.admin-workspace-button[aria-expanded=true] .admin-nav-chevron{transform:rotate(90deg)}
.sidebar .admin-submenu{display:grid;gap:3px;margin:7px 0 9px 21px;padding-left:12px;border-left:1px solid #45617b}
.sidebar .admin-submenu button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:36px;padding:9px 11px;font-size:12px;color:#c5d4e1;border-radius:6px}
.sidebar .admin-submenu button:hover{background:#2d4b66;color:#fff}
.sidebar .admin-submenu button.active{background:#426583;color:#fff;box-shadow:inset 3px 0 #a7c9e8}
#pendingBadge{min-width:21px;padding:1px 6px;border-radius:4px;background:#526e88;color:#fff;font-size:10px;text-align:center;font-variant-numeric:tabular-nums}
.sidebar .sidebar-foot{position:static;flex-shrink:0;display:grid;gap:12px;margin:18px 9px 0;padding-top:19px;border-top:1px solid #45617b}
.sidebar-foot a{text-decoration:none;color:#dce6ef}
.sidebar-foot small{font-size:10px;color:#9fb4c8;line-height:1.8}
main{margin-left:244px;padding:26px 36px;min-width:0}
.admin-topbar{align-items:center;min-height:42px;padding-bottom:19px;margin-bottom:29px}
.admin-breadcrumb{display:flex;align-items:center;gap:12px;min-width:0;font-size:12px;color:#8191a1;line-height:1.8}
.admin-breadcrumb b{font-weight:500;color:#41586e}
.admin-user{color:#607488;flex-shrink:0}
.admin-status-dot{width:6px;height:6px;border-radius:50%;background:#5b8b79}
.admin-topbar+header .eyebrow{font-size:10px;font-weight:600;color:#6c879f}
body:not([data-admin-workspace=opportunities]) #localAgentNotice{display:none}
#localAgentNotice{font-size:12px;line-height:1.8;color:#64798d;padding:14px 18px}
.admin-overview-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:24px;gap:17px}
.admin-overview-metric{display:block;width:100%;text-align:left;text-decoration:none;color:var(--text-primary);background:#fff;border:1px solid var(--border-color);padding:23px;transition:box-shadow .15s,border-color .15s}
.admin-overview-metric:hover{border-color:#97b1c7;box-shadow:0 4px 15px #2444600a;filter:none}
.admin-overview-metric>span{font-size:12px;color:#64798d}
.admin-overview-metric strong{color:var(--brand-blue);font-size:36px;font-variant-numeric:tabular-nums;margin:15px 0 12px}
.admin-overview-metric small{display:block;font-size:11px;color:#81909f;line-height:1.7}
.admin-overview-metric:first-child{background:var(--brand-blue);border-color:var(--brand-blue)}
.admin-overview-metric:first-child>span,.admin-overview-metric:first-child small{color:#dae5ee}
.admin-overview-metric:first-child strong{color:#fff}
.admin-overview-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.admin-overview-modules .panel{min-width:0;padding:23px 24px}
.admin-overview-modules .admin-panel-heading{align-items:center;gap:12px;margin-bottom:5px}
.admin-overview-modules h2{margin:0;font-size:17px}
.admin-overview-modules .admin-panel-heading button{font-size:11px;padding:6px 9px;border:0;background:#f1f5f8;color:#53728e}
.admin-overview-modules .muted{margin:8px 0 17px}
.admin-overview-modules .stat-line{font-size:12px;padding:14px 0;color:#718497}
.admin-overview-modules .stat-line b{color:#354f66;font-size:15px;font-weight:500;font-variant-numeric:tabular-nums}
.admin-overview-modules .buttons{margin:20px 0 0}
.admin-overview-modules .buttons button{font-size:12px;padding:9px 12px}
.admin-overview-todos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.admin-overview-todo{display:flex;align-items:center;gap:12px;min-width:0;text-align:left;padding:15px;background:#f8fafb;border-color:#e6ecf1;color:var(--text-primary)}
.admin-overview-todo b{font-size:12px;font-weight:500}
.admin-overview-todo small{display:block;color:#8090a0;font-size:11px;line-height:1.8;margin-top:3px}
.admin-todo-mark{display:grid;place-items:center;flex:0 0 29px;height:29px;border-radius:8px;font-size:22px;background:#edf2f6;color:#6b859b}
.admin-todo-mark.pending{background:#fff0db;color:#b77b35}
.admin-todo-mark.clear{font-size:13px;background:#eaf2ed;color:#6b8c79}
.admin-todo-arrow{margin-left:auto;color:#91a3b3}
@media(max-width:1150px){
 .sidebar{width:218px;padding-left:13px;padding-right:13px}
 main{margin-left:218px;padding:24px}
 .admin-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:850px){
 .admin-topbar{flex-direction:row;align-items:center;gap:12px}
 .admin-user{align-self:auto;font-size:11px;gap:6px}
 .admin-overview-modules{grid-template-columns:1fr;gap:0}
 .admin-overview-todos{grid-template-columns:1fr}
}
@media(max-width:700px){
 .sidebar{position:static;width:100%;padding:12px 15px;overflow:visible}
 .sidebar .brand,.sidebar .workspace,.sidebar .sidebar-foot{display:none}
 .sidebar nav.admin-navigation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:none;gap:6px;margin:0;padding:0;overflow:visible}
 .admin-nav-group{display:contents}
 .sidebar .admin-workspace-button{min-height:42px;padding:10px 8px;gap:6px;font-size:12px;justify-content:center}
 .admin-nav-icon{flex-basis:17px;font-size:17px}
 .admin-nav-chevron{font-size:18px;margin-left:0}
 [data-workspace=overview]{order:1}
 [data-workspace=opportunities]{order:2}
 [data-workspace=customers]{order:3}
 [data-workspace=platform]{order:4}
 .sidebar .admin-submenu{grid-column:1/-1;order:5;display:flex;gap:5px;overflow-x:auto;max-width:100%;margin:4px 0 0;padding:9px 0 0;border-left:0;border-top:1px solid #45617b}
 .sidebar .admin-submenu button{width:auto;flex-shrink:0;min-height:34px;padding:8px 11px}
 .sidebar .admin-submenu button.active{box-shadow:none}
 main{margin-left:0;padding:20px 16px}
 .admin-topbar{margin-bottom:22px;padding-bottom:14px;flex-wrap:wrap}
 .admin-breadcrumb{font-size:11px;gap:7px;flex-wrap:wrap}
 .admin-user{align-self:auto}
 .admin-overview-metrics{gap:10px;margin-bottom:17px}
 .admin-overview-metric{padding:18px 15px}
 .admin-overview-metric strong{font-size:30px}
 .admin-overview-modules .panel{padding:20px 18px}
 .admin-panel-heading{align-items:flex-start;flex-wrap:wrap;gap:4px}
 .admin-overview-modules .admin-panel-heading{flex-wrap:nowrap}
 .admin-overview-modules .admin-panel-heading button{white-space:nowrap}
}
@media(max-width:450px){
 .sidebar nav.admin-navigation{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sidebar .admin-workspace-button{justify-content:flex-start;padding-left:13px}
 .admin-nav-chevron{margin-left:auto}
 .admin-overview-metric small{font-size:10px}
}

/* 后台采用相同蓝灰色系，提高正文与辅助信息的可读性。 */
:root{--text-primary:#243b50;--text-muted:#52697d;--border-color:#d7e1e9;font-size:15px}
body{line-height:1.6}
header p,.muted,.head-right,.toolbar p,.card p,.entry,.rule-line,.command-hint{font-size:14px;color:var(--text-muted)}
h1{font-size:30px}h2{font-size:20px}
label{font-size:14px;color:#465b6e}
input::placeholder,textarea::placeholder{color:#65798a;opacity:1}
button,.button{font-size:14px;line-height:1.5}
button:focus-visible,.button:focus-visible,summary:focus-visible{outline:3px solid #7296b6;outline-offset:3px}
table,.admin-table th,.admin-table td{font-size:14px}
th,.admin-table th{font-weight:600;color:#4c6479;background:#edf2f6}
td{color:#30485c}td small,.admin-table small,td .mono{font-size:13px;color:#596f82;line-height:1.7}
.admin-table button,.admin-table .button{font-size:13px;padding:8px 11px}
.opportunity-table{min-width:1040px;table-layout:fixed}
.opportunity-table th:first-child{width:27%}
.opportunity-table th:nth-child(2){width:9%}
.opportunity-table th:nth-child(3){width:8%}
.opportunity-table th:nth-child(4),.opportunity-table th:nth-child(6){width:10%}
.opportunity-table th:nth-child(5){width:13%}
.opportunity-table th:last-child{width:116px}
.opportunity-table th:nth-child(7){width:120px}
.opportunity-table :is(th,td):last-child{position:sticky;right:0;z-index:1;background:#fff;box-shadow:-6px 0 10px #243b5008}
.opportunity-table th:last-child{background:#edf2f6}
.opportunity-table td{vertical-align:top;padding-top:18px;padding-bottom:18px;overflow-wrap:anywhere}
.opportunity-table .link{font-size:15px;font-weight:600;line-height:1.7}
.opportunity-table td:last-child button{white-space:nowrap;padding:9px 11px}
.opportunity-table tbody tr:hover{background:#f6f9fc}
.pill,.tag{font-size:13px;line-height:1.6}
.pill.command-none{color:#596775}
.tabs{overflow-x:auto}.tabs button{font-size:16px;color:#52697d;white-space:nowrap}.tabs button.active{font-weight:600}
.sidebar .admin-workspace-button{font-size:16px}
.sidebar .admin-submenu button{font-size:14px;min-height:40px;color:#e0e9f1}
.sidebar-foot small{font-size:12px;color:#c0d0de}
.admin-breadcrumb,.admin-user,#localAgentNotice{font-size:14px;color:#52697d}
.metric label,.admin-overview-metric>span{font-size:14px;color:#52697d}
.metric small,.admin-overview-metric small{font-size:13px;color:#596f82}
.admin-overview-metric:first-child>span,.admin-overview-metric:first-child small{color:#eef4f9}
.empty,footer{font-size:13px;color:#596f82}
#pendingBadge{font-size:12px}
#businessBackendFilters{display:flex;gap:10px;flex-wrap:wrap;padding:14px 0;border-top:1px solid #e1e8ef;border-bottom:1px solid #e1e8ef}
#businessBackendFilters>button{order:1;margin-left:auto;align-self:flex-start}
#businessBackendFilters>.business-filter-group{border:1px solid #d7e1e9;border-radius:6px;background:#f7f9fb;min-width:132px}
#businessBackendFilters>.business-filter-group>summary{padding:10px 12px;cursor:pointer;font-size:14px;color:#3c566d}
#businessBackendFilters>.business-filter-group[open]{flex-basis:100%;background:#fff}
#businessBackendFilters .filter-grid{padding:8px 16px 16px;gap:16px}
#businessBackendFilters .filter-grid :is(label,.filter-field){margin:0;font-size:14px;color:#465b6e}
#businessBackendFilters .filter-grid small{font-size:13px;color:#596f82}
#businessBackendFilters .ms-option{display:flex;flex-direction:row}

/* 商机详情：固定标题、分区导航与保存栏，中间独立滚动。 */
#modal.opportunity-dialog{width:min(1200px,96vw);height:92vh;max-height:92vh;padding:0;border:1px solid #d7e1e9;overflow:hidden;box-shadow:0 24px 80px #172d4540}
#modal.opportunity-dialog[open]{display:flex;flex-direction:column}
.opportunity-dialog .modal-head{flex-shrink:0;padding:16px 26px;margin:0;background:#fff;border-bottom:1px solid #dde6ee}
.opportunity-dialog .modal-head h2{font-size:20px}
.opportunity-section-nav{display:flex;gap:4px;flex-shrink:0;padding:10px 22px;background:#fff;border-bottom:1px solid #dde6ee;overflow-x:auto}
.opportunity-section-nav button{padding:8px 12px;border:0;background:#edf3f8;color:#365f84;white-space:nowrap;font-size:14px}
.opportunity-section-nav button:hover{background:#dce9f3;filter:none}
.opportunity-dialog #modalBody{flex:1;min-height:0;overflow-y:auto;padding:24px 28px;background:#f4f7fa;scroll-padding:20px;scrollbar-gutter:stable}
.opportunity-dialog .opportunity-heading{gap:24px;margin-bottom:20px}
.opportunity-dialog .opportunity-heading>div:first-child{flex:1;min-width:0}
.opportunity-dialog .opportunity-heading h2{font-size:24px;line-height:1.5;margin:6px 0 10px}
.opportunity-dialog .opportunity-heading p{font-size:14px;color:#52697d}
.opportunity-dialog .opportunity-heading>.tags{max-width:32%;justify-content:flex-end}
.opportunity-dialog .section-kicker{font-size:12px;color:#52697d;letter-spacing:1px}
.opportunity-dialog .detail-section{padding:22px 24px;margin:0 0 20px;border-color:#d7e1e9}
.opportunity-dialog .detail-section h3{font-size:18px;line-height:1.6}
.opportunity-dialog .pending-section{padding:14px 20px}
.opportunity-dialog .pending-section .section-kicker{display:none}
.opportunity-dialog .pending-section h3{font-size:16px}
.opportunity-dialog .pending-section p{display:none}
.opportunity-dialog .pending-chip,.opportunity-dialog .pending-count{font-size:13px}
.opportunity-dialog .basic-section>.section-title{align-items:center;margin-bottom:4px;padding-bottom:16px}
.opportunity-dialog .basic-section>.section-title .muted{max-width:55%;font-size:13px;text-align:right}
.opportunity-dialog .business-field-group{margin:0;padding:24px 0;border-top:1px solid #e1e8ef}
.opportunity-dialog .business-field-group:last-child{padding-bottom:0}
.opportunity-dialog .business-field-group .group-head{margin:0 0 20px;padding:0;border:0;gap:8px 14px}
.opportunity-dialog .business-field-group .group-head h4{border-left:3px solid #365f84;padding-left:10px;font-size:16px}
.opportunity-dialog .business-field-group .group-head p{font-size:13px;color:#596f82}
.opportunity-dialog .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.opportunity-dialog label{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;font-size:14px;line-height:1.6;color:#465b6e}
.opportunity-dialog .form-grid>label{margin:0}
.opportunity-dialog input:not([type=checkbox]):not([type=hidden]),.opportunity-dialog select{width:100%;height:44px;padding:9px 12px;line-height:24px;font-size:15px;border-color:#b8c8d5}
.opportunity-dialog textarea{width:100%;min-height:104px;font-size:15px;line-height:1.7;padding:10px 12px;border-color:#b8c8d5}
.opportunity-dialog .business-field-group textarea[name=title]{min-height:78px;height:78px}
.opportunity-dialog label small{font-size:13px;color:#596f82;line-height:1.6}
.opportunity-dialog .field-required{font-size:12px;font-weight:400;color:#8b5b22;margin-left:6px}
.opportunity-dialog .readonly-inline{margin:0 0 2px;padding:12px 16px;border:1px solid #dce5ed;background:#f0f5f9}
.opportunity-dialog .readonly-inline span,.opportunity-dialog .readonly-inline small,.opportunity-dialog .readonly-grid span,.opportunity-dialog .readonly-grid small{font-size:13px;color:#52697d}
.opportunity-dialog .readonly-inline b,.opportunity-dialog .readonly-grid b{font-size:15px;color:#243b50}
.opportunity-dialog .check,.opportunity-dialog .ms-option{flex-direction:row;align-items:center}
.opportunity-dialog .ms-option{margin:0;font-size:14px}
.opportunity-dialog .detail-fields:disabled{opacity:1}
.opportunity-dialog .detail-fields:disabled :is(input,select,textarea,.ms-trigger){background:#f0f4f7;color:#344c61;border-color:#d7e1e9;opacity:1;-webkit-text-fill-color:#344c61}
.opportunity-dialog .detail-fields:disabled .ms-remove{display:none}
.opportunity-dialog .command-box{margin:0 0 20px;padding:22px 24px;border-color:#d7e1e9}
.opportunity-dialog .command-box>b{font-size:18px}
.opportunity-dialog .progress-section form{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;margin-top:18px}
.opportunity-dialog .progress-section form label{margin:0}
.opportunity-dialog .progress-section form label:first-child{grid-row:auto}
.opportunity-dialog .progress-section form label:has(textarea),.opportunity-dialog .progress-section form label:has([name=nextStep]),.opportunity-dialog .progress-section form .buttons{grid-column:1/-1}
.opportunity-dialog .progress-section form .buttons{justify-content:flex-end;margin:0}
.opportunity-dialog .progress-item time{font-size:13px;color:#596f82}
.opportunity-dialog .revision-reason>summary,.opportunity-dialog .system-details>summary{font-size:14px;color:#465b6e}
.opportunity-dialog .opportunity-savebar{flex-shrink:0;margin:0;padding:14px 26px;background:#fff;border-top:1px solid #d7e1e9;justify-content:space-between;box-shadow:0 -4px 16px #243b5008}
.opportunity-savebar>span{font-size:13px;color:#52697d}
.opportunity-savebar>button{min-height:44px;padding:10px 24px;font-size:15px;font-weight:600}
@media(max-width:900px){
 .opportunity-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .opportunity-dialog #modalBody{padding:20px}
 .opportunity-dialog .opportunity-heading{display:block}
 .opportunity-dialog .opportunity-heading>.tags{max-width:none;justify-content:flex-start}
}
@media(max-width:600px){
 #modal.opportunity-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0}
 .opportunity-dialog .modal-head{padding:12px 16px}
 .opportunity-section-nav{padding:8px 12px}
 .opportunity-dialog #modalBody{padding:14px 12px;scrollbar-gutter:auto}
 .opportunity-dialog .detail-section,.opportunity-dialog .command-box{padding:16px}
 .opportunity-dialog .form-grid,.opportunity-dialog .progress-section form{grid-template-columns:minmax(0,1fr)}
 .opportunity-dialog .opportunity-heading h2{font-size:21px}
 .opportunity-dialog .section-title{flex-wrap:wrap;gap:8px}
 .opportunity-dialog .basic-section>.section-title .muted{max-width:none;text-align:left}
 .opportunity-dialog .opportunity-savebar{padding:12px 16px;gap:8px}
 .opportunity-savebar>span{font-size:12px}
 .opportunity-savebar>button{width:100%}
 .opportunity-dialog .progress-item>div{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.field-flash{animation:none}}
.form-validation-error{position:sticky;top:0;z-index:8;padding:12px 16px;background:#fff0ef;border:1px solid #dc8a82;border-radius:6px;color:#9b302a;font-size:14px}
[aria-invalid=true]{outline:2px solid #bc4f44;outline-offset:2px}
.admin-import-summary{padding:12px 16px;background:#fff5df;border-left:4px solid #b47814;color:#694b17}
.admin-import-new td:first-child{border-left:4px solid #b47814;background:#fffbef}
@media(max-width:850px){.sidebar .admin-submenu{flex-wrap:wrap;overflow:visible;max-width:100%}.sidebar .admin-submenu button{min-height:36px}.admin-table :is(button,.button){min-height:32px}}

/* 欠费管理 · 仪表盘：沿用后台白卡、蓝灰字与细边框，图表全部由内联 SVG 绘制。 */
.arrears-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:20px}
.arrears-meta{display:flex;align-items:center;gap:14px;min-width:0;flex-wrap:wrap}
.arrears-sync-pill{display:inline-flex;align-items:center;gap:7px;padding:4px 12px;border-radius:999px;background:#e9f2ec;color:#2f6b4f;font-size:12px;white-space:nowrap}
.arrears-sync-pill .admin-status-dot{background:#3f8f63}
.arrears-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:20px}
.arrears-kpi{display:flex;flex-direction:column;gap:0;padding:22px;min-width:0}
.arrears-kpi-label{font-size:13px;color:#64798d;line-height:1.6}
.arrears-kpi-value{margin:14px 0 10px;font-size:32px;font-weight:600;line-height:1.15;color:var(--brand-blue);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.arrears-kpi-unit{margin-left:6px;font-size:14px;font-weight:500;color:#5b7391}
.arrears-kpi small{display:block;font-size:11px;color:#82909f;line-height:1.7}
/* 同比徽标：涨跌按业务好坏着色（坏账存量/剩余涨为差=红，已清理/清理率涨为好=绿），由调用方翻转 class。 */
.arrears-yoy{display:inline-block;max-width:100%;margin-top:8px;font-style:normal;font-size:11px;line-height:1.6;padding:2px 6px;border-radius:3px;background:#f1f5f9;color:#5b6b7c;white-space:normal;overflow-wrap:anywhere}
.arrears-yoy.up{background:#fdecea;color:#c0392b}
.arrears-yoy.down{background:#eaf7ef;color:#1f7a43}
.arrears-yoy.flat{background:#f1f5f9;color:#5b6b7c}
.arrears-yoy-note{display:inline-block;max-width:min(340px,100%);min-width:0;flex-shrink:1;font-size:11px;line-height:1.7;color:#6b7d8f;text-align:right;white-space:normal;word-break:break-word}
@media(max-width:600px){.arrears-yoy{font-size:10px;padding:2px 5px}.arrears-yoy-note{max-width:100%;font-size:10px}}
.arrears-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.32fr);gap:20px}
.arrears-two>.panel{margin-bottom:20px;min-width:0}
.arrears-center{display:flex;flex-direction:column;align-items:center}
.arrears-chart-wrap{overflow-x:auto;padding:2px 0;max-width:100%}
.arrears-chart{display:block;width:100%;height:auto;min-width:620px}
.arrears-two .arrears-chart{min-width:560px}
.arrears-two .arrears-chart-wrap .arrears-chart{min-width:100%}
.arrears-grid{stroke:#e6edf3;stroke-width:1}
.arrears-axis-line{stroke:#c9d5e0;stroke-width:1}
.arrears-axis-value{font-size:12px;fill:#8797a7}
.arrears-bar-value{font-size:12.5px;fill:#33495f;font-variant-numeric:tabular-nums}
.arrears-bar-label{font-size:12.5px;fill:#7d8d9d}
.arrears-leader{stroke:#cfdae4;stroke-width:1}
.arrears-donut-label{font-size:13px;fill:#4d6275}
.arrears-donut-percent{font-size:13px;fill:#33495f;font-weight:600}
.arrears-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:22px;list-style:none;margin:4px 0 0;padding:0;font-size:12px;color:#64798d}
.arrears-legend li{display:flex;align-items:center}
.arrears-legend-dot{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:7px}
.arrears-legend-dot[data-tone=blue]{background:#5b6cc4}
.arrears-legend-dot[data-tone=green]{background:#22a06b}
.arrears-legend-dot[data-tone=yellow]{background:#f4c552}
.arrears-legend-dot[data-tone=red]{background:#e64545}
.arrears-legend-dot[data-tone=amber]{background:#f2a33c}
.arrears-legend-dot[data-tone=orange]{background:#f2a33c}
.arrears-legend-dot[data-tone=gray]{background:#b9c3ce}
.arrears-legend-line{display:inline-block;width:18px;height:3px;border-radius:2px;margin-right:7px;background:#3b73d1}
.arrears-legend-delta{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px;background:#d64545}
.arrears-rate-line{fill:none;stroke:#3b73d1;stroke-width:2.4}
.arrears-rate-dot{fill:#3b73d1}
.arrears-stack-green{fill:#22a06b}
.arrears-stack-orange{fill:#f2a33c}
.arrears-stack-red{fill:#e64545}
.arrears-group-now{fill:#3d7ddd}
.arrears-group-prev{fill:#b9c3ce}
.arrears-group-delta{font-size:12px;fill:#d64545;font-variant-numeric:tabular-nums}
.arrears-axis-title{font-size:12px;fill:#8b9aa8}
.arrears-week-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:2px 0 16px}
.arrears-week-pill{display:inline-flex;align-items:center;padding:3px 12px;border-radius:999px;background:#eef3f9;color:#3f5b74;font-size:12px;font-variant-numeric:tabular-nums}
.arrears-week-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.arrears-week-card{display:flex;flex-direction:column;gap:8px;padding:16px 18px;border:1px solid #e6edf4;border-radius:8px;background:#fbfcfe;min-width:0}
.arrears-week-label{font-size:12px;color:#64798d;line-height:1.6}
.arrears-week-value{font-size:23px;font-weight:600;line-height:1.25;color:var(--brand-blue);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.arrears-week-note{font-size:11px;color:#82909f;line-height:1.7}
.arrears-week-delta{align-self:flex-start;padding:1px 8px;border-radius:999px;background:#eef3f9;color:#3f5b74;font-size:11px;font-variant-numeric:tabular-nums}
.arrears-delta{color:#2f7d54;font-variant-numeric:tabular-nums}
/* 数据管理：左导入 / 右字段模板说明 / 底部导出，沿用白卡、细边框与蓝灰字。 */
.arrears-data-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);gap:20px}
.arrears-data-grid>.panel{margin-bottom:20px;min-width:0}
/* 24 行字段表：固定列宽避免「必填」被挤断，行距收紧到参考图的单行密度。 */
.arrears-data-grid .admin-table{min-width:0;table-layout:fixed}
.arrears-data-grid .admin-table th,.arrears-data-grid .admin-table td{padding:10px 12px;line-height:1.6}
.arrears-data-grid .admin-table th:nth-child(1),.arrears-data-grid .admin-table td:nth-child(1){width:41%}
.arrears-data-grid .admin-table th:nth-child(2),.arrears-data-grid .admin-table td:nth-child(2){width:41%}
.arrears-data-grid .admin-table th:nth-child(3),.arrears-data-grid .admin-table td:nth-child(3){width:18%;white-space:nowrap}
.arrears-import-actions{margin:16px 0 6px}
.arrears-modes{display:flex;gap:26px;flex-wrap:wrap;margin:6px 0 2px}
.arrears-modes label{display:inline-flex;align-items:center;gap:8px;margin:0;color:#4d6275;font-size:12.5px}
.arrears-modes input{width:auto;margin:0;padding:0}
.arrears-divider{border:0;border-top:1px solid #e8edf2;margin:26px 0 18px}
.arrears-subhead{margin:0 0 4px;font-size:14px;font-weight:600;color:#33495f}
.arrears-warn{color:#a8731f;border-color:#e8d6ae;background:#fff}
.arrears-warn:hover{border-color:#d8bd83;background:#fffaef;filter:none}
.arrears-data-note{margin:12px 0 0;padding:9px 12px;border:1px solid #dfe8f1;border-radius:6px;background:#f7fafc;font-size:12px;color:#41607c;line-height:1.7;overflow-wrap:anywhere}
.arrears-export-actions{margin:2px 0 12px}
.arrears-badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:11px;line-height:1.7;white-space:nowrap}
.arrears-badge.p1{background:#fdecea;color:#bd4132}
.arrears-badge.p2{background:#fff3e0;color:#b0741f}
.arrears-badge.p3{background:#eef2f6;color:#5b6f84}
.arrears-number{font-variant-numeric:tabular-nums;white-space:nowrap}
.arrears-nowrap{white-space:nowrap}
.arrears-project{min-width:220px;max-width:330px}
.arrears-advice{color:#5b6f84;min-width:240px;max-width:430px}
.arrears-two .arrears-bar-value{font-size:11.5px}
.arrears-two .arrears-bar-label{font-size:11.5px}
@media(max-width:1150px){
 .arrears-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .arrears-two{grid-template-columns:1fr}
 .arrears-chart{min-width:560px}
 .arrears-week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .arrears-data-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
 .arrears-kpi{padding:18px 15px}
 .arrears-kpi-value{font-size:26px}
 .arrears-kpis{gap:10px}
 .arrears-legend{gap:14px}
 .arrears-week-grid{grid-template-columns:1fr}
 .arrears-week-value{font-size:19px}
}
/* 项目清单：筛选行 + 可横竖滚动的宽表 + 分页 */
.arrears-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.arrears-filter input[type=search]{flex:0 1 262px;min-width:180px;height:36px;padding:0 11px;border:1px solid var(--border-color);border-radius:6px;background:#fff;color:var(--text-primary);font-size:12px}
.arrears-filter select{height:36px;min-width:132px;padding:0 8px;border:1px solid var(--border-color);border-radius:6px;background:#fff;color:#4d6275;font-size:12px}
.arrears-filter-right{display:flex;align-items:center;gap:10px;margin-left:auto;flex-wrap:wrap}
.arrears-filter-right button,.arrears-filter-right .button{height:36px;padding:0 13px;font-size:12px;white-space:nowrap}
.arrears-danger{color:#b63838;border-color:#e6b8b3;background:#fff}
.arrears-danger:hover{border-color:#cd8b84;background:#fdf3f2;filter:none}
.arrears-sheet{max-height:60vh;overflow:auto;border:1px solid #e4eaf0;border-radius:8px;background:#fff}
.arrears-sheet-table{width:100%;min-width:1560px;border-collapse:collapse;font-size:12px;color:#3d5468}
.arrears-sheet-table th,.arrears-sheet-table td{padding:10px 11px;border-bottom:1px solid #e8edf2;vertical-align:middle;text-align:left;line-height:1.6}
.arrears-sheet-table th{position:sticky;top:0;z-index:2;background:#f4f7fa;color:#5d7183;font-weight:500;white-space:nowrap}
.arrears-sheet-table td{vertical-align:top}
.arrears-check{width:38px;text-align:center!important}
.arrears-check input{width:auto;margin:0}
.arrears-customer{min-width:150px;max-width:230px;color:#4d6275;overflow-wrap:anywhere}
.arrears-strong{font-weight:600;color:#273c51;white-space:nowrap}
.arrears-sheet-table .arrears-project{min-width:210px;max-width:300px;color:#33495f;overflow-wrap:anywhere}
.arrears-pager{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin-top:16px;font-size:12px}
.arrears-page-btn{min-height:32px;padding:0 11px;font-size:12px;background:#f6f9fb;border-color:#e1e9ef;color:#5d7183}
.arrears-page-btn:disabled{opacity:.5;cursor:default;filter:none}
.arrears-page-num{min-width:32px;min-height:32px;padding:0 7px;border:1px solid #e1e9ef;border-radius:5px;background:#fff;color:#5d7183;font-size:12px;font-variant-numeric:tabular-nums}
.arrears-page-num.active{background:var(--brand-blue);border-color:var(--brand-blue);color:#fff}
.arrears-dots{padding:0 3px;color:#95a5b4}
@media(max-width:1150px){
 .arrears-sheet-table{min-width:1480px}
}
@media(max-width:700px){
 .arrears-filter input[type=search]{flex:1 1 100%}
 .arrears-filter select{flex:1 1 44%}
 .arrears-filter-right{margin-left:0;width:100%}
 .arrears-pager{justify-content:flex-start}
}
/* 优先级分析：评分模型说明 + 优先级矩阵散点 + 清理意见清单 */
.arrears-badge.p4{background:#eef2f6;color:#5b6f84}
/* 优先级页：徽标与散点同色（P1 蓝 / P2 绿 / P3 黄 / P4 红） */
.arrears-badge.t1{background:#eef1fb;color:#4a5fa8}
.arrears-badge.t2{background:#f0f8ea;color:#527d3c}
.arrears-badge.t3{background:#fdf6e4;color:#9a7418}
.arrears-badge.t4{background:#fdeeee;color:#b05454}
.arrears-model{display:grid;gap:9px;font-size:13px;color:#4d6275;line-height:1.9}
.arrears-model-line{margin:0}
.arrears-model-line b{color:#273c51;font-weight:600;margin-right:2px}
.arrears-model .arrears-badge{margin-right:4px;font-size:10.5px;padding:2px 8px}
.arrears-scatter{min-width:760px}
.arrears-dot{opacity:.92;transition:opacity .12s ease}
.arrears-dot:hover,.arrears-dot.is-hot{opacity:1;stroke:#fff;stroke-width:1.5}
.arrears-tip{opacity:0;visibility:hidden;pointer-events:none}
.arrears-tip.is-visible{opacity:1;visibility:visible}
.arrears-tip-box{fill:#fff;stroke:#f9c95d;stroke-width:1.4;filter:drop-shadow(0 3px 8px rgba(35,61,88,.18))}
.arrears-tip-name{font-size:14px;font-weight:600;fill:#333}
.arrears-tip-line{font-size:13px;fill:#666}
.arrears-opinion-table tbody tr.is-active{background:#f2f7fb}
.arrears-opinion{max-height:none}
.arrears-opinion-table{width:100%;min-width:860px;border-collapse:collapse;font-size:12px;color:#3d5468}
.arrears-opinion-table th,.arrears-opinion-table td{padding:12px 10px;border-bottom:1px solid #e8edf2;vertical-align:top;text-align:left;line-height:1.7}
.arrears-opinion-table th{position:sticky;top:0;z-index:2;background:#f4f7fa;color:#5d7183;font-weight:500;white-space:nowrap}
.arrears-opinion-name{min-width:180px;max-width:230px;color:#33495f;overflow-wrap:anywhere}
.arrears-opinion-table th:nth-child(4),.arrears-opinion-table td:nth-child(4){text-align:right}
.arrears-opinion-table th:nth-child(7),.arrears-opinion-table td:nth-child(7){min-width:230px;max-width:330px}
.arrears-opinion-table td:nth-child(8){white-space:nowrap}
@media(max-width:700px){
 .arrears-model{font-size:12px;line-height:1.8}
 .arrears-scatter{min-width:640px}
}

/* 欠费清理进度看板：五个可点选页签 + 深色模式，驾驶舱与工作台共用同一份样式。 */
.arcl-dash{--arcl-bg:#f4f7fb;--arcl-card:#ffffff;--arcl-line:#e6ebf2;--arcl-text:#1b2733;--arcl-muted:#6b7a8d;--arcl-blue:#2563eb;--arcl-blue-dark:#1e40af;--arcl-teal:#0d9488;--arcl-amber:#d97706;--arcl-red:#dc2626;--arcl-track:#edf1f6;--arcl-faint:#9aa7b6;--arcl-shadow:0 2px 12px rgba(30,50,80,.06);background:var(--arcl-bg);color:var(--arcl-text);padding:20px;border-radius:12px;font-family:inherit;font-size:13px;line-height:1.5;min-width:0}
.arcl-dash.dark{--arcl-bg:#08101d;--arcl-card:#111d2f;--arcl-line:#243550;--arcl-text:#e8f0fb;--arcl-muted:#9fb2cc;--arcl-blue:#5b9cff;--arcl-blue-dark:#93c0ff;--arcl-teal:#2dd4bf;--arcl-amber:#f5b14c;--arcl-red:#ff6b6b;--arcl-track:#263752;--arcl-faint:#7f93af;--arcl-shadow:0 2px 14px rgba(0,0,0,.35)}
.arcl-dash *{box-sizing:border-box}
.arcl-top{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.arcl-top h2{margin:0;font-size:24px;font-weight:700;letter-spacing:.3px}
.arcl-top p{margin:5px 0 0;font-size:12px;color:var(--arcl-muted)}
.arcl-actions{display:flex;gap:8px;flex-wrap:wrap}
.arcl-btn{border:1px solid var(--arcl-line);background:var(--arcl-card);color:var(--arcl-muted);border-radius:8px;padding:7px 14px;font-size:12px;font-family:inherit;cursor:pointer}
.arcl-btn:hover{border-color:var(--arcl-blue);color:var(--arcl-blue)}
.arcl-btn.primary{background:var(--arcl-blue);border-color:var(--arcl-blue);color:#fff;font-weight:600}
.arcl-btn.primary:hover{filter:brightness(.95);color:#fff}
.arcl-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.arcl-group-head{grid-column:1/-1;font-size:13px;font-weight:700;margin:4px 0 -6px}
.arcl-kpi{position:relative;overflow:hidden;background:var(--arcl-card);border:1px solid var(--arcl-line);border-radius:12px;padding:16px 18px;box-shadow:var(--arcl-shadow)}
.arcl-kpi::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--arcl-accent,var(--arcl-blue))}
.arcl-kpi-label{display:block;font-size:12px;color:var(--arcl-muted);margin-bottom:8px}
.arcl-kpi-value{display:block;font-size:24px;font-weight:700;line-height:1.2;letter-spacing:.3px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.arcl-kpi small{display:block;margin-top:5px;font-size:11px;color:var(--arcl-muted)}
.arcl-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--arcl-line);padding-bottom:10px;margin-bottom:16px}
.arcl-tab{border:1px solid var(--arcl-line);background:var(--arcl-card);color:var(--arcl-muted);border-radius:8px;padding:9px 16px;font-size:13px;font-family:inherit;cursor:pointer;transition:.15s}
.arcl-tab:hover{border-color:var(--arcl-blue);color:var(--arcl-blue)}
.arcl-tab.active{background:var(--arcl-blue);border-color:var(--arcl-blue);color:#fff;font-weight:600}
.arcl-panel{display:none}
.arcl-panel.active{display:block}
.arcl-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.arcl-card{background:var(--arcl-card);border:1px solid var(--arcl-line);border-radius:12px;padding:18px 20px;box-shadow:var(--arcl-shadow);margin-bottom:16px;min-width:0}
.arcl-card h3{font-size:15px;font-weight:700;margin:0 0 4px}
.arcl-desc{font-size:12px;color:var(--arcl-muted);margin:0 0 12px;line-height:1.7}
.arcl-chart{width:100%;height:auto;display:block;overflow:visible}
.arcl-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:var(--arcl-muted);margin-top:10px}
.arcl-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}
.arcl-empty{padding:18px;text-align:center;font-size:12px;color:var(--arcl-muted)}
.arcl-filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.arcl-filter-label{font-size:12px;color:var(--arcl-muted)}
.arcl-chip{border:1px solid var(--arcl-line);background:var(--arcl-card);color:var(--arcl-muted);border-radius:16px;padding:5px 12px;font-size:12px;font-family:inherit;cursor:pointer}
.arcl-chip:hover{border-color:var(--arcl-blue);color:var(--arcl-blue)}
.arcl-chip.active{background:#dbeafe;border-color:var(--arcl-blue);color:var(--arcl-blue);font-weight:600}
.arcl-dash.dark .arcl-chip.active{background:#1c3658}
.arcl-search{border:1px solid var(--arcl-line);background:var(--arcl-card);color:var(--arcl-text);border-radius:16px;padding:5px 12px;font-size:12px;font-family:inherit;width:220px;outline:none}
.arcl-search:focus{border-color:var(--arcl-blue)}
.arcl-table-wrap{overflow-x:auto}
.arcl-table{width:100%;border-collapse:collapse;font-size:12px;min-width:720px}
.arcl-table th{text-align:right;padding:10px 8px;border-bottom:2px solid var(--arcl-line);color:var(--arcl-muted);font-weight:600;white-space:nowrap;cursor:pointer;user-select:none}
.arcl-table th:hover{color:var(--arcl-blue)}
.arcl-table td{padding:9px 8px;border-bottom:1px solid var(--arcl-line);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.arcl-table th.arcl-left,.arcl-table td.arcl-left{text-align:left}
.arcl-tag{display:inline-block;padding:2px 8px;border-radius:10px;background:var(--arcl-track);color:var(--arcl-muted);font-size:11px}
.arcl-risk{display:inline-block;padding:2px 8px;border-radius:10px;color:#fff;font-size:11px;font-weight:600;white-space:nowrap}
.arcl-mini{display:inline-flex;align-items:center;gap:7px;justify-content:flex-end}
.arcl-mini-track{width:64px;height:6px;border-radius:4px;background:var(--arcl-track);overflow:hidden;display:inline-block}
.arcl-mini-track i{display:block;height:100%;border-radius:4px}
.arcl-mini b{width:42px;text-align:right;font-size:11px;font-weight:600}
.arcl-footer{font-size:11px;color:var(--arcl-muted);line-height:1.8;padding:4px 2px}
@media (max-width:900px){
  .arcl-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .arcl-grid2{grid-template-columns:1fr}
}
@media (max-width:600px){
  .arcl-dash{padding:14px}
  .arcl-kpis{grid-template-columns:1fr}
  .arcl-top h2{font-size:20px}
  .arcl-search{width:100%}
}
