export const DEFAULT_ROLE_COLORS: Record = { ADMIN: 'var(--red)', HQ_CLEANUP: '#34d399', MANAGER: 'var(--orange)', USER: 'var(--cyan)', VIEWER: 'var(--t3)', } export const CUSTOM_ROLE_COLORS = [ '#a78bfa', '#34d399', '#f472b6', '#fbbf24', '#60a5fa', '#2dd4bf', ] export function getRoleColor(code: string, index: number): string { return DEFAULT_ROLE_COLORS[code] || CUSTOM_ROLE_COLORS[index % CUSTOM_ROLE_COLORS.length] } export const statusLabels: Record = { PENDING: { label: '승인대기', color: 'text-yellow-400', dot: 'bg-yellow-400' }, ACTIVE: { label: '활성', color: 'text-green-400', dot: 'bg-green-400' }, LOCKED: { label: '잠김', color: 'text-red-400', dot: 'bg-red-400' }, INACTIVE: { label: '비활성', color: 'text-text-3', dot: 'bg-text-3' }, REJECTED: { label: '거절됨', color: 'text-red-300', dot: 'bg-red-300' }, } // PERM_RESOURCES 제거됨 — GET /api/roles/perm-tree에서 동적 로드 (PermissionsPanel)