Consolidated Statements of Stockholders' Equity (Deficit) - USD ($) $ in Thousands | Total | Series A, B and C Redeemable Convertible Preferred Stock [Member] | Common Stock [Member] | Additional Paid-in Capital [Member] | Accumulated Other Comprehensive Income (Loss) [Member] | Accumulated Deficit [Member] |
Beginning balance at Dec. 31, 2017 | | $ 92,439 | | | | |
Beginning balance at Dec. 31, 2017 | $ (42,118) | | $ 2 | $ 3,091 | | $ (45,211) |
Beginning balance, shares at Dec. 31, 2017 | | 49,178,527 | | | | |
Beginning balance, shares at Dec. 31, 2017 | | | 2,351,247 | | | |
Vesting of restricted stock | | | $ 1 | (1) | | |
Vesting of restricted stock, shares | | | 269,032 | | | |
Stock-based compensation expense | 1,425 | | | 1,425 | | |
Net loss | (11,161) | | | | | (11,161) |
Ending balance at Mar. 31, 2018 | | $ 92,439 | | | | |
Ending balance at Mar. 31, 2018 | (51,854) | | $ 3 | 4,515 | | (56,372) |
Ending balance, shares at Mar. 31, 2018 | | 49,178,527 | | | | |
Ending balance, shares at Mar. 31, 2018 | | | 2,620,279 | | | |
Beginning balance at Dec. 31, 2017 | | $ 92,439 | | | | |
Beginning balance at Dec. 31, 2017 | (42,118) | | $ 2 | 3,091 | | (45,211) |
Beginning balance, shares at Dec. 31, 2017 | | 49,178,527 | | | | |
Beginning balance, shares at Dec. 31, 2017 | | | 2,351,247 | | | |
Accretion of Series C redeemable convertible preferred stock to redemption value | (88) | | | | | |
Net loss | (24,821) | | | | | |
Ending balance at Jun. 30, 2018 | 172,217 | | $ 33 | 242,216 | | (70,032) |
Ending balance, shares at Jun. 30, 2018 | | | 32,889,056 | | | |
Beginning balance at Dec. 31, 2017 | | $ 92,439 | | | | |
Beginning balance at Dec. 31, 2017 | (42,118) | | $ 2 | 3,091 | | (45,211) |
Beginning balance, shares at Dec. 31, 2017 | | 49,178,527 | | | | |
Beginning balance, shares at Dec. 31, 2017 | | | 2,351,247 | | | |
Net loss | (57,500) | | | | | |
Ending balance at Dec. 31, 2018 | 145,648 | | $ 33 | 248,349 | $ (8) | (102,726) |
Ending balance, shares at Dec. 31, 2018 | | | 33,305,033 | | | |
Beginning balance at Mar. 31, 2018 | | $ 92,439 | | | | |
Beginning balance at Mar. 31, 2018 | (51,854) | | $ 3 | 4,515 | | (56,372) |
Beginning balance, shares at Mar. 31, 2018 | | 49,178,527 | | | | |
Beginning balance, shares at Mar. 31, 2018 | | | 2,620,279 | | | |
Issuance of Series C redeemable convertible preferred stock, net of issuance cost of $88 | | $ 52,212 | | | | |
Issuance of Series C redeemable convertible preferred stock, net of issuance cost of $88, shares | | 11,223,102 | | | | |
Accretion of Series C redeemable convertible preferred stock to redemption value | (88) | $ 88 | | (88) | | |
Conversion of preferred stock to common stock | 144,739 | $ (144,739) | $ 23 | 144,716 | | |
Conversion of preferred stock to common stock, shares | | (60,401,629) | 23,375,405 | | | |
Issuance of common stock upon initial public offering net of underwriting discounts, commissions and offering costs | 90,029 | | $ 7 | 90,022 | | |
Issuance of common stock upon initial public offering net of underwriting discounts, commissions and offering costs, shares | | | 6,666,667 | | | |
Vesting of restricted stock, shares | | | 226,705 | | | |
Stock-based compensation expense | 3,051 | | | 3,051 | | |
Net loss | (13,660) | | | | | (13,660) |
Ending balance at Jun. 30, 2018 | 172,217 | | $ 33 | 242,216 | | (70,032) |
Ending balance, shares at Jun. 30, 2018 | | | 32,889,056 | | | |
Beginning balance at Dec. 31, 2018 | 145,648 | | $ 33 | 248,349 | (8) | (102,726) |
Beginning balance, shares at Dec. 31, 2018 | | | 33,305,033 | | | |
Vesting of restricted stock | | | $ 1 | (1) | | |
Vesting of restricted stock, shares | | | 197,715 | | | |
Issuance of common stock upon exercise of stock options | 563 | | | 563 | | |
Issuance of common stock upon exercise of stock options, shares | | | 79,227 | | | |
Stock-based compensation expense | 2,577 | | | 2,577 | | |
Unrealized loss on marketable securities | 49 | | | | 49 | |
Net loss | (14,834) | | | | | (14,834) |
Ending balance at Mar. 31, 2019 | 134,003 | | $ 34 | 251,488 | 41 | (117,560) |
Ending balance, shares at Mar. 31, 2019 | | | 33,581,975 | | | |
Beginning balance at Dec. 31, 2018 | 145,648 | | $ 33 | 248,349 | (8) | (102,726) |
Beginning balance, shares at Dec. 31, 2018 | | | 33,305,033 | | | |
Unrealized loss on marketable securities | 147 | | | | | |
Net loss | (32,542) | | | | | |
Ending balance at Jun. 30, 2019 | 179,556 | | $ 39 | 314,646 | 139 | (135,268) |
Ending balance, shares at Jun. 30, 2019 | | | 38,710,858 | | | |
Beginning balance at Mar. 31, 2019 | 134,003 | | $ 34 | 251,488 | 41 | (117,560) |
Beginning balance, shares at Mar. 31, 2019 | | | 33,581,975 | | | |
Issuance of common stock upon initial public offering net of underwriting discounts, commissions and offering costs | 60,276 | | $ 5 | 60,271 | | |
Issuance of common stock upon initial public offering net of underwriting discounts, commissions and offering costs, shares | | | 4,887,500 | | | |
Vesting of restricted stock, shares | | | 197,564 | | | |
Issuance of common stock upon exercise of stock options | 287 | | | 287 | | |
Issuance of common stock upon exercise of stock options, shares | | | 43,819 | | | |
Stock-based compensation expense | 2,600 | | | 2,600 | | |
Unrealized loss on marketable securities | 98 | | | | 98 | |
Net loss | (17,708) | | | | | (17,708) |
Ending balance at Jun. 30, 2019 | $ 179,556 | | $ 39 | $ 314,646 | $ 139 | $ (135,268) |
Ending balance, shares at Jun. 30, 2019 | | | 38,710,858 | | | |