v3.26.3
Income Taxes - Schedule of Reconciliation of U.S Federal Statutory Rate to Effective Rate on (loss) Income before (Benefit) Provision for Income Taxes (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Effective Income Tax Rate Reconciliation, Amount    
Expected United States federal income tax at statutory rate $ (64,424) $ (107,884)
Tax Jurisdiction of Domicile [Extensible Enumeration] UNITED STATES UNITED STATES
State income taxes, net of federal benefit $ (2,413) $ (11,431)
U.S. tax on foreign earnings 0 3,466
Foreign income at different rates   (6,538)
Change in valuation allowance 12,949 28,757
Change in reserves for uncertain tax positions   25,863
Impairment of goodwill and intangibles   77,615
Cross-border tax laws (1,283)  
Gain on sale of business 8,547  
Impairment of goodwill 5,984  
R&W insurance proceeds (5,439)  
Gain on disposal of subsidiary   2,104
Stock-based Compensation   393
Return to provision   (301)
Loss on capital asset   1,004
Other 4,892 2,249
Change in unrecognized tax benefits 1,300  
Provision for income taxes $ (2,208) $ 15,297
Effective Income Tax Rate Reconciliation, Percent    
Expected United States federal income tax at statutory rate 21.00% 21.00%
State income taxes, net of federal benefit 0.80% 2.20%
U.S. tax on foreign earnings   (0.70%)
Foreign income at different rates   1.30%
Change in valuation allowance (4.20%) (5.60%)
Change in reserves for uncertain tax positions   (5.00%)
Impairment of goodwill and intangibles   (15.20%)
Cross-border tax laws 0.40%  
Gain on sale of business (2.80%)  
Impairment of goodwill (2.00%)  
R&W insurance proceeds 1.80%  
Gain on disposal of subsidiary   (0.40%)
Stock-based compensation   (0.10%)
Return to provision   0.10%
Loss on capital asset   (0.20%)
Change in unrecognized tax benefits (0.40%)  
Other (1.60%) (0.40%)
Provision for income taxes 0.70% (3.00%)
U.K.    
Effective Income Tax Rate Reconciliation, Amount    
Foreign income at different rates $ (4,689)  
Impairment of goodwill 19,803  
Change in valuation allowance 11,162  
Other $ 548  
Effective Income Tax Rate Reconciliation, Percent    
Foreign income at different rates 1.50%  
Change in valuation allowance (3.60%)  
Impairment of goodwill (6.50%)  
Other (0.20%)  
Canada    
Effective Income Tax Rate Reconciliation, Amount    
Change in valuation allowance $ 4,119  
Other $ (1,958)  
Effective Income Tax Rate Reconciliation, Percent    
Change in valuation allowance (1.30%)  
Other 0.60%  
Austria    
Effective Income Tax Rate Reconciliation, Amount    
Impairment of goodwill $ 7,522  
Other $ (416)  
Effective Income Tax Rate Reconciliation, Percent    
Impairment of goodwill (2.50%)  
Other 0.10%  
Other Foreign Jurisdictions    
Effective Income Tax Rate Reconciliation, Amount    
Foreign income at different rates $ 1,588  
Effective Income Tax Rate Reconciliation, Percent    
Foreign income at different rates (0.50%)