XML 107 R90.htm IDEA: XBRL DOCUMENT v3.23.3
INCOME TAXES (Reconciliation of Unrecognized Tax Benefits) (Details) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2023
Aug. 31, 2022
Aug. 31, 2021
Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward]      
Balance at beginning of fiscal year $ 5,041 $ 3,911 $ 4,573
Gross increase - tax positions in prior period 35 264 135
Gross decrease - tax positions in prior period 0 0 (306)
Additions based on tax positions related to the current year 143 1,356 333
Expiration of the statute of limitations for the assessment of taxes (474) (490) (824)
Balance at end of fiscal year $ 4,745 $ 5,041 $ 3,911