XML 56 R46.htm IDEA: XBRL DOCUMENT
v3.25.0.1

Sale of Trex Commercial Products, Inc. - Additional Information (Detail) - USD ($) $ in Thousands |  | 12 Months Ended
--- | --- | ---
Dec. 30, 2022 | Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022
Subsidiary or Equity Method Investee [Line Items] |  |  |  |
Proceeds from sale of assets |  | $ 0 | $ 0 | $ 7,290
Gain (loss) on disposition of stock in subsidiary |  | $ 0 | $ 0 | $ (15,423)
Trex Commercial Products Inc [Member] |  |  |  |
Subsidiary or Equity Method Investee [Line Items] |  |  |  |
Proceeds from sale of assets | $ 7,300 |  |  |
Gain (loss) on disposition of stock in subsidiary | $ (15,400) |  |  |

X
- Definition Amount of gain (loss) on sale or disposal of equity in securities of subsidiaries. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 220 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(9)(a)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483621/220-10-S99-2 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 220 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(7)(c)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147483621/220-10-S99-2 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 230 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 28 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-28 Reference 4: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 942 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04(13)(g)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478524/942-220-S99-1 + Details
Name: | us-gaap_GainOrLossOnSaleOfStockInSubsidiary
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash inflow associated with the deconsolidation of a previously consolidated subsidiary or sale of an entity that is related to it but not strictly controlled. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 12 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-12 + Details
Name: | us-gaap_ProceedsFromDivestitureOfInterestInSubsidiariesAndAffiliates
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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

X
- Details
Name: | us-gaap_RelatedPartyTransactionsByRelatedPartyAxis=trex_TrexCommercialProductsIncMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |