| DESCRIPTION OF BUSINESS AND SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Goodwill, Purchased Intangible Assets and Impairment Assessment (Details) | 12 Months Ended | 
|---|---|
| Jun. 30, 2023 | |
| Minimum | |
| Finite-Lived Intangible Assets [Line Items] | |
| Weighted average useful life | 6 months | 
| Maximum | |
| Finite-Lived Intangible Assets [Line Items] | |
| Weighted average useful life | 9 years | 
| X | ||||||||||
| 
- Definition Weighted average amortization period of finite-lived intangible assets acquired either individually or as part of a group of assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 |