XML 69 R58.htm IDEA: XBRL DOCUMENT
v3.23.1

Foreign Currency Loss, Net (Details) $ in Thousands | Mar. 31, 2023 USD ($) | Dec. 31, 2022 USD ($)
--- | --- | ---
Foreign Currency Loss, Net [Abstract] |  |
Intercompany loan balances | $ 301,860 | $ 310,988
Exchange rates using first base rate | 1,303.8 | 1,267.3

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
- References No definition available. + Details
Name: | us-gaap_ForeignCurrencyAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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