| GOODWILL AND PURCHASED INTANGIBLE ASSETS - Amortization Expense for Purchased Intangible Assets (Details) - USD ($) $ in Thousands | 3 Months Ended | |
|---|---|---|
| Sep. 30, 2021 | Sep. 30, 2020 | |
| Purchased Intangible Assets | ||
| Amortization of intangible assets | $ 53,544 | $ 50,500 | 
| Costs of revenues | ||
| Purchased Intangible Assets | ||
| Amortization of intangible assets | 41,124 | 37,040 | 
| Selling, general and administrative | ||
| Purchased Intangible Assets | ||
| Amortization of intangible assets | 12,389 | 13,429 | 
| Research and development | ||
| Purchased Intangible Assets | ||
| Amortization of intangible assets | $ 31 | $ 31 | 
| X | ||||||||||
| 
- Definition The aggregate expense charged against earnings to allocate the cost of intangible assets (nonphysical assets not used in production) in a systematic and rational manner to the periods expected to benefit from such assets. As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method. 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. No definition available. 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 |