XML 77 R55.htm IDEA: XBRL DOCUMENT
v3.22.4

Commitments and contingencies (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2022
Commitments And Contingencies [Abstract] |
Schedule of minimum estimated commitment under purchase contracts | The minimum estimated commitment under these contracts, except as noted below, is as follows: As at December 31, 2022
2023 | 2024 | 2025 | 2026 | 2027 | Thereafter
$ | 406,713 | $ | 446,052 |  | $ | 445,894 | $ | 269,830 | $ | 246,872 | $ | 1,108,607
Contractual obligations | The Company has future minimum payments relating primarily to short-term vessel charters, terminal facilities, and other commitments that are not leases, as follows: As at December 31, 2022
2023 | 2024 | 2025 | 2026 | 2027 | Thereafter
$ | 52,235 | $ | 19,718 | $ | 3,107 | $ | 568 | $ | 568 | $ | 1,655

X
- Definition Commitments And Contingencies + References No definition available. + Details
Name: | mx_CommitmentsAndContingenciesAbstract
Namespace Prefix: | mx_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Contingent Liabilities With Associates [Table Text Block] + References No definition available. + Details
Name: | mx_ContingentLiabilitiesWithAssociatesTableTextBlock
Namespace Prefix: | mx_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of contractual obligation by timing of payment due. Includes, but is not limited to, long-term debt obligation, lease obligation, and purchase obligation. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher SEC -Name Regulation S-K (SK) -Number 229 -Section 303 -Paragraph (a) -Subparagraph (5) + Details
Name: | srt_ContractualObligationFiscalYearMaturityScheduleTableTextBlock
Namespace Prefix: | srt_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration