XML 60 R49.htm IDEA: XBRL DOCUMENT
v3.22.2

Derivative Financial Instruments - Additional Information (Detail) - USD ($) $ in Thousands | 6 Months Ended |
--- | --- | ---
Jun. 30, 2022 | Dec. 31, 2021
Derivative [Line Items] |  |
Estimated amount reclassified from accumulated other comprehensive income into income | $ 5,294 |
Nomura Financial Investment (Korea) Co., Ltd. [Member] |  |
Derivative [Line Items] |  |
Threshold amount of cash collateral |  | $ 760
Standard Chartered Bank Korea Limited [Member] |  |
Derivative [Line Items] |  |
Threshold amount of cash collateral |  | $ 1,300
Zero Cost Collar and Forward Contracts [Member] | Nomura Financial Investment (Korea) Co., Ltd. [Member] |  |
Derivative [Line Items] |  |
Threshold amount of cash collateral | 500 |
Cash collateral for credit exposure in derivatives | 5,290 |
Termination provisions for cash and cash equivalents | 30,000 |
Zero Cost Collar and Forward Contracts [Member] | Standard Chartered Bank Korea Limited [Member] |  |
Derivative [Line Items] |  |
Cash collateral for credit exposure in derivatives | $ 700 |

X
- Definition Cash collateral for covering credit exposure in derivatives. + References No definition available. + Details
Name: | mx_CashCollateralForCoveringCreditExposureInDerivatives
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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 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
- Definition The estimated value of gains (losses), net anticipated to be transferred in the future from accumulated other comprehensive income into earnings. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 30 -Section 50 -Paragraph 6 -URI https://asc.fasb.org/extlink&oid=121549185&loc=d3e80845-113994 + Details
Name: | us-gaap_DerivativeInstrumentsGainLossReclassificationFromAccumulatedOCIToIncomeEstimatedNetAmountToBeTransferred
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_DerivativeLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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: |

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