v3.26.1
Net Income per Common Share - Reconciliation of Numerator and Denominator of Basic and Diluted Per Share (Detail) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
12 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Jul. 31, 2024
Jul. 31, 2023
Jul. 31, 2022
Earnings Per Share [Line Items]          
Net income $ 205,378 $ 189,256 $ 197,215 $ 174,857 $ 149,979
Denominator for basic earnings per share for both Class A and Class B 47,285 47,641 48,119    
Plus: Effect of dilutive stock options 465 451 377    
Denominator for diluted earnings per share for both Class A and Class B 47,750 48,092 48,496    
Class A Nonvoting Common Stock          
Earnings Per Share [Line Items]          
Basic $ 4.34 $ 3.97 $ 4.10    
Diluted $ 4.30 $ 3.94 $ 4.07    
Class B Voting Common Stock          
Earnings Per Share [Line Items]          
Net Income (Loss) Available to Common Stockholders, Basic $ 204,642 $ 188,512 $ 196,462    
Cash dividends on Common Stock 728 736 748    
Preferential dividends on dilutive stock options $ 8 $ 8 $ 5    
Basic $ 4.33 $ 3.96 $ 4.08    
Diluted $ 4.29 $ 3.92 $ 4.05