/* ============================================================
   admin.css — Panel de superadministrador (Fase 5)
   ============================================================ */

.admin-wrap {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
}

.admin-page-header {
  margin-bottom: var(--space-8);
}

.admin-page-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  letter-spacing: -0.3px;
  margin-top: 4px;
}

.admin-page-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin-top: 6px;
}

.admin-section {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-8) var(--space-10);
  margin-bottom: var(--space-8);
  border-top: 3px solid var(--color-red);
  box-shadow: var(--shadow-xs);
}

.admin-section__header {
  margin-bottom: var(--space-6);
}

.admin-section__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
}

.admin-section__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: 4px;
}

.admin-table-wrap {
  overflow-x: auto;
}

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

.admin-table th {
  text-align: left;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: var(--space-3);
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.admin-table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 220px;
}

.admin-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-blue-light);
}

.admin-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  color: var(--color-blue);
}

.admin-name-inputs {
  display: flex;
  gap: 5px;
}

.admin-name-inputs .admin-input {
  width: 92px;
  padding: 4px 6px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
}

.admin-user-email {
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.3;
}

.admin-input,
.admin-select {
  font-family: var(--font-base);
  font-size: var(--font-size-sm);
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}

.admin-input--legajo {
  width: 90px;
}

.admin-select--area {
  min-width: 170px;
}

.admin-input:focus,
.admin-select:focus {
  outline: none;
  border-color: var(--color-blue);
}

.admin-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  white-space: nowrap;
}

.admin-row-save,
.admin-row-delete {
  padding: 6px 14px;
  font-size: 10px;
}

.admin-row-delete:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-ultimo-ingreso {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.admin-row-status {
  font-size: 10px;
  margin-left: 8px;
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}

.admin-row-status--ok {
  color: #059669;
}

.admin-row-status--error {
  color: var(--color-red);
}

.admin-loading,
.admin-empty {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  padding: var(--space-8) 0;
  text-align: center;
}

.admin-gate {
  max-width: 480px;
  margin: 4rem auto;
  text-align: center;
  padding: 0 1.5rem;
}

.admin-gate p {
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
  line-height: 1.5;
}
