<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:us-gaap="http://fasb.org/us-gaap/2024"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="ccne-20250109.xsd" xlink:type="simple"/>
    <context id="duration_2025-01-09_to_2025-01-09">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000736772</identifier>
        </entity>
        <period>
            <startDate>2025-01-09</startDate>
            <endDate>2025-01-09</endDate>
        </period>
    </context>
    <context id="duration_2025-01-09_to_2025-01-09_us-gaap-StatementClassOfStockAxis_us-gaap-CommonStockMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000736772</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-09</startDate>
            <endDate>2025-01-09</endDate>
        </period>
    </context>
    <context id="duration_2025-01-09_to_2025-01-09_us-gaap-StatementClassOfStockAxis_us-gaap-SeriesAPreferredStockMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000736772</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">us-gaap:SeriesAPreferredStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-09</startDate>
            <endDate>2025-01-09</endDate>
        </period>
    </context>
    <dei:EntityRegistrantName
      contextRef="duration_2025-01-09_to_2025-01-09"
      id="Hidden_dei_EntityRegistrantName">CNB FINANCIAL CORP/PA</dei:EntityRegistrantName>
    <dei:Security12bTitle
      contextRef="duration_2025-01-09_to_2025-01-09_us-gaap-StatementClassOfStockAxis_us-gaap-SeriesAPreferredStockMember"
      id="Hidden_dei_Security12bTitle_duration_2025-01-09_to_2025-01-09_us-gaap-StatementClassOfStockAxis_us-gaap-SeriesAPreferredStockMember">Depositary Shares (each representing a 1/40th interest in a share of 7.25% Series A Non-Cumulative, Perpetual Preferred Stock)</dei:Security12bTitle>
    <dei:AmendmentFlag contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-364">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="duration_2025-01-09_to_2025-01-09"
      id="Hidden_dei_EntityCentralIndexKey">0000736772</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-391">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-392">2025-01-09</dei:DocumentPeriodEndDate>
    <dei:EntityIncorporationStateCountryCode contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-393">PA</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-394">001-39472</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-395">25-1450605</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-396">1 South Second Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-397">PO Box 42</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-398">Clearfield</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-399">PA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-400">16830</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-401">(814)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-402">765-9621</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-403">true</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-404">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-405">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-406">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="duration_2025-01-09_to_2025-01-09_us-gaap-StatementClassOfStockAxis_us-gaap-CommonStockMember"
      id="ixv-407">Common Stock, no par value</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="duration_2025-01-09_to_2025-01-09_us-gaap-StatementClassOfStockAxis_us-gaap-CommonStockMember"
      id="ixv-408">CCNE</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="duration_2025-01-09_to_2025-01-09_us-gaap-StatementClassOfStockAxis_us-gaap-CommonStockMember"
      id="ixv-409">NASDAQ</dei:SecurityExchangeName>
    <dei:TradingSymbol
      contextRef="duration_2025-01-09_to_2025-01-09_us-gaap-StatementClassOfStockAxis_us-gaap-SeriesAPreferredStockMember"
      id="ixv-410">CCNEP</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="duration_2025-01-09_to_2025-01-09_us-gaap-StatementClassOfStockAxis_us-gaap-SeriesAPreferredStockMember"
      id="ixv-411">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="duration_2025-01-09_to_2025-01-09" id="ixv-412">false</dei:EntityEmergingGrowthCompany>
</xbrl>
