XML 70 R59.htm IDEA: XBRL DOCUMENT
v3.22.2

Foreign Currency Gain (Loss), Net - Additional Information (Detail) $ in Thousands | Jun. 30, 2022 USD ($) | Dec. 31, 2021 USD ($)
--- | --- | ---
Foreign Currency Transaction [Abstract] |  |
Exchange rates using first base rate | 1,292.9 | 1,185.5
Intercompany loan balances | $ 352,589 | $ 344,411

X
- Definition Intercompany Loan + References No definition available. + Details
Name: | mx_IntercompanyLoan
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Foreign exchange rate used to translate amounts denominated in functional currency to reporting currency. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 30 -Section S99 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=6897108&loc=SL6897125-166521 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 830 -SubTopic 30 -Section 50 -Paragraph 2 -URI https://asc.fasb.org/extlink&oid=6450520&loc=d3e32618-110901 + Details
Name: | us-gaap_ForeignCurrencyExchangeRateTranslation1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_ForeignCurrencyTransactionAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration