// Shipment Intake — Fiche PR (Achat MP) for Cumarex S.A.
// Filled at the port, before truck departure. Mobile-first.

const I18N_PR = {
  en: {
    brand: "Cumarex S.A.",
    tagline: "Fish & Seafood Export — Procurement",
    docTitle: "Shipment Intake · Fiche PR",
    docSubtitle: "Complete this form at the port, before the truck leaves. The system will auto-detect quality risks and generate a PR reference.",
    refLabel: "PR Reference",
    issuedLabel: "Created",
    versionLabel: "Status",
    statusDraft: "Draft",
    languageLabel: "Language",
    progressLabel: "Completion",

    // Sections
    s1Title: "Product",
    s1Desc: "Species, state, presentation and commercial terms.",
    s2Title: "Conservation & Quality",
    s2Desc: "Ice level and temperature of the fish.",
    s3Title: "Field quality",
    s3Desc: "Operator's visual & sensory assessment.",
    s4Title: "Origin",
    s4Desc: "Vessel, FAO zone and port of expedition.",
    s5Title: "Transport",
    s5Desc: "Truck, driver and logistics window.",
    s6Title: "Photos & notes",
    s6Desc: "Mandatory photos: lot, product, ice, labels.",
    s7Title: "Submit",
    s7Desc: "Operator confirmation.",

    // Product
    species: "Species",
    speciesPlaceholder: "Select species…",
    speciesOther: "Specify species",
    sp_tuna: "Tuna",
    sp_sardine: "Sardine",
    sp_mackerel: "Mackerel",
    sp_anchovy: "Anchovy",
    sp_octopus: "Octopus",
    sp_squid: "Squid / cuttlefish",
    sp_shrimp: "Shrimp / prawn",
    sp_salmon: "Salmon",
    sp_whitefish: "Whitefish (cod, hake, etc.)",
    sp_other: "Other",
    state: "State",
    state_fresh: "Fresh",
    state_frozen: "Frozen",
    presentation: "Presentation",
    pres_whole: "Whole",
    pres_hgt: "HGT",
    pres_other: "Other",
    presentationOther: "Specify presentation",
    moule: "Moule (size grade)",
    moulePh: "e.g. 4–6, 6–8, 8/12…",
    qtyEst: "Estimated quantity (kg)",
    price: "Agreed price",
    currency: "Currency",
    total: "Total (price × qty)",

    // Conservation
    iceLevel: "Ice level",
    ice_full: "Sufficient",
    ice_med: "Medium",
    ice_low: "Low",
    ice_none: "Absent",
    portTemp: "Temperature of the fish (°C)",
    tempPh: "e.g. 2.5",
    qualityField: "Product quality",
    q_excellent: "Excellent",
    q_good: "Good",
    q_avg: "Average",
    q_poor: "Mediocre",

    // Field quality
    qualityField: "Field quality assessment",
    q_very: "Very good",
    q_good: "Good",
    q_avg: "Average",
    q_poor: "Poor",
    histamineRisk: "Histamine risk flag",
    histamine_no: "No risk",
    histamine_yes: "Yes — flag for inspection",

    // Origin
    vessel: "Vessel name",
    flag: "Flag (country)",
    fao: "FAO fishing zone",
    faoPh: "e.g. 34 (Eastern Central Atlantic)",
    portExp: "Port of expedition",
    portOrig: "Port of origin",
    portOrigHint: "If different from port of expedition.",
    catchMethod: "Catch method",
    cm_purse: "Purse seine",
    cm_long: "Longline",
    cm_trawl: "Trawl",
    cm_handline: "Handline",
    cm_other: "Other",

    // Transport
    truckReg: "Truck registration",
    fridgeSerial: "Refrigerator serial number",
    driverName: "Driver name",
    driverPhone: "Driver phone",
    departTime: "Departure time",
    eta: "Estimated arrival (ETA)",
    transitWindow: "Transit time (ETA − departure)",
    deliveryState: "Delivery state",
    ds_transit: "In transit",
    ds_hold: "On hold",
    ds_received: "Received",
    tw_48: "48h",
    tw_60: "60h",
    tw_72: "72h",

    // Photos
    upLot: "Lot overview photo",
    upProduct: "Product detail photo",
    upIce: "Ice photo",
    upLabels: "Labels / paperwork photo",
    obs: "Observations",
    obsPh: "Anything the receiving team should know…",
    dropHint: "Click or drop file here",
    fileLimit: "Max 10 MB",

    // Submit
    operatorName: "Operator name",
    operatorId: "Operator ID",
    confirmText: "I confirm the above information was collected at the port and represents the lot accurately.",
    agree: "I confirm",

    saveDraft: "Save draft",
    submitBtn: "Submit by email",
    printBtn: "Print",
    resetBtn: "Reset",
    requiredNote: "Fields marked * are required.",
    footer: "Cumarex S.A. · Procurement · Zone industrielle, Route de Martil Tétouan, Tetouan 93006, Morocco",
    confidential: "Internal — operations only",
    submitConfirm: "Your form will open in your default email client. Please attach the photos listed in section 6.",

    // Risk banner
    riskCritical: "⚠ Critical histamine risk: low ice + high temperature.",
    riskHigh: "⚠ Elevated histamine risk — flag for receiving inspection.",
    riskMod: "Moderate risk — proceed with attention to transit time.",
    riskLow: "Low risk — conditions look good.",
  },
  fr: {
    brand: "Cumarex S.A.",
    tagline: "Exportation de poisson — Achats",
    docTitle: "Fiche PR · Achat Matière Première",
    docSubtitle: "À remplir au port, avant le départ du camion. Le système détecte automatiquement les risques qualité et génère une référence PR.",
    refLabel: "Référence PR",
    issuedLabel: "Créé le",
    versionLabel: "Statut",
    statusDraft: "Brouillon",
    languageLabel: "Langue",
    progressLabel: "Avancement",

    s1Title: "Produit",
    s1Desc: "Espèce, état, présentation et conditions commerciales.",
    s2Title: "Conservation & Qualité",
    s2Desc: "Niveau de glace et température du poisson.",
    s3Title: "Qualité terrain",
    s3Desc: "Évaluation visuelle et sensorielle de l'opérateur.",
    s4Title: "Origine",
    s4Desc: "Navire, zone FAO et port d'expédition.",
    s5Title: "Transport",
    s5Desc: "Camion, chauffeur et fenêtre logistique.",
    s6Title: "Photos & notes",
    s6Desc: "Photos obligatoires : lot, produit, glace, étiquettes.",
    s7Title: "Validation",
    s7Desc: "Confirmation de l'opérateur.",

    species: "Espèce",
    speciesPlaceholder: "Sélectionner l'espèce…",
    speciesOther: "Précisez l'espèce",
    sp_tuna: "Thon",
    sp_sardine: "Sardine",
    sp_mackerel: "Maquereau",
    sp_anchovy: "Anchois",
    sp_octopus: "Poulpe",
    sp_squid: "Calmar / seiche",
    sp_shrimp: "Crevette",
    sp_salmon: "Saumon",
    sp_whitefish: "Poisson blanc (cabillaud, merlu…)",
    sp_other: "Autre",
    state: "État",
    state_fresh: "Frais",
    state_frozen: "Congelé",
    presentation: "Présentation",
    pres_whole: "Entier",
    pres_hgt: "HGT",
    pres_other: "Autre",
    presentationOther: "Précisez la présentation",
    moule: "Moule (calibrage)",
    moulePh: "Ex. 4–6, 6–8, 8/12…",
    qtyEst: "Quantité estimée (kg)",
    price: "Prix convenu",
    currency: "Devise",
    total: "Total (prix × qté)",

    iceLevel: "Niveau de glace",
    ice_full: "Suffisant",
    ice_med: "Moyen",
    ice_low: "Peu",
    ice_none: "Absent",
    portTemp: "Température du poisson (°C)",
    tempPh: "Ex. 2.5",
    qualityField: "Qualité du produit",
    q_excellent: "Excellent",
    q_good: "Bon",
    q_avg: "Moyen",
    q_poor: "Médiocre",

    qualityField: "Évaluation qualité terrain",
    q_very: "Très bon",
    q_good: "Bon",
    q_avg: "Moyen",
    q_poor: "Médiocre",
    histamineRisk: "Risque histamine",
    histamine_no: "Pas de risque",
    histamine_yes: "Oui — signaler pour inspection",

    vessel: "Nom du navire",
    flag: "Pavillon (pays)",
    fao: "Zone FAO",
    faoPh: "Ex. 34 (Atlantique Centre-Est)",
    portExp: "Port d'expédition",
    portOrig: "Port d'origine",
    portOrigHint: "Si différent du port d'expédition.",
    catchMethod: "Méthode de pêche",
    cm_purse: "Senne tournante",
    cm_long: "Palangre",
    cm_trawl: "Chalut",
    cm_handline: "Ligne à main",
    cm_other: "Autre",

    truckReg: "Matricule camion",
    fridgeSerial: "N° série réfrigérateur",
    driverName: "Nom du chauffeur",
    driverPhone: "Téléphone chauffeur",
    departTime: "Heure de départ",
    eta: "Heure d'arrivée estimée (ETA)",
    transitWindow: "Durée de transit (ETA − départ)",
    deliveryState: "État de la livraison",
    ds_transit: "En transit",
    ds_hold: "En attente",
    ds_received: "Reçue",
    tw_48: "48h",
    tw_60: "60h",
    tw_72: "72h",

    upLot: "Photo vue lot",
    upProduct: "Photo détail produit",
    upIce: "Photo glace",
    upLabels: "Photo étiquettes / documents",
    obs: "Observations",
    obsPh: "Informations utiles à la réception…",
    dropHint: "Cliquez ou déposez le fichier ici",
    fileLimit: "Maximum 10 Mo",

    operatorName: "Nom de l'opérateur",
    operatorId: "Matricule opérateur",
    confirmText: "Je confirme que les informations ci-dessus ont été collectées au port et représentent fidèlement le lot.",
    agree: "Je confirme",

    saveDraft: "Enregistrer brouillon",
    submitBtn: "Envoyer par e-mail",
    printBtn: "Imprimer",
    resetBtn: "Réinitialiser",
    requiredNote: "Les champs marqués * sont obligatoires.",
    footer: "Cumarex S.A. · Achats · Zone industrielle, Route de Martil Tétouan, Tetouan 93006, Maroc",
    confidential: "Usage interne — opérations",
    submitConfirm: "Votre formulaire s'ouvrira dans votre messagerie. Joignez les photos listées en section 6.",

    riskCritical: "⚠ Risque histamine critique : peu de glace + température élevée.",
    riskHigh: "⚠ Risque histamine élevé — signaler à la réception.",
    riskMod: "Risque modéré — surveiller la durée de transit.",
    riskLow: "Risque faible — conditions favorables.",
  },
  es: {
    brand: "Cumarex S.A.",
    tagline: "Exportación de pescado — Compras",
    docTitle: "Ficha PR · Compra Materia Prima",
    docSubtitle: "Complete este formulario en el puerto, antes de la salida del camión. El sistema detecta automáticamente los riesgos de calidad y genera una referencia PR.",
    refLabel: "Referencia PR",
    issuedLabel: "Creado",
    versionLabel: "Estado",
    statusDraft: "Borrador",
    languageLabel: "Idioma",
    progressLabel: "Progreso",

    s1Title: "Producto",
    s1Desc: "Especie, estado, presentación y condiciones comerciales.",
    s2Title: "Conservación y Calidad",
    s2Desc: "Nivel de hielo y temperatura del pescado.",
    s3Title: "Calidad en campo",
    s3Desc: "Evaluación visual y sensorial del operador.",
    s4Title: "Origen",
    s4Desc: "Embarcación, zona FAO y puerto de expedición.",
    s5Title: "Transporte",
    s5Desc: "Camión, conductor y ventana logística.",
    s6Title: "Fotos y notas",
    s6Desc: "Fotos obligatorias: lote, producto, hielo, etiquetas.",
    s7Title: "Validación",
    s7Desc: "Confirmación del operador.",

    species: "Especie",
    speciesPlaceholder: "Seleccione especie…",
    speciesOther: "Especifique la especie",
    sp_tuna: "Atún",
    sp_sardine: "Sardina",
    sp_mackerel: "Caballa",
    sp_anchovy: "Anchoa",
    sp_octopus: "Pulpo",
    sp_squid: "Calamar / sepia",
    sp_shrimp: "Camarón / langostino",
    sp_salmon: "Salmón",
    sp_whitefish: "Pescado blanco (bacalao, merluza…)",
    sp_other: "Otro",
    state: "Estado",
    state_fresh: "Fresco",
    state_frozen: "Congelado",
    presentation: "Presentación",
    pres_whole: "Entero",
    pres_hgt: "HGT",
    pres_other: "Otro",
    presentationOther: "Especifique la presentación",
    moule: "Moule (calibre)",
    moulePh: "Ej. 4–6, 6–8, 8/12…",
    qtyEst: "Cantidad estimada (kg)",
    price: "Precio acordado",
    currency: "Moneda",
    total: "Total (precio × cant.)",

    iceLevel: "Nivel de hielo",
    ice_full: "Suficiente",
    ice_med: "Medio",
    ice_low: "Poco",
    ice_none: "Ausente",
    portTemp: "Temperatura del pescado (°C)",
    tempPh: "Ej. 2.5",
    qualityField: "Calidad del producto",
    q_excellent: "Excelente",
    q_good: "Buena",
    q_avg: "Media",
    q_poor: "Mediocre",

    qualityField: "Evaluación calidad en campo",
    q_very: "Muy buena",
    q_good: "Buena",
    q_avg: "Media",
    q_poor: "Mediocre",
    histamineRisk: "Riesgo histamina",
    histamine_no: "Sin riesgo",
    histamine_yes: "Sí — marcar para inspección",

    vessel: "Nombre de la embarcación",
    flag: "Pabellón (país)",
    fao: "Zona FAO",
    faoPh: "Ej. 34 (Atlántico Centro-Oriental)",
    portExp: "Puerto de expedición",
    portOrig: "Puerto de origen",
    portOrigHint: "Si difiere del puerto de expedición.",
    catchMethod: "Método de captura",
    cm_purse: "Cerco",
    cm_long: "Palangre",
    cm_trawl: "Arrastre",
    cm_handline: "Línea de mano",
    cm_other: "Otro",

    truckReg: "Matrícula del camión",
    fridgeSerial: "N° serie refrigerador",
    driverName: "Nombre del conductor",
    driverPhone: "Teléfono del conductor",
    departTime: "Hora de salida",
    eta: "Hora estimada de llegada (ETA)",
    transitWindow: "Tiempo de tránsito (ETA − salida)",
    deliveryState: "Estado de la entrega",
    ds_transit: "En tránsito",
    ds_hold: "En espera",
    ds_received: "Recibida",
    tw_48: "48h",
    tw_60: "60h",
    tw_72: "72h",

    upLot: "Foto vista del lote",
    upProduct: "Foto detalle producto",
    upIce: "Foto del hielo",
    upLabels: "Foto etiquetas / documentos",
    obs: "Observaciones",
    obsPh: "Información útil para recepción…",
    dropHint: "Haga clic o suelte el archivo aquí",
    fileLimit: "Máximo 10 MB",

    operatorName: "Nombre del operador",
    operatorId: "ID operador",
    confirmText: "Confirmo que la información anterior fue recopilada en el puerto y representa fielmente el lote.",
    agree: "Confirmo",

    saveDraft: "Guardar borrador",
    submitBtn: "Enviar por correo",
    printBtn: "Imprimir",
    resetBtn: "Restablecer",
    requiredNote: "Los campos marcados con * son obligatorios.",
    footer: "Cumarex S.A. · Compras · Zone industrielle, Route de Martil Tétouan, Tetouan 93006, Marruecos",
    confidential: "Uso interno — operaciones",
    submitConfirm: "Su formulario se abrirá en su cliente de correo. Adjunte las fotos listadas en la sección 6.",

    riskCritical: "⚠ Riesgo crítico de histamina: poco hielo + temperatura alta.",
    riskHigh: "⚠ Riesgo de histamina elevado — marcar para inspección.",
    riskMod: "Riesgo moderado — vigilar tiempo de tránsito.",
    riskLow: "Riesgo bajo — condiciones favorables.",
  },
};

window.I18N_PR = I18N_PR;
