Earnings Per Share - Schedule of Dilutive Earnings per Share (Details) - shares shares in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Apr. 30, 2026 |
Apr. 30, 2025 |
Apr. 30, 2026 |
Apr. 30, 2025 |
|
| Schedule of Dilutive Earnings per Share [Line Items] | ||||
| Shares excluded from the calculation of diluted earnings per share | 118 | 337 | 860 | 1,024 |
| Stock options [Member] | ||||
| Schedule of Dilutive Earnings per Share [Line Items] | ||||
| Shares excluded from the calculation of diluted earnings per share | 118 | 170 | 766 | 892 |
| Non-vested restricted Class B common stock [Member] | ||||
| Schedule of Dilutive Earnings per Share [Line Items] | ||||
| Shares excluded from the calculation of diluted earnings per share | 77 | 39 | 78 | |
| Deferred stock units [Member] | ||||
| Schedule of Dilutive Earnings per Share [Line Items] | ||||
| Shares excluded from the calculation of diluted earnings per share | 90 | 55 | 54 | |