Income Taxes - Schedule of Unrecognized Tax Benefits, Including Interest and Penalties Activity (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2024 |
Jun. 30, 2023 |
Jun. 30, 2022 |
|
| Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward] | |||
| Balance at beginning of year | $ 23,967 | $ 21,901 | $ 22,870 |
| Additions based on tax positions related to the current year | 1,906 | 1,519 | 273 |
| Additions based on tax positions related to prior years | 187 | 815 | 304 |
| Reductions due to lapse in statute of limitations and settlements | 0 | (268) | (1,546) |
| Balance at end of year | $ 26,060 | $ 23,967 | $ 21,901 |