INCOME TAXES (Details - Unrecognized Tax Benefits) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
|
| Income Tax Disclosure [Abstract] | ||
| Unrecognized tax benefit, ending balance | $ 896 | $ 1,070 |
| Increase - prior year tax position | (1) | (480) |
| Increase - current year tax position | 151 | 306 |
| Unrecognized tax benefit, ending balance | $ 1,046 | $ 896 |