XML 72 R57.htm IDEA: XBRL DOCUMENT v3.8.0.1
Income taxes - Schedule of Components of Income (Loss) Before Income Taxes (Detail) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Income Tax Disclosure [Abstract]      
U.S. $ 39,559 $ 23,736 $ (2,670)
International 80 4,558 (9,108)
Income (loss) before income taxes $ 39,639 $ 28,294 $ (11,778)