Condensed Consolidated Statements of Redeemable Convertible Preferred Stock and Stockholders' Equity - USD ($) $ in Thousands | Total | Common Stock | Treasury Stock | Additional Paid-In Capital | Accumulated Deficit | Accumulated Other Comprehensive Income (Loss) | Series 1 Preferred Stock |
Balance, beginning of period (in shares) at Dec. 31, 2017 | | (33,962,640) | (677,463) | | | | |
Balance, beginning of period at Dec. 31, 2017 | $ 84,648 | $ 340 | $ (5,056) | $ 411,922 | $ (322,512) | $ (46) | |
Increase (Decrease) in Stockholders' Equity | | | | | | | |
Share-based compensation | 3,605 | | | 3,605 | | | |
Exercise of stock options (in shares) | | 313,258 | | | | | |
Exercise of stock options | 828 | $ 3 | | 825 | | | |
Issuance of common stock upon vesting of restricted stock units (in shares) | | 12,658 | | | | | |
Comprehensive loss | (22,898) | | | | (22,840) | (58) | |
Balance, end of period (in shares) at Mar. 31, 2018 | | (34,288,556) | (677,463) | | | | |
Balance, end of period at Mar. 31, 2018 | 66,183 | $ 343 | $ (5,056) | 416,352 | (345,352) | (104) | |
Balance, beginning of period (in shares) at Dec. 31, 2017 | | (33,962,640) | (677,463) | | | | |
Balance, beginning of period at Dec. 31, 2017 | 84,648 | $ 340 | $ (5,056) | 411,922 | (322,512) | (46) | |
Increase (Decrease) in Stockholders' Equity | | | | | | | |
Comprehensive loss | (70,805) | | | | | | |
Balance, end of period (in shares) at Sep. 30, 2018 | | (44,028,622) | (677,463) | | | | |
Balance, end of period at Sep. 30, 2018 | 92,457 | $ 440 | $ (5,056) | 490,436 | (393,328) | (35) | |
Balance, beginning of period (in shares) at Mar. 31, 2018 | | (34,288,556) | (677,463) | | | | |
Balance, beginning of period at Mar. 31, 2018 | 66,183 | $ 343 | $ (5,056) | 416,352 | (345,352) | (104) | |
Increase (Decrease) in Stockholders' Equity | | | | | | | |
Share-based compensation | 3,572 | | | 3,572 | | | |
Exercise of stock options (in shares) | | 521,348 | | | | | |
Exercise of stock options | 2,158 | $ 5 | | 2,153 | | | |
Issuance of common stock - Employee Stock Purchase Plan (in shares) | | 13,779 | | | | | |
Issuance of common stock - Employee Stock Purchase Plan | 99 | | | 99 | | | |
Issuance of common stock in open market transactions, net of issuance costs (in shares) | | 9,200,000 | | | | | |
Issuance of common stock in open market transactions, net of issuance costs | 64,665 | $ 92 | | 64,573 | | | |
Comprehensive loss | (24,139) | | | | (24,175) | 36 | |
Balance, end of period (in shares) at Jun. 30, 2018 | | (44,023,683) | (677,463) | | | | |
Balance, end of period at Jun. 30, 2018 | 112,538 | $ 440 | $ (5,056) | 486,749 | (369,527) | (68) | |
Increase (Decrease) in Stockholders' Equity | | | | | | | |
Share-based compensation | 3,677 | | | 3,677 | | | |
Exercise of stock options (in shares) | | 2,786 | | | | | |
Exercise of stock options | 10 | | | 10 | | | |
Issuance of common stock upon vesting of restricted stock units (in shares) | | 2,153 | | | | | |
Comprehensive loss | (23,768) | | | | (23,801) | 33 | |
Balance, end of period (in shares) at Sep. 30, 2018 | | (44,028,622) | (677,463) | | | | |
Balance, end of period at Sep. 30, 2018 | 92,457 | $ 440 | $ (5,056) | 490,436 | (393,328) | (35) | |
Preferred stock, beginning balance at Dec. 31, 2018 | 0 | | | | | | |
Balance, beginning of period (in shares) at Dec. 31, 2018 | | (44,242,059) | (677,463) | | | | |
Balance, beginning of period at Dec. 31, 2018 | 68,478 | $ 442 | $ (5,056) | 493,784 | (420,548) | (144) | |
Increase (Decrease) in Stockholders' Equity | | | | | | | |
Share-based compensation | 2,136 | | | 2,136 | | | |
Exercise of stock options (in shares) | | 27,647 | | | | | |
Exercise of stock options | 70 | | | 70 | | | |
Issuance of common stock upon vesting of restricted stock units (in shares) | | 22,702 | | | | | |
Issuance of common stock in open market transactions, net of issuance costs (in shares) | | 1,350,652 | | | | | |
Issuance of common stock in open market transactions, net of issuance costs | 4,625 | $ 14 | | 4,611 | | | |
Comprehensive loss | (24,449) | | | | (24,528) | 79 | |
Balance, end of period (in shares) at Mar. 31, 2019 | | (45,643,060) | (677,463) | | | | |
Balance, end of period at Mar. 31, 2019 | 50,860 | $ 456 | $ (5,056) | 500,601 | (445,076) | (65) | |
Preferred stock, beginning balance at Dec. 31, 2018 | 0 | | | | | | |
Preferred stock, ending balance (in shares) at Sep. 30, 2019 | | | | | | | 541,500 |
Preferred stock, ending balance at Sep. 30, 2019 | 21,608 | | | | | | $ 21,608 |
Balance, beginning of period (in shares) at Dec. 31, 2018 | | (44,242,059) | (677,463) | | | | |
Balance, beginning of period at Dec. 31, 2018 | 68,478 | $ 442 | $ (5,056) | 493,784 | (420,548) | (144) | |
Increase (Decrease) in Stockholders' Equity | | | | | | | |
Comprehensive loss | (83,489) | | | | | | |
Balance, end of period (in shares) at Sep. 30, 2019 | | (50,290,029) | (677,463) | | | | |
Balance, end of period at Sep. 30, 2019 | 1,229 | $ 503 | $ (5,056) | 509,963 | (504,044) | (137) | |
Preferred stock, ending balance (in shares) at Jun. 30, 2019 | | | | | | | 0 |
Preferred stock, ending balance at Jun. 30, 2019 | | | | | | | $ 0 |
Balance, beginning of period (in shares) at Mar. 31, 2019 | | (45,643,060) | (677,463) | | | | |
Balance, beginning of period at Mar. 31, 2019 | 50,860 | $ 456 | $ (5,056) | 500,601 | (445,076) | (65) | |
Increase (Decrease) in Stockholders' Equity | | | | | | | |
Share-based compensation | 1,996 | | | 1,996 | | | |
Exercise of stock options (in shares) | | 2,206 | | | | | |
Exercise of stock options | 6 | | | 6 | | | |
Issuance of common stock - Employee Stock Purchase Plan (in shares) | | 40,000 | | | | | |
Issuance of common stock - Employee Stock Purchase Plan | 71 | $ 1 | | 70 | | | |
Issuance of common stock upon vesting of restricted stock units (in shares) | | 5,857 | | | | | |
Issuance of common stock in open market transactions, net of issuance costs (in shares) | | 1,240,503 | | | | | |
Issuance of common stock in open market transactions, net of issuance costs | 4,352 | $ 12 | | 4,340 | | | |
Comprehensive loss | (26,977) | | | | (26,936) | (41) | |
Balance, end of period (in shares) at Jun. 30, 2019 | | (46,931,626) | (677,463) | | | | |
Balance, end of period at Jun. 30, 2019 | 30,308 | $ 469 | $ (5,056) | 507,013 | (472,012) | (106) | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | |
Issuance of redeemable preferred stock in public offering, net (in shares) | | | | | | | 575,000 |
Issuance of redeemable preferred stock in public offering, net | 0 | | | | | | $ 22,944 |
Conversion of redeemable preferred stock into common stock (in shares) | | 3,350,000 | | | | | 33,500 |
Conversion of redeemable preferred stock into common stock | (1,336) | $ (34) | | (1,302) | | | $ 1,336 |
Preferred stock, ending balance (in shares) at Sep. 30, 2019 | | | | | | | 541,500 |
Preferred stock, ending balance at Sep. 30, 2019 | 21,608 | | | | | | $ 21,608 |
Increase (Decrease) in Stockholders' Equity | | | | | | | |
Share-based compensation | 1,648 | | | 1,648 | | | |
Issuance of common stock upon vesting of restricted stock units (in shares) | | 8,403 | | | | | |
Issuance of redeemable convertible preferred stock in public offering, net | 0 | | | | | | $ 22,944 |
Conversion of redeemable preferred stock into common stock (in shares) | | 3,350,000 | | | | | 33,500 |
Conversion of redeemable convertible preferred stock into common stock | 1,336 | $ 34 | | 1,302 | | | $ (1,336) |
Comprehensive loss | (32,063) | | | | (32,032) | (31) | |
Balance, end of period (in shares) at Sep. 30, 2019 | | (50,290,029) | (677,463) | | | | |
Balance, end of period at Sep. 30, 2019 | $ 1,229 | $ 503 | $ (5,056) | $ 509,963 | $ (504,044) | $ (137) | |