| 
Entity Common Stock, Shares Outstanding
 | 
DEI
 | 
| 
Entity Public Float
 | 
DEI
 | 
| 
Investment Warrants, Exercise Price
 | 
INVEST
 | 
| 
Accounts Payable and Accrued Liabilities, Current
 | 
US-GAAP
 | 
| 
Accounts Payable and Other Accrued Liabilities, Current
 | 
US-GAAP
 | 
| 
Accounts Payable, Current
 | 
US-GAAP
 | 
| 
Accounts Receivable, after Allowance for Credit Loss
 | 
US-GAAP
 | 
| 
Accounts Receivable, after Allowance for Credit Loss, Current
 | 
US-GAAP
 | 
| 
Accrued Income Taxes, Current
 | 
US-GAAP
 | 
| 
Accrued Liabilities
 | 
US-GAAP
 | 
| 
Accrued Professional Fees
 | 
US-GAAP
 | 
| 
Accrued Salaries
 | 
US-GAAP
 | 
| 
Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment
 | 
US-GAAP
 | 
| 
Accumulated Depreciation, Depletion and Amortization, Reclassifications of Property, Plant and Equipment (Deprecated 2015-01-31)
 | 
US-GAAP
 | 
| 
AOCI, Debt Securities, Available-for-sale, Adjustment, after Tax
 | 
US-GAAP
 | 
| 
Accumulated Other Comprehensive Income (Loss), Foreign Currency Translation Adjustment, Net of Tax
 | 
US-GAAP
 | 
| 
Accumulated Other Comprehensive Income (Loss), Net of Tax
 | 
US-GAAP
 | 
| 
Additional Paid in Capital
 | 
US-GAAP
 | 
| 
Additional Paid in Capital, Common Stock
 | 
US-GAAP
 | 
| 
Additions to Other Assets, Amount
 | 
US-GAAP
 | 
| 
Amortization
 | 
US-GAAP
 | 
| 
Adjustments to Additional Paid in Capital, Convertible Debt with Conversion Feature
 | 
US-GAAP
 | 
| 
APIC, Share-based Payment Arrangement, Restricted Stock Unit, Increase for Cost Recognition
 | 
US-GAAP
 | 
| 
APIC, Share-based Payment Arrangement, Increase for Cost Recognition
 | 
US-GAAP
 | 
| 
Adjustments to Additional Paid in Capital, Warrant Issued
 | 
US-GAAP
 | 
| 
Share-based Payment Arrangement, Expense
 | 
US-GAAP
 | 
| 
Accounts Receivable, Allowance for Credit Loss
 | 
US-GAAP
 | 
| 
Accounts Receivable, Allowance for Credit Loss, Current
 | 
US-GAAP
 | 
| 
Amortization of Debt Discount (Premium)
 | 
US-GAAP
 | 
| 
Amortization of Deferred Loan Origination Fees, Net
 | 
US-GAAP
 | 
| 
Amortization of Intangible Assets
 | 
US-GAAP
 | 
| 
Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount
 | 
US-GAAP
 | 
| 
Asset Impairment Charges
 | 
US-GAAP
 | 
| 
Assets
 | 
US-GAAP
 | 
| 
Assets, Current
 | 
US-GAAP
 | 
| 
Net Assets
 | 
US-GAAP
 | 
| 
Assets, Noncurrent
 | 
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
 | 
| 
Available-for-sale Equity Securities, Gross Unrealized Gain
 | 
US-GAAP
 | 
| 
Available-for-sale Securities, Current
 | 
US-GAAP
 | 
| 
Available-for-sale Securities, Gross Realized Gain (Loss)
 | 
US-GAAP
 | 
| 
Available-for-sale Securities, Gross Realized Losses
 | 
US-GAAP
 | 
| 
Available-for-sale Securities, Gross Unrealized Loss
 | 
US-GAAP
 | 
| 
Available-for-sale Securities, Gross Unrealized Losses (Deprecated 2013-01-31)
 | 
US-GAAP
 | 
| 
Available-for-sale Securities, Realized Losses, Excluding Other than Temporary Impairments
 | 
US-GAAP
 | 
| 
Business Acquisition, Contingent Consideration, at Fair Value (Deprecated 2013-01-31)
 | 
US-GAAP
 | 
| 
Business Acquisition, Contingent Consideration, Potential Cash Payment (Deprecated 2013-01-31)
 | 
US-GAAP
 | 
| 
Business Acquisition, Cost of Acquired Entity, Cash Paid (Deprecated 2013-01-31)
 | 
US-GAAP
 | 
| 
Business Acquisition, Cost of Acquired Entity, Other Noncash Consideration (Deprecated 2013-01-31)
 | 
US-GAAP
 | 
| 
Business Acquisition, Equity Interest Issued or Issuable, Number of Shares
 | 
US-GAAP
 | 
| 
Business Acquisition, Purchase Price Allocation, Mineral Rights (Deprecated 2013-01-31)
 | 
US-GAAP
 | 
| 
Business Combination, Contingent Consideration Arrangements, Change in Amount of Contingent Consideration, Liability
 | 
US-GAAP
 | 
| 
Business Combination, Contingent Consideration, Liability, Current
 | 
US-GAAP
 | 
| 
Business Combination, Contingent Consideration, Liability, Noncurrent
 | 
US-GAAP
 | 
| 
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Contingent Liability
 | 
US-GAAP
 | 
| 
Business Combination, Recognized Identifiable Assets Acquired, Goodwill, and Liabilities Assumed, Less Noncontrolling Interest
 | 
US-GAAP
 | 
| 
Capital Lease Obligations, Current
 | 
US-GAAP
 | 
| 
Capital Leases, Future Minimum Payments Due
 | 
US-GAAP
 | 
| 
Capital Leases, Future Minimum Payments Due, Next Twelve Months
 | 
US-GAAP
 | 
| 
Capital Leases, Future Minimum Payments Due in Five Years
 | 
US-GAAP
 | 
| 
Capital Leases, Future Minimum Payments Due in Four Years
 | 
US-GAAP
 | 
| 
Capital Leases, Future Minimum Payments Due in Three Years
 | 
US-GAAP
 | 
| 
Capital Leases, Future Minimum Payments Due in Two Years
 | 
US-GAAP
 | 
| 
Capital Leases, Future Minimum Payments Due Thereafter
 | 
US-GAAP
 | 
| 
Capital Leases, Future Minimum Payments, Net Minimum Payments
 | 
US-GAAP
 | 
| 
Capital Leases, Future Minimum Payments, Remainder of Fiscal Year
 | 
US-GAAP
 | 
| 
Cash
 | 
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, Including Disposal Group and Discontinued Operations
 | 
US-GAAP
 | 
| 
Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect
 | 
US-GAAP
 | 
| 
Cash, FDIC Insured Amount
 | 
US-GAAP
 | 
| 
Cash, Period Increase (Decrease)
 | 
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 Each Warrant or Right
 | 
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
 | 
| 
Class of Warrant or Right, Unissued
 | 
US-GAAP
 | 
| 
Common Stock, Capital Shares Reserved for Future Issuance
 | 
US-GAAP
 | 
| 
Common Stock Dividends, Shares
 | 
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, Subscriptions
 | 
US-GAAP
 | 
| 
Common Stock, Value, Issued
 | 
US-GAAP
 | 
| 
Comprehensive Income (Loss), Net of Tax, Attributable to Parent
 | 
US-GAAP
 | 
| 
Comprehensive Income (Loss), Net of Tax, Attributable to Noncontrolling Interest
 | 
US-GAAP
 | 
| 
Comprehensive Income (Loss), Net of Tax, Including Portion Attributable to Noncontrolling Interest
 | 
US-GAAP
 | 
| 
Concentration Risk, Percentage
 | 
US-GAAP
 | 
| 
Conversion of Stock, Amount Converted
 | 
US-GAAP
 | 
| 
Conversion of Stock, Amount Issued
 | 
US-GAAP
 | 
| 
Conversion of Stock, Shares Converted
 | 
US-GAAP
 | 
| 
Conversion of Stock, Shares Issued
 | 
US-GAAP
 | 
| 
Convertible Debt, Current
 | 
US-GAAP
 | 
| 
Convertible Notes Payable, Noncurrent
 | 
US-GAAP
 | 
| 
Convertible Notes Payable
 | 
US-GAAP
 | 
| 
Convertible Notes Payable, Current
 | 
US-GAAP
 | 
| 
Cost of Real Estate Sales (Deprecated 2018-01-31)
 | 
US-GAAP
 | 
| 
Cost of Revenue
 | 
US-GAAP
 | 
| 
Cost of Services, Amortization (Deprecated 2018-01-31)
 | 
US-GAAP
 | 
| 
Costs and Expenses
 | 
US-GAAP
 | 
| 
Current Federal, State and Local, Tax Expense (Benefit)
 | 
US-GAAP
 | 
| 
Current Federal Tax Expense (Benefit)
 | 
US-GAAP
 | 
| 
Current Foreign Tax Expense (Benefit)
 | 
US-GAAP
 | 
| 
Current Income Tax Expense (Benefit)
 | 
US-GAAP
 | 
| 
Current State and Local 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
 | 
| 
Long-term Debt, Gross
 | 
US-GAAP
 | 
| 
Debt Instrument, Convertible, Beneficial Conversion Feature
 | 
US-GAAP
 | 
| 
Debt Instrument, Convertible, Effective Interest Rate (Deprecated 2013-01-31)
 | 
US-GAAP
 | 
| 
Debt Instrument, Interest Rate at Period End (Deprecated 2014-01-31)
 | 
US-GAAP
 | 
| 
Debt Instrument, Interest Rate During Period
 | 
US-GAAP
 | 
| 
Debt Instrument, Interest Rate, Stated Percentage
 | 
US-GAAP
 | 
| 
Debt Instrument, Unamortized Discount
 | 
US-GAAP
 | 
| 
Debt Instrument, Unamortized Discount, Current
 | 
US-GAAP
 | 
| 
Deferred Federal Income Tax Expense (Benefit)
 | 
US-GAAP
 | 
| 
Debt Issuance Cost, Gross, Noncurrent
 | 
US-GAAP
 | 
| 
Deferred Foreign Income Tax Expense (Benefit)
 | 
US-GAAP
 | 
| 
Deferred Income Tax Expense (Benefit)
 | 
US-GAAP
 | 
| 
Deferred Income Taxes and Other Assets, Current
 | 
US-GAAP
 | 
| 
Deferred Tax Liabilities, Gross
 | 
US-GAAP
 | 
| 
Deferred Rent Credit
 | 
US-GAAP
 | 
| 
Deferred Revenue
 | 
US-GAAP
 | 
| 
Deferred Revenue, Current
 | 
US-GAAP
 | 
| 
Deferred Revenue, Noncurrent
 | 
US-GAAP
 | 
| 
Deferred State and Local Income Tax Expense (Benefit)
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Charitable Contribution Carryforwards
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Goodwill and Intangible Assets
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Gross
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Gross, Current
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Net
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Net, Noncurrent
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Net of Valuation Allowance
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Operating Loss Carryforwards
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Operating Loss Carryforwards, Domestic
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Operating Loss Carryforwards, State and Local
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Other
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Property, Plant and Equipment
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, State Taxes
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Tax Credit Carryforwards, Alternative Minimum Tax
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Accrued Liabilities
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Valuation Allowance
 | 
US-GAAP
 | 
| 
Deferred Tax Liabilities, Net
 | 
US-GAAP
 | 
| 
Deferred Tax Liabilities, Net, Current
 | 
US-GAAP
 | 
| 
Deferred Tax Liabilities, Net, Noncurrent
 | 
US-GAAP
 | 
| 
Deferred Tax Liabilities, Other
 | 
US-GAAP
 | 
| 
Deferred Tax Liabilities, Prepaid Expenses
 | 
US-GAAP
 | 
| 
Deferred Tax Liabilities, Property, Plant and Equipment
 | 
US-GAAP
 | 
| 
Deposit Assets
 | 
US-GAAP
 | 
| 
Deposits
 | 
US-GAAP
 | 
| 
Deposits Assets, Noncurrent
 | 
US-GAAP
 | 
| 
Depreciation
 | 
US-GAAP
 | 
| 
Depreciation, Depletion and Amortization, Nonproduction
 | 
US-GAAP
 | 
| 
Depreciation, Depletion and Amortization
 | 
US-GAAP
 | 
| 
Development Stage Enterprise, Deficit Accumulated During Development Stage (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, Net of Tax, Per Basic Share
 | 
US-GAAP
 | 
| 
Discontinued Operation, Income (Loss) from Discontinued Operation, Net of Tax, Per Diluted Share
 | 
US-GAAP
 | 
| 
Disposal Group, Not Discontinued Operation, Loss (Gain) on Write-down
 | 
US-GAAP
 | 
| 
Dividends, Common Stock
 | 
US-GAAP
 | 
| 
Dividends, Preferred Stock, Stock
 | 
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, Deduction, Percent
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, Nondeductible Expense, Percent
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, Other Adjustments, Percent
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, State and Local Income Taxes, Percent
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, Tax Contingency, State and Local, Percent
 | 
US-GAAP
 | 
| 
Effect of Exchange Rate on Cash
 | 
US-GAAP
 | 
| 
Effect of Exchange Rate on Cash and Cash Equivalents
 | 
US-GAAP
 | 
| 
Effect of Exchange Rate on Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Including Disposal Group and Discontinued Operations
 | 
US-GAAP
 | 
| 
Employee-related Liabilities
 | 
US-GAAP
 | 
| 
Employee Service Share-based Compensation, Cash Received from Exercise of Stock Options (Deprecated 2017-01-31)
 | 
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
 | 
| 
Exploration Expense, Mining (Deprecated 2018-01-31)
 | 
US-GAAP
 | 
| 
Extinguishment of Debt, Amount
 | 
US-GAAP
 | 
| 
Extinguishment of Debt, Gain (Loss), Income Tax
 | 
US-GAAP
 | 
| 
Fair Value Adjustment of Warrants
 | 
US-GAAP
 | 
| 
Fair Value Assumptions, Expected Volatility Rate (Deprecated 2018-01-31)
 | 
US-GAAP
 | 
| 
Fair Value Inputs, Discount Rate (Deprecated 2018-01-31)
 | 
US-GAAP
 | 
| 
Fair Value Inputs, Long-term Net of Tax Operating Income Margin, Percent (Deprecated 2018-01-31)
 | 
US-GAAP
 | 
| 
Fair Value, Liabilities, Level 1 to Level 2 Transfers, Amount
 | 
US-GAAP
 | 
| 
Fair Value, Liabilities, Level 2 to Level 1 Transfers, Amount
 | 
US-GAAP
 | 
| 
Fair Value, Measurement with Unobservable Inputs Reconciliation, Liability, Transfers Into Level 3
 | 
US-GAAP
 | 
| 
Fair Value, Measurement with Unobservable Inputs Reconciliation, Liability, Transfers out of Level 3
 | 
US-GAAP
 | 
| 
Fair Value of Assets Acquired
 | 
US-GAAP
 | 
| 
FDIC Indemnification Asset
 | 
US-GAAP
 | 
| 
Fees and Commissions, Fiduciary and Trust Activities (Deprecated 2018-01-31)
 | 
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, Cost Incurred to Renew or Extend
 | 
US-GAAP
 | 
| 
Finite-lived Intangible Assets, Fair Value Disclosure
 | 
US-GAAP
 | 
| 
Finite-Lived Intangible Assets, Gross
 | 
US-GAAP
 | 
| 
Finite-Lived Intangible Assets, Net
 | 
US-GAAP
 | 
| 
Finite-Lived Patents, Gross
 | 
US-GAAP
 | 
| 
Foreign Currency Transaction Gain (Loss), before Tax
 | 
US-GAAP
 | 
| 
Gain (Loss) on Disposition of Assets
 | 
US-GAAP
 | 
| 
Gain (Loss) on Disposition of Intangible Assets
 | 
US-GAAP
 | 
| 
Gain (Loss) on Sale of Equity Investments
 | 
US-GAAP
 | 
| 
Gain (Loss) on Sale of Loans and Leases
 | 
US-GAAP
 | 
| 
Gain (Loss) on Disposition of Other Assets
 | 
US-GAAP
 | 
| 
Gain (Loss) on Sale of Assets and Asset Impairment Charges
 | 
US-GAAP
 | 
| 
Gain (Loss) on Termination of Lease
 | 
US-GAAP
 | 
| 
Gain on Sale of Investments
 | 
US-GAAP
 | 
| 
Gain (Loss) on Disposition of Stock in Subsidiary
 | 
US-GAAP
 | 
| 
Gain (Loss) on Extinguishment of Debt
 | 
US-GAAP
 | 
| 
General and Administrative Expense
 | 
US-GAAP
 | 
| 
Goodwill
 | 
US-GAAP
 | 
| 
Goodwill and Intangible Asset Impairment
 | 
US-GAAP
 | 
| 
Goodwill, Impairment Loss
 | 
US-GAAP
 | 
| 
Goodwill, Other Changes (Deprecated 2016-01-31)
 | 
US-GAAP
 | 
| 
Goodwill, Period Increase (Decrease)
 | 
US-GAAP
 | 
| 
Gross Profit
 | 
US-GAAP
 | 
| 
Impairment of Intangible Assets (Excluding Goodwill)
 | 
US-GAAP
 | 
| 
Impairment of Intangible Assets, Finite-lived
 | 
US-GAAP
 | 
| 
Impairment of Intangible Assets, Indefinite-lived (Excluding Goodwill)
 | 
US-GAAP
 | 
| 
Impairment of Long-Lived Assets Held-for-use
 | 
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, 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 and Disposal of Discontinued Operations, Net of Tax, Per Basic and Diluted Share
 | 
US-GAAP
 | 
| 
Income (Loss) from Operations before Extraordinary Items, Per Basic and Diluted Share (Deprecated 2019-01-31)
 | 
US-GAAP
 | 
| 
Income Tax Expense (Benefit)
 | 
US-GAAP
 | 
| 
Income Taxes Paid, Net
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, Deduction, Employee Stock Ownership Plan Dividend, Amount
 | 
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, Foreign Income Tax Rate Differential, Amount
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation at Federal Statutory Income Tax Rate, Amount
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, Nondeductible Expense, Impairment Losses, Amount
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, Nondeductible Expense, Other, Amount
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, Nondeductible Expense, Share-based Payment Arrangement, Amount
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, Other Adjustments, Amount
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, State and Local Income Taxes, Amount
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, Tax Contingency, Amount
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Accounts Payable
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Accounts Payable and Accrued Liabilities
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Accounts Receivable
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Income Taxes Payable
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Deposits
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Other Current Assets
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Other Deferred Liability
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Other Noncurrent Assets
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Other Operating Assets
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Other Receivables
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Prepaid Expense and Other Assets
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Prepaid Expense
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Prepaid Taxes
 | 
US-GAAP
 | 
| 
Incremental Common Shares Attributable to Dilutive Effect of Call Options and Warrants
 | 
US-GAAP
 | 
| 
Intangible Assets, Current
 | 
US-GAAP
 | 
| 
Intangible Assets, Gross (Excluding Goodwill)
 | 
US-GAAP
 | 
| 
Intangible Assets, Net (Excluding Goodwill)
 | 
US-GAAP
 | 
| 
Intangible Assets, Net (Including Goodwill)
 | 
US-GAAP
 | 
| 
Interest Expense
 | 
US-GAAP
 | 
| 
Interest Income, Other
 | 
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
 | 
| 
Interest Receivable
 | 
US-GAAP
 | 
| 
Inventory, Real Estate, Held-for-sale
 | 
US-GAAP
 | 
| 
Investment Income, Interest
 | 
US-GAAP
 | 
| 
Investment Income, Net
 | 
US-GAAP
 | 
| 
Issuance of Stock and Warrants for Services or Claims
 | 
US-GAAP
 | 
| 
Labor and Related Expense
 | 
US-GAAP
 | 
| 
Operating Leases, Rent Expense
 | 
US-GAAP
 | 
| 
Lease, Cost
 | 
US-GAAP
 | 
| 
Lease Incentive, Payable
 | 
US-GAAP
 | 
| 
Legal Fees
 | 
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 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
 | 
| 
Liabilities, Noncurrent
 | 
US-GAAP
 | 
| 
Liabilities of Business Transferred under Contractual Arrangement, Current
 | 
US-GAAP
 | 
| 
Liabilities of Business Transferred under Contractual Arrangement, Noncurrent
 | 
US-GAAP
 | 
| 
Disposal Group, Including Discontinued Operation, Liabilities
 | 
US-GAAP
 | 
| 
License Costs (Deprecated 2018-01-31)
 | 
US-GAAP
 | 
| 
Licenses Revenue (Deprecated 2018-01-31)
 | 
US-GAAP
 | 
| 
Estimated Litigation Liability
 | 
US-GAAP
 | 
| 
Estimated Litigation Liability, Current
 | 
US-GAAP
 | 
| 
Litigation Settlement, Expense
 | 
US-GAAP
 | 
| 
Loans and Leases Receivable, Gross, Other (Deprecated 2016-01-31)
 | 
US-GAAP
 | 
| 
Long-Duration Contracts, Assumptions by Product and Guarantee, Volatility Rate
 | 
US-GAAP
 | 
| 
Long Lived Assets Held-for-sale, Proceeds from Sale (Deprecated 2013-01-31)
 | 
US-GAAP
 | 
| 
Long-term Debt
 | 
US-GAAP
 | 
| 
Long-term Debt, Current Maturities
 | 
US-GAAP
 | 
| 
Long-term Debt, Excluding Current Maturities
 | 
US-GAAP
 | 
| 
Loans Payable, Noncurrent
 | 
US-GAAP
 | 
| 
Notes Payable, Noncurrent
 | 
US-GAAP
 | 
| 
Marketable Securities, Gain (Loss)
 | 
US-GAAP
 | 
| 
Marketable Securities, Unrealized Gain (Loss)
 | 
US-GAAP
 | 
| 
Mineral Rights
 | 
US-GAAP
 | 
| 
Stockholders' Equity Attributable to Noncontrolling Interest
 | 
US-GAAP
 | 
| 
Noncontrolling Interest, Ownership Percentage by Noncontrolling Owners
 | 
US-GAAP
 | 
| 
Noncontrolling Interest, Period Increase (Decrease)
 | 
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) Attributable to Noncontrolling Interest
 | 
US-GAAP
 | 
| 
Net Income (Loss) Available to Common Stockholders, Basic
 | 
US-GAAP
 | 
| 
Noncash Commission and Closing Costs (Deprecated 2016-01-31)
 | 
US-GAAP
 | 
| 
Noncash or Part Noncash Acquisition, Net Nonmonetary Assets Acquired (Liabilities Assumed)
 | 
US-GAAP
 | 
| 
Noncash or Part Noncash Acquisition, Noncash Financial or Equity Instrument Consideration, Warrants Issued
 | 
US-GAAP
 | 
| 
Noncash or Part Noncash Acquisition, Other Assets Acquired
 | 
US-GAAP
 | 
| 
Nonmonetary Transaction, Gain (Loss) Recognized on Transfer
 | 
US-GAAP
 | 
| 
Nonoperating Income (Expense)
 | 
US-GAAP
 | 
| 
Financing Receivable, after Allowance for Credit Loss, Current
 | 
US-GAAP
 | 
| 
Financing Receivable, after Allowance for Credit Loss, Noncurrent
 | 
US-GAAP
 | 
| 
Notes Issued
 | 
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 Payable, Related Parties
 | 
US-GAAP
 | 
| 
Notes Receivable, Related Parties, Current
 | 
US-GAAP
 | 
| 
Number of Reporting Units
 | 
US-GAAP
 | 
| 
Operating Expenses
 | 
US-GAAP
 | 
| 
Operating Income (Loss)
 | 
US-GAAP
 | 
| 
Operating Lease, Cost
 | 
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 Lease, Right-of-Use Asset, Amortization Expense
 | 
US-GAAP
 | 
| 
Operating Leases, Future Minimum Payments Due
 | 
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, Remainder of Fiscal Year
 | 
US-GAAP
 | 
| 
Operating Leases, Rent Expense, Net
 | 
US-GAAP
 | 
| 
Operating Lease, Weighted Average Discount Rate, Percent
 | 
US-GAAP
 | 
| 
Operating Loss Carryforwards
 | 
US-GAAP
 | 
| 
Option Indexed to Issuer's Equity, Shares
 | 
US-GAAP
 | 
| 
Amortization of Other Deferred Charges
 | 
US-GAAP
 | 
| 
Other Asset Impairment Charges
 | 
US-GAAP
 | 
| 
Other Assets
 | 
US-GAAP
 | 
| 
Other Assets, Fair Value Disclosure
 | 
US-GAAP
 | 
| 
Other Assets, Noncurrent
 | 
US-GAAP
 | 
| 
Other Comprehensive Income (Loss), Available-for-sale Securities Adjustment, Net of Tax, Portion Attributable to Parent
 | 
US-GAAP
 | 
| 
Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, Net of Tax, Portion Attributable to Parent
 | 
US-GAAP
 | 
| 
Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Gain (Loss) Arising During Period, Net of Tax
 | 
US-GAAP
 | 
| 
Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, before Tax
 | 
US-GAAP
 | 
| 
Other Income
 | 
US-GAAP
 | 
| 
Other Indefinite-lived Intangible Assets
 | 
US-GAAP
 | 
| 
Other Labor-related Expenses
 | 
US-GAAP
 | 
| 
Other Liabilities, Current
 | 
US-GAAP
 | 
| 
Other Liabilities, Noncurrent
 | 
US-GAAP
 | 
| 
Other Long-term Debt, Noncurrent
 | 
US-GAAP
 | 
| 
Other Noncash Expense
 | 
US-GAAP
 | 
| 
Other Noncash Income
 | 
US-GAAP
 | 
| 
Other Noncash Income (Expense)
 | 
US-GAAP
 | 
| 
Other Nonoperating Expense
 | 
US-GAAP
 | 
| 
Other Nonoperating Income
 | 
US-GAAP
 | 
| 
Other Nonoperating Income (Expense)
 | 
US-GAAP
 | 
| 
Other Real Estate Revenue (Deprecated 2018-01-31)
 | 
US-GAAP
 | 
| 
Other Receivables, Net, Current
 | 
US-GAAP
 | 
| 
Other Revenue, Net (Deprecated 2018-01-31)
 | 
US-GAAP
 | 
| 
Other Significant Noncash Transaction, Value of Consideration Given
 | 
US-GAAP
 | 
| 
Partners' Capital Account, Units, Sold in Private Placement
 | 
US-GAAP
 | 
| 
Payment of Financing and Stock Issuance Costs
 | 
US-GAAP
 | 
| 
Payments for Deposits on Real Estate Acquisitions
 | 
US-GAAP
 | 
| 
Payments for Rent
 | 
US-GAAP
 | 
| 
Payments for Repurchase of Common Stock
 | 
US-GAAP
 | 
| 
Payments of Stock Issuance Costs
 | 
US-GAAP
 | 
| 
Payments to Acquire Businesses, Gross
 | 
US-GAAP
 | 
| 
Payments to Acquire Commercial Real Estate
 | 
US-GAAP
 | 
| 
Payments to Acquire Intangible Assets
 | 
US-GAAP
 | 
| 
Payments to Acquire Investments
 | 
US-GAAP
 | 
| 
Payments to Acquire Mineral Rights
 | 
US-GAAP
 | 
| 
Payments to Acquire Mining Assets
 | 
US-GAAP
 | 
| 
Payments to Acquire Property, Plant, and Equipment
 | 
US-GAAP
 | 
| 
Preferred Stock, Dividend Rate, Percentage
 | 
US-GAAP
 | 
| 
Preferred Stock Dividends, Income Statement Impact
 | 
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 Expense, Current
 | 
US-GAAP
 | 
| 
Prepaid Expense, Noncurrent
 | 
US-GAAP
 | 
| 
Proceeds from Contributed Capital
 | 
US-GAAP
 | 
| 
Proceeds from Convertible Debt
 | 
US-GAAP
 | 
| 
Proceeds from Debt, Net of Issuance Costs
 | 
US-GAAP
 | 
| 
Proceeds from Interest Received
 | 
US-GAAP
 | 
| 
Proceeds from Issuance Initial Public Offering
 | 
US-GAAP
 | 
| 
Proceeds from Issuance of Common Stock
 | 
US-GAAP
 | 
| 
Proceeds from Issuance of Private Placement
 | 
US-GAAP
 | 
| 
Proceeds from Issuance of Warrants
 | 
US-GAAP
 | 
| 
Proceeds from Issuance or Sale of Equity
 | 
US-GAAP
 | 
| 
Proceeds from Notes Payable
 | 
US-GAAP
 | 
| 
Proceeds from (Payments for) Other Financing Activities
 | 
US-GAAP
 | 
| 
Proceeds from Related Party Debt
 | 
US-GAAP
 | 
| 
Proceeds from (Repayments of) Notes Payable
 | 
US-GAAP
 | 
| 
Proceeds from (Repayments of) Other Debt
 | 
US-GAAP
 | 
| 
Proceeds from (Repayments of) Related Party Debt
 | 
US-GAAP
 | 
| 
Proceeds from Sale and Maturity of Marketable Securities
 | 
US-GAAP
 | 
| 
Proceeds from Sale of Intangible Assets
 | 
US-GAAP
 | 
| 
Proceeds from Sale of Other Assets
 | 
US-GAAP
 | 
| 
Proceeds from Sale of Property, Plant, and Equipment
 | 
US-GAAP
 | 
| 
Proceeds from Stock Options Exercised
 | 
US-GAAP
 | 
| 
Proceeds from Warrant Exercises
 | 
US-GAAP
 | 
| 
Professional and Contract Services Expense
 | 
US-GAAP
 | 
| 
Professional Fees
 | 
US-GAAP
 | 
| 
Net Income (Loss), Including Portion Attributable to Noncontrolling Interest
 | 
US-GAAP
 | 
| 
Property, Plant and Equipment, Net
 | 
US-GAAP
 | 
| 
Accounts Receivable, Credit Loss Expense (Reversal)
 | 
US-GAAP
 | 
| 
Real Estate Held-for-sale
 | 
US-GAAP
 | 
| 
Real Estate Revenue, Net (Deprecated 2018-01-31)
 | 
US-GAAP
 | 
| 
Recapitalization Costs
 | 
US-GAAP
 | 
| 
Related Party Transaction, Rate
 | 
US-GAAP
 | 
| 
Rental Properties
 | 
US-GAAP
 | 
| 
Repayment of Notes Receivable from Related Parties
 | 
US-GAAP
 | 
| 
Repayments of Convertible Debt
 | 
US-GAAP
 | 
| 
Repayments of Notes Payable
 | 
US-GAAP
 | 
| 
Repayments of Related Party Debt
 | 
US-GAAP
 | 
| 
Restricted Cash and Cash Equivalents
 | 
US-GAAP
 | 
| 
Restricted Cash and Cash Equivalents, Current
 | 
US-GAAP
 | 
| 
Retainage Deposit
 | 
US-GAAP
 | 
| 
Retained Earnings (Accumulated Deficit)
 | 
US-GAAP
 | 
| 
Revenue from Contract with Customer, Excluding Assessed Tax
 | 
US-GAAP
 | 
| 
Revenues
 | 
US-GAAP
 | 
| 
Salary and Wage, NonOfficer, Excluding Cost of Good and Service Sold
 | 
US-GAAP
 | 
| 
Salary and Wage, Excluding Cost of Good and Service Sold
 | 
US-GAAP
 | 
| 
Sale of Stock, Price Per Share
 | 
US-GAAP
 | 
| 
Sales of Real Estate (Deprecated 2018-01-31)
 | 
US-GAAP
 | 
| 
Security Deposit
 | 
US-GAAP
 | 
| 
Share-based Payment Arrangement, Noncash Expense
 | 
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, Weighted Average Grant Date Fair Value
 | 
US-GAAP
 | 
| 
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number
 | 
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, Non-Option Equity Instruments, Exercised
 | 
US-GAAP
 | 
| 
Share-based Compensation Arrangement by Share-based Payment Award, Non-Option Equity Instruments, Expirations
 | 
US-GAAP
 | 
| 
Share-based Compensation Arrangement by Share-based Payment Award, Non-Option Equity Instruments, Granted
 | 
US-GAAP
 | 
| 
Share-based Compensation Arrangement by Share-based Payment Award, Non-Option Equity Instruments, Outstanding, Number
 | 
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, Number of Shares Available for Grant
 | 
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, Exercisable, Weighted Average Exercise Price
 | 
US-GAAP
 | 
| 
Share-based Compensation Arrangement by Share-based Payment Award, Options, Expirations in Period
 | 
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, Gross
 | 
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, Outstanding, Weighted Average Exercise Price
 | 
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, Exercisable, Number
 | 
US-GAAP
 | 
| 
Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Exercisable, Weighted Average Exercise Price
 | 
US-GAAP
 | 
| 
Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Outstanding, 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 Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Outstanding, Weighted Average Exercise Price
 | 
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, Expirations in Period, Weighted Average Exercise Price
 | 
US-GAAP
 | 
| 
Share-based Compensation Arrangements by Share-based Payment Award, Options, Forfeitures 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 Payment Arrangement, Option, Exercise Price Range, Shares Exercisable
 | 
US-GAAP
 | 
| 
Share-based Payment Arrangement, Expensed and Capitalized, Amount
 | 
US-GAAP
 | 
| 
Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Intrinsic Value
 | 
US-GAAP
 | 
| 
Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested, Number of Shares
 | 
US-GAAP
 | 
| 
Share-based Compensation Arrangement by Share-based Payment Award, Purchase Price of Common Stock, Percent
 | 
US-GAAP
 | 
| 
Share-based Payment Arrangement, Option, Exercise Price Range, Exercisable, Weighted Average Exercise Price
 | 
US-GAAP
 | 
| 
Share Price
 | 
US-GAAP
 | 
| 
Shares, Issued
 | 
US-GAAP
 | 
| 
Shares Issued, Price Per Share
 | 
US-GAAP
 | 
| 
Short-term Investments
 | 
US-GAAP
 | 
| 
Short-term Lease, Cost
 | 
US-GAAP
 | 
| 
Special Assessment Bond
 | 
US-GAAP
 | 
| 
Shares Granted, Value, Share-based Payment Arrangement, after Forfeiture
 | 
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 (Deprecated 2013-01-31)
 | 
US-GAAP
 | 
| 
Stock Issued
 | 
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, Purchase of Assets
 | 
US-GAAP
 | 
| 
Stock Issued During Period, Shares, Restricted Stock Award, Gross
 | 
US-GAAP
 | 
| 
Shares Issued, Shares, Share-based Payment Arrangement, after Forfeiture
 | 
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
 | 
| 
Development Stage Entities, Stock Issued, Value, Issued for Cash (Deprecated 2015-01-31)
 | 
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, Gross
 | 
US-GAAP
 | 
| 
Shares Issued, Value, Share-based Payment Arrangement, after Forfeiture
 | 
US-GAAP
 | 
| 
Stock Issued During Period, Value, Stock Options Exercised
 | 
US-GAAP
 | 
| 
Stock or Unit Option Plan Expense
 | 
US-GAAP
 | 
| 
Stock Repurchased During Period, Shares
 | 
US-GAAP
 | 
| 
Tax Adjustments, Settlements, and Unusual Provisions
 | 
US-GAAP
 | 
| 
Temporary Equity, Foreign Currency Translation Adjustments
 | 
US-GAAP
 | 
| 
Temporary Equity, Par or Stated Value Per Share
 | 
US-GAAP
 | 
| 
Unrealized Gain (Loss) on Investments
 | 
US-GAAP
 | 
| 
Valuation Allowance, Deferred Tax Asset, Increase (Decrease), Amount
 | 
US-GAAP
 | 
| 
Variable Interest Entity, Qualitative or Quantitative Information, Ownership Percentage
 | 
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
 | 
| 
Accounts and Financing Receivable, after Allowance for Credit Loss, Current
 | 
US-GAAP
 | 
| 
Cash and Cash Equivalents, Fair Value Disclosure
 | 
US-GAAP
 | 
| 
Cash Equivalents, at Carrying Value
 | 
US-GAAP
 | 
| 
Debt Instrument, Convertible, Conversion Price
 | 
US-GAAP
 | 
| 
Debt Instrument, Fee Amount
 | 
US-GAAP
 | 
| 
Deferred Income Tax Liabilities, Net
 | 
US-GAAP
 | 
| 
Deferred Offering Costs
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Capital Loss Carryforwards
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Tax Credit Carryforwards
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Tax Credit Carryforwards, Research
 | 
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, Other
 | 
US-GAAP
 | 
| 
Deferred Tax Liabilities, Unrealized Gains on Trading Securities
 | 
US-GAAP
 | 
| 
Deposits Assets, Current
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, Nondeductible Expense, Other, Percent
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, Prior Year Income Taxes, Percent
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, Tax Expense (Benefit), Share-based Payment Arrangement, Amount
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, Tax Expense (Benefit), Share-based Payment Arrangement, Percent
 | 
US-GAAP
 | 
| 
Equity Method Investments
 | 
US-GAAP
 | 
| 
Effective Income Tax Rate Reconciliation, Prior Year Income Taxes, Amount
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Deferred Liabilities
 | 
US-GAAP
 | 
| 
Payments to Acquire Debt Securities, Available-for-sale
 | 
US-GAAP
 | 
| 
Payments to Acquire Other Investments
 | 
US-GAAP
 | 
| 
Proceeds from Lines of Credit
 | 
US-GAAP
 | 
| 
Public Utilities, Approved Rate Increase (Decrease), Percentage
 | 
US-GAAP
 | 
| 
Repayments of Lines of Credit
 | 
US-GAAP
 | 
| 
Unrecognized Tax Benefits
 | 
US-GAAP
 | 
| 
Unrecognized Tax Benefits, Increase Resulting from Current Period Tax Positions
 | 
US-GAAP
 | 
| 
Unrecognized Tax Benefits, Increase Resulting from Prior Period Tax Positions
 | 
US-GAAP
 | 
| 
Unrecognized Tax Benefits that Would Impact Effective Tax Rate
 | 
US-GAAP
 | 
| 
Accrued Liabilities, Current
 | 
US-GAAP
 | 
| 
Advances to Affiliate
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Interest Payable, Net
 | 
US-GAAP
 | 
| 
Interest Payable, Current
 | 
US-GAAP
 | 
| 
Investments
 | 
US-GAAP
 | 
| 
Repayments of Long-term Lines of Credit
 | 
US-GAAP
 | 
| 
Stockholders' Equity Note, Subscriptions Receivable
 | 
US-GAAP
 | 
| 
Cost of Goods and Services Sold
 | 
US-GAAP
 | 
| 
Cost, Depreciation and Amortization
 | 
US-GAAP
 | 
| 
Gain (Loss) on Disposition of Property Plant Equipment
 | 
US-GAAP
 | 
| 
Other Operating Income (Expense), Net
 | 
US-GAAP
 | 
| 
Payments to Acquire Investments to be Held in Decommissioning Trust Fund
 | 
US-GAAP
 | 
| 
Proceeds from (Repayments of) Lines of Credit
 | 
US-GAAP
 | 
| 
Restricted Cash
 | 
US-GAAP
 | 
| 
Restricted Cash Equivalents
 | 
US-GAAP
 | 
| 
Contractual Obligation
 | 
US-GAAP
 | 
| 
Contractual Obligation, to be Paid, Year Four
 | 
US-GAAP
 | 
| 
Contractual Obligation, to be Paid, Year One
 | 
US-GAAP
 | 
| 
Contractual Obligation, to be Paid, Year Two
 | 
US-GAAP
 | 
| 
Contractual Obligation, to be Paid, Year Three
 | 
US-GAAP
 | 
| 
Contractual Obligation, to be Paid, Remainder of Fiscal Year
 | 
US-GAAP
 | 
| 
Proceeds from Short-term Debt
 | 
US-GAAP
 | 
| 
Right-of-Use Asset Obtained in Exchange for Operating Lease Liability
 | 
US-GAAP
 | 
| 
Bankruptcy Claims, Amount of Claims Filed
 | 
US-GAAP
 | 
| 
Cash Divested from Deconsolidation
 | 
US-GAAP
 | 
| 
Cash, Uninsured Amount
 | 
US-GAAP
 | 
| 
Convertible Debt, Fair Value Disclosures
 | 
US-GAAP
 | 
| 
Deferred Income Taxes and Tax Credits
 | 
US-GAAP
 | 
| 
Deferred Tax Asset, Interest Carryforward
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Impairment Losses
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Tax Deferred Expense, Reserves and Accruals, Reserves
 | 
US-GAAP
 | 
| 
Gain (Loss) on Disposition of Assets for Financial Service Operations
 | 
US-GAAP
 | 
| 
Impairment of Long-Lived Assets to be Disposed of
 | 
US-GAAP
 | 
| 
Investments, Fair Value Disclosure
 | 
US-GAAP
 | 
| 
Lessee, Operating Lease, Liability, to be Paid, Year Five
 | 
US-GAAP
 | 
| 
Loans Payable
 | 
US-GAAP
 | 
| 
Loans Receivable, Fair Value Disclosure
 | 
US-GAAP
 | 
| 
Long-Term Debt, Maturity, Year Four
 | 
US-GAAP
 | 
| 
Long-Term Debt, Maturity, Year Two
 | 
US-GAAP
 | 
| 
Notes and Loans, Noncurrent
 | 
US-GAAP
 | 
| 
Notes and Loans Payable
 | 
US-GAAP
 | 
| 
Other Accrued Liabilities, Current
 | 
US-GAAP
 | 
| 
Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, Net of Tax
 | 
US-GAAP
 | 
| 
Payments for Legal Settlements
 | 
US-GAAP
 | 
| 
Proceeds from Sale of Productive Assets
 | 
US-GAAP
 | 
| 
Property, Plant and Equipment, Gross
 | 
US-GAAP
 | 
| 
Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Aggregate Intrinsic Value, Outstanding
 | 
US-GAAP
 | 
| 
Taxes Payable, Current
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Contract with Customer, Asset
 | 
US-GAAP
 | 
| 
Litigation Settlement, Amount Awarded from Other Party
 | 
US-GAAP
 | 
| 
Payment, Tax Withholding, Share-based Payment Arrangement
 | 
US-GAAP
 | 
| 
Payments to Acquire Interest in Joint Venture
 | 
US-GAAP
 | 
| 
Repayments of Debt
 | 
US-GAAP
 | 
| 
Time Deposits, Less than $100,000
 | 
US-GAAP
 | 
| 
Unsecured Debt
 | 
US-GAAP
 | 
| 
Variable Lease, Cost
 | 
US-GAAP
 | 
| 
Adjustments to Additional Paid in Capital, Other
 | 
US-GAAP
 | 
| 
Income Taxes Paid
 | 
US-GAAP
 | 
| 
Notes Payable, Fair Value Disclosure
 | 
US-GAAP
 | 
| 
Proceeds from Issuance of Preferred Stock and Preference Stock
 | 
US-GAAP
 | 
| 
Income (Loss) from Equity Method Investments
 | 
US-GAAP
 | 
| 
Incremental Common Shares Attributable to Dilutive Effect of Conversion of Debt Securities
 | 
US-GAAP
 | 
| 
Incremental Common Shares Attributable to Dilutive Effect of Conversion of Preferred Stock
 | 
US-GAAP
 | 
| 
Incremental Common Shares Attributable to Dilutive Effect of Share-based Payment Arrangements
 | 
US-GAAP
 | 
| 
Interest on Convertible Debt, Net of Tax
 | 
US-GAAP
 | 
| 
Net Income (Loss) Available to Common Stockholders, Diluted
 | 
US-GAAP
 | 
| 
Payments for Repurchase of Redeemable Preferred Stock
 | 
US-GAAP
 | 
| 
Revenue Not from Contract with Customer, Other
 | 
US-GAAP
 | 
| 
Debt Instrument, Convertible, Conversion Ratio
 | 
US-GAAP
 | 
| 
Debt Instrument, Convertible, Threshold Consecutive Trading Days
 | 
US-GAAP
 | 
| 
Debt Instrument, Convertible, Threshold Percentage of Stock Price Trigger
 | 
US-GAAP
 | 
| 
Debt Instrument, Convertible, Threshold Trading Days
 | 
US-GAAP
 | 
| 
Deferred Federal, State and Local, Tax Expense (Benefit)
 | 
US-GAAP
 | 
| 
Deferred Other Tax Expense (Benefit)
 | 
US-GAAP
 | 
| 
Deferred Tax Assets, Derivative Instruments
 | 
US-GAAP
 | 
| 
Derivative, Cash Received on Hedge
 | 
US-GAAP
 | 
| 
Derivative, Gain (Loss) on Derivative, Net
 | 
US-GAAP
 | 
| 
Derivative, Number of Instruments Held
 | 
US-GAAP
 | 
| 
Dilutive Securities, Effect on Basic Earnings Per Share, Dilutive Convertible Securities
 | 
US-GAAP
 | 
| 
Employee-related Liabilities, Current
 | 
US-GAAP
 | 
| 
Lessee, Operating Lease, Liability, to be Paid, after Year Five
 | 
US-GAAP
 | 
| 
Long-Term Debt, Maturity, after Year Five
 | 
US-GAAP
 | 
| 
Long-Term Debt, Maturity, Year One
 | 
US-GAAP
 | 
| 
Long-Term Debt, Maturity, Year Five
 | 
US-GAAP
 | 
| 
Long-Term Debt, Maturity, Year Three
 | 
US-GAAP
 | 
| 
Number of Operating Segments
 | 
US-GAAP
 | 
| 
Number of Reportable Segments
 | 
US-GAAP
 | 
| 
Preferred Stock Dividends and Other Adjustments
 | 
US-GAAP
 | 
| 
Proceeds from Issuance of Debt
 | 
US-GAAP
 | 
| 
Revenue Not from Contract with Customer
 | 
US-GAAP
 | 
| 
Stockholders' Equity, Other
 | 
US-GAAP
 | 
| 
Unrecognized Tax Benefits, Decrease Resulting from Prior Period Tax Positions
 | 
US-GAAP
 | 
| 
Unrecognized Tax Benefits, Income Tax Penalties and Interest Accrued
 | 
US-GAAP
 | 
| 
Unrecognized Tax Benefits, Income Tax Penalties and Interest Expense
 | 
US-GAAP
 | 
| 
Asset Retirement Obligation
 | 
US-GAAP
 | 
| 
Asset Retirement Obligation, Accretion Expense
 | 
US-GAAP
 | 
| 
Business Combination, Contingent Consideration, Liability
 | 
US-GAAP
 | 
| 
Debt Instrument, Face Amount
 | 
US-GAAP
 | 
| 
Derivative Liability
 | 
US-GAAP
 | 
| 
Derivative Liability, Current
 | 
US-GAAP
 | 
| 
Embedded Derivative, Fair Value of Embedded Derivative, Net
 | 
US-GAAP
 | 
| 
Equity Method Investment, Other than Temporary Impairment
 | 
US-GAAP
 | 
| 
Gain (Loss) on Contract Termination
 | 
US-GAAP
 | 
| 
Gain (Loss) on Derivative Instruments, Net, Pretax
 | 
US-GAAP
 | 
| 
Gain (Loss) on Investments
 | 
US-GAAP
 | 
| 
Goodwill, Gross
 | 
US-GAAP
 | 
| 
Goodwill, Impaired, Accumulated Impairment Loss
 | 
US-GAAP
 | 
| 
Payments to Acquire Businesses, Net of Cash Acquired
 | 
US-GAAP
 | 
| 
Payments to Acquire Equity Method Investments
 | 
US-GAAP
 | 
| 
Receivables, Net, Current
 | 
US-GAAP
 | 
| 
Research and Development Expense
 | 
US-GAAP
 | 
| 
Stock Repurchased During Period, Value
 | 
US-GAAP
 | 
| 
Unrealized Gain (Loss) on Derivatives
 | 
US-GAAP
 | 
| 
Crypto Asset Cost
 | 
US-GAAP
 | 
| 
Crypto Asset Fair Value
 | 
US-GAAP
 | 
| 
Crypto Asset Fair Value Current
 | 
US-GAAP
 | 
| 
Crypto Asset Fair Value Noncurrent
 | 
US-GAAP
 | 
| 
Crypto Asset Mining
 | 
US-GAAP
 | 
| 
Derivative Asset
 | 
US-GAAP
 | 
| 
Derivative Asset, Current
 | 
US-GAAP
 | 
| 
Derivative Asset, Noncurrent
 | 
US-GAAP
 | 
| 
Dilutive Securities, Effect on Basic Earnings Per Share
 | 
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 Four
 | 
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
 | 
| 
Finance Lease, Weighted Average Discount Rate, Percent
 | 
US-GAAP
 | 
| 
Interest Expense Nonoperating
 | 
US-GAAP
 | 
| 
Unrealized Gain (Loss) on Commodity Contracts
 | 
US-GAAP
 | 
| 
Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents
 | 
US-GAAP
 | 
| 
Crypto Asset Purchase
 | 
US-GAAP
 | 
| 
Deferred Income Tax Assets, Net
 | 
US-GAAP
 | 
| 
Derivative Liability, Noncurrent
 | 
US-GAAP
 | 
| 
Increase (Decrease) in Other Operating Assets and Liabilities, Net
 | 
US-GAAP
 | 
| 
Accrued Professional Fees, Current
 | 
US-GAAP
 | 
| 
Accrued Utilities, Current
 | 
US-GAAP
 | 
| 
Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net
 | 
US-GAAP
 | 
| 
Deferred Tax Liabilities, Investments
 | 
US-GAAP
 | 
| 
Finance Lease, Liability, to be Paid, after Year Five
 | 
US-GAAP
 | 
| 
Finance Lease, Liability, to be Paid, Year Five
 | 
US-GAAP
 | 
| 
Long-term Line of Credit
 | 
US-GAAP
 | 
| 
Noncontrolling Interest, Increase from Subsidiary Equity Issuance
 | 
US-GAAP
 | 
| 
Other Investments
 | 
US-GAAP
 | 
| 
Proceeds from Noncontrolling Interests
 | 
US-GAAP
 | 
| 
Provision for Loan, Lease, and Other Losses
 | 
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, Issuances
 | 
US-GAAP
 | 
| 
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability Value
 | 
US-GAAP
 | 
| 
Line of Credit Facility, Interest Rate During Period
 | 
US-GAAP
 | 
| 
Line of Credit, Current
 | 
US-GAAP
 | 
| 
Long-term Line of Credit, Noncurrent
 | 
US-GAAP
 | 
| 
Noncontrolling Interest, Decrease from Distributions to Noncontrolling Interest Holders
 | 
US-GAAP
 | 
| 
Purchase Obligation
 | 
US-GAAP
 | 
| 
Finance Lease, Interest Expense
 | 
US-GAAP
 | 
| 
Finance Lease, Interest Payment on Liability
 | 
US-GAAP
 |