XML 47 R31.htm IDEA: XBRL DOCUMENT
v3.22.2.2

Fair Value of Financial Assets and Liabilities - Additional Information (Detail) - USD ($) $ in Millions | Jun. 30, 2022 | Dec. 31, 2021
--- | --- | ---
Fair Value, Inputs, Level 3 |  |
Contingent consideration fair value disclosure | $ 21.7 | $ 24.4
Cash And Money Market Funds [Member] | Fair Value, Inputs, Level 1 |  |
Cash and cash Equivalents, fair value disclosure | $ 430.5 | $ 618.3

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: |