XML 71 R60.htm IDEA: XBRL DOCUMENT
v3.21.2

Commitments and Contingencies - Additional Information (Detail) $ in Millions | 3 Months Ended | 9 Months Ended
--- | --- | ---
Sep. 30, 2021 USD ($) | Sep. 30, 2021 USD ($)
Schedule Of Commitments And Contingencies [Line Items] |  |
Change in warranty reserve for disclosure purposes only | $ 1.9 | $ 1.9
Fire at Virginia Facility [Member] | Insurance Settlement [Member] |  |
Schedule Of Commitments And Contingencies [Line Items] |  |
Proceeds from the insurance recovery | $ 3.7 | $ 4.7
Minimum [Member] |  |
Schedule Of Commitments And Contingencies [Line Items] |  |
Warranty period |  | 10 years
Maximum [Member] |  |
Schedule Of Commitments And Contingencies [Line Items] |  |
Warranty period |  | 25 years
Surface Flaking Warranty Reserve [Member] |  |
Schedule Of Commitments And Contingencies [Line Items] |  |
Percentage change in warranty claims used as a threshold for disclosure |  | 10.00%
Commercial Railing And Staging Systems [Member] | Commercial Use [Member] | Minimum [Member] |  |
Schedule Of Commitments And Contingencies [Line Items] |  |
Warranty period |  | 1 year
Commercial Railing And Staging Systems [Member] | Commercial Use [Member] | Maximum [Member] |  |
Schedule Of Commitments And Contingencies [Line Items] |  |
Warranty period |  | 3 years

X
- Definition Percentage change in the expected number of remaining claims to be settled with payment or the expected cost to settle claims used as a threshold for disclosure. + References No definition available. + Details
Name: | trex_PercentSensitivityChangeInExpectedSurfaceFlakingClaims
Namespace Prefix: | trex_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Schedule of commitments and contingencies. + References No definition available. + Details
Name: | trex_ScheduleOfCommitmentsAndContingenciesLineItems
Namespace Prefix: | trex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Estimated change in the warranty reserve resulting from a 10% change in the expected number of remaining claims to be settled with payment or the expected cost to settle claims for disclosure purposes only. + References No definition available. + Details
Name: | trex_SensitivityChangeInSurfaceFlakingWarrantyReserve
Namespace Prefix: | trex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The number of years the Company warrants that its products will be free from material defects in workmanship and materials. + References No definition available. + Details
Name: | trex_WarrantyPeriod
Namespace Prefix: | trex_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cash inflow for proceeds from settlement of insurance claim, classified as investing activities. Excludes insurance settlement classified as operating activities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 21B -URI http://asc.fasb.org/extlink&oid=123570139&loc=SL94080549-108585 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 12 -URI http://asc.fasb.org/extlink&oid=123570139&loc=d3e3179-108585 + Details
Name: | us-gaap_ProceedsFromInsuranceSettlementInvestingActivities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_UnusualOrInfrequentItemAxis=trex_FireAtVirginiaFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_GainContingenciesByNatureAxis=us-gaap_InsuranceSettlementMember
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: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | srt_ProductOrServiceAxis=trex_CommercialRailingAndStagingSystemsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_GuaranteeObligationsByNatureAxis=trex_CommercialUseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |