2.4.0.82409401 - Disclosure - Stockholders' Equity (Details Textual)truefalseIn Millions, except Share data, unless otherwise specifiedfalse1falseUSDfalsefalse$D2013Q4YTDhttp://www.sec.gov/CIK0000866273duration2012-07-01T00:00:002013-06-30T00:00:00sharesStandardhttp://www.xbrl.org/2003/instancesharesxbrli0usdStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$2falsefalsefalseD2012Q4YTDhttp://www.sec.gov/CIK0000866273duration2011-07-01T00:00:002012-06-30T00:00:00sharesStandardhttp://www.xbrl.org/2003/instancesharesxbrli03falsefalsefalseI2013Q2Nov062012http://www.sec.gov/CIK0000866273instant2012-11-06T00:00:000001-01-01T00:00:00sharesStandardhttp://www.xbrl.org/2003/instancesharesxbrli01true1us-gaap_StockholdersEquityNoteAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse02false2us-gaap_PreferredStockSharesAuthorizedus-gaap_truenainstantfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse5000000.05000000falsefalsefalse2truefalsefalse5000000.05000000falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:sharesItemTypesharesThe maximum number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) permitted to be issued by an entity's charter and bylaws.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 02
-Paragraph 29
-Article 5
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-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 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 129
-Paragraph 2, 3, 4, 5, 6, 7, 8
-LegacyDoc This reference is SUPERSEDED by the Accounting Standards Codification effective for interim and annual periods ending after September 15, 2009. This reference is included to help users transition from the previous accounting hierarchy and will be removed from future versions of this taxonomy.
false13false2us-gaap_PreferredStockSharesIssuedus-gaap_truenainstantfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse00falsefalsefalse2truefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:sharesItemTypesharesTotal number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) issued to shareholders (includes related preferred shares that were issued, repurchased, and remain in the treasury). May be all or portion of the number of preferred shares authorized. Excludes preferred shares that are classified as debt.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 02
-Paragraph 29
-Article 5
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-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
false14false2us-gaap_PreferredStockSharesOutstandingus-gaap_truenainstantfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse00falsefalsefalse2truefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:sharesItemTypesharesAggregate share number for all nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer) held by stockholders. Does not include preferred shares that have been repurchased.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 02
-Paragraph 29
-Article 5
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-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
false15false2us-gaap_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchasedus-gaap_truenainstantfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3truefalsefalse21134972113497falsefalsefalsexbrli:sharesItemTypesharesThe number of shares authorized to be repurchased by an entity's Board of Directors under a stock repurchase plan.No definition available.false16false2us-gaap_StockRepurchaseProgramAuthorizedAmountus-gaap_truecreditdurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse2500000025.0USD$falsetruefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:monetaryItemTypemonetaryThe amount authorized by an entity's Board of Directors under a stock repurchase plan.No definition available.false27false2us-gaap_SharesPaidForTaxWithholdingForShareBasedCompensationus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse107344107344falsefalsefalse2truefalsefalse5299252992falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:sharesItemTypesharesFor net-share settlement of share-based awards when the employer settles employees' income tax withholding obligations, this element represents the number of shares the employees use to repay the employer.No definition available.false18false2us-gaap_TreasuryStockSharesus-gaap_truenainstantfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse17795931779593falsefalsefalse2truefalsefalse21419902141990falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli:sharesItemTypesharesNumber of common and preferred shares that were previously issued and that were repurchased by the issuing entity and held in treasury on the financial statement date. This stock has no voting rights and receives no dividends.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 210
-SubTopic 10
-Section S99
-Paragraph 1
-Subparagraph (SX 210.5-02.28,29)
-URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 02
-Paragraph 29, 30
-Article 5
false1falseStockholders' Equity (Details Textual) (USD $)HundredThousandsNoRoundingUnKnownUnKnowntruefalsefalseSheethttp://www.matrixservice.com/role/StockholdersEquityDetailsTextual38