| LEASES - Supplemental Cash Flow Information Related to Leases (Details) - USD ($) $ in Thousands | 3 Months Ended | |
|---|---|---|
| Sep. 30, 2021 | Sep. 30, 2020 | |
| Leases [Abstract] | ||
| Operating cash outflows from operating leases | $ 9,485 | $ 9,370 | 
| Right of use assets obtained in exchange for new operating lease liabilities | $ 5,955 | $ 6,844 | 
| 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 
 |