Annual report pursuant to Section 13 and 15(d)

Organization and Summary of Significant Accounting Policies (Details)

v3.6.0.2
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, 2016
Sep. 30, 2016
Jun. 30, 2016
Mar. 31, 2016
Dec. 31, 2015
Sep. 30, 2015
Jun. 30, 2015
Mar. 31, 2015
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Numerator:                      
Net income (loss) used for basic earnings per share                 $ 5,135 $ (11,279) $ (2,403)
Less change in fair value of warrant liability                 825 (4,512) 1,083
Net income (loss) used for diluted earnings per share                 $ 4,310 $ (11,279) $ (3,486)
Denominator:                      
Basic weighted-average outstanding common shares                 20,744 20,053 17,057
Effect of dilutive potential common shares resulting from options                 141 0 3
Effect of dilutive potential common shares resulting from warrants                 574 0 0
Weighted-average shares outstanding—diluted                 21,459 20,053 17,060
Net income (loss) per common share:                      
Basic (in dollars per share) $ (0.11) $ (0.12) $ 0.58 $ (0.09) $ (0.11) $ (0.09) $ (0.11) $ (0.24) $ 0.25 $ (0.56) $ (0.14)
Diluted (in dollars per share) $ (0.15) $ (0.12) $ 0.55 $ (0.09) $ (0.11) $ (0.09) $ (0.11) $ (0.24) $ 0.20 $ (0.56) $ (0.20)