XML 116 R105.htm IDEA: XBRL DOCUMENT
v3.22.4

Employee Benefit Plans - Defined Benefit Plans - Fair Value of Defined Benefit Plan Assets (Details) - C&F Bank - USD ($) $ in Thousands | Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
--- | --- | --- | ---
Mutual funds-fixed income |  |  |
Defined Benefit Plans |  |  |
Target asset allocations | 40.00% |  |
Mutual funds-equity |  |  |
Defined Benefit Plans |  |  |
Target asset allocations | 60.00% |  |
Cash Balance Plan |  |  |
Defined Benefit Plans |  |  |
Assets at Fair Value | $ 18,356 | $ 23,470 | $ 26,287
Cash Balance Plan | Level 1 |  |  |
Defined Benefit Plans |  |  |
Assets at Fair Value | 18,356 | 23,470 |
Cash Balance Plan | Mutual funds-fixed income |  |  |
Defined Benefit Plans |  |  |
Assets at Fair Value | 6,975 | 8,919 |
Cash Balance Plan | Mutual funds-fixed income | Level 1 |  |  |
Defined Benefit Plans |  |  |
Assets at Fair Value | 6,975 | 8,919 |
Cash Balance Plan | Mutual funds-equity |  |  |
Defined Benefit Plans |  |  |
Assets at Fair Value | 11,381 | 14,551 |
Cash Balance Plan | Mutual funds-equity | Level 1 |  |  |
Defined Benefit Plans |  |  |
Assets at Fair Value | $ 11,381 | $ 14,551 |

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_DefinedBenefitPlanDisclosureLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of asset segregated and restricted to provide benefit under defined benefit plan. Asset includes, but is not limited to, stock, bond, other investment, earning from investment, and contribution by employer and employee. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (d)(iv)(01) -URI https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (d)(iv)(01) -URI https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (d)(ii) -URI https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920 Reference 4: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 20 -Section 55 -Paragraph 17 -URI https://asc.fasb.org/extlink&oid=123450688&loc=d3e4179-114921 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (d)(iv)(02) -URI https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920 Reference 7: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (d)(ii) -URI https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920 + Details
Name: | us-gaap_DefinedBenefitPlanFairValueOfPlanAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Percentage of target investment allocation to total plan assets. Includes, but is not limited to, percentage on weighted-average basis if more than one plan. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 20 -Section 55 -Paragraph 17 -URI https://asc.fasb.org/extlink&oid=123450688&loc=d3e4179-114921 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (d)(i) -URI https://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920 + Details
Name: | us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | dei_LegalEntityAxis=cffi_CAndFBankMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis=us-gaap_FixedIncomeFundsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis=us-gaap_EquityFundsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RetirementPlanNameAxis=cffi_CashBalancePlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |