Leases - Summary of Other Information (Parenthetical) (Details) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Jun. 30, 2024 |
Jun. 30, 2023 |
|
| Leases [Abstract] | ||
| Operating lease, liability, decrease from modification | $ 9,375 | $ 17,244 |
| Operating lease right of use asset decrease from modification | $ 9,375 | 13,876 |
| Gain modification of operating lease | $ 3,368 | |