| Restructuring Charges    - Accrual for Severance and Benefits (Details) - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
| Dec. 31, 2015 | Dec. 31, 2014 | Dec. 31, 2015 | Dec. 31, 2014 | |
| Restructuring Reserve | ||||
| Beginning balance | $ 13,061 | $ 4,955 | $ 24,887 | $ 2,329 | 
| Restructuring costs | 1,392 | 3,399 | 8,458 | 7,280 | 
| Adjustments | (563) | (90) | (190) | 54 | 
| Cash payments | (10,881) | (2,934) | (30,146) | (4,333) | 
| Ending balance | $ 3,009 | $ 5,330 | $ 3,009 | $ 5,330 | 
| X | ||||||||||
| 
- Definition Restructuring Reserve, Accrual and Translation Adjustment No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of cash payments made as the result of exit or disposal activities. Excludes payments associated with a discontinued operation or an asset retirement obligation. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Definition Amount of expenses associated with exit or disposal activities pursuant to an authorized plan. Excludes expenses related to a discontinued operation or an asset retirement obligation. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Definition Carrying amount (including both current and noncurrent portions of the accrual) as of the balance sheet date pertaining to a specified type of cost associated with exit from or disposal of business activities or restructuring pursuant to a duly authorized plan. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. No definition available. 
 |