XML 51 R36.htm IDEA: XBRL DOCUMENT v3.10.0.1
Organization, Basis of Presentation and Significant Accounting Policies - Reconciliation of Cash, Cash Equivalents, and Restricted Cash (Details) - USD ($)
$ in Thousands
Nov. 30, 2018
Aug. 31, 2018
Nov. 30, 2017
Aug. 31, 2017
Cash and Cash Equivalents [Line Items]        
Cash and cash equivalents $ 266,152 $ 450,617 $ 249,767 $ 181,379
Total Cash and cash equivalents and restricted cash 341,892 543,940 343,411 272,272
Restricted cash included in other current assets        
Cash and Cash Equivalents [Line Items]        
Restricted cash 72,687 90,193 88,525 83,561
Restricted cash included in other assets        
Cash and Cash Equivalents [Line Items]        
Restricted cash $ 3,053 $ 3,130 $ 5,119 $ 7,332