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 | |||||
| |||||||