export const ACCESSIBILITY_DATA = {
  standard: "WCAG 2.1 AA",
  scanner: "axe-core 4.8 via @axe-core/playwright",
  totalApps: 24,
  overallScore: 76,
  principles: [
    { id: "perceivable", name: "Perceivable", score: 72, icon: "\u{1F441}", violations: 38, description: "Info & UI presentable to all users" },
    { id: "operable", name: "Operable", score: 81, icon: "\u2328\uFE0F", violations: 22, description: "UI components & navigation operable" },
    { id: "understandable", name: "Understandable", score: 82, icon: "\u{1F9E0}", violations: 14, description: "Info & operation understandable" },
    { id: "robust", name: "Robust", score: 69, icon: "\u{1F527}", violations: 31, description: "Content interpretable by assistive tech" },
  ],
  apps: [
    { id: "MM_PO", name: "Manage Purchase Orders", module: "MM", fioriId: "F0842", score: 82, violations: 4, critical: 0, serious: 2, moderate: 2, minor: 0, issues: ["Color contrast ratio 3.8:1 on status badges (needs 4.5:1)", "Missing aria-label on filter bar search input"], screenReader: "pass", keyboard: "pass" },
    { id: "MM_PR", name: "Manage Purchase Requisitions", module: "MM", fioriId: "F1005", score: 79, violations: 6, critical: 0, serious: 3, moderate: 2, minor: 1, issues: ["Table row selection not announced by screen reader", "Focus trap in approval dialog", "Insufficient contrast on 'Draft' badge"], screenReader: "partial", keyboard: "fail" },
    { id: "SD_SO", name: "Manage Sales Orders", module: "SD", fioriId: "F0217", score: 85, violations: 3, critical: 0, serious: 1, moderate: 1, minor: 1, issues: ["Pricing condition table missing column headers for ARIA", "Date picker not keyboard accessible on mobile viewport"], screenReader: "pass", keyboard: "pass" },
    { id: "SD_BILLING", name: "Manage Billing Documents", module: "SD", fioriId: "F0316", score: 74, violations: 8, critical: 1, serious: 3, moderate: 3, minor: 1, issues: ["PDF preview iframe has no accessible name (critical)", "ALV grid toolbar buttons lack aria-labels", "Tab order broken after inline edit save"], screenReader: "fail", keyboard: "fail" },
    { id: "FI_JE", name: "Manage Journal Entries", module: "FI", fioriId: "F0717", score: 88, violations: 2, critical: 0, serious: 0, moderate: 2, minor: 0, issues: ["Amount input fields missing currency context for screen readers", "Low contrast on disabled line items"], screenReader: "pass", keyboard: "pass" },
    { id: "FI_AP", name: "Post Supplier Invoices", module: "FI", fioriId: "F0859", score: 71, violations: 9, critical: 1, serious: 4, moderate: 3, minor: 1, issues: ["Three-way match visualization uses color-only indicators (critical)", "Attachment upload drag zone not keyboard accessible", "Error messages not linked to form fields via aria-describedby"], screenReader: "fail", keyboard: "fail" },
    { id: "FI_AR", name: "Manage Customer Line Items", module: "FI", fioriId: "F0710", score: 77, violations: 5, critical: 0, serious: 2, moderate: 2, minor: 1, issues: ["Clearing dialog focus management broken", "Sort indicators not exposed to assistive tech"], screenReader: "partial", keyboard: "pass" },
    { id: "CO_CC", name: "Manage Cost Centers", module: "CO", fioriId: "F1603", score: 91, violations: 1, critical: 0, serious: 0, moderate: 1, minor: 0, issues: ["Hierarchy tree expand/collapse missing ARIA states"], screenReader: "pass", keyboard: "pass" },
    { id: "HR_MASTER", name: "Maintain Employee Master", module: "HR", fioriId: "F2380", score: 68, violations: 11, critical: 2, serious: 4, moderate: 3, minor: 2, issues: ["Sensitive data masking toggle not accessible (critical)", "Photo upload has no alt text fallback (critical)", "Tab panels not announced when switching infotype tabs", "Date fields reject screen reader input format"], screenReader: "fail", keyboard: "fail" },
    { id: "HR_TIME", name: "Manage Time Recording", module: "HR", fioriId: "F2461", score: 73, violations: 7, critical: 0, serious: 3, moderate: 3, minor: 1, issues: ["Calendar grid cells missing accessible names", "Shift pattern visual-only encoding (color = shift type)", "Approve button disabled state not announced"], screenReader: "partial", keyboard: "partial" },
    { id: "WM_MONITOR", name: "Warehouse Monitor", module: "EWM", fioriId: "F5412", score: 64, violations: 14, critical: 2, serious: 5, moderate: 4, minor: 3, issues: ["Real-time dashboard auto-refresh steals focus (critical)", "Bin location map is SVG without ARIA roles (critical)", "Barcode scan input field has no visible label", "Stock level color coding has no text alternative"], screenReader: "fail", keyboard: "fail" },
    { id: "WM_PICK", name: "Pick Work List", module: "EWM", fioriId: "F5523", score: 62, violations: 15, critical: 2, serious: 6, moderate: 4, minor: 3, issues: ["RF scanner view has no semantic structure (critical)", "Priority indicators color-only (critical)", "Touch targets under 44x44px on mobile view", "List reorder drag-and-drop has no keyboard alternative"], screenReader: "fail", keyboard: "fail" },
    { id: "PP_PRODORDER", name: "Manage Production Orders", module: "PP", fioriId: "F2193", score: 76, violations: 6, critical: 0, serious: 3, moderate: 2, minor: 1, issues: ["Gantt chart component fully inaccessible to screen readers", "Operation sequence table missing row headers", "Confirmation dialog auto-closes \u2014 insufficient time"], screenReader: "partial", keyboard: "partial" },
    { id: "QM_INSPECT", name: "Record Inspection Results", module: "QM", fioriId: "F3211", score: 80, violations: 4, critical: 0, serious: 2, moderate: 1, minor: 1, issues: ["Inspection lot status icons lack text alternatives", "Measurement input validation error not announced"], screenReader: "partial", keyboard: "pass" },
    { id: "PM_NOTIFY", name: "Create Maintenance Notification", module: "PM", fioriId: "F3126", score: 83, violations: 3, critical: 0, serious: 1, moderate: 1, minor: 1, issues: ["Equipment hierarchy tree keyboard navigation inconsistent", "Image annotation tool not accessible"], screenReader: "pass", keyboard: "partial" },
    { id: "LAUNCHPAD", name: "SAP Fiori Launchpad", module: "Core", fioriId: "FLP", score: 87, violations: 3, critical: 0, serious: 1, moderate: 1, minor: 1, issues: ["Tile drag-and-drop personalization not keyboard accessible", "Notification popover focus management on close"], screenReader: "pass", keyboard: "partial" },
  ],
  violationsByType: [
    { rule: "color-contrast", count: 28, severity: "serious", principle: "perceivable", fix: "Increase contrast ratio to 4.5:1 minimum \u2014 affects SAP Horizon theme status badges, disabled states, and secondary text" },
    { rule: "aria-label", count: 18, severity: "serious", principle: "robust", fix: "Add aria-label to all interactive elements \u2014 filter bars, icon-only buttons, and toolbar actions across Fiori apps" },
    { rule: "keyboard-trap", count: 8, severity: "critical", principle: "operable", fix: "Fix focus traps in modal dialogs, approval workflows, and inline edit save flows \u2014 Esc key must always close" },
    { rule: "focus-management", count: 12, severity: "serious", principle: "operable", fix: "Restore focus after dialog close, page navigation, and dynamic content updates \u2014 affects all CRUD operations" },
    { rule: "color-only", count: 9, severity: "critical", principle: "perceivable", fix: "Add text/pattern alternatives to color-coded indicators \u2014 status badges, priority flags, match visualizations" },
    { rule: "image-alt", count: 6, severity: "serious", principle: "perceivable", fix: "Add alt text to employee photos, equipment images, document thumbnails" },
    { rule: "aria-roles", count: 14, severity: "moderate", principle: "robust", fix: "Add proper ARIA roles to custom UI5 controls \u2014 tree views, charts, Gantt components, dashboard widgets" },
    { rule: "form-label", count: 7, severity: "serious", principle: "perceivable", fix: "Associate visible labels with form inputs using for/id or aria-labelledby \u2014 search bars, barcode inputs" },
    { rule: "timing-adjustable", count: 3, severity: "moderate", principle: "operable", fix: "Allow users to extend/disable auto-refresh and auto-close timers on dashboards and confirmation dialogs" },
  ],
  regulatoryRequirements: [
    { region: "EU", law: "European Accessibility Act (EAA)", deadline: "June 2025", status: "non-compliant", gaps: 4, impact: "All EU subsidiaries must provide accessible digital products \u2014 mandatory for public procurement" },
    { region: "US", law: "Section 508 / ADA", deadline: "Ongoing", status: "partial", gaps: 2, impact: "Federal contracts and employees with disabilities \u2014 litigation risk for non-compliance" },
    { region: "DE", law: "BITV 2.0 / BFSG", deadline: "June 2025", status: "non-compliant", gaps: 3, impact: "German accessibility law aligns with EAA \u2014 \u20AC100K+ penalties per violation" },
    { region: "UK", law: "Equality Act 2010", deadline: "Ongoing", status: "partial", gaps: 2, impact: "Reasonable adjustments for employees \u2014 tribunal exposure" },
  ],
};
