| Restructuring Charges  - Accrual for Severance and Benefits (Details) - USD ($) $ in Thousands | 3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
| Mar. 31, 2016 | Mar. 31, 2015 | Mar. 31, 2016 | Mar. 31, 2015 | |
| Restructuring Reserve | ||||
| Beginning balance | $ 3,009 | $ 5,330 | $ 24,887 | $ 2,329 | 
| Restructuring costs | 125 | 1,921 | 8,583 | 9,201 | 
| Adjustments | 38 | (543) | (152) | (489) | 
| Cash payments | (2,514) | (3,000) | (32,660) | (7,333) | 
| Ending balance | $ 658 | $ 3,708 | $ 658 | $ 3,708 | 
| 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 Amount of expense (reversal of expense) which increases (decreases) the restructuring reserve from an adjustment to a previously accrued restructuring liability. 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. 
 |