XML 51 R40.htm IDEA: XBRL DOCUMENT
v3.23.1

Inventories, Changes in Inventory Reserve (Details) - USD ($) $ in Thousands | 3 Months Ended
--- | ---
Mar. 31, 2023 | Mar. 31, 2022
Changes in Inventory Reserve [Abstract] |  |
Beginning balance | $ (14,677) | $ (5,730)
Change in reserve [Abstract] |  |
Inventory reserve charged to costs of sales | (2,584) | (1,607)
Sale of previously reserved inventory | 1,476 | 1,452
Change in reserve | (1,108) | (155)
Write off | 415 | 211
Translation adjustments | 429 | 119
Ending balance | $ (14,941) | $ (5,555)

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

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