Proceeds from Share Purchase Agreement Proceeds from Divestiture of Businesses Less: Accumulated amortization Accumulated amortization Finite-Lived Intangible Assets, Accumulated Amortization Unbilled receivables, noncurrent Unbilled Receivables, Noncurrent Unbilled Receivables, Noncurrent Award Timing Predetermined Award Timing Predetermined [Flag] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis] Intangible assets Intangible Assets, Gross (Excluding Goodwill) Entity File Number Entity File Number Additional Paid-In Capital Additional Paid-in Capital [Member] Valuation Approach and Technique [Domain] Valuation Approach and Technique [Domain] Tabular List, Table Tabular List [Table Text Block] Business acquisition, equity interest issued or issuable (in shares) Business Combination, Consideration Transferred, Equity Interest, Share Issued, Number of Shares Intangible Asset, Acquired, Finite-Lived [Line Items] Intangible Asset, Acquired, Finite-Lived [Line Items] New Accounting Standards New Accounting Pronouncements, Policy [Policy Text Block] Customer B Customer B [Member] Customer B Accounts payable Increase (Decrease) in Accounts Payable Schedule of Financial Instruments Measured at Fair Value Fair Value, by Balance Sheet Grouping [Table Text Block] Trading Arrangements, by Individual Trading Arrangements, by Individual [Table] Net loss per share attributable to common stockholders, basic (in dollars per share) Net loss per share attributable to common stockholders, basic (in dollars per share) Earnings Per Share, Basic Adjustment to Compensation: Adjustment to Compensation [Axis] Named Executive Officers, Footnote Named Executive Officers, Footnote [Text Block] Inventory Inventory, Gross REVENUE Revenue from Contract with Customer [Text Block] Changes in estimated fair value Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Period Increase (Decrease) Unbilled receivables, current Unbilled Receivables, Current Schedule of Segment Information for Revenue and Significant Expenses Schedule of Segment Reporting Information, by Segment [Table Text Block] Conversion price, percentage Debt Instrument, Convertible, Threshold Percentage of Stock Price Trigger Issuance of common stock upon release of restricted stock units (in shares) Stock Issued During Period, Shares, Restricted Stock Award, Net of Forfeitures Area of lease Area of Real Estate Property Debt Instrument, Redemption, Period [Axis] Debt Instrument, Redemption, Period [Axis] Remaining performance obligations Revenue, Remaining Performance Obligation, Amount Measurement Input Type [Domain] Measurement Input Type [Domain] Adjustment to Compensation, Amount Adjustment to Compensation Amount Concentration risk, percentage Concentration Risk, Percentage Unamortized Initial Purchasers' debt discount and debt issuance cost Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net Revenue expect to recognize Revenue, Remaining Performance Obligation, Percentage Other assets Increase (Decrease) in Other Operating Assets Principles of Consolidation Consolidation, Policy [Policy Text Block] Stock-based compensation Share-Based Payment Arrangement, Noncash Expense Stock options Outstanding stock options Share-Based Payment Arrangement, Option [Member] Award Timing MNPI Disclosure Award Timing MNPI Disclosure [Text Block] Property, Plant and Equipment [Table] Property, Plant and Equipment [Table] DevCo JVs Variable Interest Entity, Primary Beneficiary Variable Interest Entity, Primary Beneficiary [Member] Antidilutive Securities [Axis] Antidilutive Securities [Axis] Total Stem stockholders’ deficit Equity, Attributable to Parent Measurement Frequency [Axis] Measurement Frequency [Axis] Insider Trading Policies and Procedures [Line Items] Total stock-based compensation expense Stock-based compensation Share-Based Payment Arrangement, Expense Schedule of Energy Storage Systems, Net Property, Plant and Equipment [Table Text Block] Common stock, authorized (in shares) Common Stock, Shares Authorized Goodwill and Intangible Assets Disclosure [Abstract] Current assets: Assets, Current [Abstract] Total liabilities and stockholders’ deficit Liabilities and Equity Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] Fair Value, Recurring Fair Value, Recurring [Member] Number of Options Outstanding Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding [Roll Forward] Concentration Risk Benchmark [Axis] Concentration Risk Benchmark [Axis] Concentration of Credit Risk and Other Uncertainties Concentration Risk, Credit Risk, Policy [Policy Text Block] Senior secured notes, noncurrent Senior Notes, Noncurrent LIABILITIES AND STOCKHOLDERS’ DEFICIT Liabilities and Equity [Abstract] Cover [Abstract] Money market fund Cash and Cash Equivalents, Fair Value Disclosure Valuation Technique, Black-Scholes-Merton Model Black-Scholes-Merton Model Valuation Technique, Black-Scholes-Merton Model [Member] General and administrative General and Administrative Expense [Member] Accounting Policies [Abstract] Concentration Risk Type [Domain] Concentration Risk Type [Domain] Compensation expense, excluding stock-based compensation Compensation Expense, Excluding Stock-Based Compensation Compensation Expense, Excluding Stock-Based Compensation Non-PEO NEO Average Total Compensation Amount Non-PEO NEO Average Total Compensation Amount Debt Instrument [Line Items] Debt Instrument [Line Items] Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table] Schedule of Share-Based Compensation Arrangements by Share-Based Payment Award [Table] Adjustment to Non-PEO NEO Compensation Footnote Adjustment to Non-PEO NEO Compensation Footnote [Text Block] Pay vs Performance Disclosure [Line Items] Class of Warrant or Right [Axis] Class of Warrant or Right [Axis] Operating lease liability Operating Lease, Liability Energy storage systems not yet placed into service Energy Storage Systems Not Yet Placed Into Service [Member] Energy Storage Systems Not Yet Placed Into Service Foreign currency translation adjustment Foreign currency translation adjustments Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, Net of Tax, Portion Attributable to Parent Forgone Recovery due to Disqualification of Tax Benefits, Amount Forgone Recovery due to Disqualification of Tax Benefits, Amount Debt Instrument, Redemption, Period One Debt Instrument, Redemption, Period One [Member] Liabilities Liabilities: Liabilities [Abstract] Convertible notes, noncurrent Convertible Debt, Noncurrent Non-Rule 10b5-1 Arrangement Terminated Non-Rule 10b5-1 Arrangement Terminated [Flag] Loss before provision for income taxes Loss before provision for income taxes Income (Loss) from Continuing Operations before Income Taxes, Noncontrolling Interest Entity Shell Company Entity Shell Company Other liabilities Other Liabilities, Noncurrent Schedule of Long-term Debt Instruments [Table] Schedule of Long-Term Debt Instruments [Table] Debt Instrument, Redemption, Period [Domain] Debt Instrument, Redemption, Period [Domain] Statement of Stockholders' Equity [Abstract] Amount capitalized Share-Based Payment Arrangement, Amount Capitalized Schedule of Variable Interest Entities [Table] Variable Interest Entity [Table] Statement of Cash Flows [Abstract] Company Selected Measure Amount Company Selected Measure Amount 2028 Capped Call Options 2028 Capped Call Options [Member] 2028 Capped Call Options Award Timing MNPI Considered Award Timing MNPI Considered [Flag] Debt issuance costs Debt Issuance Costs, Gross Measurement Input Type [Axis] Measurement Input Type [Axis] Disposal Group Name [Domain] Disposal Group Name [Domain] Name Measure Name Schedule of Stock-based Compensation Expense Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Table Text Block] Secured Debt Secured Debt [Member] Schedule of Fair Value, Liabilities Measured on Recurring Basis, Changes in the Liability for the Company’s Warrants Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block] Document Fiscal Period Focus Document Fiscal Period Focus Award Timing Method Award Timing Method [Text Block] Award Type [Axis] Award Type [Axis] Deferred revenue, noncurrent Contract with Customer, Liability, Noncurrent Net carrying amount Long-Term Debt Legal Entity [Axis] Legal Entity [Axis] Total assets Assets Trading Symbol Trading Symbol RSUs vested, weighted average grant date fair value (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value Geographical [Domain] Geographical [Domain] Entity Address, City or Town Entity Address, City or Town OPERATING ACTIVITIES Cash Provided by (Used in) Operating Activity, Including Discontinued Operation [Abstract] Other segment expenses, net Segment Reporting, Other Segment Item, Amount INTANGIBLE ASSETS, NET Intangible Assets Disclosure [Text Block] Effect of exchange rate changes on cash, cash equivalents and restricted cash Effect of Exchange Rate on Cash, Cash Equivalent, Restricted Cash, and Restricted Cash Equivalent, Continuing Operation Concentration Risk Type [Axis] Concentration Risk Type [Axis] Negative working capital Working Capital Working Capital Non-PEO NEO Average Compensation Actually Paid Amount Non-PEO NEO Average Compensation Actually Paid Amount Statement of Income Location, Balance [Domain] Statement of Income Location, Balance [Domain] RSU Outstanding RSUs Restricted Stock Units (RSUs) [Member] Compensation Actually Paid vs. Other Measure Compensation Actually Paid vs. Other Measure [Text Block] Aggregate purchase price Business Combination, Consideration Transferred Assets: Assets, Fair Value Disclosure [Abstract] Yield Measurement Input, Yield [Member] Measurement Input, Yield Variable Interest Entity [Line Items] Variable Interest Entity [Line Items] Entity Emerging Growth Company Entity Emerging Growth Company Variable Interest Entities Consolidation, Variable Interest Entity, Policy [Policy Text Block] Impairment loss of energy storage systems Impairment, Long-Lived Asset, Held-for-Use Entity Common Stock, Shares Outstanding Entity Common Stock, Shares Outstanding Options outstanding, beginning of period (in shares) Options outstanding, end of period (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Number Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year [Member] Level 2 Fair Value, Inputs, Level 2 [Member] Restricted cash included in other noncurrent assets Restricted Cash and Cash Equivalent Insider Trading Policies and Procedures Not Adopted Insider Trading Policies and Procedures Not Adopted [Text Block] Business Combination [Domain] Business Combination [Domain] Number of battery energy storage system projects Number of Battery Energy Storage System Projects Number of Battery Energy Storage System Projects Disposal group, not discontinued operation, loss on disposal Disposal Group, Not Discontinued Operation, Gain (Loss) on Disposal Raicoon GmbH Raicoon GmbH [Member] Raicoon GmbH Common stock, outstanding (in shares) Common Stock, Shares, Outstanding Provision for credit losses on accounts receivable Accounts Receivable, Credit Loss Expense (Reversal) Change in fair value of warrant liability Change in fair value of warrant liability Gain on remeasurement of warrant liability Fair Value Adjustment of Warrants Schedule of Provision for Income Taxes and Effective Tax Rates Schedule of Components of Income Tax Expense (Benefit) [Table Text Block] PEO PEO [Member] Accretion of asset retirement obligations Accretion Expense, Including Asset Retirement Obligations Schedule of Disaggregation of Revenue Disaggregation of Revenue [Table Text Block] Accrued additional interest Loss Contingency Accrual, Period Increase (Decrease) United States UNITED STATES Changes in operating assets and liabilities: Adjustment to Reconcile Net Income to Cash Provided by (Used in) Operating Activity, Increase (Decrease) in Operating Capital [Abstract] Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year [Member] Accumulated Deficit Retained Earnings [Member] Number of RSUs Outstanding Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward] Effective interest percentage Debt Instrument, Interest Rate, Effective Percentage Entity Address, Postal Zip Code Entity Address, Postal Zip Code Restatement Determination Date Restatement Determination Date Share-Based Payment Arrangement [Abstract] Cash, cash equivalents and restricted cash, beginning of year Cash, cash equivalents and restricted cash, end of period Total cash, cash equivalents, and restricted cash Cash, Cash Equivalent, Restricted Cash, and Restricted Cash Equivalent, Continuing Operation Income Statement [Abstract] Provision for income taxes Provision for income taxes Income Tax Expense (Benefit) Sale of Stock [Domain] Sale of Stock [Domain] Base rent per month Lessee, Operating Lease, Base Rent, Periodic Payment Lessee, Operating Lease, Base Rent, Periodic Payment Fair Value, Nonrecurring Fair Value, Nonrecurring [Member] Warrant liability Derivative Liability, Noncurrent Preferred stock, issued (in shares) Preferred Stock, Shares Issued Intangible assets, net Total intangible assets, net Intangible Assets, Net (Excluding Goodwill) Pension Adjustments Service Cost Pension Adjustments Service Cost [Member] Dividend yield Measurement Input, Expected Dividend Rate [Member] Product and Service [Domain] Product and Service [Domain] Fair Value Hierarchy and NAV [Axis] Fair Value Hierarchy and NAV [Axis] Customer Concentration Risk Customer Concentration Risk [Member] Options vested and exercisable, weighted-average exercise price (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Exercisable, Weighted Average Exercise Price Contractual interest expense Interest Expense, Debt, Excluding Amortization Total energy storage systems, gross Property, Plant and Equipment, Gross PowerTrack software PowerTrack Software [Member] PowerTrack Software Net loss Net loss Net loss attributable to common stockholders Net Income (Loss), Including Portion Attributable to Noncontrolling Interest Restatement does not require Recovery Restatement Does Not Require Recovery [Text Block] Organization, Consolidation and Presentation of Financial Statements [Abstract] Edge hardware Edge Hardware [Member] Edge Hardware Non-cash lease expense Operating Lease, Right-of-Use Asset, Periodic Reduction Compensation Actually Paid vs. Company Selected Measure Compensation Actually Paid vs. Company Selected Measure [Text Block] City Area Code City Area Code Award Timing, How MNPI Considered Award Timing, How MNPI Considered [Text Block] All Trading Arrangements All Trading Arrangements [Member] Equity Awards Adjustments, Footnote Equity Awards Adjustments, Footnote [Text Block] Total Shareholder Return Vs Peer Group Total Shareholder Return Vs Peer Group [Text Block] Redemption price, percentage Debt Instrument, Redemption Price, Percentage Accrued liabilities Accrued Liabilities, Current Capital expenditures on internally-developed software Payments to Develop Software RSUs outstanding, beginning of period (in shares) RSUs outstanding, ending of period (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number Commitments and Contingencies Disclosure [Abstract] Class of Warrant or Right [Line Items] Class of Warrant or Right [Line Items] Schedule of Contract Balances Contract with Customer, Contract Asset, Contract Liability, and Receivable [Table Text Block] INVESTING ACTIVITIES Cash Provided by (Used in) Investing Activity, Including Discontinued Operation [Abstract] General and administrative General and Administrative Expense Remaining unrecognized stock-based compensation expense for stock options Share-Based Payment Arrangement, Nonvested Award, Option, Cost Not yet Recognized, Amount Pay vs Performance Disclosure Pay vs Performance Disclosure [Table] Net cash (used in) provided by operating activities Net cash used in operating activities Cash Provided by (Used in) Operating Activity, Including Discontinued Operation Disposal Group, Disposed of by Sale, Not Discontinued Operations Disposal Group, Disposed of by Sale, Not Discontinued Operations [Member] Term Debt Instrument, Term Preferred stock, par value (in dollars per share) Preferred Stock, Par or Stated Value Per Share Subsequent Event Subsequent Event [Member] Equity Valuation Assumption Difference, Footnote Equity Valuation Assumption Difference, Footnote [Text Block] Debt, measurement input Long-Term Debt, Measurement Input PEO Total Compensation Amount PEO Total Compensation Amount Depreciation expense Depreciation Long-term Debt, Type [Axis] Long-Term Debt, Type [Axis] Money market fund Money Market Funds [Member] Debt Instrument, Redemption, Period Three Debt Instrument, Redemption, Period Three [Member] Denominator: Weighted Average Number of Shares Outstanding, Basic [Abstract] Equity Components [Axis] Equity Components [Axis] Property, Plant and Equipment [Line Items] Property, Plant and Equipment [Line Items] Rest of the world Non-US [Member] Convertible Notes Convertible Debt [Member] BUSINESS Nature of Operations [Text Block] Non-Rule 10b5-1 Arrangement Adopted Non-Rule 10b5-1 Arrangement Adopted [Flag] Concentration Risk [Table] Concentration Risk [Table] Number of reportable segments Number of Reportable Segments SUPPLEMENTAL DISCLOSURE OF CASH FLOW INFORMATION Supplemental Cash Flow Information [Abstract] Other Performance Measure, Amount Other Performance Measure, Amount Weighted- Average Exercise Price Per Share Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Exercise Price [Abstract] Entity Address, State or Province Entity Address, State or Province Antidilutive Security, Excluded EPS Calculation [Table] Antidilutive Security, Excluded EPS Calculation [Table] Total current liabilities Liabilities, Current Derivative Instrument [Axis] Derivative Instrument [Axis] Individual: Individual [Axis] Fair Value of Financial Instruments Fair Value of Financial Instruments, Policy [Policy Text Block] Other current assets Other current assets Other Assets, Current Research and development Research and Development Expense [Member] Warrant Liability Warrant Liability [Member] Warrant Liability Entity [Domain] Entity [Domain] Amortization Amortization Net cash used in investing activities Cash Provided by (Used in) Investing Activity, Including Discontinued Operation Period expected to be recognized as revenue Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Period Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table [Member] Cash paid for interest Interest Paid, Excluding Capitalized Interest, Operating Activity Document Fiscal Year Focus Document Fiscal Year Focus Basis of Presentation Basis of Accounting, Policy [Policy Text Block] Operating lease right-of-use assets Operating Lease, Right-of-Use Asset Forgone Recovery, Explanation of Impracticability Forgone Recovery, Explanation of Impracticability [Text Block] Effective tax rate Effective Income Tax Rate Reconciliation, Percent Entity Interactive Data Current Entity Interactive Data Current Weighted average period for recognition of stock-based compensation expense Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition Contract With Customer, Liability [Roll Forward] Contract With Customer, Liability [Roll Forward] Contract With Customer, Liability Equity [Abstract] Fair value hierarchy Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Transfers, Net Upfront or annual incentive payments received Contract with Customer, Liability, Upfront Or Annual Incentive Payments Received Contract with Customer, Liability, Upfront Or Annual Incentive Payments Received Building Building [Member] Write-offs, recoveries and other charges against allowance Accounts Receivable, Write-Offs, Recoveries, and Other Charges Accounts Receivable, Write-Offs, Recoveries, and Other Charges SEGMENT INFORMATION Segment Reporting Disclosure [Text Block] Disaggregation of Revenue [Table] Disaggregation of Revenue [Table] Schedule of Acquired Finite-Lived Intangible Asset by Major Class [Table] Schedule of Acquired Finite-Lived Intangible Asset by Major Class [Table] Long-Lived Tangible Asset [Axis] Long-Lived Tangible Asset [Axis] Class of Warrant or Right [Table] Class of Warrant or Right [Table] Increase (Decrease) in Stockholders' Equity [Roll Forward] Increase (Decrease) in Stockholders' Equity [Roll Forward] Logan Energy Storage ULC Logan Energy Storage ULC [Member] Logan Energy Storage ULC Revenue recognized related to deferred revenue generated during the period Contract with Customer, Liability, Revenue Recognized During The Period Contract with Customer, Liability, Revenue Recognized During The Period Compensation Actually Paid vs. Total Shareholder Return Compensation Actually Paid vs. Total Shareholder Return [Text Block] Volatility Measurement Input, Price Volatility [Member] Depreciation and amortization expense Depreciation and amortization Depreciation, Depletion and Amortization Other noncurrent assets Other Assets, Noncurrent Conversion ratio Debt Instrument, Convertible, Conversion Ratio Customer [Domain] Customer [Domain] Entity Central Index Key Entity Central Index Key PEO Name PEO Name Conversion price (in dollars per share) Debt Instrument, Convertible, Conversion Price Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year [Member] Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] Outstanding Aggregate Erroneous Compensation Amount Outstanding Aggregate Erroneous Compensation Amount Accounts Receivable, Net Accounts Receivable [Policy Text Block] Beginning balance Ending balance Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability Value Arrangement Duration Trading Arrangement Duration Schedule of Segment Reporting Information, by Segment [Table] Schedule of Segment Reporting Information, by Segment [Table] Deferred revenue, current portion Contract with Customer, Liability, Current Segments [Axis] Segments [Axis] Exercise price (in dollars per share) Class of Warrant or Right, Exercise Price of Warrants or Rights Exercise Price Award Exercise Price Fair Value by Liability Class [Domain] Fair Value by Liability Class [Domain] Entity Filer Category Entity Filer Category Hardware revenue Hardware [Member] Hardware Local Phone Number Local Phone Number Additional 402(v) Disclosure Additional 402(v) Disclosure [Text Block] Remaining unrecognized stock-based compensation expense for RSUs Share-Based Payment Arrangement, Nonvested Award, Excluding Option, Cost Not yet Recognized, Amount Energy storage systems, net Impairment carrying value of the assets Contract with Customer, Asset, after Allowance for Credit Loss, Noncurrent Subsequent Event Type [Axis] Subsequent Event Type [Axis] STOCK-BASED COMPENSATION Share-Based Payment Arrangement [Text Block] Paid-In-Kind Interest Paid-In-Kind Interest [Member] Paid-in-Kind Interest ASSETS Assets Assets [Abstract] Underlying Security Market Price Change Underlying Security Market Price Change, Percent Class of Warrant or Right [Domain] Class of Warrant or Right [Domain] Energy storage systems placed into service Energy Storage Systems Placed Into Service [Member] Energy Storage Systems Placed Into Service Debt Instrument [Axis] Debt Instrument [Axis] RSUs forfeited, weighted average grant date fair value (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value FAIR VALUE MEASUREMENTS Fair Value Disclosures [Text Block] Gain on extinguishment of debt Gain (Loss) on Extinguishment of Debt Stockholders’ deficit: Equity, Attributable to Parent [Abstract] Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year [Member] Entity Address, Address Line One Entity Address, Address Line One Entity Address, Address Line Two Entity Address, Address Line Two Research and development Research and Development Expense Accumulated Other Comprehensive Income AOCI Attributable to Parent [Member] Fixed interest rate, annual Debt Instrument, Interest Rate, Stated Percentage Accrued expenses and other liabilities Increase (Decrease) in Accrued Liabilities and Other Operating Liabilities Accounts receivable, allowances Accounts Receivable, Allowance for Credit Loss, Current Lease liabilities, noncurrent Operating Lease, Liability, Noncurrent Reportable Segment Reportable Segment [Member] Reportable Segment Significant Customers Major Customers, Policy [Policy Text Block] Fair Value as of Grant Date Award Grant Date Fair Value Property, Plant and Equipment [Abstract] Entity Registrant Name Entity Registrant Name Outstanding 2030 Convertible Notes (if converted) Outstanding 2030 Convertible Notes [Member] Outstanding 2030 Convertible Notes Stock Price or TSR Estimation Method Stock Price or TSR Estimation Method [Text Block] Provision for expected credit losses Accounts Receivable, Provision for Expected Credit Losses Accounts Receivable, Provision for Expected Credit Losses RSUs granted (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period RSUs forfeited (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeited in Period Options vested and exercisable (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Exercisable, Number Interest Paid In Cash Interest Paid In Cash [Member] Interest Paid In Cash Debt Instrument, Redemption, Period Two Debt Instrument, Redemption, Period Two [Member] Document Quarterly Report Document Quarterly Report Cost of capped calls Derivative, Capped Call Transaction Costs Derivative, Capped Call Transaction Costs Total financial assets Assets, Fair Value Disclosure Debt instrument, fair value Long-Term Debt, Fair Value Schedule of Fair Value Measurement Inputs and Valuation of Private Warrant Liabilities Fair Value Measurement Inputs and Valuation Techniques [Table Text Block] Changed Peer Group, Footnote Changed Peer Group, Footnote [Text Block] Number of operating segments Number of Operating Segments Reverse stock split, conversion ratio Stockholders' Equity Note, Stock Split, Conversion Ratio Adjustment To PEO Compensation, Footnote Adjustment To PEO Compensation, Footnote [Text Block] Weighted average remaining contractual life, options outstanding Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Remaining Contractual Term Schedule of Outstanding Debt Schedule of Debt [Table Text Block] RSUs granted, weighted average grant date fair value (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value Title Trading Arrangement, Individual Title Peer Group Total Shareholder Return Amount Peer Group Total Shareholder Return Amount Services and other revenue Service [Member] Schedule of Intangible Assets Schedule of Finite-Lived Intangible Assets [Table Text Block] Restatement Determination Date: Restatement Determination Date [Axis] Impairment of assets held for sale Impairment of Long-Lived Assets to be Disposed of Black Derman-Toy Lattice Model Black Derman-Toy Lattice Model [Member] Black Derman-Toy Lattice Model Non-PEO NEO Non-PEO NEO [Member] Aggregate intrinsic value, options outstanding Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Intrinsic Value Accounts Receivable Accounts Receivable [Member] Total interest expense Interest Expense, Debt Sale of Stock [Axis] Sale of Stock [Axis] Options forfeited and cancelled, weighted average exercise price (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Forfeitures and Cancellations in Period, Weighted Average Exercise Price Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Forfeitures and Cancellations in Period, Weighted Average Exercise Price Name Trading Arrangement, Individual Name Award Type [Domain] Award Type [Domain] Payment for debt extinguishment or debt prepayment cost Payment for Debt Extinguishment or Debt Prepayment Cost Non-controlling interests Equity, Attributable to Noncontrolling Interest Equity Awards Adjustments Equity Awards Adjustments [Member] Other Other Noncash Income (Expense) Pension Benefits Adjustments, Footnote Pension Benefits Adjustments, Footnote [Text Block] Disaggregation of Revenue [Line Items] Disaggregation of Revenue [Line Items] Measurement input Warrants and Rights Outstanding, Measurement Input Compensation Amount Outstanding Recovery Compensation Amount Face amount Debt Instrument, Face Amount Outstanding 2028 Convertible Notes (if converted) Outstanding 2028 Convertible Notes [Member] Outstanding 2028 Convertible Notes Debt Instrument, Name [Domain] Debt Instrument, Name [Domain] Statement of Comprehensive Income [Abstract] Recovery of Erroneously Awarded Compensation Disclosure [Line Items] Revenue recognized related to amounts that were included in beginning balance of deferred revenue Contract with Customer, Liability, Revenue Recognized Schedule of Allowance for Credit Loss Accounts Receivable, Allowance for Credit Loss [Table Text Block] MNPI Disclosure Timed for Compensation Value MNPI Disclosure Timed for Compensation Value [Flag] Name Awards Close in Time to MNPI Disclosures, Individual Name RSUs outstanding, weighted average grant date fair value, beginning (in dollars per share) RSUs outstanding, weighted average grant date fair value, ending (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value Subtotal PowerTrack Software, Edge Hardware And Project And Professional Services & Other [Member] PowerTrack Software, Edge Hardware And Project And Professional Services & Other Aggregate Erroneous Compensation Not Yet Determined Aggregate Erroneous Compensation Not Yet Determined [Text Block] Revenue Revenues [Abstract] Stock-based compensation APIC, Share-Based Payment Arrangement, Increase for Cost Recognition Accumulated other comprehensive income Accumulated Other Comprehensive Income (Loss), Net of Tax Sales and marketing Selling and Marketing Expense Country Region Country Region Liability Class [Axis] Liability Class [Axis] Segments [Domain] Segments [Domain] Statement of Income Location, Balance [Axis] Statement of Income Location, Balance [Axis] Aggregate Pension Adjustments Service Cost Aggregate Pension Adjustments Service Cost [Member] Fair Value Hierarchy and NAV [Domain] Fair Value Hierarchy and NAV [Domain] Inventory Increase (Decrease) in Inventories Developed technology Developed Technology Rights [Member] Non-cash interest expense, including interest expenses associated with debt issuance costs Amortization of debt discount and debt issuance cost Amortization of Debt Issuance Costs and Discounts Financing obligation, current portion Loans Payable, Current Finite-Lived Intangible Assets by Major Class [Axis] Finite-Lived Intangible Assets by Major Class [Axis] Less: accumulated depreciation Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment Cost of revenue Cost of Revenue [Abstract] Company Selected Measure Name Company Selected Measure Name DEBT Debt Disclosure [Text Block] Preferred stock, $0.0001 par value; 1,000,000 shares authorized as of March 31, 2026 and December 31, 2025; zero shares issued and outstanding as of March 31, 2026 and December 31, 2025 Preferred Stock, Value, Issued Aggregate Available Trading Arrangement, Securities Aggregate Available Amount Accounts payable Accounts Payable, Current Stock Appreciation Rights (SARs) Stock Appreciation Rights (SARs) [Member] All Executive Categories All Executive Categories [Member] Common stock, $0.0001 par value; 250,000,000 and 250,000,000 shares authorized as of March 31, 2026 and December 31, 2025, respectively; 8,567,751 and 8,489,540 issued and outstanding as of March 31, 2026 and December 31, 2025, respectively Common Stock, Value, Issued Schedule of Convertible Debt Convertible Debt [Table Text Block] COMMITMENTS AND CONTINGENCIES Commitments and Contingencies Disclosure [Text Block] Weighted-average shares used in computing net loss per share to common stockholders, diluted (in shares) Weighted-average number of shares outstanding used to compute net loss per share attributable to common stockholders, diluted (in shares) Weighted Average Number of Shares Outstanding, Diluted Segment Information Segment Reporting, Policy [Policy Text Block] Commitments and contingencies (Note 13) Commitments and Contingencies ATM Program ATM Program [Member] ATM Program Non-GAAP Measure Description Non-GAAP Measure Description [Text Block] Business Combination [Axis] Business Combination [Axis] WARRANTS Warrant Disclosure [Text Block] Warrant Disclosure Total other comprehensive loss Comprehensive Income (Loss), Net of Tax, Including Portion Attributable to Noncontrolling Interest Entity Small Business Entity Small Business Percent of outstanding shares acquired Business Combination, Voting Equity Interest Acquired, Percentage Sales and marketing Selling and Marketing Expense [Member] Income Tax Disclosure [Abstract] Project and professional services & other Project and Professional Services and Other [Member] Project and Professional Services and Other Non-controlling Interests Noncontrolling Interest [Member] Preferred stock, outstanding (in shares) Preferred Stock, Shares Outstanding Document Transition Report Document Transition Report Schedule of Significant Customers Schedules of Concentration of Risk, by Risk Factor [Table Text Block] Numerator: Net Income (Loss) Available to Common Stockholders, Basic [Abstract] Initial strike price (in dollars per share) Derivative, Initial Strike Price Derivative, Initial Strike Price Underlying Securities Award Underlying Securities Amount Concentration Risk [Line Items] Concentration Risk [Line Items] Repayment of financing obligations Repayments of Other Long-Term Debt Equity Component [Domain] Equity Component [Domain] Document Period End Date Document Period End Date PEO Actually Paid Compensation Amount PEO Actually Paid Compensation Amount Cash and Cash Equivalents [Domain] Cash and Cash Equivalents [Domain] 2030 Capped Call Options 2030 Capped Call Options [Member] 2030 Capped Call Options INCOME TAXES Income Tax Disclosure [Text Block] Accounts receivable, allowance for credit loss Balance as of beginning of period Balance as of end of period Accounts Receivable, Allowance for Credit Loss Awards Close in Time to MNPI Disclosures, Table Awards Close in Time to MNPI Disclosures [Table Text Block] Revenue from Contract with Customer [Abstract] Debt instrument, fair value Debt Instrument, Fair Value Disclosure Outstanding legacy warrants Legacy Warrants [Member] Legacy Warrants Lease liabilities Increase (Decrease) in Operating Lease Liability Total stockholders’ deficit Beginning balance Ending balance Equity, Including Portion Attributable to Noncontrolling Interest Convertible debt Convertible Debt, Fair Value Disclosures Document Type Document Type Level 3 Fair Value, Inputs, Level 3 [Member] NET LOSS PER SHARE Earnings Per Share [Text Block] Name Outstanding Recovery, Individual Name Loss Contingencies [Table] Loss Contingencies [Table] Additional paid-in capital Additional Paid in Capital Product and Service [Axis] Product and Service [Axis] Derivative Contract [Domain] Derivative Contract [Domain] Cash equivalents: Cash Equivalents, at Carrying Value [Abstract] Revenue Revenue from Contract with Customer Benchmark [Member] Total revenue Revenue Revenue from Contract with Customer, Excluding Assessed Tax All Individuals All Individuals [Member] Long-term Debt, Type [Domain] Long-Term Debt, Type [Domain] Fair Value Disclosures [Abstract] Name Forgone Recovery, Individual Name Total current assets Assets, Current Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested [Member] Customer A Customer A [Member] Customer A Disposal Group Classification [Axis] Disposal Group Classification [Axis] Battery hardware resale Battery Hardware Resale [Member] Battery Hardware Resale Loss contingency accrual amount Loss Contingency Accrual RECONCILIATION OF CASH, CASH EQUIVALENTS, AND RESTRICTED CASH WITHIN THE UNAUDITED CONDENSED CONSOLIDATED BALANCE SHEETS TO THE AMOUNTS SHOWN IN THE STATEMENTS OF CASH FLOWS ABOVE: Cash, Cash Equivalent, Restricted Cash, and Restricted Cash Equivalent, Continuing Operation [Abstract] Fair Value Measurement Inputs and Valuation Techniques [Line Items] Fair Value Measurement Inputs and Valuation Techniques [Line Items] Aggregate Erroneous Compensation Amount Aggregate Erroneous Compensation Amount Disposal Group Name [Axis] Disposal Group Name [Axis] 2030 Senior Secured Notes 2030 Senior Secured Notes [Member] 2030 Senior Notes Peer Group Issuers, Footnote Peer Group Issuers, Footnote [Text Block] Erroneous Compensation Analysis Erroneous Compensation Analysis [Text Block] Current liabilities: Liabilities, Current [Abstract] Share-based Compensation Arrangement by Share-based Payment Award, Options, Additional Disclosures [Abstract] Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Additional Disclosures [Abstract] Geographical [Axis] Geographical [Axis] Total operating expenses Operating Expenses Rule 10b5-1 Arrangement Terminated Rule 10b5-1 Arrangement Terminated [Flag] Sale of outstanding shares, percentage Disposal Group, Including Discontinued Operation, Ownership Percentage in Disposed Asset Disposal Group, Including Discontinued Operation, Ownership Percentage in Disposed Asset Level 1 Fair Value, Inputs, Level 1 [Member] Beginning balance (in shares) Ending balance (in shares) Shares, Outstanding Net loss per share attributable to common stockholders, diluted (in dollars per share) Earnings Per Share, Diluted Erroneously Awarded Compensation Recovery Erroneously Awarded Compensation Recovery [Table] Accounts receivable, net of allowances of $3,889 and $3,893 as of March 31, 2026 and December 31, 2025, respectively Account receivable Accounts Receivable, after Allowance for Credit Loss, Current Concentration Risk Benchmark [Domain] Concentration Risk Benchmark [Domain] Title of 12(b) Security Title of 12(b) Security Aggregate intrinsic value, options vested and exercisable Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Exercisable, Aggregate Intrinsic Value Assets held for sale Long-Lived Asset, Held-for-Sale, Fair Value Disclosure Accounts payable Accounts Payable Other comprehensive loss: Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent [Abstract] Currency translation adjustment Intangible Assets, Foreign Currency Translation Adjustment Intangible Assets, Foreign Currency Translation Adjustment Sale of stock, number of shares issued in transaction (in shares) Sale of Stock, Number of Shares Issued in Transaction Paid-in-kind interest Paid-in-Kind Interest Earnings Per Share [Abstract] Total other expense, net Nonoperating Income (Expense) 2028 Convertible Notes And 2030 Convertible Notes 2028 Convertible Notes And 2030 Convertible Notes [Member] 2028 Convertible Notes And 2030 Convertible Notes Gross profit Gross Profit Schedule of Potentially Dilutive Shares Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table Text Block] Cap price (in dollars per share) Derivative, Cap Price Per Share Derivative, Cap Price Per Share Options forfeited and cancelled (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Forfeitures and Cancellations in Period Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Forfeitures and Cancellations in Period Deferred revenue Increase (Decrease) in Contract with Customer, Liability Upfront payments received from customers Contract with Customer, Liability, Upfront Payments Received From Customers Contract with Customer, Liability, Upfront Payments Received From Customers Award Timing Disclosures [Line Items] Assets held for sale Disposal Group, Including Discontinued Operation, Assets, Current Debt instrument carrying value Outstanding principal Long-Term Debt, Gross Options granted, weighted average exercise price (in dollars per share) Share-Based Compensation Arrangements by Share-Based Payment Award, Options, Grants in Period, Weighted Average Exercise Price Measurement Frequency [Domain] Measurement Frequency [Domain] Accrued payroll Employee-related Liabilities, Current ENERGY STORAGE SYSTEMS, NET Property, Plant and Equipment Disclosure [Text Block] 2030 Convertible Notes 2030 Convertible Notes [Member] 2030 Convertible Notes Trade name Trade Names [Member] Net income Net Income (Loss) Attributable to Parent Subsequent Event [Table] Subsequent Event [Table] Expiration Date Trading Arrangement Expiration Date Accounts Receivable, Allowance for Credit Loss [Roll Forward] Accounts Receivable, Allowance for Credit Loss [Roll Forward] Total energy storage systems, net Property, Plant and Equipment, Net 2030 Private Placement Warrants Outstanding private placement warrants 2030 Private Placement Warrants [Member] 2030 Private Placement Warrants Segment Reporting Information [Line Items] Segment Reporting Information [Line Items] Preferred stock, authorized (in shares) Preferred Stock, Shares Authorized Adoption Date Trading Arrangement Adoption Date Weighted average remaining contractual life, options vested and exercisable Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Exercisable, Weighted Average Remaining Contractual Term Compensation Actually Paid vs. Net Income Compensation Actually Paid vs. Net Income [Text Block] Accounts receivable Increase (Decrease) in Accounts Receivable Entity Current Reporting Status Entity Current Reporting Status Lease term Lessee, Operating Lease, Term of Contract Impairment loss of project assets Impairment of Ongoing Project Expected term (in years) Measurement Input, Expected Term [Member] Customer [Axis] Customer [Axis] Awards Close in Time to MNPI Disclosures Awards Close in Time to MNPI Disclosures [Table] Proceeds from convertible notes Proceeds from Convertible Debt Customer relationships Customer Relationships [Member] Loss from operations Operating Income (Loss) Consolidated Entities [Domain] Consolidated Entities [Domain] Accumulated deficit Accumulated deficit Retained Earnings (Accumulated Deficit) Gain on disposal and abandonment of property, plant and equipment Gain (Loss) on Disposition of Property Plant Equipment Statement of Financial Position [Abstract] Statement of Financial Position [Abstract] Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested [Member] Executive Category: Executive Category [Axis] Asset retirement obligation Asset Retirement Obligations, Noncurrent Contract origination costs, net Increase (Decrease) In Capitalized Contract Costs Increase (Decrease) In Capitalized Contract Costs Current Fiscal Year End Date Current Fiscal Year End Date Number of shares called from each warrant (in shares) Class of Warrant or Right, Number of Securities Called by Each Warrant or Right Subsequent Event Type [Domain] Subsequent Event Type [Domain] Debt conversion, converted instrument, amount Debt Conversion, Converted Instrument, Amount Finite-Lived Intangible Assets, Major Class Name [Domain] Finite-Lived Intangible Assets, Major Class Name [Domain] Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table [Member] Weighted-Average Grant Date Fair Value Per Share Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value [Abstract] Other income, net Other Nonoperating Income (Expense) Statement [Table] Statement [Table] Warrant liability Derivative liability Derivative Liability Adjustments to reconcile net loss to net cash (used in) provided by operating activities: Adjustment to Reconcile Net Income to Cash Provided by (Used in) Operating Activity [Abstract] FINANCING ACTIVITIES Cash Provided by (Used in) Financing Activity, Including Discontinued Operation [Abstract] Financing obligation, noncurrent Loans Payable, Noncurrent Equity Awards Adjustments, Excluding Value Reported in Compensation Table Equity Awards Adjustments, Excluding Value Reported in the Compensation Table [Member] 2028 Convertible Notes 2028 Convertible Notes [Member] 2028 Convertible Notes Risk-free interest rate Measurement Input, Risk Free Interest Rate [Member] Variable Rate [Domain] Variable Rate [Domain] Beginning balance Ending balance Contract with Customer, Liability Potentially dilutive shares (in shares) Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount Warrant Liability Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] All Adjustments to Compensation All Adjustments to Compensation [Member] Class of warrant or right issued (in shares) Class of Warrant or Right, Issued Class of Warrant or Right, Issued Fair Value, by Balance Sheet Grouping [Table] Fair Value, by Balance Sheet Grouping [Table] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Table] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Table] Amendment Flag Amendment Flag Number of battery energy storage system projects held for sale Number of Battery Energy Storage System Projects Held For Sale Number of Battery Energy Storage System Projects Held For Sale Internally developed software Software Development [Member] Termination Date Trading Arrangement Termination Date Net cash used in financing activities Cash Provided by (Used in) Financing Activity, Including Discontinued Operation Insider Trading Policies and Procedures Adopted Insider Trading Policies and Procedures Adopted [Flag] Managed services Managed Services [Member] Managed Services Measure: Measure [Axis] Valuation Approach and Technique [Axis] Valuation Approach and Technique [Axis] Schedule of Activity Under the Plan Share-Based Payment Arrangement, Option, Activity [Table Text Block] Project assets Increase (Decrease) In Project Assets Increase (Decrease) In Project Assets SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES Basis of Presentation and Significant Accounting Policies [Text Block] Long-Lived Tangible Asset [Domain] Long-Lived Tangible Asset [Domain] Issuance of common stock upon release of restricted stock units Stock Issued During Period, Value, Restricted Stock Award, Net of Forfeitures Weighted-average shares used in computing net loss per share to common stockholders, basic (in shares) Weighted-average number of shares outstanding used to compute net loss per share attributable to common stockholders, basic (in shares) Weighted Average Number of Shares Outstanding, Basic Disposal Group Classification [Domain] Disposal Group Classification [Domain] Schedule of Computation of Basic and Diluted Net (Loss) Income Per Share Schedule of Earnings Per Share, Basic and Diluted [Table Text Block] Subsequent Events [Abstract] Segment Reporting [Abstract] Total cost of revenue Cost of Revenue Cost of Revenue Pay vs Performance Disclosure, Table Pay vs Performance [Table Text Block] Debt Disclosure [Abstract] Forgone Recovery due to Violation of Home Country Law, Amount Forgone Recovery due to Violation of Home Country Law, Amount Schedule of Restricted Stock Activity Schedule of Unvested Restricted Stock Units Roll Forward [Table Text Block] Other expense, net: Nonoperating Income (Expense) [Abstract] Entity Tax Identification Number Entity Tax Identification Number Contract origination costs, net Capitalized Contract Cost, Net, Noncurrent Schedule of Variable Interest Entities Schedule of Variable Interest Entities [Table Text Block] Options outstanding, weighted average exercise price (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Exercise Price Forgone Recovery due to Expense of Enforcement, Amount Forgone Recovery due to Expense of Enforcement, Amount Share-based Compensation Arrangement by Share-based Payment Award [Line Items] Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] Consolidated Entities [Axis] Consolidated Entities [Axis] Common stock, par value (in dollars per share) Common Stock, Par or Stated Value Per Share Common stock, issued (in shares) Common Stock, Shares, Issued Purchase of energy storage systems Payments to Acquire Machinery and Equipment Options granted (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Grants in Period, Gross Use of Estimates Use of Estimates, Policy [Policy Text Block] Interest expense Interest Expense, Nonoperating Trading Arrangement: Trading Arrangement [Axis] Total Shareholder Return Amount Total Shareholder Return Amount Loss Contingencies [Line Items] Loss Contingencies [Line Items] SUBSEQUENT EVENTS Subsequent Events [Text Block] Insider Trading Arrangements [Line Items] Security Exchange Name Security Exchange Name Debt instrument, debt discount, effective percentage Debt Instrument, Debt Discount, Effective Percentage Debt Instrument, Debt Discount, Effective Percentage Common stock purchase agreement, amount authorized Common Stock Purchase Agreement, Amount Authorized, Value Common Stock Purchase Agreement, Amount Authorized, Value Total liabilities Liabilities Antidilutive Securities, Name [Domain] Antidilutive Securities, Name [Domain] Cash and Cash Equivalents [Axis] Cash and Cash Equivalents [Axis] Pension Adjustments Prior Service Cost Pension Adjustments Prior Service Cost [Member] Operating expenses: Operating Expenses [Abstract] Material Terms of Trading Arrangement Material Terms of Trading Arrangement [Text Block] Other current liabilities Other Liabilities, Current Statement [Line Items] Statement [Line Items] Debt extinguishment amount Extinguishment of Debt, Amount Variable Rate [Axis] Variable Rate [Axis] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Line Items] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Line Items] Rule 10b5-1 Arrangement Adopted Rule 10b5-1 Arrangement Adopted [Flag] Cash and cash equivalents Cash and Cash Equivalent Fair Value Measurement Inputs and Valuation Techniques [Table] Fair Value Measurement Inputs and Valuation Techniques [Table] Subsequent Event [Line Items] Subsequent Event [Line Items] Threshold trading days Debt Instrument, Convertible, Threshold Trading Days Common Stock Common Stock [Member] RSUs vested (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period Entity Incorporation, State or Country Code Entity Incorporation, State or Country Code Non-NEOs Non-NEOs [Member] Net (decrease) increase in cash, cash equivalents and restricted cash Cash, Cash Equivalent, Restricted Cash, and Restricted Cash Equivalent, Period Increase (Decrease), Including Exchange Rate Effect and Discontinued Operation