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

Derivative Financial Instruments - Impact of Derivative Instruments on Consolidated Statement of Operations (Detail) - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended
--- | --- | ---
Jun. 30, 2022 | Jun. 30, 2021 | Jun. 30, 2022 | Jun. 30, 2021
Derivative [Line Items] |  |  |  |
Amount of Gain (Loss) Reclassified from AOCI into Statement of Operations (Effective Portion) | $ 1,796 | $ (475) | $ 2,558 | $ (986)
Zero Cost Collars [Member] | Cash Flow Hedging [Member] |  |  |  |
Derivative [Line Items] |  |  |  |
Amount of Income (Loss) Recognized in AOCI on Derivatives (Effective Portion) | (6,477) | 432 | (7,741) | (1,693)
Zero Cost Collars [Member] | Cash Flow Hedging [Member] | Other income, net [Member] |  |  |  |
Derivative [Line Items] |  |  |  |
Amount of Loss Recognized in Statement of Operations on Derivatives (Ineffective Portion) | 184 | (58) | 55 | (144)
Zero Cost Collars [Member] | Cash Flow Hedging [Member] | Net Sales [Member] |  |  |  |
Derivative [Line Items] |  |  |  |
Amount of Gain (Loss) Reclassified from AOCI into Statement of Operations (Effective Portion) | $ (1,796) | $ 475 | $ (2,558) | $ 986

X
- Definition The effective portion of net gain (loss) reclassified from accumulated other comprehensive income into income on derivative instruments designated and qualifying as hedging instruments. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4D -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5624177-113959 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4C -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5624171-113959 + Details
Name: | us-gaap_DerivativeInstrumentsGainLossReclassifiedFromAccumulatedOCIIntoIncomeEffectivePortionNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The portion of gains and losses (net) on derivative instruments designated and qualifying as hedging instruments representing (a) the amount of the hedge ineffectiveness and (b) the amount, if any, excluded from the assessment of hedge effectiveness. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4C -Subparagraph (d) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5624171-113959 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 25 -Section 50 -Paragraph 1 -Subparagraph (a)(1),(2) -URI https://asc.fasb.org/extlink&oid=121577467&loc=d3e76258-113986 + Details
Name: | us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNet
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
- Definition Amount, before tax and adjustments, of gain (loss) from increase (decrease) in value of excluded component of derivative designated and qualifying as hedge. Adjustments include, but are not limited to, reclassifications for sale and settlement, and amounts recognized under systematic and rational method. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 10A -Subparagraph (dd) -URI https://asc.fasb.org/extlink&oid=126968391&loc=SL7669646-108580 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4C -Subparagraph (bb) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5624171-113959 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 11 -URI https://asc.fasb.org/extlink&oid=126968391&loc=d3e637-108580 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4CCC -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL109998896-113959 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 20 -Section 45 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=121577181&loc=SL110061190-113977 + Details
Name: | us-gaap_OtherComprehensiveIncomeLossDerivativeExcludedComponentIncreaseDecreaseBeforeAdjustmentsAndTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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

X
- Details
Name: | us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis=us-gaap_CashFlowHedgingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_OtherNonoperatingIncomeExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_SalesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |