XML 123 R110.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Employee Benefit Plans - Defined Benefit Plans - Weighted-Average Asset Allocations (Details) - C&F Bank - Cash Balance Plan | Dec. 31, 2023 | Dec. 31, 2022
--- | --- | ---
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 | 40.00% | 38.00%
Mutual funds-equity |  |
Weighted average asset allocations by asset category |  |
Weighted average asset allocation by asset category | 60.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 -Topic 715 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (d)(i) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480506/715-20-50-1 + 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: |