XML 73 R53.htm IDEA: XBRL DOCUMENT v3.23.4
Derivative Financial Instruments and Hedging Activities - Commodity Derivatives (Details) - Commodity derivatives - USD ($)
$ in Thousands
3 Months Ended
Nov. 30, 2023
Nov. 30, 2022
Cost of goods sold    
Derivative [Line Items]    
Pretax gains (losses) reclassified from AOCI related to cash flow hedges $ 8,082 $ (6,929)
Cash Flow Hedging    
Derivative [Line Items]    
Pretax gains (losses) recorded in OCI related to cash flow hedges $ (6,310) $ (29,589)