<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>226</ContextCount>
  <ElementCount>473</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>98</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="qrhc-20211231.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.qrhc.com/20211231/taxonomy/role/Role_DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_StatementCONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_StatementCONSOLIDATEDBALANCESHEETSParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_StatementCONSOLIDATEDSTATEMENTSOFOPERATIONS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_StatementCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Disclosure - The Company and Description of Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureTheCompanyAndDescriptionOfBusiness</Role>
      <ShortName>The Company and Description of Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Disclosure - Acquisitions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/DisclosureAcquisitions</Role>
      <ShortName>Acquisitions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Property and Equipment, Net, and Other Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetAndOtherAssets</Role>
      <ShortName>Property and Equipment, Net, and Other Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Goodwill and Other Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureGoodwillAndOtherIntangibleAssets</Role>
      <ShortName>Goodwill and Other Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Current Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureCurrentLiabilities</Role>
      <ShortName>Current Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure -  Notes Payable and Other Long-Term Liabilities, Net</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureNotesPayableAndOtherLongTermLiabilitiesNet</Role>
      <ShortName>Notes Payable and Other Long-Term Liabilities, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Revenue</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureRevenue</Role>
      <ShortName>Revenue</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Fair Value of Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureFairValueOfFinancialInstruments</Role>
      <ShortName>Fair Value of Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureStockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Net Income per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/DisclosureNetIncomePerShare</Role>
      <ShortName>Net Income per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Supplemental Cash Flow Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureSupplementalCashFlowInformation</Role>
      <ShortName>Supplemental Cash Flow Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Subsequent Event</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/DisclosureSubsequentEvent</Role>
      <ShortName>Subsequent Event</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Acquisitions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/DisclosureAcquisitionsTables</Role>
      <ShortName>Acquisitions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.qrhc.com/20211231/taxonomy/role/DisclosureAcquisitions</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Property and Equipment, Net, and Other Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetAndOtherAssetsTables</Role>
      <ShortName>Property and Equipment, Net, and Other Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetAndOtherAssets</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Goodwill and Other Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureGoodwillAndOtherIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Other Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureGoodwillAndOtherIntangibleAssets</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Current Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureCurrentLiabilitiesTables</Role>
      <ShortName>Current Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureCurrentLiabilities</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100290 - Disclosure -  Notes Payable and Other Long-Term Liabilities, Net (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureNotesPayableAndOtherLongTermLiabilitiesNetTables</Role>
      <ShortName>Notes Payable and Other Long-Term Liabilities, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureNotesPayableAndOtherLongTermLiabilitiesNet</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureLeases</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Revenue (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureRevenueTables</Role>
      <ShortName>Revenue (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureRevenue</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureIncomeTaxes</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Stockholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureStockholdersEquityTables</Role>
      <ShortName>Stockholders' Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureStockholdersEquity</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Net Income per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/DisclosureNetIncomePerShareTables</Role>
      <ShortName>Net Income per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.qrhc.com/20211231/taxonomy/role/DisclosureNetIncomePerShare</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Supplemental Cash Flow Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureSupplementalCashFlowInformationTables</Role>
      <ShortName>Supplemental Cash Flow Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureSupplementalCashFlowInformation</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100360 - Disclosure - The Company and Description of Business - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureTheCompanyAndDescriptionOfBusinessAdditionalInformationDetail</Role>
      <ShortName>The Company and Description of Business - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Summary of Significant Accounting Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Summary of Significant Accounting Policies - Changes in Allowance for Doubtful Accounts (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesChangesInAllowanceForDoubtfulAccountsDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Changes in Allowance for Doubtful Accounts (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Summary of Significant Accounting Policies - Schedule of Property and Equipment Useful Lives (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfPropertyAndEquipmentUsefulLivesDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Property and Equipment Useful Lives (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Summary of Significant Accounting Policies - Schedule of Number of Customers that Accounted for More than Ten Percentage of Annual Sales and Receivable Balances (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfNumberOfCustomersThatAccountedForMoreThanTenPercentageOfAnnualSalesAndReceivableBalancesDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Number of Customers that Accounted for More than Ten Percentage of Annual Sales and Receivable Balances (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Acquisitions - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/DisclosureAcquisitionsAdditionalInformationDetail</Role>
      <ShortName>Acquisitions - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Acquisitions - Schedule of Purchase Consideration Paid and Amount of Assets Acquired and Liabilities Assumed (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/DisclosureAcquisitionsScheduleOfPurchaseConsiderationPaidAndAmountOfAssetsAcquiredAndLiabilitiesAssumedDetail</Role>
      <ShortName>Acquisitions - Schedule of Purchase Consideration Paid and Amount of Assets Acquired and Liabilities Assumed (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Acquisitions - Schedule of Purchase Consideration Paid and Amount of Assets Acquired and Liabilities Assumed (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/DisclosureAcquisitionsScheduleOfPurchaseConsiderationPaidAndAmountOfAssetsAcquiredAndLiabilitiesAssumedParentheticalDetail</Role>
      <ShortName>Acquisitions - Schedule of Purchase Consideration Paid and Amount of Assets Acquired and Liabilities Assumed (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Acquisitions - Schedule of Unaudited Pro Forma Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/DisclosureAcquisitionsScheduleOfUnauditedProFormaInformationDetail</Role>
      <ShortName>Acquisitions - Schedule of Unaudited Pro Forma Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Property and Equipment, Net, and Other Assets - Components of Property and Equipment, Net, and Other Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetAndOtherAssetsComponentsOfPropertyAndEquipmentNetAndOtherAssetsDetail</Role>
      <ShortName>Property and Equipment, Net, and Other Assets - Components of Property and Equipment, Net, and Other Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Property and Equipment, Net, and Other Assets - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosurePropertyAndEquipmentNetAndOtherAssetsAdditionalInformationDetail</Role>
      <ShortName>Property and Equipment, Net, and Other Assets - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Goodwill and Other Intangible Assets - Schedule of Finite-Lived Intangible Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureGoodwillAndOtherIntangibleAssetsScheduleOfFiniteLivedIntangibleAssetsDetail</Role>
      <ShortName>Goodwill and Other Intangible Assets - Schedule of Finite-Lived Intangible Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Goodwill and Other Intangible Assets - Schedule of Changes in Goodwill (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureGoodwillAndOtherIntangibleAssetsScheduleOfChangesInGoodwillDetail</Role>
      <ShortName>Goodwill and Other Intangible Assets - Schedule of Changes in Goodwill (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Goodwill and Other Intangible Assets - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureGoodwillAndOtherIntangibleAssetsAdditionalInformationDetail</Role>
      <ShortName>Goodwill and Other Intangible Assets - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Current Liabilities - Components of Accounts Payable and Accrued Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureCurrentLiabilitiesComponentsOfAccountsPayableAndAccruedLiabilitiesDetail</Role>
      <ShortName>Current Liabilities - Components of Accounts Payable and Accrued Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Current Liabilities - Components of Other Current Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureCurrentLiabilitiesComponentsOfOtherCurrentLiabilitiesDetail</Role>
      <ShortName>Current Liabilities - Components of Other Current Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Current liabilities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/DisclosureCurrentLiabilitiesAdditionalInformationDetail</Role>
      <ShortName>Current liabilities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Notes Payable and Other Long-term Liabilities, Net - Schedule of Debt Obligations (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureNotesPayableAndOtherLongTermLiabilitiesNetScheduleOfDebtObligationsDetail</Role>
      <ShortName>Notes Payable and Other Long-term Liabilities, Net - Schedule of Debt Obligations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Notes Payable and Other Long-term Liabilities, Net - Schedule of Debt Obligations (Parenthetical) (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureNotesPayableAndOtherLongTermLiabilitiesNetScheduleOfDebtObligationsParentheticalDetail</Role>
      <ShortName>Notes Payable and Other Long-term Liabilities, Net - Schedule of Debt Obligations (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100550 - Disclosure - Notes Payable and Other Long-term Liabilities, Net - Schedule of Future Minimum Principal Payments (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureNotesPayableAndOtherLongTermLiabilitiesNetScheduleOfFutureMinimumPrincipalPaymentsDetail</Role>
      <ShortName>Notes Payable and Other Long-term Liabilities, Net - Schedule of Future Minimum Principal Payments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Notes Payable and Other Long-term Liabilities, Net - Schedule of Changes in Debt Issuance Costs (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureNotesPayableAndOtherLongTermLiabilitiesNetScheduleOfChangesInDebtIssuanceCostsDetail</Role>
      <ShortName>Notes Payable and Other Long-term Liabilities, Net - Schedule of Changes in Debt Issuance Costs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Notes Payable and Other Long-term Liabilities, Net - Additional Information (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureNotesPayableAndOtherLongTermLiabilitiesNetAdditionalInformationDetail</Role>
      <ShortName>Notes Payable and Other Long-term Liabilities, Net - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Notes Payable and Other Long-term Liabilities, Net - Schedule of Other Long-Term Liabilities, Net (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureNotesPayableAndOtherLongTermLiabilitiesNetScheduleOfOtherLongTermLiabilitiesNetDetail</Role>
      <ShortName>Notes Payable and Other Long-term Liabilities, Net - Schedule of Other Long-Term Liabilities, Net (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Leases - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetail</Role>
      <ShortName>Leases - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Leases - Future Minimum Lease Payments Required Under Office Leases (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureLeasesFutureMinimumLeasePaymentsRequiredUnderOfficeLeasesDetail</Role>
      <ShortName>Leases - Future Minimum Lease Payments Required Under Office Leases (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100630 - Disclosure - Leases - Summary of Lease Related Assets and Liabilities Recorded on Balance Sheet (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureLeasesSummaryOfLeaseRelatedAssetsAndLiabilitiesRecordedOnBalanceSheetDetail</Role>
      <ShortName>Leases - Summary of Lease Related Assets and Liabilities Recorded on Balance Sheet (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100640 - Disclosure - Revenue - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureRevenueAdditionalInformationDetail</Role>
      <ShortName>Revenue - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100650 - Disclosure - Revenue - Summary of Revenue Disaggregated by Source (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureRevenueSummaryOfRevenueDisaggregatedBySourceDetail</Role>
      <ShortName>Revenue - Summary of Revenue Disaggregated by Source (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100660 - Disclosure - Income Taxes - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail</Role>
      <ShortName>Income Taxes - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Income Taxes - Components of Net Deferred Taxes (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfNetDeferredTaxesDetail</Role>
      <ShortName>Income Taxes - Components of Net Deferred Taxes (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Income Taxes - Schedule of Provision of Income Taxes (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfProvisionOfIncomeTaxesDetail</Role>
      <ShortName>Income Taxes - Schedule of Provision of Income Taxes (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100690 - Disclosure - Income Taxes - Schedule of Effective Income Tax Rate Reconciliation (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfEffectiveIncomeTaxRateReconciliationDetail</Role>
      <ShortName>Income Taxes - Schedule of Effective Income Tax Rate Reconciliation (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100700 - Disclosure - Commitments and Contingencies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100710 - Disclosure - Stockholders' Equity - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDetail</Role>
      <ShortName>Stockholders' Equity - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100720 - Disclosure - Stockholders' Equity - Additional Information - Employee Stock Purchase Plan (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationEmployeeStockPurchasePlanDetail</Role>
      <ShortName>Stockholders' Equity - Additional Information - Employee Stock Purchase Plan (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100730 - Disclosure - Stockholders' Equity - Summary of Warrant Activity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/DisclosureStockholdersEquitySummaryOfWarrantActivityDetail</Role>
      <ShortName>Stockholders' Equity - Summary of Warrant Activity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100740 - Disclosure - Stockholders' Equity - Summary of Warrants Issued and Outstanding (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfWarrantsIssuedAndOutstandingDetail</Role>
      <ShortName>Stockholders' Equity - Summary of Warrants Issued and Outstanding (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100750 - Disclosure - Stockholders' Equity - Additional Information - Warrants (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationWarrantsDetail</Role>
      <ShortName>Stockholders' Equity - Additional Information - Warrants (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>100760 - Disclosure - Stockholders' Equity - Additional Information - Incentive Compensation Plan (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationIncentiveCompensationPlanDetail</Role>
      <ShortName>Stockholders' Equity - Additional Information - Incentive Compensation Plan (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>100770 - Disclosure - Stockholders' Equity - Summary of Stock Option Activity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfStockOptionActivityDetail</Role>
      <ShortName>Stockholders' Equity - Summary of Stock Option Activity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>100780 - Disclosure - Stockholders' Equity - Additional Information - Stock Options (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationStockOptionsDetail</Role>
      <ShortName>Stockholders' Equity - Additional Information - Stock Options (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>100790 - Disclosure - Stockholders' Equity - Summary of Stock Option Outstanding (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureStockholdersEquitySummaryOfStockOptionOutstandingDetail</Role>
      <ShortName>Stockholders' Equity - Summary of Stock Option Outstanding (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>100800 - Disclosure - Stockholders' Equity - Schedule of Weighted-Average Estimated Value of Employee Stock Options Granted (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureStockholdersEquityScheduleOfWeightedAverageEstimatedValueOfEmployeeStockOptionsGrantedDetail</Role>
      <ShortName>Stockholders' Equity - Schedule of Weighted-Average Estimated Value of Employee Stock Options Granted (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>100810 - Disclosure - Stockholders' Equity - Additional Information - Deferred Stock Units (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureStockholdersEquityAdditionalInformationDeferredStockUnitsDetail</Role>
      <ShortName>Stockholders' Equity - Additional Information - Deferred Stock Units (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>100820 - Disclosure - Net Income per Share - Computation of Basic and Diluted Net Income (Loss) per Share Attributable to Common Stockholders (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/DisclosureNetIncomePerShareComputationOfBasicAndDilutedNetIncomeLossPerShareAttributableToCommonStockholdersDetail</Role>
      <ShortName>Net Income per Share - Computation of Basic and Diluted Net Income (Loss) per Share Attributable to Common Stockholders (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>100830 - Disclosure - Supplemental Cash Flow Information - Summary of Supplemental Information to Consolidated Statements of Cash Flows (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/Role_DisclosureSupplementalCashFlowInformationSummaryOfSupplementalInformationToConsolidatedStatementsOfCashFlowsDetail</Role>
      <ShortName>Supplemental Cash Flow Information - Summary of Supplemental Information to Consolidated Statements of Cash Flows (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="qrhc-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>100840 - Disclosure - Subsequent Event - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.qrhc.com/20211231/taxonomy/role/DisclosureSubsequentEventAdditionalInformationDetail</Role>
      <ShortName>Subsequent Event - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</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="qrhc-20211231.htm">qrhc-20211231.htm</File>
    <File>qrhc-20211231.xsd</File>
    <File>qrhc-20211231_cal.xml</File>
    <File>qrhc-20211231_def.xml</File>
    <File>qrhc-20211231_lab.xml</File>
    <File>qrhc-20211231_pre.xml</File>
    <File>qrhc-ex21_1.htm</File>
    <File>qrhc-ex23_1.htm</File>
    <File>qrhc-ex31_1.htm</File>
    <File>qrhc-ex31_2.htm</File>
    <File>qrhc-ex32_1.htm</File>
    <File>qrhc-ex32_2.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="804">http://fasb.org/us-gaap/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="37">http://xbrl.sec.gov/dei/2021q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
