v3.26.1
LEASES - Schedule of Lease Cost and Other Information Related to Leases (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
May 31, 2026
May 31, 2025
May 31, 2026
May 31, 2025
Aug. 31, 2025
Leases [Abstract]          
Operating lease costs $ 8,084 $ 7,974 $ 24,269 $ 23,152  
Variable lease costs $ 4,624 $ 4,031 $ 13,814 13,696  
Weighted average remaining lease term (in years) 6 years 2 months 12 days   6 years 2 months 12 days   6 years 1 month 6 days
Weighted average discount rate (IBR) 4.80%   4.80%   4.70%
Cash paid for amounts included in the measurement of lease liabilities     $ 29,807 30,218  
Lease ROU assets obtained in exchange for lease liabilities     23,875 5,175  
Reductions to ROU assets resulting from reductions to lease liabilities     $ 0 $ (5,528)