/* APPROVED_USERS_ADMIN_UI_ALIGN_FINAL_20260625 */
/* 기존 panel / table-shell / data-table / secondary-btn / small-btn / danger-btn 톤에 맞춘 최소 보정 */

#approvedUsersAdminCard {
  margin-top: 24px;
}

#approvedUsersAdminCard .approved-users-head {
  align-items: flex-start;
}

#approvedUsersAdminCard .approved-users-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

#approvedUsersAdminCard .approved-users-subtitle {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

#approvedUsersAdminCard .approved-users-note {
  margin: 12px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(55, 87, 130, 0.7);
  border-radius: 12px;
  background: rgba(10, 22, 39, 0.45);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

#approvedUsersAdminCard .approved-users-table {
  min-width: 1080px;
  table-layout: fixed;
}

#approvedUsersAdminCard .approved-users-table th,
#approvedUsersAdminCard .approved-users-table td {
  white-space: nowrap;
  vertical-align: middle;
}

#approvedUsersAdminCard .approved-users-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

#approvedUsersAdminCard .approved-users-empty {
  text-align: center !important;
}

#approvedUsersAdminCard .approved-users-manage-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: visible !important;
  text-overflow: clip !important;
}

#approvedUsersAdminCard .approved-row-btn {
  min-width: 58px;
}

#approvedUsersAdminCard .approved-row-btn-delete {
  min-width: 78px;
}

#approvedUsersAdminCard .approved-row-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#approvedUsersAdminCard .approved-user-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

#approvedUsersAdminCard .approved-user-status.active {
  color: #b8f7cf;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.26);
}

#approvedUsersAdminCard .approved-user-status.deleted {
  color: #b9c4d6;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

#approvedUsersAdminCard .approved-user-row-deleted td {
  color: rgba(237, 244, 255, 0.58);
}

/* 모달 */
#approvedUserModalRoot {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

#approvedUserModalRoot .approved-user-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
}

#approvedUserModalRoot .approved-user-modal-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(55, 87, 130, 0.78);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 31, 53, 0.98), rgba(9, 18, 32, 0.98));
  color: #fff;
  box-shadow: var(--shadow, 0 20px 60px rgba(0, 0, 0, 0.35));
}

#approvedUserModalRoot .approved-user-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

#approvedUserModalRoot .approved-user-modal-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

#approvedUserModalRoot .approved-user-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(74, 103, 151, 0.72);
  border-radius: 12px;
  background: #162743;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#approvedUserModalRoot .approved-user-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#approvedUserModalRoot label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

#approvedUserModalRoot input,
#approvedUserModalRoot select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(55, 87, 130, 0.9);
  border-radius: 12px;
  padding: 0 13px;
  background: rgba(7, 18, 34, 0.96);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

#approvedUserModalRoot input:focus,
#approvedUserModalRoot select:focus {
  border-color: rgba(47, 109, 246, 0.95);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.18);
}

#approvedUserModalRoot .approved-user-delete-warning {
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 13px;
  background: rgba(127, 29, 29, 0.28);
  color: #ffd1d8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

#approvedUserModalRoot .approved-user-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

#approvedUserModalRoot .approved-modal-btn {
  min-width: 86px;
}

@media (max-width: 768px) {
  #approvedUsersAdminCard .approved-users-head {
    flex-direction: column;
  }

  #approvedUsersAdminCard .approved-users-actions,
  #approvedUsersAdminCard .approved-users-actions .secondary-btn {
    width: 100%;
  }

  #approvedUserModalRoot .approved-user-form-grid {
    grid-template-columns: 1fr;
  }
}
