Condensed Consolidated Statements of Stockholders' Equity - USD ($) $ in Thousands | Total | Common Stock [Member] | Additional Paid-In Capital [Member] | Accumulated Other Comprehensive Loss [Member] | Accumulated Deficit [Member] |
Beginning Balance at Dec. 31, 2017 | $ 318,804 | $ 46 | $ 617,051 | $ (336) | $ (297,957) |
Beginning Balance, Shares at Dec. 31, 2017 | | 46,131,723 | | | |
Issuance of common stock upon equity offerings, net of issuance costs | 255,067 | $ 5 | 255,062 | | |
Issuance of common stock upon equity offerings, net of issuance costs, Shares | | 4,994,736 | | | |
Issuance of common stock upon exercise of stock options | 2,169 | $ 1 | 2,168 | | |
Common stock issued on exercise of stock options, Shares | | 259,150 | | | |
Issuance of common stock upon vesting of restricted share units, net of shares withheld for employee taxes | (5,404) | | (5,404) | | |
Issuance of common stock upon vesting of restricted share units, net of shares withheld for employee taxes, Shares | | 143,400 | | | |
Issuance of common stock pursuant to ESPP purchases | 784 | | 784 | | |
Issuance of common stock pursuant to ESPP purchases, Shares | | 36,748 | | | |
Vesting of restricted stock purchases | 105 | | 105 | | |
Vesting of restricted stock purchases, Shares | | 71,246 | | | |
Stock-based compensation expense | 7,784 | | 7,784 | | |
Net unrealized gain on marketable securities | 11 | | | 11 | |
Net loss | (41,556) | | | | (41,556) |
Ending Balance at Mar. 31, 2018 | 537,764 | $ 52 | 877,550 | (325) | (339,513) |
Ending Balance, Shares at Mar. 31, 2018 | | 51,637,003 | | | |
Beginning Balance at Dec. 31, 2017 | 318,804 | $ 46 | 617,051 | (336) | (297,957) |
Beginning Balance, Shares at Dec. 31, 2017 | | 46,131,723 | | | |
Net loss | (81,924) | | | | |
Ending Balance at Jun. 30, 2018 | 506,553 | $ 52 | 886,624 | (242) | (379,881) |
Ending Balance, Shares at Jun. 30, 2018 | | 51,867,094 | | | |
Beginning Balance at Mar. 31, 2018 | 537,764 | $ 52 | 877,550 | (325) | (339,513) |
Beginning Balance, Shares at Mar. 31, 2018 | | 51,637,003 | | | |
Offering cost related to the December 2017 follow-on offerings | 52 | | 52 | | |
Issuance of common stock upon exercise of stock options | 1,118 | | 1,118 | | |
Common stock issued on exercise of stock options, Shares | | 148,954 | | | |
Issuance of common stock upon vesting of restricted share units, net of shares withheld for employee taxes, Shares | | 10,123 | | | |
Vesting of restricted stock purchases | 104 | | 104 | | |
Vesting of restricted stock purchases, Shares | | 71,014 | | | |
Stock-based compensation expense | 7,800 | | 7,800 | | |
Net unrealized gain on marketable securities | 83 | | | 83 | |
Net loss | (40,368) | | | | (40,368) |
Ending Balance at Jun. 30, 2018 | 506,553 | $ 52 | 886,624 | (242) | (379,881) |
Ending Balance, Shares at Jun. 30, 2018 | | 51,867,094 | | | |
Beginning Balance at Dec. 31, 2018 | 572,799 | $ 56 | 1,044,941 | (48) | (472,150) |
Beginning Balance, Shares at Dec. 31, 2018 | | 55,640,299 | | | |
Issuance of common stock upon equity offerings, net of issuance costs | 21,246 | | 21,246 | | |
Issuance of common stock upon equity offerings, net of issuance costs, Shares | | 511,363 | | | |
Issuance of common stock upon exercise of stock options | 817 | | 817 | | |
Common stock issued on exercise of stock options, Shares | | 52,288 | | | |
Issuance of common stock upon vesting of restricted share units, net of shares withheld for employee taxes | (686) | | (686) | | |
Issuance of common stock upon vesting of restricted share units, net of shares withheld for employee taxes, Shares | | 78,155 | | | |
Issuance of common stock pursuant to ESPP purchases | 1,128 | | 1,128 | | |
Issuance of common stock pursuant to ESPP purchases, Shares | | 30,745 | | | |
Vesting of restricted stock purchases | 80 | | 80 | | |
Vesting of restricted stock purchases, Shares | | 24,195 | | | |
Stock-based compensation expense | 9,453 | | 9,453 | | |
Net unrealized gain on marketable securities | 624 | | | 624 | |
Net loss | (48,923) | | | | (48,923) |
Ending Balance at Mar. 31, 2019 | 556,538 | $ 56 | 1,076,979 | 576 | (521,073) |
Ending Balance, Shares at Mar. 31, 2019 | | 56,337,045 | | | |
Beginning Balance at Dec. 31, 2018 | $ 572,799 | $ 56 | 1,044,941 | (48) | (472,150) |
Beginning Balance, Shares at Dec. 31, 2018 | | 55,640,299 | | | |
Common stock issued on exercise of stock options, Shares | 175,801 | | | | |
Net loss | $ (106,244) | | | | |
Ending Balance at Jun. 30, 2019 | 704,190 | $ 60 | 1,281,333 | 1,191 | (578,394) |
Ending Balance, Shares at Jun. 30, 2019 | | 59,906,199 | | | |
Beginning Balance at Mar. 31, 2019 | 556,538 | $ 56 | 1,076,979 | 576 | (521,073) |
Beginning Balance, Shares at Mar. 31, 2019 | | 56,337,045 | | | |
Issuance of common stock upon equity offerings, net of issuance costs | 192,297 | $ 3 | 192,294 | | |
Issuance of common stock upon equity offerings, net of issuance costs, Shares | | 3,375,527 | | | |
Issuance of common stock upon exercise of stock options | 2,332 | $ 1 | 2,331 | | |
Common stock issued on exercise of stock options, Shares | | 123,513 | | | |
Issuance of common stock upon vesting of restricted share units, net of shares withheld for employee taxes | (1,297) | | (1,297) | | |
Issuance of common stock upon vesting of restricted share units, net of shares withheld for employee taxes, Shares | | 47,258 | | | |
Vesting of restricted stock purchases | 78 | | 78 | | |
Vesting of restricted stock purchases, Shares | | 22,856 | | | |
Stock-based compensation expense | 10,948 | | 10,948 | | |
Net unrealized gain on marketable securities | 615 | | | 615 | |
Net loss | (57,321) | | | | (57,321) |
Ending Balance at Jun. 30, 2019 | $ 704,190 | $ 60 | $ 1,281,333 | $ 1,191 | $ (578,394) |
Ending Balance, Shares at Jun. 30, 2019 | | 59,906,199 | | | |