XML 51 R37.htm IDEA: XBRL DOCUMENT
v3.7.0.1

Summary of Significant Accounting Policies Summary of Significant Accounting Policies (Impact of New Accounting Pronouncement) (Details) - USD ($) $ / shares in Units, $ in Thousands | 12 Months Ended
--- | ---
Jun. 30, 2017 | Jun. 30, 2016 | Jun. 30, 2015
New Accounting Pronouncements or Change in Accounting Principle [Line Items] |  |  |
Effect of new accounting standard compared to old standard | $ 496 | $ 0 | $ 0
Effect of adoption of new accounting standard compared to old standard, EPS | $ 0.02 |  |
New Accounting Pronouncement or Change in Accounting Principle, Description of Prior-period Information Retrospectively Adjusted | The amendments relating to the presentation of excess tax benefits and tax deficiencies in the statement of cash flows were applied retrospectively. The effect of the retrospective adjustment was to eliminate the presentation of an operating cash outflow and a financing cash inflow for excess tax benefits on exercised stock options and vesting of deferred shares. These eliminations decreased net cash provided by operating activities by $3.3 million and decreased net cash used by financing activities by $3.3 million for the year ended June 30, 2016, and decreased net cash provided by operating activities by $1.8 million and increased cash provided by financing activities by $1.8 million for the year ended June 30, 2015. Net cash flows did not change in either year as a result of the retrospective adjustment. |  |

X
- Definition Effect of adoption of new accounting standard compared to old standard, EPS + References No definition available. + Details
Name: | mtrx_EffectofadoptionofnewaccountingstandardcomparedtooldstandardEPS
Namespace Prefix: | mtrx_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition Effect of new accounting standard compared to old standard + References No definition available. + Details
Name: | mtrx_Effectofnewaccountingstandardcomparedtooldstandard
Namespace Prefix: | mtrx_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Description of the prior-period information that has been retrospectively adjusted when a new accounting pronouncement or a change in accounting principle is adopted. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b)(1) -URI http://asc.fasb.org/extlink&oid=64853466&loc=d3e22499-107794 + Details
Name: | us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleDescriptionOfPriorperiodInformationRetrospectivelyAdjusted
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
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_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration