XML 41 R28.htm IDEA: XBRL DOCUMENT
v3.21.1

Leases - Narrative (Details) $ in Thousands | 9 Months Ended
--- | ---
Mar. 31, 2021 USD ($) Rate
Leases [Abstract] |
Percentage of real estate leases | Rate | 95.00%
Operating lease term (up to) | 15 years
Operating lease right-of-use asset impairment | $ | $ 500

X
- Definition Percentage of leases - real estate + References No definition available. + Details
Name: | mtrx_Percentageofrealestateleases
Namespace Prefix: | mtrx_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_LeasesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Term of lessee's operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=121609121&loc=SL77918673-209980 + Details
Name: | us-gaap_LesseeOperatingLeaseTermOfContract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of loss from impairment of right-of-use asset from operating lease. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 25 -Paragraph 6 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=121593497&loc=SL77918431-209957 + Details
Name: | us-gaap_OperatingLeaseImpairmentLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration