XML 117 R94.htm IDEA: XBRL DOCUMENT
v3.24.0.1

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

X
- Definition Number of Segments, Operating + References No definition available. + Details
Name: | mx_NumberOfSegmentsOperating
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