XML 90 R70.htm IDEA: XBRL DOCUMENT
v3.21.2

Segment Information (Details 2) | 12 Months Ended
--- | ---
Jun. 30, 2021 | Jun. 30, 2020 | Jun. 30, 2019
Customer One [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 12.90% | 9.70% | 9.70%
Customer Two [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 9.90% | 8.20% | 7.60%
Customer Three [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 7.00% | 8.20% | 7.60%
Customer Four [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 4.40% | 6.80% | 7.20%
Customer Five [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  | 2.00% | 7.10%
Customer Six [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 5.00%
Customer Seven [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 4.60%
Customer Eight [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 3.40%
Customer Nine [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 2.10%
Customer Ten |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 2.00%
Utility and Power Infrastructure | Customer One [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 41.30% | 0.00% | 0.00%
Utility and Power Infrastructure | Customer Two [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 0.00% | 42.70% | 42.70%
Utility and Power Infrastructure | Customer Three [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 22.50% | 0.00% | 0.00%
Utility and Power Infrastructure | Customer Four [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 0.00% | 0.00% | 0.00%
Utility and Power Infrastructure | Customer Five [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  | 10.50% | 0.00%
Utility and Power Infrastructure | Customer Six [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 0.00%
Utility and Power Infrastructure | Customer Seven [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 0.20%
Utility and Power Infrastructure | Customer Eight [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 19.50%
Utility and Power Infrastructure | Customer Nine [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 11.70%
Utility and Power Infrastructure | Customer Ten |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 11.30%
Process and Industrial Facilities | Customer One [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 0.00% | 25.40% | 21.00%
Process and Industrial Facilities | Customer Two [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 33.30% | 0.00% | 0.20%
Process and Industrial Facilities | Customer Three [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 0.00% | 0.00% | 16.40%
Process and Industrial Facilities | Customer Four [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 0.00% | 0.00% | 15.10%
Process and Industrial Facilities | Customer Five [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  | 0.00% | 0.00%
Process and Industrial Facilities | Customer Six [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 0.00%
Process and Industrial Facilities | Customer Seven [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 1.50%
Process and Industrial Facilities | Customer Eight [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 0.00%
Process and Industrial Facilities | Customer Nine [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 0.00%
Process and Industrial Facilities | Customer Ten |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 0.00%
Storage and Terminal Solutions | Customer One [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 0.00% | 0.00% | 0.00%
Storage and Terminal Solutions | Customer Two [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 0.10% | 0.00% | 0.00%
Storage and Terminal Solutions | Customer Three [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 0.10% | 19.30% | 0.00%
Storage and Terminal Solutions | Customer Four [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue | 11.20% | 16.10% | 0.60%
Storage and Terminal Solutions | Customer Five [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  | 0.00% | 19.70%
Storage and Terminal Solutions | Customer Six [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 13.80%
Storage and Terminal Solutions | Customer Seven [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 10.80%
Storage and Terminal Solutions | Customer Eight [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 0.00%
Storage and Terminal Solutions | Customer Nine [Member] |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 0.00%
Storage and Terminal Solutions | Customer Ten |  |  |
Revenue, Major Customer [Line Items] |  |  |
Percentage of Revenue |  |  | 0.00%

X
- Definition For an entity that discloses a concentration risk in relation to quantitative amount, which serves as the "benchmark" (or denominator) in the equation, this concept represents the concentration percentage derived from the division. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 42 -URI http://asc.fasb.org/extlink&oid=123359005&loc=d3e9054-108599 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 275 -SubTopic 10 -Section 50 -Paragraph 18 -URI http://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=123594938&loc=d3e13531-108611 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 21 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=123594938&loc=d3e13537-108611 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 275 -SubTopic 10 -Section 50 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=99393423&loc=d3e6404-108592 + Details
Name: | us-gaap_ConcentrationRiskPercentage1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

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 No definition available. + Details
Name: | us-gaap_EntityWideRevenueMajorCustomerLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | srt_MajorCustomersAxis=mtrx_CustomerOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=mtrx_CustomerTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=mtrx_CustomerThreeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=mtrx_CustomerFourMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=mtrx_CustomerFiveMemberMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=mtrx_CustomerSixMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=mtrx_CustomerSevenMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=mtrx_CustomerEightMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=mtrx_CustomerNineMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_MajorCustomersAxis=mtrx_CustomerTenMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=mtrx_UtilityAndPowerInfrastructureSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=mtrx_ProcessAndIndustrialFacilitiesSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=mtrx_StorageAndTerminalSolutionsSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |