Condensed Consolidated Statements of Comprehensive Income (Loss) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2018
Sep. 30, 2017
Sep. 30, 2018
Sep. 30, 2017
Condensed Consolidated Statements of Comprehensive Income (Loss)        
Net income $ 20,590 $ 7,850 $ 49,789 $ 14,617
Other comprehensive income, net of tax        
Net unrealized income on available-for-sale securities 22 13 34 59
Net unrealized income on cash flow hedges   128   323
Net unrealized gain (loss) on foreign currency translation (6) (16) (35) 58
Total other comprehensive income (loss), net of tax 16 125 (1) 440
Comprehensive income $ 20,606 $ 7,975 $ 49,788 $ 15,057