XML 55 R38.htm IDEA: XBRL DOCUMENT v3.19.2
Organization, Basis of Presentation and Significant Accounting Policies - Reconciliation of Cash, Cash Equivalents, and Restricted Cash (Details) - USD ($)
$ in Thousands
May 31, 2019
Aug. 31, 2018
May 31, 2018
Aug. 31, 2017
Cash and Cash Equivalents [Line Items]        
Cash and cash equivalents $ 155,252 $ 450,617 $ 533,887 $ 181,379
Total cash and cash equivalents and restricted cash 255,322 543,940 580,957 272,272
Restricted cash included in other current assets        
Cash and Cash Equivalents [Line Items]        
Restricted cash 99,398 90,193 43,912 83,561
Restricted cash included in other assets        
Cash and Cash Equivalents [Line Items]        
Restricted cash $ 672 $ 3,130 $ 3,158 $ 7,332