Stock-based Compensation - Schedule of Stock-based Compensation Expense (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Apr. 30, 2026 |
Apr. 30, 2025 |
Apr. 30, 2026 |
Apr. 30, 2025 |
|
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | ||||
| Total stock-based compensation | $ 9,463 | $ 9,173 | $ 29,013 | $ 28,905 |
| General and administrative | ||||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | ||||
| Total stock-based compensation | 7,583 | 7,018 | 22,816 | 23,107 |
| Facility operations | ||||
| Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items] | ||||
| Total stock-based compensation | $ 1,880 | $ 2,155 | $ 6,197 | $ 5,798 |