EARNINGS PER SHARE - Schedule of antidilutive securities (Details) - shares shares in Thousands |
3 Months Ended | |
|---|---|---|
Sep. 30, 2026 |
Sep. 30, 2025 |
|
| Common stock options | ||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Antidilutive securities (in shares) | 3 | 4 |
| 2024 Convertible Senior Notes, net | ||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Antidilutive securities (in shares) | 957 | 957 |
| Unvested restricted stock units | ||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Antidilutive securities (in shares) | 823 | 801 |
| Common stock issuable pursuant to the 2018 ESPP | ||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Antidilutive securities (in shares) | 12 | 14 |