| Component: (Network and Table) | |
|---|---|
| Network | 00400 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS (http://www.comfortsystemsusa.com/role/StatementConsolidatedStatementsOfCashFlows)  | 
| Table | (Implied) | 
| Reporting Entity [Axis] | 0001035983 (http://www.sec.gov/CIK) | 
| CONSOLIDATED STATEMENTS OF CASH FLOWS | Period [Axis] | ||
|---|---|---|---|
2016-01-01 - 2016-12-31  | 2015-01-01 - 2015-12-31  | 2014-01-01 - 2014-12-31  | |
CONSOLIDATED STATEMENTS OF CASH FLOWS  | |||
CASH FLOWS FROM OPERATING ACTIVITIES:  | |||
Net income including noncontrolling interests  | 64,896,000    | 57,440,000    | 28,599,000    | 
Adjustments to reconcile net income to net cash provided by operating activities  | |||
Amortization of identifiable intangible assets  | |||
Depreciation expense  | |||
Goodwill impairment  | |||
Bad debt expense (benefit)  | (  | ||
Deferred tax expense (benefit)  | (  | (  | (  | 
Amortization of debt financing costs  | |||
Gain on sale of assets  | (  | (  | (  | 
Changes in the fair value of contingent earn-out obligations  | (731,000)   | (225,000)   | 245,000    | 
Stock-based compensation expense  | |||
Changes in operating assets and liabilities, net of effects of acquisitions and divestitures—  | |||
(Increase) decrease in-  | |||
Receivables, net  | (  | (  | |
Inventories  | |||
Prepaid expenses and other current assets  | (  | ||
Costs and estimated earnings in excess of billings  | (  | ||
Other noncurrent assets  | (  | (  | (  | 
Increase (decrease) in-  | |||
Accounts payable and accrued liabilities  | (  | ||
Billings in excess of costs and estimated earnings  | (  | ||
Other long-term liabilities  | (  | ||
Net cash provided by operating activities  | |||
CASH FLOWS FROM INVESTING ACTIVITIES:  | |||
Purchases of property and equipment  | (  | (  | (  | 
Proceeds from sales of property and equipment  | |||
Cash paid for acquisitions, net of cash acquired  | (  | (  | (  | 
Net cash used in investing activities  | (  | (  | (  | 
CASH FLOWS FROM FINANCING ACTIVITIES:  | |||
Proceeds from revolving line of credit  | |||
Payments on revolving line of credit  | (  | (  | (  | 
Payments on other debt  | |||
Payments on capital lease obligations  | (  | (  | (  | 
Debt financing costs  | (  | (  | |
Payments of dividends to shareholders  | (  | (  | (  | 
Share repurchase  | (  | (  | (  | 
Shares received in lieu of tax withholding  | (  | (  | (  | 
Excess tax benefit of stock-based compensation  | |||
Proceeds from exercise of options  | |||
Distributions to noncontrolling interests  | (  | (  | |
Deferred acquisition payments  | (  | ||
Payments for contingent consideration arrangements  | (  | (  | |
Net cash provided by (used in) financing activities  | (  | (  | |
NET INCREASE (DECREASE) IN CASH AND CASH EQUIVALENTS  | (  | (  | |
CASH AND CASH EQUIVALENTS, beginning of period  | 56,464,000    | ||
CASH AND CASH EQUIVALENTS, end of period  | 32,074,000    | 56,464,000    | 32,064,000    |