XML 20 R29.htm IDEA: XBRL DOCUMENT v2.4.1.9
Debt - Additional Information (Detail) (USD $)
3 Months Ended
Mar. 31, 2015
Nov. 20, 2014
Line of Credit Facility [Line Items]    
Outstanding borrowings under the revolver loans $ 84,000,000us-gaap_LineOfCredit  
Second Amended Credit Agreement [Member]    
Line of Credit Facility [Line Items]    
Termination date of the Credit Agreement Nov. 20, 2019  
Outstanding borrowings under the revolver loans 84,000,000us-gaap_LineOfCredit
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
 
Remaining available borrowing capacity 66,000,000us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
 
Revolver Loans Portion Effective January 1 through June 30 [Member] | Second Amended Credit Agreement [Member]    
Line of Credit Facility [Line Items]    
Revolving loans in a collective maximum principal amount   150,000,000us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
/ us-gaap_DebtInstrumentAxis
= trex_RevolverLoansPortionEffectiveOneJanuaryThroughThirtyJuneMember
Revolver Loans Portion Effective July 1 through December 31 [Member] | Second Amended Credit Agreement [Member]    
Line of Credit Facility [Line Items]    
Revolving loans in a collective maximum principal amount   $ 100,000,000us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
/ us-gaap_DebtInstrumentAxis
= trex_RevolverLoansPortionEffectiveOneJulyThroughThirtyFirstDecemberMember