Consolidated Statements of Comprehensive Income (Loss) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2019 |
Dec. 31, 2018 |
Dec. 31, 2017 |
|
| Statement Of Income And Comprehensive Income [Abstract] | |||
| Net income | $ 92,491 | $ 63,704 | $ 25,826 |
| Other comprehensive income (loss), net of tax | |||
| Net unrealized (loss) gain on available-for-sale securities | (110) | 64 | |
| Net unrealized gain on cash flow hedges | 462 | ||
| Net unrealized gain (loss) on foreign currency translation | 24 | (40) | 75 |
| Total other comprehensive income (loss), net of tax | 24 | (150) | 601 |
| Comprehensive income | $ 92,515 | $ 63,554 | $ 26,427 |