XML 68 R57.htm IDEA: XBRL DOCUMENT
v3.23.1

Early Termination Charges (Details) - USD ($) $ in Thousands | 3 Months Ended
--- | ---
Mar. 31, 2023 | Mar. 31, 2022
Early Termination Charges [Abstract] |  |
Minimum requisite period of service for voluntary resignation program | 20 years |
Early termination charges | $ 8,449 | $ 0

X
- Definition The amount of early termination charges. + References No definition available. + Details
Name: | mx_EarlyTerminationCharges
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Minimum requisite period of service for voluntary resignation program, in PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | mx_MinimumRequisitePeriodOfServiceForVoluntaryResignationProgram
Namespace Prefix: | mx_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

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