XML 135 R112.htm IDEA: XBRL DOCUMENT
v3.25.0.1

Financial instruments - Euro forward exchange contracts (Details) € in Millions | 12 Months Ended |  |
--- | --- | --- | ---
Dec. 31, 2024 USD ($) | Dec. 31, 2023 USD ($) | Dec. 31, 2024 EUR (€) | Dec. 31, 2023 EUR (€)
Disclosure of financial assets [line items] |  |  |  |
Realized losses (gains) on foreign exchange hedges reclassified to revenue | $ (3,604,000) | $ 3,105,000 |  |
Euro forward exchange contracts |  |  |  |
Disclosure of financial assets [line items] |  |  |  |
Hedge ineffectiveness | 0 | 0 |  |
Euro forward exchange contracts | Cash flow hedges |  |  |  |
Disclosure of financial assets [line items] |  |  |  |
Notional amount | € |  |  | € 29.7 | € 12.2
Euro forward exchange contracts | Cash flow hedges | Other current assets |  |  |  |
Disclosure of financial assets [line items] |  |  |  |
Assets, fair value | $ 2,000,000.0 |  |  |
Euro forward exchange contracts | Cash flow hedges | Other current liabilities |  |  |  |
Disclosure of financial assets [line items] |  |  |  |
Liabilities, fair value |  | $ 500,000 |  |

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table. + References No definition available. + Details
Name: | ifrs-full_DisclosureOfFinancialAssetsLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The fair value of financial assets. [Refer: At fair value [member]; Financial assets] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2024-01-01 -Paragraph 25 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_25&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_FinancialAssetsAtFairValue
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The fair value of financial liabilities. [Refer: At fair value [member]; Financial liabilities] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2024-01-01 -Paragraph 25 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_25&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_FinancialLiabilitiesAtFairValue
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The gain (loss) on hedge ineffectiveness. Hedge ineffectiveness is the extent to which the changes in the fair value or the cash flows of the hedging instrument are greater or less than those on the hedged item. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2024-01-01 -Paragraph 24C -Subparagraph a -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_24C_a_i&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_GainLossOnHedgeIneffectiveness
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 exchange differences on the translation of financial statements of foreign operations, before tax, before reclassification adjustments. [Refer: Other comprehensive income] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 91 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_91_b&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The nominal or face amount of a financial instrument, used to calculate payments made on that instrument. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 112 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_112_c&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_NotionalAmount
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=mx_EuroForwardExchangeContractMember
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_AssetsAndLiabilitiesAxis=mx_OtherAssetsCurrentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_AssetsAndLiabilitiesAxis=mx_OtherLiabilitiesCurrentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |