16. Income Taxes (Details-Deferred taxes) - USD ($)  | 
Mar. 31, 2021  | 
Mar. 31, 2020  | 
|---|---|---|
| Deferred tax assets: | ||
| Net operating loss carryforwards | $ 25,687,000 | $ 27,948,000 | 
| Research and development tax credit carryforwards | 1,850,000 | 1,850,000 | 
| Stock-based compensation | 3,120,000 | 3,803,000 | 
| Allowances and accruals | 659,000 | 1,099,000 | 
| Other deferred tax assets | 398,000 | 731,000 | 
| State income taxes | 0 | 1,000 | 
| Basis difference in assets | 0 | 6,000 | 
| Lease liability | 78,000 | 226,000 | 
| Gross deferred tax assets | 31,792,000 | 35,664,000 | 
| Less valuation allowance | (31,528,000) | (35,297,000) | 
| Total deferred tax assets | 264,000 | 367,000 | 
| Deferred tax liabilities: | ||
| Fixed assets | (3,000) | (5,000) | 
| Prepaid expenses | (186,000) | (143,000) | 
| Right of Use asset | (75,000) | (219,000) | 
| Gross deferred tax liabilities | (264,000) | (367,000) | 
| Net deferred tax assets | $ 0 | $ 0 | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Definition Amount of deferred tax liability attributable to taxable temporary differences. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Definition Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, without jurisdictional netting. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
  | 
| X | ||||||||||
- Definition Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
  | 
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- Definition Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences, classified as other. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
  | 
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from state taxes. No definition available. 
  | 
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible research tax credit carryforwards. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from share-based compensation. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
  | 
| X | ||||||||||
- Definition Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences from provisions, reserves, allowances, and accruals, classified as other. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from reserves and accruals. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- Definition Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Definition Amount of deferred tax consequences attributable to taxable temporary differences derived from prepaid expenses. No definition available. 
  | 
| X | ||||||||||
- Definition Amount of deferred tax liability attributable to taxable temporary differences from property, plant, and equipment. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
  |