Goodwill and Intangible Assets - Schedule of Goodwill by Reportable Segment (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2024 |
|
| Goodwill [Roll Forward] | |||
| Beginning balance | $ 5,021,805 | $ 4,154,844 | |
| Goodwill acquired | 1,474,533 | 849,024 | |
| Goodwill divested | (3,666) | ||
| Foreign currency translation | (8,216) | 17,937 | |
| Ending balance | 6,484,456 | 5,021,805 | $ 4,154,844 |
| Gain on sale of business | 7,280 | 0 | 0 |
| Domestic | Operating segments | |||
| Goodwill [Roll Forward] | |||
| Beginning balance | 4,773,411 | 3,974,823 | |
| Goodwill acquired | 1,464,476 | 798,885 | |
| Goodwill divested | 0 | ||
| Foreign currency translation | 857 | (297) | |
| Ending balance | 6,238,744 | 4,773,411 | 3,974,823 |
| International | Operating segments | |||
| Goodwill [Roll Forward] | |||
| Beginning balance | 248,394 | 180,021 | |
| Goodwill acquired | 10,057 | 50,139 | |
| Goodwill divested | (3,666) | ||
| Foreign currency translation | (9,073) | 18,234 | |
| Ending balance | $ 245,712 | $ 248,394 | $ 180,021 |
| X | ||||||||||
- Definition Amount of gain (loss) from sale and disposal of integrated set of activities and assets capable of being conducted and managed for purpose of providing return in form of dividend, lower cost, or other economic benefit to investor, owner, member and participant. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount, after accumulated impairment loss, of asset representing future economic benefit arising from other asset acquired in business combination or from joint venture formation or both, that is not individually identified and separately recognized. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of foreign currency translation gain (loss) which increases (decreases) asset representing future economic benefit from other asset acquired in business combination or from joint venture formation or both, that is not individually identified and separately recognized. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of increase (decrease) from measurement period adjustment of asset representing future economic benefit arising from other asset acquired in business combination or from joint venture formation or both, that is not individually identified and separately recognized. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| 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 decrease in goodwill acquired in business combination or from joint venture formation or both, that is not individually identified and separately recognized, from divestiture. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|