/* 线索管理 — 复刻 YCerp pages/clueListAdmin */
.view-clue-list-admin {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f2f2f7;
  overflow: hidden;
}

.cla-sticky-head {
  flex-shrink: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.cla-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
}

.cla-title {
  font-size: 17px;
  font-weight: 800;
  color: #1c1c1e;
  flex: 1;
}

.cla-filter-panel {
  background: #fff;
  padding: 10px 12px 12px;
  border-bottom: 1px solid #e5e5ea;
  max-height: none;
  overflow: visible;
}

.cla-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(118, 118, 128, 0.12);
  border-radius: 10px;
  padding: 0 12px;
  height: 38px;
  margin-bottom: 10px;
}

.cla-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
}

.cla-export-btn {
  border: none;
  background: #34c759;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cla-section {
  margin-bottom: 8px;
}

.cla-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #8e8e93;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.cla-section-time {
  margin-bottom: 10px;
}

.cla-time-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cla-tag-group-inline {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
}

.cla-seg {
  display: inline-flex;
  flex-shrink: 0;
  background: #eef0f4;
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}

.cla-seg .cla-tag {
  margin: 0;
  padding: 5px 8px;
  border-radius: 7px;
  background: transparent;
  font-size: 11px;
}

.cla-seg .cla-tag.active {
  background: #fff;
  color: #1c1c1e;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.cla-filter-row {
  margin-bottom: 0;
}

.cla-filter-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cla-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cla-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.cla-pill {
  border: none;
  background: #f2f2f7;
  color: #3a3a3c;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.cla-pill em {
  font-style: normal;
  margin-left: 4px;
  opacity: 0.65;
  font-weight: 700;
}

.cla-pill.active {
  background: #007aff;
  color: #fff;
}

.cla-pill.active em {
  opacity: 0.9;
}

.cla-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cla-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cla-select-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #8e8e93;
  font-weight: 700;
}

.cla-select {
  width: 100%;
  border: none;
  background: #f2f2f7;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1c1c1e;
  outline: none;
}

.cla-more-btn {
  align-self: flex-end;
  flex-shrink: 0;
  border: 1px solid #d1d1d6;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #3a3a3c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cla-result-bar {
  margin-top: 10px;
  font-size: 12px;
  color: #8e8e93;
  font-weight: 600;
}

.cla-more-panel {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f2f2f7;
}

.cla-more-panel[hidden] {
  display: none !important;
}

.cla-filter-scroll .cla-tag-group {
  flex-wrap: nowrap;
  width: max-content;
  min-width: 100%;
}

.cla-tag {
  border: none;
  background: #f2f2f7;
  color: #3a3a3c;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.cla-tag.active {
  background: #007aff;
  color: #fff;
  font-weight: 600;
}

.cla-count {
  opacity: 0.75;
  margin-left: 2px;
}

.cla-more-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed #d1d1d6;
  background: #fafafa;
  color: #3a3a3c;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.cla-more-toggle[aria-expanded="true"] {
  background: #f2f2f7;
  border-style: solid;
}

.cla-more-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #007aff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.cla-more-chevron {
  color: #8e8e93;
  font-size: 12px;
  transition: transform 0.15s ease;
}

.cla-more-toggle[aria-expanded="true"] .cla-more-chevron {
  transform: rotate(180deg);
}

.cla-more-panel {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f2f2f7;
}

.cla-more-panel[hidden] {
  display: none !important;
}

.cla-active-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.cla-active-summary[hidden] {
  display: none !important;
}

.cla-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ebf5ff;
  color: #007aff;
  border-radius: 999px;
  padding: 4px 8px 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

.cla-chip-clear {
  border: none;
  background: transparent;
  color: #007aff;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

.cla-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cla-date-sep {
  flex-shrink: 0;
  font-size: 12px;
  color: #8e8e93;
}

.cla-date-input {
  flex: 1;
  min-width: 0;
  background: #f2f2f7;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: #1c1c1e;
}

.cla-reset-btn {
  border: none;
  background: transparent;
  color: #ff3b30;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.cla-days-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cla-days-label {
  font-size: 12px;
  color: #8e8e93;
}

.cla-days-input {
  width: 64px;
  background: #f2f2f7;
  border: none;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  text-align: center;
}

.cla-list-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  position: relative;
  z-index: 1;
}

.cla-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.cla-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.cla-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  flex: 1;
}

.cla-t-node {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.cla-t-node.distribute { background: #eaf9f1; color: #34c759; }
.cla-t-node.conpay { background: #ebf5ff; color: #007aff; }
.cla-t-node.deposit { background: #fff9e6; color: #ff9500; }
.cla-t-node.balance { background: #f5f5ff; color: #5856d6; }
.cla-t-node.completed { background: #f2f2f7; color: #8e8e93; }
.cla-t-node.cancelled { background: #fff2f2; color: #ff3b30; }

.cla-status-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 6px;
  text-align: center;
  flex-shrink: 0;
}

.cla-status-tag.new { background: #ebf5ff; color: #007aff; }
.cla-status-tag.following { background: #f2f2f7; color: #8e8e93; }
.cla-status-tag.deposit { background: #fff9e6; color: #ff9500; }
.cla-status-tag.review { background: #f5f5ff; color: #5856d6; }
.cla-status-tag.completed { background: #eaf9f1; color: #34c759; }
.cla-status-tag.cancelled { background: #fff2f2; color: #ff3b30; }

.cla-current-badge {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 2px;
}

.cla-main-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.cla-sales-tag {
  font-size: 11px;
  color: #8e8e93;
  background: #f2f2f7;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.cla-biz-tag {
  font-size: 10px;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.cla-biz-tag.sourcing { background: #5856d6; }
.cla-biz-tag.inspection { background: #af52de; }
.cla-biz-tag.consulting { background: #ff2d55; }
.cla-biz-tag.future { background: #007aff; }

.cla-car-tag {
  font-size: 11px;
  color: #007aff;
  background: #ebfbf7;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.cla-finance-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  background: #f8f8f9;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
}

.cla-finance-row .tier { color: #8e8e93; }
.cla-finance-row .deposit { color: #1c1c1e; }
.cla-finance-row .wait-pay { color: #ff3b30; }
.cla-finance-row .final-paid { color: #34c759; }

.cla-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #f2f2f7;
  padding-top: 10px;
}

.cla-phone {
  font-size: 15px;
  font-weight: 600;
  font-family: monospace;
}

.cla-copy-btn {
  border: 1px solid #007aff;
  background: #fff;
  color: #007aff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.cla-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f2f2f7;
}

.cla-situation-tag {
  font-size: 10px;
  color: #af52de;
  background: #f5f0ff;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.cla-approve-btn {
  border: none;
  background: #007aff;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cla-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cla-transfer-btn {
  border: none;
  background: #f2f2f7;
  color: #333;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cla-empty {
  padding: 48px 16px;
  text-align: center;
  color: #c7c7cc;
  font-size: 14px;
}

.cla-loading {
  padding: 16px;
  text-align: center;
  color: #8e8e93;
  font-size: 13px;
}

.cla-loading-more {
  padding: 12px 16px 20px;
  text-align: center;
  color: #8e8e93;
  font-size: 12px;
}

.cla-pager {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #e5e5ea;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.cla-pager-tip {
  font-size: 11px;
  color: #ff9500;
  text-align: center;
  padding: 8px 12px 0;
}

.cla-pager-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
}

.cla-pager-btn {
  border: 1px solid #e5e5ea;
  background: #f2f2f7;
  color: #007aff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cla-pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cla-pager-info {
  font-size: 12px;
  color: #8e8e93;
  min-width: 120px;
  text-align: center;
}
.cla-sales-picker-btn { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cla-sales-picker-mask { position: fixed; inset: 0; z-index: 12000; display: flex; align-items: flex-end; justify-content: center; background: rgba(15,23,42,.5); }
.cla-sales-picker-sheet { width: 100%; max-width: 560px; max-height: 62vh; padding: 16px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -12px 40px rgba(0,0,0,.18); display: flex; flex-direction: column; }
.cla-sales-picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cla-sales-picker-head strong { font-size: 19px; color: #111827; }
.cla-sales-picker-head button { border: 0; background: transparent; color: #168bf2; font-size: 15px; }
.cla-sales-picker-search { flex: 0 0 auto; width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid #dbe2ea; border-radius: 12px; background: #f6f8fb; font-size: 16px; box-sizing: border-box; }
.cla-sales-picker-list { min-height: 100px; overflow-y: auto; margin-top: 10px; }
.cla-sales-picker-item { width: 100%; min-height: 52px; padding: 0 12px; border: 0; border-bottom: 1px solid #edf0f4; background: #fff; display: grid; grid-template-columns: 1fr auto 24px; gap: 10px; align-items: center; text-align: left; font-size: 16px; color: #20242b; }
.cla-sales-picker-item em { min-width: 28px; padding: 3px 7px; border-radius: 999px; background: #eef4fa; color: #64748b; font-style: normal; text-align: center; }
.cla-sales-picker-item b { visibility: hidden; color: #168bf2; font-size: 18px; }
.cla-sales-picker-item.active { background: #eef7ff; color: #0877db; font-weight: 700; }
.cla-sales-picker-item.active b { visibility: visible; }
.cla-sales-picker-empty { padding: 30px; text-align: center; color: #94a3b8; }

/* Compact mobile filters: keep related controls aligned instead of wrapping at
   arbitrary points on narrow Android screens. */
.cla-status-pills {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cla-status-pills::-webkit-scrollbar { display: none; }
.cla-status-pills .cla-pill { flex: 0 0 auto; }
.cla-compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.cla-date-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
}
.cla-date-sep { text-align: center; }
.cla-date-input { width: 100%; box-sizing: border-box; }
.cla-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
}
@media (max-width: 430px) {
  .cla-compact-row { grid-template-columns: minmax(0, 1fr); }
  .cla-select-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cla-select-row > :last-child { grid-column: 1 / -1; width: 100%; }
}
