XML 106 R84.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Net income (loss) per common share - Reconciliation of numerator used for calculation of diluted net income per common share (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2021 | Dec. 31, 2020
Earnings per share [abstract] |  |
Numerator for basic net income (loss) per common share | $ 482,358 | $ (156,678)
Adjustment for the effect of TSARs: |  |
Cash-settled recovery included in net income (loss) | (9,168) | 0
Equity-settled expense | (5,742) | 0
Numerator for diluted net income (loss) per common share | $ 467,448 | $ (156,678)

X
- References No definition available. + Details
Name: | ifrs-full_EarningsPerShareAbstract
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The profit (loss) attributable to ordinary equity holders of the parent entity. [Refer: Profit (loss)] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 33 -IssueDate 2021-01-01 -Paragraph 70 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=33&code=ifrs-tx-2021-en-r&anchor=para_70_a&doctype=Standard -URIDate 2021-03-24 + Details
Name: | ifrs-full_ProfitLossAttributableToOrdinaryEquityHoldersOfParentEntity
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The profit (loss) attributable to ordinary equity holders of the parent entity, adjusted for the effects of all dilutive potential ordinary shares. [Refer: Profit (loss)] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 33 -IssueDate 2021-01-01 -Paragraph 70 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=33&code=ifrs-tx-2021-en-r&anchor=para_70_a&doctype=Standard -URIDate 2021-03-24 + Details
Name: | ifrs-full_ProfitLossAttributableToOrdinaryEquityHoldersOfParentEntityIncludingDilutiveEffects
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Dilutive Securities, Effect on Basic Earnings Per Share, Share-Based Compensation Arrangements + References No definition available. + Details
Name: | mx_DilutiveSecuritiesEffectonBasicEarningsPerShareShareBasedCompensationArrangementsAbstract
Namespace Prefix: | mx_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Dilutive Securities, Effect on Basic Earnings Per Share, Tandem Stock Appreciation Rights, Cash-Settled Recovery + References No definition available. + Details
Name: | mx_DilutiveSecuritiesEffectonBasicEarningsPerShareTandemStockAppreciationRightsCashSettledRecovery
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Dilutive Securities, Effect on Basic Earnings Per Share,Tandem Stock Appreciation Rights, Equity-Settled Expense + References No definition available. + Details
Name: | mx_DilutiveSecuritiesEffectonBasicEarningsPerShareTandemStockAppreciationRightsEquitySettledExpense
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration