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

Derivative Financial Instruments, Derivative Contracts (Details) - USD ($) $ in Thousands | 3 Months Ended | 12 Months Ended
--- | --- | ---
Mar. 31, 2023 | Dec. 31, 2022
Zero Cost Collar One [Member] |  |
Zero Cost Collar Contracts [Abstract] |  |
Date of transaction | Jan. 04, 2022 | Jan. 04, 2022
Total notional amount | $ 15,000 | $ 30,000
Month of settlement, start | 2023-04 | 2023-01
Month of settlement, end | 2023-06 | 2023-06
Zero Cost Collar Two [Member] |  |
Zero Cost Collar Contracts [Abstract] |  |
Date of transaction | Mar. 07, 2022 | Mar. 07, 2022
Total notional amount | $ 24,000 | $ 24,000
Month of settlement, start | 2023-07 | 2023-07
Month of settlement, end | 2023-12 | 2023-12
Zero Cost Collar Three [Member] |  |
Zero Cost Collar Contracts [Abstract] |  |
Date of transaction | Apr. 27, 2022 | Apr. 27, 2022
Total notional amount | $ 33,000 | $ 42,000
Month of settlement, start | 2023-04 | 2023-01
Month of settlement, end | 2023-12 | 2023-12
Zero Cost Collar Four [Member] |  |
Zero Cost Collar Contracts [Abstract] |  |
Date of transaction | Mar. 08, 2023 |
Total notional amount | $ 18,000 |
Month of settlement, start | 2023-07 |
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
- References No definition available. + Details
Name: | mx_ZeroCostCollarContractsAbstract
Namespace Prefix: | mx_
Data Type: | xbrli:stringItemType
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 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: |