Debt - Narrative (Details) | Jun. 18, 2018USD ($) | May 15, 2017USD ($) | Dec. 09, 2016USD ($) | Dec. 14, 2015USD ($) | Oct. 14, 2014USD ($) | Sep. 16, 2014USD ($)extension | Jun. 30, 2018USD ($)loan | Jun. 30, 2017USD ($) | Jun. 30, 2016USD ($) | Oct. 15, 2016 |
Debt Instrument [Line Items] | | | | | | | | | | |
Maximum ratio of indebtedness to EBITDA | | | | | | 350.00% | | | | |
Minimum ratio of EBITDA to Interest expense | | | | | | 300.00% | | | | |
Debt issuance costs, gross | | | | | | | $ 29,600,000 | $ 21,700,000 | | |
Accumulated amortization of debt financing costs | | | | | | | (8,200,000) | (5,000,000) | | |
Additional debt issuance costs capitalized | | | | | | | $ 7,900,000 | $ 10,600,000 | $ 2,100,000 | |
2021 term loan facility | Federal Funds Rate | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Basis spread on variable rate, line of credit | | | 0.50% | | | | | | | |
2021 term loan facility | One-Month LIBOR | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Basis spread on variable rate, line of credit | | | 1.00% | | | | | | | |
2021 term loan facility | Minimum | London Interbank Offered Rate (LIBOR) | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Basis spread on variable rate, line of credit | | | 1.25% | | | | | | | |
2021 term loan facility | Minimum | One-Month LIBOR | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Basis spread on variable rate, line of credit | | | 0.25% | | | | | | | |
2021 term loan facility | Maximum | London Interbank Offered Rate (LIBOR) | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Basis spread on variable rate, line of credit | | | 2.50% | | | | | | | |
2021 term loan facility | Maximum | One-Month LIBOR | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Basis spread on variable rate, line of credit | | | 1.50% | | | | | | | |
Line of Credit | Revolving credit facility | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Revolving credit facility, maximum borrowing capacity | | | | | | $ 300,000,000 | | | | |
Revolving credit facility, Euro or Sterling sublimit | | | | | | 100,000,000 | | | | |
Line of credit facility accordion feature | | | | | | $ 100,000,000 | | | | |
Line of credit, number of one-year extensions | extension | | | | | | 2 | | | | |
Revolving credit facility term extension period | | | | | | 1 year | | | | |
Line of Credit | Revolving credit facility | Prime Rate | JP Morgan Chase Bank | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Description of variable rate basis, line of credit | | | | | | prime rate | | | | |
Line of Credit | Revolving credit facility | Federal Funds Rate | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Basis spread on variable rate, line of credit | | | | | | 0.50% | | | | |
Description of variable rate basis, line of credit | | | | | | federal funds rate | | | | |
Line of Credit | Revolving credit facility | One-Month LIBOR | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Basis spread on variable rate, line of credit | | | | | | 1.00% | | | | |
Line of Credit | Revolving credit facility | Minimum | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Commitment fee percentage on unused portion of the revolving credit facility | | | | | | 0.125% | | | | |
Line of Credit | Revolving credit facility | Minimum | London Interbank Offered Rate (LIBOR) | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Basis spread on variable rate, line of credit | | | | | | 1.125% | | | | |
Line of Credit | Revolving credit facility | Minimum | One-Month LIBOR | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Additional basis spread on variable rate, line of credit | | | | | | 0.125% | | | | |
Line of Credit | Revolving credit facility | Maximum | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Commitment fee percentage on unused portion of the revolving credit facility | | | | | | 0.35% | | | | |
Line of Credit | Revolving credit facility | Maximum | London Interbank Offered Rate (LIBOR) | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Basis spread on variable rate, line of credit | | | | | | 2.00% | | | | |
Line of Credit | Revolving credit facility | Maximum | One-Month LIBOR | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Additional basis spread on variable rate, line of credit | | | | | | 1.00% | | | | |
Term loan facilities | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Debt instrument, number of loans | loan | | | | | | | 2 | | | |
Periodic payment of principal, in percentage, term loan | | | | | | 1.25% | | | | |
Term loan facilities | 2019 term loan facility | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Debt instrument, term | | | | | | 5 years | | | | |
Debt instrument, face amount | | | | | | $ 250,000,000 | | | | |
Annual interest rate on loan facility | | | | | | | 3.85% | 2.98% | | |
Term loan facilities | 2021 term loan facility | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Debt instrument, term | | | 5 years | | | | | | | |
Debt instrument, face amount | | | $ 400,000,000 | | | | | | | |
Annual interest rate on loan facility | | | | | | | 3.85% | | | |
Term loan facilities | 2020 term loan facility | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Debt instrument, term | | | | 5 years | | | | | | |
Debt instrument, face amount | | | | $ 250,000,000 | | | | | | |
Annual interest rate on loan facility | | | | | | | 3.85% | 2.98% | | |
Credit Facilities | Maximum | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Maximum aggregate principal amount of accelerated maturity of other indebtedness allowed | | | | | | $ 75,000,000 | | | | |
Senior Notes | Debt Instrument, Redemption, Period One | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Notes, redemption price as a percentage of the aggregate principal amount | | | | | 100.00% | | | | | |
Senior Notes | Debt Instrument, Redemption, Period Two | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Notes, redemption price as a percentage of the aggregate principal amount | | | | | 100.00% | | | | | |
Senior Notes | Minimum | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Notes, redemption price resulting from change of control, as percentage of principal amount | | | | | 101.00% | | | | | |
Senior Notes | 3.30% senior notes, due 2019 | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Debt instrument, face amount | | | | | $ 250,000,000 | | | | | |
Interest rate | | | | | 3.30% | | 3.80% | 3.30% | | 3.80% |
Senior Notes | 4.50% senior notes, due 2024 | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Debt instrument, face amount | | | | | $ 500,000,000 | | | | | |
Interest rate | | | | | 4.50% | | 5.00% | 4.50% | | 5.00% |
Senior Notes | 4.875% senior notes, due 2027 | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Debt instrument, face amount | | $ 600,000,000 | | | | | | | | |
Senior Notes | 4.875% senior notes, due 2027 | Minimum | Debt Instrument, Redemption, Period One | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Notes, redemption price as a percentage of the aggregate principal amount | | 100.00% | | | | | | | | |
Senior Notes | 4.875% senior notes, due 2027 | Minimum | Debt Instrument, Redemption, Period Two | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Notes, redemption price as a percentage of the aggregate principal amount | | 102.438% | | | | | | | | |
Senior Notes | 4.875% senior notes, due 2027 | Minimum | Debt Instrument, Redemption, Period Three | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Notes, redemption price as a percentage of the aggregate principal amount | | 101.625% | | | | | | | | |
Senior Notes | 4.875% senior notes, due 2027 | Minimum | Debt Instrument, Redemption, Period Four | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Notes, redemption price as a percentage of the aggregate principal amount | | 100.813% | | | | | | | | |
Senior Notes | 4.875% senior notes, due 2027 | Minimum | Debt Instrument, Redemption, Period Five | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Notes, redemption price as a percentage of the aggregate principal amount | | 100.00% | | | | | | | | |
Senior Notes | 5.875 senior notes, due 2026 | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Debt instrument, face amount | $ 500,000,000 | | | | | | | | | |
Interest rate | 5.875% | | | | | | 5.875% | | | |
Senior Notes | 5.875 senior notes, due 2026 | Minimum | Debt Instrument, Redemption, Period One | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Notes, redemption price as a percentage of the aggregate principal amount | 100.00% | | | | | | | | | |
Senior Notes | 5.875 senior notes, due 2026 | Minimum | Debt Instrument, Redemption, Period Two | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Notes, redemption price as a percentage of the aggregate principal amount | 102.938% | | | | | | | | | |
Senior Notes | 5.875 senior notes, due 2026 | Minimum | Debt Instrument, Redemption, Period Three | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Notes, redemption price as a percentage of the aggregate principal amount | 101.958% | | | | | | | | | |
Senior Notes | 5.875 senior notes, due 2026 | Minimum | Debt Instrument, Redemption, Period Four | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Notes, redemption price as a percentage of the aggregate principal amount | 100.979% | | | | | | | | | |
Senior Notes | 5.875 senior notes, due 2026 | Minimum | Debt Instrument, Redemption, Period Five | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | |
Notes, redemption price as a percentage of the aggregate principal amount | 100.00% | | | | | | | | | |