XML 60 R40.htm IDEA: XBRL DOCUMENT
v3.22.4

Description of Business and Summary of Significant Accounting Policies - Additional Information (Details) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2022 USD ($) subsidiary | Dec. 31, 2021 USD ($) | Dec. 31, 2020 USD ($)
Accounting Policies [Abstract] |  |  |
Number of owned subsidiaries | subsidiary | 2 |  |
Accounts receivable, sale | $ 539 | $ 139 |
Quantitative impairment test frequency | 3 years |  |
Years forecasted in goodwill impairment income approach | 5 years |  |
Advertising expense | $ 211 | $ 199 | $ 191

X
- Definition Forecasted Years for Goodwill Impairment + References No definition available. + Details
Name: | cdw_ForecastedYearsforGoodwillImpairment
Namespace Prefix: | cdw_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Goodwill, Quantitative Impairment Test Frequency + References No definition available. + Details
Name: | cdw_GoodwillQuantitativeImpairmentTestFrequency
Namespace Prefix: | cdw_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of Owned Subsidiaries + References No definition available. + Details
Name: | cdw_NumberofOwnedSubsidiaries
Namespace Prefix: | cdw_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_AccountingPoliciesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of decrease from sale of accounts receivable. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 50 -Paragraph 11 -Subparagraph (i) -URI https://asc.fasb.org/extlink&oid=124255953&loc=SL82919244-210447 + Details
Name: | us-gaap_AccountsReceivableSale
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount charged to advertising expense for the period, which are expenses incurred with the objective of increasing revenue for a specified brand, product or product line. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 720 -SubTopic 35 -Section 50 -Paragraph 1 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=6420018&loc=d3e36677-107848 + Details
Name: | us-gaap_AdvertisingExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration