Consolidated Statements of Stockholders' Equity - USD ($) $ in Thousands | Common Stock | Additional Paid-In Capital | Accumulated Other Comprehensive (Loss) Income | Other Accumulated Deficit | Total |
Balance, beginning of period at Dec. 31, 2017 | $ 4 | $ 514,002 | $ (76) | $ (305,850) | $ 208,080 |
Balance, beginning of period (in shares) at Dec. 31, 2017 | 44,507,960 | | | | |
Statement of Stockholders' Equity (Deficit) | | | | | |
Issuance of common stock from public offering, net of issuance costs of $0.1 million | | 48,493 | | | 48,493 |
Issuance of common stock from public offering, net of issuance costs of $0.1 million (in shares) | 1,429,205 | | | | |
Issuance of common stock for repayment of notes payable | | 9,530 | | | 9,530 |
Issuance of common stock for repayment of notes payable (in shares) | 305,909 | | | | |
Issuance of common stock for asset purchase agreement | | 1,942 | | | 1,942 |
Issuance of common stock for asset purchase agreement (in shares) | 56,099 | | | | |
Exercise of stock options | | 4,328 | | | 4,328 |
Exercise of stock options (in shares) | 305,408 | | | | |
Vesting of restricted common stock units and awards | | 652 | | | 652 |
Vesting of restricted common stock units and awards (in shares) | 107,114 | | | | |
Stock-based compensation expense | | 5,878 | | | 5,878 |
Unrealized gain on marketable securities | | | 24 | | 24 |
Net loss | | | | (30,939) | (30,939) |
Balance, end of period at Mar. 31, 2018 | $ 4 | 584,825 | (52) | (337,263) | 247,514 |
Balance, end of period (in shares) at Mar. 31, 2018 | 46,711,695 | | | | |
Balance, beginning of period at Dec. 31, 2017 | $ 4 | 514,002 | (76) | (305,850) | 208,080 |
Balance, beginning of period (in shares) at Dec. 31, 2017 | 44,507,960 | | | | |
Statement of Stockholders' Equity (Deficit) | | | | | |
Net loss | | | | | (69,661) |
Balance, end of period at Jun. 30, 2018 | $ 5 | 607,310 | 1 | (375,986) | 231,330 |
Balance, end of period (in shares) at Jun. 30, 2018 | 47,352,753 | | | | |
Statement of Stockholders' Equity (Deficit) | | | | | |
Cumulative effect adjustment for adoption of new accounting guidance | | | | (474) | (474) |
Balance, beginning of period at Mar. 31, 2018 | $ 4 | 584,825 | (52) | (337,263) | 247,514 |
Balance, beginning of period (in shares) at Mar. 31, 2018 | 46,711,695 | | | | |
Statement of Stockholders' Equity (Deficit) | | | | | |
Issuance of common stock for repayment of notes payable | $ 1 | 12,500 | | | 12,501 |
Issuance of common stock for repayment of notes payable (in shares) | 330,617 | | | | |
Exercise of stock options | | 2,597 | | | 2,597 |
Exercise of stock options (in shares) | 192,687 | | | | |
Vesting of restricted common stock units and awards | | 677 | | | 677 |
Vesting of restricted common stock units and awards (in shares) | 103,481 | | | | |
Purchase of common stock under benefit plan | | 362 | | | 362 |
Purchase of common stock under benefit plan (in shares) | 14,273 | | | | |
Stock-based compensation expense | | 6,349 | | | 6,349 |
Unrealized gain on marketable securities | | | 53 | | 53 |
Net loss | | | | (38,723) | (38,723) |
Balance, end of period at Jun. 30, 2018 | $ 5 | 607,310 | 1 | (375,986) | 231,330 |
Balance, end of period (in shares) at Jun. 30, 2018 | 47,352,753 | | | | |
Balance, beginning of period at Dec. 31, 2018 | $ 5 | 652,464 | (29) | (416,278) | 236,162 |
Balance, beginning of period (in shares) at Dec. 31, 2018 | 48,758,951 | | | | |
Statement of Stockholders' Equity (Deficit) | | | | | |
Exercise of stock options | | 1,533 | | | 1,533 |
Exercise of stock options (in shares) | 146,171 | | | | |
Vesting of restricted common stock units and awards | | 410 | | | 410 |
Vesting of restricted common stock units and awards (in shares) | 18,000 | | | | |
Stock-based compensation expense | | 7,445 | | | 7,445 |
Unrealized gain on marketable securities | | | 58 | | 58 |
Net loss | | | | (29,249) | (29,249) |
Balance, end of period at Mar. 31, 2019 | $ 5 | 661,852 | 29 | (444,724) | 217,162 |
Balance, end of period (in shares) at Mar. 31, 2019 | 48,923,122 | | | | |
Balance, beginning of period at Dec. 31, 2018 | $ 5 | 652,464 | (29) | (416,278) | $ 236,162 |
Balance, beginning of period (in shares) at Dec. 31, 2018 | 48,758,951 | | | | |
Statement of Stockholders' Equity (Deficit) | | | | | |
Exercise of stock options (in shares) | | | | | 423,430 |
Net loss | | | | | $ (63,035) |
Balance, end of period at Jun. 30, 2019 | $ 5 | 671,522 | 45 | (478,510) | 193,062 |
Balance, end of period (in shares) at Jun. 30, 2019 | 49,241,093 | | | | |
Statement of Stockholders' Equity (Deficit) | | | | | |
Cumulative effect adjustment for adoption of new accounting guidance | | | | 803 | 803 |
Balance, beginning of period at Mar. 31, 2019 | $ 5 | 661,852 | 29 | (444,724) | 217,162 |
Balance, beginning of period (in shares) at Mar. 31, 2019 | 48,923,122 | | | | |
Statement of Stockholders' Equity (Deficit) | | | | | |
Exercise of stock options | | 2,894 | | | 2,894 |
Exercise of stock options (in shares) | 277,259 | | | | |
Vesting of restricted common stock units and awards | | 410 | | | 410 |
Vesting of restricted common stock units and awards (in shares) | 24,486 | | | | |
Purchase of common stock under benefit plan | | 283 | | | 283 |
Purchase of common stock under benefit plan (in shares) | 16,226 | | | | |
Stock-based compensation expense | | 6,083 | | | 6,083 |
Unrealized gain on marketable securities | | | 16 | | 16 |
Net loss | | | | (33,786) | (33,786) |
Balance, end of period at Jun. 30, 2019 | $ 5 | $ 671,522 | $ 45 | $ (478,510) | $ 193,062 |
Balance, end of period (in shares) at Jun. 30, 2019 | 49,241,093 | | | | |