<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.20.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>264</ContextCount>
  <ElementCount>449</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>79</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001002 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1002003 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1003004 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/ConsolidatedStatementsofOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1004005 - Statement - Consolidated Statements of Stockholders' (Deficit) Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/ConsolidatedStatementsofStockholdersDeficitEquity</Role>
      <ShortName>Consolidated Statements of Stockholders' (Deficit) Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1005006 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/ConsolidatedStatementsofCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>2101101 - Disclosure - Nature of Business and Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/NatureofBusinessandSummaryofSignificantAccountingPolicies</Role>
      <ShortName>Nature of Business and Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>2110102 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2117103 - Disclosure - Accounts Payable and Accrued Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/AccountsPayableandAccruedLiabilities</Role>
      <ShortName>Accounts Payable and Accrued Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2121104 - Disclosure - Property and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/PropertyandEquipment</Role>
      <ShortName>Property and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2124105 - Disclosure - Other Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/OtherIntangibleAssets</Role>
      <ShortName>Other Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2129106 - Disclosure - License Agreements and Acquired Product Rights</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LicenseAgreementsandAcquiredProductRights</Role>
      <ShortName>License Agreements and Acquired Product Rights</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2133107 - Disclosure - License Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LicenseAgreements</Role>
      <ShortName>License Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2135108 - Disclosure - Notes Payable</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.bdsi.com/role/NotesPayable</Role>
      <ShortName>Notes Payable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2139109 - Disclosure - Net Sales by Product</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/NetSalesbyProduct</Role>
      <ShortName>Net Sales by Product</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2143110 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2149111 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2164112 - Disclosure - Earnings per Common Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/EarningsperCommonShare</Role>
      <ShortName>Earnings per Common Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2169113 - Disclosure - Retirement Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/RetirementPlan</Role>
      <ShortName>Retirement Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2171114 - Disclosure - Commitments and contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/Commitmentsandcontingencies</Role>
      <ShortName>Commitments and contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2173115 - Disclosure - Selected Quarterly Results (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/SelectedQuarterlyResultsUnaudited</Role>
      <ShortName>Selected Quarterly Results (Unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2176116 - Disclosure - Schedule II - Valuation and Qualifying Accounts and Reserves</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/ScheduleIIValuationandQualifyingAccountsandReserves</Role>
      <ShortName>Schedule II - Valuation and Qualifying Accounts and Reserves</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2202201 - Disclosure - Nature of Business and Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/NatureofBusinessandSummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Nature of Business and Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/NatureofBusinessandSummaryofSignificantAccountingPolicies</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2303301 - Disclosure - Nature of Business and Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/NatureofBusinessandSummaryofSignificantAccountingPoliciesTables</Role>
      <ShortName>Nature of Business and Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/NatureofBusinessandSummaryofSignificantAccountingPolicies</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2311302 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/Leases</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2318303 - Disclosure - Accounts Payable and Accrued Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/AccountsPayableandAccruedLiabilitiesTables</Role>
      <ShortName>Accounts Payable and Accrued Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/AccountsPayableandAccruedLiabilities</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2322304 - Disclosure - Property and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/PropertyandEquipmentTables</Role>
      <ShortName>Property and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/PropertyandEquipment</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2325305 - Disclosure - Other Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/OtherIntangibleAssetsTables</Role>
      <ShortName>Other Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/OtherIntangibleAssets</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2330306 - Disclosure - License Agreements and Acquired Product Rights (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LicenseAgreementsandAcquiredProductRightsTables</Role>
      <ShortName>License Agreements and Acquired Product Rights (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/LicenseAgreementsandAcquiredProductRights</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2336307 - Disclosure - Notes Payable (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.bdsi.com/role/NotesPayableTables</Role>
      <ShortName>Notes Payable (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/NotesPayable</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2340308 - Disclosure - Net Sales by Product (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/NetSalesbyProductTables</Role>
      <ShortName>Net Sales by Product (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/NetSalesbyProduct</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2344309 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/IncomeTaxes</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2350310 - Disclosure - Stockholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquityTables</Role>
      <ShortName>Stockholders' Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/StockholdersEquity</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2365311 - Disclosure - Earnings per Common Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/EarningsperCommonShareTables</Role>
      <ShortName>Earnings per Common Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/EarningsperCommonShare</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2374312 - Disclosure - Selected Quarterly Results (Unaudited) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/SelectedQuarterlyResultsUnauditedTables</Role>
      <ShortName>Selected Quarterly Results (Unaudited) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/SelectedQuarterlyResultsUnaudited</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2404401 - Disclosure - Nature of Business and Summary of Significant Accounting Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/NatureofBusinessandSummaryofSignificantAccountingPoliciesAdditionalInformationDetail</Role>
      <ShortName>Nature of Business and Summary of Significant Accounting Policies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2405402 - Disclosure - Nature of Business and Summary of Significant Accounting Policies - Summary of Company's Customers And Suppliers (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/NatureofBusinessandSummaryofSignificantAccountingPoliciesSummaryofCompanysCustomersAndSuppliersDetail</Role>
      <ShortName>Nature of Business and Summary of Significant Accounting Policies - Summary of Company's Customers And Suppliers (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2406403 - Disclosure - Nature of Business and Summary of Significant Accounting Policies - Summary of Inventories (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/NatureofBusinessandSummaryofSignificantAccountingPoliciesSummaryofInventoriesDetail</Role>
      <ShortName>Nature of Business and Summary of Significant Accounting Policies - Summary of Inventories (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2407404 - Disclosure - Nature of Business and Summary of Significant Accounting Policies - Intangible Assets with Finite Useful Lives, Amortized Over Estimated Useful Lives (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/NatureofBusinessandSummaryofSignificantAccountingPoliciesIntangibleAssetswithFiniteUsefulLivesAmortizedOverEstimatedUsefulLivesDetail</Role>
      <ShortName>Nature of Business and Summary of Significant Accounting Policies - Intangible Assets with Finite Useful Lives, Amortized Over Estimated Useful Lives (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2408405 - Disclosure - Nature of Business and Summary of Significant Accounting Policies - Black Scholes Options-Pricing Model, Assumptions (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/NatureofBusinessandSummaryofSignificantAccountingPoliciesBlackScholesOptionsPricingModelAssumptionsDetail</Role>
      <ShortName>Nature of Business and Summary of Significant Accounting Policies - Black Scholes Options-Pricing Model, Assumptions (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2409406 - Disclosure - Nature of Business and Summary of Significant Accounting Policies - Fair Value of Cash and Cash Equivalents (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/NatureofBusinessandSummaryofSignificantAccountingPoliciesFairValueofCashandCashEquivalentsDetails</Role>
      <ShortName>Nature of Business and Summary of Significant Accounting Policies - Fair Value of Cash and Cash Equivalents (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2412407 - Disclosure - Leases - Impact of the Adoption of Topic 842 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LeasesImpactoftheAdoptionofTopic842Details</Role>
      <ShortName>Leases - Impact of the Adoption of Topic 842 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2413408 - Disclosure - Leases - Schedule of Components of Lease Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LeasesScheduleofComponentsofLeaseExpenseDetails</Role>
      <ShortName>Leases - Schedule of Components of Lease Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2414409 - Disclosure - Leases - Schedule of Supplemental Cash Flow Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LeasesScheduleofSupplementalCashFlowInformationDetails</Role>
      <ShortName>Leases - Schedule of Supplemental Cash Flow Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2415410 - Disclosure - Leases - Schedule of Future Minimum Lease Payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LeasesScheduleofFutureMinimumLeasePaymentsDetails</Role>
      <ShortName>Leases - Schedule of Future Minimum Lease Payments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2416411 - Disclosure - Leases - Components of Lease Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LeasesComponentsofLeaseAssetsandLiabilitiesDetails</Role>
      <ShortName>Leases - Components of Lease Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2419412 - Disclosure - Accounts Payable and Accrued Liabilities - Summary of Components (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/AccountsPayableandAccruedLiabilitiesSummaryofComponentsDetail</Role>
      <ShortName>Accounts Payable and Accrued Liabilities - Summary of Components (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2420413 - Disclosure - Accounts payable and Accrued Liabilities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/AccountspayableandAccruedLiabilitiesAdditionalInformationDetail</Role>
      <ShortName>Accounts payable and Accrued Liabilities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2423414 - Disclosure - Property and Equipment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/PropertyandEquipmentDetail</Role>
      <ShortName>Property and Equipment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/PropertyandEquipmentTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2426415 - Disclosure - Other Intangible Assets - Summary of Other Intangible Assets Net (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/OtherIntangibleAssetsSummaryofOtherIntangibleAssetsNetDetail</Role>
      <ShortName>Other Intangible Assets - Summary of Other Intangible Assets Net (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2427416 - Disclosure - Other Intangible Assets - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/OtherIntangibleAssetsAdditionalInformationDetail</Role>
      <ShortName>Other Intangible Assets - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2428417 - Disclosure - Other Intangible Assets - Schedule of Future Amortization (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/OtherIntangibleAssetsScheduleofFutureAmortizationDetail</Role>
      <ShortName>Other Intangible Assets - Schedule of Future Amortization (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2431418 - Disclosure - License Agreements and Acquired Product Rights - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LicenseAgreementsandAcquiredProductRightsNarrativeDetails</Role>
      <ShortName>License Agreements and Acquired Product Rights - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2432419 - Disclosure - License Agreements and Acquired Product Rights (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LicenseAgreementsandAcquiredProductRightsDetails</Role>
      <ShortName>License Agreements and Acquired Product Rights (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/LicenseAgreementsandAcquiredProductRightsTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2434420 - Disclosure - License Agreements (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LicenseAgreementsDetail</Role>
      <ShortName>License Agreements (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/LicenseAgreementsandAcquiredProductRightsTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2437421 - Disclosure - Notes Payable - Additional Information (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.bdsi.com/role/NotesPayableAdditionalInformationDetail</Role>
      <ShortName>Notes Payable - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2438422 - Disclosure - Notes Payable - Future Maturities of the CRG Obligation (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.bdsi.com/role/NotesPayableFutureMaturitiesoftheCRGObligationDetail</Role>
      <ShortName>Notes Payable - Future Maturities of the CRG Obligation (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2441423 - Disclosure - Net Sales by Product - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/NetSalesbyProductAdditionalInformationDetail</Role>
      <ShortName>Net Sales by Product - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2442424 - Disclosure - Net Sales by Product - Summary of Net Sales by Product (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/NetSalesbyProductSummaryofNetSalesbyProductDetail</Role>
      <ShortName>Net Sales by Product - Summary of Net Sales by Product (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2445425 - Disclosure - Income Taxes - Provisions for Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/IncomeTaxesProvisionsforIncomeTaxesDetails</Role>
      <ShortName>Income Taxes - Provisions for Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2446426 - Disclosure - Income Taxes - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/IncomeTaxesAdditionalInformationDetail</Role>
      <ShortName>Income Taxes - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2447427 - Disclosure - Income Taxes - Reconciliation of Federal Statutory Income Tax Rate (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/IncomeTaxesReconciliationofFederalStatutoryIncomeTaxRateDetail</Role>
      <ShortName>Income Taxes - Reconciliation of Federal Statutory Income Tax Rate (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2448428 - Disclosure - Income Taxes - Significant Components of Deferred Tax Assets and Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/IncomeTaxesSignificantComponentsofDeferredTaxAssetsandLiabilitiesDetail</Role>
      <ShortName>Income Taxes - Significant Components of Deferred Tax Assets and Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2451429 - Disclosure - Stockholder's Equity - Common Stock Narrative (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquityCommonStockNarrativeDetail</Role>
      <ShortName>Stockholder's Equity - Common Stock Narrative (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2452430 - Disclosure - Stockholder's Equity - Preferred Stock Narrative (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquityPreferredStockNarrativeDetail</Role>
      <ShortName>Stockholder's Equity - Preferred Stock Narrative (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2453431 - Disclosure - Stockholder's Equity - Public Offering Narrative (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquityPublicOfferingNarrativeDetail</Role>
      <ShortName>Stockholder's Equity - Public Offering Narrative (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2454432 - Disclosure - Stockholder's Equity - Stock Options Narrative (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquityStockOptionsNarrativeDetail</Role>
      <ShortName>Stockholder's Equity - Stock Options Narrative (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2455433 - Disclosure - Stockholders' Equity - Summary of Stock Option Activity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquitySummaryofStockOptionActivityDetail</Role>
      <ShortName>Stockholders' Equity - Summary of Stock Option Activity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2456434 - Disclosure - Stockholders' Equity - Summary of Stock Options Outstanding (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquitySummaryofStockOptionsOutstandingDetail</Role>
      <ShortName>Stockholders' Equity - Summary of Stock Options Outstanding (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2457435 - Disclosure - Stockholders' Equity - Summary of Stock Options Exercisable (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquitySummaryofStockOptionsExercisableDetail</Role>
      <ShortName>Stockholders' Equity - Summary of Stock Options Exercisable (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2458436 - Disclosure - Stockholders' Equity - Summary of Non-Vested Stock Options (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquitySummaryofNonVestedStockOptionsDetail</Role>
      <ShortName>Stockholders' Equity - Summary of Non-Vested Stock Options (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2459437 - Disclosure - Stockholder's Equity - Stock-Based Compensation Narrative (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquityStockBasedCompensationNarrativeDetail</Role>
      <ShortName>Stockholder's Equity - Stock-Based Compensation Narrative (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>2460438 - Disclosure - Stockholder's Equity - Restricted Stock Units Narrative (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquityRestrictedStockUnitsNarrativeDetail</Role>
      <ShortName>Stockholder's Equity - Restricted Stock Units Narrative (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>2461439 - Disclosure - Stockholders' Equity - Summary of Restricted Stock Activity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquitySummaryofRestrictedStockActivityDetail</Role>
      <ShortName>Stockholders' Equity - Summary of Restricted Stock Activity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>2462440 - Disclosure - Stockholder's Equity - Long Term Incentive Plan Narrative (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquityLongTermIncentivePlanNarrativeDetail</Role>
      <ShortName>Stockholder's Equity - Long Term Incentive Plan Narrative (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>2463441 - Disclosure - Stockholder's Equity - Warrants (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquityWarrantsDetail</Role>
      <ShortName>Stockholder's Equity - Warrants (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>2466442 - Disclosure - Earnings per Common Share - Reconciliation of Numerators and Denominators (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/EarningsperCommonShareReconciliationofNumeratorsandDenominatorsDetail</Role>
      <ShortName>Earnings per Common Share - Reconciliation of Numerators and Denominators (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>2467443 - Disclosure - Earnings per Common Share - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/EarningsperCommonShareAdditionalInformationDetail</Role>
      <ShortName>Earnings per Common Share - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>2468444 - Disclosure - Earnings per Common Share - Schedule of Total Outstanding Options, RSUs and Warrants (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/EarningsperCommonShareScheduleofTotalOutstandingOptionsRSUsandWarrantsDetail</Role>
      <ShortName>Earnings per Common Share - Schedule of Total Outstanding Options, RSUs and Warrants (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>2470445 - Disclosure - Retirement Plan (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/RetirementPlanDetail</Role>
      <ShortName>Retirement Plan (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/RetirementPlan</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>2472446 - Disclosure - Commitments and Contingencies (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/CommitmentsandContingenciesDetail</Role>
      <ShortName>Commitments and Contingencies (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>2475447 - Disclosure - Selected Quarterly Results (Unaudited) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/SelectedQuarterlyResultsUnauditedDetail</Role>
      <ShortName>Selected Quarterly Results (Unaudited) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/SelectedQuarterlyResultsUnauditedTables</ParentRole>
      <Position>82</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>2477448 - Disclosure - Schedule II - Valuation and Qualifying Accounts and Reserves (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/ScheduleIIValuationandQualifyingAccountsandReservesDetail</Role>
      <ShortName>Schedule II - Valuation and Qualifying Accounts and Reserves (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/ScheduleIIValuationandQualifyingAccountsandReserves</ParentRole>
      <Position>83</Position>
    </Report>
    <Report instance="bdsi-20201231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9999.htm</HtmlFileName>
      <LongName>Uncategorized Items - bdsi-20201231.htm</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/role/uncategorizedFacts</Role>
      <ShortName>Uncategorized Items - bdsi-20201231.htm</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" original="bdsi-20201231.htm">bdsi-20201231.htm</File>
    <File>a2020exhibit211.htm</File>
    <File>a2020exhibit231.htm</File>
    <File>a2020exhibit232.htm</File>
    <File>bdsi-20201231.xsd</File>
    <File>bdsi-20201231_cal.xml</File>
    <File>bdsi-20201231_def.xml</File>
    <File>bdsi-20201231_lab.xml</File>
    <File>bdsi-20201231_pre.xml</File>
    <File>bdsi-20201231x10kex312.htm</File>
    <File>bdsi-20201231x10qex311.htm</File>
    <File>bdsi-20201231x10qex321.htm</File>
    <File>bdsi-20201231x10qex322.htm</File>
    <File>bdsi1030vollinsamendment.htm</File>
    <File>bdsi1031coelhoamendment.htm</File>
    <File>bdsi1032pleshaamendment.htm</File>
    <File>bdsi1033baileyofferlette.htm</File>
    <File>bdsi41securities.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>bdsi-20201231_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2020-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2019-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
