XML 54 R42.htm IDEA: XBRL DOCUMENT v3.5.0.2
Income taxes (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2016
Jun. 30, 2015
Jun. 30, 2016
Jun. 30, 2015
Income Tax Disclosure [Abstract]        
Income tax expense (benefit) $ (319) $ 5,065 $ (2,389) $ 14,366