XML 64 R29.htm IDEA: XBRL DOCUMENT
v3.20.1

Revenue (Details) - USD ($) $ in Thousands | 3 Months Ended | 9 Months Ended |
--- | --- | --- | ---
Mar. 31, 2020 | Mar. 31, 2019 | Mar. 31, 2020 | Mar. 31, 2019 | Jun. 30, 2019
Revenue, Performance Obligation [Abstract] |  |  |  |  |
Revenue, Remaining Performance Obligation, Amount | $ 536,700 |  | $ 536,700 |  |
Performance obligations to be recognized as revenue within next twelve months | 431,200 |  | 431,200 |  |
Contract with Customer, Asset and Liability [Abstract] |  |  |  |  |
Costs and estimated earnings in excess of billings on uncompleted contracts | 56,859 |  | 56,859 |  | $ 96,083
Change in CIE |  |  | (39,224) |  |
Billings on uncompleted contracts in excess of costs and estimated earnings | (100,566) |  | (100,566) |  | (105,626)
Change in BIE |  |  | 5,060 |  |
Change in net contract balances |  |  | (34,164) |  |
Contract with customer, current liability, net | (43,707) |  | (43,707) |  | (9,543)
Contract with Customer, Liability, Revenue Recognized |  |  | 102,600 |  |
Disclosure Customer Contracts Additional Information [Abstract] |  |  |  |  |
Contract Receivable Retainage, Due in Next Twelve Months | 39,800 |  | 39,800 |  | 21,900
Contract Receivable Retainage, Due after Next Twelve Months | 5,700 |  | 5,700 |  | $ 17,700
Disaggregation of Revenue [Line Items] |  |  |  |  |
Revenue | 248,327 | $ 358,887 | 905,101 | $ 1,017,966 |
Fixed-price Contract |  |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |  |
Revenue | 182,282 | 183,899 | 533,375 | 545,832 |
Time-and-materials Contract |  |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |  |
Revenue | 66,045 | 174,988 | 371,726 | 472,134 |
United States |  |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |  |
Revenue | 232,606 | 345,953 | 838,371 | 985,603 |
Canada |  |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |  |
Revenue | 12,633 | 10,691 | 58,506 | 27,486 |
Other international |  |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |  |
Revenue | $ 3,088 | $ 2,243 | $ 8,224 | $ 4,877 |

X
- Definition Change in BIE from the prior year to the current period. + References No definition available. + Details
Name: | mtrx_ChangeinBIE
Namespace Prefix: | mtrx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Change in CIE from prior year to the current period. + References No definition available. + Details
Name: | mtrx_ChangeinCIE
Namespace Prefix: | mtrx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Change in net contract balances from the prior year to the current year. + References No definition available. + Details
Name: | mtrx_Changeinnetcontractbalances
Namespace Prefix: | mtrx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Contract with customer, current liability, net + References No definition available. + Details
Name: | mtrx_Contractwithcustomercurrentliabilitynet
Namespace Prefix: | mtrx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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 Performance obligations to be recognized as revenue within next twelve months. + References No definition available. + Details
Name: | mtrx_Performanceobligationstoberecognizedasrevenuewithinnexttwelvemonths
Namespace Prefix: | mtrx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount billed to customers under long-term contracts or programs that have been withheld because of retainage provisions in a contract to be collected after the next fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.3(c)(4)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 910 -SubTopic 310 -Section 50 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=118388040&loc=d3e49370-109356 + Details
Name: | us-gaap_ContractReceivableRetainageDueAfterOneYear
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount billed to customers under long-term contracts or programs that have been withheld because of retainage provisions in a contract to be collected in the next fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(3)(c)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 910 -SubTopic 310 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=118388040&loc=d3e49370-109356 + Details
Name: | us-gaap_ContractReceivableRetainageDueOneYearOrLess
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Definition Amount, after allowance for credit loss, of right to consideration in exchange for good or service transferred to customer when right is conditioned on something other than passage of time, classified as current. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=118944033&loc=SL49130531-203044 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=118944033&loc=SL49130533-203044 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 8 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=118956577&loc=SL49130549-203045 + Details
Name: | us-gaap_ContractWithCustomerAssetNetCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of obligation to transfer good or service to customer for which consideration has been received or is receivable, classified as current. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=118944033&loc=SL49130531-203044 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=118944033&loc=SL49130532-203044 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 8 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=118956577&loc=SL49130549-203045 + Details
Name: | us-gaap_ContractWithCustomerLiabilityCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of revenue recognized that was previously included in balance of obligation to transfer good or service to customer for which consideration from customer has been received or is due. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 8 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=118956577&loc=SL49130549-203045 + Details
Name: | us-gaap_ContractWithCustomerLiabilityRevenueRecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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_DisaggregationOfRevenueLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition Amount of transaction price allocated to performance obligation that has not been recognized as revenue. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 13 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=118956577&loc=SL49130556-203045 + Details
Name: | us-gaap_RevenueRemainingPerformanceObligation
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of revenue recognized from goods sold, services rendered, insurance premiums, or other activities that constitute an earning process. Includes, but is not limited to, investment and interest income before deduction of interest expense when recognized as a component of revenue, and sales and trading gain (loss). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 32 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=115929826&loc=d3e8933-108599 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(1)) -URI http://asc.fasb.org/extlink&oid=116634182&loc=SL114868664-224227 + Details
Name: | us-gaap_Revenues
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_ContractWithCustomerBasisOfPricingAxis=us-gaap_FixedPriceContractMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ContractWithCustomerBasisOfPricingAxis=us-gaap_TimeAndMaterialsContractMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=country_US
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=country_CA
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=mtrx_OtherinternationalMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |