XML 129 R106.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Financial instruments - Financial assets and liabilities (Details) - USD ($) $ in Thousands | Dec. 31, 2023 | Dec. 31, 2022
--- | --- | ---
Disclosure Of Fair Value Measurement Of Assets And Liabilities [Line Items] |  |
Financial assets | $ 1,130,036 | $ 1,694,248
Financial liabilities | 3,805,825 | 3,714,666
Trade, other payables and accrued liabilities, excluding tax payable | Financial liabilities not measured at fair value: |  |
Disclosure Of Fair Value Measurement Of Assets And Liabilities [Line Items] |  |
Financial liabilities | 672,237 | 656,010
Lease obligations, including current portion | Financial liabilities not measured at fair value: |  |
Disclosure Of Fair Value Measurement Of Assets And Liabilities [Line Items] |  |
Financial liabilities | 872,120 | 870,163
Long-term debt, including current portion | Financial liabilities not measured at fair value: |  |
Disclosure Of Fair Value Measurement Of Assets And Liabilities [Line Items] |  |
Financial liabilities | 2,141,801 | 2,151,513
Land mortgage | Financial liabilities not measured at fair value: |  |
Disclosure Of Fair Value Measurement Of Assets And Liabilities [Line Items] |  |
Financial liabilities | 28,014 | 28,514
Cash flow hedges | Derivative instruments designated as cash flow hedges | Financial liabilities measured at fair value: |  |
Disclosure Of Fair Value Measurement Of Assets And Liabilities [Line Items] |  |
Financial liabilities | 91,653 | 8,466
Derivative instruments designated as cash flow hedges | Financial assets measured at fair value: | Cash flow hedges |  |
Disclosure Of Fair Value Measurement Of Assets And Liabilities [Line Items] |  |
Financial assets | 121,108 | 322,748
Fair value of Egypt gas supply contract derivative | Financial assets measured at fair value: | Cash flow hedges |  |
Disclosure Of Fair Value Measurement Of Assets And Liabilities [Line Items] |  |
Financial assets | 20,402 | 11,220
Cash and cash equivalents | Financial assets not measured at fair value: |  |
Disclosure Of Fair Value Measurement Of Assets And Liabilities [Line Items] |  |
Financial assets | 458,015 | 857,747
Trade and other receivables, excluding tax receivable | Financial assets not measured at fair value: |  |
Disclosure Of Fair Value Measurement Of Assets And Liabilities [Line Items] |  |
Financial assets | 514,739 | 488,184
Restricted cash included in other assets | Financial assets not measured at fair value: |  |
Disclosure Of Fair Value Measurement Of Assets And Liabilities [Line Items] |  |
Financial assets | $ 15,772 | $ 14,349

X
- Definition The amount of assets that are: (a) cash; (b) an equity instrument of another entity; (c) a contractual right: (i) to receive cash or another financial asset from another entity; or (ii) to exchange financial assets or financial liabilities with another entity under conditions that are potentially favourable to the entity; or (d) a contract that will, or may be, settled in the entity’s own equity instruments and is: (i) a non-derivative for which the entity is, or may be, obliged to receive a variable number of the entity’s own equity instruments; or (ii) a derivative that will, or may be, settled other than by the exchange of a fixed amount of cash or another financial asset for a fixed number of the entity’s own equity instruments. For this purpose the entity’s own equity instruments do not include puttable financial instruments classified as equity instruments in accordance with paragraphs 16A-16B of IAS 32, instruments that impose on the entity an obligation to deliver to another party a pro rata share of the net assets of the entity only on liquidation and are classified as equity instruments in accordance with paragraphs 16C-16D of IAS 32, or instruments that are contracts for the future receipt or delivery of the entity’s own equity instruments. [Refer: Financial instruments, class [member]; Financial liabilities] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 25 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_25&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 35H -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35H&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 35M -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35M&doctype=Standard -URIDate 2023-03-23 Reference 4: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 35N -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35N&doctype=Standard -URIDate 2023-03-23 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 35I -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_35I&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_FinancialAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of liabilities that are: (a) a contractual obligation: (i) to deliver cash or another financial asset to another entity; or (ii) to exchange financial assets or financial liabilities with another entity under conditions that are potentially unfavourable to the entity; or (b) a contract that will, or may be, settled in the entity’s own equity instruments and is: (i) a non-derivative for which the entity is, or may be, obliged to deliver a variable number of the entity’s own equity instruments; or (ii) a derivative that will, or may be, settled other than by the exchange of a fixed amount of cash or another financial asset for a fixed number of the entity’s own equity instruments. For this purpose, rights, options or warrants to acquire a fixed number of the entity’s own equity instruments for a fixed amount of any currency are equity instruments if the entity offers the rights, options or warrants pro rata to all of its existing owners of the same class of its own non-derivative equity instruments. Also, for those purposes the entity’s own equity instruments do not include puttable financial instruments that are classified as equity instruments in accordance with paragraphs 16A-16B of IAS 32, instruments that impose on the entity an obligation to deliver to another party a pro rata share of the net assets of the entity only on liquidation and are classified as equity instruments in accordance with paragraphs 16C-16D of IAS 32, or instruments that are contracts for the future receipt or delivery of the entity’s own equity instruments. As an exception, an instrument that meets the definition of a financial liability is classified as an equity instrument if it has all the features and meets the conditions in paragraphs 16A-16B or paragraphs 16C-16D of IAS 32. [Refer: Financial instruments, class [member]; Financial assets; Derivatives [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 25 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_25&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_FinancialLiabilities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition [Line Items] for Disclosure Of Fair Value Measurement Of Assets And Liabilities [Table] + References No definition available. + Details
Name: | mx_DisclosureOfFairValueMeasurementOfAssetsAndLiabilitiesLineItems
Namespace Prefix: | mx_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_ClassesOfFinancialLiabilitiesAxis=mx_TradeOtherPayablesAndAccruedLiabilitiesExcludingTaxPayableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfFinancialLiabilitiesAxis=ifrs-full_FinancialLiabilitiesAtAmortisedCostCategoryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialLiabilitiesAxis=mx_LeaseObligationsIncludingCurrentPortionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialLiabilitiesAxis=ifrs-full_LongtermBorrowingsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialLiabilitiesAxis=mx_LandMortgageMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_TypesOfHedgesAxis=ifrs-full_CashFlowHedgesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialLiabilitiesAxis=mx_DerivativeLiabilitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfFinancialLiabilitiesAxis=mx_FinancialLiabilitiesAtFairValueThroughOtherComprehensiveIncomeCategoryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialAssetsAxis=ifrs-full_DerivativesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfFinancialAssetsAxis=ifrs-full_FinancialAssetsAtFairValueThroughOtherComprehensiveIncomeCategoryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialAssetsAxis=mx_ForeignGasSupplyContractDerivativeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialAssetsAxis=mx_CashAndCashEquivalents1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfFinancialAssetsAxis=ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialAssetsAxis=mx_TradeAndOtherReceivablesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialAssetsAxis=mx_RestrictedCashMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |