v3.26.3
STOCK-BASED COMPENSATION PLANS (Yearly Activity of Stock Purchase Plan) (Details) - $ / shares
12 Months Ended
Aug. 31, 2026
Aug. 31, 2025
Aug. 31, 2024
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Shares available for future issuance (in shares) 2,256,311    
Employee stock purchase plan      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Shares subscribed (in shares) 234,157 235,065 259,500
Price per share (in dollars per share) $ 59.64 $ 42.97 $ 42.16
Shares purchased (in shares) 181,129 222,154 238,850
Price per share (in dollars per share) $ 41.05 $ 42.23 $ 41.31
Shares available for future issuance (in shares) 1,033,871