.table-wrap {
  overflow-x: auto;
  min-height: 330px;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th, td {
  padding: 17px 24px;
  text-align: right;
  border-bottom: 1px solid var(--ink-100);
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--ink-500);
  background: rgba(247, 247, 248, 0.96);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

td {
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 500;
}

tbody tr {
  transition: background 0.18s ease;
}

tbody tr:hover { background: var(--red-50); }
tbody tr:last-child td { border-bottom: 0; }

.row-index {
  width: 72px;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}

.person-name {
  color: var(--ink-900);
  font-weight: 800;
}

.host-code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  direction: ltr;
  color: var(--ink-700);
  background: var(--ink-100);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rank-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  direction: ltr;
  color: #f5a623;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(245, 166, 35, 0.18);
}

.rank-empty {
  color: var(--ink-300);
  font-size: 12px;
  font-weight: 700;
}

.branch-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.branch-cell::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-500);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge-active {
  color: #16854b;
  background: rgba(49, 212, 124, 0.11);
  border-color: rgba(49, 212, 124, 0.22);
}

.badge-inactive {
  color: var(--ink-500);
  background: var(--ink-100);
  border-color: var(--ink-200);
}

.badge-pending {
  color: #a56b00;
  background: rgba(255, 185, 56, 0.13);
  border-color: rgba(255, 185, 56, 0.25);
}

.badge-blocked {
  color: var(--red-700);
  background: var(--red-50);
  border-color: var(--red-100);
}

.badge-default {
  color: #3468a9;
  background: rgba(106, 167, 255, 0.13);
  border-color: rgba(106, 167, 255, 0.23);
}

.no-results {
  padding: 42px 16px;
  color: var(--ink-500);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid var(--ink-100);
}

.pagination[hidden] { display: none; }

.page-button {
  min-height: 38px;
  padding: 0 15px;
  color: var(--ink-700);
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.page-button:hover:not(:disabled) {
  color: var(--white);
  background: var(--red-500);
  border-color: var(--red-500);
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.page-info {
  min-width: 110px;
  color: var(--ink-500);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}
