v3.25.2
COMMITMENTS AND CONTINGENCIES - Narrative (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
May 31, 2025
May 31, 2024
May 31, 2025
May 31, 2024
Commitments and Contingencies Disclosure [Abstract]        
Income tax expense $ 6,727 $ (753) $ 6,229 $ (2,437)
(Loss) income before income taxes $ (74,044) $ 3,890 $ (70,266) $ 11,548
Effective income tax rate (9.10%) (19.40%) (8.90%) (21.10%)