XML 42 R30.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Uncompleted Contracts - Gross and Net Amounts of Uncompleted Contracts (Details) - USD ($) $ in Thousands | Mar. 31, 2018 | Jun. 30, 2017
--- | --- | ---
Disclosure Customer Contracts Additional Information [Abstract] |  |
Costs incurred and estimated earnings recognized on uncompleted contracts | $ 2,200,601 | $ 1,919,054
Billings on uncompleted contracts | 2,222,242 | 1,903,001
Total | (21,641) | 16,053
Shown on balance sheet as: |  |
Costs and estimated earnings in excess of billings on uncompleted contracts | 66,985 | 91,180
Billings on uncompleted contracts in excess of costs and estimated earnings | $ 88,626 | $ 75,127

X
- Definition Balance sheet. + References No definition available. + Details
Name: | mtrx_BalanceSheet
Namespace Prefix: | mtrx_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Disclosure - Customer Contracts - Additional Information [Abstract] + References No definition available. + Details
Name: | mtrx_DisclosureCustomerContractsAdditionalInformationAbstract
Namespace Prefix: | mtrx_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Uncompleted contracts billings. + References No definition available. + Details
Name: | mtrx_UncompletedContractsBillings
Namespace Prefix: | mtrx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Uncompleted contracts costs incurred and estimated earnings recognized. + References No definition available. + Details
Name: | mtrx_UncompletedContractsCostsIncurredAndEstimatedEarningsRecognized
Namespace Prefix: | mtrx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Definition Liability attributable to (i) billings in excess of costs under the percentage of completion contract accounting method representing the difference between contractually invoiced amounts (billings) and revenue recognized based, for example, on costs incurred to estimated total costs at period end or (ii) contractually invoiced amounts (billings) in excess of costs incurred and accumulated under the completed contract accounting method. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 605 -SubTopic 35 -Section 45 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=68068069&loc=d3e57807-111642 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 605 -SubTopic 35 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=68068069&loc=d3e57788-111642 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 605 -SubTopic 35 -Section 45 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=68068069&loc=d3e57795-111642 + Details
Name: | us-gaap_BillingsInExcessOfCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of receivable reflecting the cost incurred on uncompleted contracts in excess of related billings which is expected to be collected within one year or the normal operating cycle, if longer. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 605 -SubTopic 35 -Section 45 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=68068069&loc=d3e57795-111642 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.3(c)(3)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 605 -SubTopic 35 -Section 45 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=68068069&loc=d3e57807-111642 + Details
Name: | us-gaap_CostsInExcessOfBillingsOnUncompletedContractsOrProgramsExpectedToBeCollectedWithinOneYear
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant