Quarterly report pursuant to Section 13 or 15(d)

Organization and Summary of Significant Accounting Policies (Details)

v3.7.0.1
Organization and Summary of Significant Accounting Policies (Details)
$ / shares in Units, $ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2017
USD ($)
segment
Jun. 30, 2017
USD ($)
segment
$ / shares
Jun. 30, 2016
USD ($)
Accounting Policies [Abstract]      
Number of operating segments | segment 3 3  
New Accounting Pronouncements or Change in Accounting Principle [Line Items]      
Net cash provided by (used in) operating activities   $ (27,936) $ 11,832
Net cash provided by (used in) financing activities   (1,244) (441)
Share-based compensation, tax expense $ 4 $ 214  
Loss per share from share-based compensation tax expense (dollars per share) | $ / shares   $ 0.01  
Tax payments made on behalf of employees from withheld, vested shares of common stock   $ 884 146
Accounting Standards Update 2016-09      
New Accounting Pronouncements or Change in Accounting Principle [Line Items]      
Net cash provided by (used in) operating activities     (146)
Net cash provided by (used in) financing activities     $ 146