EQUITY AND LONG-TERM INCENTIVE COMPENSATION PLANS - Share-based Compensation Expense (Details) - USD ($) $ in Thousands  | 
3 Months Ended | 6 Months Ended | |||
|---|---|---|---|---|---|
Dec. 31, 2024  | 
Dec. 31, 2023  | 
Dec. 31, 2024  | 
Dec. 31, 2023  | 
Jun. 30, 2024  | 
|
| Stock-based compensation expense | |||||
| Total stock-based compensation expense | $ 61,841 | $ 48,620 | $ 123,541 | $ 97,392 | |
| Stock-based compensation capitalized as inventory | 21,500 | 21,500 | $ 21,500 | ||
| Costs of revenues | |||||
| Stock-based compensation expense | |||||
| Total stock-based compensation expense | 10,469 | 8,082 | 20,258 | 15,751 | |
| R&D | |||||
| Stock-based compensation expense | |||||
| Total stock-based compensation expense | 17,045 | 12,753 | 34,425 | 25,781 | |
| SG&A | |||||
| Stock-based compensation expense | |||||
| Total stock-based compensation expense | $ 34,327 | $ 27,785 | $ 68,858 | $ 55,860 | |
| X | ||||||||||
- Definition Stock Based Compensation Capitalized As Inventory No definition available. 
  | 
| X | ||||||||||
- Definition Amount of expense for award under share-based payment arrangement. Excludes amount capitalized. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| 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 
  |