XML 115 R104.htm IDEA: XBRL DOCUMENT
v3.22.4

Employee Benefit Plans - Defined Benefit Plans - Weighted-Average Asset Allocations (Details) - C&F Bank - Cash Balance Plan | Dec. 31, 2022 | Dec. 31, 2021
--- | --- | ---
Weighted average asset allocations by asset category |  |
Weighted average asset allocation by asset category | 100.00% | 100.00%
Mutual funds-fixed income |  |
Weighted average asset allocations by asset category |  |
Weighted average asset allocation by asset category | 38.00% | 38.00%
Mutual funds-equity |  |
Weighted average asset allocations by asset category |  |
Weighted average asset allocation by asset category | 62.00% | 62.00%

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

X
- Definition Percentage of actual 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/2009/role/commonPracticeRef -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_DefinedBenefitPlanWeightedAverageAssetAllocations
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_RetirementPlanNameAxis=cffi_CashBalancePlanMember
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: |