Quarterly report pursuant to Section 13 or 15(d)

Summary of Significant Accounting Policies - Accounts Receivable (Details)

v3.10.0.1
Summary of Significant Accounting Policies - Accounts Receivable (Details) - USD ($)
$ in Thousands
6 Months Ended 12 Months Ended
Jun. 30, 2018
Jun. 30, 2017
Dec. 31, 2016
Changes in the Allowance for Doubtful Accounts [Roll Forward]      
Allowance for doubtful accounts, beginning of period $ 3,315 $ 7,836  
Charges to costs and expenses 303 15  
Account write-offs and other (159) (3,945)  
Allowance for doubtful accounts, end of period $ 3,459 $ 3,906 $ 7,836
Minimum      
Changes in the Allowance for Doubtful Accounts [Roll Forward]      
Accounts receivable retainage 5.00%    
Maximum      
Changes in the Allowance for Doubtful Accounts [Roll Forward]      
Accounts receivable retainage 10.00%    
Accounts receivable      
Changes in the Allowance for Doubtful Accounts [Roll Forward]      
Allowance for doubtful accounts receivable, period increase     $ 2,394