Equity and Long-Term Incentive Compensation Plans  - Share-based Compensation Expense (Details) - USD ($) $ in Thousands  | 
3 Months Ended | ||
|---|---|---|---|
Sep. 30, 2016  | 
Sep. 30, 2015  | 
Jun. 30, 2016  | 
|
| Stock-based compensation expense | |||
| Stock-based compensation expense | $ 11,478 | $ 12,248 | |
| Employee services share-based compensation, tax benefit realized | 5,700 | ||
| Stock-based compensation capitalized as inventory | 2,714 | $ 2,685 | |
| Costs of revenues | |||
| Stock-based compensation expense | |||
| Stock-based compensation expense | 1,262 | 1,464 | |
| Research and development | |||
| Stock-based compensation expense | |||
| Stock-based compensation expense | 2,021 | 2,492 | |
| Selling, general and administrative | |||
| Stock-based compensation expense | |||
| Stock-based compensation expense | $ 8,195 | $ 8,292 | |
| X | ||||||||||
- Definition Effective Income Tax Rate Reconciliation, Share-based Compensation, Excess Tax Benefit, Amount No definition available. 
  | 
| X | ||||||||||
- Definition Stock Based Compensation Capitalized as Inventory No definition available. 
  | 
| X | ||||||||||
- Definition Represents the expense recognized during the period arising from equity-based compensation arrangements (for example, shares of stock, unit, stock options or other equity instruments) with employees, directors and certain consultants qualifying for treatment as employees. 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 
  |