v3.8.0.1
Income taxes - Income tax by jurisdiction (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
U.S. federal:      
Current $ (6) $ 55 $ 27
Deferred (2,787) 345 319
Total U.S. federal (2,793) 400 346
U.S. state and local:      
Current 503 69 134
Deferred 212 (42) 1
Total U.S. state and local $ 715 $ 27 $ 135