XML 52 R38.htm IDEA: XBRL DOCUMENT
v3.19.1

Note 6 - Long-term Debt and Lease Obligation (Details Textual) |  |  |  | 1 Months Ended | 12 Months Ended |  |
--- | --- | --- | --- | --- | --- | --- | ---
May 25, 2017 USD ($) $ / shares shares | Apr. 26, 2016 USD ($) | Feb. 08, 2016 USD ($) a | May 31, 2017 USD ($) | Dec. 31, 2018 USD ($) $ / shares | Dec. 31, 2017 USD ($) | Mar. 17, 2019 | Dec. 31, 2015 $ / shares
Convertible Debt, Total |  |  |  |  | $ 71,000,000 |  |  |
Debt Instrument, Convertible, Difference Between Fair Value and Carrying Value |  |  |  |  | $ 42,200,000 |  |  |
Debt Instrument, Convertible, Conversion Price | $ / shares | $ 6.75 |  |  |  | $ 6.75 |  |  |
Share Price | $ / shares |  |  |  |  | $ 10.30 |  |  |
Debt Instrument, Maturity Date, Percentage of Conversion Rate, | 120.00% |  |  |  |  |  |  |
Gain (Loss) on Extinguishment of Debt, Total |  |  |  |  |  | $ (3,501,000) |  |
Debt Instrument, Unamortized Discount, Total |  |  |  |  | 4,778,000 | $ 8,988,000 |  |
Long-term Debt, Total |  |  |  |  | 155,494,000 |  |  |
Subsequent Event [Member] |  |  |  |  |  |  |  |
Convertible Debt, Option Agreements, Percentage |  |  |  |  |  |  | 95.00% |
Fenner Valley Farms LLC [Member] |  |  |  |  |  |  |  |
Lease Term |  |  | 99 years |  |  |  |  |
Area of Real Estate Property | a |  |  | 2,100 |  |  |  |  |
Long-term Debt, Total |  |  | $ 12,000,000 |  |  |  |  |
Termination Period After Lease Effective Date |  |  | 20 years |  |  |  |  |
Lease Compounded Annual Return, Percentage |  |  | 10.00% |  |  |  |  |
Minimum Future Payments from Leases Held for Investment |  |  | $ 14,400,000 |  |  |  |  |
Reimbursement of Water Related Infrastructure from Leased Property, Annual Percentage |  |  | 8.00% |  |  |  |  |
Maximum Reimbursement of Pipeline Related Development Expenses from Leased Property |  |  | $ 3,000,000 |  |  |  |  |
Leased Property, Sale Price |  |  | 1 |  |  |  |  |
Legal Fees |  |  | $ 490,000 |  |  |  |  |
Warrants [Member] | Interest Expense [Member] |  |  |  |  |  |  |  |
Unrealized Gain (Loss) on Derivatives |  |  |  |  | 1,500,000 |  |  |
2017 Warrants [Member] |  |  |  |  |  |  |  |
Class of Warrant or Right, Number of Securities Called by Warrants or Rights | shares | 362,500 |  |  |  |  |  |  |
Warrants and Rights Outstanding | $ 2,900,000 |  |  |  |  |  |  |
Warrant Term | 5 years |  |  |  |  |  |  |
Class of Warrant or Right, Exercise Price of Warrants or Rights | $ / shares | $ 14.94 |  |  |  |  |  |  |
Senior Secured Debt [Member] |  |  |  |  |  |  |  |
Debt Instrument, Fee Amount | $ 60,000,000 |  |  |  |  |  |  |
Debt Instrument, Additional Amount after Refinance | 15,000,000 |  |  | $ 15,000,000 |  |  |  |
Debt Instrument, Maturity Date, Minimum Principal Outstanding Amount | $ 10,000,000 |  |  |  | $ 10,000,000 |  |  |
Debt Instrument, Maturity Date, Percentage of Conversion Rate, |  |  |  |  | 120.00% |  |  |
Debt Instrument, Payment-in-kind Rate | 6.00% |  |  |  |  |  |  |
Debt Instrument, Cash Rate | 2.00% |  |  |  |  |  |  |
Upfront Fee, Recorded as Additional Debt Discount, Percentage | 2.00% |  |  |  |  |  |  |
Long-term Debt, Total |  |  |  |  | $ 66,100,000 |  |  |
Senior Secured Debt [Member] | Legal and Finders fees [Member] |  |  |  |  |  |  |  |
Debt Instrument, Unamortized Discount, Total | $ 1,500,000 |  |  |  |  |  |  |
Prior Senior Secured Debt [Member] |  |  |  |  |  |  |  |
Extinguishment of Debt, Amount | 45,000,000 |  |  | $ 45,000,000 |  |  |  |
Gain (Loss) on Extinguishment of Debt, Total | $ (3,500,000) |  |  |  |  |  |  |
2020 Convertible Senior Notes [Member] |  |  |  |  |  |  |  |
Debt Instrument, Convertible, Conversion Price | $ / shares |  |  |  |  | $ 6.75 |  |  |
Debt Instrument, Interest Rate, Stated Percentage | 7.00% |  |  |  | 7.00% |  |  |
2020 Convertible Senior Notes [Member] | Investors [Member] |  |  |  |  |  |  |  |
Debt Instrument, Convertible, Conversion Price | $ / shares |  |  |  |  |  |  |  | $ 6.75
Debt Instrument, Fee Amount |  | $ 400,000 |  |  |  |  |  |
Debt Instrument, Interest Rate, Stated Percentage |  | 7.00% |  |  |  |  |  |
Debt Instrument, Unamortized Discount, Total |  | $ 2,000,000 |  |  |  |  |  |
Unsecured Debt, Total |  | 10,000,000 |  |  |  |  |  |
Proceeds from Issuance of Debt |  | 8,000,000 |  |  |  |  |  |
Debt Instrument, Convertible, Beneficial Conversion Feature |  | $ 1,480,000 |  |  |  |  |  |
Measurement Input, Price Volatility [Member] |  |  |  |  |  |  |  |
Embedded Derivative Liability, Measurement Input |  |  |  |  | 0.4 |  |  |

X
- Definition The percentage of parties holding convertible notes that the company has entered into option agreements with. + References No definition available. + Details
Name: | cdzi_ConvertibleDebtOptionAgreementsPercentage
Namespace Prefix: | cdzi_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Represents the additional amount of debt instrument after refinancing. + References No definition available. + Details
Name: | cdzi_DebtInstrumentAdditionalAmountAfterRefinance
Namespace Prefix: | cdzi_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Represents the cash rate of a debt instrument pursuant the agreement. + References No definition available. + Details
Name: | cdzi_DebtInstrumentCashRate
Namespace Prefix: | cdzi_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The amount of the difference between fair value and carrying value in a convertible debt instrument. + References No definition available. + Details
Name: | cdzi_DebtInstrumentConvertibleDifferenceBetweenFairValueAndCarryingValue
Namespace Prefix: | cdzi_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The minimum principal outstanding amount is used as input to determine the maturity date of a debt instrument. + References No definition available. + Details
Name: | cdzi_DebtInstrumentMaturityDateMinimumPrincipalOutstandingAmount
Namespace Prefix: | cdzi_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The percentage of conversion rate is used as input to determine the maturity date of a debt instrument. + References No definition available. + Details
Name: | cdzi_DebtInstrumentMaturityDatePercentageOfConversionRate
Namespace Prefix: | cdzi_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Represents Payment-in-kind Rate of a debt instrument pursuant to the agreement. + References No definition available. + Details
Name: | cdzi_DebtInstrumentPaymentInKindRate
Namespace Prefix: | cdzi_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The percentage of compounded annual return related to a lease agreement. + References No definition available. + Details
Name: | cdzi_LeaseCompoundedAnnualReturnPercentage
Namespace Prefix: | cdzi_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Term of lease agreement. + References No definition available. + Details
Name: | cdzi_LeaseTerm
Namespace Prefix: | cdzi_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The sale price of the leased property. + References No definition available. + Details
Name: | cdzi_LeasedPropertySalePrice
Namespace Prefix: | cdzi_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The maximum reimbursement amount paid by the lessee which relates to pipeline development expenses from the leased property. + References No definition available. + Details
Name: | cdzi_MaximumReimbursementOfPipelineRelatedDevelopmentExpensesFromLeasedProperty
Namespace Prefix: | cdzi_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The future minimum amount payment by the lessee. + References No definition available. + Details
Name: | cdzi_MinimumFuturePaymentsFromLeasesHeldForInvestment
Namespace Prefix: | cdzi_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Represents the annual percentage reimbursement of water related infrastructure on the leased property. + References No definition available. + Details
Name: | cdzi_ReimbursementOfWaterRelatedInfrastructureFromLeasedPropertyAnnualPercentage
Namespace Prefix: | cdzi_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The period after the effective date of the lease that the lessor can terminate the lease. + References No definition available. + Details
Name: | cdzi_TerminationPeriodAfterLeaseEffectiveDate
Namespace Prefix: | cdzi_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The percentage of the aggregate principal amount of a debt instrument funded on the Closing Date, which recorded as additional debt discount. + References No definition available. + Details
Name: | cdzi_UpfrontFeeRecordedAsAdditionalDebtDiscountPercentage
Namespace Prefix: | cdzi_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Period from grant date that a warrant expires, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | cdzi_WarrantTerm
Namespace Prefix: | cdzi_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Area of a real estate property. + References No definition available. + Details
Name: | us-gaap_AreaOfRealEstateProperty
Namespace Prefix: | us-gaap_
Data Type: | num:areaItemType
Balance Type: | na
Period Type: | instant

X
- Definition Exercise price per share or per unit of warrants or rights outstanding. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(i)(4)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 + Details
Name: | us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of securities into which the class of warrant or right may be converted. For example, but not limited to, 500,000 warrants may be converted into 1,000,000 shares. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(i)(2)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 + Details
Name: | us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByWarrantsOrRights
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Including the current and noncurrent portions, carrying amount of debt identified as being convertible into another form of financial instrument (typically the entity's common stock) as of the balance sheet date, which originally required full repayment more than twelve months after issuance or greater than the normal operating cycle of the company. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 + Details
Name: | us-gaap_ConvertibleDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of a favorable spread to a debt holder between the amount of debt being converted and the value of the securities received upon conversion. This is an embedded conversion feature of convertible debt issued that is in-the-money at the commitment date. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=109259400&loc=d3e21538-112644 + Details
Name: | us-gaap_DebtInstrumentConvertibleBeneficialConversionFeature
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The price per share of the conversion feature embedded in the debt instrument. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 5 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=109500613&loc=SL6031898-161870 + Details
Name: | us-gaap_DebtInstrumentConvertibleConversionPrice1
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of the fee that accompanies borrowing money under the debt instrument. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(b)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentFeeAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount, after accumulated amortization, of debt discount. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 1A -URI http://asc.fasb.org/extlink&oid=114775744&loc=d3e28541-108399 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400 + Details
Name: | us-gaap_DebtInstrumentUnamortizedDiscount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Value of input used to measure embedded derivative liability. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (bbb)(2) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 + Details
Name: | us-gaap_EmbeddedDerivativeLiabilityMeasurementInput
Namespace Prefix: | us-gaap_
Data Type: | xbrli:decimalItemType
Balance Type: | na
Period Type: | instant

X
- Definition Gross amount of debt extinguished. + References No definition available. + Details
Name: | us-gaap_ExtinguishmentOfDebtAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Difference between the fair value of payments made and the carrying amount of debt which is extinguished prior to maturity. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=114001942&loc=d3e12355-112629 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=114001942&loc=d3e12317-112629 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=109223946&loc=d3e3602-108585 + Details
Name: | us-gaap_GainsLossesOnExtinguishmentOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of expense provided in the period for legal costs incurred on or before the balance sheet date pertaining to resolved, pending or threatened litigation, including arbitration and mediation proceedings. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.3) -URI http://asc.fasb.org/extlink&oid=115205541&loc=SL114868664-224227 + Details
Name: | us-gaap_LegalFees
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (b)(3) -URI http://asc.fasb.org/extlink&oid=109500613&loc=SL6031897-161870 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_LongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The cash inflow during the period from additional borrowings in aggregate debt. Includes proceeds from short-term and long-term debt. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=109223946&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromIssuanceOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Price of a single share of a number of saleable stocks of a company. + References No definition available. + Details
Name: | us-gaap_SharePrice
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The net change in the difference between the fair value and the carrying value, or in the comparative fair values, of derivative instruments, including options, swaps, futures, and forward contracts, held at each balance sheet date, that was included in earnings for the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=109223946&loc=d3e3602-108585 + Details
Name: | us-gaap_UnrealizedGainLossOnDerivatives
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Including the current and noncurrent portions, carrying value as of the balance sheet date of uncollateralized debt obligations (with maturities initially due after one year or beyond the operating cycle if longer). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 + Details
Name: | us-gaap_UnsecuredDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Value of outstanding derivative securities that permit the holder the right to purchase securities (usually equity) from the issuer at a specified price. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(i)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 + Details
Name: | us-gaap_WarrantsAndRightsOutstanding
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_SubsequentEventTypeAxis=us-gaap_SubsequentEventMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CounterpartyNameAxis=cdzi_FennerValleyFarmsLLCMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByLiabilityClassAxis=cdzi_WarrantsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_InterestExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ClassOfWarrantOrRightAxis=cdzi_The2017WarrantsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_NatureOfExpenseAxis=cdzi_LegalAndFindersFeesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

X
- Details
Name: | srt_CounterpartyNameAxis=cdzi_InvestorsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_MeasurementInputTypeAxis=us-gaap_MeasurementInputPriceVolatilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |