// Types pour les KPI et données
export interface KPI {
  id: string;
  name: string;
  value: number | string;
  unit: string;
  category: 'security' | 'quality' | 'delays' | 'costs' | 'maintenance';
  target?: number;
  status: 'good' | 'warning' | 'critical';
  trend?: 'up' | 'down' | 'stable';
  description: string;
  formula?: string;
  data?: number[];
  labels?: string[];
}

export interface CategoryData {
  security: KPI[];
  quality: KPI[];
  delays: KPI[];
  costs: KPI[];
  maintenance: KPI[];
}

export interface DashboardStats {
  totalKPIs: number;
  goodCount: number;
  warningCount: number;
  criticalCount: number;
  avgPerformance: number;
}
