| 16. Income Taxes (Details Narrative) | 12 Months Ended | 
|---|---|
| Mar. 31, 2021  USD ($) | |
| Foreign tax credit carryforward | $ 50,000 | 
| Federal [Member] | |
| Net operating loss carryforwards | $ 105,100,000 | 
| Operating loss beginning expiration dates | Dec. 31, 2024 | 
| Research credit carryforwards | $ 1,000,000 | 
| Research credit expiration date | Dec. 31, 2024 | 
| California [Member] | |
| Net operating loss carryforwards | $ 38,100,000 | 
| Operating loss beginning expiration dates | Dec. 31, 2029 | 
| Research credit carryforwards | $ 790,000 | 
| Foreign [Member] | |
| Net operating loss carryforwards | $ 1,100,000 | 
| Operating loss beginning expiration dates | Mar. 31, 2028 | 
| Foreign tax credit carryforward | $ 50,000 | 
| Foreign tax credit expiration date | Mar. 31, 2023 | 
| X | ||||||||||
| 
- Definition Foreign tax credit expiration date No definition available. 
 | 
| X | ||||||||||
| 
- Definition Research credit expiration date No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible foreign tax credit carryforwards. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of operating loss carryforward, before tax effects, available to reduce future taxable income under enacted tax laws. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Expiration date of each operating loss carryforward included in operating loss carryforward, in YYYY-MM-DD format. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition The amount of the tax credit carryforward, before tax effects, available to reduce future taxable income under enacted tax laws. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 |