GOODWILL AND OTHER INTANGIBLE ASSETS - Amortization Expense (Details) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
Dec. 31, 2022 |
Dec. 31, 2021 |
|
| Goodwill and Intangible Assets Disclosure [Abstract] | ||||
| Amortization of acquired intangibles | $ 2,785 | $ 2,050 | $ 5,573 | $ 4,145 |