XML 56 R43.htm IDEA: XBRL DOCUMENT v3.22.4
Sale of Trex Commercial Products, Inc. - Additional Information (Detail) - USD ($)
$ in Thousands
12 Months Ended
Dec. 30, 2022
Dec. 31, 2022
Subsidiary or Equity Method Investee [Line Items]    
Proceeds from sale of assets   $ 7,290
Gain (loss) on disposition of stock in subsidiary   $ (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)