Income Taxes - Summary of Income Tax Contingencies (Details) - USD ($) $ in Thousands  | 
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2015  | 
Jun. 30, 2014  | 
Jun. 30, 2013  | 
|
| Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward] | |||
| Unrecognized tax benefits at the beginning of the year | $ 59,575 | $ 59,494 | $ 50,839 | 
| Increases for tax positions taken in prior years | 1,245 | 551 | 2,701 | 
| Decreases for tax positions taken in prior years | (7) | (764) | (905) | 
| Increases for tax positions taken in current year | 11,634 | 11,585 | 12,709 | 
| Decreases for settlements with taxing authorities | 0 | (3,601) | (3,907) | 
| Decreases for lapsing of statutes of limitations | (3,429) | (7,690) | (1,943) | 
| Unrecognized tax benefits at the end of the year | $ 69,018 | $ 59,575 | $ 59,494 | 
| 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. 
  | 
| X | ||||||||||
- Definition Amount of unrecognized tax benefits pertaining to uncertain tax positions taken in tax returns. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Amount of decrease in unrecognized tax benefits resulting from tax positions taken in prior period tax returns. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Amount of decrease in unrecognized tax benefits resulting from settlements with taxing authorities. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions that have been or will be taken in current period tax return. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions taken in prior period tax returns. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Amount of decrease in unrecognized tax benefits resulting from lapses of applicable statutes of limitations. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  |