/**
 * 관리자 보고서 — 상위 조직 포인트 / 거래처 포인트
 * design-guidebook · table-v1-classic-ranking
 *
 * 주의: body.erp-atlas 등으로 한정하면 일부 빌드/임베드에서 규칙 전체가 빠질 수 있어
 * #view-report / #view-report-admin2 로 스코프함. 짝수 행은 rgba 고정으로 대비 확보.
 */
#view-report .record-table.report-point-classic,
#view-report-admin2 .record-table.report-point-classic {
  padding: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  background: transparent !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--primary) 10%, transparent);
}

#view-report .record-table.report-point-classic table.tbl-v1,
#view-report-admin2 .record-table.report-point-classic table.tbl-v1 {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

#view-report .record-table.report-point-classic thead,
#view-report-admin2 .record-table.report-point-classic thead {
  background: transparent !important;
}

#view-report .record-table.report-point-classic table.tbl-v1 th,
#view-report-admin2 .record-table.report-point-classic table.tbl-v1 th {
  text-align: left;
  padding: 10px 10px !important;
  background: color-mix(in srgb, var(--primary) 16%, var(--panel)) !important;
  color: var(--text) !important;
  font-weight: 700 !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  border-bottom: 2px solid color-mix(in srgb, var(--primary) 45%, transparent) !important;
}

#view-report .record-table.report-point-classic table.tbl-v1 th.th-rank,
#view-report-admin2 .record-table.report-point-classic table.tbl-v1 th.th-rank {
  width: 52px;
  text-align: center !important;
}

#view-report .record-table.report-point-classic table.tbl-v1 th.num,
#view-report-admin2 .record-table.report-point-classic table.tbl-v1 th.num {
  text-align: right !important;
}

#view-report .record-table.report-point-classic table.tbl-v1 td,
#view-report-admin2 .record-table.report-point-classic table.tbl-v1 td {
  padding: 9px 10px !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--text) !important;
  font-size: 12px !important;
  vertical-align: middle;
}

#view-report .record-table.report-point-classic table.tbl-v1 td.td-rank,
#view-report-admin2 .record-table.report-point-classic table.tbl-v1 td.td-rank {
  text-align: center !important;
  width: 52px;
}

#view-report .record-table.report-point-classic .report-rank-badge,
#view-report-admin2 .record-table.report-point-classic .report-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: color-mix(in srgb, var(--primary) 20%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--primary) 38%, transparent);
  color: var(--text);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--primary) 15%, transparent);
}

/* 줄무늬 — 테마별 명시 (흰 화면에서도 보이게) */
#view-report .record-table.report-point-classic table.tbl-v1 tbody tr:nth-child(even) td,
#view-report-admin2 .record-table.report-point-classic table.tbl-v1 tbody tr:nth-child(even) td {
  background: rgba(241, 245, 249, 0.95) !important;
}

body[data-theme="dark"] #view-report .record-table.report-point-classic table.tbl-v1 tbody tr:nth-child(even) td,
body[data-theme="dark"] #view-report-admin2 .record-table.report-point-classic table.tbl-v1 tbody tr:nth-child(even) td {
  background: rgba(30, 41, 59, 0.72) !important;
}

body[data-theme="warm"] #view-report .record-table.report-point-classic table.tbl-v1 tbody tr:nth-child(even) td,
body[data-theme="warm"] #view-report-admin2 .record-table.report-point-classic table.tbl-v1 tbody tr:nth-child(even) td {
  background: rgba(253, 248, 240, 0.92) !important;
}

#view-report .record-table.report-point-classic table.tbl-v1 tbody tr:nth-child(odd) td,
#view-report-admin2 .record-table.report-point-classic table.tbl-v1 tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.55) !important;
}

body[data-theme="dark"] #view-report .record-table.report-point-classic table.tbl-v1 tbody tr:nth-child(odd) td,
body[data-theme="dark"] #view-report-admin2 .record-table.report-point-classic table.tbl-v1 tbody tr:nth-child(odd) td {
  background: rgba(15, 23, 42, 0.25) !important;
}

body[data-theme="warm"] #view-report .record-table.report-point-classic table.tbl-v1 tbody tr:nth-child(odd) td,
body[data-theme="warm"] #view-report-admin2 .record-table.report-point-classic table.tbl-v1 tbody tr:nth-child(odd) td {
  background: rgba(255, 252, 248, 0.75) !important;
}

#view-report .record-table.report-point-classic table.tbl-v1 tbody tr:hover td,
#view-report-admin2 .record-table.report-point-classic table.tbl-v1 tbody tr:hover td {
  background: color-mix(in srgb, var(--primary) 12%, var(--panel)) !important;
}

#view-report .record-table.report-point-classic table.tbl-v1 .num,
#view-report-admin2 .record-table.report-point-classic table.tbl-v1 .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
