v3.26.1
COMMITMENTS AND CONTINGENCIES (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
May 31, 2026
May 31, 2025
May 31, 2026
May 31, 2025
Commitments and Contingencies Disclosure [Abstract]        
Income tax expense (benefit) $ 1,231 $ (6,727) $ 2,876 $ (6,229)
Income (loss) before income taxes $ 4,806 $ (74,044) $ 11,662 $ (70,266)
Effective income tax rate 26.00% 9.00% 25.00% 9.00%