Debt and Borrowings - Summary of Debt and Borrowings (Details) - USD ($) $ in Thousands |
Mar. 31, 2026 |
Jun. 30, 2025 |
|---|---|---|
| Line of Credit Facility [Line Items] | ||
| Less: Unamortized issuance costs | $ (724) | $ (1,844) |
| Finance Lease, Liability | 395 | 615 |
| Long-term debt | 549,496 | 704,821 |
| Current debt and finance lease obligations | 549,184 | 7,653 |
| Long-term debt and finance lease obligations, less current portion | 312 | 697,168 |
| Second Amendment and Restated Credit Agreement | Term loans | ||
| Line of Credit Facility [Line Items] | ||
| Debt, gross | 148,825 | 255,550 |
| Second Amendment and Restated Credit Agreement | Revolving credit facility | Line of Credit | ||
| Line of Credit Facility [Line Items] | ||
| Debt, gross | $ 401,000 | $ 450,500 |
| X | ||||||||||
- Definition Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of unamortized debt discount (premium) and debt issuance costs. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Present value of lessee's discounted obligation for lease payments from finance lease. 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. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount of long-term debt and lease obligation, classified as noncurrent. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of long-term debt and lease obligation, classified as current. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of long-term debt and lease obligation, including portion classified as current. No definition available.
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|