XML 64 R53.htm IDEA: XBRL DOCUMENT
v3.23.1

Derivative Financial Instruments, Cash Deposits (Details) - Zero Cost Collar and Forward Contracts [Member] - USD ($) $ in Thousands | Mar. 31, 2023 | Dec. 31, 2022
--- | --- | ---
Cash Deposits [Abstract] |  |
Cash deposits | $ 1,000 | $ 1,000
NFIK [Member] |  |
Additional Cash Collateral [Abstract] |  |
Threshold amount of cash collateral | 500 |
Threshold additional amount of cash collateral | 1,820 | 1,840
Termination provisions for cash and cash equivalents | 30,000 |
SC [Member] |  |
Cash Deposits [Abstract] |  |
Cash deposits | 1,000 | 1,000
Additional Cash Collateral [Abstract] |  |
Threshold amount of cash collateral | $ 500 |
Threshold additional amount of cash collateral |  | $ 100

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

X
- Definition Minimum sum of qualified and unrestricted cash and cash equivalents. + References No definition available. + Details
Name: | mx_MinimumSumOfQualifiedAndUnrestrictedCashAndCashEquivalents
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Additional amount of cash collateral in foreign currency exposure. + References No definition available. + Details
Name: | mx_ThresholdAdditionalAmountCashCollateralForeignCurrencyExposure
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Foreign currency exposure. + References No definition available. + Details
Name: | mx_ThresholdAmountCashCollateralForeignCurrencyExposure
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_DepositsAbstract
Namespace Prefix: | us-gaap_
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_NomuraFinancialInvestmentCoLtdMember
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: |