XML 101 R82.htm IDEA: XBRL DOCUMENT
v3.20.4

Investment Securities (Gross Realized Gains and Losses by Category) (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018
Investments, Debt and Equity Securities [Abstract] |  |  |
Sale Price | $ 320,984 | $ 680,466 | $ 17,837
Book Value at Sale | 316,256 | 672,192 | 17,837
Gross Gains | 4,728 | 8,274 | 0
Gross Losses | 0 | 0 | 0
FNMA and FHLMC [Member] | Collateralized Mortgage Backed Securities [Member] |  |  |
Investments, Debt and Equity Securities [Abstract] |  |  |
Sale Price | 229,571 | 451,081 |
Book Value at Sale | 227,213 | 447,305 |
Gross Gains | 2,358 | 3,776 |
Gross Losses | 0 | 0 |
GNMA [Member] | Collateralized Mortgage Backed Securities [Member] |  |  |
Investments, Debt and Equity Securities [Abstract] |  |  |
Sale Price | 91,413 | 229,385 | 17,837
Book Value at Sale | 89,043 | 224,887 | 17,837
Gross Gains | 2,370 | 4,498 | 0
Gross Losses | $ 0 | $ 0 | $ 0

X
- References No definition available. + Details
Name: | ofg_AvailableForSaleSecuritiesSoldBookValue
Namespace Prefix: | ofg_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition This item represents the gross profit realized on the sale of debt or equity securities categorized neither as held-to-maturity nor trading securities. + References No definition available. + Details
Name: | us-gaap_AvailableForSaleSecuritiesGrossRealizedGains
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition This item represents the gross loss realized on the sale of debt or equity securities categorized neither as held-to-maturity nor trading securities. + References No definition available. + Details
Name: | us-gaap_AvailableForSaleSecuritiesGrossRealizedLosses
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash inflow associated with the sale of debt and equity securities classified as available-for-sale securities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 11 -URI http://asc.fasb.org/extlink&oid=121553693&loc=d3e26853-111562 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 12 -Subparagraph (a),(b) -URI http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585 + Details
Name: | us-gaap_ProceedsFromSaleOfAvailableForSaleSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_InvestmentTypeAxis=ofg_FnmaAndFhlmcMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_MortgageBackedSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InvestmentTypeAxis=us-gaap_GovernmentNationalMortgageAssociationCertificatesAndObligationsGNMAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |