XML 48 R28.htm IDEA: XBRL DOCUMENT
v3.25.3

Commitments and Contingencies - Additional Information (Detail) - USD ($) $ in Millions | Jul. 31, 2024 | Jun. 02, 2022 | Jun. 30, 2025 | Oct. 31, 2022 | Apr. 01, 2022
--- | --- | --- | --- | --- | ---
Loss Contingencies [Line Items] |  |  |  |  |
Contracts receivable, claims and uncertain amounts |  |  |  |  | $ 32.7
Mining and Minerals Project |  |  |  |  |
Loss Contingencies [Line Items] |  |  |  |  |
Contracts receivable, claims and uncertain amounts |  |  | $ 5.6 |  |
Crude Oil Terminal Project |  |  |  |  |
Loss Contingencies [Line Items] |  |  |  |  |
Loss Contingency, Actions Taken by Defendant | 72.9 million | 20.0 million |  |  |
Loss Contingency ActionsTaken By Defendant, Maximum | $ 97.9 |  |  | $ 36.0 |
Loss Contingency Actions Taken By Defendant, Minimum |  |  |  | $ 18.8 |
Loss Contingency, Actions Taken by Plaintiff | 24.5 million |  |  |  |

X
- References No definition available. + Details
Name: | mtrx_LossContingencyActionsTakenByDefendantMaximum
Namespace Prefix: | mtrx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Loss Contingency Actions Taken By Defendant, Minimum + References No definition available. + Details
Name: | mtrx_LossContingencyActionsTakenByDefendantMinimum
Namespace Prefix: | mtrx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of billed or unbilled claims or other similar items subject to uncertainty concerning their determination or ultimate realization under long-term contracts. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(3)(c)(3)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_ContractsReceivableClaimsAndUncertainAmounts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 275 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 9 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482861/275-10-50-9 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 450 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483076/450-20-50-4 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 450 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 9 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483076/450-20-50-9 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 720 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483359/720-20-50-1 Reference 5: http://www.xbrl.org/2003/role/exampleRef -Topic 460 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 27 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482395/460-10-55-27 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 450 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 9 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483076/450-20-50-9 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 450 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483076/450-20-50-4 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 460 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482425/460-10-50-3 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 450 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483076/450-20-50-1 + Details
Name: | us-gaap_LossContingenciesLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Describe actions taken by the defendant in the legal matter. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 450 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483076/450-20-50-1 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 450 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483076/450-20-50-4 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 450 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 9 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483076/450-20-50-9 + Details
Name: | us-gaap_LossContingencyActionsTakenByDefendant
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Describes actions taken or threatened by the plaintiff in the legal matter. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 450 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483076/450-20-50-1 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 450 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483076/450-20-50-4 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 450 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 9 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483076/450-20-50-9 + Details
Name: | us-gaap_LossContingencyActionsTakenByPlaintiff
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_CapitalizedCostsOfUnprovedPropertiesExcludedFromAmortizationByPropertyOrProjectAxis=mtrx_MiningAndMineralsProjectMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CapitalizedCostsOfUnprovedPropertiesExcludedFromAmortizationByPropertyOrProjectAxis=mtrx_CrudeOilTerminalProjectMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |