Net Income (Loss) per Share Available to Common Stockholders - Reconciliation of the Numerator and Denominator Used in Calculation of Basic and Diluted Net Income (Loss) per Share Available to Common Stockholders (Details) - USD ($) $ / shares in Units, shares 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) | $ (1,318,000) | $ 26,344,000 | $ 285,000 | $ (10,715,000) | $ (17,480,000) | $ (12,525,000) | $ (15,160,000) | $ (8,365,000) | $ 14,596,000 | $ (53,530,000) | $ (20,606,000) | ||||||
Less: Deemed dividend on convertible preferred stock | (5,603,000) | ||||||||||||||||
Less: Allocation of undistributed earnings to participating securities | (3,279,000) | 0 | 0 | ||||||||||||||
Net income (loss) available to common stockholders, basic | 5,714,000 | (53,530,000) | (20,606,000) | ||||||||||||||
Adjustments to undistributed earnings allocated to participating securities | 96,000 | ||||||||||||||||
Net income (loss) available to common stockholders, diluted | $ 5,810,000 | $ (53,530,000) | $ (20,606,000) | ||||||||||||||
Denominator | |||||||||||||||||
Weighted average shares used in computing basic net income (loss) per share available to common stockholders | 7,619 | 6,021 | 5,890 | ||||||||||||||
Effect of dilutive stock options | 360 | ||||||||||||||||
Effect of dilutive warrants | 1 | ||||||||||||||||
Weighted average shares outstanding used for diluted net income (loss) per share available to common stockholders | 7,980 | 6,021 | 5,890 | ||||||||||||||
Basic net income (loss) per share of common stock | $ (0.16) | $ 2.06 | $ 0.02 | $ (2.37) | $ (2.89) | $ (2.08) | $ (2.52) | $ (1.40) | $ 0.75 | $ (8.89) | $ (3.50) | ||||||
Diluted net income (loss) per share of common stock | $ (0.16) | [1] | $ 1.98 | [1] | $ 0.02 | [1] | $ (2.37) | [1] | $ (2.89) | $ (2.08) | $ (2.52) | $ (1.40) | $ 0.73 | $ (8.89) | $ (3.50) | ||
|
X | ||||||||||
- Definition The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
X | ||||||||||
- Definition The amount of net income (loss) for the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
X | ||||||||||
- Definition The portion of profit or loss for the period, net of income taxes, which is attributable to the parent. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
X | ||||||||||
- Definition Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities; of income (loss) available to common shareholders. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
X | ||||||||||
- Definition Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities, and addition from assumption of issuance of common shares for dilutive potential common shares; of income (loss) available to common shareholders. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
X | ||||||||||
- References No definition available.
|
X | ||||||||||
- Definition Amount of undistributed earnings (loss) allocated to participating securities for the basic earnings (loss) per share or per unit calculation under the two-class method. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
X | ||||||||||
- Definition Amount of undistributed earnings (loss) allocated to participating securities for the diluted earnings (loss) per share or per unit calculation under the two-class method. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
X | ||||||||||
- Definition The average number of shares or units issued and outstanding that are used in calculating diluted EPS or earnings per unit (EPU), determined based on the timing of issuance of shares or units in the period. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
X | ||||||||||
- References No definition available.
|
X | ||||||||||
- Definition Number of [basic] shares or units, after adjustment for contingently issuable shares or units and other shares or units not deemed outstanding, determined by relating the portion of time within a reporting period that common shares or units have been outstanding to the total time in that period. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
X | ||||||||||
- Definition Deemed dividends on convertible preferred stock. No definition available.
|
X | ||||||||||
- Definition Incremental common shares attributable to dilutive effect of stock options. No definition available.
|
X | ||||||||||
- Definition Incremental common shares attributable to dilutive effect of warrants. No definition available.
|