XML 109 R88.htm IDEA: XBRL DOCUMENT v3.21.2
Derivative Instruments - Effects of Cash Flow Hedges Included in Statements of Income (Detail) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2021
Aug. 31, 2020
Aug. 31, 2019
Derivative [Line Items]      
Revenue $ 1,747,981 $ 2,792,189 $ 3,033,591
Cost of revenue 1,516,374 2,439,058 2,667,105
Interest and foreign exchange 43,263 43,619 30,912
Sales      
Derivative [Line Items]      
Amount of gain (loss) on cash flow hedge activity (1,330) (748) (764)
Cost of Sales      
Derivative [Line Items]      
Amount of gain (loss) on cash flow hedge activity (78) (2,236) (1,030)
Interest and Foreign Exchange      
Derivative [Line Items]      
Amount of gain (loss) on cash flow hedge activity $ (5,261) $ (2,657) $ (545)