Restructuring Charges  - Additional Information (Details) - USD ($) $ in Thousands  | 
3 Months Ended | |
|---|---|---|
Sep. 30, 2016  | 
Sep. 30, 2015  | 
|
| Restructuring Cost and Reserve [Line Items] | ||
| Restructuring costs | $ 0 | $ 7,066 | 
| Costs of revenue | ||
| Restructuring Cost and Reserve [Line Items] | ||
| Restructuring costs | 2,800 | |
| Research and development | ||
| Restructuring Cost and Reserve [Line Items] | ||
| Restructuring costs | 1,000 | |
| Selling general and administrative | ||
| Restructuring Cost and Reserve [Line Items] | ||
| Restructuring costs | $ 3,300 | |
| 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 Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available. 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  |