2.4.0.82412402 - Disclosure - Employee Benefit Plans (Details)truefalsefalse1falseUSDfalsefalse$D2013Q4YTDhttp://www.sec.gov/CIK0000866273duration2012-07-01T00:00:002013-06-30T00:00:00usdStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$2falseUSDfalsefalse$D2012Q4YTDhttp://www.sec.gov/CIK0000866273duration2011-07-01T00:00:002012-06-30T00:00:00usdStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$3falseUSDfalsefalse$D2011Q4YTDhttp://www.sec.gov/CIK0000866273duration2010-07-01T00:00:002011-06-30T00:00:00usdStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$1true4us-gaap_MultiemployerPlansAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse02false5us-gaap_MultiemployerPlanPeriodContributionsus-gaap_truedebitdurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse2446524465USD$falsetruefalse2truefalsefalse1653716537USD$falsetruefalse3truefalsefalse2080320803USD$falsetruefalsexbrli:monetaryItemTypemonetaryAmount of contributions made to multiemployer plans by the employer. A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 11
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450702-114947
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 9
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450691-114947
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (e)(1)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false23false5mtrx_ContributionsToOtherMultiemployerPlansmtrx_falsedebitdurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse89668966USD$falsefalsefalse2truefalsefalse76167616USD$falsefalsefalse3truefalsefalse87658765USD$falsefalsefalsexbrli:monetaryItemTypemonetaryContributions to other multiemployer plans.No definition available.false24false0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalse4falseUSDtruefalse$D2013Q4YTD_us-gaap_MultiemployerPlanTypeAxis_mtrx_JointPensionFundLocalUnionOneSixFourIbewMemberhttp://www.sec.gov/CIK0000866273duration2012-07-01T00:00:002013-06-30T00:00:00falsefalseJoint Pension Fund Local Union One Six Four Ibew [Member]us-gaap_MultiemployerPlanTypeAxisxbrldihttp://xbrl.org/2006/xbrldimtrx_JointPensionFundLocalUnionOneSixFourIbewMemberus-gaap_MultiemployerPlanTypeAxisexplicitMemberusdStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse05true4us-gaap_MultiemployerPlansAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse06false5mtrx_MultiemployerPlansNumbermtrx_falsenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse0022-6031199/001falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringMultiemployer plans number.No definition available.false07false5us-gaap_MultiemployerPlansCertifiedZoneStatusus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Yellowfalsefalsefalse2falsefalsefalse00Yellowfalsefalsefalse3falsefalsefalse00falsefalsefalseus-types:zoneStatusItemTypestringIndicate the multiemployer plan's certified zone status as currently required by the Pension Protection Act of 2006 or a subsequent amendment thereof. The zone status categories are red (critical status), orange (seriously endangered), yellow (endangered), and green (none of the above). The acceptable values are "red", "orange", "yellow", "green", "other", and "NA". A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false08false5us-gaap_MultiemployerPlanPeriodContributionsus-gaap_truedebitdurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse39433943USD$falsefalsefalse2truefalsefalse15381538[1]USD$falsefalsefalse3truefalsefalse30543054[1]USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of contributions made to multiemployer plans by the employer. A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 11
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450702-114947
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 9
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450691-114947
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (e)(1)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false29false5us-gaap_MultiemployerPlansSurchargeus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Nofalsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalseus-types:surchargeItemTypestringIndicate whether the employer paid a surcharge to the pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers. The acceptable values are "no", "yes", and "NA".Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (f)(2)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false010false5us-gaap_MultiemployerPlansCollectiveBargainingArrangementExpirationDateus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse002014-05-31falsefalsetrue2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:dateItemTypedateExpiration date of the collective bargaining arrangement requiring contributions to the multiemployer plan, in CCYY-MM-DD format. A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (d)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false011false0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalse7falseUSDtruefalse$D2013Q4YTD_us-gaap_MultiemployerPlanTypeAxis_mtrx_BoilermakerBlacksmithNationalPensionTrustMemberhttp://www.sec.gov/CIK0000866273duration2012-07-01T00:00:002013-06-30T00:00:00falsefalseBoilermaker-Blacksmith National Pension Trust [Member]us-gaap_MultiemployerPlanTypeAxisxbrldihttp://xbrl.org/2006/xbrldimtrx_BoilermakerBlacksmithNationalPensionTrustMemberus-gaap_MultiemployerPlanTypeAxisexplicitMemberusdStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse012true3us-gaap_MultiemployerPlansLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse013false4us-gaap_MultiemployerPlansCollectiveBargainingArrangementExpirationDateDescriptionus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00Described
below (2)[2]falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringDescription of the significant collective-bargaining arrangements within the range of expiration dates for collective-bargaining arrangements requiring contributions to a multiemployer plan as well as other information to help investors understand the significance of the collective-bargaining agreements and when they expire. A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (d)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false014true4us-gaap_MultiemployerPlansAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse015false5mtrx_MultiemployerPlansNumbermtrx_falsenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse0048-6168020/001falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringMultiemployer plans number.No definition available.false016false5us-gaap_MultiemployerPlansCertifiedZoneStatusus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Yellowfalsefalsefalse2falsefalsefalse00Yellowfalsefalsefalse3falsefalsefalse00falsefalsefalseus-types:zoneStatusItemTypestringIndicate the multiemployer plan's certified zone status as currently required by the Pension Protection Act of 2006 or a subsequent amendment thereof. The zone status categories are red (critical status), orange (seriously endangered), yellow (endangered), and green (none of the above). The acceptable values are "red", "orange", "yellow", "green", "other", and "NA". A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false017false5us-gaap_MultiemployerPlansFundingImprovementPlanAndRehabilitationPlanus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Implementedfalsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalseus-types:fundingImprovementAndRehabilitationPlanItemTypestringIndicate whether a funding improvement plan or rehabilitation plan has been implemented or is pending for a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers. The acceptable values are "no", "pending", "implemented", "other", and "NA".Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (f)(1)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false018false5us-gaap_MultiemployerPlanPeriodContributionsus-gaap_truedebitdurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse28822882USD$falsefalsefalse2truefalsefalse28452845USD$falsefalsefalse3truefalsefalse37833783USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of contributions made to multiemployer plans by the employer. A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 11
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450702-114947
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 9
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450691-114947
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (e)(1)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false219false5us-gaap_MultiemployerPlansSurchargeus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Nofalsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalseus-types:surchargeItemTypestringIndicate whether the employer paid a surcharge to the pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers. The acceptable values are "no", "yes", and "NA".Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (f)(2)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false020false0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalse10falseUSDtruefalse$D2013Q4YTD_us-gaap_MultiemployerPlanTypeAxis_mtrx_JointPensionFundLocalUnionNumberOneZeroTwoMemberDomainhttp://www.sec.gov/CIK0000866273duration2012-07-01T00:00:002013-06-30T00:00:00falsefalseJoint Pension Fund Local Union Number One Zero Two [Member] [Domain]us-gaap_MultiemployerPlanTypeAxisxbrldihttp://xbrl.org/2006/xbrldimtrx_JointPensionFundLocalUnionNumberOneZeroTwoMemberDomainus-gaap_MultiemployerPlanTypeAxisexplicitMemberusdStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse021true4us-gaap_MultiemployerPlansAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse022false5mtrx_MultiemployerPlansNumbermtrx_falsenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse0022-1615726/001falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringMultiemployer plans number.No definition available.false023false5us-gaap_MultiemployerPlansCertifiedZoneStatusus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Greenfalsefalsefalse2falsefalsefalse00Greenfalsefalsefalse3falsefalsefalse00falsefalsefalseus-types:zoneStatusItemTypestringIndicate the multiemployer plan's certified zone status as currently required by the Pension Protection Act of 2006 or a subsequent amendment thereof. The zone status categories are red (critical status), orange (seriously endangered), yellow (endangered), and green (none of the above). The acceptable values are "red", "orange", "yellow", "green", "other", and "NA". A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false024false5us-gaap_MultiemployerPlansFundingImprovementPlanAndRehabilitationPlanus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Implementedfalsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalseus-types:fundingImprovementAndRehabilitationPlanItemTypestringIndicate whether a funding improvement plan or rehabilitation plan has been implemented or is pending for a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers. The acceptable values are "no", "pending", "implemented", "other", and "NA".Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (f)(1)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false025false5us-gaap_MultiemployerPlanPeriodContributionsus-gaap_truedebitdurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse23872387USD$falsefalsefalse2truefalsefalse16081608USD$falsefalsefalse3truefalsefalse951951USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of contributions made to multiemployer plans by the employer. A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 11
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450702-114947
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 9
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450691-114947
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (e)(1)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false226false5us-gaap_MultiemployerPlansSurchargeus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Nofalsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalseus-types:surchargeItemTypestringIndicate whether the employer paid a surcharge to the pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers. The acceptable values are "no", "yes", and "NA".Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (f)(2)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false027false5us-gaap_MultiemployerPlansCollectiveBargainingArrangementExpirationDateus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse002014-05-31falsefalsetrue2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:dateItemTypedateExpiration date of the collective bargaining arrangement requiring contributions to the multiemployer plan, in CCYY-MM-DD format. A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (d)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false028false0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalse13falseUSDtruefalse$D2013Q4YTD_us-gaap_MultiemployerPlanTypeAxis_mtrx_IBEWLocalFourFiveSixPensionPlanMemberDomainhttp://www.sec.gov/CIK0000866273duration2012-07-01T00:00:002013-06-30T00:00:00falsefalseIBEW Local Four Five Six Pension Plan [Member] [Domain]us-gaap_MultiemployerPlanTypeAxisxbrldihttp://xbrl.org/2006/xbrldimtrx_IBEWLocalFourFiveSixPensionPlanMemberDomainus-gaap_MultiemployerPlanTypeAxisexplicitMemberusdStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse029true4us-gaap_MultiemployerPlansAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse030false5mtrx_MultiemployerPlansNumbermtrx_falsenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse0022-6238995/001falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringMultiemployer plans number.No definition available.false031false5us-gaap_MultiemployerPlansCertifiedZoneStatusus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Yellowfalsefalsefalse2falsefalsefalse00Yellowfalsefalsefalse3falsefalsefalse00falsefalsefalseus-types:zoneStatusItemTypestringIndicate the multiemployer plan's certified zone status as currently required by the Pension Protection Act of 2006 or a subsequent amendment thereof. The zone status categories are red (critical status), orange (seriously endangered), yellow (endangered), and green (none of the above). The acceptable values are "red", "orange", "yellow", "green", "other", and "NA". A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false032false5us-gaap_MultiemployerPlansFundingImprovementPlanAndRehabilitationPlanus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Implementedfalsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalseus-types:fundingImprovementAndRehabilitationPlanItemTypestringIndicate whether a funding improvement plan or rehabilitation plan has been implemented or is pending for a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers. The acceptable values are "no", "pending", "implemented", "other", and "NA".Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (f)(1)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false033false5us-gaap_MultiemployerPlanPeriodContributionsus-gaap_truedebitdurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse23842384USD$falsefalsefalse2truefalsefalse977977USD$falsefalsefalse3truefalsefalse440440USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of contributions made to multiemployer plans by the employer. A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 11
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450702-114947
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 9
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450691-114947
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (e)(1)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false234false5us-gaap_MultiemployerPlansSurchargeus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Nofalsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalseus-types:surchargeItemTypestringIndicate whether the employer paid a surcharge to the pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers. The acceptable values are "no", "yes", and "NA".Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (f)(2)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false035false5us-gaap_MultiemployerPlansCollectiveBargainingArrangementExpirationDateus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse002013-11-30falsefalsetrue2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:dateItemTypedateExpiration date of the collective bargaining arrangement requiring contributions to the multiemployer plan, in CCYY-MM-DD format. A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (d)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false036false0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalse16falseUSDtruefalse$D2013Q4YTD_us-gaap_MultiemployerPlanTypeAxis_mtrx_LocalThreeFiveOneIbewPensionPlanMemberhttp://www.sec.gov/CIK0000866273duration2012-07-01T00:00:002013-06-30T00:00:00falsefalseLocal 351 IBEW Pension Plan [Member]us-gaap_MultiemployerPlanTypeAxisxbrldihttp://xbrl.org/2006/xbrldimtrx_LocalThreeFiveOneIbewPensionPlanMemberus-gaap_MultiemployerPlanTypeAxisexplicitMemberusdStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse037true4us-gaap_MultiemployerPlansAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse038false5mtrx_MultiemployerPlansNumbermtrx_falsenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse0022-3417366/001falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringMultiemployer plans number.No definition available.false039false5us-gaap_MultiemployerPlansCertifiedZoneStatusus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Yellowfalsefalsefalse2falsefalsefalse00Yellowfalsefalsefalse3falsefalsefalse00falsefalsefalseus-types:zoneStatusItemTypestringIndicate the multiemployer plan's certified zone status as currently required by the Pension Protection Act of 2006 or a subsequent amendment thereof. The zone status categories are red (critical status), orange (seriously endangered), yellow (endangered), and green (none of the above). The acceptable values are "red", "orange", "yellow", "green", "other", and "NA". A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false040false5us-gaap_MultiemployerPlansFundingImprovementPlanAndRehabilitationPlanus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Implementedfalsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalseus-types:fundingImprovementAndRehabilitationPlanItemTypestringIndicate whether a funding improvement plan or rehabilitation plan has been implemented or is pending for a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers. The acceptable values are "no", "pending", "implemented", "other", and "NA".Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (f)(1)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false041false5us-gaap_MultiemployerPlanPeriodContributionsus-gaap_truedebitdurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse22812281USD$falsefalsefalse2truefalsefalse11401140USD$falsefalsefalse3truefalsefalse29322932USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of contributions made to multiemployer plans by the employer. A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 11
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450702-114947
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 9
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450691-114947
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (e)(1)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false242false5us-gaap_MultiemployerPlansSurchargeus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Nofalsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalseus-types:surchargeItemTypestringIndicate whether the employer paid a surcharge to the pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers. The acceptable values are "no", "yes", and "NA".Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (f)(2)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false043false5us-gaap_MultiemployerPlansCollectiveBargainingArrangementExpirationDateus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse002013-09-30falsefalsetrue2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:dateItemTypedateExpiration date of the collective bargaining arrangement requiring contributions to the multiemployer plan, in CCYY-MM-DD format. A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (d)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false044false0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalse19falseUSDtruefalse$D2013Q4YTD_us-gaap_MultiemployerPlanTypeAxis_mtrx_SteamfittersLocalUnionNumberFourTwoZeroPensionPlanMemberDomainhttp://www.sec.gov/CIK0000866273duration2012-07-01T00:00:002013-06-30T00:00:00falsefalseSteamfitters Local Union Number Four Two Zero Pension Plan [Member] [Domain]us-gaap_MultiemployerPlanTypeAxisxbrldihttp://xbrl.org/2006/xbrldimtrx_SteamfittersLocalUnionNumberFourTwoZeroPensionPlanMemberDomainus-gaap_MultiemployerPlanTypeAxisexplicitMemberusdStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse045true4us-gaap_MultiemployerPlansAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse046false5mtrx_MultiemployerPlansNumbermtrx_falsenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse0023-2004424/001falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringMultiemployer plans number.No definition available.false047false5us-gaap_MultiemployerPlansCertifiedZoneStatusus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Redfalsefalsefalse2falsefalsefalse00Redfalsefalsefalse3falsefalsefalse00falsefalsefalseus-types:zoneStatusItemTypestringIndicate the multiemployer plan's certified zone status as currently required by the Pension Protection Act of 2006 or a subsequent amendment thereof. The zone status categories are red (critical status), orange (seriously endangered), yellow (endangered), and green (none of the above). The acceptable values are "red", "orange", "yellow", "green", "other", and "NA". A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false048false5us-gaap_MultiemployerPlansFundingImprovementPlanAndRehabilitationPlanus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Implementedfalsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalseus-types:fundingImprovementAndRehabilitationPlanItemTypestringIndicate whether a funding improvement plan or rehabilitation plan has been implemented or is pending for a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers. The acceptable values are "no", "pending", "implemented", "other", and "NA".Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (f)(1)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false049false5us-gaap_MultiemployerPlanPeriodContributionsus-gaap_truedebitdurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse16221622USD$falsetruefalse2truefalsefalse813813USD$falsetruefalse3truefalsefalse878878USD$falsetruefalsexbrli:monetaryItemTypemonetaryAmount of contributions made to multiemployer plans by the employer. A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 11
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450702-114947
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 9
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450691-114947
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (e)(1)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false250false5us-gaap_MultiemployerPlansSurchargeus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00Nofalsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalseus-types:surchargeItemTypestringIndicate whether the employer paid a surcharge to the pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers. The acceptable values are "no", "yes", and "NA".Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (f)(2)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false051false5us-gaap_MultiemployerPlansCollectiveBargainingArrangementExpirationDateus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse002014-04-30falsefalsetrue2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:dateItemTypedateExpiration date of the collective bargaining arrangement requiring contributions to the multiemployer plan, in CCYY-MM-DD format. A multiemployer plan is a pension or postretirement benefit plan to which two or more unrelated employers contribute where assets contributed by one participating employer may be used to provide benefits to employees of other participating employers.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 715
-SubTopic 80
-Section 50
-Paragraph 5
-Subparagraph (d)
-URI http://asc.fasb.org/extlink&oid=14450570&loc=SL14450657-114947
false01Our contributions for the Joint Pension Fund Local Union 164 IBEW exceeded 5% of total contributions for the 2011 plan year. This information was not available for 2012.2Our collective bargaining agreements with the Boilermaker-Blacksmith National Pension Trust are under a National Maintenance Agreement platform which is evergreen in terms of expiration. However, the agreements allow for termination of the collective bargaining agreement by either party with a predetermined written notice.falseEmployee Benefit Plans (Details) (USD $)NoRoundingUnKnownUnKnownUnKnowntruefalsefalseSheethttp://www.matrixservice.com/role/EmployeeBenefitPlansDetails351