<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>137</ContextCount>
  <ElementCount>220</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>52</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Condensed Consolidated Balance Sheets (Current Period Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsCurrentPeriodUnaudited</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Current Period Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Condensed Consolidated Statements of Operations and Comprehensive Loss (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfOperationsAndComprehensiveLossUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Operations and Comprehensive Loss (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Condensed Consolidated Statements of Stockholders' Equity (Deficit) (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfStockholdersEquityDeficitUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Stockholders' Equity (Deficit) (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Condensed Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Disclosure - Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureBusiness</Role>
      <ShortName>Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Disclosure - Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureBasisOfPresentation</Role>
      <ShortName>Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Disclosure - Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureAccountingPolicies</Role>
      <ShortName>Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureFairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Short-term Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureShortTermInvestments</Role>
      <ShortName>Short-term Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Inventory</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureInventory</Role>
      <ShortName>Inventory</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Reorganizations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureReorganizations</Role>
      <ShortName>Reorganizations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Convertible Notes</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureConvertibleNotes</Role>
      <ShortName>Convertible Notes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureStockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Equity Incentive Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureEquityIncentivePlan</Role>
      <ShortName>Equity Incentive Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/DisclosureSubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureAccountingPoliciesPolicies</Role>
      <ShortName>Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureAccountingPolicies</ParentRole>
      <Position>19</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureAccountingPoliciesTables</Role>
      <ShortName>Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureAccountingPolicies</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureFairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureFairValueMeasurements</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Short-term Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureShortTermInvestmentsTables</Role>
      <ShortName>Short-term Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureShortTermInvestments</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Inventory (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureInventoryTables</Role>
      <ShortName>Inventory (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureInventory</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureLeases</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Equity Incentive Plan (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureEquityIncentivePlanTables</Role>
      <ShortName>Equity Incentive Plan (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureEquityIncentivePlan</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Business - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureBusinessAdditionalInformationDetails</Role>
      <ShortName>Business - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Accounting Policies - Percentage of Net Product Sales and Accounts Receivable Balance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureAccountingPoliciesPercentageOfNetProductSalesAndAccountsReceivableBalanceDetails</Role>
      <ShortName>Accounting Policies - Percentage of Net Product Sales and Accounts Receivable Balance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Accounting Policies - Summary of Disaggregated Net Product Sales (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureAccountingPoliciesSummaryOfDisaggregatedNetProductSalesDetails</Role>
      <ShortName>Accounting Policies - Summary of Disaggregated Net Product Sales (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Accounting Policies - Summary of Activity to Product Returns, Distributor Fees and Discounts, Rebates and Administrative Fees (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureAccountingPoliciesSummaryOfActivityToProductReturnsDistributorFeesAndDiscountsRebatesAndAdministrativeFeesDetails</Role>
      <ShortName>Accounting Policies - Summary of Activity to Product Returns, Distributor Fees and Discounts, Rebates and Administrative Fees (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Accounting Policies - Common Stock Equivalents Excluded From Computation of Net Loss Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureAccountingPoliciesCommonStockEquivalentsExcludedFromComputationOfNetLossPerShareDetails</Role>
      <ShortName>Accounting Policies - Common Stock Equivalents Excluded From Computation of Net Loss Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Accounting Policies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureAccountingPoliciesAdditionalInformationDetails</Role>
      <ShortName>Accounting Policies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Fair Value Measurements - Schedule of Financial Assets Measured on a Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureFairValueMeasurementsScheduleOfFinancialAssetsMeasuredOnRecurringBasisDetails</Role>
      <ShortName>Fair Value Measurements - Schedule of Financial Assets Measured on a Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Fair Value Measurements - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureFairValueMeasurementsAdditionalInformationDetails</Role>
      <ShortName>Fair Value Measurements - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Short-term Investments - Summary of Short-term Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureShortTermInvestmentsSummaryOfShortTermInvestmentsDetails</Role>
      <ShortName>Short-term Investments - Summary of Short-term Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Short-term Investments - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureShortTermInvestmentsAdditionalInformationDetails</Role>
      <ShortName>Short-term Investments - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Inventory - Schedule of Inventory (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureInventoryScheduleOfInventoryDetails</Role>
      <ShortName>Inventory - Schedule of Inventory (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Inventory - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureInventoryAdditionalInformationDetails</Role>
      <ShortName>Inventory - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Leases - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetails</Role>
      <ShortName>Leases - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Leases - Summary of Future Minimum Lease Payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureLeasesSummaryOfFutureMinimumLeasePaymentsDetails</Role>
      <ShortName>Leases - Summary of Future Minimum Lease Payments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Reorganizations - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureReorganizationsAdditionalInformationDetails</Role>
      <ShortName>Reorganizations - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Convertible Notes - Additional Information (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureConvertibleNotesAdditionalInformationDetails</Role>
      <ShortName>Convertible Notes - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Stockholders' Equity - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetails</Role>
      <ShortName>Stockholders' Equity - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Equity Incentive Plan - Summary of Stock Option Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureEquityIncentivePlanSummaryOfStockOptionActivityDetails</Role>
      <ShortName>Equity Incentive Plan - Summary of Stock Option Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Equity Incentive Plan - Summary of Restricted Stock Unit Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureEquityIncentivePlanSummaryOfRestrictedStockUnitActivityDetails</Role>
      <ShortName>Equity Incentive Plan - Summary of Restricted Stock Unit Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Equity Incentive Plan - Summary of Stock-Based Compensation Expense related to Stock-Based Payment Awards Granted (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureEquityIncentivePlanSummaryOfStockBasedCompensationExpenseRelatedToStockBasedPaymentAwardsGrantedDetails</Role>
      <ShortName>Equity Incentive Plan - Summary of Stock-Based Compensation Expense related to Stock-Based Payment Awards Granted (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Equity Incentive Plan - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureEquityIncentivePlanAdditionalInformationDetails</Role>
      <ShortName>Equity Incentive Plan - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Equity Incentive Plan - Summary of Fair Value of Option Grant on Grant Date Using Black-Scholes Option Pricing Model (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/Role_DisclosureEquityIncentivePlanSummaryOfFairValueOfOptionGrantOnGrantDateUsingBlackScholesOptionPricingModelDetails</Role>
      <ShortName>Equity Incentive Plan - Summary of Fair Value of Option Grant on Grant Date Using Black-Scholes Option Pricing Model (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="hrtx-20230331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Subsequent Events Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.herontx.com/20230331/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails</Role>
      <ShortName>Subsequent Events Additional Information (Details)</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>
  <Logs>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 1 fact(s) appearing in ix:hidden were eligible for transformation: dei:EntityRegistrantName -  hrtx-20230331.htm 8</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" original="hrtx-20230331.htm">hrtx-20230331.htm</File>
    <File>hrtx-20230331.xsd</File>
    <File>hrtx-20230331_cal.xml</File>
    <File>hrtx-20230331_def.xml</File>
    <File>hrtx-20230331_lab.xml</File>
    <File>hrtx-20230331_pre.xml</File>
    <File>hrtx-ex31_1.htm</File>
    <File>hrtx-ex31_2.htm</File>
    <File>hrtx-ex32_1.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="388">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
