Stock Repurchase Program (Details) - USD ($) $ in Thousands  | 
3 Months Ended | |
|---|---|---|
Sep. 30, 2016  | 
Sep. 30, 2015  | 
|
| Equity, Class of Treasury Stock | ||
| Remaining number of shares authorized to be repurchased (in shares) | 5,900,000 | |
| Total cost of repurchases | $ 0 | $ 146,234 | 
| Other current liabilities | ||
| Equity, Class of Treasury Stock | ||
| Number of shares of common stock repurchased (in shares) | 197,339 | |
| Total cost of repurchases | $ 9,600 | |
| Common Stock and Capital in Excess of Par Value, Shares | ||
| Equity, Class of Treasury Stock | ||
| Number of shares of common stock repurchased (in shares) | 0 | 2,877,000 | 
| 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 | ||||||||||
- Definition The remaining number of shares authorized to be repurchased by an entity's Board of Directors under a stock repurchase plan. No definition available. 
  | 
| X | ||||||||||
- Definition Number of shares that have been repurchased during the period and are being held in treasury. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Equity impact of the cost of common and preferred stock that were repurchased during the period. Recorded using the cost method. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  |