INCOME TAXES (Details - Valuation Allowance) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
|
| Income Tax Disclosure [Abstract] | ||
| Deferred tax asset valuation allowance, beginning balance | $ 26,842 | $ 28,627 |
| Additions | 4,636 | 6,125 |
| Deductions | 110 | 7,910 |
| Deferred tax asset valuation allowance, ending balance | $ 31,368 | $ 26,842 |