Schedule II - Valuation and Qualifying Accounts (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
---|---|---|---|
Aug. 31, 2018 |
Aug. 31, 2017 |
Aug. 31, 2016 |
|
Allowance for doubtful accounts | |||
Valuation and Qualifying Accounts Disclosure [Line Items] | |||
Balance at beginning of period | $ 2,280 | $ 2,315 | $ 2,496 |
Charges to cost and expenses | 323 | 126 | 131 |
Deductions | (17) | (161) | (312) |
Balance at end of period | 2,586 | 2,280 | 2,315 |
Deferred tax valuation allowance | |||
Valuation and Qualifying Accounts Disclosure [Line Items] | |||
Balance at beginning of period | 67,348 | 83,891 | 75,278 |
Charges to cost and expenses | 0 | 690 | 8,613 |
Deductions | (50,864) | (17,233) | 0 |
Balance at end of period | $ 16,484 | $ 67,348 | $ 83,891 |