XML 49 R38.htm IDEA: XBRL DOCUMENT
v3.22.2

Inventories - Changes in Inventory Reserve (Detail) - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended
--- | --- | ---
Jun. 30, 2022 | Jun. 30, 2021 | Jun. 30, 2022 | Jun. 30, 2021
Inventory Disclosure [Abstract] |  |  |  |
Beginning balance | $ (5,555) | $ (6,281) | $ (5,730) | $ (5,901)
Change in reserve |  |  |  |
Inventory reserve charged to costs of sales | (6,093) | (3,186) | (7,700) | (5,350)
Sale of previously reserved inventory | 872 | 1,343 | 2,324 | 1,977
Change in reserve | (5,221) | (1,843) | (5,376) | (3,373)
Write off | 84 | 28 | 295 | 930
Translation adjustments | 486 | (5) | 605 | 243
Ending balance | $ (10,206) | $ (8,101) | $ (10,206) | $ (8,101)

X
- Definition Inventory reserve charged to costs of sales. + References No definition available. + Details
Name: | mx_InventoryReserveChargedToCostsOfSales
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Inventory valuation reserves changes. + References No definition available. + Details
Name: | mx_InventoryValuationReservesChanges
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Inventory valuation reserves changes. + References No definition available. + Details
Name: | mx_InventoryValuationReservesChangesAbstract
Namespace Prefix: | mx_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Inventory valuation reserves foreign currency translation adjustments. + References No definition available. + Details
Name: | mx_InventoryValuationReservesForeignCurrencyTranslationAdjustments
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Sale of previously reserved inventory. + References No definition available. + Details
Name: | mx_SaleOfPreviouslyReservedInventory
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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

X
- Definition Amount of valuation reserve for inventory. + 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(6)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 330 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SAB TOPIC 5.BB) -URI https://asc.fasb.org/extlink&oid=27011343&loc=d3e100047-122729 + Details
Name: | us-gaap_InventoryValuationReserves
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of loss from reductions in inventory due to subsequent measurement adjustments, including, but not limited to, physical deterioration, obsolescence, or changes in price levels. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 330 -SubTopic 10 -Section 50 -Paragraph 2 -URI https://asc.fasb.org/extlink&oid=116847112&loc=d3e4542-108314 + Details
Name: | us-gaap_InventoryWriteDown
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration