XML 64 R51.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Fair Value of Financial Assets and Liabilities - Additional Information (Detail) - USD ($) $ in Millions | Dec. 31, 2021 | Dec. 31, 2020
--- | --- | ---
Business Combinations contingent liabilities undiscounted maximum payment | $ 24.4 |
Fair Value, Inputs, Level 3 [Member] |  |
Business combination contingent consideration fair value disclosure | 24.4 | $ 39.8
Cash And Money Market Funds [Member] | Fair Value, Inputs, Level 1 [Member] |  |
Cash and cash equivalents fair value disclosure | $ 618.3 | $ 440.1

X
- Definition Business Combinations contingent liabilities undiscounted maximum payment + References No definition available. + Details
Name: | comp_BusinessCombinationsContingentLiabilitiesUndiscountedMaximumPayment
Namespace Prefix: | comp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Contingent consideration Fair Value Disclosure. + References No definition available. + Details
Name: | comp_ContingentConsiderationFairValueDisclosure
Namespace Prefix: | comp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Fair value portion of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. + References No definition available. + Details
Name: | us-gaap_CashAndCashEquivalentsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Details
Name: | us-gaap_FairValueByAssetClassAxis=comp_CashAndMoneyMarketFundsMember
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: |