Condensed Consolidated Statements of Redeemable Convertible Preferred Stock and Stockholders' Equity (Deficit) - USD ($) $ in Thousands | Total | Common Stock [Member] | Additional Paid-in Capital [Member] | Accumulated Deficit [Member] | Accumulated Other Comprehensive Income [Member] | Redeemable Convertible Preferred Stock [Member] |
Beginning balances at Dec. 31, 2017 | $ (93,515) | $ 10 | $ 55,204 | $ (148,808) | $ 79 | |
Beginning balance, Shares at Dec. 31, 2017 | | 9,582,791 | | | | |
Redeemable Convertible Preferred Stock, beginning balance at Dec. 31, 2017 | | | | | | $ 192,896 |
Redeemable convertible preferred stock, shares outstanding, beginning balance at Dec. 31, 2017 | | | | | | 142,288,292 |
Accretion of redeemable convertible preferred stock to redemption value | (185) | | (185) | | | $ 185 |
Unrealized gains on available-for-sale securities | (79) | | | | (79) | |
Stock-based compensation expense | 1,383 | | 1,383 | | | |
Net loss | (21,209) | | | (21,209) | | |
Redeemable Convertible Preferred Stock, ending balance at Mar. 31, 2018 | | | | | | $ 193,081 |
Redeemable convertible preferred stock, shares outstanding, ending balance at Mar. 31, 2018 | | | | | | 142,288,292 |
Ending balances at Mar. 31, 2018 | (113,605) | $ 10 | 56,402 | (170,017) | | |
Ending balance, shares at Mar. 31, 2018 | | 9,582,791 | | | | |
Beginning balances at Dec. 31, 2017 | (93,515) | $ 10 | 55,204 | (148,808) | 79 | |
Beginning balance, Shares at Dec. 31, 2017 | | 9,582,791 | | | | |
Redeemable Convertible Preferred Stock, beginning balance at Dec. 31, 2017 | | | | | | $ 192,896 |
Redeemable convertible preferred stock, shares outstanding, beginning balance at Dec. 31, 2017 | | | | | | 142,288,292 |
Accretion of redeemable convertible preferred stock to redemption value | (644) | | | | | |
Unrealized gains on available-for-sale securities | (156) | | | | | |
Net loss | (91,358) | | | | | |
Ending balances at Sep. 30, 2018 | 129,417 | $ 45 | 369,614 | (240,166) | (76) | |
Ending balance, shares at Sep. 30, 2018 | | 45,142,090 | | | | |
Beginning balances at Mar. 31, 2018 | (113,605) | $ 10 | 56,402 | (170,017) | | |
Beginning balance, Shares at Mar. 31, 2018 | | 9,582,791 | | | | |
Redeemable Convertible Preferred Stock, beginning balance at Mar. 31, 2018 | | | | | | $ 193,081 |
Redeemable convertible preferred stock, shares outstanding, beginning balance at Mar. 31, 2018 | | | | | | 142,288,292 |
Accretion of redeemable convertible preferred stock to redemption value | (459) | | (459) | | | $ 459 |
Stock-based compensation expense | 2,875 | | 2,875 | | | |
Net loss | (27,503) | | | (27,503) | | |
Exercise of stock options | 278 | | 278 | | | |
Exercise of stock options, Shares | | 49,459 | | | | |
Forfeited restricted common stock, Shares | | (311) | | | | |
Redeemable Convertible Preferred Stock, ending balance at Jun. 30, 2018 | | | | | | $ 193,540 |
Redeemable convertible preferred stock, shares outstanding, ending balance at Jun. 30, 2018 | | | | | | 142,288,292 |
Ending balances at Jun. 30, 2018 | (138,414) | $ 10 | 59,096 | (197,520) | | |
Ending balance, shares at Jun. 30, 2018 | | 9,631,939 | | | | |
Unrealized gains on available-for-sale securities | (76) | | | | (76) | |
Stock-based compensation expense | 1,434 | | 1,434 | | | |
Net loss | (42,646) | | | (42,646) | | |
Issuance of common stock in connection with public offering, net of underwriting discounts and commissions and offering costs | 113,192 | $ 9 | 113,183 | | | |
Issuance of common stock in connection with public offering, net of underwriting discounts and commissions and offering costs(shares) | | 9,714,371 | | | | |
Conversion of redeemable convertible preferred stock to common stock | 193,540 | $ 26 | 193,514 | | | $ (193,540) |
Conversion of redeemable convertible preferred stock to common stock, Shares | | 25,612,109 | | | | (142,288,292) |
Issuance of common stock in full settlement of contingent consideration anti-dilution liability | 2,387 | | 2,387 | | | |
Issuance of common stock in full settlement of contingent consideration anti-dilution liability(shares) | | 183,619 | | | | |
Issuance of common stock due to the aggregation of fractional shares in connection with reverse stock split(shares) | | 52 | | | | |
Ending balances at Sep. 30, 2018 | 129,417 | $ 45 | 369,614 | (240,166) | (76) | |
Ending balance, shares at Sep. 30, 2018 | | 45,142,090 | | | | |
Beginning balances at Dec. 31, 2018 | $ 125,295 | $ 45 | 371,257 | (246,203) | 196 | |
Beginning balance, Shares at Dec. 31, 2018 | | 45,139,955 | | | | |
Redeemable convertible preferred stock, shares outstanding, beginning balance at Dec. 31, 2018 | 0 | | | | | |
Unrealized gains on available-for-sale securities | $ 155 | | | | 155 | |
Stock-based compensation expense | 1,959 | | 1,959 | | | |
Net loss | (33,198) | | | (33,198) | | |
Exercise of stock options | 897 | | 897 | | | |
Exercise of stock options, Shares | | 154,484 | | | | |
Ending balances at Mar. 31, 2019 | 95,108 | $ 45 | 374,113 | (279,401) | 351 | |
Ending balance, shares at Mar. 31, 2019 | | 45,294,439 | | | | |
Beginning balances at Dec. 31, 2018 | $ 125,295 | $ 45 | 371,257 | (246,203) | 196 | |
Beginning balance, Shares at Dec. 31, 2018 | | 45,139,955 | | | | |
Redeemable convertible preferred stock, shares outstanding, beginning balance at Dec. 31, 2018 | 0 | | | | | |
Unrealized gains on available-for-sale securities | $ 483 | | | | | |
Net loss | (82,257) | | | | | |
Issuance of common stock in connection with a former employee letter agreement (Note 9) | $ 847 | | | | | |
Redeemable convertible preferred stock, shares outstanding, ending balance at Sep. 30, 2019 | 0 | | | | | |
Ending balances at Sep. 30, 2019 | $ 181,573 | $ 60 | 509,294 | (328,460) | 679 | |
Ending balance, shares at Sep. 30, 2019 | | 60,020,725 | | | | |
Beginning balances at Mar. 31, 2019 | 95,108 | $ 45 | 374,113 | (279,401) | 351 | |
Beginning balance, Shares at Mar. 31, 2019 | | 45,294,439 | | | | |
Unrealized gains on available-for-sale securities | 219 | | | | 219 | |
Stock-based compensation expense | 2,703 | | 2,703 | | | |
Net loss | (27,832) | | | (27,832) | | |
Exercise of stock options | 519 | | 519 | | | |
Exercise of stock options, Shares | | 66,917 | | | | |
Issuance of common stock in connection with private placement, net of placement agent fees and offering costs | 44,134 | $ 6 | 44,128 | | | |
Issuance of common stock in connection with private placement, net of placement agent fees and offering costs,shares | | 5,582,940 | | | | |
Issuance of common stock in connection with a former employee letter agreement (Note 9) | 847 | | 847 | | | |
Issuance of common stock in connection with a former employee letter agreement (Note 9), Shares | | 67,406 | | | | |
Forfeited restricted common stock | (1) | | (1) | | | |
Forfeited restricted common stock, Shares | | (1,334) | | | | |
Ending balances at Jun. 30, 2019 | 115,697 | $ 51 | 422,309 | (307,233) | 570 | |
Ending balance, shares at Jun. 30, 2019 | | 51,010,368 | | | | |
Unrealized gains on available-for-sale securities | 109 | | | | 109 | |
Stock-based compensation expense | 2,899 | | 2,899 | | | |
Net loss | (21,227) | | | (21,227) | | |
Exercise of stock options | 84 | | 84 | | | |
Exercise of stock options, Shares | | 10,806 | | | | |
Issuance of common stock in connection with public offering, net of underwriting discounts and commissions and offering costs | $ 84,011 | $ 9 | 84,002 | | | |
Issuance of common stock in connection with public offering, net of underwriting discounts and commissions and offering costs(shares) | | 9,000,000 | | | | |
Forfeited restricted common stock, Shares | | (449) | | | | |
Redeemable convertible preferred stock, shares outstanding, ending balance at Sep. 30, 2019 | 0 | | | | | |
Ending balances at Sep. 30, 2019 | $ 181,573 | $ 60 | $ 509,294 | $ (328,460) | $ 679 | |
Ending balance, shares at Sep. 30, 2019 | | 60,020,725 | | | | |