Annual report pursuant to Section 13 and 15(d)

Long-Term Debt - Additional Information (Details)

v2.4.1.9
Long-Term Debt - Additional Information (Details) (USD $)
12 Months Ended 0 Months Ended 13 Months Ended 0 Months Ended
Dec. 31, 2014
Dec. 31, 2013
Dec. 31, 2012
Mar. 12, 2014
fiscal_quarter
Feb. 27, 2007
Mar. 31, 2010
Mar. 31, 2010
Sep. 30, 2014
Jun. 30, 2014
Mar. 31, 2014
Jun. 30, 2011
Jan. 30, 2006
Tranche
Sep. 28, 2007
Feb. 28, 2009
Mar. 31, 2011
Oct. 03, 2011
Oct. 31, 2012
Line of Credit Facility [Line Items]                                  
Long-term debt value, carrying value $ 102,292,000us-gaap_LongTermDebt $ 116,196,000us-gaap_LongTermDebt                              
Repayments of Long-term Debt 18,392,000us-gaap_RepaymentsOfLongTermDebt 14,669,000us-gaap_RepaymentsOfLongTermDebt 5,587,000us-gaap_RepaymentsOfLongTermDebt                            
Revolving Credit Facility                                  
Line of Credit Facility [Line Items]                                  
Current borrowing capacity                     60,000,000us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
           
Additional borrowing capacity                     25,000,000amrc_LineOfCreditFacilityAdditionalBorrowingCapacity
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
           
Amount outstanding 5,000,000us-gaap_LineOfCredit
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
0us-gaap_LineOfCredit
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
                             
Number of Consecutive Fiscal Quarters with Waived Compliance Requirements       4amrc_NumberofConsecutiveFiscalQuarterswithWaivedComplianceRequirements
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
                         
Debt Covenant Minimum EBITDA Reduced Requirement, Remainder of Fiscal Quarter       16,500amrc_DebtCovenantMinimumEBITDAReducedRequirementRemainderofFiscalQuarter
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
                         
Debt Covenant Minimum EBITDA Reduced Requirement, Second Fiscal Quarter       22,000amrc_DebtCovenantMinimumEBITDAReducedRequirementSecondFiscalQuarter
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
                         
Debt Covenant Minimum EBITDA Reduced Requirement, Third Fiscal Quarter       24,000amrc_DebtCovenantMinimumEBITDAReducedRequirementThirdFiscalQuarter
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
                         
Debt Covenant Minimum EBITDA Reduced Requirement, Fourth Fiscal Quarter       27,000amrc_DebtCovenantMinimumEBITDAReducedRequirementFourthFiscalQuarter
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
                         
Debt Covenant, Minimum EBITDA Requirement               2.0amrc_DebtCovenantMinimumEBITDARequirement
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
2.25amrc_DebtCovenantMinimumEBITDARequirement
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
2.5amrc_DebtCovenantMinimumEBITDARequirement
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
             
Debt Covenant Minimum, Cash Flow to Debt Service Ratio, Remainder of Fiscal Quarter       1.25amrc_DebtCovenantMinimumCashFlowtoDebtServiceRatioRemainderofFiscalQuarter
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
                         
Debt Covenant Minimum, Cash Flow to Debt Service Ratio, Second Fiscal Quarter       1.5amrc_DebtCovenantMinimumCashFlowtoDebtServiceRatioSecondFiscalQuarter
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
                         
Debt Instrument, Increase (Decrease) in Basis Spread on Variable Rate       0.25%amrc_DebtInstrumentIncreaseDecreaseinBasisSpreadonVariableRate
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
                         
Debt Instrument, Increase (Decrease) in Basis Spread on Prime Rate       0.25%amrc_DebtInstrumentIncreaseDecreaseinBasisSpreadonPrimeRate
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
                         
Senior secured credit facility, due June 2016, interest at varying rates monthly in arrears                                  
Line of Credit Facility [Line Items]                                  
Long-term debt value, carrying value 25,000,000us-gaap_LongTermDebt
/ us-gaap_CreditFacilityAxis
= amrc_RevolvingSeniorSecuredCreditFacilityMember
25,714,000us-gaap_LongTermDebt
/ us-gaap_CreditFacilityAxis
= amrc_RevolvingSeniorSecuredCreditFacilityMember
                             
Term Loan                                  
Line of Credit Facility [Line Items]                                  
Long-term debt value, carrying value 20,000,000us-gaap_LongTermDebt
/ us-gaap_CreditFacilityAxis
= amrc_TermLoanMember
                               
London Interbank Offered Rate (LIBOR) | Revolving Credit Facility                                  
Line of Credit Facility [Line Items]                                  
Debt Instrument, Prime Rate       0.50%amrc_DebtInstrumentPrimeRate
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
/ us-gaap_VariableRateAxis
= us-gaap_LondonInterbankOfferedRateLIBORMember
                         
Debt Instrument, Basis Spread on Variable Rate       2.00%us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
/ us-gaap_CreditFacilityAxis
= us-gaap_RevolvingCreditFacilityMember
/ us-gaap_VariableRateAxis
= us-gaap_LondonInterbankOfferedRateLIBORMember
                         
Notes Payable to Banks | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Original principal amount                     40,000,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_CreditFacilityAxis
= amrc_TermLoanMember
/ us-gaap_DebtInstrumentAxis
= us-gaap_NotesPayableToBanksMember
           
Principal payments due in quarterly installments 1,429,000us-gaap_DebtInstrumentPeriodicPaymentPrincipal
/ us-gaap_CreditFacilityAxis
= amrc_TermLoanMember
/ us-gaap_DebtInstrumentAxis
= us-gaap_NotesPayableToBanksMember
                               
8.673% term loan payable in quarterly installments through December 2015 | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Original principal amount         7,250,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_DebtInstrumentAxis
= amrc_EightPointSixSevenThreePercentTermLoanMaturingInDecember2015Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                       
Long-term debt value, carrying value 0us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_EightPointSixSevenThreePercentTermLoanMaturingInDecember2015Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
1,667,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_EightPointSixSevenThreePercentTermLoanMaturingInDecember2015Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                             
Principal payments due in quarterly installments         218,000us-gaap_DebtInstrumentPeriodicPaymentPrincipal
/ us-gaap_DebtInstrumentAxis
= amrc_EightPointSixSevenThreePercentTermLoanMaturingInDecember2015Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                       
Stated interest rate         8.673%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_DebtInstrumentAxis
= amrc_EightPointSixSevenThreePercentTermLoanMaturingInDecember2015Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                       
Variable rate construction to term loan payable in quarterly installments through December 2024                                  
Line of Credit Facility [Line Items]                                  
Long-term debt value, carrying value 13,638,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_VariableRateTermLoanDueInDecember2024Member
18,558,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_VariableRateTermLoanDueInDecember2024Member
                             
Variable rate construction to term loan payable in quarterly installments through December 2024 | Variable rate construction to term loan payable in quarterly installments through June 2028                                  
Line of Credit Facility [Line Items]                                  
Effective interest rate 3.483%us-gaap_DebtInstrumentInterestRateEffectivePercentage
/ us-gaap_DebtInstrumentAxis
= amrc_VariableRateTermLoanDueInDecember2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_VariableRateConstructionTermLoanMember
                               
Variable rate construction to term loan payable in quarterly installments through December 2024 | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Original principal amount                       17,156,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_DebtInstrumentAxis
= amrc_VariableRateTermLoanDueInDecember2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
         
Long-term debt value, carrying value 12,436,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_VariableRateTermLoanDueInDecember2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
13,251,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_VariableRateTermLoanDueInDecember2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                             
Number of Tranches                       2amrc_NumberOfTranches
/ us-gaap_DebtInstrumentAxis
= amrc_VariableRateTermLoanDueInDecember2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
         
Variable Rate Construction Term Loan Payable in semi annual installments through February 26, 2021 | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Effective interest rate 1.983%us-gaap_DebtInstrumentInterestRateEffectivePercentage
/ us-gaap_DebtInstrumentAxis
= amrc_VariableRateConstructionTermLoanPayableInSemiAnnualInstallmentsThroughFebruary262021Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                               
Variable Rate Construction Term Loan Payable in semi annual installments through February 26, 2021 | Term Loan One                                  
Line of Credit Facility [Line Items]                                  
Original principal amount                         3,240,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_DebtInstrumentAxis
= amrc_VariableRateConstructionTermLoanPayableInSemiAnnualInstallmentsThroughFebruary262021Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanOneMember
       
Stated interest rate                         6.345%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_DebtInstrumentAxis
= amrc_VariableRateConstructionTermLoanPayableInSemiAnnualInstallmentsThroughFebruary262021Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanOneMember
       
Variable Rate Construction Term Loan Payable in semi annual installments through February 26, 2021 | Minimum | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Long-term debt value, carrying value 96,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_VariableRateConstructionTermLoanPayableInSemiAnnualInstallmentsThroughFebruary262021Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
                               
Variable Rate Construction Term Loan Payable in semi annual installments through February 26, 2021 | Maximum | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Long-term debt value, carrying value 275,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_VariableRateConstructionTermLoanPayableInSemiAnnualInstallmentsThroughFebruary262021Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
                               
6.345% term loan payable in semi-annual installments through June 2024 | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Long-term debt value, carrying value 10,468,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointThreeFourFivePercentTermNotespayableinsemiannualinstallmentsDueJune2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
11,059,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointThreeFourFivePercentTermNotespayableinsemiannualinstallmentsDueJune2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                             
Effective interest rate 1.858%us-gaap_DebtInstrumentInterestRateEffectivePercentage
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointThreeFourFivePercentTermNotespayableinsemiannualinstallmentsDueJune2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                               
6.345% term loan payable in semi-annual installments through June 2024 | Term Loan Two                                  
Line of Credit Facility [Line Items]                                  
Original principal amount                         13,081,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointThreeFourFivePercentTermNotespayableinsemiannualinstallmentsDueJune2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanTwoMember
       
6.345% term loan payable in semi-annual installments through June 2024 | Minimum | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Principal payments due in quarterly installments 248,000us-gaap_DebtInstrumentPeriodicPaymentPrincipal
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointThreeFourFivePercentTermNotespayableinsemiannualinstallmentsDueJune2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
                               
6.345% term loan payable in semi-annual installments through June 2024 | Maximum | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Principal payments due in quarterly installments 1,179,000us-gaap_DebtInstrumentPeriodicPaymentPrincipal
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointThreeFourFivePercentTermNotespayableinsemiannualinstallmentsDueJune2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
                               
Construction Loans | Variable rate construction to term loan payable in quarterly installments through June 2028                                  
Line of Credit Facility [Line Items]                                  
Original principal amount                           37,906,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_DebtInstrumentAxis
= us-gaap_ConstructionLoansMember
/ us-gaap_LongtermDebtTypeAxis
= amrc_VariableRateConstructionTermLoanMember
     
Draws on line of credit           27,868,000us-gaap_ProceedsFromLinesOfCredit
/ us-gaap_DebtInstrumentAxis
= us-gaap_ConstructionLoansMember
/ us-gaap_LongtermDebtTypeAxis
= amrc_VariableRateConstructionTermLoanMember
                     
Construction Loans | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Original principal amount           27,868,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_DebtInstrumentAxis
= us-gaap_ConstructionLoansMember
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
27,868,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_DebtInstrumentAxis
= us-gaap_ConstructionLoansMember
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                   
Principal payments due in quarterly installments             2,424,000us-gaap_DebtInstrumentPeriodicPaymentPrincipal
/ us-gaap_DebtInstrumentAxis
= us-gaap_ConstructionLoansMember
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                   
Repayments of Long-term Debt 3,712,000us-gaap_RepaymentsOfLongTermDebt
/ us-gaap_DebtInstrumentAxis
= us-gaap_ConstructionLoansMember
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                               
Construction Loans | Minimum | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Principal payments due in quarterly installments 109,000us-gaap_DebtInstrumentPeriodicPaymentPrincipal
/ us-gaap_DebtInstrumentAxis
= us-gaap_ConstructionLoansMember
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
                               
Construction Loans | Maximum | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Principal payments due in quarterly installments 1,149,000us-gaap_DebtInstrumentPeriodicPaymentPrincipal
/ us-gaap_DebtInstrumentAxis
= us-gaap_ConstructionLoansMember
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
                               
6.500% term loan payable in monthly installments through October 2017 | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Original principal amount 755,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointFiveZeroZeroPercentTermNoteDueInOctober2017Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                               
Long-term debt value, carrying value 350,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointFiveZeroZeroPercentTermNoteDueInOctober2017Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
459,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointFiveZeroZeroPercentTermNoteDueInOctober2017Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                             
Principal payments due in quarterly installments 11,000us-gaap_DebtInstrumentPeriodicPaymentPrincipal
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointFiveZeroZeroPercentTermNoteDueInOctober2017Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                               
Stated interest rate 6.50%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointFiveZeroZeroPercentTermNoteDueInOctober2017Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                               
7.250% term loan payable in quarterly installments through March 2021 | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Original principal amount                             5,500,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_DebtInstrumentAxis
= amrc_SevenPointTwoFiveZeroPercentTermNoteDueInMarch2021Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
   
Long-term debt value, carrying value 3,746,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_SevenPointTwoFiveZeroPercentTermNoteDueInMarch2021Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
4,258,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_SevenPointTwoFiveZeroPercentTermNoteDueInMarch2021Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                             
Stated interest rate                             7.25%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_DebtInstrumentAxis
= amrc_SevenPointTwoFiveZeroPercentTermNoteDueInMarch2021Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
   
7.250% term loan payable in quarterly installments through March 2021 | Minimum | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Principal payments due in quarterly installments 133,000us-gaap_DebtInstrumentPeriodicPaymentPrincipal
/ us-gaap_DebtInstrumentAxis
= amrc_SevenPointTwoFiveZeroPercentTermNoteDueInMarch2021Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
                               
7.250% term loan payable in quarterly installments through March 2021 | Maximum | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Principal payments due in quarterly installments 171,000us-gaap_DebtInstrumentPeriodicPaymentPrincipal
/ us-gaap_DebtInstrumentAxis
= amrc_SevenPointTwoFiveZeroPercentTermNoteDueInMarch2021Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
                               
6.110% term loan payable in monthly installments through June 2028 | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Original principal amount                               7,380,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointOneOneZeroPercentTermNoteDueInSeptember2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
 
Long-term debt value, carrying value 6,081,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointOneOneZeroPercentTermNoteDueInSeptember2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
7,028,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointOneOneZeroPercentTermNoteDueInSeptember2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                             
Stated interest rate                               6.11%us-gaap_DebtInstrumentInterestRateStatedPercentage
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointOneOneZeroPercentTermNoteDueInSeptember2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
 
6.110% term loan payable in monthly installments through June 2028 | Minimum | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Principal payments due in quarterly installments 0us-gaap_DebtInstrumentPeriodicPaymentPrincipal
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointOneOneZeroPercentTermNoteDueInSeptember2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
                               
6.110% term loan payable in monthly installments through June 2028 | Maximum | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Principal payments due in quarterly installments 81,000us-gaap_DebtInstrumentPeriodicPaymentPrincipal
/ us-gaap_DebtInstrumentAxis
= amrc_SixPointOneOneZeroPercentTermNoteDueInSeptember2024Member
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
                               
Three Point Two Three Three Term Loan Payable In Quarterly Installments Due March Two Thousand Twenty [Member] | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Original principal amount                                 47,200,000us-gaap_DebtInstrumentFaceAmount
/ us-gaap_DebtInstrumentAxis
= amrc_ThreePointTwoThreeThreeTermLoanPayableInQuarterlyInstallmentsDueMarchTwoThousandTwentyMember
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
Long-term debt value, carrying value 41,041,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_ThreePointTwoThreeThreeTermLoanPayableInQuarterlyInstallmentsDueMarchTwoThousandTwentyMember
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
45,261,000us-gaap_LongTermDebt
/ us-gaap_DebtInstrumentAxis
= amrc_ThreePointTwoThreeThreeTermLoanPayableInQuarterlyInstallmentsDueMarchTwoThousandTwentyMember
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                             
Effective interest rate 3.233%us-gaap_DebtInstrumentInterestRateEffectivePercentage
/ us-gaap_DebtInstrumentAxis
= amrc_ThreePointTwoThreeThreeTermLoanPayableInQuarterlyInstallmentsDueMarchTwoThousandTwentyMember
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
                               
Three Point Two Three Three Term Loan Payable In Quarterly Installments Due March Two Thousand Twenty [Member] | Minimum | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Principal payments due in quarterly installments 389,000us-gaap_DebtInstrumentPeriodicPaymentPrincipal
/ us-gaap_DebtInstrumentAxis
= amrc_ThreePointTwoThreeThreeTermLoanPayableInQuarterlyInstallmentsDueMarchTwoThousandTwentyMember
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
                               
Three Point Two Three Three Term Loan Payable In Quarterly Installments Due March Two Thousand Twenty [Member] | Maximum | Term Loan                                  
Line of Credit Facility [Line Items]                                  
Principal payments due in quarterly installments $ 903,000us-gaap_DebtInstrumentPeriodicPaymentPrincipal
/ us-gaap_DebtInstrumentAxis
= amrc_ThreePointTwoThreeThreeTermLoanPayableInQuarterlyInstallmentsDueMarchTwoThousandTwentyMember
/ us-gaap_LongtermDebtTypeAxis
= amrc_TermLoanMember
/ us-gaap_RangeAxis
= us-gaap_MaximumMember