XML 67 R56.htm IDEA: XBRL DOCUMENT
v3.23.1

Commitments and Contingencies - Summary of Reconciliation of Company's Residential Product Warranty Reserve (Detail) - Surface Flaking Warranty Reserve [Member] - USD ($) $ in Thousands | 3 Months Ended
--- | ---
Mar. 31, 2023 | Mar. 31, 2022
Product Warranty Liability [Line Items] |  |
Beginning balance | $ 25,599 | $ 28,595
Provisions and changes in estimates | 1,945 | 1,090
Settlements made during the period | (867) | (1,273)
Ending balance | 26,677 | 28,412
Surface Flaking [Member] |  |
Product Warranty Liability [Line Items] |  |
Beginning balance | 15,905 | 18,542
Settlements made during the period | (316) | (745)
Ending balance | 15,589 | 17,797
Other Residential [Member] |  |
Product Warranty Liability [Line Items] |  |
Beginning balance | 9,694 | 10,053
Provisions and changes in estimates | 1,945 | 1,090
Settlements made during the period | (551) | (528)
Ending balance | $ 11,088 | $ 10,615

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_ProductWarrantyLiabilityLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount as of the balance sheet date of the aggregate standard product warranty liability. Does not include the balance for the extended product warranty liability. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 460 -SubTopic 10 -Section 50 -Paragraph 8 -Subparagraph (c)(1),(c)(5) -URI https://asc.fasb.org/extlink&oid=126907703&loc=d3e12565-110249 + Details
Name: | us-gaap_StandardProductWarrantyAccrual
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of decrease in the standard product warranty accrual from payments made in cash or in kind to satisfy claims under the terms of the standard product warranty. Excludes extended product warranties. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 460 -SubTopic 10 -Section 50 -Paragraph 8 -Subparagraph ((c)(2)) -URI https://asc.fasb.org/extlink&oid=126907703&loc=d3e12565-110249 + Details
Name: | us-gaap_StandardProductWarrantyAccrualPayments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of increase (decrease) in the standard product warranty accrual from changes in estimates attributable to preexisting product warranties. Excludes extended product warranties. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 460 -SubTopic 10 -Section 50 -Paragraph 8 -Subparagraph ((c)(4)) -URI https://asc.fasb.org/extlink&oid=126907703&loc=d3e12565-110249 + Details
Name: | us-gaap_StandardProductWarrantyAccrualPreexistingIncreaseDecrease
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_ValuationAllowancesAndReservesTypeAxis=trex_SurfaceFlakingWarrantyReserveMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ContingentConsiderationByTypeAxis=trex_SurfaceFlakingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ContingentConsiderationByTypeAxis=trex_OtherResidentialMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |