XML 50 R39.htm IDEA: XBRL DOCUMENT v3.10.0.1
Income taxes (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended 12 Months Ended
Sep. 30, 2018
Sep. 30, 2017
Sep. 30, 2018
Sep. 30, 2017
Dec. 31, 2017
Effective tax rates reconciliation          
Annual income tax rate (as a percent)     41.60% 36.10%  
Statutory federal income tax rate (as a percent)     21.00%   35.00%
Annual effective rate relates to the required valuation allowance (as a percent)     19.20%    
Income tax expense $ 3,229 $ 1,758 $ 4,490 $ 6,280  
Discrete tax benefit     $ 500    
U.S.          
Effective tax rates reconciliation          
Annual income tax rate (as a percent)     22.40%