XML 82 R47.htm IDEA: XBRL DOCUMENT v3.21.2
Organization, Basis of Presentation and Significant Accounting Policies Reconciliation of Cash, Cash Equivalents, and Restricted Cash (Details) - USD ($)
$ in Thousands
Aug. 31, 2021
Aug. 31, 2020
Aug. 31, 2019
Aug. 31, 2018
Cash and Cash Equivalents [Line Items]        
Cash and cash equivalents $ 413,159 $ 140,874 $ 211,179  
Total cash and cash equivalents and restricted cash 542,484 216,993 299,675 $ 543,940
Restricted cash included in other current assets        
Cash and Cash Equivalents [Line Items]        
Restricted cash $ 129,325 $ 76,119 $ 88,496