XML 158 R114.htm IDEA: XBRL DOCUMENT v3.22.0.1
Commitments and contingencies - Narrative (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Commitments and Contingencies Disclosure [Abstract]      
Floating interest rate loan commitments $ 2,260,000 $ 1,650,000  
Total principal amount of loans repurchased or indemnified $ 7,364 $ 9,171 $ 6,475