| DESCRIPTION OF BUSINESS AND SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Cash Equivalents and Marketable Securities (Details) - USD ($) | 12 Months Ended | ||
|---|---|---|---|
| Jun. 30, 2023 | Jun. 30, 2022 | Jun. 30, 2021 | |
| Accounting Policies [Abstract] | |||
| Credit losses on available-for-sale debt securities | $ 0 | $ 0 | $ 0 | 
| X | ||||||||||
| 
- References No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of expense for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), for which no credit loss was previously recorded. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 |