/* AdminUsersTable Component Styles */

.admin-users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-users-table th,
.admin-users-table td {
  border: 1px solid var(--clr-border);
  padding: 0.58rem 0.7rem;
  text-align: left;
  font-size: 0.95rem;
}

.admin-users-table th {
  background: var(--clr-panel);
  color: var(--clr-text);
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-users-table tbody tr:nth-child(odd) {
  background: var(--clr-surface);
}

.admin-users-table tbody tr:nth-child(even) {
  background: var(--clr-panel);
}

.admin-users-table tbody tr:hover {
  background: color-mix(in oklab, var(--clr-accent) 10%, var(--clr-surface));
}

.admin-users-table td {
  color: var(--clr-text);
}

/* ID column - monospace for UUIDs */
.admin-users-table td:nth-child(1) {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.3;
  word-break: break-all;
  white-space: normal;
  max-width: 200px;
  padding: 0.4rem 0.5rem;
}

/* Column widths */
.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) {
  min-width: 200px;
  max-width: 220px;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
  min-width: 180px;
}

.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) {
  min-width: 100px;
}

.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4) {
  min-width: 150px;
}

/* Actions column */
.admin-users-table td.actions-cell {
  white-space: nowrap;
  overflow: visible;
  position: relative;
  text-align: right;
}

.admin-users-table td.actions-cell .btn {
  margin-left: 0.5rem;
}

.admin-users-table td.actions-cell .btn:first-child {
  margin-left: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-users-table th:nth-child(1),
  .admin-users-table td:nth-child(1) {
    min-width: 150px;
    max-width: 180px;
  }
}
