v3.25.1
Commitments and contingencies - Commitments - Additional Information (Details) - USD ($)
$ in Thousands
3 Months Ended 12 Months Ended
Mar. 31, 2025
Mar. 31, 2024
Dec. 31, 2023
Dec. 31, 2024
Commitments and Contingencies Disclosure [Line Items]        
Loans And Leases Receivable Gross Carrying Amount $ 37,675,070     $ 37,522,995
FDIC deposit insurance expense 10,035 $ 23,887    
FDIC Special Assessment        
Commitments and Contingencies Disclosure [Line Items]        
FDIC Indemnification Asset   20,400,000 $ 16,300,000  
FDIC deposit insurance expense   14,300 71,400  
FDIC deposit insurance expense net of tax   $ 9,100 $ 45,300  
Commitments to extend credit        
Commitments and Contingencies Disclosure [Line Items]        
Reserve of potential losses associated with unfunded loan commitments 14,000     15,000
Noncredit commitment        
Commitments and Contingencies Disclosure [Line Items]        
Investments 2,000     2,000
BVI | Retail and commerical loans        
Commitments and Contingencies Disclosure [Line Items]        
Loans And Leases Receivable Gross Carrying Amount 196,000     196,000
Insured or guaranteed by the U.S. Government or its agencies | Commercial Loans        
Commitments and Contingencies Disclosure [Line Items]        
Loans And Leases Receivable Gross Carrying Amount 86,500     87,400
Insured or guaranteed by the U.S. Government or its agencies | Residential mortgage loans        
Commitments and Contingencies Disclosure [Line Items]        
Loans And Leases Receivable Gross Carrying Amount 2,200,000     2,100,000
PR Government direct exposure        
Commitments and Contingencies Disclosure [Line Items]        
Total concentration of risk 362,236     336,000
Outstanding concentration of risk $ 362,236     336,000
Exposure Municipal Loans And Securities 81.00%      
PR Government direct exposure | Loans        
Commitments and Contingencies Disclosure [Line Items]        
Outstanding concentration of risk $ 351,111     323,000
PR Government direct exposure | Securities Investment        
Commitments and Contingencies Disclosure [Line Items]        
Outstanding concentration of risk 11,125     13,000
PR Government Indirect Exposure        
Commitments and Contingencies Disclosure [Line Items]        
Outstanding concentration of risk 216,000     220,000
Loans and Leases Receivable, Consumer, Mortgage with PRHA 172,000     176,000
PR Government Indirect Exposure | PR Housing Bonds backed by second mortgage loans        
Commitments and Contingencies Disclosure [Line Items]        
Outstanding concentration of risk 37,000     38,000
USVI Government Direct Exposure | From USVI Government And Public Corporations        
Commitments and Contingencies Disclosure [Line Items]        
Total concentration of risk $ 28,000     $ 28,000