XML 108 R87.htm IDEA: XBRL DOCUMENT v3.21.2
Derivative Instruments - Effect of Derivative Instruments on Statements of Income (Detail) - Cash Flow Hedging - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2021
Aug. 31, 2020
Derivative Instruments, Gain (Loss) [Line Items]    
Gain (loss) recognized in OCI on derivatives $ (1,445) $ (10,084)
Gain (loss) reclassified from accumulated OCI into income (6,669) (5,641)
Gain (loss) recognized on derivative (amount excluded from effectiveness testing) 726 1,509
Foreign Exchange Forward | Interest and Foreign Exchange    
Derivative Instruments, Gain (Loss) [Line Items]    
Gain (loss) recognized in income on derivatives (70) 83
Foreign Exchange Forward | Sales    
Derivative Instruments, Gain (Loss) [Line Items]    
Gain (loss) recognized in OCI on derivatives (1,976) 461
Gain (loss) reclassified from accumulated OCI into income (1,330) (748)
Gain (loss) recognized on derivative (amount excluded from effectiveness testing) 602 996
Foreign Exchange Forward | Cost Of Revenue    
Derivative Instruments, Gain (Loss) [Line Items]    
Gain (loss) recognized in OCI on derivatives (37) (2,238)
Gain (loss) reclassified from accumulated OCI into income (78) (2,236)
Gain (loss) recognized on derivative (amount excluded from effectiveness testing) 124 513
Interest rate swap contracts | Interest and Foreign Exchange    
Derivative Instruments, Gain (Loss) [Line Items]    
Gain (loss) recognized in OCI on derivatives 568 (8,307)
Gain (loss) reclassified from accumulated OCI into income $ (5,261) $ (2,657)