Income Taxes - Summary of Changes in Valuation Allowances (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2024 |
Jun. 30, 2023 |
Jun. 30, 2022 |
|
| Valuation Allowance [Roll Forward] | |||
| Balance at beginning of year | $ 52,551 | $ 36,891 | |
| Charged to costs and expenses | 15,075 | 14,935 | |
| Balance at end of year | 67,626 | 52,551 | $ 36,891 |
| Additions charged to income tax expense | |||
| Valuation Allowance [Roll Forward] | |||
| Charged to costs and expenses | 18,998 | 23,212 | |
| Reductions credited to income tax expense | |||
| Valuation Allowance [Roll Forward] | |||
| Charged to costs and expenses | (3,858) | (8,514) | |
| THWR Purchase Accounting | |||
| Valuation Allowance [Roll Forward] | |||
| Charged to costs and expenses | 0 | 291 | $ 1,743 |
| Currency translation adjustments | |||
| Valuation Allowance [Roll Forward] | |||
| Charged to costs and expenses | $ (65) | $ 671 | |