v3.26.3
Earnings Per Share - Reconciliation of Shares Used in Computation of Basic and Diluted Earnings Per Common Share (Detail) - shares
shares in Thousands
12 Months Ended
Aug. 31, 2026
Aug. 31, 2025
Aug. 31, 2024
Earnings Per Share Disclosure [Line Items]      
Weighted average basic common shares outstanding 30,937 31,171 31,102
Dilutive effect of restricted stock units [1] 835 968 916
Weighted average diluted common shares outstanding 31,772 32,139 32,363
2.875% Convertible senior notes, due 2024      
Earnings Per Share Disclosure [Line Items]      
Dilutive effect of convertible notes [2]     345
[1] 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 2.875% Convertible notes due 2024 were retired on February 1, 2024.