v3.26.1
Earnings Per Share - Reconciliation of Shares Used in Computation of Basic and Diluted Earnings Per Common Share (Detail) - shares
shares in Thousands
3 Months Ended 9 Months Ended
May 31, 2026
May 31, 2025
May 31, 2026
May 31, 2025
Earnings Per Share Disclosure [Line Items]        
Weighted average basic common shares outstanding 30,938 31,186 30,936 31,269
Dilutive effect of restricted stock units [1] 807 998 845 963
Weighted average diluted common shares outstanding 31,745 32,184 31,781 32,272
2.875% Convertible senior notes, due 2028        
Earnings Per Share Disclosure [Line Items]        
Dilutive effect of convertible notes [2] 0 0 0 40
[1] Restricted stock units and restricted stock units subject to performance criteria, for which actual levels of performance above target have been achieved, are included in weighted average diluted common shares outstanding when the Company is in a net earnings position.
[2] The dilutive effect of the 2.875% Convertible notes due 2028 was excluded for the three and nine months ended May 31, 2026 and the three months ended May 31, 2025 as the average stock price was less than the applicable conversion price and therefore was considered anti-dilutive. As these notes require cash settlement for the principal, only a premium is potentially dilutive under the "if converted" method as further discussed below.