Quarterly report pursuant to Section 13 or 15(d)

Condensed Consolidated Financial Statements Detail - Reconciliation of Numerator and Denominator Used in Calculation of Basic and Diluted Net Income (Loss) Per Share Available to Common Stockholders (Details)

v3.8.0.1
Condensed Consolidated Financial Statements Detail - Reconciliation of Numerator and Denominator Used in Calculation of Basic and Diluted Net Income (Loss) Per Share Available to Common Stockholders (Details) - USD ($)
shares in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2017
Sep. 30, 2016
Sep. 30, 2017
Sep. 30, 2016
Numerator        
Net income (loss) $ 26,344,000 $ (12,525,000) $ 15,915,000 $ (36,050,000)
Less: Deemed dividend on convertible preferred stock     (5,603,000)  
Less: Allocation of undistributed earnings to participating securities (10,306,000) 0 (3,703,000) 0
Net income (loss) available to common stockholders, basic 16,038,000 (12,525,000) 6,609,000 (36,050,000)
Adjustments to undistributed earnings allocated to participating securities 380,000   60,000  
Net income (loss) available to common stockholders, diluted $ 16,418,000 $ (12,525,000) $ 6,669,000 $ (36,050,000)
Denominator        
Weighted average shares used in computing basic net income (loss) per share available to common stockholders 7,786 6,029 7,424 6,010
Effect of dilutive stock options 489   193  
Weighted average shares outstanding used for diluted net income (loss) per share available to common stockholders 8,275 6,029 7,617 6,010