Income Taxes - Summary of provision for income tax expense (Details 1) - USD ($) $ in Thousands  | 
12 Months Ended | |
|---|---|---|
Dec. 31, 2017  | 
Dec. 31, 2016  | 
|
| Current | ||
| Federal | $ 0 | $ 0 | 
| State and local | 38 | 62 | 
| Foreign | 580 | 260 | 
| Total current income tax provision | 618 | 322 | 
| Deferred | ||
| Federal | 0 | 7,654 | 
| State and local | 0 | 2,394 | 
| Foreign | (18) | 0 | 
| Total deferred tax provision | (18) | 10,048 | 
| Total income tax provision | $ 600 | $ 10,370 | 
| X | ||||||||||
- Definition Amount of current federal tax expense (benefit) pertaining to income (loss) from continuing operations. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Amount of current foreign income tax expense (benefit) pertaining to income (loss) from continuing operations. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Amount of current income tax expense (benefit) pertaining to taxable income (loss) from continuing operations. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Definition Amount of current state and local tax expense (benefit) pertaining to income (loss) from continuing operations. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Amount of deferred federal income tax expense (benefit) pertaining to income (loss) from continuing operations. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Amount of deferred foreign income tax expense (benefit) pertaining to income (loss) from continuing operations. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Definition Amount of deferred state and local tax expense (benefit) pertaining to income (loss) from continuing operations. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  |