XML 108 R89.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Debt and Financing Lease Liabilities - Schedule of Debt (Details) - USD ($) $ in Thousands | Dec. 31, 2023 | Dec. 31, 2022
--- | --- | ---
Debt Instrument [Line Items] |  |  |
Financing leases |  | $ 13,928 | $ 16,060
Total debt and financing leases |  | 1,514,304 | 915,677
Less: current maturities, net of unamortized discount |  | 322,247 | 331,479
Less: unamortized discount and debt issuance costs |  | 21,982 | 15,563
Long-term debt and financing lease liabilities, net of current portion, unamortized discount and debt issuance costs | [1] | 1,170,075 | 568,635
Future interest payments |  | 12,468 | 14,212
Term Loan |  |  |
Debt Instrument [Line Items] |  |  |
Long-term debt, gross |  | 564,530 | 255,403
Financing facilities | Enerqos |  |  |
Debt Instrument [Line Items] |  |  |
Long-term debt, gross |  | 17,786 | 0
Master Sale-Leaseback |  |  |
Debt Instrument [Line Items] |  |  |
Long-term debt, gross |  | 185,698 | 120,923
Senior Secured Credit Facility Due in January 2024 To March 2025 |  |  |
Debt Instrument [Line Items] |  |  |
Long-term debt, gross |  | $ 279,900 | 477,900
Variable Rate Term Loan Due In June 2024 | Term Loan |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 0.00% |
Long-term debt, gross |  | $ 0 | 3,403
Term Loan Due in June 2028 | Term Loan |  |  |
Debt Instrument [Line Items] |  |  |
Stated interest rate (percent) |  | 6.11% |
Long-term debt, gross |  | $ 1,976 | 2,348
Variable Rate Term Loan Due In June 2025 | Term Loan |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 7.88% |
Long-term debt, gross |  | $ 34,453 | 37,204
Variable Rate Term Loan Due In March 2028 | Term Loan |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 7.21% |
Long-term debt, gross |  | $ 13,747 | 14,084
Term Loan Due in June 2031 | Term Loan |  |  |
Debt Instrument [Line Items] |  |  |
Stated interest rate (percent) |  | 4.95% |
Long-term debt, gross |  | $ 2,253 | 2,588
Term Loan Due in March 2028 | Term Loan |  |  |
Debt Instrument [Line Items] |  |  |
Stated interest rate (percent) |  | 5.00% |
Long-term debt, gross |  | $ 0 | 2,258
Term Loan Due in April 2027 | Term Loan |  |  |
Debt Instrument [Line Items] |  |  |
Stated interest rate (percent) |  | 4.50% |
Long-term debt, gross |  | $ 0 | 1,846
Term Loan Due in February 2034 | Term Loan |  |  |
Debt Instrument [Line Items] |  |  |
Stated interest rate (percent) |  | 5.61% |
Long-term debt, gross |  | $ 1,348 | 1,437
Variable Rate Term Loan Due In December 2027 | Term Loan |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 7.81% |
Long-term debt, gross |  | $ 7,158 | 7,874
Term Loan Due in December 2038 | Term Loan |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 5.15% |
Long-term debt, gross |  | $ 21,063 | 23,255
Variable Rate Term Loan Due In June 2033 | Term Loan |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 7.41% |
Long-term debt, gross |  | $ 6,592 | 6,951
Variable Rate Term Loan Due In October 2029 | Term Loan |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 7.86% |
Long-term debt, gross |  | $ 6,145 | 6,977
Fixed Rate Due in December 2027 | Loans Payable |  |  |
Debt Instrument [Line Items] |  |  |
Stated interest rate (percent) |  | 3.58% |
Long-term debt, gross |  | $ 2,004 | 2,425
Fixed Rate Due in June 2045 | Loans Payable |  |  |
Debt Instrument [Line Items] |  |  |
Stated interest rate (percent) |  | 4.92% |
Long-term debt, gross |  | $ 3,489 | 3,474
Fixed Rate Due in March 2046 | Loans Payable |  |  |
Debt Instrument [Line Items] |  |  |
Stated interest rate (percent) |  | 3.25% |
Long-term debt, gross |  | $ 35,090 | 37,302
Variable Rate Term Loan Due In July 2030 | Term Loan |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 9.01% |
Long-term debt, gross |  | $ 2,140 | 2,915
Variable Rate Term Loan Due In March 2042 | Loans Payable |  |  |
Debt Instrument [Line Items] |  |  |
Stated interest rate (percent) |  | 5.45% |
Long-term debt, gross |  | $ 6,395 | 6,859
Fixed Rate Due in August 2039 | Loans Payable |  |  |
Debt Instrument [Line Items] |  |  |
Stated interest rate (percent) |  | 6.70% |
Long-term debt, gross |  | $ 349,093 | 92,203
Fixed Rate Due in December 2047 | Loans Payable |  |  |
Debt Instrument [Line Items] |  |  |
Stated interest rate (percent) |  | 5.99% |
Long-term debt, gross |  | $ 21,984 | 0
Sellers Promissory Rate Due in January 2024 | Unsecured Debt |  |  |
Debt Instrument [Line Items] |  |  |
Stated interest rate (percent) |  | 5.00% |
Long-term debt, gross |  | $ 28,294 | 0
Fixed Rate Due in April 2047 | Loans Payable |  |  |
Debt Instrument [Line Items] |  |  |
Stated interest rate (percent) |  | 5.70% |
Long-term debt, gross |  | $ 3,520 | 0
Master Sale-Leaseback Due In July 2039 | Master Sale-Leaseback |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 0.00% |
Master Sale-Leaseback Due In July 2047 | Master Sale-Leaseback |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 1.86% |
Master Sale-Leaseback Due In December 2040 | Master Sale-Leaseback |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 0.00% |
Master Sale-Leaseback Due In July 2039 To July 2047 | Master Sale-Leaseback |  |  |
Debt Instrument [Line Items] |  |  |
Long-term debt, gross |  | $ 163,504 | 104,011
Master Sale-Leaseback Due In March 2043 | Master Sale-Leaseback |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 0.00% |
Master Sale-Leaseback Due In December 2040 To March 2043 | Master Sale-Leaseback |  |  |
Debt Instrument [Line Items] |  |  |
Long-term debt, gross |  | $ 22,194 | 16,912
Senior secured credit facility | Senior Secured Credit Facility Due in January 2024 To March 2025 | Line of Credit |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 9.12% |
Long-term debt, gross |  | $ 279,900 | 477,900
Revolving Credit Facility | Line of Credit |  |  |
Debt Instrument [Line Items] |  |  |
Stated interest rate (percent) |  | 9.54% |
Long-term debt, gross |  | $ 470,248 | 45,391
Revolving Credit Facility | Senior Secured Credit Facility Due in January 2024 To March 2025 | Line of Credit |  |  |
Debt Instrument [Line Items] |  |  |
Long-term debt, gross |  | $ 139,900 | 182,900
Revolving Credit Facility | June 2020 Construction Revolver Loans Payable Due In March 2024 | Line of Credit |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 6.96% |
Long-term debt, gross |  | $ 20,705 | 39,536
Revolving Credit Facility | July 2020 Construction Revolver Loans Payable Due In June 2023 | Line of Credit |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 5.92% |
Long-term debt, gross |  | $ 0 | 5,855
Revolving Credit Facility | April 2023 Construction Credit Facility Loans Payable Due In July 2024 | Line of Credit |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 6.82% |
Long-term debt, gross |  | $ 134,415 | 0
Revolving Credit Facility | August 2023 Construction Credit Facility Loans Payable Due In August 2026 | Line of Credit |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 9.34% |
Long-term debt, gross |  | $ 278,858 | 0
Revolving Credit Facility | August 2023 Construction Revolver Loans Payable Due In April 2030 | Line of Credit |  |  |
Debt Instrument [Line Items] |  |  |
Debt interest rate (percent) |  | 6.85% |
Long-term debt, gross |  | $ 36,270 | $ 0
[1] | Includes restricted assets of consolidated variable interest entities (“VIEs”) of $312,701 as of December 31, 2023 and $213,913 as of December 31, 2022. Includes liabilities of consolidated VIEs of $199,063 as of December 31, 2023 and $50,729 as of December 31, 2022. See Note 11.

X
- Definition Long-Term Debt And Capital Lease Obligations, Gross + References No definition available. + Details
Name: | amrc_LongTermDebtAndCapitalLeaseObligationsGross
Namespace Prefix: | amrc_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Long Term Debt And Finance Lease Obligations Current + References No definition available. + Details
Name: | amrc_LongTermDebtAndFinanceLeaseObligationsCurrent
Namespace Prefix: | amrc_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479853/942-210-S99-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-4 + Details
Name: | us-gaap_DebtInstrumentCarryingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

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 Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482900/835-30-50-1 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(f)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.12-04(a)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-3 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 5: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69B -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69B Reference 6: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69C -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69C Reference 7: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69E -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69E Reference 8: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69F -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69F Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 11: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (h) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1D -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1D Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1D -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1D Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1D -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1D Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1E -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1E Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1E -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1E Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1E -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1E Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1F -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1F Reference 22: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1F -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1F Reference 23: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1F -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1F Reference 24: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1F -Subparagraph (b)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1F Reference 25: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1I -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1I + Details
Name: | us-gaap_DebtInstrumentLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Weighted average interest rate of debt outstanding. + References No definition available. + Details
Name: | us-gaap_DebtWeightedAverageInterestRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount, after accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482925/835-30-45-3 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1D -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1D + Details
Name: | us-gaap_DeferredFinanceCostsNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Present value of lessee's discounted obligation for lease payments from finance lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org//1943274/2147478964/842-20-50-6 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479041/842-20-45-1 + Details
Name: | us-gaap_FinanceLeaseLiability
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for finance lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org//1943274/2147478964/842-20-50-6 + Details
Name: | us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of long-term debt and lease obligation, classified as noncurrent. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)(a)(2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479440/944-210-S99-1 + Details
Name: | us-gaap_LongTermDebtAndCapitalLeaseObligations
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=amrc_TermLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=amrc_FinancingFacilitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=amrc_EnerqosMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=amrc_MasterSaleLeasebackMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_SeniorSecuredCreditFacilityDueInJanuary2024ToMarch2025Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_VariableRateTermLoanDueInJune2024Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_SixPointOneOneZeroPercentTermNoteDueInJune2028Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_VariableRateTermLoanDueInJune2025Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_VariableRateTermLoanDueInMarch2028Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_FourPointNineFivePercentTermNotesDueInJune2031Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_FivePointZeroPercentTermNoteDueInMarch2028Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_FourPointFiveZeroPercentTermNoteDueInApril2027Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_FivePointSixOnePercentTermNoteDueInFebruary2034Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_VariableRateTermLoanDueInDecember2027Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_FivePointOneFivePercentTermLoanDueInDecember2038Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_VariableRateTermLoanDueInJune2033Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_VariableRateTermLoanDueInOctober2029Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_FixedRateNotePayableInQuarterlyInstallmentsDueInDecember2027Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_LoansPayableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_FixedRateNotePayableInQuarterlyInstallmentsDueInJune2045Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_FixedRateNotePayableInQuarterlyInstallmentsDueInMarch2046Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_VariableRateTermLoanPayableInQuarterlyInstallmentsDueInJuly2030Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_FixedRateNotePayableInQuarterlyInstallmentsDueInMarch2042Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_FixedRateNotePayableInQuarterlyInstallmentsDueInAugust2039Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_FixedRateNotePayableInQuarterlyInstallmentsDueInDecember2047Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_SellersPromissoryNotePayableInQuarterlyInstallmentsDueInJanuary2024Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_UnsecuredDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_FixedRateNotePayableInQuarterlyInstallmentsDueInApril2047Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_MasterSaleLeasebackDueInJuly2039Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_MasterSaleLeasebackDueInJuly2047Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_MasterSaleLeasebackInDecember2040Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_MasterSaleLeasebackDueInJuly2039ToJuly2047Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_MasterSaleLeasebackDueInMarch2043Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_MasterSaleLeasebackDueInDecember2040ToMarch2043Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=amrc_RevolvingSeniorSecuredCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_LineOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_ConstructionRevolverLoansPayableDueInMarch2024Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_ConstructionRevolverLoansPayableDueInJune2023Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_ConstructionCreditFacilityLoansPayableDueInJuly2024Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_ConstructionCreditFacilityLoansPayableDueInAugust2026Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=amrc_ConstructionRevolverLoansPayableDueInApril2030Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |