XML 70 R58.htm IDEA: XBRL DOCUMENT v3.19.2
Derivative Financial Instruments and Hedging Activities - Fair Value of Derivative Instruments Recorded on Consolidated Statements of Operations (Details) - Cost of revenue - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
May 31, 2019
May 31, 2018
May 31, 2019
May 31, 2018
Derivative Instruments, Gain (Loss) [Line Items]        
Foreign currency gain (loss) $ 28,300 $ 23,100 $ (24,300) $ (12,500)
Forward foreign exchange contracts        
Derivative Instruments, Gain (Loss) [Line Items]        
Amount of (Loss) Gain Recognized in Net Income on Derivatives $ (33,476) $ (19,785) $ 9,332 $ 25,959