Earnings per Common Share - Schedule of Weighted Average Number of Shares (Details) - 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 [Abstract] | ||||
| Weighted-average common shares outstanding, basic (in shares) | 13,452 | 13,544 | 13,487 | 13,548 |
| Weighted-average dilutive securities (in shares) | 29 | 23 | 25 | 22 |
| Weighted-average common shares outstanding, diluted (in shares) | 13,481 | 13,567 | 13,512 | 13,570 |