.team-page .products-panel,
.team-page .team-activity { padding:20px 20px 16px; }
.team-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:0 0 20px; }
.team-page .team-metrics .kpi { min-height:100px; padding:17px 20px; gap:10px; }
.team-table { overflow-x:auto; }
.team-table table { width:100%; min-width:630px; }
.team-table .r { text-align:right; font-variant-numeric:tabular-nums; }
.team-profile .team-kpi-pending { color:#667180; font-size:18px; font-weight:500; }
.team-link { color:#1274a5; }
.team-page .team-table td { height:58px; }
.team-page .team-table .t-empty { height:112px; text-align:center; color:#74757c; }
.team-chip { display:inline-flex; padding:2px 8px; border:1px solid #e5e8ed; border-radius:5px; color:#48566b; background:#f7f9fc; font-size:12px; line-height:1.6; }
.team-profile .team-metrics { grid-template-columns:repeat(5,minmax(0,1fr)); }
.team-profile .team-metrics:has([data-employee-profit]) { grid-template-columns:repeat(6,minmax(0,1fr)); }
.team-profile .team-metrics:has([data-employee-profit]) .kpi { padding-inline:15px; }
.profit-period { display:flex; align-items:center; flex-wrap:wrap; gap:10px; color:var(--text-regular); font-size:14px; }
.profit-period label { display:inline-flex; align-items:center; gap:12px; }
.profit-period input { min-height:36px; border:1px solid var(--border-strong); border-radius:7px; padding:4px 10px; color:var(--text-regular); background:#fff; }
.profit-page .team-table table { min-width:720px; }
.profit-page .team-table td { height:51px; }
.profit-table .team-line-meta { font-size:11px; }
.profit-status { color:var(--text-regular); font-size:13px; }
.team-profile .team-metrics .kpi-value { font-size:clamp(22px,2.2vw,34px); }
.team-attributes { display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px; margin:0 0 22px; }
.team-attributes div { display:flex; align-items:center; gap:8px; }
.team-attributes dt { font-size:13px; color:#86909c; }
.team-attributes dd { margin:0; color:#344054; }
.team-tabs { display:flex; align-items:center; gap:23px; border-bottom:1px solid #ececef; }
.team-tabs a { position:relative; display:block; padding:0 0 13px; color:#667180; }
.team-tabs a[aria-current=page] { color:#1274a5; font-weight:600; }
.team-tabs a[aria-current=page]::after { content:""; position:absolute; height:2px; background:currentColor; left:0; right:0; bottom:-1px; border-radius:2px; }
.team-caption { margin:14px 0; color:#74757c; font-size:12px; }
.team-dialog { width:min(440px,calc(100% - 32px)); padding:0; border:1px solid #e5e8ed; border-radius:16px; box-shadow:0 20px 60px -18px #18233357; color:#1d2129; }
.team-dialog::backdrop { background:rgba(22,30,42,.27); }
.team-dialog form { padding:24px; }
.team-dialog header,.team-dialog footer { display:flex; align-items:center; gap:10px; }
.team-dialog header { justify-content:space-between; margin:0 0 20px; }
.team-dialog h2 { margin:0; font-size:20px; }
.team-dismiss { width:32px; height:32px; padding:0; border:0; border-radius:8px; background:transparent; color:#667180; font-size:22px; line-height:1; }
.team-dismiss:hover { background:#f5f6f8; }
.team-dialog label { display:grid; gap:6px; margin:0 0 16px; font-size:13px; font-weight:550; }
.team-dialog input,.team-dialog select { width:100%; height:40px; border:1px solid #d6dbe3; border-radius:8px; padding:0 11px; background:white; }
.team-dialog .team-form-error { color:#b42a3b; font-size:13px; }
.team-dialog .team-form-error:empty { display:none; }
.team-dialog footer { justify-content:flex-end; margin:23px 0 0; }
.team-confirm-copy { margin:0 0 16px; color:#566477; line-height:1.7; }
.team-candidates { margin:0 0 16px; padding:0; border:0; }
.team-candidates legend { margin-bottom:8px; font-weight:600; }
.team-candidates label { display:flex; align-items:center; gap:10px; margin:0 0 6px; padding:12px; border:1px solid #e5e8ed; border-radius:8px; }
.team-candidates input { width:16px; height:16px; }
.team-candidates small { display:block; color:#667180; font-weight:400; }
.team-profile .team-tabs { overflow-x:auto; white-space:nowrap; }
.team-section-title { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:20px 0 12px; }
.team-section-title h2 { margin:0; color:#1d2838; font-size:16px; line-height:1.4; font-weight:650; }
.team-section-title span,.team-line-meta,.team-unspecified { font-size:12px; font-weight:400; color:#677485; }
.team-line-meta { display:block; margin-top:3px; line-height:1.35; overflow-wrap:anywhere; }
.team-product-name { display:block; line-height:1.45; }
.team-table-productSales td:nth-child(2),.team-table-productSales td:nth-child(5),.team-table-analysis td:first-child { white-space:normal; }
.team-table-productSales td:nth-child(4),.team-table-productSales td:last-child,.team-table-analysis td:nth-child(3),.team-table-analysis td:nth-child(4) { white-space:nowrap; font-variant-numeric:tabular-nums; }
.team-table-productSales :is(th,td):last-child,.team-table-analysis :is(th,td):nth-child(3),.team-table-analysis :is(th,td):nth-child(4) { text-align:right; }
.team-table-analysis :is(th,td):last-child { text-align:right; white-space:nowrap; }
.team-sales-note { color:#6e5834; margin:10px 0; font-size:13px; }
.team-trend { border-bottom:1px solid #e9edf3; padding-bottom:17px; }
.team-trend-scroll { overflow-x:auto; padding:2px 0; }
.team-trend-chart { display:grid; grid-template-columns:repeat(var(--months),minmax(50px,1fr)); min-width:calc(var(--months) * 50px); }
.team-month { display:flex; flex-direction:column; align-items:stretch; gap:6px; text-align:center; color:#546376; text-decoration:none; font-variant-numeric:tabular-nums; }
.team-month b,.team-month small { font-weight:500; font-size:12px; }
.team-trend-track { position:relative; display:block; height:86px; background:linear-gradient(to top,transparent var(--zero),#e0e6ee var(--zero),#e0e6ee calc(var(--zero) + 1px),transparent calc(var(--zero) + 1px)); }
.team-trend-track i { position:absolute; left:30%; width:40%; max-width:30px; min-height:1px; border-radius:3px 3px 0 0; background:#2e9fd7; }
.team-trend-track .team-missing-bar { height:2px; bottom:var(--zero); background:#aeb9c8; }
.team-month.is-negative i { background:#aa6e65; border-radius:0 0 3px 3px; }
.team-month:hover i,.team-month:focus-visible i { background:#1d719a; }
.team-month:hover,.team-month:focus-visible { color:#10648f; }
.team-visit-summary { padding-bottom:5px; }
.team-visit-summary dl { display:flex; flex-wrap:wrap; gap:22px 50px; margin:15px 0; }
.team-visit-summary dt { margin-bottom:6px; color:#677485; font-size:13px; }
.team-visit-summary dd { margin:0; font-size:18px; font-weight:600; font-variant-numeric:tabular-nums; color:#283647; }
.team-profile .team-table-productSales th:first-child { width:17%; }
.team-profile .team-table-productSales th:nth-child(2) { width:28%; }
.team-profile .team-table-productSales th:nth-child(3) { width:12%; }
.team-profile .team-table-productSales th:nth-child(4) { width:10%; }
.team-profile .team-table-productSales th:nth-child(5) { width:21%; }
.team-profile .team-table-productSales th:last-child { width:12%; }
.team-profile .team-table-analysis th:first-child { width:38%; }
.team-profile .team-table-analysis th:last-child { width:12%; }
.team-page .work-directory .team-table th:first-child { width:16%; }

.roster { --roster-accent:#1a6387; --roster-edge:#e0e5ec; }
.roster .pv-head { margin-bottom:18px; }
.roster-summary { display:flex; flex-wrap:wrap; align-items:center; gap:18px 0; margin:0 0 24px; }
.roster-summary div { display:flex; align-items:baseline; gap:12px; padding-inline:22px; border-left:1px solid var(--roster-edge); }
.roster-summary div:first-child { padding-left:0; border-left:0; }
.roster-summary dt { color:#5c6878; font-size:13px; }
.roster-summary dd { margin:0; font-size:22px; font-weight:650; font-variant-numeric:tabular-nums; color:#243448; line-height:1; }
.roster-summary small { margin-left:4px; color:#657184; font-size:12px; font-weight:400; }
.roster .roster-directory { border:1px solid var(--roster-edge); border-radius:14px; }
.roster .pv-filter { padding:14px 18px; margin:0; }
.roster .pv-search, .roster .pv-filter select { height:36px; min-height:36px; border-radius:8px; }
.roster .pv-go { height:28px; padding:0 13px; border-radius:6px; }
.roster .roster-table { border:0; border-radius:0; }
.roster .roster-table table { min-width:630px; }
.roster .roster-table th { height:39px; color:#526070; background:#f4f6f9; border-block:1px solid var(--roster-edge); font-weight:500; font-size:13px; }
.roster .roster-table th::after { display:none; }
.roster .roster-table td { height:63px; padding-block:9px; border-color:#e9edf2; }
.roster .roster-table :is(th,td):first-child { width:23%; padding-left:22px; }
.roster-table th:nth-child(2) { width:15%; }
.roster-table th:nth-child(3) { width:20%; }
.roster .roster-table .roster-activity { padding-left:clamp(20px,3.3vw,60px); }
.roster .roster-table .roster-action { width:95px; text-align:right; padding-right:20px; }
.roster-person { display:inline-flex; max-width:100%; align-items:center; gap:11px; color:#1e2e43; }
.roster-table [data-team-tone="0"] { --team-ink:#446a61; --team-fill:#edf4f0; }
.roster-table [data-team-tone="1"] { --team-ink:#836637; --team-fill:#f7f2e9; }
.roster-table [data-team-tone="2"] { --team-ink:#4a678c; --team-fill:#e8f4f7; }
.roster-table [data-team-tone="3"] { --team-ink:#736085; --team-fill:#f3eff8; }
.roster-avatar { flex:0 0 33px; width:33px; height:33px; display:grid; place-items:center; background:var(--team-fill,#f0f2f4); color:var(--team-ink,#626c79); border-radius:11px; font-size:14px; font-weight:600; }
.roster-identity { min-width:0; display:grid; gap:2px; }
.roster-identity b, .roster-identity small, .roster-team { white-space:normal; overflow-wrap:anywhere; }
.roster-identity b { font-size:15px; font-weight:600; }
.roster-identity small, .roster-last { font-size:12px; color:#687586; line-height:1.45; }
.roster-team { color:#47576c; }
.roster-team.unassigned { color:#697585; }
.roster-money { color:#203348; font-weight:600; font-size:15px; letter-spacing:.005em; }
.roster-money small { margin-right:4px; font-size:12px; font-weight:500; color:#637187; }
.roster-count { font-weight:550; color:#34455b; }
.roster-count small { font-size:12px; font-weight:400; color:#657184; }
.roster-last { display:block; margin-top:2px; }
.roster-status { display:inline-flex; align-items:baseline; gap:7px; white-space:normal; font-size:12px; line-height:1.55; color:#765c30; }
.roster-status::before { content:""; width:6px; height:6px; flex:none; border-radius:50%; align-self:center; background:#bc914d; }
.roster-action a { display:inline-flex; align-items:center; justify-content:flex-end; gap:4px; min-height:32px; font-size:13px; font-weight:500; color:var(--roster-accent); }
.roster-action svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.roster .roster-table tbody tr:is(:hover,:focus-within) td { background:#f0f8fb; }
.roster .roster-table tbody tr:is(:hover,:focus-within) .roster-identity b { color:var(--roster-accent); }
.roster .tpager { min-height:45px; padding:7px 18px; border-top:1px solid var(--roster-edge); }


/* 人员档案里的「对应的业务名字」（金蝶业务员账户、高德打卡名）。平时两行列出来；点「调整」展开成两栏，一栏一类。 */
.team-links { margin-bottom:18px; padding:18px 22px; }
.team-links > header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.team-links h2 { margin:0; font-size:16px; font-weight:600; color:#1d2129; display:flex; align-items:center; gap:6px; }
.team-links-list { margin:0; display:grid; gap:0; }
.team-links-list > div { display:grid; grid-template-columns:128px minmax(0,1fr); align-items:center; gap:12px; padding:11px 0; border-top:1px solid #eef0f3; }
.team-links-list dt { font-size:14px; color:#4e5969; }
.team-links-list dd { margin:0; display:flex; flex-wrap:wrap; gap:8px 22px; font-size:14px; color:#1d2129; }
.team-links-item b { font-weight:600; }
.team-links-item em { font-style:normal; margin-left:8px; color:#4e5969; }
.team-links-nil { margin:0; font-size:14px; color:#4e5969; }
.team-links-edit { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; border-top:1px solid #eef0f3; padding-top:16px; }
.team-links-group h3 { margin:0 0 8px; font-size:14px; font-weight:600; color:#1d2129; }
.team-links-group ul { list-style:none; margin:0 0 10px; padding:0; }
.team-links-group li { display:grid; grid-template-columns:minmax(0,auto) minmax(0,1fr) auto; align-items:center; gap:12px; padding:9px 0; border-bottom:1px solid #eef0f3; font-size:14px; color:#1d2129; }
.team-links-group li b { font-weight:600; }
.team-links-group li span { color:#4e5969; }
.team-links-group .team-links-nil { padding:9px 0; margin-bottom:10px; border-bottom:1px solid #eef0f3; }
.team-links-drop { border:0; background:none; padding:4px 0; font:inherit; font-size:13px; color:#1a73b5; cursor:pointer; }
.team-links-drop:hover { color:#b42318; }
.team-links-group .xs-trigger, .team-links-group select { width:100%; }
.team-links > footer { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:16px; }
.team-links > footer .team-form-error { margin:0 auto 0 0; }
@media (max-width:760px) {
  .team-links-edit { grid-template-columns:1fr; gap:18px; }
  .team-links-list > div { grid-template-columns:1fr; gap:4px; }
}
/* 同一张卡片放在「设置 → 员工账号 → 账号设置」页上：和上面的账号表单一样宽。 */
.team-links.cp-links { max-width: 830px; margin: 18px 0 0; border: 1px solid #e1e5ed; border-radius: 16px; background: #fff; padding: 22px 30px; }

