v3.24.1.1.u2
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
3 Months Ended 9 Months Ended
Apr. 30, 2024
Apr. 30, 2023
Apr. 30, 2024
Apr. 30, 2023
Earnings Per Share [Line Items]        
Net income $ 50,890 $ 48,052 $ 141,759 $ 125,479
Denominator for basic income per share for both Class A and Class B 48,004 49,653 48,294 49,755
Plus: Effect of dilutive equity awards 382 348 346 278
Denominator for diluted income per share for both Class A and Class B 48,386 50,001 48,640 50,033
Class A Nonvoting Common Stock        
Earnings Per Share [Line Items]        
Basic $ 1.06 $ 0.97 $ 2.94 $ 2.52
Diluted $ 1.05 $ 0.96 $ 2.91 $ 2.51
Class B Voting Common Stock        
Earnings Per Share [Line Items]        
Preferential dividends $ 0 $ 0 $ 748 $ 769
Preferential dividends on dilutive stock options 0 0 (5) (4)
Numerator for basic and diluted income per Class B Voting Common Share $ 50,890 $ 48,052 $ 141,006 $ 124,706
Basic $ 1.06 $ 0.97 $ 2.92 $ 2.51
Diluted $ 1.05 $ 0.96 $ 2.90 $ 2.49