XML 68 R54.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Debt - Schedule Of Debt (Detail) | 12 Months Ended
--- | ---
Dec. 31, 2021
Pricing Tier One [Member] |
Line of Credit Facility [Line Items] |
Consolidated Debt to Consolidated EBITDA Ratio | > 2.50:1.00
Revolving B Commitment Fee | 0.60%
Pricing Tier Two [Member] |
Line of Credit Facility [Line Items] |
Consolidated Debt to Consolidated EBITDA Ratio | < 2.50:1.00 but > 2.00:1.00
Revolving B Commitment Fee | 0.55%
Pricing Tier Three [Member] |
Line of Credit Facility [Line Items] |
Consolidated Debt to Consolidated EBITDA Ratio | < 2.00:1.00 but > 1.50:1.00
Revolving B Commitment Fee | 0.50%
Pricing Tier Four [Member] |
Line of Credit Facility [Line Items] |
Consolidated Debt to Consolidated EBITDA Ratio | < 1.50:1.00
Revolving B Commitment Fee | 0.45%
London Interbank Offered Rate (LIBOR) [Member] | Pricing Tier One [Member] |
Line of Credit Facility [Line Items] |
Eurodollar Rate Loans / LIBOR Index | 2.75%
London Interbank Offered Rate (LIBOR) [Member] | Pricing Tier Two [Member] |
Line of Credit Facility [Line Items] |
Eurodollar Rate Loans / LIBOR Index | 2.50%
London Interbank Offered Rate (LIBOR) [Member] | Pricing Tier Three [Member] |
Line of Credit Facility [Line Items] |
Eurodollar Rate Loans / LIBOR Index | 2.25%
London Interbank Offered Rate (LIBOR) [Member] | Pricing Tier Four [Member] |
Line of Credit Facility [Line Items] |
Eurodollar Rate Loans / LIBOR Index | 1.80%
Base Rate [Member] | Pricing Tier One [Member] |
Line of Credit Facility [Line Items] |
Base Rate Loans | 1.75%
Base Rate [Member] | Pricing Tier Two [Member] |
Line of Credit Facility [Line Items] |
Base Rate Loans | 1.50%
Base Rate [Member] | Pricing Tier Three [Member] |
Line of Credit Facility [Line Items] |
Base Rate Loans | 1.25%
Base Rate [Member] | Pricing Tier Four [Member] |
Line of Credit Facility [Line Items] |
Base Rate Loans | 0.80%

X
- Definition Description Of Debt To Ebitda Ratio + References No definition available. + Details
Name: | trex_DescriptionOfDebtToEbitdaRatio
Namespace Prefix: | trex_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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 Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 1B -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611 Reference 2: 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(a)(1)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The fee, expressed as a percentage of the line of credit facility, for the line of credit facility regardless of whether the facility has been used. + References No definition available. + Details
Name: | us-gaap_LineOfCreditFacilityCommitmentFeePercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
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
- Details
Name: | trex_TierAxis=trex_PricingTierOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | trex_TierAxis=trex_PricingTierTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | trex_TierAxis=trex_PricingTierThreeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | trex_TierAxis=trex_PricingTierFourMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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