v3.26.3
DERIVATIVES (Derivatives Not Designated as Hedging Instruments) (Details) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2026
Aug. 31, 2025
Aug. 31, 2024
Derivative Instruments, Gain (Loss) [Line Items]      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), before Reclassification, after Tax $ 19,426 $ 16,944 $ (129,678)
Commodity      
Derivative Instruments, Gain (Loss) [Line Items]      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), before Reclassification, after Tax 19,422 16,926 (129,709)
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax 12,973 6,661 2,031
Commodity | Location, Statement of Income, Balance [Axis]: us-gaap:CostOfGoodsAndServicesSold      
Derivative Instruments, Gain (Loss) [Line Items]      
Gain (loss) before taxes for derivatives not designated as hedging instruments (29,638) 1,928 (10,195)
Foreign exchange | Location, Statement of Income, Balance [Axis]: us-gaap:SellingGeneralAndAdministrativeExpense      
Derivative Instruments, Gain (Loss) [Line Items]      
Gain (loss) before taxes for derivatives not designated as hedging instruments $ (2,745) $ 11,865 $ 6,974