/* ===== Tables (admin panel — CSS only, spec §7.2) ===== */
/* The admin panel (admin.js) renders <table class="admin-table"> for members and
   Discord role-mappings. Header row uses --text-muted, rows are divided by --border
   with a --bg-elevated hover, cells are padded/aligned, and Latin identifiers render
   in --font-mono. Role/status badges reuse the .badge system in 07-controls.css. */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.admin-table thead th {
  text-align: start;
  padding: var(--space-2) var(--space-3);
  color: var(--text-muted);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border);
}

.admin-table tbody td {
  padding: var(--space-3);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background var(--transition);
}
.admin-table tbody tr:hover { background: var(--bg-elevated); }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* Latin identifiers (Discord role IDs) are mono + tabular so digits align. Scoped to the
   mappings table's first column so Arabic member names (users table) keep the UI font. */
#admin-mappings .admin-table tbody td:first-child {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

/* The inline role <select> in a member row (a bare .admin-role, not a .form-select). */
.admin-role {
  min-height: 28px;
  padding: var(--space-1) var(--space-2);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.admin-role:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.admin-role option { background: var(--bg-elevated); color: var(--text-primary); }

.admin-active { accent-color: var(--accent); cursor: pointer; }
