Annual report pursuant to Section 13 and 15(d)

Organization and Summary of Significant Accounting Policies (Details)

v3.8.0.1
Organization and Summary of Significant Accounting Policies (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
3 Months Ended 12 Months Ended
Dec. 31, 2017
Sep. 30, 2017
Jun. 30, 2017
Mar. 31, 2017
Dec. 31, 2016
Sep. 30, 2016
Jun. 30, 2016
Mar. 31, 2016
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Numerator:                      
Net income (loss) used for basic earnings per share                 $ (14,307) $ 5,135 $ (11,279)
Less change in fair value of warrant liability                 619 825 (4,512)
Net income (loss) used for diluted earnings per share                 $ (14,926) $ 4,310 $ (11,279)
Denominator:                      
Basic weighted-average outstanding common shares                 21,203 20,744 20,053
Effect of dilutive potential common shares resulting from options                 0 141 0
Effect of dilutive potential common shares resulting from warrants                 25 574 0
Weighted-average shares outstanding—diluted                 21,228 21,459 20,053
Net income (loss) per common share:                      
Basic $ (0.17) $ (0.20) $ (0.16) $ (0.14) $ (0.11) $ (0.12) $ 0.58 $ (0.09) $ (0.67) $ 0.25 $ (0.56)
Diluted $ (0.17) $ (0.20) $ (0.17) $ (0.16) $ (0.15) $ (0.12) $ 0.55 $ (0.09) $ (0.7) $ 0.2 $ (0.56)