XML 61 R50.htm IDEA: XBRL DOCUMENT
v3.22.2

Derivative Financial Instruments - Details of Derivative Contracts (Detail) - USD ($) $ in Thousands | 6 Months Ended | 12 Months Ended
--- | --- | ---
Jun. 30, 2022 | Dec. 31, 2021
Zero Cost Collar One [Member] |  |
Derivative [Line Items] |  |
Date of transaction | May 13, 2021 | May 13, 2021
Total notional amount | $ 9,000 | $ 39,000
Month of settlement, start | 2022-07 | 2022-01
Month of settlement, end | 2022-09 | 2022-09
Zero Cost Collar Two [Member] |  |
Derivative [Line Items] |  |
Date of transaction | Aug. 13, 2021 | Aug. 13, 2021
Total notional amount | $ 30,000 | $ 48,000
Month of settlement, start | 2022-07 | 2022-01
Month of settlement, end | 2022-12 | 2022-12
Zero Cost Collar Three [Member] |  |
Derivative [Line Items] |  |
Date of transaction | Jan. 04, 2022 |
Total notional amount | $ 39,000 |
Month of settlement, start | 2022-10 |
Month of settlement, end | 2023-06 |
Zero Cost Collar Four [Member] |  |
Derivative [Line Items] |  |
Date of transaction | Mar. 07, 2022 |
Total notional amount | $ 24,000 |
Month of settlement, start | 2023-07 |
Month of settlement, end | 2023-12 |
Zero Cost Collar Five [Member] |  |
Derivative [Line Items] |  |
Date of transaction | Apr. 27, 2022 |
Total notional amount | $ 51,000 |
Month of settlement, start | 2022-10 |
Month of settlement, end | 2023-12 |

X
- Definition Derivative, Settlement End Date, Month Year + References No definition available. + Details
Name: | mx_DerivativeSettlementEndDateMonthYear
Namespace Prefix: | mx_
Data Type: | xbrli:gYearMonthItemType
Balance Type: | na
Period Type: | duration

X
- Definition Derivative, Settlement Start Date, Month Year + References No definition available. + Details
Name: | mx_DerivativeSettlementStartDateMonthYear
Namespace Prefix: | mx_
Data Type: | xbrli:gYearMonthItemType
Balance Type: | na
Period Type: | duration

X
- Definition Date the entity entered into the derivative contract, in YYYY-MM-DD format. + References No definition available. + Details
Name: | us-gaap_DerivativeInceptionDates
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
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
- Definition Nominal or face amount used to calculate payment on derivative. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 1B -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5580258-113959 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 1A -Subparagraph (d) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5579245-113959 + Details
Name: | us-gaap_DerivativeNotionalAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

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

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

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

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

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