Consolidated Statements of Stockholders' Equity - USD ($) $ in Thousands |
Total |
2022 Sales Agreement [Member] |
Follow On Public Offering |
At The Market Offerings |
At The Market Offerings
2019 Sales Agreement [Member]
|
At The Market Offerings
2022 Sales Agreement [Member]
|
Common Stock |
Common Stock
Follow On Public Offering
|
Common Stock
At The Market Offerings
|
Common Stock
At The Market Offerings
2019 Sales Agreement [Member]
|
Common Stock
At The Market Offerings
2022 Sales Agreement [Member]
|
Additional Paid-In Capital |
Additional Paid-In Capital
Follow On Public Offering
|
Additional Paid-In Capital
At The Market Offerings
|
Additional Paid-In Capital
At The Market Offerings
2019 Sales Agreement [Member]
|
Additional Paid-In Capital
At The Market Offerings
2022 Sales Agreement [Member]
|
Accumulated Other Comprehensive Income |
Retained Earnings |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Beginning balance at Dec. 31, 2020 | $ 527,072 | $ 7 | $ 962,173 | $ 1 | $ (435,109) | |||||||||||||
| Beginning balance, shares at Dec. 31, 2020 | 66,234,056 | |||||||||||||||||
| Issuance of common stock | $ 648,315 | $ 45,255 | $ 648,315 | $ 45,255 | ||||||||||||||
| Issuance of common stock, shares | 4,758,620 | 641,709 | ||||||||||||||||
| Exercise of stock options | 41,094 | 41,094 | ||||||||||||||||
| Exercise of stock options, shares | 2,700,886 | |||||||||||||||||
| Vesting of restricted stock units, shares | 119,715 | |||||||||||||||||
| Issuance of shares under employee stock purchase plan | 2,024 | 2,024 | ||||||||||||||||
| Issuance of shares under employee stock purchase plan, shares | 30,897 | |||||||||||||||||
| Stock-based compensation | 47,009 | 47,009 | ||||||||||||||||
| Other comprehensive loss - unrealized gain (loss) on marketable securities | (2,126) | (2,126) | ||||||||||||||||
| Other comprehensive loss - equity method investment | (507) | (507) | ||||||||||||||||
| Net Income (Loss) | (267,892) | (267,892) | ||||||||||||||||
| Ending balance at Dec. 31, 2021 | 1,040,244 | $ 7 | 1,745,870 | (2,632) | (703,001) | |||||||||||||
| Ending balance, shares at Dec. 31, 2021 | 74,485,883 | |||||||||||||||||
| Issuance of common stock | $ 337,892 | $ 38,886 | $ 189,011 | $ 1 | $ 1 | $ 337,891 | $ 38,885 | $ 189,011 | ||||||||||
| Issuance of common stock, shares | 3,395,339 | 7,532,751 | 579,788 | 3,395,339 | ||||||||||||||
| Exercise of stock options | 14,517 | 14,517 | ||||||||||||||||
| Exercise of stock options, shares | 883,954 | |||||||||||||||||
| Vesting of restricted stock units, shares | 147,674 | |||||||||||||||||
| Issuance of shares under employee stock purchase plan | 2,649 | 2,649 | ||||||||||||||||
| Issuance of shares under employee stock purchase plan, shares | 77,618 | |||||||||||||||||
| Stock-based compensation | 91,400 | 91,400 | ||||||||||||||||
| Other comprehensive loss - unrealized gain (loss) on marketable securities | (1,637) | (1,637) | ||||||||||||||||
| Other comprehensive loss - equity method investment | (3,192) | (3,192) | ||||||||||||||||
| Net Income (Loss) | (474,186) | (474,186) | ||||||||||||||||
| Ending balance at Dec. 31, 2022 | $ 1,235,584 | $ 9 | 2,420,223 | (7,461) | (1,177,187) | |||||||||||||
| Ending balance, shares at Dec. 31, 2022 | 87,103,007 | 87,103,007 | ||||||||||||||||
| Issuance of common stock | $ 121,870 | $ 121,870 | ||||||||||||||||
| Issuance of common stock, shares | 4,122,824 | 4,122,824 | ||||||||||||||||
| Contingent consideration paid, shares | 567,045 | |||||||||||||||||
| Contingent consideration paid | $ 24,126 | 24,126 | ||||||||||||||||
| Exercise of stock options | $ 6,599 | 6,599 | ||||||||||||||||
| Exercise of stock options, shares | 385,130 | 385,130 | ||||||||||||||||
| Vesting of restricted stock units, shares | 677,055 | |||||||||||||||||
| Issuance of shares under employee stock purchase plan | $ 3,929 | 3,929 | ||||||||||||||||
| Issuance of shares under employee stock purchase plan, shares | 142,097 | |||||||||||||||||
| Stock-based compensation | 134,050 | 134,050 | ||||||||||||||||
| Other comprehensive loss - unrealized gain (loss) on marketable securities | 3,635 | 3,635 | ||||||||||||||||
| Other comprehensive loss - equity method investment | 1,568 | 1,568 | ||||||||||||||||
| Net Income (Loss) | (481,192) | (481,192) | ||||||||||||||||
| Ending balance at Dec. 31, 2023 | $ 1,050,169 | $ 9 | $ 2,710,797 | $ (2,258) | $ (1,658,379) | |||||||||||||
| Ending balance, shares at Dec. 31, 2023 | 92,997,158 | 92,997,158 |