XML 38 R24.htm IDEA: XBRL DOCUMENT v3.7.0.1
Nature of business (Details) - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2017
Dec. 31, 2016
Nature of business    
Cash, cash equivalents, and investments $ 57,918 $ 80,897
Deficit accumulated during the development stage $ 261,781 $ 235,323
Substantial doubt about the ability to continue as a going concern false