export const PHASE_CONFIG: Record<string, { label: string; color: string }> = {
  preorder: { label: "Pre-order", color: "#3B82F6" },
  launch: { label: "Launch", color: "#84cc16" },
  decay: { label: "Active", color: "#F59E0B" },
  mature: { label: "Evergreen", color: "#8B5CF6" },
  slow_mover: { label: "Slow Mover", color: "#06B6D4" },
  dormant: { label: "Dormant", color: "#6B7280" },
  unknown: { label: "Unclassified", color: "#94A3B8" },
}

/** Stacking order for phase area/bar charts (bottom to top) */
export const PHASE_KEYS = ["mature", "slow_mover", "decay", "launch", "preorder", "dormant"] as const

/** Same as PHASE_KEYS but includes the unknown bucket (for sales data where lifecycle_phase can be NULL) */
export const PHASE_KEYS_WITH_UNKNOWN = ["mature", "slow_mover", "decay", "launch", "preorder", "dormant", "unknown"] as const
