LEASES - Supplemental Cash Flow Information Related to Leases (Details) - USD ($) $ in Thousands  | 
3 Months Ended | |
|---|---|---|
Sep. 30, 2024  | 
Sep. 30, 2023  | 
|
| Leases [Abstract] | ||
| Operating cash outflows from operating leases | $ 10,856 | $ 10,002 | 
| Right of use assets obtained in exchange for new operating lease liabilities | $ 9,649 | $ 12,968 | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Definition Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Definition Amount of increase in right-of-use asset obtained in exchange for operating lease liability. Reference 1: http://www.xbrl.org/2003/role/exampleRef 
  |