Income Taxes (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2016
Sep. 30, 2015
Sep. 30, 2016
Sep. 30, 2015
Dec. 31, 2015
Income tax expense (benefit) $ 316 $ (314) $ (9,585) $ (666)  
Effective income tax rate (as a percent) 15.00% 36.00% 1487.00% 40.00%  
U.S. federal statutory rate (as a percent) 34.00%   34.00%    
State          
Net operating losses         $ 76,600
Tax credit carryforwards         2,800
Federal          
Net operating losses         78,100
Tax credit carryforwards         $ 6,700