Condensed Consolidated Statements of Convertible Preferred Stock, Preferred Stock and Stockholders’ Equity (Deficit) - USD ($) $ in Thousands | Total | Preferred Stock | Common Stock | Additional Paid-in Capital | Accumulated Other Comprehensive Loss | Accumulated Deficit | Convertible Preferred Stock | Convertible Preferred Stock, Series B and C |
Beginning balance (in shares) at Dec. 31, 2017 | | | | | | | 65,833,096 | |
Beginning balance at Dec. 31, 2017 | | | | | | | $ 83,702 | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | | |
Issuance of Series B and Series C Preferred Stock, net of issuance costs (in shares) | | | | | | | | 25,482,199 |
Issuance of Series B and Series C Preferred Stock, net of issuance costs | | | | | | | | $ 82,076 |
Ending balance (in shares) at Mar. 31, 2018 | | | | | | | 91,315,295 | |
Ending balance at Mar. 31, 2018 | | | | | | | $ 165,778 | |
Beginning balance (in shares) at Dec. 31, 2017 | | 0 | 3,880,607 | | | | | |
Beginning balance at Dec. 31, 2017 | $ (54,723) | $ 0 | $ 4 | $ 1,708 | $ 0 | $ (56,435) | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Vesting of restricted common stock (in shares) | | | 31,557 | | | | | |
Vesting of restricted common stock | 11 | | | 11 | | | | |
Exercise of stock options and warrants (in shares) | | | 31,765 | | | | | |
Exercise of stock options and warrants | 35 | | | 35 | | | | |
Stock-based compensation expense | 652 | | | 652 | | | | |
Net loss | (10,500) | | | | | (10,500) | | |
Ending balance (in shares) at Mar. 31, 2018 | | 0 | 3,943,929 | | | | | |
Ending balance at Mar. 31, 2018 | (64,525) | $ 0 | $ 4 | 2,406 | 0 | (66,935) | | |
Beginning balance (in shares) at Dec. 31, 2017 | | | | | | | 65,833,096 | |
Beginning balance at Dec. 31, 2017 | | | | | | | $ 83,702 | |
Ending balance (in shares) at Sep. 30, 2018 | | | | | | | 0 | |
Ending balance at Sep. 30, 2018 | | | | | | | $ 0 | |
Beginning balance (in shares) at Dec. 31, 2017 | | 0 | 3,880,607 | | | | | |
Beginning balance at Dec. 31, 2017 | (54,723) | $ 0 | $ 4 | 1,708 | 0 | (56,435) | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Unrealized gain on investments | (38) | | | | | | | |
Net loss | (41,503) | | | | | | | |
Ending balance (in shares) at Sep. 30, 2018 | | 0 | 31,757,707 | | | | | |
Ending balance at Sep. 30, 2018 | 150,759 | $ 0 | $ 32 | 248,703 | (38) | (97,938) | | |
Beginning balance (in shares) at Mar. 31, 2018 | | | | | | | 91,315,295 | |
Beginning balance at Mar. 31, 2018 | | | | | | | $ 165,778 | |
Increase (Decrease) in Temporary Equity [Roll Forward] | | | | | | | | |
Conversion of preferred stock into common stock (in shares) | | | 22,386,677 | | | | (91,315,295) | |
Conversion of preferred stock into common stock | 165,778 | | $ 22 | 165,756 | | | $ (165,778) | |
Ending balance (in shares) at Jun. 30, 2018 | | | | | | | 0 | |
Ending balance at Jun. 30, 2018 | | | | | | | $ 0 | |
Beginning balance (in shares) at Mar. 31, 2018 | | 0 | 3,943,929 | | | | | |
Beginning balance at Mar. 31, 2018 | (64,525) | $ 0 | $ 4 | 2,406 | 0 | (66,935) | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Proceeds from Initial Public Offering, net of underwriting costs and commissions (in shares) | | | 5,312,500 | | | | | |
Proceeds from Initial Public Offering, net of underwriting costs and commissions | 75,798 | | $ 5 | 75,793 | | | | |
Reclassification of warrant liability | 879 | | | 879 | | | | |
Vesting of restricted common stock (in shares) | | | 31,572 | | | | | |
Vesting of restricted common stock | 11 | | | 11 | | | | |
Exercise of stock options and warrants (in shares) | | | 51,408 | | | | | |
Exercise of stock options and warrants | 5 | | $ 1 | 4 | | | | |
Stock-based compensation expense | 2,247 | | | 2,247 | | | | |
Net loss | (15,146) | | | | | (15,146) | | |
Ending balance (in shares) at Jun. 30, 2018 | | 0 | 31,726,086 | | | | | |
Ending balance at Jun. 30, 2018 | 165,047 | $ 0 | $ 32 | 247,096 | 0 | (82,081) | | |
Ending balance (in shares) at Sep. 30, 2018 | | | | | | | 0 | |
Ending balance at Sep. 30, 2018 | | | | | | | $ 0 | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Vesting of restricted common stock (in shares) | | | 25,816 | | | | | |
Vesting of restricted common stock | 7 | | | 7 | | | | |
Exercise of stock options and warrants (in shares) | | | 5,805 | | | | | |
Exercise of stock options and warrants | 5 | | | 5 | | | | |
Stock-based compensation expense | 1,595 | | | 1,595 | | | | |
Unrealized gain on investments | (38) | | | | (38) | | | |
Net loss | (15,857) | | | | | (15,857) | | |
Ending balance (in shares) at Sep. 30, 2018 | | 0 | 31,757,707 | | | | | |
Ending balance at Sep. 30, 2018 | 150,759 | $ 0 | $ 32 | 248,703 | (38) | (97,938) | | |
Beginning balance (in shares) at Dec. 31, 2018 | | | | | | | 0 | |
Beginning balance at Dec. 31, 2018 | | | | | | | $ 0 | |
Ending balance (in shares) at Mar. 31, 2019 | | | | | | | 0 | |
Ending balance at Mar. 31, 2019 | | | | | | | $ 0 | |
Beginning balance (in shares) at Dec. 31, 2018 | | | 31,825,769 | | | | | |
Beginning balance at Dec. 31, 2018 | 136,949 | | $ 32 | 250,316 | (18) | (113,381) | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Vesting of restricted common stock (in shares) | | | 23,345 | | | | | |
Vesting of restricted common stock | 7 | | | 7 | | | | |
Exercise of stock options and warrants (in shares) | | | 181,521 | | | | | |
Exercise of stock options and warrants | 257 | | | 257 | | | | |
Stock-based compensation expense | 1,953 | | | 1,953 | | | | |
Unrealized gain on investments | 16 | | | | 16 | | | |
Net loss | (20,299) | | | | | (20,299) | | |
Ending balance (in shares) at Mar. 31, 2019 | | | 32,030,635 | | | | | |
Ending balance at Mar. 31, 2019 | 118,883 | | $ 32 | 252,533 | (2) | (133,680) | | |
Beginning balance (in shares) at Dec. 31, 2018 | | | | | | | 0 | |
Beginning balance at Dec. 31, 2018 | | | | | | | $ 0 | |
Ending balance (in shares) at Sep. 30, 2019 | | | | | | | 0 | |
Ending balance at Sep. 30, 2019 | | | | | | | $ 0 | |
Beginning balance (in shares) at Dec. 31, 2018 | | | 31,825,769 | | | | | |
Beginning balance at Dec. 31, 2018 | $ 136,949 | | $ 32 | 250,316 | (18) | (113,381) | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Exercise of stock options and warrants (in shares) | 195,533 | | | | | | | |
Unrealized gain on investments | $ 18 | | | | | | | |
Net loss | (62,873) | | | | | | | |
Ending balance (in shares) at Sep. 30, 2019 | | | 32,072,030 | | | | | |
Ending balance at Sep. 30, 2019 | 80,546 | | $ 32 | 256,768 | 0 | (176,254) | | |
Beginning balance (in shares) at Mar. 31, 2019 | | | | | | | 0 | |
Beginning balance at Mar. 31, 2019 | | | | | | | $ 0 | |
Ending balance (in shares) at Jun. 30, 2019 | | | | | | | 0 | |
Ending balance at Jun. 30, 2019 | | | | | | | $ 0 | |
Beginning balance (in shares) at Mar. 31, 2019 | | | 32,030,635 | | | | | |
Beginning balance at Mar. 31, 2019 | 118,883 | | $ 32 | 252,533 | (2) | (133,680) | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Vesting of restricted common stock (in shares) | | | 13,692 | | | | | |
Vesting of restricted common stock | 7 | | | 7 | | | | |
Exercise of stock options and warrants (in shares) | | | 1,379 | | | | | |
Exercise of stock options and warrants | 1 | | | 1 | | | | |
Stock-based compensation expense | 2,135 | | | 2,135 | | | | |
Unrealized gain on investments | 3 | | | | 3 | | | |
Net loss | (20,941) | | | | | (20,941) | | |
Ending balance (in shares) at Jun. 30, 2019 | | | 32,045,706 | | | | | |
Ending balance at Jun. 30, 2019 | 100,088 | | $ 32 | 254,676 | 1 | (154,621) | | |
Ending balance (in shares) at Sep. 30, 2019 | | | | | | | 0 | |
Ending balance at Sep. 30, 2019 | | | | | | | $ 0 | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Vesting of restricted common stock (in shares) | | | 13,691 | | | | | |
Vesting of restricted common stock | 7 | | | 7 | | | | |
Exercise of stock options and warrants (in shares) | | | 12,633 | | | | | |
Exercise of stock options and warrants | 23 | | | 23 | | | | |
Stock-based compensation expense | 2,062 | | | 2,062 | | | | |
Unrealized gain on investments | (1) | | | | (1) | | | |
Net loss | (21,633) | | | | | (21,633) | | |
Ending balance (in shares) at Sep. 30, 2019 | | | 32,072,030 | | | | | |
Ending balance at Sep. 30, 2019 | $ 80,546 | | $ 32 | $ 256,768 | $ 0 | $ (176,254) | | |