Annual report pursuant to Section 13 and 15(d)

Earnings (Loss) Per Share (Details)

v3.6.0.2
Earnings (Loss) Per Share (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
3 Months Ended 12 Months Ended
Dec. 31, 2016
Sep. 30, 2016
Jun. 30, 2016
Mar. 31, 2016
Dec. 31, 2015
[1]
Sep. 30, 2015
Jun. 30, 2015
Mar. 31, 2015
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Earnings Per Share [Abstract]                      
Net income (loss) available to stockholders $ (18,098) $ (8,800) $ (20,370) $ (35,537) $ (52,534) $ 41,936 $ 36,410 $ 26,939 $ (82,805) $ 52,751 $ 38,457
less: preferred stock dividends                 0 15 59
Net income (loss) available to common stockholders                 $ (82,805) $ 52,736 $ 38,398
Weighted average shares outstanding, basic                 70,739 69,772 68,985
Dilutive common stock equivalents                 0 942 388
Weighted average shares outstanding, diluted                 70,739 70,714 69,373
Earnings (loss) per share, basic $ (0.25) $ (0.12) $ (0.29) $ (0.51) $ (0.75) $ 0.60 $ 0.52 $ 0.39 $ (1.17) $ 0.76 $ 0.56
Earnings (loss) per share, diluted $ (0.25) $ (0.12) $ (0.29) $ (0.51) $ (0.75) $ 0.58 $ 0.50 $ 0.38 $ (1.17) $ 0.75 $ 0.55
Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount                 28    
[1] During the three months ended December 31, 2015, we recognized a goodwill impairment loss of $39,028 related to our California refining reporting unit (Note 12).