XML 132 R109.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Financial instruments - Changes in cash flow hedges and excluded forward element (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022
Financial Instruments [Abstract] |  |
Change in fair value of cash flow hedges | $ (276,619) | $ (27,742)
Forward element excluded from hedging relationships | (33,837) | 406,029
Changes in cash flow hedges and excluded forward element | $ (310,456) | $ 378,287

X
- Definition The gains (losses) recognised in other comprehensive income on cash flow hedges, before tax, before reclassification adjustments. [Refer: Cash flow hedges [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 91 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_91_b&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The gains (losses) recognised in other comprehensive income on change in value of forward elements of forward contracts, before tax, before reclassification adjustments. [Refer: Other comprehensive income] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 91 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_91_b&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_GainsLossesOnChangeInValueOfForwardElementsOfForwardContractsBeforeTax
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The gains (losses) on hedging instruments in fair value hedges. [Refer: Fair value hedges [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Note Expired 2023-01-01 -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 24 -Subparagraph a -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_24_a_i&doctype=Standard&book=b -URIDate 2023-03-23 + Details
Name: | ifrs-full_GainsLossesOnHedgingInstrument
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Financial instruments [Abstract] + References No definition available. + Details
Name: | mx_FinancialInstrumentsAbstract
Namespace Prefix: | mx_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration