LEASES - Supplemental Cash Flow Information (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2024 |
|
| Cash Paid For Amounts Included In The Measurement Of Lease Liabilities [Abstract] | |||
| Operating leases | $ 87,529 | $ 98,418 | $ 109,708 |
| Finance leases | 1,946 | 3,369 | 5,722 |
| Right Of Use Assets Obtained In Exchange For New Lease Liabilities [Abstract] | |||
| Right of use assets obtained in exchange for new operating lease liabilities | $ 14,014 | $ 53,541 | $ 30,869 |