XML 82 R54.htm IDEA: XBRL DOCUMENT v3.22.1
Derivative Financial Instruments and Hedging Activities - Commodity Derivatives (Details) - Commodity derivatives - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Feb. 28, 2022
Feb. 28, 2021
Feb. 28, 2022
Feb. 28, 2021
Cost of goods sold        
Derivative [Line Items]        
Pretax gains (losses) reclassified from AOCI related to cash flow hedges $ 5,005 $ 4,082 $ 18,259 $ 16,755
Cash Flow Hedging        
Derivative [Line Items]        
Pretax gains (losses) recorded in OCI related to cash flow hedges $ (1,977) $ (2,084) $ (15,273) $ (110)