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, 2026 |
Jan. 31, 2025 |
Jan. 31, 2026 |
Jan. 31, 2025 |
|
| Earnings Per Share [Abstract] | ||||
| Weighted-average common shares outstanding for basic earnings per share (in shares) | 52,704,784 | 53,208,626 | 52,697,434 | 53,091,615 |
| Unvested restricted and performance stock units (in shares) | 139,443 | 0 | 212,469 | 0 |
| Weighted-average common shares outstanding assuming dilution (in shares) | 52,844,227 | 53,208,626 | 52,909,903 | 53,091,615 |