/* ==========================================================
   Table Component — Admin data tables
   ========================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  font-size: var(--font-sm);
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--tg-theme-section-separator-color);
}

.table th {
  font-weight: var(--weight-semibold);
  color: var(--tg-theme-section-header-text-color);
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--tg-theme-secondary-bg-color);
  position: sticky;
  top: 0;
  z-index: 1;
}

.table td {
  color: var(--tg-theme-text-color);
}

/* Striped rows */
.table-striped tbody tr:nth-child(even) {
  background: var(--tg-theme-secondary-bg-color);
}

/* Hover row */
.table tbody tr:active {
  background: var(--tg-theme-secondary-bg-color);
}
