XML 57 R40.htm IDEA: XBRL DOCUMENT
v3.20.2

Acquisitions and Disposals (Details Textual) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Jun. 30, 2020 | Jun. 30, 2019 | Jun. 30, 2018
Business Acquisition [Line Items] |  |  |
Proceeds from Divestiture of Businesses | $ 0 | $ 3,885 | $ 0
Gain (Loss) on Disposition of Business | $ 0 | 427 | $ 0
Process Heating Equipment Business [Member] |  |  |
Business Acquisition [Line Items] |  |  |
Proceeds from Divestiture of Businesses |  | 3,900 |
Adjustment for Final Working Capital Settlement |  | 200 |
Gain (Loss) on Disposition of Business |  | $ 400 |

X
- Definition Acquisition related adjustment for the final working capital settlement. + References No definition available. + Details
Name: | mtrx_AcquisitionRelatedAdjustmentForFinalWorkingCapitalSettlement
Namespace Prefix: | mtrx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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_BusinessAcquisitionLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of gain (loss) from sale and disposal of integrated set of activities and assets capable of being conducted and managed for purpose of providing return in form of dividend, lower cost, or other economic benefit to investor, owner, member and participant. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 50 -Paragraph 1B -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=109239629&loc=SL4582445-111684 + Details
Name: | us-gaap_GainLossOnSaleOfBusiness
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash inflow associated with the amount received from the sale of a portion of the company's business, for example a segment, division, branch or other business, during the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 12 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585 + Details
Name: | us-gaap_ProceedsFromDivestitureOfBusinesses
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=mtrx_ProcessHeatingEquipmentBusinessMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |