CREDIT FACILITY AND OTHER LONG-TERM DEBT - Senior Notes, Capped Call Transaction and Interest Expense (Details) - Senior Notes - USD ($) $ in Thousands |
Mar. 31, 2026 |
Jun. 30, 2025 |
Mar. 31, 2025 |
Jun. 30, 2016 |
|---|---|---|---|---|
| 3.25% Senior Notes | ||||
| Debt Instrument [Line Items] | ||||
| Stated interest rate, percentage | 3.25% | 3.25% | ||
| Aggregate principal | $ 600,000 | |||
| Unamortized debt issuance costs | $ 112 | $ 651 | $ 5,400 | |
| 7.25% Senior Notes | ||||
| Debt Instrument [Line Items] | ||||
| Stated interest rate, percentage | 7.25% | 7.25% | ||
| Aggregate principal | $ 400,000 | |||
| Unamortized debt issuance costs | $ 4,956 | $ 5,800 | $ 0 |
| X | ||||||||||
- Definition Face (par) amount of debt instrument at time of issuance. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Contractual interest rate for funds borrowed, under the debt agreement. 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/disclosureRef
|
| X | ||||||||||
- Definition Amount, before accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|