XML 54 R36.htm IDEA: XBRL DOCUMENT v3.19.1
Organization, Basis of Presentation and Significant Accounting Policies - Reconciliation of Cash, Cash Equivalents, and Restricted Cash (Details) - USD ($)
$ in Thousands
Feb. 28, 2019
Aug. 31, 2018
Feb. 28, 2018
Aug. 31, 2017
Cash and Cash Equivalents [Line Items]        
Cash and cash equivalents $ 367,307 $ 450,617 $ 219,273 $ 181,379
Total cash and cash equivalents and restricted cash 457,362 543,940 291,166 272,272
Restricted cash included in other current assets        
Cash and Cash Equivalents [Line Items]        
Restricted cash 89,371 90,193 68,600 83,561
Restricted cash included in other assets        
Cash and Cash Equivalents [Line Items]        
Restricted cash $ 684 $ 3,130 $ 3,293 $ 7,332