| Entity Common Stock, Shares Outstanding | DEI | 
| Entity Listing, Par Value Per Share | DEI | 
| Entity Public Float | DEI | 
| Accounts Payable, Current | US-GAAP | 
| Accounts Payable, Other | US-GAAP | 
| Accounts Receivable, after Allowance for Credit Loss | US-GAAP | 
| Accrued Bonuses, Current | US-GAAP | 
| Accrued Employee Benefits, Current | US-GAAP | 
| Accrued Income Taxes, Current | US-GAAP | 
| Accrued Liabilities, Current | US-GAAP | 
| Accrued Rent, Current | US-GAAP | 
| Accrued Rent | US-GAAP | 
| Accrued Salaries, Current | US-GAAP | 
| Accrued Sales Commission, Current | US-GAAP | 
| Accrued Vacation, Current | US-GAAP | 
| Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment | US-GAAP | 
| Accumulated Depreciation, Depletion and Amortization, Sale or Disposal of Property, Plant and Equipment | US-GAAP | 
| Additional Paid in Capital | US-GAAP | 
| Additional Paid in Capital, Common Stock | US-GAAP | 
| Amortization | US-GAAP | 
| Adjustments to Additional Paid in Capital, Convertible Debt with Conversion Feature | US-GAAP | 
| Adjustments to Additional Paid in Capital, Other | US-GAAP | 
| APIC, Share-based Payment Arrangement, Option, Increase for Cost Recognition | US-GAAP | 
| APIC, Share-based Payment Arrangement, Increase for Cost Recognition | US-GAAP | 
| Adjustments to Additional Paid in Capital, Stock Issued, Issuance Costs | US-GAAP | 
| Adjustments to Additional Paid in Capital, Warrant Issued | US-GAAP | 
| Share-based Payment Arrangement, Expense | US-GAAP | 
| Share-based Payment Arrangement, Expense, after Tax | US-GAAP | 
| Accounts Receivable, Allowance for Credit Loss, Current | US-GAAP | 
| Amortization of Debt Discount (Premium) | US-GAAP | 
| Amortization of Debt Issuance Costs | US-GAAP | 
| Amortization of Intangible Assets | US-GAAP | 
| Asset Impairment Charges | US-GAAP | 
| Assets | US-GAAP | 
| Assets, Current | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Assets | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Assets, Current | US-GAAP | 
| Assets of Disposal Group, Including Discontinued Operation, Noncurrent (Deprecated 2014-01-31) | US-GAAP | 
| Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Assets | US-GAAP | 
| Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Equipment | US-GAAP | 
| Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Noncurrent Assets | US-GAAP | 
| Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Noncurrent Liabilities, Long-term Debt | US-GAAP | 
| Capital Expenditures Incurred but Not yet Paid | US-GAAP | 
| Capitalized Contract Cost, Amortization | US-GAAP | 
| Capitalized Contract Cost, Impairment Loss | US-GAAP | 
| Capitalized Contract Cost, Net | US-GAAP | 
| Capital Lease Obligations, Current | US-GAAP | 
| Cash | US-GAAP | 
| Cash Acquired from Acquisition | US-GAAP | 
| Cash and Cash Equivalents, at Carrying Value | US-GAAP | 
| Cash and Cash Equivalents, Period Increase (Decrease) | US-GAAP | 
| Cash, Cash Equivalents, and Short-term Investments | US-GAAP | 
| Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents | US-GAAP | 
| Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations | US-GAAP | 
| Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Period Increase (Decrease), Excluding Exchange Rate Effect | US-GAAP | 
| Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect | US-GAAP | 
| Cash, Period Increase (Decrease) | US-GAAP | 
| Cash Provided by (Used in) Financing Activities, Discontinued Operations | US-GAAP | 
| Cash Provided by (Used in) Investing Activities, Discontinued Operations | US-GAAP | 
| Cash Provided by (Used in) Operating Activities, Discontinued Operations | US-GAAP | 
| Class of Warrant or Right, Exercise Price of Warrants or Rights (Deprecated 2014-01-31) | US-GAAP | 
| Class of Warrant or Right, Exercise Price of Warrants or Rights | US-GAAP | 
| Class of Warrant or Right, Number of Securities Called by Warrants or Rights | US-GAAP | 
| Class of Warrant or Right, Outstanding | US-GAAP | 
| Common Stock, Capital Shares Reserved for Future Issuance | US-GAAP | 
| Common Stock, Par or Stated Value Per Share | US-GAAP | 
| Common Stock, Share Subscribed but Unissued, Subscriptions Receivable | US-GAAP | 
| Common Stock, Shares Authorized | US-GAAP | 
| Common Stock, Shares, Issued | US-GAAP | 
| Common Stock, Shares, Outstanding | US-GAAP | 
| Common Stock, Value, Issued | US-GAAP | 
| Construction in Progress, Gross | US-GAAP | 
| Contract with Customer, Liability | US-GAAP | 
| Contract with Customer, Liability, Current | US-GAAP | 
| Contract with Customer, Liability, Revenue Recognized | US-GAAP | 
| Conversion of Stock, Shares Converted | US-GAAP | 
| Conversion of Stock, Shares Issued | US-GAAP | 
| Convertible Debt | US-GAAP | 
| Convertible Debt, Current | US-GAAP | 
| Convertible Preferred Stock, Shares Issued upon Conversion | US-GAAP | 
| Cost, Maintenance | US-GAAP | 
| Cost of Goods and Services Sold | US-GAAP | 
| Cost of Goods Sold (Deprecated 2018-01-31) | US-GAAP | 
| Cumulative Effect of New Accounting Principle in Period of Adoption (Deprecated 2020-01-31) | US-GAAP | 
| Current Income Tax Expense (Benefit) | US-GAAP | 
| Debt Conversion, Converted Instrument, Amount | US-GAAP | 
| Debt Conversion, Converted Instrument, Shares Issued | US-GAAP | 
| Debt Conversion, Converted Instrument, Warrants or Options Issued | US-GAAP | 
| Debt Conversion, Original Debt, Amount | US-GAAP | 
| Debt Instrument, Convertible, Beneficial Conversion Feature | US-GAAP | 
| Debt Instrument, Convertible, If-converted Value in Excess of Principal | US-GAAP | 
| Debt Instrument, Convertible, Number of Equity Instruments | US-GAAP | 
| Debt Instrument, Decrease, Forgiveness | US-GAAP | 
| Debt Instrument, Face Amount | US-GAAP | 
| Debt Instrument, Interest Rate at Period End (Deprecated 2014-01-31) | US-GAAP | 
| Debt Instrument, Periodic Payment | US-GAAP | 
| Debt Instrument, Unamortized Discount | US-GAAP | 
| Deferred Compensation Share-based Arrangements, Liability, Current | US-GAAP | 
| Debt Issuance Costs, Current, Net | US-GAAP | 
| Debt Issuance Costs, Net | US-GAAP | 
| Deferred Income Tax Expense (Benefit) | US-GAAP | 
| Deferred Income Taxes and Tax Credits | US-GAAP | 
| Deferred Tax Liabilities, Gross | US-GAAP | 
| Deferred Income Tax Liabilities, Net | US-GAAP | 
| Deferred Revenue, Current | US-GAAP | 
| Deferred Revenue, Noncurrent | US-GAAP | 
| Deferred Tax Assets, Gross | US-GAAP | 
| Deferred Tax Assets, Net of Valuation Allowance | US-GAAP | 
| Deferred Tax Assets, Operating Loss Carryforwards | US-GAAP | 
| Deferred Tax Assets, Other | US-GAAP | 
| Deferred Tax Assets, Property, Plant and Equipment | US-GAAP | 
| Deferred Tax Assets, Tax Credit Carryforwards | US-GAAP | 
| Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits, Share-based Compensation Cost | US-GAAP | 
| Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Accrued Liabilities | US-GAAP | 
| Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Other | US-GAAP | 
| Deferred Tax Assets, Valuation Allowance | US-GAAP | 
| Deferred Tax Liabilities, Net | US-GAAP | 
| Deferred Tax Liabilities, Goodwill | US-GAAP | 
| Deferred Tax Liabilities, Intangible Assets | US-GAAP | 
| Deferred Tax Liabilities, Net, Noncurrent | US-GAAP | 
| Deferred Tax Liabilities, Other Finite-Lived Assets | US-GAAP | 
| Deferred Tax Liabilities, Property, Plant and Equipment | US-GAAP | 
| Deposits Assets, Noncurrent | US-GAAP | 
| Depreciation | US-GAAP | 
| Depreciation, Amortization and Accretion, Net | US-GAAP | 
| Depreciation, Depletion and Amortization, Nonproduction | US-GAAP | 
| Depreciation, Depletion and Amortization | US-GAAP | 
| Derivative Liability, Fair Value, Gross Liability | US-GAAP | 
| Derivative, Gain (Loss) on Derivative, Net | US-GAAP | 
| Derivative Instruments Not Designated as Hedging Instruments, Gain (Loss), Net | US-GAAP | 
| Derivative Liability | US-GAAP | 
| Derivative Liability, Current | US-GAAP | 
| Derivative Liability, Noncurrent | US-GAAP | 
| Dilutive Securities, Effect on Basic Earnings Per Share, Dilutive Convertible Securities | US-GAAP | 
| Discontinued Operation, Amount of Adjustment to Prior Period Gain (Loss) on Disposal, Net of Tax | US-GAAP | 
| Discontinued Operation, Amount of Other Income (Loss) from Disposition of Discontinued Operation, Net of Tax (Deprecated 2015-01-31) | US-GAAP | 
| Discontinued Operation, Gain (Loss) from Disposal of Discontinued Operation, before Income Tax | US-GAAP | 
| Discontinued Operation, Income (Loss) from Discontinued Operation, before Income Tax | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Accounts, Notes and Loans Receivable, Net | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Accounts Payable | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Accrued Liabilities | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Assets, Noncurrent | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Cash and Cash Equivalents | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Costs of Goods Sold | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Deferred Revenue | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Deferred Tax Liabilities | US-GAAP | 
| Disposal Group, Including Discontinued Operation, General and Administrative Expense | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Goodwill | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Gross Profit (Loss) | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Intangible Assets | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Interest Expense | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Interest Income | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Inventory | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Operating Income (Loss) | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Other Assets | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Other Income | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Property, Plant and Equipment | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Revenue | US-GAAP | 
| Disposal Group, Not Discontinued Operation, Gain (Loss) on Disposal | US-GAAP | 
| Earnings Per Share, Basic | US-GAAP | 
| Earnings Per Share, Basic and Diluted | US-GAAP | 
| Earnings Per Share, Diluted | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Percent | US-GAAP | 
| Effective Income Tax Rate Reconciliation, at Federal Statutory Income Tax Rate, Percent | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Change in Deferred Tax Assets Valuation Allowance, Percent | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Change in Enacted Tax Rate, Percent | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Nondeductible Expense, Percent | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Nondeductible Expense, Research and Development, Percent | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Other Adjustments, Percent | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Prior Year Income Taxes, Percent | US-GAAP | 
| Effective Income Tax Rate Reconciliation, State and Local Income Taxes, Percent | US-GAAP | 
| Embedded Derivative, Fair Value of Embedded Derivative Liability | US-GAAP | 
| Embedded Derivative, Gain (Loss) on Embedded Derivative, Net | US-GAAP | 
| Embedded Derivative, Gain on Embedded Derivative | US-GAAP | 
| Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount | US-GAAP | 
| Share-based Payment Arrangement, Nonvested Award, Excluding Option, Cost Not yet Recognized, Amount | US-GAAP | 
| Share-based Payment Arrangement, Nonvested Award, Option, Cost Not yet Recognized, Amount | US-GAAP | 
| Extinguishment of Debt, Gain (Loss), Net of Tax | US-GAAP | 
| Fair Value Adjustment of Warrants | US-GAAP | 
| Fair Value Assumptions, Expected Dividend Rate (Deprecated 2018-01-31) | US-GAAP | 
| Fair Value Assumptions, Expected Volatility Rate (Deprecated 2018-01-31) | US-GAAP | 
| Fair Value Assumptions, Risk Free Interest Rate (Deprecated 2018-01-31) | US-GAAP | 
| Fair Value Disclosure, Off-balance Sheet Risks, Amount, Liability | US-GAAP | 
| Fair Value Inputs, Discount Rate (Deprecated 2018-01-31) | US-GAAP | 
| Fair Value, Measured on Recurring Basis, Gain (Loss) Included in Earnings (Deprecated 2019-01-31) | US-GAAP | 
| Fair Value, Measurement with Unobservable Inputs Reconciliation, Liability, Transfers Into Level 3 | US-GAAP | 
| Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Earnings | US-GAAP | 
| Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Purchases, (Sales), Issuances, (Settlements) | US-GAAP | 
| Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability Value | US-GAAP | 
| Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Issues | US-GAAP | 
| Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Period Increase (Decrease) | US-GAAP | 
| Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Sales | US-GAAP | 
| Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Settlements | US-GAAP | 
| Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis with Unobservable Inputs | US-GAAP | 
| Finance Lease, Interest Expense | US-GAAP | 
| Finance Lease, Liability | US-GAAP | 
| Finance Lease, Liability, Current | US-GAAP | 
| Finance Lease, Liability, Noncurrent | US-GAAP | 
| Finance Lease, Liability, Payment, Due | US-GAAP | 
| Finance Lease, Liability, to be Paid, Year One | US-GAAP | 
| Finance Lease, Liability, to be Paid, Year Three | US-GAAP | 
| Finance Lease, Liability, to be Paid, Year Two | US-GAAP | 
| Finance Lease, Liability, to be Paid, Remainder of Fiscal Year | US-GAAP | 
| Finance Lease, Liability, Undiscounted Excess Amount | US-GAAP | 
| Finance Lease, Principal Payments | US-GAAP | 
| Finance Lease, Right-of-Use Asset, after Accumulated Amortization | US-GAAP | 
| Finance Lease, Right-of-Use Asset, Amortization | US-GAAP | 
| Finite-Lived Intangible Assets, Accumulated Amortization | US-GAAP | 
| Finite-Lived Intangible Asset, Expected Amortization, after Year Five | US-GAAP | 
| Finite-Lived Intangible Asset, Expected Amortization, Year One | US-GAAP | 
| Finite-Lived Intangible Asset, Expected Amortization, Remainder of Fiscal Year | US-GAAP | 
| Finite-Lived Intangible Asset, Expected Amortization, Year Five | US-GAAP | 
| Finite-Lived Intangible Asset, Expected Amortization, Year Four | US-GAAP | 
| Finite-Lived Intangible Asset, Expected Amortization, Year Three | US-GAAP | 
| Finite-Lived Intangible Asset, Expected Amortization, Year Two | US-GAAP | 
| Finite-Lived Intangible Assets, Gross | US-GAAP | 
| Finite-Lived Intangible Assets, Net | US-GAAP | 
| Finite-lived Intangible Assets Acquired | US-GAAP | 
| Gain (Loss) on Disposition of Property Plant Equipment, Excluding Oil and Gas Property and Timber Property | US-GAAP | 
| Gain (Loss) on Disposition of Assets | US-GAAP | 
| Gain (Loss) on Disposition of Other Assets | US-GAAP | 
| Gain (Loss) on Disposition of Property Plant Equipment | US-GAAP | 
| Gain (Loss) on Extinguishment of Debt | US-GAAP | 
| Goodwill | US-GAAP | 
| Goodwill, Acquired During Period | US-GAAP | 
| Goodwill, Impairment Loss | US-GAAP | 
| Gross Profit | US-GAAP | 
| Impairment of Intangible Assets (Excluding Goodwill) | US-GAAP | 
| Impairment of Intangible Assets, Finite-lived | US-GAAP | 
| Impairment of Long-Lived Assets Held-for-use | US-GAAP | 
| Impairment of Ongoing Project | US-GAAP | 
| Income (Loss) from Continuing Operations, Net of Tax, Attributable to Parent | US-GAAP | 
| Income (Loss) from Continuing Operations before Income Taxes, Noncontrolling Interest | US-GAAP | 
| Income (Loss) from Continuing Operations before Equity Method Investments, Income Taxes, Noncontrolling Interest | US-GAAP | 
| Income (Loss) from Continuing Operations, Net of Tax, Including Portion Attributable to Noncontrolling Interest | US-GAAP | 
| Income (Loss) from Continuing Operations, Per Basic and Diluted Share | US-GAAP | 
| Income (Loss) from Continuing Operations, Per Basic Share | US-GAAP | 
| Income (Loss) from Continuing Operations, Per Diluted Share | US-GAAP | 
| Income (Loss) from Discontinued Operations, Net of Tax, Including Portion Attributable to Noncontrolling Interest | US-GAAP | 
| Income (Loss) from Discontinued Operations, Net of Tax, Attributable to Parent | US-GAAP | 
| Income (Loss) from Discontinued Operations and Disposal of Discontinued Operations, Net of Tax, Per Basic and Diluted Share | US-GAAP | 
| Income (Loss) from Discontinued Operations and Disposal of Discontinued Operations, Net of Tax, Per Basic Share | US-GAAP | 
| Income (Loss) from Discontinued Operations and Disposal of Discontinued Operations, Net of Tax, Per Diluted Share | US-GAAP | 
| Income Tax Expense (Benefit) | US-GAAP | 
| Income Taxes Paid | US-GAAP | 
| Income Taxes Paid, Net | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Change in Deferred Tax Assets Valuation Allowance, Amount | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Change in Enacted Tax Rate, Amount | US-GAAP | 
| Effective Income Tax Rate Reconciliation at Federal Statutory Income Tax Rate, Amount | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Nondeductible Expense, Amount | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Nondeductible Expense, Meals and Entertainment, Amount | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Nondeductible Expense, Other, Amount | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Other Adjustments, Amount | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Other Reconciling Items, Amount | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Prior Year Income Taxes, Amount | US-GAAP | 
| Effective Income Tax Rate Reconciliation, State and Local Income Taxes, Amount | US-GAAP | 
| Effective Income Tax Rate Reconciliation, Tax Credit, Research, Amount | US-GAAP | 
| Increase (Decrease) in Accounts Payable | US-GAAP | 
| Increase (Decrease) in Accounts Receivable | US-GAAP | 
| Increase (Decrease) in Accrued Salaries | US-GAAP | 
| Increase (Decrease) in Deferred Revenue | US-GAAP | 
| Increase (Decrease) in Derivative Liabilities | US-GAAP | 
| Increase (Decrease) in Fair Value of Price Risk Fair Value Hedging Instruments | US-GAAP | 
| Increase (Decrease) in Fair Value of Derivative Instruments, Not Designated as Hedging Instruments (Deprecated 2013-01-31) | US-GAAP | 
| Increase (Decrease) in Inventories | US-GAAP | 
| Increase (Decrease) in Other Accrued Liabilities | US-GAAP | 
| Increase (Decrease) in Other Noncurrent Assets | US-GAAP | 
| Increase (Decrease) in Other Operating Liabilities | US-GAAP | 
| Increase (Decrease) in Other Receivables | US-GAAP | 
| Increase (Decrease) in Prepaid Expense and Other Assets | US-GAAP | 
| Increase (Decrease) in Security Deposits | US-GAAP | 
| Incremental Common Shares Attributable to Dilutive Effect of Call Options and Warrants | US-GAAP | 
| Indefinite-lived Intangible Assets (Excluding Goodwill) | US-GAAP | 
| Intangible Assets, Gross (Excluding Goodwill) | US-GAAP | 
| Intangible Assets, Net (Excluding Goodwill) | US-GAAP | 
| Interest Expense | US-GAAP | 
| Interest Paid, Including Capitalized Interest, Operating and Investing Activities | US-GAAP | 
| Interest Paid, Excluding Capitalized Interest, Operating Activities | US-GAAP | 
| Interest Payable | US-GAAP | 
| Inventory, Finished Goods, Gross | US-GAAP | 
| Inventory, Finished Goods, Net of Reserves | US-GAAP | 
| Inventory, LIFO Reserve, Period Charge | US-GAAP | 
| Inventory, Net | US-GAAP | 
| Inventory, Raw Materials, Gross | US-GAAP | 
| Inventory, Raw Materials and Supplies, Net of Reserves | US-GAAP | 
| Inventory, Raw Materials, Net of Reserves | US-GAAP | 
| Inventory, Supplies, Net of Reserves | US-GAAP | 
| Inventory Valuation Reserves | US-GAAP | 
| Inventory, Work in Process, Net of Reserves | US-GAAP | 
| Inventory Write-down | US-GAAP | 
| Investment Income, Interest | US-GAAP | 
| Issuance of Stock and Warrants for Services or Claims | US-GAAP | 
| Land | US-GAAP | 
| Operating Leases, Rent Expense | US-GAAP | 
| Lessee, Finance Lease, Discount Rate | US-GAAP | 
| Lessee, Operating Lease, Discount Rate | US-GAAP | 
| Lessee, Operating Lease, Liability, to be Paid | US-GAAP | 
| Lessee, Operating Lease, Liability, to be Paid, Year One | US-GAAP | 
| Lessee, Operating Lease, Liability, to be Paid, Year Five | US-GAAP | 
| Lessee, Operating Lease, Liability, to be Paid, Year Four | US-GAAP | 
| Lessee, Operating Lease, Liability, to be Paid, Year Three | US-GAAP | 
| Lessee, Operating Lease, Liability, to be Paid, Year Two | US-GAAP | 
| Lessee, Operating Lease, Liability, to be Paid, Remainder of Fiscal Year | US-GAAP | 
| Lessee, Operating Lease, Liability, Undiscounted Excess Amount | US-GAAP | 
| Liabilities | US-GAAP | 
| Liabilities and Equity | US-GAAP | 
| Liabilities, Current | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Liabilities | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Liabilities, Current | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Liabilities, Noncurrent | US-GAAP | 
| Line of Credit, Current | US-GAAP | 
| Estimated Litigation Liability, Current | US-GAAP | 
| Loans Payable to Bank | US-GAAP | 
| Loans Payable to Bank, Current | US-GAAP | 
| Long-term Debt | US-GAAP | 
| Long-term Debt and Lease Obligation | US-GAAP | 
| Long-term Debt and Capital Lease Obligations, Maturities, Repayments of Principal in Year Three | US-GAAP | 
| Long-term Debt and Capital Lease Obligations, Maturities, Repayments of Principal in Year Two | US-GAAP | 
| Long-term Debt and Capital Lease Obligations, Repayments of Principal in Next Twelve Months | US-GAAP | 
| Long-term Debt, Current Maturities | US-GAAP | 
| Long-term Debt, Fair Value | US-GAAP | 
| Long-Term Debt, Maturity, after Year Five | US-GAAP | 
| Long-term Debt, Maturities, Repayments of Principal in Next Rolling Twelve Months | US-GAAP | 
| Long-Term Debt, Maturity, Year One | US-GAAP | 
| Long-term Debt, Maturities, Repayments of Principal in Rolling Year Two | US-GAAP | 
| Long-Term Debt, Maturity, Year Four | US-GAAP | 
| Long-Term Debt, Maturity, Year Three | US-GAAP | 
| Long-Term Debt, Maturity, Year Two | US-GAAP | 
| Long-Term Debt, Maturity, Remainder of Fiscal Year | US-GAAP | 
| Long-term Debt, Excluding Current Maturities | US-GAAP | 
| Loans Payable to Bank, Noncurrent | US-GAAP | 
| Machinery and Equipment, Gross | US-GAAP | 
| Net Cash Provided by (Used in) Financing Activities | US-GAAP | 
| Net Cash Provided by (Used in) Financing Activities, Continuing Operations | US-GAAP | 
| Net Cash Provided by (Used in) Investing Activities | US-GAAP | 
| Net Cash Provided by (Used in) Investing Activities, Continuing Operations | US-GAAP | 
| Net Cash Provided by (Used in) Operating Activities | US-GAAP | 
| Net Cash Provided by (Used in) Operating Activities, Continuing Operations | US-GAAP | 
| Net Income (Loss) Attributable to Parent | US-GAAP | 
| Net Income (Loss) Available to Common Stockholders, Basic | US-GAAP | 
| Net Income (Loss) Available to Common Stockholders, Diluted | US-GAAP | 
| Net Rentable Area | US-GAAP | 
| New Accounting Pronouncement or Change in Accounting Principle, Effect of Adoption, Quantification (Deprecated 2020-01-31) | US-GAAP | 
| Nonoperating Income (Expense) | US-GAAP | 
| Notes Payable | US-GAAP | 
| Notes Payable, Current | US-GAAP | 
| Notes Payable, Related Parties, Current | US-GAAP | 
| Notes Payable, Related Parties, Current (Deprecated 2009-01-31) | US-GAAP | 
| Notes Reduction | US-GAAP | 
| Number of Operating Segments | US-GAAP | 
| Number of Reportable Segments | US-GAAP | 
| Number of Reporting Units | US-GAAP | 
| Operating Income (Loss) | US-GAAP | 
| Operating Lease, Expense | US-GAAP | 
| Operating Lease, Liability | US-GAAP | 
| Operating Lease, Liability, Current | US-GAAP | 
| Operating Lease, Liability, Noncurrent | US-GAAP | 
| Operating Lease, Payments | US-GAAP | 
| Operating Lease, Right-of-Use Asset | US-GAAP | 
| Operating Leases, Future Minimum Payments Due | US-GAAP | 
| Operating Leases, Future Minimum Payments Due, Next Twelve Months | US-GAAP | 
| Operating Leases, Future Minimum Payments, Due in Five Years | US-GAAP | 
| Operating Leases, Future Minimum Payments, Due in Four Years | US-GAAP | 
| Operating Leases, Future Minimum Payments, Due in Three Years | US-GAAP | 
| Operating Leases, Future Minimum Payments, Due in Two Years | US-GAAP | 
| Operating Leases, Future Minimum Payments, Due Thereafter | US-GAAP | 
| Operating Leases, Future Minimum Payments Receivable | US-GAAP | 
| Operating Leases, Future Minimum Payments Receivable, Current | US-GAAP | 
| Operating Leases, Future Minimum Payments Receivable, in Four Years | US-GAAP | 
| Operating Leases, Future Minimum Payments Receivable, in Three Years | US-GAAP | 
| Operating Leases, Future Minimum Payments Receivable, in Two Years | US-GAAP | 
| Operating Leases, Future Minimum Payments, Remainder of Fiscal Year | US-GAAP | 
| Operating Leases, Rent Expense, Minimum Rentals | US-GAAP | 
| Operating Leases, Rent Expense, Net | US-GAAP | 
| Operating Leases, Rent Expense, Sublease Rentals | US-GAAP | 
| Operating Loss Carryforwards | US-GAAP | 
| Other Accrued Liabilities, Current | US-GAAP | 
| Other Asset Impairment Charges | US-GAAP | 
| Other Assets, Current | US-GAAP | 
| Other Assets, Noncurrent | US-GAAP | 
| Other Deferred Compensation Arrangements, Liability, Current | US-GAAP | 
| Other Inventory, Supplies, Gross | US-GAAP | 
| Other Liabilities, Current | US-GAAP | 
| Other Liabilities, Noncurrent | US-GAAP | 
| Other Loans Payable, Current | US-GAAP | 
| Other Loans Payable, Long-term, Noncurrent | US-GAAP | 
| Other Nonoperating Expense | US-GAAP | 
| Other Nonoperating Income | US-GAAP | 
| Other Nonoperating Income (Expense) | US-GAAP | 
| Other Prepaid Expense, Current | US-GAAP | 
| Other Receivables, Net, Current | US-GAAP | 
| Other Significant Noncash Transaction, Value of Consideration Given | US-GAAP | 
| Payment of Financing and Stock Issuance Costs | US-GAAP | 
| Payments for (Proceeds from) Other Deposits | US-GAAP | 
| Payments for Rent | US-GAAP | 
| Payments for Repurchase of Common Stock | US-GAAP | 
| Payments for Restructuring | US-GAAP | 
| Payments for Software | US-GAAP | 
| Payments of Stock Issuance Costs | US-GAAP | 
| Payments to Acquire Intangible Assets | US-GAAP | 
| Payments to Acquire Machinery and Equipment | US-GAAP | 
| Payments to Acquire Property, Plant, and Equipment | US-GAAP | 
| Preferred Stock Dividends and Other Adjustments | US-GAAP | 
| Preferred Stock, Par or Stated Value Per Share | US-GAAP | 
| Preferred Stock, Shares Authorized | US-GAAP | 
| Preferred Stock, Shares Issued | US-GAAP | 
| Preferred Stock, Shares Outstanding | US-GAAP | 
| Preferred Stock, Value, Issued | US-GAAP | 
| Prepaid Expense and Other Assets, Current | US-GAAP | 
| Prepaid Insurance | US-GAAP | 
| Prepaid Rent | US-GAAP | 
| Proceeds from Debt, Net of Issuance Costs | US-GAAP | 
| Proceeds from Issuance of Common Stock | US-GAAP | 
| Proceeds from Issuance of Convertible Preferred Stock | US-GAAP | 
| Proceeds from Issuance of Debt | US-GAAP | 
| Proceeds from Issuance of Other Long-term Debt | US-GAAP | 
| Proceeds from Issuance of Preferred Stock and Preference Stock | US-GAAP | 
| Proceeds from Issuance of Preferred Stock, Preference Stock, and Warrants | US-GAAP | 
| Proceeds from Issuance of Private Placement | US-GAAP | 
| Proceeds from Issuance or Sale of Equity | US-GAAP | 
| Proceeds from Lines of Credit | US-GAAP | 
| Proceeds from Other Short-term Debt | US-GAAP | 
| Proceeds from Collection of (Payments to Fund) Long-term Loans to Related Parties | US-GAAP | 
| Proceeds from (Repayments of) Lines of Credit | US-GAAP | 
| Proceeds from (Repayments of) Other Long-term Debt | US-GAAP | 
| Proceeds from (Repayments of) Related Party Debt | US-GAAP | 
| Proceeds from Sale of Machinery and Equipment | US-GAAP | 
| Proceeds from Sale of Other Productive Assets | US-GAAP | 
| Proceeds from Sale of Property, Plant, and Equipment | US-GAAP | 
| Proceeds from Warrant Exercises | US-GAAP | 
| Net Income (Loss), Including Portion Attributable to Noncontrolling Interest | US-GAAP | 
| Property, Plant and Equipment, Additions | US-GAAP | 
| Property, Plant and Equipment, Disposals | US-GAAP | 
| Property, Plant and Equipment, Gross | US-GAAP | 
| Property, Plant and Equipment, Net | US-GAAP | 
| Property, Plant and Equipment, Transfers and Changes | US-GAAP | 
| Accounts Receivable, Credit Loss Expense (Reversal) | US-GAAP | 
| Provision for Loan, Lease, and Other Losses | US-GAAP | 
| Repayments of Bank Debt | US-GAAP | 
| Repayments of Lines of Credit | US-GAAP | 
| Repayments of Long-term Capital Lease Obligations | US-GAAP | 
| Repayments of Notes Payable | US-GAAP | 
| Repayments of Other Short-term Debt | US-GAAP | 
| Repayments of Related Party Debt | US-GAAP | 
| Repayments of Short-term Debt | US-GAAP | 
| Research and Development Expense | US-GAAP | 
| Restricted Cash and Cash Equivalents | US-GAAP | 
| Restricted Cash and Cash Equivalents, Current | US-GAAP | 
| Restricted Cash, Current | US-GAAP | 
| Restricted Stock or Unit Expense | US-GAAP | 
| Restructuring Charges | US-GAAP | 
| Restructuring Reserve | US-GAAP | 
| Retained Earnings (Accumulated Deficit) | US-GAAP | 
| Revenue from Contract with Customer, Excluding Assessed Tax | US-GAAP | 
| Revenue from Contract with Customer, Including Assessed Tax | US-GAAP | 
| Revenues | US-GAAP | 
| Sale of Stock, Price Per Share | US-GAAP | 
| Sales Revenue, Goods, Net (Deprecated 2018-01-31) | US-GAAP | 
| Revenue, Net (Deprecated 2018-01-31) | US-GAAP | 
| Secured Debt, Current | US-GAAP | 
| Security Deposit | US-GAAP | 
| Selling, General and Administrative Expense | US-GAAP | 
| Share-based Payment Arrangement, Noncash Expense | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeited in Period | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Intrinsic Value, Amount Per Share | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Exercise Price | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Volatility Rate | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Risk Free Interest Rate | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Non-Option Equity Instruments, Exercised | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Number | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Options, Forfeitures and Expirations in Period | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Options, Forfeitures and Expirations in Period, Weighted Average Exercise Price | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Options, Forfeitures in Period | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Net of Forfeitures | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Grant Date Intrinsic Value | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Intrinsic Value | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Number | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Exercisable, Aggregate Intrinsic Value | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Outstanding, Number | US-GAAP | 
| Share-based Compensation Arrangements by Share-based Payment Award, Options, Exercises in Period, Weighted Average Exercise Price | US-GAAP | 
| Share-based Compensation Arrangements by Share-based Payment Award, Options, Grants in Period, Weighted Average Exercise Price | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Options, Nonvested, Number of Shares | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested in Period, Fair Value | US-GAAP | 
| Share Price | US-GAAP | 
| Shares, Issued | US-GAAP | 
| Shares Issued, Price Per Share | US-GAAP | 
| Stockholders' Equity Attributable to Parent | US-GAAP | 
| Stockholders' Equity, Including Portion Attributable to Noncontrolling Interest | US-GAAP | 
| Stockholders' Equity Note, Stock Split, Conversion Ratio | US-GAAP | 
| Stockholders' Equity Note, Subscriptions Receivable | US-GAAP | 
| Stockholders' Equity, Other | US-GAAP | 
| Stock Issued | US-GAAP | 
| Stock Issued During Period, Shares, Acquisitions | US-GAAP | 
| Stock Issued During Period, Shares, Conversion of Convertible Securities | US-GAAP | 
| Stock Issued During Period, Shares, Conversion of Units | US-GAAP | 
| Development Stage Entities, Stock Issued, Shares, Issued for Cash (Deprecated 2015-01-31) | US-GAAP | 
| Stock Issued During Period, Shares, Issued for Services | US-GAAP | 
| Stock Issued During Period, Shares, New Issues | US-GAAP | 
| Stock Issued During Period, Shares, Other | US-GAAP | 
| Stock Issued During Period, Shares, Restricted Stock Award, Gross | US-GAAP | 
| Stock Issued During Period, Shares, Restricted Stock Award, Net of Forfeitures | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercises in Period | US-GAAP | 
| Stock Issued During Period, Value, Acquisitions | US-GAAP | 
| Stock Issued During Period, Value, Conversion of Convertible Securities | US-GAAP | 
| Stock Issued During Period, Value, Conversion of Convertible Securities, Net of Adjustments | US-GAAP | 
| Stock Issued During Period, Value, Conversion of Units | US-GAAP | 
| Stock Issued During Period, Value, Issued for Services | US-GAAP | 
| Stock Issued During Period, Value, New Issues | US-GAAP | 
| Stock Issued During Period, Value, Other | US-GAAP | 
| Stock Issued During Period, Value, Restricted Stock Award, Forfeitures | US-GAAP | 
| Stock Issued During Period, Value, Restricted Stock Award, Gross | US-GAAP | 
| Stock Issued During Period, Value, Restricted Stock Award, Net of Forfeitures | US-GAAP | 
| Shares Issued, Value, Share-based Payment Arrangement, after Forfeiture | US-GAAP | 
| Stock or Unit Option Plan Expense | US-GAAP | 
| Taxes Payable, Current | US-GAAP | 
| Treasury Stock, Shares | US-GAAP | 
| Treasury Stock, Value | US-GAAP | 
| Treasury Stock, Value, Acquired, Cost Method | US-GAAP | 
| Unrealized Gain (Loss) on Derivatives | US-GAAP | 
| Valuation Allowance, Deferred Tax Asset, Increase (Decrease), Amount | US-GAAP | 
| Warrants and Rights Outstanding | US-GAAP | 
| Weighted Average Number of Shares Outstanding, Diluted | US-GAAP | 
| Weighted Average Number of Shares Outstanding, Basic and Diluted | US-GAAP | 
| Weighted Average Number of Shares Outstanding, Basic | US-GAAP | 
| Accrual for Taxes Other than Income Taxes, Current | US-GAAP | 
| Accrued Liabilities | US-GAAP | 
| Deferred Tax Assets, Goodwill and Intangible Assets | US-GAAP | 
| Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Warranty Reserves | US-GAAP | 
| Deferred Tax Liabilities, Other | US-GAAP | 
| Discontinued Operation, Tax Effect of Discontinued Operation | US-GAAP | 
| Discontinued Operation, Tax Effect of Gain (Loss) from Disposal of Discontinued Operation | US-GAAP | 
| Income Tax Expense (Benefit), Intraperiod Tax Allocation | US-GAAP | 
| Inventory, Gross | US-GAAP | 
| Inventory Recall Expense | US-GAAP | 
| Loans Payable, Current | US-GAAP | 
| Loans Payable, Noncurrent | US-GAAP | 
| Prepaid Expense and Other Assets | US-GAAP | 
| Proceeds from Issuance of Long-term Debt | US-GAAP | 
| Proceeds from Sales of Assets, Investing Activities | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Weighted Average Exercise Price | US-GAAP | 
| Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Exercise Price | US-GAAP | 
| Increase Decrease In Operating Lease Liability | US-GAAP | 
| Increase (Decrease) in Other Current Liabilities | US-GAAP | 
| Loss Contingency, Accrual, Current | US-GAAP | 
| Proceeds from Divestiture of Interest in Consolidated Subsidiaries | US-GAAP | 
| Shares Issued, Shares, Share-based Payment Arrangement, after Forfeiture | US-GAAP | 
| Payments for Other Fees | US-GAAP | 
| Proceeds from Sale of Other Investments | US-GAAP | 
| Temporary Equity, Carrying Amount, Attributable to Parent | US-GAAP | 
| Temporary Equity, Par or Stated Value Per Share | US-GAAP | 
| Temporary Equity, Shares Authorized | US-GAAP | 
| Amortization of Deferred Charges | US-GAAP | 
| Deferred Revenue | US-GAAP | 
| Deferred Tax Assets, in Process Research and Development | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Other Liabilities, Current | US-GAAP | 
| Interest Income (Expense), Nonoperating, Net | US-GAAP | 
| Restructuring Reserve, Accrual Adjustment | US-GAAP | 
| Unrecorded Unconditional Purchase Obligation, Purchases | US-GAAP | 
| Deferred Tax Assets, State Taxes | US-GAAP | 
| Disposal Group, Including Discontinued Operation, Other Liabilities | US-GAAP | 
| Proceeds from Issuance of Warrants | US-GAAP | 
| Proceeds from Other Equity | US-GAAP | 
| Treasury Stock, Common, Shares | US-GAAP | 
| Noncash or Part Noncash Acquisition, Value of Liabilities Assumed | US-GAAP | 
| Research and Development Asset Acquired Other than Through Business Combination, Written-off | US-GAAP | 
| Research and Development Expense (Excluding Acquired in Process Cost) | US-GAAP | 
| Temporary Equity, Accretion to Redemption Value, Adjustment | US-GAAP | 
| Conversion of Stock, Amount Issued | US-GAAP | 
| Impairment of Leasehold | US-GAAP | 
| Loss Contingency, Damages Sought, Value | US-GAAP | 
| Sale of Stock, Consideration Received on Transaction | US-GAAP |