XML 148 R126.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Related parties - Remuneration (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2021 | Dec. 31, 2020
Related Party [Abstract] |  |
Short-term employee benefits | $ 6,273 | $ 6,272
Post-employment benefits | 766 | 944
Other long-term employee benefits | 53 | 50
Share-based compensation expense (recovery) | (1,545) | 26,481
Total | $ 5,547 | $ 33,747

X
- Definition The amount of compensation to key management personnel. [Refer: Key management personnel of entity or parent [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 24 -IssueDate 2021-01-01 -Paragraph 17 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=24&code=ifrs-tx-2021-en-r&anchor=para_17&doctype=Standard -URIDate 2021-03-24 + Details
Name: | ifrs-full_KeyManagementPersonnelCompensation
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of compensation to key management personnel in the form of other long-term employee benefits. [Refer: Other long-term employee benefits; Key management personnel of entity or parent [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 24 -IssueDate 2021-01-01 -Paragraph 17 -Subparagraph c -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=24&code=ifrs-tx-2021-en-r&anchor=para_17_c&doctype=Standard -URIDate 2021-03-24 + Details
Name: | ifrs-full_KeyManagementPersonnelCompensationOtherLongtermBenefits
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of compensation to key management personnel in the form of post-employment benefits. [Refer: Key management personnel of entity or parent [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 24 -IssueDate 2021-01-01 -Paragraph 17 -Subparagraph b -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=24&code=ifrs-tx-2021-en-r&anchor=para_17_b&doctype=Standard -URIDate 2021-03-24 + Details
Name: | ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of compensation to key management personnel in the form of short-term employee benefits. [Refer: Key management personnel of entity or parent [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 24 -IssueDate 2021-01-01 -Paragraph 17 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=24&code=ifrs-tx-2021-en-r&anchor=para_17_a&doctype=Standard -URIDate 2021-03-24 + Details
Name: | ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Key management personnel compensation, share-based payment (recovery) + References No definition available. + Details
Name: | mx_KeyManagementPersonnelCompensationShareBasedPaymentRecovery
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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