MARKETABLE SECURITIES - Additional Information (Details) - USD ($) $ in Thousands  | 
3 Months Ended | 9 Months Ended | |||
|---|---|---|---|---|---|
Mar. 31, 2024  | 
Mar. 31, 2023  | 
Mar. 31, 2024  | 
Mar. 31, 2023  | 
Jun. 30, 2023  | 
|
| Investments, Debt and Equity Securities [Abstract] | |||||
| Equity securities, cost | $ 22,900 | $ 22,900 | $ 3,200 | ||
| Unrealized gains (losses) for equity marketable securities | $ (5,400) | $ 500 | $ (8,600) | $ 8,800 | |
| X | ||||||||||
- Definition Cost of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI). Excludes equity method investment and investment in equity security without readily determinable fair value. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Definition Amount of unrealized gain (loss) on investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI). Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- References No definition available. 
  |