XML 59 R46.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Business Combinations and Asset Acquisitions - Summary of Preliminary Allocation of Purchase Price (Parenthetical) (Detail) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2021 USD ($)
Business Acquisition [Line Items] |
Amount of Goodwill is deductible for tax purposes | $ 22.9
Amount of tax-deductible goodwill may increase in the future,dependent on contingent consideration milestones being achieved | $ 52.1
2021 Acquisitions | Maximum [Member] |
Business Acquisition [Line Items] |
Acquired intangible assets useful life | 9 years
2021 Acquisitions | Minimum [Member] |
Business Acquisition [Line Items] |
Acquired intangible assets useful life | 2 years
2020 Acquisitions | Maximum [Member] |
Business Acquisition [Line Items] |
Acquired intangible assets useful life | 6 years
2020 Acquisitions | Minimum [Member] |
Business Acquisition [Line Items] |
Acquired intangible assets useful life | 3 years
2019 Acquisitions | Maximum [Member] |
Business Acquisition [Line Items] |
Acquired intangible assets useful life | 9 years
2019 Acquisitions | Minimum [Member] |
Business Acquisition [Line Items] |
Acquired intangible assets useful life | 2 years

X
- Definition IncreaseDecreaseInGoodwillTaxDeductibleAmountContingentConsiderationMilestoneAchieved + References No definition available. + Details
Name: | comp_Increasedecreaseingoodwilltaxdeductibleamountcontingentconsiderationmilestoneachieved
Namespace Prefix: | comp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Weighted average amortization period of finite-lived intangible assets acquired either individually or as part of a group of assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275 + Details
Name: | us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

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_BusinessAcquisitionLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of goodwill arising from a business combination that is expected to be deductible for tax purposes. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479 + Details
Name: | us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | comp_YearAxis=comp_TwoThousandAndTwentyOneAcquisitionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | comp_YearAxis=comp_TwoThousandAndTwentyAcquisitionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | comp_YearAxis=comp_TwoThousandAndNineteenAcquistionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |