INCOME TAXES (Details - Valuation Allowance) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Dec. 31, 2023 |
Dec. 31, 2022 |
|
| Income Tax Disclosure [Abstract] | ||
| Deferred tax asset valuation allowance, beginning balance | $ 31,368 | $ 26,842 |
| Additions | 4,536 | 4,636 |
| Deductions | 166 | 110 |
| Deferred tax asset valuation allowance, ending balance | $ 35,738 | $ 31,368 |