CONSOLIDATED BALANCE SHEETS (UNAUDITED) (Parenthetical) - USD ($) $ in Thousands  | 
Jun. 30, 2018  | 
Dec. 31, 2017  | 
|---|---|---|
| Current assets | ||
| Allowance for doubtful accounts | $ 32,245 | $ 32,755 | 
| X | ||||||||||
- Definition A valuation allowance for trade and other receivables due to an Entity within one year (or the normal operating cycle, whichever is longer) that are expected to be uncollectible. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- References No definition available. 
  |