XML 69 R55.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Debt - Additional Information (Detail) - USD ($) | May 26, 2020 | Nov. 05, 2019 | May 26, 2022 | Dec. 31, 2021 | Dec. 31, 2020
--- | --- | --- | --- | --- | ---
Line of Credit Facility [Line Items] |  |  |  |  |
Company indebtedness |  |  |  | $ 0 | $ 0
Remaining available borrowing capacity |  |  |  | 300,000,000 |
Termination date of the Credit Agreement |  | Nov. 05, 2024 |  |  |
Federal Funds Rate [Member] |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |
Interest rate | 0.50% |  |  |  |
Eurodollar Rate Loans [Member] |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |
Interest rate | 1.00% |  |  |  |
Revolver Loans Portion Effective January 1 through June 30 [Member] | Fourth Amended And Restated Credit Agreement [Member] |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |
Revolving loans in a collective maximum principal amount |  |  |  | 250,000,000 |
Revolver Loans Portion Effective July 1 through December 31 [Member] | Fourth Amended And Restated Credit Agreement [Member] |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |
Revolving loans in a collective maximum principal amount |  |  |  | $ 200,000,000 |
Revolving Credit Facility [Member] |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |
Line of Credit Facility, Additional Borrowing Capacity | $ 100,000,000 |  | $ 100,000,000 |  |
Revolving Credit Facility [Member] | BOA [Member] |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |
Lender Percentage | 47.50% |  |  |  |
Revolving Credit Facility [Member] | Well Fargo [Member] |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |
Lender Percentage | 28.00% |  |  |  |
Revolving Credit Facility [Member] | Regions [Member] |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |
Lender Percentage | 24.50% |  |  |  |

X
- Definition Lender Percentage. + References No definition available. + Details
Name: | trex_LenderPercentage
Namespace Prefix: | trex_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Line of Credit Facility, Additional Borrowing Capacity. + References No definition available. + Details
Name: | trex_LineOfCreditFacilityAdditionalBorrowingCapacity
Namespace Prefix: | trex_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Percentage points added to the reference rate to compute the variable rate on the debt instrument. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b)(1) -URI http://asc.fasb.org/extlink&oid=123466204&loc=SL6031897-161870 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(16)) -URI http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 + Details
Name: | us-gaap_DebtInstrumentCarryingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Date the credit facility terminates, in YYYY-MM-DD format. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityExpirationDate1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
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_LineOfCreditFacilityLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of borrowing capacity currently available under the credit facility (current borrowing capacity less the amount of borrowings outstanding). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_FederalFundsEffectiveSwapRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_EurodollarMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=trex_RevolverLoansPortionEffectiveOneJanuaryThroughThirtyJuneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=trex_FourthamendedandrestatedcreditagreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=trex_RevolverLoansPortionEffectiveOneJulyThroughThirtyFirstDecemberMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=trex_BoaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=trex_WellFargoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=trex_RegionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |