Annual report pursuant to Section 13 and 15(d)

Income Taxes - Reconciliation of Income Tax Expense (Benefit) (Details)

v3.8.0.1
Income Taxes - Reconciliation of Income Tax Expense (Benefit) (Details) - USD ($)
$ in Thousands
3 Months Ended 12 Months Ended
Dec. 31, 2017
Sep. 30, 2017
Jun. 30, 2017
Mar. 31, 2017
Dec. 31, 2016
Sep. 30, 2016
Jun. 30, 2016
Mar. 31, 2016
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Income Tax Expense (Benefit), Continuing Operations, Income Tax Reconciliation [Abstract]                      
Amounts computed at statutory federal rate                 $ 20,031 $ 2,786 $ 13,198
State taxes net of federal benefit                 622 175 386
Contingent liabilities                 903 1,225 1,684
Stock-based compensation                 (4,019) 263 140
Research and development credits                 (2,821) (1,525) 304
Change in uncertain tax positions                 1,308 1,423 27,188
Rate change for changes in state law                 32,429 25 (5,756)
Change in valuation allowance                 (4,169) 6,283 (231,370)
Other                 391 (328) 2,111
Income tax expense from continuing operations $ 37,674 $ 3,645 $ 2,242 $ 1,114 $ 10,354 $ 160 $ (3,881) $ 3,694 $ 44,675 $ 10,327 $ (192,115)