INCOME TAXES (Reconciliation of Unrecognized Tax Benefits) (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Aug. 31, 2026 |
Aug. 31, 2025 |
Aug. 31, 2024 |
|
| Unrecognized Tax Benefits [Roll Forward] | |||
| Balance at beginning of fiscal year | $ 2,668 | $ 4,294 | $ 4,745 |
| Gross increase - tax positions in prior period | 0 | 0 | 11 |
| Gross decrease - tax positions in prior period | (285) | (3) | 0 |
| Additions based on tax positions related to the current year | 1,374 | 0 | 7 |
| Expiration of the statute of limitations for the assessment of taxes | (2,464) | (1,623) | (469) |
| Balance at end of fiscal year | $ 1,293 | $ 2,668 | $ 4,294 |
| X | ||||||||||
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. No definition available.
|
| X | ||||||||||
- Definition Amount of unrecognized tax benefits. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of decrease in unrecognized tax benefits resulting from tax positions taken in prior period tax returns. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions that have been or will be taken in current period tax return. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions taken in prior period tax returns. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of decrease in unrecognized tax benefits resulting from lapses of applicable statutes of limitations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|