XML 95 R79.htm IDEA: XBRL DOCUMENT v3.23.3
STOCKHOLDERS’ EQUITY - Share Repurchases (Details) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2023
Aug. 31, 2022
Aug. 31, 2021
Equity [Abstract]      
Repurchase of common stock under the share repurchase program (in shares) 430,350 46,200 797,385
Total cost of shares repurchased $ 176,720 $ 18,639 $ 264,702
Equity, Class of Treasury Stock [Line Items]      
Excise tax on share repurchases $ 932    
Restricted stock      
Equity, Class of Treasury Stock [Line Items]      
Shares repurchased from employees (in shares) 32,444 14,489 12,932
Value of shares repurchased in settlement of employee tax withholding obligations $ 13,700 $ 6,200 $ 4,300