XML 53 R37.htm IDEA: XBRL DOCUMENT
v3.22.2.2

Stock-Based Compensation - Additional Information (Detail) - USD ($) |  |  | 1 Months Ended | 3 Months Ended | 6 Months Ended | 18 Months Ended |
--- | --- | --- | --- | --- | --- | --- | ---
Jan. 01, 2022 | Feb. 28, 2021 | Feb. 28, 2022 | Jun. 30, 2022 | Mar. 31, 2022 | Jun. 30, 2021 | Mar. 31, 2021 | Jun. 30, 2022 | Jun. 30, 2021 | Jun. 30, 2022 | Dec. 31, 2021
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Number of additional shares available for grant (in shares) | 20,500,000 |  |  |  |  |  |  |  |  |  |
Shares purchased under ESPP plan (in shares) |  |  |  |  |  |  |  | 215,027 |  |  |
Stock based compensation expense |  |  |  | $ 59,200,000 |  | $ 54,300,000 |  | $ 123,000,000.0 | $ 221,800,000 |  |
Award vesting rights conditions |  |  |  |  |  |  |  | The performance-based conditions provide that 25% of the options will vest subject to the achievement of a market price per share of $23.14 of the Company's Class A common stock (the "reference price"). An additional 25% of the options will vest upon the achievement of a market price per share of the Company's Class A common stock at each of 200%, 250% and 300% of the reference price. |  |  |
Intrinsic value of options |  |  |  |  |  |  |  | $ 19,500,000 | $ 88,500,000 |  |
Nonvested stock options (in shares) |  |  |  | 1,200,000 |  |  |  | 1,200,000 |  | 1,200,000 |
Weighted average exercise price of nonvested options (in dollars per share) |  |  |  | $ 6.44 |  |  |  | $ 6.44 |  | $ 6.44 |
Percentage of options (in percent) |  |  |  |  |  |  |  | 25.00% |  |  |
Market price per share (in dollars per share) |  |  |  | $ 3,610,000 |  |  |  | $ 3,610,000 |  | $ 3,610,000 | $ 9,090,000.00
Shares authorized to be repurchased (in shares) |  |  |  | 700,000 |  |  |  | 700,000 |  | 700,000 |
Options early exercised (in shares) |  |  |  |  |  |  |  | 0 |  |  |
Unrecognized stock-based compensation expense |  |  |  | $ 518,800,000 |  |  |  | $ 518,800,000 |  | $ 518,800,000 |
Unrecognized stock-based compensation, period of recognition |  |  |  |  |  |  |  | 2 years 9 months 18 days |  |  |
Accrued Expenses And Other Current Liabilities |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Proceeds received for unvested shares of common stock |  |  |  |  |  |  |  | $ 1,300,000 |  |  |
Other Current Liabilities |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Proceeds received for unvested shares of common stock |  |  |  |  |  |  |  | $ 2,700,000 |  |  |
Common Class A |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Market price per share (in dollars per share) |  |  |  | $ 23.14 |  |  |  | $ 23.14 |  | $ 23.14 |
Common Class A | Share-based Payment Arrangement, Tranche One |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Vesting rights threshold (in percent) |  |  |  |  |  |  |  | 200.00% |  |  |
Common Class A | Share-based Payment Arrangement, Tranche Two |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Vesting rights threshold (in percent) |  |  |  |  |  |  |  | 250.00% |  |  |
Common Class A | Share-based Payment Arrangement, Tranche Three |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Vesting rights threshold (in percent) |  |  |  |  |  |  |  | 300.00% |  |  |
2021 Equity Incentive Plan |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Number of shares available for grant (in shares) |  | 29,700,000 |  | 25,500,000 |  |  |  | 25,500,000 |  | 25,500,000 |
2021 Agent Equity Program |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Stock based compensation expense |  |  |  |  | $ 84,800,000 |  |  | $ 15,200,000 |  | $ 100,000,000 |
Outstanding stock options | 2012 Stock Incentive Plan |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Expiration period |  |  |  |  |  |  |  | 10 years |  |  |
Restricted Stock Units |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Nonvested stock options (in shares) |  |  |  | 59,738,313 |  |  |  | 59,738,313 |  | 59,738,313 | 54,517,930
Award vesting rights conditions |  |  |  |  |  |  |  | The performance-based vesting conditions provide that 12.5% of the shares subject to the RSU will vest subject to the achievement of a market price per share of $23.14 of the Company's Class A common stock. An additional 12.5% of the shares subject to the RSU will vest upon the achievement of a market price per share of the Company's Class A common stock at each of 200%, 250%, 300%, 350%, 400%, 450% and 500% of the reference price. |  |  |
Percentage of options (in percent) |  |  |  |  |  |  |  | 12.50% |  |  |
Granted (in shares) |  |  |  |  |  |  |  | 31,015,818 |  |  |
Restricted Stock Units | Service-based and Performance-based |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Nonvested stock options (in shares) |  |  |  | 17,200,000 |  |  |  | 17,200,000 |  | 17,200,000 |
Restricted Stock Units | Common Class A | Share-based Payment Arrangement, Tranche One |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Vesting rights threshold (in percent) |  |  |  |  |  |  |  | 200.00% |  |  |
Restricted Stock Units | Common Class A | Share-based Payment Arrangement, Tranche Two |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Vesting rights threshold (in percent) |  |  |  |  |  |  |  | 250.00% |  |  |
Restricted Stock Units | Common Class A | Share-based Payment Arrangement, Tranche Three |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Vesting rights threshold (in percent) |  |  |  |  |  |  |  | 300.00% |  |  |
Restricted Stock Units | Common Class A | Share-based Payment Arrangement, Tranche Four |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Vesting rights threshold (in percent) |  |  |  |  |  |  |  | 350.00% |  |  |
Restricted Stock Units | Common Class A | Share-based Payment Arrangement, Tranche Five |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Vesting rights threshold (in percent) |  |  |  |  |  |  |  | 400.00% |  |  |
Restricted Stock Units | Common Class A | Share-based Payment Arrangement, Tranche Six |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Vesting rights threshold (in percent) |  |  |  |  |  |  |  | 450.00% |  |  |
Restricted Stock Units | Common Class A | Share-based Payment Arrangement, Tranche Seven |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Vesting rights threshold (in percent) |  |  |  |  |  |  |  | 500.00% |  |  |
Restricted Stock Units | 2012 Stock Incentive Plan |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Expiration period |  |  |  |  |  |  |  | 7 years |  |  |
Restricted Stock Units | 2021 Agent Equity Program |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Deferred compensation share-based arrangements, liability |  |  |  |  |  |  |  |  |  |  | $ 100,000,000
Restricted Stock Units | 2021 Agent Equity Program | Common Class A |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Granted (in shares) |  |  | 13,600,000 |  |  |  |  |  |  |  |
Restricted Stock Units | 2022 Agent Equity Program |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Deferred compensation share-based arrangements, liability |  |  |  | $ 7,200,000 |  |  |  | $ 7,200,000 |  | $ 7,200,000 |
Shares subject to the employee stock purchase plan | 2021 Equity Incentive Plan |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Increase in the shares authorized for issuance as a percentage of shares outstanding (in percent) |  | 5.00% |  |  |  |  |  |  |  |  |
Shares subject to the employee stock purchase plan | 2021 Employee Stock Purchase Plan |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Increase in the shares authorized for issuance as a percentage of shares outstanding (in percent) |  | 1.00% |  |  |  |  |  |  |  |  |
Number of ESPP shares authorized (in shares) |  | 7,400,000 |  |  |  |  |  |  |  |  |
Number of additional ESPP shares authorized (in shares) | 3,900,000 |  |  |  |  |  |  |  |  |  |
Purchase period |  | 6 months |  |  |  |  |  |  |  |  |
Purchase price of common stock, percent of market price (in percent) |  | 85.00% |  |  |  |  |  |  |  |  |
Shares purchased under ESPP plan (in shares) |  |  |  |  |  |  |  | 0 |  |  |
Stock based compensation expense |  |  |  | 600,000 |  |  |  | $ 1,000,000 |  |  |
Employee withholdings for future purchases under the ESPP |  |  |  | $ 3,300,000 |  |  |  | $ 3,300,000 |  | $ 3,300,000 |
Shares subject to the employee stock purchase plan | 2021 Employee Stock Purchase Plan | Common Class A |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Maximum employee subscription amount |  | $ 12,500 |  |  |  |  |  |  |  |  |
Shares subject to the employee stock purchase plan | 2021 Employee Stock Purchase Plan | Maximum |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Number of ESPP shares authorized (in shares) |  | 150,000,000 |  |  |  |  |  |  |  |  |
IPO Based Restricted Stock Units [Member] |  |  |  |  |  |  |  |  |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |  |  |  |  |  |  |  |  |
Stock based compensation expense |  |  |  |  |  |  | $ 148,500,000 |  |  |  |

X
- Definition Early Exercise of Stock Options Shares Issued + References No definition available. + Details
Name: | comp_EarlyExerciseOfStockOptionsSharesIssued
Namespace Prefix: | comp_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Rights Threshold, Percentage + References No definition available. + Details
Name: | comp_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingRightsThresholdPercentage
Namespace Prefix: | comp_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Share-based Compensation Arrangement by Share-based Payment Award, Employee Withholdings For Stock Purchase + References No definition available. + Details
Name: | comp_ShareBasedCompensationArrangementByShareBasedPaymentAwardEmployeeWithholdingsForStockPurchase
Namespace Prefix: | comp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Share-based Compensation Arrangement by Share-based Payment Award, Maximum Employee Subscription Amount + References No definition available. + Details
Name: | comp_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionAmount
Namespace Prefix: | comp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Share Based Compensation Arrangement By Share Based Payment Award Number Of Additional Shares Available for Grant + References No definition available. + Details
Name: | comp_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAvailableForGrant
Namespace Prefix: | comp_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Share-Based Compensation Arrangement By Share-based Payment Award, Purchase Period + References No definition available. + Details
Name: | comp_ShareBasedCompensationArrangementByShareBasedPaymentAwardPurchasePeriod
Namespace Prefix: | comp_
Data Type: | xbrli:durationItemType
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: | dtr-types: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://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (h)(1)(i) -URI https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901 + Details
Name: | us-gaap_AllocatedShareBasedCompensationExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Aggregate carrying value as of the balance sheet date of the liabilities for stock option plans and other equity-based compensation arrangements payable within one year (or the 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.20) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DeferredCompensationShareBasedArrangementsLiabilityCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of cost not yet recognized for nonvested award under share-based payment arrangement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (i) -URI https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (i) -URI https://asc.fasb.org/extlink&oid=128089324&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 cash inflow from the issuance of equity classified as other. + References Reference 1: 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 https://asc.fasb.org/extlink&oid=126954810&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromOtherEquity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Description of service or performance condition required to be met for earning right to award under share-based payment arrangement. Includes, but is not limited to, combination of market, performance or service condition. + 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 https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingRights
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(2)(iii)(01) -URI https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of non-vested equity-based payment instruments, excluding stock (or unit) options, that validly exist and are outstanding as of the balance sheet date. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(2)(ii) -URI https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(2)(i) -URI https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
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_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of additional shares authorized for issuance under share-based payment arrangement. + References No definition available. + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized
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://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(3) -URI https://asc.fasb.org/extlink&oid=128089324&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 https://asc.fasb.org/extlink&oid=128089324&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://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (d)(2) -URI https://asc.fasb.org/extlink&oid=128089324&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 Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(1)(iv)(01) -URI https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Price of a single share of a number of saleable stocks of a company. + References No definition available. + Details
Name: | us-gaap_SharePrice
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage of vesting of award under share-based payment arrangement. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(1) -URI https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901 + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
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://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(2) -URI https://asc.fasb.org/extlink&oid=128089324&loc=d3e5070-113901 + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of non-vested options outstanding. + References No definition available. + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Weighted average grant-date fair value of non-vested options outstanding. + References No definition available. + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Purchase price of common stock expressed as a percentage of its fair value. + References No definition available. + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
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: | us-gaap_BalanceSheetLocationAxis=comp_AccruedExpensesAndOtherCurrentLiabilitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=us-gaap_OtherCurrentLiabilitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_CommonClassAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VestingAxis=us-gaap_ShareBasedCompensationAwardTrancheOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VestingAxis=us-gaap_ShareBasedCompensationAwardTrancheTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VestingAxis=us-gaap_ShareBasedCompensationAwardTrancheThreeMember
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_A2021AgentEquityProgramMember
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_PlanNameAxis=comp_TwoThousandAndTwelveStockIncentivePlanMember
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_VestingAxis=comp_ServiceBasedAndPerformanceBasedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VestingAxis=comp_ShareBasedPaymentArrangementTrancheFourMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VestingAxis=comp_ShareBasedPaymentArrangementTrancheFiveMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VestingAxis=comp_ShareBasedPaymentArrangementTrancheSixMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VestingAxis=comp_ShareBasedPaymentArrangementTrancheSevenMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_EmployeeStockMember
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: |

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