XML 77 R63.htm IDEA: XBRL DOCUMENT v3.7.0.1
Income taxes - Provision for income taxes (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2017
Jun. 30, 2016
Jun. 30, 2017
Jun. 30, 2016
Income taxes        
Income tax (provision) benefit $ 451 $ (626) $ 618 $ (1,667)