Schedule II - Valuation and Qualifying Accounts (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2024 |
Jun. 30, 2023 |
Jun. 30, 2022 |
|
| SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward] | |||
| Charged to costs and expenses | $ 15,075 | $ 14,935 | |
| Allowance for doubtful accounts | |||
| SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward] | |||
| Balance at beginning of period | 2,750 | 1,731 | $ 1,314 |
| Charged to costs and expenses | 1,066 | 1,450 | 1,292 |
| Deductions | (2,299) | (431) | (875) |
| Balance at end of period | 1,517 | 2,750 | 1,731 |
| Valuation allowance for deferred tax assets | |||
| SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward] | |||
| Balance at beginning of period | 52,551 | 36,891 | 37,453 |
| Charged to costs and expenses | 18,998 | 23,212 | 784 |
| Deductions | (3,923) | (7,552) | (1,346) |
| Balance at end of period | $ 67,626 | $ 52,551 | $ 36,891 |