/* === [pages-customers.css] 聚合入口：crm-shell / pages-pool / pages-mine 已在 base.html 单独加载 === */
/* ==========================================================================
   宝之通增长中台 · pages-customers.css — 客户公海列表 v2 页面级覆写
   --------------------------------------------------------------------------
   从 app.css 拆出（P6.1）。加载顺序：base → layout → components → pages-admin → pages-customers → app。
   涵盖：.pool-list-table、.pool-col-*、.pool-detail-drawer、.pool-kv-*、.crm-* 客户公海行渲染。
   --------------------------------------------------------------------------
   TOC（章节锥点）— grep '=== \[<id>\]' 可直接跳转：
     [pool-list-v2]             公海列表主表格 v2：.pool-list-table / .pool-col-* / .pool-kv-*
     [crm-my-pool]              我的客户/团队跟进：.crm-* chip + 移动卡片
     [pool-hero-call]           P7 详情页 hero 内主拨号按钮
     [pool-table-sort]          P7 可点击排序的表头
     [customer-batch-bar]       批量操作浮条（已废弃） - 保留兼容顶样式
     [customer-table-base]      customer 表格基础（由 app.css 迁入）：.customer-rich-table / .customer-summary-row
     [customer-detail-hero]     customer 详情页 hero 与电话区（由 app.css 迁入）
     [customer-table-detail]    customer 表格详细规则与空状态（由 app.css 迁入）
     [pool-filter-chips]        pool 页 filter chips + table helpers
     [pool-company-cell]        公司名单元格
     [pool-main-chips]          主筛 chip 行（评分/电话状态）
     [pool-drawer-sections]     详情抽屛内 section 包裹
     [pool-more-dropdown]       “更多操作” dropdown 包裹
     [task-wizard]              任务向导（由 pipeline/list.html 迁入）
     [business-profile-form]    业务画像表单（由 my_business.html 迁入）
     [detail-import-trash]      补齐 detail / import / trash 模板使用但未定义的样式（round25 审计）
     [detail-hero-card]         detail.html：顶栏卡片 hero
     [detail-timeline]          detail.html：跟进时间线
     [import-config-single]     import.html：单文件配置块
     [import-result-actions]    import.html：导入结果操作行
     [trash-table]              trash.html：回收站表格
     [batch-controls-shared]    由 app.css 迁入的批量操作栏 / dropdown / 表格截断 / 响应式覆写
   ========================================================================== */

/* === [pool-list-v2] 客户公海列表 v2：信息前置、样式精简 === */
.pool-list-table { min-width: 860px; border-spacing: 0 10px !important; }

.pool-list-table thead th {
    padding: 8px 14px 4px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 0;
    background: transparent !important;
}

.pool-col-check { width: 44px; }
.pool-col-follow { width: 128px; }
.pool-col-city { width: 96px; }
.pool-col-industry { width: 132px; }
.pool-col-phone-status { width: 72px; }
.pool-col-assigned { width: 110px; }
.pool-col-last-follow { width: 116px; }
.pool-col-real-phone { width: 120px; }
.pool-col-mobiles { width: 154px; }
.pool-col-ai-summary { width: 240px; }

/* AI 结论列：完整显示，最多 4 行 */
.pool-cell-ai-summary { vertical-align: top; }
.pool-ai-reason-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    word-break: break-all;
}

/* 手机号列 */
.pool-cell-mobiles { vertical-align: top; }
.pool-mobile-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 3px;
}
.pool-mobile-name {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

/* 法人行 */
.pool-legal-person {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.pool-summary-row > td {
    padding: 14px 14px !important;
    background: var(--surface) !important;
    border: 1px solid var(--surface-border) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    transition: background var(--motion-fast) var(--easing);
}

.pool-summary-row > td:first-child {
    border-left: 1px solid var(--surface-border) !important;
    border-top-left-radius: var(--radius-sm);
    border-bottom-left-radius: var(--radius-sm);
}
.pool-summary-row > td:last-child {
    border-right: 1px solid var(--surface-border) !important;
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

.pool-summary-row:hover > td { background: var(--surface-soft) !important; }

.pool-summary-row.expanded > td { border-bottom-color: transparent !important; box-shadow: none !important; }

.pool-company-name {
    display: inline;
    margin: 0;
    font-size: var(--fs-lg);
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-main);
}

.pool-grade {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    color: var(--surface);
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1;
}

/* grade colors defined in pages-pool.css — removed duplicates */

.pool-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 9px;
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-secondary);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-decoration: none;
}

.pool-phone {
    color: var(--accent-dark);
    font-size: var(--fs-base);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.pool-source-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.pool-kv-item {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.pool-kv-label {
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pool-kv-value {
    color: var(--text-main);
    font-size: var(--fs-sm);
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.pool-kv-value-full { grid-column: 1 / -1; }

.pool-col-follow { vertical-align: top !important; }

.pool-detail-drawer {
    padding: 14px 16px 16px;
    border: 1px solid var(--surface-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: var(--surface-soft);
}

.pool-pitch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.pool-pitch-card {
    padding: 12px;
    border: 1px solid var(--surface-muted);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.pool-pitch-card-title {
    margin-bottom: 6px;
    color: var(--sidebar-light);
    font-size: 12px;
    font-weight: 700;
}

.pool-pitch-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.pool-source-details {
    margin-top: 12px;
    border: 1px solid var(--surface-muted);
    border-radius: var(--radius-md);
    background: var(--surface);
    overflow: hidden;
}

.pool-source-details summary {
    padding: 10px 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.pool-source-details .pool-source-grid {
    margin: 0;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--surface-muted);
}

.pool-list-table .company-meta,
.pool-list-table .phone-list-preview {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
    overflow: visible;
    max-width: none;
    white-space: pre-wrap;
}

.pool-list-table .customer-main-cell .company-name { max-width: none; }

@media (min-width: 1200px) { .pool-source-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) { .pool-source-grid { grid-template-columns: 1fr; }
    .crm-workspace-bar { align-items: stretch; flex-direction: column; }
    .crm-command-actions { justify-content: flex-start; }
    .crm-view-strip {
        width: 100%;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
    }

    .task-center-tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
}

.pool-detail-note {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--surface-muted);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.pool-detail-note-title {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.pool-detail-note p {
    margin: 0;
    max-height: 120px;
    overflow: auto;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.pool-detail-section-title {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.pool-pitch-card-primary { border-color: rgba(5, 150, 105, 0.4) !important; box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.12); }

.pool-detail-foot { margin-top: 10px; text-align: right; }

.pool-col-follow { vertical-align: middle !important; }

/* task-center-hint-bar / stats / tabs / filter 已迁至 pages-pipeline.css */

@media (min-width: 901px) {
    .ai-queue-card {
        padding: 14px 16px !important;
    }

    .import-step {
        padding: 12px 14px !important;
    }

    .import-step-grid {
        gap: 10px !important;
    }
}
.nav-badge {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 999px;
    background: var(--danger);
    color: var(--surface);
    vertical-align: middle;
}
.sidebar .nav-link { position: relative; }

/* CRM customer pool list: dense, stable columns for day-to-day sales operations. */
.crm-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.crm-summary-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    align-items: center;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-main) !important;
    text-decoration: none;
}
.crm-summary-item:hover { border-color: var(--accent-line); background: var(--accent-softer); }
.crm-summary-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}
.crm-summary-item strong {
    grid-row: span 2;
    color: var(--text-main);
    font-size: 24px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.crm-summary-item span:last-child { color: var(--text-muted); font-size: 12px; }
.crm-summary-warning { border-left: 3px solid var(--warning); }
.crm-summary-success { border-left: 3px solid var(--success); }

.billing-ledger-table .billing-col-toggle {
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    padding-left: 8px;
    padding-right: 0;
}

/* 积分流水：表头/表格左右贴齐卡片边缘 */
.body-role-manager .crm-page-stack > .table-card:has(.billing-ledger-table),
.body-role-sales .crm-page-stack > .table-card:has(.billing-ledger-table) {
    padding: 0 !important;
}

.body-role-manager .table-card:has(.billing-ledger-table) .table-responsive,
.body-role-sales .table-card:has(.billing-ledger-table) .table-responsive {
    overflow-x: auto;
}

@media (min-width: 901px) {
    .body-role-manager .billing-ledger-table thead,
    .body-role-sales .billing-ledger-table thead {
        background: var(--surface-soft);
    }

    .body-role-manager .billing-ledger-table thead th,
    .body-role-sales .billing-ledger-table thead th {
        background: transparent;
    }

    .body-role-manager .billing-ledger-table thead th:first-child,
    .body-role-manager .billing-ledger-table tbody td:first-child,
    .body-role-sales .billing-ledger-table thead th:first-child,
    .body-role-sales .billing-ledger-table tbody td:first-child {
        padding-left: 16px;
    }

    .body-role-manager .billing-ledger-table thead th:last-child,
    .body-role-manager .billing-ledger-table tbody td:last-child,
    .body-role-sales .billing-ledger-table thead th:last-child,
    .body-role-sales .billing-ledger-table tbody td:last-child {
        padding-right: 16px;
    }
}

.billing-ledger-group-row {
    background: rgba(37, 99, 235, 0.04);
}

.billing-ledger-group-row:hover {
    background: rgba(37, 99, 235, 0.07);
}

.billing-ledger-detail-row {
    background: var(--surface);
}

.billing-ledger-detail-desc {
    padding-left: 12px;
    border-left: 2px solid var(--surface-border);
}

.billing-group-toggle {
    color: var(--accent);
    line-height: 1;
}

.billing-group-toggle:hover {
    color: var(--accent-pressed);
}

/* === [crm-my-pool] 已迁至 pages-mine.css === */

.crm-pool-table {
    min-width: 1300px;
    table-layout: fixed;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
.crm-pool-table thead th {
    position: static !important;
    height: 40px;
    padding: 0 12px !important;
    border-top: 1px solid var(--surface-border) !important;
    border-bottom: 1px solid var(--surface-border) !important;
    background: var(--surface-soft) !important;
    color: var(--text-secondary) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    white-space: nowrap;
    vertical-align: middle;
}
.crm-pool-table thead th.pool-th-center { text-align: center; }
.crm-pool-table thead th.text-end { text-align: right; }

/* === [pool-hero-call] 已迁至 pages-customer-detail.css === */

/* === [pool-table-sort] P7 phase3: 可点击排序的表头 === */
.js-th-sort {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: color var(--motion-fast) var(--easing-emphasized),
                background var(--motion-fast) var(--easing-emphasized);
}
.js-th-sort::after {
    content: "\f127"; /* bi-arrow-down-up */
    font-family: "bootstrap-icons" !important;
    font-weight: normal;
    margin-left: 5px;
    font-size: 0.78em;
    color: var(--text-faint);
    opacity: 0.55;
    transition: opacity var(--motion-fast) var(--easing-emphasized),
                color var(--motion-fast) var(--easing-emphasized),
                transform var(--motion-fast) var(--easing-emphasized);
    display: inline-block;
    vertical-align: -1px;
}
.js-th-sort:hover {
    color: var(--accent-dark) !important;
    background: var(--accent-soft) !important;
}
.js-th-sort:hover::after { opacity: 1; color: var(--accent-dark); }
.js-th-sort.is-sorted {
    color: var(--accent-pressed) !important;
    background: var(--accent-softer) !important;
    font-weight: 700;
}
.js-th-sort.is-sorted::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
}
.js-th-sort.is-sorted::after {
    content: "\f128"; /* bi-arrow-down */
    color: var(--accent-pressed);
    opacity: 1;
    font-size: 0.85em;
}
/* Ascending sort indicator (name_asc, last_contact_asc, etc.) */
.js-th-sort[data-sort-key$="_asc"].is-sorted::after,
.js-th-sort[data-sort-key="name_asc"].is-sorted::after,
.js-th-sort[data-sort-key="last_contact_asc"].is-sorted::after,
.js-th-sort.is-sorted-asc::after {
    content: "\f148"; /* bi-arrow-up */
}
.crm-pool-table .customer-spacer-row { display: none; }
.crm-pool-table .customer-detail-row { display: none; }
.crm-pool-table .customer-detail-row.open { display: table-row; }
.crm-pool-table .pool-summary-row > td {
    padding: 14px 12px !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--surface-muted, var(--surface-border)) !important;
    background: var(--surface) !important;
    vertical-align: middle !important;
    transition: background var(--motion-fast) var(--easing-emphasized);
}
.crm-pool-table .pool-summary-row > td:first-child,
.crm-pool-table .pool-summary-row > td:last-child {
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
}
.crm-pool-table .pool-summary-row:hover > td { background: var(--surface-soft, #f8fafc) !important; }
.crm-pool-table .pool-summary-row:hover > td:first-child { box-shadow: inset 3px 0 0 var(--accent) !important; }
.crm-pool-table .pool-summary-row.crm-row--kb-focus > td { background: var(--accent-softer) !important; outline: none; }
.crm-pool-table .pool-summary-row.crm-row--kb-focus > td:first-child { box-shadow: inset 3px 0 0 var(--accent-dark) !important; }
.crm-pool-table .pool-summary-row.expanded > td { background: var(--accent-softer) !important; }
.crm-pool-table tbody > tr:last-child > td { border-bottom: 0 !important; }
.crm-pool-table .pool-cell-company { vertical-align: top !important; }
.crm-pool-table .pool-col-check { width: 44px; }
.crm-col-company { width: 292px; }
.crm-col-grade { width: 64px; }
.crm-col-priority { width: 60px; text-align: center; vertical-align: middle; }
.crm-col-ai { width: 190px; }
.crm-col-actions { width: 148px; }
.crm-company-line {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.crm-company-name {
    display: inline-block;
    max-width: 238px;
    overflow: hidden;
    color: var(--sidebar-light) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.crm-company-name:hover { color: var(--accent) !important; }
.crm-exported-flag {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0.6;
    cursor: default;
}

/* Customer export records */
.customer-export-page {
    gap: 12px;
    min-width: 0;
}

.export-record-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: var(--surface);
}

.export-record-summary-cell {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 13px 16px;
    border-right: 1px solid var(--surface-border);
}

.export-record-summary-cell:last-child {
    border-right: 0;
}

.export-record-summary-cell span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.export-record-summary-cell strong {
    color: var(--text-main);
    font-size: 22px;
    font-weight: 760;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.export-record-summary-cell.is-total strong { color: var(--accent); }
.export-record-summary-cell.is-success strong { color: var(--success); }
.export-record-summary-cell.is-danger strong { color: var(--danger); }

.export-record-toolbar {
    padding: 10px;
    border-radius: 8px;
}

.export-record-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 12px;
    align-items: end;
}

.export-record-tabs {
    display: inline-grid;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    gap: 0;
    overflow: hidden;
    width: 100%;
    max-width: 560px;
    border: 1px solid var(--surface-border);
    border-radius: 7px;
    background: var(--surface-soft);
}

.export-record-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-right: 1px solid var(--surface-border);
    border-radius: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.export-record-tab:last-child {
    border-right: 0;
}

.export-record-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 760;
    font-variant-numeric: tabular-nums;
}

.export-record-tab.active {
    background: var(--surface);
    color: var(--accent-pressed);
    box-shadow: inset 0 -2px 0 var(--accent);
}

.export-record-tab.active span {
    background: var(--accent-soft);
    color: var(--accent-pressed);
}

.export-record-scope {
    min-width: 0;
}

.export-record-table {
    min-width: 980px;
}

.export-record-card {
    overflow: hidden;
    border-radius: 8px;
}

.export-record-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--surface-border);
    background: var(--surface);
}

.export-record-card-head strong,
.export-record-card-head span {
    display: block;
}

.export-record-card-head strong {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 760;
}

.export-record-card-head span {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.export-record-table thead th {
    padding: 10px 14px !important;
    border-bottom: 1px solid var(--surface-border) !important;
    background: var(--surface-soft) !important;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 720;
    letter-spacing: 0;
    white-space: nowrap;
}

.export-record-table tbody td {
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--surface-border);
    color: var(--text-secondary);
    font-size: 13px;
    vertical-align: middle;
}

.export-record-table tbody tr:hover td {
    background: var(--surface-soft);
}

.export-record-table tbody tr:last-child td {
    border-bottom: 0;
}

.export-record-table .num-cell {
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}

.export-time-cell {
    color: var(--text-muted) !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.export-file-name {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.export-file-meta,
.export-error {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.export-error {
    color: var(--danger-pressed);
}

.export-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border: 1px solid var(--surface-border);
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.export-status.is-success { color: var(--success-dark); border-color: rgba(5, 150, 105, 0.25); background: var(--success-soft); }
.export-status.is-primary { color: var(--accent-pressed); border-color: rgba(37, 99, 235, 0.2); background: var(--accent-soft); }
.export-status.is-secondary { color: var(--text-secondary); border-color: var(--surface-border); background: var(--surface-soft); }
.export-status.is-danger { color: var(--danger-pressed); border-color: rgba(220, 38, 38, 0.25); background: var(--danger-soft); }

.export-empty-state {
    min-height: 260px;
}

.export-empty-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .export-record-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .export-record-summary-cell {
        min-height: 58px;
        border-right: 1px solid var(--surface-border);
        border-bottom: 1px solid var(--surface-border);
        padding: 11px 12px;
    }
    .export-record-summary-cell:nth-child(2n) {
        border-right: 0;
    }
    .export-record-summary-cell:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
    .export-record-filter {
        grid-template-columns: 1fr;
    }
    .export-record-scope {
        width: 100%;
        flex-basis: auto;
    }
    .export-record-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }
    .export-record-tab:nth-child(2n) { border-right: 0; }
    .export-record-tab:nth-child(-n + 2) { border-bottom: 1px solid var(--surface-border); }
    .export-record-tab {
        justify-content: center;
    }
    .export-record-card-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
.crm-review-flag {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border: 1px solid rgba(217, 119, 6, 0.45);
    border-radius: 999px;
    background: var(--warning-soft);
    color: var(--warning-dark);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.crm-company-meta {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}
.crm-company-meta {
    display: -webkit-box;
    margin-top: 4px;
    max-width: 270px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}
.crm-company-meta i { margin-right: 4px; color: var(--text-muted); }

/* Enterprise facts + scope embedded in company cell */
.pool-enterprise-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 10px;
    margin-top: 5px;
    max-width: 280px;
}
.pool-ef-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.45;
    white-space: nowrap;
}
.pool-ef-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 10px;
}
.pool-enterprise-scope {
    display: -webkit-box;
    margin-top: 3px;
    max-width: 270px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}
.pool-enterprise-scope i { margin-right: 3px; font-size: 10px; }

.crm-col-grade .pool-grade {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.crm-empty-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 12px;
}
.crm-col-actions .table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 3px;
    padding: 3px 7px;
    height: 26px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xs);
    background: var(--surface);
    white-space: nowrap;
    font-size: 12px;
    transition: background var(--motion-fast) var(--easing-emphasized),
                border-color var(--motion-fast) var(--easing-emphasized),
                color var(--motion-fast) var(--easing-emphasized);
}
.crm-pool-table .crm-col-actions {
    min-width: 148px;
    white-space: nowrap;
}
.crm-col-actions .table-action:first-child { margin-left: 0; }
.crm-col-actions .table-action.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent-line);
    background: var(--accent-soft);
}
.crm-col-actions .table-action.btn-outline-primary:hover {
    color: var(--surface);
    background: var(--accent);
    border-color: var(--accent);
}
.crm-col-actions .table-action:hover { border-color: var(--accent-line); color: var(--accent); }
.crm-col-actions .table-action.btn-outline-success:hover { color: var(--surface); background: var(--success, #10b981); border-color: var(--success, #10b981); }
.crm-col-actions .table-action.btn-outline-warning:hover { color: var(--surface); background: var(--warning, #f59e0b); border-color: var(--warning, #f59e0b); }
.table-action-label { display: none; }
@media (min-width: 1280px) {
    .crm-col-actions .table-action .table-action-label {
        display: inline-block;
        margin-left: 4px;
        font-size: 12px;
    }
    .crm-pool-table {
        min-width: 1400px;
    }
    .crm-col-actions,
    .crm-pool-table .crm-col-actions {
        width: 264px;
        min-width: 264px;
    }
}
.crm-pool-table .customer-summary-row.expanded > td { background: var(--accent-softer) !important; }
.pool-detail-drawer { border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); }

@media (max-width: 1180px) {
    .crm-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-settings-overview,
    .settings-search-row { grid-template-columns: 1fr; }
    .settings-domain-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .crm-summary-strip { grid-template-columns: 1fr; }
    .crm-summary-item { min-height: 56px; }
}

@media (max-width: 992px) { .business-profile-layout { grid-template-columns: 1fr; }
    .business-profile-aside { position: static; }
}
@media (max-width: 575px) { .business-profile-score { align-items: flex-start; }
    .business-profile-links { grid-template-columns: 1fr; }
    .business-ai-head,
    .business-form-section-head { flex-direction: column; }
    .business-profile-card .card-body { padding: 14px; }
    .business-ai-input-group {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .business-ai-input-group > .form-control,
    .business-ai-input-group > .btn { width: 100%; border-radius: var(--radius-sm) !important; }

    .pipeline-log-toolbar .btn-group,
    .pipeline-log-toolbar .btn { width: 100%; }

    .pipeline-log-toolbar .btn-group .btn { flex: 1 1 0; }

    .seed-import-form,
    .seed-import-file,
    .seed-import-form .btn { width: 100% !important; }

    .seed-import-form {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.crm-table-card { padding: 0 !important; overflow: hidden; }
.crm-my-table {
    min-width: 1028px;
    table-layout: fixed;
}
.crm-my-table thead th {
    position: static !important;
    height: 38px;
    background: var(--surface-soft) !important;
    border-bottom: 1px solid var(--surface-border) !important;
    white-space: nowrap;
}
.crm-my-table tbody td { padding: 10px 12px !important; vertical-align: top !important; }
.crm-my-col-company { width: 248px; }
.crm-my-col-city { width: 88px; }
.crm-my-col-contact { width: 150px; }
.crm-my-col-grade { width: 58px; }
.crm-my-col-status { width: 96px; }
.crm-my-col-next { width: 104px; }
.crm-my-col-date { width: 96px; }
.crm-my-col-actions { width: 188px; min-width: 188px; }
.crm-my-table .company-cell { min-width: 0; }
.crm-my-table .company-name,
.crm-my-table .company-meta {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.crm-my-table .phone-cell .btn {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.crm-my-actions { min-width: 188px; white-space: normal; }
.crm-my-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}
.crm-my-action-row form { margin: 0; }
.crm-my-action-row .btn {
    margin-right: 0 !important;
    white-space: nowrap;
}

/* Platform admin console: dense operational controls, grouped settings, and stable billing lists. */
.admin-config-snapshot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.admin-config-snapshot span,
.admin-settings-overview-grid span,
.admin-company-billing-note span {
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--text-secondary);
    font-size: 12px;
}
.admin-config-snapshot strong,
.admin-settings-overview-grid strong { color: var(--text-main); font-variant-numeric: tabular-nums; }

.admin-company-page-header { align-items: flex-start; }
.admin-company-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.admin-company-metric {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 2px 10px;
    align-items: center;
    min-height: 72px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-main) !important;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.admin-company-metric::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--accent);
}
.admin-company-metric.is-success::before { background: var(--success); }
.admin-company-metric.is-warning::before { background: var(--warning); }
.admin-company-metric:hover { border-color: var(--accent-line); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
.admin-company-metric .metric-icon {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent);
}
.admin-company-metric.is-success .metric-icon { background: var(--success-soft); color: var(--success); }
.admin-company-metric.is-warning .metric-icon { background: var(--warning-soft); color: var(--warning); }
.admin-company-metric .metric-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}
.admin-company-metric strong {
    grid-row: span 2;
    color: var(--sidebar-light);
    font-size: 26px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.admin-company-metric .metric-meta { color: var(--text-muted); font-size: 12px; }
.admin-company-toolbar { display: grid; gap: 12px; }
.admin-company-pricing {
    display: block;
}
.admin-company-pricing-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}
.admin-company-pricing-summary::-webkit-details-marker { display: none; }
.admin-company-pricing-summary span {
    min-width: 0;
    display: grid;
    gap: 2px;
}
.admin-company-pricing-summary strong {
    color: var(--text-main);
}
.admin-company-pricing-summary small {
    color: var(--text-muted);
    overflow-wrap: anywhere;
}
.admin-company-pricing-summary i {
    transition: transform var(--motion-base) var(--easing);
}
.admin-company-pricing[open] .admin-company-pricing-summary {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--surface-border);
}
.admin-company-pricing[open] .admin-company-pricing-summary i {
    transform: rotate(180deg);
}
.admin-company-filter {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(160px, 0.7fr) minmax(220px, 1fr) minmax(140px, 0.7fr) 64px;
    gap: 10px;
    align-items: end;
}
.admin-company-filter .form-control,
.admin-company-filter .form-select { min-height: 38px; border-color: var(--border-strong); }
.admin-company-filter .filter-submit { min-height: 38px; font-weight: 700; }
.admin-company-filter .filter-reset {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.admin-company-billing-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.admin-company-table-card { overflow: hidden; padding: 0 !important; }
.admin-company-table {
    width: 100%;
    min-width: 1180px;
    table-layout: fixed;
}
.admin-companies-page .admin-company-table-card .table-responsive {
    overflow-x: auto;
}
.admin-company-table thead th {
    position: static !important;
    right: auto !important;
    height: 42px;
    border-bottom: 1px solid var(--surface-border) !important;
    background: var(--surface-soft) !important;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
}
.admin-company-table tbody td {
    padding: 10px 12px !important;
    border-bottom: 1px solid var(--surface-border) !important;
    vertical-align: middle !important;
    overflow: hidden;
    white-space: nowrap;
}
.admin-company-table tbody tr:hover td { background: var(--accent-softer) !important; }
.admin-company-table tbody tr.is-low-balance td { background: var(--warning-soft); }
.admin-company-table th:nth-child(1),
.admin-company-table td:nth-child(1) { width: 18%; }
.admin-company-table th:nth-child(2),
.admin-company-table td:nth-child(2) { width: 16%; }
.admin-company-table th:nth-child(3),
.admin-company-table td:nth-child(3) { width: 14%; }
.admin-company-table th:nth-child(4),
.admin-company-table td:nth-child(4) { width: 18%; }
.admin-company-table th:nth-child(5),
.admin-company-table td:nth-child(5) {
    width: 34%;
    min-width: 360px;
}
.admin-company-table th:nth-child(2),
.admin-company-table th:nth-child(3),
.admin-company-table th:nth-child(4) {
    text-align: left;
}
.admin-company-balance-cell,
.admin-company-usage-cell,
.admin-company-data-cell,
.admin-company-config-cell {
    text-align: left;
}
.admin-company-config-cell {
    min-width: 360px;
    vertical-align: middle !important;
    padding: 8px 12px !important;
    overflow: visible;
}
.admin-company-inline-line,
.company-cell-line,
.admin-balance-inline,
.admin-company-usage-inline,
.admin-company-data-inline,
.admin-company-manage-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
}
.company-cell-line {
    flex-wrap: nowrap;
}
.company-cell-line .company-name {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.company-cell-line .badge,
.company-cell-line .admin-status-pill {
    flex: 0 0 auto;
    font-size: 11px;
    padding: 2px 6px;
}
.company-meta-inline {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-muted);
    font-size: 12px;
}
.company-meta-inline code {
    color: inherit;
    background: transparent;
    font-size: inherit;
}
.admin-balance-inline .admin-balance-value {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.admin-balance-inline .admin-balance-unit,
.admin-balance-inline .admin-balance-meta,
.admin-inline-sep {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}
.admin-company-usage-inline,
.admin-company-data-inline {
    color: var(--text-secondary);
    font-size: 12px;
}
.admin-company-usage-inline strong,
.admin-company-data-inline strong {
    color: var(--text-main);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.admin-company-usage-inline .usage-unit {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 1px;
}
.admin-company-manage-inline {
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
}
.admin-company-balance-field {
    width: 108px;
    min-width: 88px;
    max-width: 132px;
    flex: 0 0 auto;
    min-height: 28px;
    padding: 2px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.admin-company-balance-field:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
    color: var(--accent);
}
.admin-company-balance-field[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.admin-company-balance-field[type="number"]::-webkit-outer-spin-button,
.admin-company-balance-field[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.admin-company-active-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}
.admin-company-active-inline .form-check-input {
    width: 1.75rem;
    height: 0.95rem;
    margin: 0;
    cursor: pointer;
}
.admin-company-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    flex: 0 0 auto;
}
.admin-company-icon-link:hover {
    background: var(--accent-soft);
    color: var(--accent);
}
.body-role-platform .admin-company-icon-link:hover {
    background: rgba(254, 226, 226, 0.55);
    color: var(--danger);
}
.admin-company-text-btn {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex: 0 0 auto;
    cursor: pointer;
}
.admin-company-text-btn.is-primary { color: var(--accent); }
.admin-company-text-btn.is-danger { color: var(--danger); }
.admin-company-text-btn:hover { text-decoration: underline; }
.body-role-platform .admin-company-text-btn.is-primary { color: var(--danger); }
.admin-company-table th:last-child,
.admin-company-table td:last-child {
    position: static !important;
    right: auto !important;
    box-shadow: none !important;
    background: inherit !important;
}
.admin-company-table .company-name {
    color: var(--sidebar-light) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.admin-company-table .company-name:hover { color: var(--accent) !important; }
.admin-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.admin-status-pill.is-active { background: var(--success-soft); color: var(--success-dark); }
.admin-status-pill.is-inactive { background: var(--surface-muted); color: var(--text-secondary); }
.admin-company-config-form { display: block; width: 100%; max-width: 100%; }
/* legacy aliases kept for tests and shared responsive hooks */
.admin-company-manage-bar,
.admin-company-config-panel,
.admin-company-config-fields,
.admin-company-row-actions {
    display: contents;
}
.admin-company-config-form .form-control-sm {
    min-height: 34px;
    border-color: var(--border-strong);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.admin-company-config-form .form-control-sm[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.admin-company-config-form .form-control-sm[type="number"]::-webkit-outer-spin-button,
.admin-company-config-form .form-control-sm[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.admin-company-config-form .config-control-sm .form-control-sm { width: 74px; }
.admin-company-config-form .config-control-balance .form-control-sm {
    width: 112px;
    min-width: 96px;
    max-width: 132px;
}
.config-toggle .form-check-input { margin: 0; }
.admin-company-row-actions {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
    margin-left: 0;
    justify-self: end;
}
.admin-company-row-actions .btn {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--radius-sm);
}
.admin-company-delete-btn {
    width: auto !important;
    min-width: 32px;
    padding: 0 8px !important;
}
.admin-company-delete-btn span { display: none !important; }

/* === [admin-companies-page] 已迁至 pages-admin.css === */

/* Desktop density pass: keep high-frequency control surfaces from eating the first screen. */
@media (min-width: 901px) {
    .crm-workspace-bar {
        margin-bottom: 8px;
        padding: 8px 10px;
    }

    .crm-view-tab {
        min-height: 30px;
        padding: 5px 9px;
    }

    .crm-summary-strip {
        gap: 8px;
        margin-bottom: 8px;
    }

    .crm-summary-item {
        min-height: 48px;
        padding: 8px 12px;
    }

    .crm-summary-item strong {
        font-size: 20px;
    }

    .pool-filter-card,
    .pool-filter-shell {
        margin-bottom: 8px;
    }

    .pool-chip-search-row {
        gap: 8px;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .pool-chip-row {
        gap: 6px;
        margin-top: 6px;
    }

    .pool-chip {
        min-height: 26px;
        padding: 4px 10px;
        font-size: 12px;
    }

    .pool-chip-label {
        min-width: 62px;
        font-size: 12px;
    }

    .admin-company-metrics {
        gap: 10px;
        margin-bottom: 12px;
    }

    .admin-company-metric {
        min-height: 62px;
        padding: 12px;
    }

    .admin-company-metric strong {
        font-size: 23px;
    }

    .admin-company-toolbar {
        gap: 10px;
        padding: 12px 16px;
    }

    .admin-company-filter {
        grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 0.65fr) minmax(210px, 0.9fr) 168px 40px;
        gap: 8px;
    }

    .admin-company-filter .form-control,
    .admin-company-filter .form-select,
    .admin-company-filter .filter-submit,
    .admin-company-filter .filter-reset {
        min-height: 34px;
    }

    .admin-company-table { min-width: 0; }

    .admin-company-table tbody td {
        padding: 12px 14px !important;
    }

    .admin-company-config-cell {
        min-width: 0;
    }

    .admin-company-config-panel {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px 12px;
    }

    .admin-company-config-fields {
        display: flex;
        align-items: flex-end;
        gap: 10px;
        flex-wrap: wrap;
    }

    .admin-company-row-actions {
        gap: 6px;
        justify-self: auto;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .admin-company-row-actions .btn {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

    .admin-company-delete-btn {
        min-width: 34px;
        padding: 0 8px !important;
    }

    .admin-company-delete-btn span {
        display: none !important;
    }
}

.ai-log-manual-cleanup { min-width: 0; overflow-wrap: anywhere; }

.ai-log-manual-cleanup .row {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.ai-log-manual-cleanup form,
.ai-log-manual-cleanup .btn,
.ai-log-manual-cleanup .form-control { max-width: 100%; }
@media (max-width: 1280px) { .admin-company-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-company-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.admin-settings-overview-main,
.admin-settings-overview-grid,
.settings-domain-card,
.settings-group-head > div {
    min-width: 0;
}
.admin-settings-kicker,
.settings-group-domain,
.settings-domain-meta {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}
.settings-domain-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.settings-domain-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.settings-domain-title { color: var(--text-main); font-weight: 700; }
.settings-domain-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.settings-domain-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    max-width: 100%;
}
.settings-domain-links a:hover { border-color: var(--accent-line); color: var(--accent); }
.settings-search-row {
    max-width: 520px;
    margin-bottom: 12px;
}
.settings-group-card { overflow: hidden; border-radius: var(--radius-md) !important; }
.settings-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--surface-border);
    background: var(--surface-soft);
}
.settings-group-head h5 {
    margin: 3px 0;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
}
.settings-group-head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.settings-group-count {
    align-self: start;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}
@media (max-width: 768px) {
    .admin-settings-overview-grid,
    .admin-config-snapshot,
    .settings-domain-board { grid-template-columns: 1fr; }
}

/* CRM workspace controls: saved views, column selection and quick preview. */
.crm-workspace-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 auto 12px;
    padding: 10px 12px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.crm-workspace-bar--pool-actions {
    justify-content: flex-end;
}
.crm-command-actions {
    min-width: 0;
    flex: 0 1 auto;
}
.crm-view-strip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    padding-right: 16px;
    padding-bottom: 1px;
    scrollbar-width: thin;
}
.crm-view-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: color var(--motion-fast) var(--easing),
                background var(--motion-fast) var(--easing),
                border-color var(--motion-fast) var(--easing);
}
.crm-view-tab:hover {
    border-color: var(--surface-border);
    background: var(--surface-soft);
    color: var(--text-main);
}
.crm-view-tab.active {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-pressed);
    font-weight: 700;
}
.crm-command-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.crm-column-menu { min-width: 240px; padding: 8px; }
.crm-column-option {
    display: flex !important;
    align-items: center;
    min-height: 32px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.crm-save-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.crm-save-columns .form-label { flex-basis: 100%; }

/* Inline follow-status quick-change dropdown */
.pool-inline-follow { display: inline-flex; }
.pool-inline-follow .action-pill { cursor: pointer; }
.pool-inline-follow .action-pill:hover { filter: brightness(0.94); }
.pool-inline-follow .action-pill::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    margin-left: 3px;
    vertical-align: middle;
    border-top: 4px solid currentColor;
    border-right: 3px solid transparent;
    border-left: 3px solid transparent;
    opacity: 0.5;
}
.pool-follow-menu { min-width: 120px; font-size: var(--fs-sm); }
.pool-follow-menu .dropdown-item { padding: 5px 14px; }

/* Remark indicator dot */
.pool-remark-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bs-warning, #f59e0b);
}
.js-open-remark { position: relative; }
.pool-follow-menu .dropdown-item.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.crm-view-modal .modal-content,
.crm-view-modal { border-radius: var(--radius-md); }
.crm-preview-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    background: rgba(15, 23, 42, 0.18);
}
.crm-preview-backdrop.is-open { display: block; }
.crm-preview-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1051;
    width: min(420px, 94vw);
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--surface-border);
    background: var(--surface);
    box-shadow: -18px 0 42px rgba(15, 23, 42, 0.16);
    transform: translateX(105%);
    transition: transform var(--motion-base) var(--easing);
    pointer-events: none;
    visibility: hidden;
}
.crm-preview-panel:not(.is-open) {
    display: none;
    width: 0;
    min-width: 0;
    border-left: 0;
    box-shadow: none;
    overflow: hidden;
}
.crm-preview-panel.is-open {
    display: flex;
    width: min(420px, 94vw);
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}
.crm-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--surface-border);
}
.crm-preview-kicker {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}
.crm-preview-head h5 {
    margin: 4px 0 0;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}
.crm-preview-body {
    min-height: 0;
    overflow-y: auto;
    padding: 16px 18px;
}
.crm-preview-metrics {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 10px;
    margin-bottom: 16px;
}
.crm-preview-metrics span {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}
.crm-preview-metrics small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}
.crm-preview-metrics strong {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: var(--text-main);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}
.crm-preview-list {
    display: grid;
    gap: 10px;
    margin: 0;
}
.crm-preview-list dt {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}
.crm-preview-list dd {
    margin: -4px 0 4px;
    padding: 10px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}
.crm-preview-foot {
    margin-top: auto;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--surface-border);
    background: var(--surface);
}
.crm-pool-table .crm-col-actions { width: 148px; min-width: 148px; }
@media (min-width: 1280px) { .crm-pool-table .crm-col-actions { width: 264px; min-width: 264px; } }
.crm-my-table .crm-my-col-actions { width: 188px; min-width: 188px; }
@media (max-width: 640px) { .crm-preview-panel { width: 100vw; }
    .crm-preview-metrics { grid-template-columns: 1fr; }
}

/* === [customer-table-base] 已迁至 pages-customer-detail.css === */
/* === [customer-detail-hero] 已迁至 pages-customer-detail.css === */
/* === [customer-table-detail] 已迁至 pages-customer-detail.css === */
/* === [pool-filter-chips] pool 页 filter chips + table helpers (from pool.html) === */
.pool-chip-card { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; }

@media (min-width: 901px) {
    .pool-chip-filters-fold > .pool-chip-row {
        width: 100%;
    }
}
.pool-chip-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--surface-border);
}
.pool-chip-search-input { position: relative; flex: 1 1 240px; min-width: 200px; }
.pool-chip-search-input > i.bi {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.pool-chip-search-input input.form-control { padding-left: 32px; }
.pool-chip-sort { flex: 0 0 auto; width: auto; min-width: 140px; }
.pool-chip-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.pool-chip-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    min-width: 64px;
    flex-shrink: 0;
    font-weight: 600;
}
.pool-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 3px 9px;
    font-size: var(--fs-xs);
    line-height: 1.3;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text-secondary);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--motion-base) var(--easing), background var(--motion-base) var(--easing), border-color var(--motion-base) var(--easing);
    white-space: nowrap;
}
.pool-chip:hover { background: var(--surface-border); color: var(--text-main); text-decoration: none; }
.pool-chip--active { background: var(--accent); color: var(--surface); border-color: var(--accent-dark); }
.pool-chip--active:hover { background: var(--accent-dark); color: var(--surface); }
.pool-chip-grade-a.pool-chip--active { background: var(--grade-a); border-color: var(--danger-pressed); }
.pool-chip-grade-b.pool-chip--active { background: var(--grade-b); border-color: var(--warning-dark); }
.pool-chip-grade-c.pool-chip--active { background: var(--grade-c); border-color: var(--accent-dark); }
.pool-chip-grade-x.pool-chip--active { background: var(--grade-x); border-color: #334155; }
.pool-chip-more { background: var(--surface); border: 1px dashed var(--border-strong); color: var(--text-muted); }
.pool-chip-more.is-open { background: var(--accent-soft); color: var(--accent-dark); border-style: solid; }
.pool-chip-overflow { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; padding-top: 6px; }
.pool-chip-overflow[hidden] { display: none; }
.pool-range-filter-row {
    row-gap: 6px;
}
.pool-range-groups {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
    max-width: 100%;
}
.pool-range-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
}
.pool-range-group-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.pool-range-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1 1 100%;
    justify-content: flex-end;
    margin-left: 0;
    padding-top: 2px;
}
.pool-range-input {
    width: 72px;
    flex: 0 1 72px;
    min-width: 64px;
    max-width: 84px;
}
.pool-range-separator,
.pool-range-unit {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    white-space: nowrap;
}

@media (min-width: 901px) {
    .pool-chip-card {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .pool-chip-search-row,
    .pool-filter-summary-row,
    .pool-filter-panel { width: 100%; }
    .pool-filter-panel .pool-filter-cell__body { gap: 3px 5px; }
    .pool-filter-panel .pool-chip { min-height: 22px; padding: 2px 8px; font-size: 11px; }
    .pool-range-filter-row .pool-range-groups { gap: 8px 10px; }
    .pool-range-filter-row .pool-range-input { width: 68px; flex: 0 1 68px; min-width: 60px; }
}

.pool-th-center { text-align: center; }
.pool-cell-grade { text-align: center; vertical-align: middle; }
.badge.badge-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 6px;
    font-size: var(--fs-xs);
    font-weight: 700;
    border-radius: var(--radius-sm);
    color: var(--surface);
}
.badge.badge--a { background: var(--grade-a); color: var(--surface); }
.badge.badge--b { background: var(--grade-b); color: var(--surface); }
.badge.badge--c { background: var(--grade-c); color: var(--surface); }
.pool-cell-city .pool-text-main,
.pool-cell-industry .pool-text-main { display: block; font-size: var(--fs-sm); color: var(--text-main); }
.pool-cell-city .pool-text-sub { display: block; font-size: 11px; color: var(--text-muted); }
.pool-cell-industry .pool-text-main {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pool-cell-phone-status { text-align: center; vertical-align: middle; }
.pool-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
}
.pool-phone-icon-unlocked { background: var(--success-soft); color: var(--success); }
.pool-phone-icon-unlocked:hover { background: var(--success-soft); color: var(--success-dark); }
.pool-phone-icon-has { background: var(--warning-soft); color: var(--warning); }
.pool-phone-icon-has:hover { background: rgba(217, 119, 6, 0.45); color: var(--warning-dark); }
.pool-phone-icon-none { background: var(--danger-soft); color: var(--danger); cursor: default; }
.pool-cell-assigned .pool-text-main,
.pool-cell-last-follow .pool-text-main { font-size: var(--fs-xs); color: var(--text-main); }
.pool-cell-last-follow .pool-text-sub { display: block; font-size: 11px; color: var(--text-muted); }

/* === [pool-company-cell] 公司名单元格：与 .crm-col-company 共用 === */
.pool-cell-company {
    vertical-align: middle;
    min-width: 0;
}
.pool-cell-company .crm-company-line { min-width: 0; }

/* === [pool-summary-stat] 页头 stat 块（替代散文式 inline summary） === */
.pool-page-stack > .toolbar-card.pool-filter-shell {
    margin-bottom: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

.pool-page-header .page-header-actions {
    align-items: flex-start;
}

.pool-page-header .pool-summary-stat-row {
    margin-top: 8px;
}

.pool-summary-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pool-summary-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.2;
    transition: background var(--motion-fast) var(--easing-emphasized),
                border-color var(--motion-fast) var(--easing-emphasized);
}
.pool-summary-stat:hover {
    background: var(--surface);
    border-color: var(--accent-line);
}
.pool-summary-stat__label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11.5px;
}
.pool-summary-stat__value {
    color: var(--text-main);
    font-weight: 800;
    font-size: 15px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.pool-summary-stat__value--text {
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0;
}
.pool-summary-stat__unit {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: -2px;
}
.pool-summary-stat--warn {
    background: var(--warning-soft);
    border-color: rgba(217, 119, 6, 0.4);
}
.pool-summary-stat--warn .pool-summary-stat__value { color: #b45309; }
.pool-summary-stat--warn .pool-summary-stat__label { color: var(--warning-dark); }
.pool-summary-stat--muted {
    background: transparent;
    border-color: var(--surface-muted, var(--surface-border));
}

/* === [pool-quick-chips] 快捷组合筛选（不与主筛重复） === */
.pool-chip-row--quick {
    padding: 6px 10px;
    margin-bottom: 8px;
    border: 1px dashed var(--surface-border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}
.pool-chip-row--quick .pool-chip-label {
    color: var(--accent);
    font-weight: 700;
}

/* === [pool-main-chips] 主筛 chip 行：评分 / 电话状态 === */
.pool-chip-row--primary {
    padding: 8px 10px;
    margin-bottom: 6px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}
.pool-chip-row--primary + .pool-chip-row--primary { margin-top: -2px; }
.pool-chip-row--primary .pool-chip-label {
    color: var(--text-secondary);
    font-weight: 700;
}

/* ----- 详情抽屉内的 section 包裹 ----- */
.pool-detail-section {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px dashed var(--surface-border);
}
.pool-detail-section:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
}

/* === [pool-more-dropdown] “更多操作” dropdown 包裹 === */
.pool-more-actions { display: inline-flex; }
.pool-more-actions > .dropdown-toggle { white-space: nowrap; }

.crm-company-line { position: relative; }
.pool-hover-card {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 50;
    min-width: 260px;
    max-width: 360px;
    padding: 10px 12px;
    margin-top: 6px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: var(--fs-xs);
    line-height: 1.55;
    color: var(--text-secondary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--motion-base) var(--easing), transform var(--motion-base) var(--easing), visibility 0s linear var(--motion-base);
    pointer-events: none;
}
.pool-company-name:hover ~ .pool-hover-card,
.pool-hover-card:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity var(--motion-base) var(--easing), transform var(--motion-base) var(--easing), visibility 0s;
}
.pool-hover-card > strong { display: block; font-size: var(--fs-sm); color: var(--text-main); margin-bottom: 4px; }
.pool-hover-row { display: flex; gap: 6px; margin-bottom: 2px; }
.pool-hover-row > span { flex: 0 0 36px; color: var(--text-faint); font-size: 11px; }
.pool-hover-tags { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.pool-hover-tag {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: var(--radius-xs);
}
.pool-hover-note {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--surface-border);
    color: var(--text-muted);
}

.pool-pagination-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 4px;
}
.crm-page-stack > .pool-pagination,
.crm-page-stack > .pool-pagination-v2 {
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.pool-filter-shell > .pool-pagination--toolbar {
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px dashed var(--surface-border);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.pool-pagination-left { display: flex; align-items: center; gap: 10px; }
.pool-pagination-center { font-size: var(--fs-sm); color: var(--text-secondary); padding: 0 6px; }
.pool-pagination-center strong { color: var(--text-main); }
.pool-pagination-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pool-pagination-jump,
.pool-pagination-size { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.pool-pagination-jump label,
.pool-pagination-size label { font-size: var(--fs-xs); color: var(--text-muted); margin: 0; }
.pool-pagination-input { width: 72px; text-align: center; }
.pool-pagination-size-select { width: 72px; }
.pool-pagination-size-suffix { font-size: var(--fs-xs); color: var(--text-muted); }

.pool-filter-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-bottom: 10px;
    overflow: hidden;
}
.pool-filter-shell > .crm-workspace-bar--pool-actions {
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px dashed var(--surface-border);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.pool-filter-shell > .pool-chip-search-row {
    margin: 0;
    padding: 10px 12px 8px;
    border-bottom: 1px dashed var(--surface-border);
}
.pool-filter-shell > .pool-filter-panel {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.pool-filter-shell > .pool-filter-action-bar {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.pool-filter-shell > .pool-filter-action-bar--compact {
    padding: 8px 14px 10px;
}

.pool-filter-shell > .pool-active-chips {
    border-top: 1px dashed var(--surface-border);
}
.pool-filter-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 10px;
    padding: 10px 12px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.pool-batch-floater {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translate(-50%, 120%);
    z-index: 1040;
    min-width: 480px;
    max-width: calc(100vw - 48px);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--surface-border);
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    transition: transform var(--motion-slow) var(--easing), opacity var(--motion-slow) var(--easing);
    opacity: 0;
    pointer-events: none;
    animation: none;
}
.pool-batch-floater.is-active { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.pool-batch-floater-info { flex: 1 1 auto; min-width: 200px; }
.pool-batch-floater-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pool-batch-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pool-batch-close { color: var(--text-faint); padding: 4px 6px; }
.pool-batch-close:hover { color: var(--text-main); }

.pool-dialog {
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 360px;
    max-width: 480px;
}
.pool-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.pool-dialog-form { padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.pool-dialog-form h5 { margin-bottom: 2px; font-size: 0.95rem; }
.pool-dialog-form p { margin-bottom: 4px; }
.pool-dialog-form .form-label { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 2px; margin-top: 4px; }
.pool-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

@media (max-width: 640px) {
    .pool-filter-action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .pool-filter-action-bar .btn {
        width: 100%;
    }
    .pool-batch-floater { min-width: auto; left: 12px; right: 12px; transform: translateY(120%); }
    .pool-batch-floater.is-active { transform: translateY(0); }
    .pool-chip-label,
    .pool-filter-cell__label { min-width: 0; margin-bottom: 0; }
    .pool-range-groups {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .pool-range-group {
        flex-wrap: wrap;
        width: 100%;
    }
    .pool-range-group-label {
        width: 100%;
        margin-bottom: 2px;
    }
    .pool-range-actions {
        margin-left: 0;
        width: 100%;
    }
    .pool-range-input {
        width: 0;
        flex: 1 1 112px;
        min-width: 96px;
    }
    .pool-pagination-v2 { flex-direction: column; align-items: stretch; }
    .pool-pagination-right { justify-content: space-between; }
}

/* === [task-wizard] 已迁至 pages-pipeline.css === */
/* === [business-profile-form] 已迁至 pages-business-profile.css === */

.customer-detail-tabs {
    overflow-x: auto;
    overflow-y: hidden;
}

/* === [detail/import/trash] 已分别迁至各专属 CSS 文件 === */

/* === [batch-controls-shared] 由 app.css 迁入 — 批量操作栏 / dropdown / 表格截断 / 响应式覆写 === */

/* --- 批量操作工具栏 --- */
.customer-batch-controls,
.pool-page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.customer-batch-controls form { margin: 0; }

.customer-batch-more .dropdown-menu { min-width: 168px; }

.customer-batch-more .dropdown-item {
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: 36px;
    font-size: 13px;
}

.customer-batch-controls .btn { min-width: 0; }

/* --- 展开行 / 表格截断 --- */
.customer-summary-row.expanded > td { border-bottom-color: transparent !important; background: var(--surface); }

.customer-rich-table .company-meta,
.customer-rich-table .phone-list-preview,
.customer-rich-table .real-phone-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 响应式: ≤1200px --- */
@media (max-width: 1200px) {
    .customer-batch-controls { justify-content: flex-start; width: 100%; }
}

/* --- 响应式: ≤992px --- */
@media (max-width: 992px) {
    .customer-real-hero { grid-template-columns: 1fr; }
    .customer-real-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); display: grid; }
}

/* --- 响应式: ≤575px --- */
@media (max-width: 575px) {
    .customer-real-hero-stats { grid-template-columns: 1fr; }
    .customer-phone-item { flex-direction: column; }
    .customer-phone-actions { justify-content: flex-start; }
    .customer-phone-detail-line { grid-template-columns: 1fr; gap: 2px; }
    .customer-batch-controls .btn { width: 100%; }
}

/* Final customer pool table polish: keep rows flat and data-dense. */
.crm-pool-table .pool-summary-row > td {
    border-radius: 0 !important;
}

.crm-pool-table td.pool-cell-company {
    vertical-align: top !important;
}
