Condensed Consolidated Statements of Convertible Preferred Stock, Preferred Stock and Stockholders’ Equity (Deficit) - USD ($) $ in Thousands | Total | Common Stock | Preferred 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 | | 3,880,607 | 0 | | | | | |
Beginning balance at Dec. 31, 2017 | $ (54,723) | $ 4 | $ 0 | $ 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 | | 3,943,929 | 0 | | | | | |
Ending balance at Mar. 31, 2018 | (64,525) | $ 4 | $ 0 | 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 Jun. 30, 2018 | | | | | | | 0 | |
Ending balance at Jun. 30, 2018 | | | | | | | $ 0 | |
Beginning balance (in shares) at Dec. 31, 2017 | | 3,880,607 | 0 | | | | | |
Beginning balance at Dec. 31, 2017 | (54,723) | $ 4 | $ 0 | 1,708 | 0 | (56,435) | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | |
Unrealized gain on investments | 0 | | | | | | | |
Net loss | (25,646) | | | | | | | |
Ending balance (in shares) at Jun. 30, 2018 | | 31,726,086 | 0 | | | | | |
Ending balance at Jun. 30, 2018 | 165,047 | $ 32 | $ 0 | 247,096 | 0 | (82,081) | | |
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 | | 3,943,929 | 0 | | | | | |
Beginning balance at Mar. 31, 2018 | (64,525) | $ 4 | $ 0 | 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 | | | | |
Unrealized gain on investments | 0 | | | | | | | |
Net loss | (15,146) | | | | | (15,146) | | |
Ending balance (in shares) at Jun. 30, 2018 | | 31,726,086 | 0 | | | | | |
Ending balance at Jun. 30, 2018 | 165,047 | $ 32 | $ 0 | 247,096 | 0 | (82,081) | | |
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 Jun. 30, 2019 | | | | | | | 0 | |
Ending balance at Jun. 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) | 182,900 | | | | | | | |
Unrealized gain on investments | $ 19 | | | | | | | |
Net loss | (41,240) | | | | | | | |
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) | | |
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) | | |