XML 130 R87.htm IDEA: XBRL DOCUMENT v3.23.3
INCOME TAX (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]      
Unrecognized Tax Benefits, Beginning Balance $ 29,747 $ 5,531 $ 8,652
Unrecognized Tax Benefits, Increase Resulting from Current Period Tax Positions 14,792 17,461 0
Unrecognized Tax Benefits, Decrease Resulting from Prior Period Tax Positions (374)    
Unrecognized Tax Benefits, Increase Resulting from Prior Period Tax Positions   6,755 0
Reductions due to lapse of statute of limitations 0 0 (3,121)
Unrecognized Tax Benefits, Ending Balance $ 44,165 $ 29,747 $ 5,531