XML 66 R57.htm IDEA: XBRL DOCUMENT
v3.25.3

Leases - Additional Information (Detail) - USD ($) $ in Thousands | 9 Months Ended
--- | ---
Sep. 30, 2025 | Sep. 30, 2024
Non cash transaction amount of lease liabilities arisinf from obtaining right of use assets | $ 1,170 | $ 736
Minimum [Member] |  |
Lease Agreements Remaining Term of Lease | 1 year |
Maximum [Member] |  |
Lease Agreements Remaining Term of Lease | 4 years |

X
- Definition Lease agreements remaining lease term for finance and operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | mx_RemainingLeaseTerm
Namespace Prefix: | mx_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of increase in right-of-use asset obtained in exchange for finance lease liability. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 53 -Publisher FASB -URI https://asc.fasb.org/1943274/2147479589/842-20-55-53 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (g)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478964/842-20-50-4 + Details
Name: | us-gaap_RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |