v3.26.1
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