Net Loss per Share (Details) - USD ($) $ / shares in Units, $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Sep. 30, 2018 |
Sep. 30, 2017 |
Sep. 30, 2018 |
Sep. 30, 2017 |
|
| Numerator: | ||||
| Net loss | $ (9,944) | $ (14,739) | $ (43,162) | $ (29,932) |
| Denominator: | ||||
| Weighted-average shares of common stock outstanding, basic and diluted (in shares) | 57,663,361 | 48,961,914 | 55,128,845 | 47,962,201 |
| Net loss per share, basic and diluted (in dollars per share) | $ (0.17) | $ (0.30) | $ (0.78) | $ (0.62) |
| Stock options (in shares) | ||||
| Potential dilutive securities that would have been anti-dilutive | ||||
| Potential dilutive securities that would have been anti-dilutive due to net loss (in shares) | 4,097,480 | 4,912,509 | 4,097,480 | 4,912,509 |
| Restricted stock units (in shares) | ||||
| Potential dilutive securities that would have been anti-dilutive | ||||
| Potential dilutive securities that would have been anti-dilutive due to net loss (in shares) | 1,217,161 | 1,435,180 | 1,217,161 | 1,435,180 |