XML 73 R61.htm IDEA: XBRL DOCUMENT v3.21.2
Derivative Instruments - Effect of Derivative Instruments on Statements of Income (Detail) - Cash Flow Hedging - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
May 31, 2021
May 31, 2020
May 31, 2021
May 31, 2020
Derivative Instruments, Gain (Loss) [Line Items]        
Gain (loss) recognized in OCI on derivatives $ 252 $ (7,769) $ (498) $ (9,973)
Gain (loss) reclassified from accumulated OCI into income (1,853) (2,494) (5,119) (3,131)
Gain (loss) recognized on derivative (amount excluded from effectiveness testing) 197 549 564 1,255
Foreign Exchange Forward | Interest and Foreign Exchange        
Derivative Instruments, Gain (Loss) [Line Items]        
Gain (loss) recognized in income on derivatives 95 154 (37) 60
Foreign Exchange Forward | Sales        
Derivative Instruments, Gain (Loss) [Line Items]        
Gain (loss) recognized in OCI on derivatives 494 (599) (1,118) 164
Gain (loss) reclassified from accumulated OCI into income (522) (485) (1,145) (584)
Gain (loss) recognized on derivative (amount excluded from effectiveness testing) 165 138 467 781
Foreign Exchange Forward | Cost Of Revenue        
Derivative Instruments, Gain (Loss) [Line Items]        
Gain (loss) recognized in OCI on derivatives 273 (2,015) (22) (2,198)
Gain (loss) reclassified from accumulated OCI into income (24) (1,226) (73) (1,228)
Gain (loss) recognized on derivative (amount excluded from effectiveness testing) 32 130 97 474
Interest rate swap contracts | Interest and Foreign Exchange        
Derivative Instruments, Gain (Loss) [Line Items]        
Gain (loss) recognized in OCI on derivatives (515) (5,155) 642 (7,939)
Gain (loss) reclassified from accumulated OCI into income $ (1,307) (783) $ (3,901) $ (1,319)
Gain (loss) recognized on derivative (amount excluded from effectiveness testing)   $ 281