GOODWILL AND PURCHASED INTANGIBLE ASSETS - Amortization Expense for Purchased Intangible Assets (Details) - USD ($) $ in Thousands  | 
3 Months Ended | |
|---|---|---|
Sep. 30, 2024  | 
Sep. 30, 2023  | 
|
| Purchased Intangible Assets | ||
| Amortization of intangible assets | $ 56,753 | $ 63,304 | 
| Amortization expense - Costs of revenues | ||
| Purchased Intangible Assets | ||
| Amortization of intangible assets | 44,099 | 46,088 | 
| Amortization expense - SG&A | ||
| Purchased Intangible Assets | ||
| Amortization of intangible assets | $ 12,654 | $ 17,216 | 
| 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. Reference 1: http://www.xbrl.org/2003/role/exampleRef 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  |