/* 运营中心充值排行视图专属样式：仅消费 social-v2.css 的 token，类名前缀 sbi-kpi-。 */

.sbi-kpi-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sbi-kpi-board-scroll {
  max-height: 620px;
  border-radius: 0 0 var(--sbi-radius) var(--sbi-radius);
}

.sbi-kpi-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(170px, 220px));
  margin-top: 12px;
  border-top: 1px solid var(--sbi-border);
  border-bottom: 1px solid var(--sbi-border);
  background: #f7fafd;
}

.sbi-kpi-summary-person,
.sbi-kpi-summary-amount {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 14px 18px;
}

.sbi-kpi-summary-amount {
  align-content: center;
  border-left: 1px solid var(--sbi-border);
  text-align: right;
}

.sbi-kpi-summary span,
.sbi-kpi-summary small {
  color: var(--sbi-text-3);
  font-size: 11.5px;
}

.sbi-kpi-summary-person strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sbi-kpi-summary-amount strong {
  color: var(--sbi-accent);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.sbi-table td.sbi-kpi-empty-cell {
  height: 120px;
  color: var(--sbi-text-3);
  text-align: center;
}

.sbi-kpi-rank {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #f1f5fa;
  color: var(--sbi-text-2);
  font-size: 12px;
  font-weight: 740;
  font-variant-numeric: tabular-nums;
}

.sbi-kpi-rank.is-gold {
  background: linear-gradient(135deg, #f6c34c, #d28f0e);
  color: #ffffff;
}

.sbi-kpi-rank.is-silver {
  background: linear-gradient(135deg, #cfd8e3, #97a4b4);
  color: #ffffff;
}

.sbi-kpi-rank.is-bronze {
  background: linear-gradient(135deg, #d9a06b, #a56a3c);
  color: #ffffff;
}

.sbi-kpi-person {
  display: grid;
  gap: 2px;
}

.sbi-kpi-person-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sbi-kpi-person small {
  color: var(--sbi-text-3);
  font-size: 11.5px;
}

.sbi-kpi-app {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sbi-kpi-table-skeleton {
  display: grid;
  gap: 14px;
  padding: 18px;
}

@media (max-width: 1280px) {
  .sbi-kpi-summary {
    grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(150px, 190px));
  }
}
