XML 42 R29.htm IDEA: XBRL DOCUMENT
v3.21.1

Summary of Significant Accounting Policies - Additional Information (Detail) - USD ($) $ in Millions | 12 Months Ended |
--- | --- | ---
Dec. 31, 2020 | Dec. 31, 2019 | Mar. 31, 2021
Accounting Policies [Line Items] |  |  |
Deferred offering costs | $ 1.8 |  | $ 11.0
Restricted Stock Units [Member] |  |  |
Accounting Policies [Line Items] |  |  |
Share based compensation by share based payment arrangement service based vesting period | 4 years | 4 years |

X
- Definition Accounting policies. + References No definition available. + Details
Name: | comp_AccountingPoliciesLineItems
Namespace Prefix: | comp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Specific incremental costs directly attributable to a proposed or actual offering of securities which are deferred at the end of the reporting period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.8) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 340 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 5.A) -URI http://asc.fasb.org/extlink&oid=27011391&loc=d3e105025-122735 + Details
Name: | us-gaap_DeferredOfferingCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Estimated period over which an employee is required to provide service in exchange for the equity-based payment award, 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 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_RestrictedStockUnitsRSUMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |