XML 54 R43.htm IDEA: XBRL DOCUMENT
v3.22.2

Leases - Additional Information (Detail) | 6 Months Ended
--- | ---
Jun. 30, 2022
Maximum [Member] |
Lease Agreements Remaining Term of Lease | 4 years
Minimum [Member] |
Lease Agreements Remaining Term of Lease | 1 year

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
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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