<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.19.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>148</ContextCount>
  <ElementCount>331</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>51</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>1001 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1002 - Statement - Condensed Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/CondensedConsolidatedBalanceSheets</Role>
      <ShortName>Condensed Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1003 - Statement - Condensed Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/CondensedConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1004 - Statement - Condensed Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/CondensedConsolidatedStatementsOfOperations</Role>
      <ShortName>Condensed Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1005 - Statement - Condensed Consolidated Statements of Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/CondensedConsolidatedStatementsOfStockholdersEquity</Role>
      <ShortName>Condensed Consolidated Statements of Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1006 - Statement - Condensed Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/CondensedConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1007 - Disclosure - Organization, Basis of Presentation and Summary of Significant Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/OrganizationBasisOfPresentationAndSummaryOfSignificantPolicies</Role>
      <ShortName>Organization, Basis of Presentation and Summary of Significant Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1008 - 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-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>1009 - Disclosure - Inventory</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/Inventory</Role>
      <ShortName>Inventory</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>1010 - 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>10</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>1011 - 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>11</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>1012 - 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-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>1013 - 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>13</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>1014 - 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-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>1015 - 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-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>1016 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>1017 - 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>17</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>1018 - Disclosure - Organization, Basis of Presentation and Summary of Significant Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/OrganizationBasisOfPresentationAndSummaryOfSignificantPoliciesPolicies</Role>
      <ShortName>Organization, Basis of Presentation and Summary of Significant Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>1019 - Disclosure - Organization, Basis of Presentation and Summary of Significant Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/OrganizationBasisOfPresentationAndSummaryOfSignificantPoliciesTables</Role>
      <ShortName>Organization, Basis of Presentation and Summary of Significant Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/OrganizationBasisOfPresentationAndSummaryOfSignificantPolicies</ParentRole>
      <Position>19</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>1020 - 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>20</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>1021 - Disclosure - Inventory (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/InventoryTables</Role>
      <ShortName>Inventory (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bdsi.com/role/Inventory</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>1022 - 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>22</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>1023 - 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>23</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>1024 - 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>
      <Position>24</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>1025 - 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>25</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>1026 - 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>26</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>1027 - 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>27</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>1028 - 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>28</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>1029 - Disclosure - Organization, Basis of Presentation and Summary of Significant Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/OrganizationBasisOfPresentationAndSummaryOfSignificantPoliciesAdditionalInformationDetail</Role>
      <ShortName>Organization, Basis of Presentation and Summary of Significant Policies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>1030 - Disclosure - Organization, Basis of Presentation and Summary of Significant Policies - Schedule of Cash and Cash Equivalents Measured at Fair Value on a Recurring Basis (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/OrganizationBasisOfPresentationAndSummaryOfSignificantPoliciesScheduleOfCashAndCashEquivalentsMeasuredAtFairValueOnARecurringBasisDetail</Role>
      <ShortName>Organization, Basis of Presentation and Summary of Significant Policies - Schedule of Cash and Cash Equivalents Measured at Fair Value on a Recurring Basis (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>1031 - Disclosure - Leases -  Schedule of Components of Lease Expense (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LeasesScheduleOfComponentsOfLeaseExpenseDetail</Role>
      <ShortName>Leases -  Schedule of Components of Lease Expense (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>1032 - Disclosure - Leases - Schedule of Supplemental Cash Flow Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LeasesScheduleOfSupplementalCashFlowInformationDetail</Role>
      <ShortName>Leases - Schedule of Supplemental Cash Flow Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>1033 - Disclosure - Leases - Schedule of Future Minimum Lease Payments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LeasesScheduleOfFutureMinimumLeasePaymentsDetail</Role>
      <ShortName>Leases - Schedule of Future Minimum Lease Payments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>1034 - Disclosure - Leases - Components of Lease (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LeasesComponentsOfLeaseDetail</Role>
      <ShortName>Leases - Components of Lease (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>1035 - Disclosure - Inventory - Summary of Inventories (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/InventorySummaryOfInventoriesDetail</Role>
      <ShortName>Inventory - Summary of Inventories (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>1036 - Disclosure - Accounts Payable and Accrued Liabilities - Summary of Components of Accounts Payable and Accrued Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/AccountsPayableAndAccruedLiabilitiesSummaryOfComponentsOfAccountsPayableAndAccruedLiabilitiesDetail</Role>
      <ShortName>Accounts Payable and Accrued Liabilities - Summary of Components of Accounts Payable and Accrued Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>1037 - Disclosure - Property and Equipment - Summarized Category of Fixed Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/PropertyAndEquipmentSummarizedCategoryOfFixedAssetsDetail</Role>
      <ShortName>Property and Equipment - Summarized Category of Fixed Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>1038 - Disclosure - Property and Equipment - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/PropertyAndEquipmentAdditionalInformationDetail</Role>
      <ShortName>Property and Equipment - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>1039 - Disclosure - License agreements and acquired product rights - Total Purchase Price Allocated To Acquired Asset Based On Relative Estimated Fair Values (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LicenseAgreementsAndAcquiredProductRightsTotalPurchasePriceAllocatedToAcquiredAssetBasedOnRelativeEstimatedFairValuesDetail</Role>
      <ShortName>License agreements and acquired product rights - Total Purchase Price Allocated To Acquired Asset Based On Relative Estimated Fair Values (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>1040 - Disclosure - License Agreements and Acquired Product Rights - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/LicenseAgreementsAndAcquiredProductRightsAdditionalInformationDetail</Role>
      <ShortName>License Agreements and Acquired Product Rights - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>1041 - Disclosure - Other Intangible Assets - Summary of Other Intangible Assets Net Consisting of Product Rights and Licenses (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/OtherIntangibleAssetsSummaryOfOtherIntangibleAssetsNetConsistingOfProductRightsAndLicensesDetail</Role>
      <ShortName>Other Intangible Assets - Summary of Other Intangible Assets Net Consisting of Product Rights and Licenses (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>1042 - 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>42</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>1043 - 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>43</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>1044 - 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>44</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>1045 - Disclosure - Stockholders' Equity - Additional information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquityAdditionalInformationDetail</Role>
      <ShortName>Stockholders' Equity - Additional information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>1046 - Disclosure - Stockholders' Equity - Key Assumptions Used in Determining Fair Value of Options Granted (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bdsi.com/role/StockholdersEquityKeyAssumptionsUsedInDeterminingFairValueOfOptionsGrantedDetail</Role>
      <ShortName>Stockholders' Equity - Key Assumptions Used in Determining Fair Value of Options Granted (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>1047 - 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>47</Position>
    </Report>
    <Report instance="bdsi-20190630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>1048 - 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>48</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>bdsi-20190630.xml</File>
    <File>bdsi-20190630.xsd</File>
    <File>bdsi-20190630_cal.xml</File>
    <File>bdsi-20190630_def.xml</File>
    <File>bdsi-20190630_lab.xml</File>
    <File>bdsi-20190630_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/srt/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2018-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
