XML 80 R65.htm IDEA: XBRL DOCUMENT
v3.10.0.1

Employee Benefit Plans (Details Textual) - USD ($) | 12 Months Ended
--- | ---
Jun. 30, 2018 | Jun. 30, 2017 | Jun. 30, 2016
Employee Benefit Plans (Textual) [Abstract] |  |  |
Percentage of limitation on pretax compensation | 25.00% |  |
Company match of first 3% of employee contributions | 100.00% |  |
Percentage of employee contribution for first half | 3.00% |  |
Employee contribution for next 2% | 50.00% |  |
Percentage of employee contribution for next half | 2.00% |  |
Contribution made by company | $ 5,800,000 | $ 5,500,000 | $ 5,000,000
Employee share purchase limit aggregate market value | $ 60,000 |  |
Shares available at ESPP | 1,000,000 |  |
Employee Stock Purchase Plan, Termination Date | Jan. 02, 2021 |  |
Shares issued under ESPP | 21,920 | 16,609 | 17,304
Zone Red [Member] |  |  |
Multiemployer Plans [Line Items] |  |  |
Percentage of plan funded | 65.00% |  |
Description of plans funded | less than 65 percent |  |
Zone Yellow [Member] |  |  |
Multiemployer Plans [Line Items] |  |  |
Percentage of plan funded | 80.00% |  |
Description of plans funded | less than 80 percent |  |
Zone Green [Member] |  |  |
Multiemployer Plans [Line Items] |  |  |
Percentage of plan funded | 80.00% |  |
Description of plans funded | at least 80 percent |  |

X
- Definition Defined contribution plan employer matching contribution percent for next two percent of employee contribution. + References No definition available. + Details
Name: | mtrx_DefinedContributionPlanEmployerMatchingContributionPercentForTwoPercentOfEmployeeContribution
Namespace Prefix: | mtrx_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum percentage of employee gross pay, by the terms of the plan, that the employee may contribute to a defined contribution plan. + References No definition available. + Details
Name: | mtrx_DefinedContributionPlanMaximumAnnualContributionByEmployeePercent
Namespace Prefix: | mtrx_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Description of funded portion of plan. + References No definition available. + Details
Name: | mtrx_DescriptionOfFundedPortionOfPlan
Namespace Prefix: | mtrx_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition Employee stock purchase plan per participant maximum annual share purchase limited to aggregate market value. + References No definition available. + Details
Name: | mtrx_EmployeeStockPurchasePlanMaximumAnnualSharePurchaseLimitedToAggregateMarketValue
Namespace Prefix: | mtrx_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Employee stock purchase plan maximum number of shares available for issuance. + References No definition available. + Details
Name: | mtrx_EmployeeStockPurchasePlanMaximumNumberOfSharesAvailableForIssuance
Namespace Prefix: | mtrx_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Employee Stock Purchase Plan, Termination Date + References No definition available. + Details
Name: | mtrx_EmployeeStockPurchasePlanTerminationDate
Namespace Prefix: | mtrx_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of employee contribution as base for employer contribution to match + References No definition available. + Details
Name: | mtrx_PercentageOfEmployeeContributionAsBaseForEmployerContributionToMatch
Namespace Prefix: | mtrx_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of employee contribution as base for employer contributions. + References No definition available. + Details
Name: | mtrx_PercentageOfEmployeeContributionAsBaseForEmployerContributions
Namespace Prefix: | mtrx_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of plan funded. + References No definition available. + Details
Name: | mtrx_PercentageOfPlanFunded
Namespace Prefix: | mtrx_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cost for defined contribution plan. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 70 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=49170846&loc=d3e28014-114942 + Details
Name: | us-gaap_DefinedContributionPlanCostRecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Percentage of employees' gross pay for which the employer contributes a matching contribution to a defined contribution plan. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
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_MultiemployerPlansLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares issued during the period as a result of an employee stock purchase plan. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=109259400&loc=d3e21463-112644 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770 Reference 3: 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(28)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 4: 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(29)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | mtrx_MultiemployerPlanZoneByTypeAxis=mtrx_ZoneRedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | mtrx_MultiemployerPlanZoneByTypeAxis=mtrx_ZoneYellowMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | mtrx_MultiemployerPlanZoneByTypeAxis=mtrx_ZoneGreenMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |