v3.26.1
Fair value measurement - Schedule of Gains and Losses (Realized and Unrealized) Included in Earnings (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2026
Jun. 30, 2025
Fair Value, Measured on Recurring Basis, Gain (Loss) Included in Earnings [Line Items]        
Total gains (losses) included in earnings $ 238 $ 1,959 $ 2,880 $ 5,535
Changes in unrealized gains (losses) relating to assets still held at reporting date 2,005 356 1,551 (961)
Location, Statement of Income, Balance [Axis]: us-gaap:ProvisionForLoanLeaseAndOtherLosses        
Fair Value, Measured on Recurring Basis, Gain (Loss) Included in Earnings [Line Items]        
Total gains (losses) included in earnings   0   0
Changes in unrealized gains (losses) relating to assets still held at reporting date   0   0
Location, Statement of Income, Balance [Axis]: us-gaap:TradingGainsLosses        
Fair Value, Measured on Recurring Basis, Gain (Loss) Included in Earnings [Line Items]        
Total gains (losses) included in earnings 6 5 9 11
Changes in unrealized gains (losses) relating to assets still held at reporting date 0 8 19 16
Location, Statement of Income, Balance [Axis]: bpop:MortgageBankingActivities        
Fair Value, Measured on Recurring Basis, Gain (Loss) Included in Earnings [Line Items]        
Total gains (losses) included in earnings 232 1,954 2,871 5,524
Changes in unrealized gains (losses) relating to assets still held at reporting date $ 2,005 $ 348 $ 1,532 $ (977)