| Revenue - Allowance for Doubtful Accounts (Details) - USD ($) $ in Thousands | 6 Months Ended | |
|---|---|---|
| Jun. 30, 2018 | Jun. 30, 2017 | |
| Allowance for Doubtful Accounts Receivable [Roll Forward] | ||
| Beginning balance | $ 8,680 | $ 10,091 | 
| (Recovery) additions charged to statements of operations | (802) | 2,372 | 
| Less: Bad debt write offs | (3,723) | 1,858 | 
| Ending balance | $ 4,155 | $ 14,321 | 
| X | ||||||||||
| 
- Definition Allowance for Doubtful Accounts Receivable, Write-offs (Recoveries) No definition available. 
 | 
| X | ||||||||||
| 
- Definition For an unclassified balance sheet, a valuation allowance for receivables due a company that are expected to be uncollectible. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of expense related to write-down of receivables to the amount expected to be collected. Includes, but is not limited to, accounts receivable and notes receivable. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 |