XML 81 R72.htm IDEA: XBRL DOCUMENT
v3.25.3

Foreign Currency Gain (Loss), Net - Additional Information (Detail) $ in Thousands | Sep. 30, 2025 USD ($) | Dec. 31, 2024 USD ($)
--- | --- | ---
Foreign Currency Transaction [Abstract] |  |
Exchange rates using first base rate | 1,402.2 | 1,470
Intercompany loan balances | $ 244,705 | $ 257,670

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 -Topic 830 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481674/830-30-50-2 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 830 -SubTopic 30 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479424/830-30-S99-1 + 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