XML 118 R96.htm IDEA: XBRL DOCUMENT
v3.22.4

Segmented information - Narrative (Details) | 12 Months Ended
--- | ---
Dec. 31, 2022 segment
Operating Segments [Abstract] |
Number of operating segments | 1

X
- Definition Number Of Operating Segments + References No definition available. + Details
Name: | mx_NumberOfOperatingSegments1
Namespace Prefix: | mx_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Operating Segments [Abstract] + References No definition available. + Details
Name: | mx_OperatingSegmentsAbstract
Namespace Prefix: | mx_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration