XML 26 R85.htm IDEA: XBRL DOCUMENT v3.19.3
Commitments and contingencies - Additional Information (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2019
Sep. 30, 2018
Sep. 30, 2019
Sep. 30, 2018
Commitments and Contingencies Disclosure [Abstract]        
Total principal amount of loans repurchased or indemnified $ 1,165 $ 2,322 $ 4,675 $ 4,984