XML 65 R54.htm IDEA: XBRL DOCUMENT
v3.22.2

Derivative Financial Instruments - Cash deposits (Details) - USD ($) $ in Thousands | Jun. 30, 2022 | Dec. 31, 2021
--- | --- | ---
Zero Cost Collar And Forward Contracts [Member] | SC |  |
Deposit Assets [Line Items] |  |
Margin Deposit Assets | $ 1,000 | $ 1,000

X
- Definition Deposit assets. + References No definition available. + Details
Name: | mx_DepositAssetsLineItems
Namespace Prefix: | mx_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of cash or securities placed with a broker or counterparty as security for a trading or derivatives securities position which was partially obtained with funds provided by the broker dealer. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(17)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_MarginDepositAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=mx_ZeroCostCollarAndForwardContractsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CounterpartyNameAxis=mx_StandardCharteredBankKoreaLimitedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |