XML 44 R33.htm IDEA: XBRL DOCUMENT
v3.23.2

Fair Value of Financial Assets and Liabilities - Additional Information (Detail) - USD ($) $ in Millions | Jun. 30, 2023 | Dec. 31, 2022
--- | --- | ---
Fair Value, Inputs, Level 3 |  |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |  |
Contingent consideration fair value disclosure | $ 17.6 | $ 14.0
Cash And Money Market Funds | Fair Value, Inputs, Level 1 |  |
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] |  |
Cash and cash Equivalents, fair value disclosure | $ 335.4 | $ 361.9

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

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