{
  "nav": {
    "plans": "Commission Plans",
    "goals": "Commercial Goals",
    "import": "Ingest Sales",
    "simulation": "Simulation",
    "approvals": "Approvals",
    "history": "History",
    "dashboard": "Dashboard",
    "audit": "Audit Logs",
    "logout": "Log Out"
  },
  "simulation": {
    "title": "Settlement Simulation",
    "description": "Calculate, simulate and audit monthly commissions before the Commercial Leader's approval.",
    "periodLabel": "Settlement Period (YYYY-MM)",
    "dryRunLabel": "Simulator Mode (Do not write to database)",
    "calculateBtn": "Calculate",
    "calculatingBtn": "Calculating...",
    "resultsHeader": "Calculation Summary",
    "summaryCollaborators": "Collaborators",
    "summaryCommission": "Proposed Commission",
    "summaryAdjustment": "Retroactive Adjustments",
    "summaryPayout": "Estimated Total Payout",
    "thCollaborator": "Collaborator",
    "thPlan": "Plan",
    "thGoal": "Goal",
    "thSales": "Confirmed Sales",
    "thAchievement": "Achievement %",
    "thCommission": "Calculated Commission",
    "thAdjustment": "Retroactive Adjustments",
    "thPayout": "Total Payout",
    "thStatus": "Status",
    "thAiAudit": "AI Audit",
    "restrictedTitle": "Restricted Access",
    "restrictedDesc": "Sorry, this section is exclusive to the Administrator and the Compensation Analyst.",
    "successSimulate": "Simulation completed successfully. Results have not been saved.",
    "successCalculate": "Settlements calculated and saved successfully.",
    "serverError": "Error communicating with the server.",
    "loading": "Loading simulation panel..."
  },
  "status": {
    "ACTIVE": "Active",
    "INACTIVE": "Inactive",
    "PENDING": "Pending",
    "SIMULATED": "Simulated",
    "APPROVED": "Approved",
    "REJECTED": "Rejected",
    "DRAFT": "Draft"
  },
  "targetType": {
    "INDIVIDUAL": "Individual",
    "TEAM": "Team",
    "HOTEL": "Hotel"
  },
  "errors": {
    "unauthorizedTitle": "Access Denied",
    "unauthorizedDescription": "You do not have sufficient permissions to access this page. Please contact the administrator if you believe this is an error.",
    "unauthorizedBtn": "Back to Plans",
    "notFoundTitle": "Page Not Found",
    "notFoundDescription": "The page you are looking for does not exist or you do not have authorization to view it.",
    "notFoundBtn": "Back to Plans"
  },
  "dashboard": {
    "title": "Compensation Analytics Dashboard",
    "total_paid": "Total Paid Commissions",
    "avg_achievement": "Avg Goal Achievement",
    "budget_cap": "Active Budget Cap",
    "trends": "Monthly Commission Trends",
    "hotels_comparison": "Hotel Performance Comparison",
    "trends_desc": "Commission Paid vs Budget Cap",
    "hotels_desc": "Sales and achievements across hotels",
    "loading": "Loading dashboard..."
  },
  "history": {
    "title": "My Commission History",
    "audit_notes": "AI Audit Notes",
    "period": "Period",
    "goal": "Target Goal",
    "sales": "Sales Total",
    "commission": "Calculated Commission",
    "adjustment": "Clawback Adjustment",
    "payout": "Total Payout",
    "status": "Status",
    "empty": "No history records found.",
    "filters": "Filters",
    "all_statuses": "All Statuses",
    "download_pdf": "Download PDF",
    "loading": "Loading history...",
    "showNotes": "Show Notes",
    "hideNotes": "Hide",
    "allCollaborators": "All"
  },
  "audit": {
    "title": "System Audit Logs",
    "timestamp": "Timestamp",
    "actor": "Actor",
    "action": "Action",
    "target_table": "Target Table",
    "ip_address": "IP Address",
    "empty": "No audit logs found.",
    "details": "Details",
    "diff_panel": "Side-by-Side JSON Diff Details",
    "previous": "Previous Value",
    "new": "New Value",
    "no_diff": "No modification details available.",
    "loading": "Loading logs..."
  },
  "login": {
    "title": "Log In",
    "subtitle": "Hoteles Estelar",
    "username": "Username",
    "password": "Password",
    "usernamePlaceholder": "Enter your username",
    "passwordPlaceholder": "Enter your password",
    "submit": "Log In",
    "footer": "Variable Remuneration & Commissions System",
    "loading": "Loading form...",
    "error": "Login failed. Please check your credentials.",
    "unexpectedError": "An unexpected error occurred. Please try again."
  },
  "plans": {
    "title": "Commission Plans",
    "newPlan": "New Plan",
    "loading": "Loading plans...",
    "version": "Version",
    "startValidity": "Start Validity",
    "endValidity": "End Validity",
    "rulesCreated": "Rules created",
    "configureRules": "Configure Rules",
    "viewRules": "View Rules",
    "deactivateVersion": "Deactivate (Version)",
    "activate": "Activate",
    "modalTitle": "Create New Plan",
    "modalName": "Plan Name",
    "modalCode": "Plan Code",
    "modalValidityStart": "Start Validity",
    "modalType": "Remuneration Type",
    "modalMetaAmount": "Sales Goal (Optional)",
    "modalMaxCap": "Max Cap (Optional)",
    "modalStatus": "Initial Status",
    "modalCancel": "Cancel",
    "modalSave": "Save Plan",
    "types": {
      "PERCENTAGE": "Simple Percentage",
      "SCALE": "Contiguous Scale",
      "CONDITIONAL": "Conditional by Goals",
      "FIXED": "Fixed Commission"
    },
    "errorFind": "Could not find the plan.",
    "errorLoad": "Error loading plan information.",
    "modalValidityEnd": "End Validity (Optional)",
    "editPlan": "Edit Details",
    "deletePlan": "Delete Plan",
    "confirmDelete": "Are you sure you want to delete this plan? This action cannot be undone.",
    "modalEditTitle": "Edit Plan",
    "modalCreateTitle": "Create New Plan"
  },
  "rules": {
    "back": "Back to Plans",
    "title": "Configure Commission Rules",
    "subtitle": "Plan: {name} | Code: {code} | Version: {version} | Status: {status}",
    "thType": "Rule Type",
    "thMin": "Min Achievement (%)",
    "thMax": "Max Achievement (%)",
    "thRate": "Commission Rate (Decimal)",
    "thPayout": "Fixed Payout ($)",
    "addRule": "+ Add Bracket / Rule",
    "cancel": "Cancel",
    "backBtn": "Back",
    "save": "Save Rules",
    "loading": "Loading configuration...",
    "delete": "Delete rule",
    "types": {
      "TIER": "Bracket (TIER)",
      "BONUS": "Fixed Bonus (BONUS)"
    },
    "errorAtLeastOne": "The plan must have at least one rule.",
    "errorBoundary": "Row {row}: Min achievement ({min}) must be less than max achievement ({max}).",
    "errorNegative": "Row {row}: All values must be greater than or equal to zero.",
    "errorSave": "Error saving rules.",
    "errorNetwork": "A network error occurred while saving rules.",
    "successSave": "Rules configured and saved successfully."
  },
  "goals": {
    "title": "Commercial Goals",
    "assignTitle": "Assign Goal",
    "labelType": "Goal Type",
    "labelSelect": "Select Collaborator",
    "labelPeriod": "Period (YYYY-MM)",
    "labelAmount": "Goal Amount ($)",
    "btnSave": "Save Goal",
    "thTarget": "Target",
    "thType": "Type",
    "thPeriod": "Period",
    "thAmount": "Amount",
    "thActions": "Actions",
    "empty": "No assigned goals found.",
    "loading": "Loading goals...",
    "successSave": "Commercial goal assigned / updated successfully.",
    "errorSave": "An error occurred while saving the goal.",
    "errorInput": "Please enter valid values.",
    "roles": {
      "collaborator": "Collaborator",
      "commercial_leader": "Commercial Leader",
      "hotel_manager": "Manager",
      "director": "Director",
      "analyst": "Analyst",
      "admin": "Administrator"
    }
  },
  "import": {
    "title": "Upload Commercial Sales",
    "subtitle": "Import the results file to process period commissions.",
    "templateLabel": "Use the official template to avoid inconsistencies:",
    "downloadTemplate": "Download Template (.xlsx)",
    "loading": "Loading import module...",
    "unsupportedFile": "Unsupported file type. Please upload .xlsx, .xls or .csv files",
    "uploading": "Uploading and verifying file...",
    "process": "Process File",
    "clear": "Clear",
    "success": "Upload successful:",
    "successDesc": "Successfully imported {count} sales records.",
    "consolidated": "Consolidated amount:",
    "inconsistencyTitle": "Inconsistency Row Details",
    "thRow": "Row",
    "thColumn": "Column",
    "thValue": "Read Value",
    "thError": "Error Detail",
    "statusPolling": "Processing async integration via n8n...",
    "timeout": "n8n processing is taking longer than expected. Please check history later.",
    "networkError": "Network failure or unexpected error while uploading file.",
    "dragText": "Drag and drop your file here, or",
    "browseText": "browse files",
    "supportedText": "Supported formats: .xlsx, .xls, .csv",
    "inconsistencyAlert": "Inconsistency detected:",
    "errors": {
      "USER_NOT_FOUND": "Collaborator '{username}' does not exist in the system.",
      "INVALID_PERIOD_FORMAT": "Period '{value}' has an invalid format (expected: {expected}).",
      "HOTEL_NOT_FOUND": "Hotel '{hotelCode}' does not exist in the system.",
      "HOTEL_REGION_MISMATCH": "Hotel '{hotelCode}' does not belong to your authorized region.",
      "INVALID_AMOUNT": "Amount '{value}' is invalid. It must be a positive number.",
      "INVALID_COUNT": "Quantity '{value}' is invalid. It must be a positive integer.",
      "USER_REQUIRED": "Collaborator is required.",
      "HOTEL_REQUIRED": "Hotel is required.",
      "IMPORT_VALIDATION_FAILED": "The uploaded file contains validation inconsistencies.",
      "MISSING_IDEMPOTENCY_KEY": "Idempotency key header is required.",
      "FILE_REQUIRED": "Must select a valid file.",
      "EMPTY_FILE": "The file is empty and contains no records.",
      "INTEGRATION_ERROR": "The integration engine (n8n) reported a failure while processing the request.",
      "IMPORT_ALREADY_PROCESSED": "This file has already been successfully uploaded and processed before.",
      "IMPORT_SUCCESSFUL": "Import completed successfully. Loaded {count} records.",
      "IMPORT_ACCEPTED": "The import has been accepted and is being processed by n8n in the background."
    }
  },
  "approvals": {
    "title": "Approvals Panel",
    "loading": "Loading approvals panel...",
    "leaderDesc": "Review and approve commission settlements for collaborators in your region.",
    "globalDesc": "View and audit the approval status of commission settlements.",
    "empty": "No pending settlements found in your region.",
    "thCollaborator": "Collaborator",
    "thPlan": "Plan",
    "thPeriod": "Period",
    "thGoal": "Goal",
    "thSales": "Sales",
    "thAchievement": "Achievement",
    "thPayout": "Total Payout",
    "thStatus": "Status",
    "thActions": "Actions",
    "btnApprove": "Approve",
    "btnReject": "Reject",
    "rejectModalTitle": "Reject Commission Settlement",
    "rejectReasonLabel": "Reason for Rejection",
    "rejectReasonPlaceholder": "e.g., Missing physical sales proof validation...",
    "rejectCancel": "Cancel",
    "rejectConfirm": "Confirm Rejection",
    "successApprove": "Settlement approved successfully.",
    "successReject": "Settlement rejected.",
    "errorApprove": "Error approving settlement.",
    "errorReject": "Error rejecting settlement.",
    "errorServer": "Error communicating with the server."
  }
}