Condensed Consolidated Statements of Stockholders' Equity (unaudited) - USD ($) shares in Thousands, $ in Thousands | Total | Common stock | Additional paid-in capital | Accumulated other comprehensive income (loss) | Accumulated deficit |
Beginning balance (in shares) at Dec. 31, 2021 | | 71,115 | | | |
Beginning balance at Dec. 31, 2021 | $ 374,277 | $ 711 | $ 4,096,402 | $ (2,911) | $ (3,719,925) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | |
Vesting of restricted stock units (in shares) | | 310 | | | |
Vesting of restricted stock units | 0 | $ 3 | (3) | | |
Exercise of stock options (in shares) | | 1 | | | |
Exercise of stock options | 1 | | 1 | | |
Stock-based compensation | 12,681 | | 12,681 | | |
Issuance of stock awards (in shares) | | 12 | | | |
Other comprehensive income (loss) | (1,548) | | | (1,548) | |
Net income (loss) | (122,152) | | | | (122,152) |
Ending balance, shares (in shares) at Mar. 31, 2022 | | 71,438 | | | |
Ending balance at Mar. 31, 2022 | 263,259 | $ 714 | 4,109,081 | (4,459) | (3,842,077) |
Beginning balance (in shares) at Dec. 31, 2021 | | 71,115 | | | |
Beginning balance at Dec. 31, 2021 | 374,277 | $ 711 | 4,096,402 | (2,911) | (3,719,925) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | |
Other comprehensive income (loss) | (1,505) | | | | |
Net income (loss) | (222,290) | | | | |
Ending balance, shares (in shares) at Jun. 30, 2022 | | 73,551 | | | |
Ending balance at Jun. 30, 2022 | 180,116 | $ 735 | 4,126,012 | (4,416) | (3,942,215) |
Beginning balance (in shares) at Mar. 31, 2022 | | 71,438 | | | |
Beginning balance at Mar. 31, 2022 | 263,259 | $ 714 | 4,109,081 | (4,459) | (3,842,077) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | |
Vesting of restricted stock units (in shares) | | 60 | | | |
Vesting of restricted stock units | 0 | $ 1 | (1) | | |
Exercise of stock options (in shares) | | 1 | | | |
Exercise of stock options | 1 | | 1 | | |
Issuance of common stock (in shares) | | 2,052 | | | |
Issuance of common stock | 8,043 | $ 20 | 8,023 | | |
Stock-based compensation | 8,908 | | 8,908 | | |
Other comprehensive income (loss) | 43 | | | 43 | |
Net income (loss) | (100,138) | | | | (100,138) |
Ending balance, shares (in shares) at Jun. 30, 2022 | | 73,551 | | | |
Ending balance at Jun. 30, 2022 | $ 180,116 | $ 735 | 4,126,012 | (4,416) | (3,942,215) |
Beginning balance (in shares) at Dec. 31, 2022 | 82,923 | 82,923 | | | |
Beginning balance at Dec. 31, 2022 | $ 196,343 | $ 830 | 4,186,086 | (4,070) | (3,986,503) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | |
Vesting of restricted stock units (in shares) | | 382 | | | |
Vesting of restricted stock units | (195) | $ 3 | (198) | | |
Exercise of stock options (in shares) | | 3 | | | |
Exercise of stock options | 7 | | 7 | | |
Purchase of common stock under ESPP (in shares) | | 62 | | | |
Purchase of common stock under employee stock purchase plan (ESPP) | 227 | $ 1 | 226 | | |
Issuance of common stock (in shares) | | 23,000 | | | |
Issuance of common stock | 130,291 | $ 230 | 130,061 | | |
Stock-based compensation | 5,843 | | 5,843 | | |
Other comprehensive income (loss) | 984 | | | 984 | |
Net income (loss) | 21,240 | | | | 21,240 |
Ending balance, shares (in shares) at Mar. 31, 2023 | | 106,370 | | | |
Ending balance at Mar. 31, 2023 | $ 354,740 | $ 1,064 | 4,322,025 | (3,086) | (3,965,263) |
Beginning balance (in shares) at Dec. 31, 2022 | 82,923 | 82,923 | | | |
Beginning balance at Dec. 31, 2022 | $ 196,343 | $ 830 | 4,186,086 | (4,070) | (3,986,503) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | |
Exercise of stock options (in shares) | 3 | | | | |
Other comprehensive income (loss) | $ 1,706 | | | | |
Net income (loss) | $ (51,668) | | | | |
Ending balance, shares (in shares) at Jun. 30, 2023 | 106,454 | 106,454 | | | |
Ending balance at Jun. 30, 2023 | $ 289,019 | $ 1,065 | 4,328,489 | (2,364) | (4,038,171) |
Beginning balance (in shares) at Mar. 31, 2023 | | 106,370 | | | |
Beginning balance at Mar. 31, 2023 | 354,740 | $ 1,064 | 4,322,025 | (3,086) | (3,965,263) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | |
Vesting of restricted stock units (in shares) | | 65 | | | |
Vesting of restricted stock units | 0 | $ 1 | (1) | | |
Exercise of stock options (in shares) | | 19 | | | |
Exercise of stock options | 77 | | 77 | | |
Stock-based compensation | 6,388 | | 6,388 | | |
Other comprehensive income (loss) | 722 | | | 722 | |
Net income (loss) | $ (72,908) | | | | (72,908) |
Ending balance, shares (in shares) at Jun. 30, 2023 | 106,454 | 106,454 | | | |
Ending balance at Jun. 30, 2023 | $ 289,019 | $ 1,065 | $ 4,328,489 | $ (2,364) | $ (4,038,171) |