GOODWILL AND PURCHASED INTANGIBLE ASSETS - Amortization Expense for Purchased Intangible Assets (Details) - USD ($) $ in Thousands  | 
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Dec. 31, 2022  | 
Dec. 31, 2021  | 
Dec. 31, 2022  | 
Dec. 31, 2021  | 
|
| Purchased Intangible Assets | ||||
| Amortization of intangible assets | $ 65,605 | $ 53,544 | $ 130,830 | $ 107,088 | 
| Amortization expense - Costs of revenues | ||||
| Purchased Intangible Assets | ||||
| Amortization of intangible assets | 45,446 | 41,124 | 90,512 | 82,248 | 
| Amortization expense - SG&A | ||||
| Purchased Intangible Assets | ||||
| Amortization of intangible assets | 20,128 | 12,389 | 40,256 | 24,778 | 
| Amortization expense - Research and development | ||||
| Purchased Intangible Assets | ||||
| Amortization of intangible assets | $ 31 | $ 31 | $ 62 | $ 62 | 
| 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 
  |