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, 2020 |
Apr. 30, 2019 |
Apr. 30, 2020 |
Apr. 30, 2019 |
| Earnings Per Share [Line Items] |
|
|
|
|
| Net income |
$ 13,633
|
$ 34,781
|
$ 84,684
|
$ 94,645
|
| Denominator for basic earnings per share for both Class A and Class B |
52,607
|
52,766
|
53,023
|
52,499
|
| Plus: Effect of dilutive stock options |
365
|
714
|
489
|
716
|
| Denominator for diluted earnings per share for both Class A and Class B |
52,972
|
53,480
|
53,512
|
53,215
|
| Class A nonvoting common stock |
|
|
|
|
| Earnings Per Share [Line Items] |
|
|
|
|
| Net earnings per share, basic |
$ 0.26
|
$ 0.66
|
$ 1.60
|
$ 1.80
|
| Net earnings per share, diluted |
$ 0.26
|
$ 0.65
|
$ 1.58
|
$ 1.78
|
| Class B voting common stock |
|
|
|
|
| Earnings Per Share [Line Items] |
|
|
|
|
| Preferential dividends |
$ 0
|
$ 0
|
$ 828
|
$ 815
|
| Preferential dividends on dilutive stock options |
0
|
0
|
10
|
(13)
|
| Numerator for basic and diluted earnings per Class B Voting Common Share |
$ 13,633
|
$ 34,781
|
$ 83,846
|
$ 93,817
|
| Net earnings per share, basic |
$ 0.26
|
$ 0.66
|
$ 1.58
|
$ 1.79
|
| Net earnings per share, diluted |
$ 0.26
|
$ 0.65
|
$ 1.57
|
$ 1.76
|