XML 136 R113.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Financial instruments - Fair value - Level 3 instrument, narrative (Details) - USD ($) $ in Thousands | Dec. 31, 2023 | Dec. 31, 2022
--- | --- | ---
Disclosure Of Financial Assets And Liabilities [Line Items] |  |
Derivative financial assets | $ 20,402 | $ 11,220
Fair value of Egypt gas supply contract derivative | Level 3 of fair value hierarchy |  |
Disclosure Of Financial Assets And Liabilities [Line Items] |  |
Derivative financial assets | $ 20,400 | $ 11,200

X
- Definition The amount of financial assets classified as derivative instruments. [Refer: Financial assets; Derivatives [member]] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 55 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_55&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_DerivativeFinancialAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

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

X
- Details
Name: | ifrs-full_LevelsOfFairValueHierarchyAxis=ifrs-full_Level3OfFairValueHierarchyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |