INCOME TAX (Narrative) (Details) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Aug. 31, 2026 |
Aug. 31, 2025 |
|
| Income Tax Contingency [Line Items] | ||
| Accrued interest and penalties | $ 4,400 | $ 5,800 |
| Reasonably possible decrease of unrecognized tax benefits | 9,500 | |
| Qualifying Advanced Energy Project Tax Credit, income tax benefit | 145,400 | |
| IRC Section 50(c)(1) - basis adjustment | 30,525 | |
| State | ||
| Income Tax Contingency [Line Items] | ||
| Net operating losses carry forward | 313,700 | |
| Foreign | ||
| Income Tax Contingency [Line Items] | ||
| Net operating losses carry forward | $ 899,300 |