Leases (Details 6) - USD ($) $ in Thousands  | 
6 Months Ended | |
|---|---|---|
Jun. 30, 2019  | 
Jun. 30, 2018  | 
|
| Leases [Abstract] | ||
| Operating cash flows for operating leases | $ 550 | |
| Operating cash flows for financing leases | 7 | |
| Financing cash flows for financing leases | $ 110 | $ 15,379 | 
| X | ||||||||||
- Definition Amount of interest paid on finance lease liability. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- Definition Amount of cash outflow for principal payment on finance lease. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Definition Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  |