v3.26.1
GOODWILL AND OTHER INTANGIBLES - Schedule of Amortization (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
May 31, 2026
May 31, 2025
May 31, 2026
May 31, 2025
Finite-Lived Intangible Assets [Line Items]        
Amortization in cost of goods sold $ 32,566 $ 6,874 $ 69,071 $ 20,510
Cost of goods sold        
Finite-Lived Intangible Assets [Line Items]        
Amortization in cost of goods sold 24,479 4,388 50,615 12,950
SG&A expenses        
Finite-Lived Intangible Assets [Line Items]        
Amortization in cost of goods sold $ 8,087 $ 2,486 $ 18,456 $ 7,560