XML 121 R107.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Employee Benefit Plans - Defined Benefit Plans - Weighted-Average Asset Allocations (Details) - C&F Bank - Cash Balance Plan | Dec. 31, 2021 | Dec. 31, 2020
--- | --- | ---
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% | 37.00%
Mutual funds-equity |  |
Weighted average asset allocations by asset category |  |
Weighted average asset allocation by asset category | 62.00% | 63.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 http://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: |