XML 46 R35.htm IDEA: XBRL DOCUMENT
v3.23.2

Debt - Additional Information (Detail) - USD ($) |  | 1 Months Ended | 6 Months Ended |  |  |
--- | --- | --- | --- | --- | --- | ---
Jul. 29, 2021 | Jul. 31, 2023 | Jun. 30, 2023 | Dec. 31, 2022 | Mar. 31, 2021 | Jul. 31, 2020
Debt [Line Items] |  |  |  |  |  |
Letters of credit |  |  | $ 53,200,000 | $ 48,000,000 |  |
Concierge credit facility |  |  |  |  |  |
Debt [Line Items] |  |  |  |  |  |
Maximum borrowing capacity |  |  |  |  |  | $ 75,000,000
Debt instrument interest rate (in percent) |  |  | 8.30% |  |  |
Concierge credit facility | Concierge Facility Used Greater Than Fifty Percent |  |  |  |  |  |
Debt [Line Items] |  |  |  |  |  |
Unused capacity commitment fee (in percent) | 0.35% |  |  |  |  |
Line of credit facility, unused capacity, commitment fee, threshold | 50.00% |  |  |  |  |
Concierge credit facility | Concierge Facility Used Less Than Fifty Percent |  |  |  |  |  |
Debt [Line Items] |  |  |  |  |  |
Unused capacity commitment fee (in percent) | 0.50% |  |  |  |  |
Line of credit facility, unused capacity, commitment fee, threshold | 50.00% |  |  |  |  |
Concierge credit facility | Secured Overnight Financing Rate (SOFR) |  |  |  |  |  |
Debt [Line Items] |  |  |  |  |  |
Debt instrument, basis spread on variable rate | 2.75% |  |  |  |  |
Revolving credit facility |  |  |  |  |  |
Debt [Line Items] |  |  |  |  |  |
Maximum borrowing capacity |  |  |  |  | $ 350,000,000 |
Debt instrument, basis spread on variable rate |  |  | 1.00% |  |  |
Unused capacity commitment fee (in percent) |  |  | 0.175% |  |  |
Debt instrument interest rate (in percent) |  |  | 8.43% |  |  |
Line of credit facility maximum borrowing capacity sublimit |  |  |  |  | $ 125,000,000 |
Outstanding borrowings |  |  | $ 150,000,000 |  |  |
Revolving credit facility | Minimum |  |  |  |  |  |
Debt [Line Items] |  |  |  |  |  |
Liquidity required by financial covenants |  |  | 150,000,000 |  |  |
Revolving credit facility | Four Fiscal Quarters Thereafter | Minimum |  |  |  |  |  |
Debt [Line Items] |  |  |  |  |  |
Required consolidated revenue threshold |  |  | 4,668,000,000 |  |  |
Revolving credit facility | Four Fiscal Quarters of 2023 | Minimum |  |  |  |  |  |
Debt [Line Items] |  |  |  |  |  |
Required consolidated revenue threshold |  |  | $ 3,799,000,000 |  |  |
Revolving credit facility | Subsequent Event |  |  |  |  |  |
Debt [Line Items] |  |  |  |  |  |
Repayment of borrowings |  | $ 150,000,000 |  |  |  |
Revolving credit facility | Secured Overnight Financing Rate (SOFR) |  |  |  |  |  |
Debt [Line Items] |  |  |  |  |  |
Debt instrument, basis spread on variable rate |  |  | 1.50% |  |  |
Debt instrument, basis spread on variable rate, adjustment |  |  | 0.10% |  |  |
Revolving credit facility | Secured Overnight Financing Rate (SOFR) Term Rate |  |  |  |  |  |
Debt [Line Items] |  |  |  |  |  |
Debt instrument, basis spread on variable rate |  |  | 1.00% |  |  |
Revolving credit facility | Base Rate |  |  |  |  |  |
Debt [Line Items] |  |  |  |  |  |
Debt instrument, basis spread on variable rate |  |  | 0.50% |  |  |
Revolving credit facility | Fed Funds Effective Rate Overnight Index Swap Rate |  |  |  |  |  |
Debt [Line Items] |  |  |  |  |  |
Debt instrument, basis spread on variable rate |  |  | 0.50% |  |  |
Revolving credit facility | Debt Default Interest Rate |  |  |  |  |  |
Debt [Line Items] |  |  |  |  |  |
Debt instrument, basis spread on variable rate |  |  | 2.00% |  |  |
Letter of Credit |  |  |  |  |  |
Debt [Line Items] |  |  |  |  |  |
Letters of credit |  |  | $ 41,600,000 |  |  |

X
- Definition Debt Instrument, Basis Spread on Variable Rate, Adjustment + References No definition available. + Details
Name: | comp_DebtInstrumentBasisSpreadOnVariableRateAdjustment
Namespace Prefix: | comp_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Covenant, Liquidity + References No definition available. + Details
Name: | comp_DebtInstrumentCovenantLiquidity
Namespace Prefix: | comp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Debt Instrument, Covenant. Required Consolidated Revenue Threshold + References No definition available. + Details
Name: | comp_DebtInstrumentCovenantRequiredConsolidatedRevenueThreshold
Namespace Prefix: | comp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Debt [Line Items] + References No definition available. + Details
Name: | comp_DebtLineItems
Namespace Prefix: | comp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line of credit facility maximum borrowing capacity sublimit. + References No definition available. + Details
Name: | comp_LineOfCreditFacilityMaximumBorrowingCapacitySublimit
Namespace Prefix: | comp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Line Of Credit Facility, Unused Capacity, Commitment Fee, Threshold + References No definition available. + Details
Name: | comp_LineOfCreditFacilityUnusedCapacityCommitmentFeeThreshold
Namespace Prefix: | comp_
Data Type: | dtr-types1:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage points added to the reference rate to compute the variable rate on the debt instrument. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The total amount of the contingent obligation under letters of credit outstanding as of the reporting date. + References No definition available. + Details
Name: | us-gaap_LettersOfCreditOutstandingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 944 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)(a)(2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479440/944-210-S99-1 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479853/942-210-S99-1 + Details
Name: | us-gaap_LineOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The fee, expressed as a percentage of the line of credit facility, for available but unused credit capacity under the credit facility. + References No definition available. + Details
Name: | us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash outflow for the settlement of obligation drawn from a contractual arrangement with the lender, including letter of credit, standby letter of credit and revolving credit arrangements, under which borrowings can be made up to a specific amount at any point in time with maturities due beyond one year or the operating cycle, if longer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482740/230-10-45-15 + Details
Name: | us-gaap_RepaymentsOfLongTermLinesOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_CreditFacilityAxis=comp_ConciergeRevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | comp_CreditFacilityUtilizationAxis=comp_ConciergeFacilityUsedGreaterThanFiftyPercentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | comp_CreditFacilityUtilizationAxis=comp_ConciergeFacilityUsedLessThanFiftyPercentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=comp_SecuredOvernightFinancingRateSOFRMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | comp_DebtCovenantPeriodAxis=comp_FourFiscalQuartersThereafter2023Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | comp_DebtCovenantPeriodAxis=comp_FourFiscalQuartersOf2023Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_SubsequentEventTypeAxis=us-gaap_SubsequentEventMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=comp_SecuredOvernightFinancingRateSOFRTermRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_BaseRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_FederalFundsEffectiveSwapRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=comp_DebtDefaultInterestRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_LetterOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |