XML 69 R57.htm IDEA: XBRL DOCUMENT v3.19.2
Derivative Financial Instruments and Hedging Activities - Fair Value of Derivative Instruments Located on Consolidated Balance Sheets (Details) - Forward foreign exchange contracts - USD ($)
$ in Thousands
May 31, 2019
Aug. 31, 2018
Designated as Hedging Instruments | Prepaid expenses and other current assets    
Derivatives, Fair Value [Line Items]    
Forward foreign exchange contracts, Asset Derivatives $ 644 $ 225
Designated as Hedging Instruments | Accrued expenses    
Derivatives, Fair Value [Line Items]    
Forward foreign exchange contracts, Liability Derivatives 3,853 13,364
Derivatives Not Designated as Hedging Instruments Under ASC 815 | Prepaid expenses and other current assets    
Derivatives, Fair Value [Line Items]    
Forward foreign exchange contracts, Asset Derivatives 5,216 10,125
Derivatives Not Designated as Hedging Instruments Under ASC 815 | Accrued expenses    
Derivatives, Fair Value [Line Items]    
Forward foreign exchange contracts, Liability Derivatives $ 26,851 $ 46,171