Earnings Per Common Share - Schedule of Weighted-Average Common Shares Used to Compute Basic and Diluted Earnings Per Common Share (Details) - shares |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jan. 31, 2025 |
Jan. 31, 2024 |
Jan. 31, 2025 |
Jan. 31, 2024 |
|
| Earnings Per Share [Abstract] | ||||
| Weighted-average common shares outstanding for basic earnings per share (in shares) | 53,208,626 | 53,322,504 | 53,091,615 | 53,309,169 |
| Unvested restricted and performance stock units (in shares) | 0 | 328,079 | 0 | 442,981 |
| Weighted-average common shares outstanding assuming dilution (in shares) | 53,208,626 | 53,650,583 | 53,091,615 | 53,752,150 |