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

Accrued Severance Benefits, Future Benefits Payments to Employees (Details) $ in Thousands | 3 Months Ended
--- | ---
Mar. 31, 2023 USD ($)
Future Benefits to Non-Executive Employees [Abstract] |
Remainder of 2023 | $ 634
2024 | 906
2025 | 1,502
2026 | 1,829
2027 | 1,718
2028 | 3,699
2029 - 2033 | $ 21,043
Retirement age of employees | 60 years
Korea [Member] | Minimum [Member] |
Future Benefits to Non-Executive Employees [Abstract] |
Korea's mandatory retirement age | 60 years

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

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
- Definition Post Employment Benefit Payments Five Fiscal Years Thereafter. + References No definition available. + Details
Name: | mx_PostEmploymentBenefitPaymentsFiveFiscalYearsThereafter
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Post employment benefit payments next twelve months. + References No definition available. + Details
Name: | mx_PostEmploymentBenefitPaymentsNextTwelveMonths
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Post employment benefit payments year two. + References No definition available. + Details
Name: | mx_PostEmploymentBenefitPaymentsYearTwo
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Postemployment benefit payments remainder of fiscal year. + References No definition available. + Details
Name: | mx_PostemploymentBenefitPaymentsRemainderOfFiscalYear
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Postemployment benefit payments year five. + References No definition available. + Details
Name: | mx_PostemploymentBenefitPaymentsYearFive
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Postemployment benefit payments year four. + References No definition available. + Details
Name: | mx_PostemploymentBenefitPaymentsYearFour
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Postemployment benefit payments year three. + References No definition available. + Details
Name: | mx_PostemploymentBenefitPaymentsYearThree
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Retirement age of employees. + References No definition available. + Details
Name: | mx_RetirementAgeOfEmployees
Namespace Prefix: | mx_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

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