XML 54 R41.htm IDEA: XBRL DOCUMENT
v3.21.1

Stock-Based Compensation - Additional Information (Detail) - USD ($) |  | 3 Months Ended | 12 Months Ended |
--- | --- | --- | --- | ---
Feb. 28, 2021 | Mar. 31, 2021 | Mar. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2020
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Options granted during the period |  | 737,560 |  | 1,061,250 |
Intrinsic value of stock options exercised |  | $ 79,800,000 | $ 500,000 |  |
Allocated share based compensation expense |  | 167,500,000 | 11,100,000 |  |
Options unrecognized compensation |  | $ 451,500,000 |  |  |
Options unrecognized compensation period of recognition |  | 3 years 4 months 24 days |  |  |
Proceeds from exercise of stock options |  | $ 14,400,000 | $ 200,000 |  |
Share based compensation by share based payment arrangement stock options granted during the period |  | 1,888,660 |  |  |
Other non-current liabilities |  | $ 26,700,000 |  |  | $ 23,500,000
SHARES Granted Under Stock Plans Subject To Repurchase [Member] |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Number of shares subject to repurchase |  | 1,740,600 |  |  |
Ipo Based Restricted Stock Units [Member] |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Allocated share based compensation expense |  | $ 148,500,000 |  |  |
Performance Shares [Member] | Executive Officer [Member] |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Allocated share based compensation expense |  | $ 0 |  |  |
Share-based compensation arrangement by share based payment award restricted stock units granted |  | 8,611,810 |  |  |
Stock Option [Member] |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Proceeds from exercise of stock options |  | $ 4,500,000 |  |  |
Other non-current liabilities |  | $ 9,000,000 |  |  |
2012 Stock Incentive Plan [Member] | Share-based Payment Arrangement, Option [Member] |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Contractual term |  | 10 years |  |  |
2012 Stock Incentive Plan [Member] | Restricted Stock Units [Member] |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Contractual term |  | 7 years |  |  |
2021 Equity Incentive Plan [Member] |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Number of shares available for grant | 29,666,480 | 41,105,315 |  |  |
2021 Employee Stock Purchase Plan [Member] |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Number of shares authorized | 7,416,620 |  |  |  |
Share based compensation by share based payment arrangement increase in the shares authorised for issuance as a percentage of shares outstanding | 1.00% |  |  |  |
Share based compensation by share based payment arrangement stock options granted during the period | 0 |  |  |  |
2021 Employee Stock Purchase Plan [Member] | Maximum [Member] |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |
Number of shares authorized | 150,000,000 |  |  |  |

X
- Definition Share based compensation arrangement by share based payment award restricted stock units granted. + References No definition available. + Details
Name: | comp_ShareBasedCompensationArrangementByShareBasedPaymentAwardRestrictedStockUnitsGranted
Namespace Prefix: | comp_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Share Based Compensation By Share Based Payment Arrangement Increase In The Number Of Shares Authorized For Issuance As A Percentage Of Shares Outstanding + References No definition available. + Details
Name: | comp_ShareBasedCompensationByShareBasedPaymentArrangementIncreaseInTheNumberOfSharesAuthorizedForIssuanceAsAPercentageOfSharesOutstanding
Namespace Prefix: | comp_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of expense for award under share-based payment arrangement. Excludes amount capitalized. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 14.F) -URI http://asc.fasb.org/extlink&oid=115993241&loc=d3e301413-122809 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (h)(1)(i) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_AllocatedShareBasedCompensationExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Weighted-average period over which cost not yet recognized is expected to be recognized for award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents 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 (i) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cost to be recognized for option under share-based payment arrangement. + 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 (i) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of liabilities classified as other, due after one year or the normal operating cycle, if longer. + 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.24) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_OtherLiabilitiesNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of cash inflow from exercise of option under share-based payment arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2A -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120381028&loc=SL79508275-113901 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121586364&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromStockOptionsExercised
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Net number of non-option equity instruments granted to participants. + 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 (c)(1)(iv)(1) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares authorized for issuance under share-based payment arrangement. + 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)(3) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The difference between the maximum number of shares (or other type of equity) authorized for issuance under the plan (including the effects of amendments and adjustments), and the sum of: 1) the number of shares (or other type of equity) already issued upon exercise of options or other equity-based awards under the plan; and 2) shares (or other type of equity) reserved for issuance on granting of outstanding awards, net of cancellations and forfeitures, if applicable. + 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 -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of accumulated difference between fair value of underlying shares on dates of exercise and exercise price on options exercised (or share units converted) into shares. + 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 (d)(2) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Gross number of share options (or share units) granted during the period. + References No definition available. + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Period from grant date that an equity-based award expires, 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)(2) -URI http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901 + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of shares authorized to be repurchased by an entity's Board of Directors under a stock repurchase plan. + References No definition available. + Details
Name: | us-gaap_StockRepurchaseProgramNumberOfSharesAuthorizedToBeRepurchased
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | comp_EventAxis=comp_SharesGrantedUnderStockPlansSubjectToRepurchaseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

X
- Details
Name: | srt_TitleOfIndividualAxis=srt_ExecutiveOfficerMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_PlanNameAxis=comp_TwoThousandAndTwelveStockIncentivePlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

X
- Details
Name: | us-gaap_PlanNameAxis=comp_TwoThousandAndTwentyOneEquityIncentivePlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PlanNameAxis=comp_TwoThousandAndTwentyOneEmployeeStockPurchasePlanMember
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: |