<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.20.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>96</ContextCount>
  <ElementCount>395</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>37</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00000001 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00000002 - Statement - CONSOLIDATED BALANCE SHEET</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/BalanceSheets</Role>
      <ShortName>CONSOLIDATED BALANCE SHEET</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00000003 - Statement - CONSOLIDATED BALANCE SHEET (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/ConsolidatedBalanceSheetParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEET (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00000004 - Statement - CONSOLIDATED STATEMENT OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/StatementsOfOperations</Role>
      <ShortName>CONSOLIDATED STATEMENT OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00000005 - Statement - CONSOLIDATED STATEMENTS OF STOCKHOLDERS EQUITY (DEFICIENCY)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/CondensedConsolidateStatementsOfStockholdersEquityDeficiency</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF STOCKHOLDERS EQUITY (DEFICIENCY)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00000006 - Statement - CONSOLIDATED STATEMENT OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/ConsolidatedStatementOfCashFlows</Role>
      <ShortName>CONSOLIDATED STATEMENT OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00000007 - Disclosure - 1. DESCRIPTION OF BUSINESS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/DescriptionOfBusiness</Role>
      <ShortName>1. DESCRIPTION OF BUSINESS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>00000008 - Disclosure - 2. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/SummaryOfSignificantAccountingPolicies</Role>
      <ShortName>2. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>00000009 - Disclosure - 3. INVENTORIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/Inventories</Role>
      <ShortName>3. INVENTORIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>00000010 - Disclosure - 4. PROPERTY AND EQUIPMENT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/PropertyAndEquipment</Role>
      <ShortName>4. PROPERTY AND EQUIPMENT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>00000011 - Disclosure - 5. INTANGIBLE ASSETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/IntangibleAssets</Role>
      <ShortName>5. INTANGIBLE ASSETS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>00000012 - Disclosure - 6. LEASES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/Leases</Role>
      <ShortName>6. LEASES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>00000013 - Disclosure - 7. CAPITALIZED SOFTWARE DEVELOPMENT COSTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/CapitalizedSoftwareDevelopmentCosts</Role>
      <ShortName>7. CAPITALIZED SOFTWARE DEVELOPMENT COSTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>00000014 - Disclosure - 8. CONVERTIBLE DEBT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/ConvertibleDebt</Role>
      <ShortName>8. CONVERTIBLE DEBT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>00000015 - Disclosure - 9. STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/StockholdersEquity</Role>
      <ShortName>9. STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>00000016 - Disclosure - 10. COMMITMENTS AND CONTINGENCIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/CommitmentsAndContingencies</Role>
      <ShortName>10. COMMITMENTS AND CONTINGENCIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>00000017 - Disclosure - 11. CONTRACTS AND AGREEMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/ContractsAndAgreements</Role>
      <ShortName>11. CONTRACTS AND AGREEMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>00000018 - Disclosure - 12. INCOME TAXES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/IncomeTaxes</Role>
      <ShortName>12. INCOME TAXES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>00000019 - Disclosure - 13. ACCRUED EXPENSES AND OTHER CURRENT LIABILITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/AccruedExpensesAndOtherCurrentLiabilities</Role>
      <ShortName>13. ACCRUED EXPENSES AND OTHER CURRENT LIABILITIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>00000020 - Disclosure - 14. ACCRUED WARRANTY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/AccruedWarranty</Role>
      <ShortName>14. ACCRUED WARRANTY</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>00000021 - Disclosure - 15. CUSTOMER CONCENTRATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/CustomerConcentration</Role>
      <ShortName>15. CUSTOMER CONCENTRATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>00000022 - Disclosure - 16. SUBSEQUENT EVENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/SubsequentEvents</Role>
      <ShortName>16. SUBSEQUENT EVENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>00000023 - Disclosure - 2. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/SummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>2. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>00000024 - Disclosure - 2. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/SummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>2. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://tomimist.com/role/SummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>00000025 - Disclosure - 3. INVENTORIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/InventoriesTables</Role>
      <ShortName>3. INVENTORIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://tomimist.com/role/Inventories</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>00000026 - Disclosure - 4. PROPERTY AND EQUIPMENT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/PropertyAndEquipmentTables</Role>
      <ShortName>4. PROPERTY AND EQUIPMENT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://tomimist.com/role/PropertyAndEquipment</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>00000027 - Disclosure - 5. INTANGIBLE ASSETS AND ASSET ACQUISITION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/IntangibleAssetsAndAssetAcquisitionTables</Role>
      <ShortName>5. INTANGIBLE ASSETS AND ASSET ACQUISITION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>00000028 - Disclosure - 6. LEASES (Tables) (USD $)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/LeasesTablesUsd</Role>
      <ShortName>6. LEASES (Tables) (USD $)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://tomimist.com/role/Leases</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>00000029 - Disclosure - 7. CAPITALIZED SOFTWARE DEVELOPMENT COSTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/CapitalizedSoftwareDevelopmentCostsTables</Role>
      <ShortName>7. CAPITALIZED SOFTWARE DEVELOPMENT COSTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://tomimist.com/role/CapitalizedSoftwareDevelopmentCosts</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>00000030 - Disclosure - 8. CONVERTIBLE DEBT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/ConvertibleDebtTables</Role>
      <ShortName>8. CONVERTIBLE DEBT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://tomimist.com/role/ConvertibleDebt</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>00000031 - Disclosure - 9. STOCKHOLDERS' EQUITY (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/StockholdersEquityTables</Role>
      <ShortName>9. STOCKHOLDERS' EQUITY (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://tomimist.com/role/StockholdersEquity</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>00000032 - Disclosure - 12. INCOME TAXES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/IncomeTaxesTables</Role>
      <ShortName>12. INCOME TAXES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://tomimist.com/role/IncomeTaxes</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>00000033 - Disclosure - 13. ACCRUED EXPENSES AND OTHER CURRENT LIABILITIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/AccruedExpensesAndOtherCurrentLiabilitiesTables</Role>
      <ShortName>13. ACCRUED EXPENSES AND OTHER CURRENT LIABILITIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://tomimist.com/role/AccruedExpensesAndOtherCurrentLiabilities</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>00000034 - Disclosure - 14. ACCRUED WARRANTY (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/AccruedWarrantyTables</Role>
      <ShortName>14. ACCRUED WARRANTY (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://tomimist.com/role/AccruedWarranty</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>00000035 - Disclosure - 2. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/SummaryOfSignificantAccountingPoliciesDetails</Role>
      <ShortName>2. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/SummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>00000036 - Disclosure - 2. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/SummaryOfSignificantAccountingPoliciesDetails1</Role>
      <ShortName>2. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/SummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>00000037 - Disclosure - 2. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/SummaryOfSignificantAccountingPoliciesDetails2</Role>
      <ShortName>2. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/SummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>00000038 - Disclosure - 2. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/SummaryOfSignificantAccountingPoliciesDetailsNarrative</Role>
      <ShortName>2. SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/SummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>00000039 - Disclosure - 3. INVENTORIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/InventoriesDetails</Role>
      <ShortName>3. INVENTORIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/InventoriesTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>00000040 - Disclosure - 4. PROPERTY AND EQUIPMENT (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/PropertyAndEquipmentDetails</Role>
      <ShortName>4. PROPERTY AND EQUIPMENT (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/PropertyAndEquipmentTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>00000041 - Disclosure - 4. PROPERTY AND EQUIPMENT (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/PropertyAndEquipmentDetailsNarrative</Role>
      <ShortName>4. PROPERTY AND EQUIPMENT (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/PropertyAndEquipmentTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>00000042 - Disclosure - 5. INTANGIBLE ASSETS AND ASSET ACQUISITION (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/IntangibleAssetsAndAssetAcquisitionDetails</Role>
      <ShortName>5. INTANGIBLE ASSETS AND ASSET ACQUISITION (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/IntangibleAssetsAndAssetAcquisitionTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>00000043 - Disclosure - 5. INTANGIBLE ASSETS AND ASSET ACQUISITION (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/IntangibleAssetsAndAssetAcquisitionDetails1</Role>
      <ShortName>5. INTANGIBLE ASSETS AND ASSET ACQUISITION (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/IntangibleAssetsAndAssetAcquisitionTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>00000044 - Disclosure - 5. INTANGIBLE ASSETS AND ASSET ACQUISITION (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/IntangibleAssetsAndAssetAcquisitionDetails2</Role>
      <ShortName>5. INTANGIBLE ASSETS AND ASSET ACQUISITION (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/IntangibleAssetsAndAssetAcquisitionTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>00000045 - Disclosure - 5. INTANGIBLE ASSETS AND ASSET ACQUISITION (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/IntangibleAssetsAndAssetAcquisitionDetailsNarrative</Role>
      <ShortName>5. INTANGIBLE ASSETS AND ASSET ACQUISITION (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/IntangibleAssetsAndAssetAcquisitionTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>00000046 - Disclosure - 6. LEASES (Details) (USD $)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/LeasesDetailsUsd</Role>
      <ShortName>6. LEASES (Details) (USD $)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/LeasesTablesUsd</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>00000047 - Disclosure - 6. LEASES (Details 1) (USD $)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/LeasesDetails1Usd</Role>
      <ShortName>6. LEASES (Details 1) (USD $)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/LeasesTablesUsd</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>00000048 - Disclosure - 6. LEASES (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/LeasesDetails2</Role>
      <ShortName>6. LEASES (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/LeasesTablesUsd</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>00000049 - Disclosure - 7. CAPITALIZED SOFTWARE DEVELOPMENT COSTS (Details) (USD $)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/CapitalizedSoftwareDevelopmentCostsDetailsUsd</Role>
      <ShortName>7. CAPITALIZED SOFTWARE DEVELOPMENT COSTS (Details) (USD $)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/CapitalizedSoftwareDevelopmentCostsTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>00000050 - Disclosure - 8. CONVERTIBLE DEBT (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/ConvertibleDebtDetails</Role>
      <ShortName>8. CONVERTIBLE DEBT (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/ConvertibleDebtTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>00000051 - Disclosure - 9. STOCKHOLDERS' EQUITY (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/StockholdersEquityDetails</Role>
      <ShortName>9. STOCKHOLDERS' EQUITY (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/StockholdersEquityTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>00000052 - Disclosure - 9. STOCKHOLDERS' EQUITY (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/StockholdersEquityDetails1</Role>
      <ShortName>9. STOCKHOLDERS' EQUITY (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/StockholdersEquityTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>00000053 - Disclosure - 9. STOCKHOLDERS' EQUITY (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/StockholdersEquityDetails2</Role>
      <ShortName>9. STOCKHOLDERS' EQUITY (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/StockholdersEquityTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>00000054 - Disclosure - 9. STOCKHOLDERS' EQUITY (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/StockholdersEquityDetails3</Role>
      <ShortName>9. STOCKHOLDERS' EQUITY (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/StockholdersEquityTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>00000055 - Disclosure - 9. STOCKHOLDERS' EQUITY (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/StockholdersEquityDetailsNarrative</Role>
      <ShortName>9. STOCKHOLDERS' EQUITY (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/StockholdersEquityTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>00000056 - Disclosure - 12. INCOME TAXES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/IncomeTaxesDetails</Role>
      <ShortName>12. INCOME TAXES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/IncomeTaxesTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>00000057 - Disclosure - 12. INCOME TAXES (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/IncomeTaxesDetails1</Role>
      <ShortName>12. INCOME TAXES (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/IncomeTaxesTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>00000058 - Disclosure - 12. INCOME TAXES (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/IncomeTaxesDetails2</Role>
      <ShortName>12. INCOME TAXES (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/IncomeTaxesTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>00000059 - Disclosure - 12. INCOME TAXES (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/IncomeTaxesDetails3</Role>
      <ShortName>12. INCOME TAXES (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/IncomeTaxesTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>00000060 - Disclosure - 12. INCOME TAXES (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/IncomeTaxesDetailsNarrative</Role>
      <ShortName>12. INCOME TAXES (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/IncomeTaxesTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>00000061 - Disclosure - 13. ACCRUED EXPENSES AND OTHER CURRENT LIABILITIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/AccruedExpensesAndOtherCurrentLiabilitiesDetails</Role>
      <ShortName>13. ACCRUED EXPENSES AND OTHER CURRENT LIABILITIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/AccruedExpensesAndOtherCurrentLiabilitiesTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="tomz-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>00000062 - Disclosure - 14. ACCRUED WARRANTY (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://tomimist.com/role/AccruedWarrantyDetails</Role>
      <ShortName>14. ACCRUED WARRANTY (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://tomimist.com/role/AccruedWarrantyTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>tomz-20191231.xml</File>
    <File>tomz-20191231.xsd</File>
    <File>tomz-20191231_cal.xml</File>
    <File>tomz-20191231_def.xml</File>
    <File>tomz-20191231_lab.xml</File>
    <File>tomz-20191231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/us-gaap/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2019-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
