XML 48 R34.htm IDEA: XBRL DOCUMENT
v3.7.0.1

Intangible Assets Including Goodwill - Additional Information (Detail) - USD ($) $ in Thousands |  | 3 Months Ended | 9 Months Ended |
--- | --- | --- | --- | ---
Dec. 12, 2016 | Mar. 31, 2017 | Mar. 31, 2016 | Mar. 31, 2017 | Mar. 31, 2016 | Jun. 30, 2016
Goodwill and Intangible Assets Disclosure [Abstract] |  |  |  |  |  |
Amortization expense |  | $ 1,600 | $ 1,000 | $ 3,400 | $ 2,600 |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Assets, Gross |  | 43,921 |  | 43,921 |  | $ 33,826
Intellectual Property [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Assets, Gross |  | 2,579 |  | 2,579 |  | 2,579
Customer Relationships [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Assets, Gross |  | 38,094 |  | 38,094 |  | 28,179
Noncompete Agreements [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Assets, Gross |  | 1,453 |  | 1,453 |  | 1,453
Trade Names [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Assets, Gross |  | 1,795 |  | $ 1,795 |  | $ 1,615
Minimum [Member] | Intellectual Property [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Asset, Useful Life |  |  |  | 9 years | 9 years |
Minimum [Member] | Customer Relationships [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Asset, Useful Life |  |  |  | 1 year | 1 year 6 months |
Minimum [Member] | Noncompete Agreements [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Asset, Useful Life |  |  |  | 4 years | 4 years |
Minimum [Member] | Trade Names [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Asset, Useful Life |  |  |  | 1 year | 3 years |
Maximum [Member] | Intellectual Property [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Asset, Useful Life |  |  |  | 15 years | 15 years |
Maximum [Member] | Customer Relationships [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Asset, Useful Life |  |  |  | 15 years | 15 years |
Maximum [Member] | Noncompete Agreements [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Asset, Useful Life |  |  |  | 5 years | 5 years |
Maximum [Member] | Trade Names [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Asset, Useful Life |  |  |  | 3 years | 5 years |
Houston Interests, LLC [Member] |  |  |  |  |  |
Goodwill and Intangible Assets Disclosure [Abstract] |  |  |  |  |  |
Amortization expense |  | $ 700 |  |  | $ 900 |
Houston Interests, LLC [Member] | Customer Relationships [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Assets, Gross | $ 10,000 |  |  |  |  |
Houston Interests, LLC [Member] | Trade Names [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Assets, Gross | $ 200 |  |  |  |  |
Finite-Lived Intangible Asset, Useful Life | 1 year |  |  |  |  |
Houston Interests, LLC [Member] | Minimum [Member] | Customer Relationships [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Asset, Useful Life | 1 year |  |  |  |  |
Houston Interests, LLC [Member] | Maximum [Member] | Customer Relationships [Member] |  |  |  |  |  |
Finite-Lived Intangible Assets [Line Items] |  |  |  |  |  |
Finite-Lived Intangible Asset, Useful Life | 9 years |  |  |  |  |

X
- Definition The aggregate expense charged against earnings to allocate the cost of intangible assets (nonphysical assets not used in production) in a systematic and rational manner to the periods expected to benefit from such assets. As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6388964&loc=d3e16225-109274 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=66902209&loc=d3e3602-108585 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 2 -Subparagraph (a)(2) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275 + Details
Name: | us-gaap_AmortizationOfIntangibleAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Useful life of finite-lived intangible assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_FiniteLivedIntangibleAssetUsefulLife
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount before amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 2 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275 + Details
Name: | us-gaap_FiniteLivedIntangibleAssetsGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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_FiniteLivedIntangibleAssetsLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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

X
- Details
Name: | us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis=us-gaap_IntellectualPropertyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis=us-gaap_CustomerRelationshipsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis=us-gaap_NoncompeteAgreementsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis=us-gaap_TradeNamesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RangeAxis=us-gaap_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RangeAxis=us-gaap_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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