XML 67 R56.htm IDEA: XBRL DOCUMENT
v3.22.2

Accrued Severance Benefits - Additional Information (Detail) | 6 Months Ended
--- | ---
Jun. 30, 2022
Percentage of employees eligible for severance benefits | 97.00%
Korea [Member] | Maximum [Member] |
Korea's mandatory retirement age | 60 years

X
- Definition Employees eligible for severance benefits percentage. + References No definition available. + Details
Name: | mx_EmployeesEligibleForSeveranceBenefitsPercentage
Namespace Prefix: | mx_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Korea's mandatory retirement age. + References No definition available. + Details
Name: | mx_KoreasMandatoryRetirementAge
Namespace Prefix: | mx_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | srt_StatementGeographicalAxis=country_KR
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: |