XML 87 R65.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Property, plant and equipment - Right of use assets (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2021 | Dec. 31, 2020
Reconciliation of Changes in Right of Use Assets [Roll Forward] |  |
Right-of-use assets, beginning balance | $ 624,996 |
Right-of-use assets, ending balance | 610,951 | $ 624,996
Cost |  |
Reconciliation of Changes in Right of Use Assets [Roll Forward] |  |
Right-of-use assets, beginning balance | 892,056 | 798,097
Additions | 100,531 | 114,005
Disposals and other | 11,370 | 20,046
Right-of-use assets, ending balance | 981,217 | 892,056
Accumulated depreciation |  |
Reconciliation of Changes in Right of Use Assets [Roll Forward] |  |
Right-of-use assets, beginning balance | (267,060) | (162,679)
Disposals and other | (10,323) | (14,026)
Depreciation | 113,529 | 118,407
Right-of-use assets, ending balance | (370,266) | (267,060)
Ocean-going vessels |  |
Reconciliation of Changes in Right of Use Assets [Roll Forward] |  |
Right-of-use assets, beginning balance | 429,456 |
Right-of-use assets, ending balance | 443,770 | 429,456
Ocean-going vessels | Cost |  |
Reconciliation of Changes in Right of Use Assets [Roll Forward] |  |
Right-of-use assets, beginning balance | 582,072 | 514,661
Additions | 86,610 | 86,214
Disposals and other | 10,908 | 18,803
Right-of-use assets, ending balance | 657,774 | 582,072
Ocean-going vessels | Accumulated depreciation |  |
Reconciliation of Changes in Right of Use Assets [Roll Forward] |  |
Right-of-use assets, beginning balance | (152,616) | (89,643)
Disposals and other | (10,323) | (13,727)
Depreciation | 71,711 | 76,700
Right-of-use assets, ending balance | (214,004) | (152,616)
Terminals and tanks |  |
Reconciliation of Changes in Right of Use Assets [Roll Forward] |  |
Right-of-use assets, beginning balance | 154,719 |
Right-of-use assets, ending balance | 133,249 | 154,719
Terminals and tanks | Cost |  |
Reconciliation of Changes in Right of Use Assets [Roll Forward] |  |
Right-of-use assets, beginning balance | 246,553 | 221,303
Additions | 12,206 | 25,758
Disposals and other | 16 | 508
Right-of-use assets, ending balance | 258,743 | 246,553
Terminals and tanks | Accumulated depreciation |  |
Reconciliation of Changes in Right of Use Assets [Roll Forward] |  |
Right-of-use assets, beginning balance | (91,834) | (59,240)
Disposals and other | 0 | 0
Depreciation | 33,660 | 32,594
Right-of-use assets, ending balance | (125,494) | (91,834)
Buildings, plant installations and machinery |  |
Reconciliation of Changes in Right of Use Assets [Roll Forward] |  |
Right-of-use assets, beginning balance | 13,353 |
Right-of-use assets, ending balance | 10,947 | 13,353
Buildings, plant installations and machinery | Cost |  |
Reconciliation of Changes in Right of Use Assets [Roll Forward] |  |
Right-of-use assets, beginning balance | 23,761 | 23,613
Additions | 36 | 148
Disposals and other | 0 | 0
Right-of-use assets, ending balance | 23,797 | 23,761
Buildings, plant installations and machinery | Accumulated depreciation |  |
Reconciliation of Changes in Right of Use Assets [Roll Forward] |  |
Right-of-use assets, beginning balance | (10,408) | (7,867)
Disposals and other | 0 | 0
Depreciation | 2,442 | 2,541
Right-of-use assets, ending balance | (12,850) | (10,408)
Other |  |
Reconciliation of Changes in Right of Use Assets [Roll Forward] |  |
Right-of-use assets, beginning balance | 27,468 |
Right-of-use assets, ending balance | 22,985 | 27,468
Other | Cost |  |
Reconciliation of Changes in Right of Use Assets [Roll Forward] |  |
Right-of-use assets, beginning balance | 39,670 | 38,520
Additions | 1,679 | 1,885
Disposals and other | 446 | 735
Right-of-use assets, ending balance | 40,903 | 39,670
Other | Accumulated depreciation |  |
Reconciliation of Changes in Right of Use Assets [Roll Forward] |  |
Right-of-use assets, beginning balance | (12,202) | (5,929)
Disposals and other |  | (299)
Depreciation | 5,716 | 6,572
Right-of-use assets, ending balance | $ (17,918) | $ (12,202)

X
- Definition The amount of additions to right-of-use assets. [Refer: Right-of-use assets] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 16 -IssueDate 2021-01-01 -Paragraph 53 -Subparagraph h -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2021-en-r&anchor=para_53_h&doctype=Standard -URIDate 2021-03-24 + Details
Name: | ifrs-full_AdditionsToRightofuseAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of depreciation of right-of-use assets. [Refer: Depreciation and amortisation expense; Right-of-use assets] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 16 -IssueDate 2021-01-01 -Paragraph 53 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2021-en-r&anchor=para_53_a&doctype=Standard -URIDate 2021-03-24 + Details
Name: | ifrs-full_DepreciationRightofuseAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of assets that represent a lessee's right to use an underlying asset for the lease term. Underlying asset is an asset that is the subject of a lease, for which the right to use that asset has been provided by a lessor to a lessee. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 16 -IssueDate 2021-01-01 -Paragraph 53 -Subparagraph j -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2021-en-r&anchor=para_53_j&doctype=Standard -URIDate 2021-03-24 + Details
Name: | ifrs-full_RightofuseAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Disposals, Right of Use Assets + References No definition available. + Details
Name: | mx_DisposalsRightofUseAssets
Namespace Prefix: | mx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Reconciliation of Changes in Right of Use Assets [Roll Forward] + References No definition available. + Details
Name: | mx_ReconciliationofChangesinRightofUseAssetsRollForward
Namespace Prefix: | mx_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis=ifrs-full_GrossCarryingAmountMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis=ifrs-full_AccumulatedDepreciationAndAmortisationMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=ifrs-full_ShipsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=mx_TerminalsandtanksMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=mx_BuildingsPlantInstallationsAndMachineryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=ifrs-full_OtherPropertyPlantAndEquipmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |