XML 86 R69.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Income Taxes - Schedule of Deferred Tax Assets and Liabilities (Detail) - USD ($) $ in Thousands | Dec. 31, 2023 | Dec. 31, 2022
--- | --- | ---
Deferred tax assets: |  |
Operating lease liability | $ 6,886 | $ 7,941
Product and surface flaking warranty reserves | 5,645 | 6,469
State tax credit carryforwards | 4,250 | 4,084
Deferred revenue | 4,215 | 2,921
Tax Cut and Jobs Act capitalization of research and development costs | 3,956 | 2,152
Stock-based compensation | 2,361 | 1,146
Inventories | 639 | 2,965
Accruals not currently deductible and other | 0 | 373
Net Operating Losses | 0 | 132
Gross deferred tax assets, before valuation allowance | 27,952 | 28,183
Valuation allowance | (3,307) | (3,026)
Gross deferred tax assets, after valuation allowance | 24,645 | 25,157
Deferred tax liabilities: |  |
Depreciation | (74,794) | (74,604)
Inventories | (10,627) | (6,749)
Operating lease right-of-use asset | (6,677) | (7,687)
Goodwill amortization | (3,536) | (2,879)
Other | (1,450) | (1,462)
Gross deferred tax liabilities | (97,084) | (93,381)
Net deferred tax liability | $ (72,439) | $ (68,224)

X
- Definition Deferred tax assets operating lease liabilities. + References No definition available. + Details
Name: | trex_DeferredTaxAssetsOperatingLeaseLiabilities
Namespace Prefix: | trex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Deferred tax assets tax cut and jobs act capitalization of research and development costs. + References No definition available. + Details
Name: | trex_DeferredTaxAssetsTaxCutAndJobsActCapitalizationOfResearchAndDevelopmentCosts
Namespace Prefix: | trex_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Deferred tax liabilities depreciation. + References No definition available. + Details
Name: | trex_DeferredTaxLiabilitiesDepreciation
Namespace Prefix: | trex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Deferred tax liabilities goodwill amortization. + References No definition available. + Details
Name: | trex_DeferredTaxLiabilitiesGoodwillAmortization
Namespace Prefix: | trex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Deferred tax liabilities inventories and other. + References No definition available. + Details
Name: | trex_DeferredTaxLiabilitiesInventoriesAndOther
Namespace Prefix: | trex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Deferred tax liabilities operating lease right of use assets. + References No definition available. + Details
Name: | trex_DeferredTaxLiabilitiesOperatingLeaseRightOfUseAssets
Namespace Prefix: | trex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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

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

X
- Definition Amount of deferred tax liability attributable to taxable temporary differences. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-2 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(26)(a)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(26)(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 4: 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(15)(2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479853/942-210-S99-1 + Details
Name: | us-gaap_DeferredIncomeTaxLiabilities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences with jurisdictional netting. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(15)(b)(2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479440/944-210-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482525/740-10-45-4 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482525/740-10-45-6 + Details
Name: | us-gaap_DeferredIncomeTaxLiabilitiesNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from deferred income. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-6 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-8 + Details
Name: | us-gaap_DeferredTaxAssetsDeferredIncome
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-2 + Details
Name: | us-gaap_DeferredTaxAssetsGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from inventory. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-6 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-8 + Details
Name: | us-gaap_DeferredTaxAssetsInventory
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-2 + Details
Name: | us-gaap_DeferredTaxAssetsNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-6 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-8 + Details
Name: | us-gaap_DeferredTaxAssetsOperatingLossCarryforwards
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences, classified as other. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-6 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-8 + Details
Name: | us-gaap_DeferredTaxAssetsOther
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, before allocation of a valuation allowances, of deferred tax assets attributable to deductible tax credit carryforwards including, but not limited to, research, foreign, general business, alternative minimum tax, and other deductible tax credit carryforwards. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-6 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-8 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-3 + Details
Name: | us-gaap_DeferredTaxAssetsTaxCreditCarryforwards
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from share-based compensation. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-6 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-8 + Details
Name: | us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from warranty reserves. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-6 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-8 + Details
Name: | us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsWarrantyReserves
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-2 + Details
Name: | us-gaap_DeferredTaxAssetsValuationAllowance
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of deferred tax consequences attributable to taxable temporary differences derived from inventory. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 740 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-6 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482685/740-10-50-8 + Details
Name: | us-gaap_DeferredTaxLiabilitiesDeferredExpenseCapitalizedInventoryCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant