13. INCOME TAXES (Details - Deferred valuation allowance) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2019
Dec. 31, 2018
Income Tax Disclosure [Abstract]    
Deferred tax asset valuation allowance, beginning balance $ 22,276 $ 19,497
Additions 3,123 3,035
Deductions 522 256
Deferred tax asset valuation allowance, ending balance $ 24,877 $ 22,276