XML 137 R115.htm IDEA: XBRL DOCUMENT
v3.22.4

Financial instruments - Fair value - Level 3 instrument, narrative (Details) - USD ($) $ in Thousands | 3 Months Ended | 12 Months Ended |
--- | --- | --- | ---
Sep. 30, 2022 | Dec. 31, 2022 | Dec. 31, 2021
Disclosure Of Financial Assets And Liabilities [Line Items] |  |  |
Egypt gas redirection and sale proceeds, agreement period | 3 months | 3 months |
Derivative financial assets |  | $ 11,220 | $ 0
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 |  | $ 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 2022-03-24 -Paragraph 55 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_55&doctype=Standard -URIDate 2022-03-24 + 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
- Definition Revenue From Sale Of Oil And Gas Products, Agreement Period + References No definition available. + Details
Name: | mx_RevenueFromSaleOfOilAndGasProductsAgreementPeriod
Namespace Prefix: | mx_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_ClassesOfFinancialAssetsAxis=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: |