XML 135 R115.htm IDEA: XBRL DOCUMENT v3.20.1
Commitments and contingencies - Additional Information (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2019
Dec. 31, 2018
Dec. 31, 2017
Commitments and Contingencies Disclosure [Abstract]      
Total principal amount of loans repurchased or indemnified $ 6,475 $ 6,646 $ 4,704