XML 20 R43.htm IDEA: XBRL DOCUMENT v2.4.1.9
Segment Disclosure (Details) (USD $)
In Thousands, unless otherwise specified
3 Months Ended 9 Months Ended
Feb. 28, 2015
Feb. 28, 2014
Feb. 28, 2015
Operating_Segment
Feb. 28, 2014
May 31, 2014
Segment Reporting [Abstract]          
Number of operating segments     3us-gaap_NumberOfOperatingSegments    
Financial information by segment          
Revenues $ 163,100us-gaap_SalesRevenueNet $ 151,727us-gaap_SalesRevenueNet $ 536,566us-gaap_SalesRevenueNet $ 444,320us-gaap_SalesRevenueNet  
Gross profit 38,734us-gaap_GrossProfit 39,300us-gaap_GrossProfit 139,767us-gaap_GrossProfit 126,554us-gaap_GrossProfit  
Income (loss) from operations 3,870us-gaap_OperatingIncomeLoss 3,000us-gaap_OperatingIncomeLoss 25,726us-gaap_OperatingIncomeLoss 27,827us-gaap_OperatingIncomeLoss  
Depreciation and amortization 8,114us-gaap_DepreciationDepletionAndAmortization 7,300us-gaap_DepreciationDepletionAndAmortization 24,779us-gaap_DepreciationDepletionAndAmortization 20,850us-gaap_DepreciationDepletionAndAmortization  
Goodwill 166,531us-gaap_Goodwill   166,531us-gaap_Goodwill   130,516us-gaap_Goodwill
Total assets 477,329us-gaap_Assets   477,329us-gaap_Assets   443,972us-gaap_Assets
Operating segments | Services          
Financial information by segment          
Revenues 121,845us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
109,122us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
404,651us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
313,794us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
 
Gross profit 27,429us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
26,216us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
101,452us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
83,881us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
 
Income (loss) from operations 7,257us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
7,452us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
36,208us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
32,698us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
 
Depreciation and amortization 5,658us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
4,591us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
16,622us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
12,982us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
 
Goodwill 116,567us-gaap_Goodwill
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
  116,567us-gaap_Goodwill
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
  73,767us-gaap_Goodwill
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
Total assets 311,947us-gaap_Assets
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
  311,947us-gaap_Assets
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
  249,378us-gaap_Assets
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ServicesMember
Operating segments | International          
Financial information by segment          
Revenues 33,554us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
38,064us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
114,610us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
119,032us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
 
Gross profit 7,018us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
10,086us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
27,795us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
33,499us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
 
Income (loss) from operations (1,315)us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
84us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
1,163us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
9,192us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
 
Depreciation and amortization 1,919us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
2,053us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
6,130us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
5,958us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
 
Goodwill 36,767us-gaap_Goodwill
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
  36,767us-gaap_Goodwill
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
  43,552us-gaap_Goodwill
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
Total assets 125,427us-gaap_Assets
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
  125,427us-gaap_Assets
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
  155,571us-gaap_Assets
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_InternationalMember
Operating segments | Products and Systems          
Financial information by segment          
Revenues 8,526us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
7,610us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
22,588us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
22,799us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
 
Gross profit 4,211us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
3,674us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
10,203us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
9,776us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
 
Income (loss) from operations 1,346us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
87us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
1,330us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
1,147us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
 
Depreciation and amortization 608us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
597us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
1,809us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
1,763us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
 
Goodwill 13,197us-gaap_Goodwill
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
  13,197us-gaap_Goodwill
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
  13,197us-gaap_Goodwill
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
Total assets 35,410us-gaap_Assets
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
  35,410us-gaap_Assets
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
  38,041us-gaap_Assets
/ us-gaap_ConsolidationItemsAxis
= us-gaap_OperatingSegmentsMember
/ us-gaap_StatementBusinessSegmentsAxis
= mg_ProductsAndSystemsMember
Corporate and eliminations          
Financial information by segment          
Revenues (825)us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
(3,069)us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
(5,283)us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
(11,305)us-gaap_SalesRevenueNet
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
 
Gross profit 76us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
(676)us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
317us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
(602)us-gaap_GrossProfit
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
 
Income (loss) from operations (3,418)us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
(4,623)us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
(12,975)us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
(15,210)us-gaap_OperatingIncomeLoss
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
 
Depreciation and amortization (71)us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
59us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
218us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
147us-gaap_DepreciationDepletionAndAmortization
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
 
Total assets $ 4,545us-gaap_Assets
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
  $ 4,545us-gaap_Assets
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember
  $ 982us-gaap_Assets
/ us-gaap_ConsolidationItemsAxis
= us-gaap_IntersegmentEliminationMember