<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="rc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0002046386</identifier>
        </entity>
        <period>
            <startDate>2025-12-15</startDate>
            <endDate>2025-12-15</endDate>
        </period>
    </context>
    <context id="offrl_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0002046386</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-15</startDate>
            <endDate>2025-12-15</endDate>
        </period>
    </context>
    <context id="offrl_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0002046386</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-15</startDate>
            <endDate>2025-12-15</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-189">S-8</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-190">S-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-191">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-192">0002046386</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-193">Medline Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa contextRef="rc" id="hiddenrcOfferingTableNa" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="rc" id="hiddenrcOffsetTableNa">N/A</ffd:OffsetTableNa>
    <ffd:PrevslyPdFlg contextRef="offrl_1" id="ixv-196">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg contextRef="offrl_2" id="ixv-197">false</ffd:PrevslyPdFlg>
    <ffd:FormTp contextRef="rc" id="ixv-231">S-8</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-232">Medline Inc.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-233">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-234">Class A common stock, $0.0001 par value per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_1" id="ixv-235">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_1"
      decimals="0"
      id="ixv-236"
      unitRef="Shares">109246350</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="offrl_1"
      decimals="INF"
      id="ixv-237"
      unitRef="USD">30.00</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_1"
      decimals="INF"
      id="ixv-238"
      unitRef="USD">3277390500.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="INF"
      id="ixv-239"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_1"
      decimals="INF"
      id="ixv-240"
      unitRef="USD">452608.00</ffd:FeeAmt>
    <ffd:OfferingSctyTp contextRef="offrl_2" id="ixv-241">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_2" id="ixv-242">Class A common stock, $0.0001 par value per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_2" id="ixv-243">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_2"
      decimals="0"
      id="ixv-244"
      unitRef="Shares">20000000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="offrl_2"
      decimals="INF"
      id="ixv-245"
      unitRef="USD">30.00</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_2"
      decimals="INF"
      id="ixv-246"
      unitRef="USD">600000000.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_2"
      decimals="INF"
      id="ixv-247"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_2"
      decimals="INF"
      id="ixv-248"
      unitRef="USD">82860.00</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="INF" id="ixv-249" unitRef="USD">3877390500.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="INF" id="ixv-250" unitRef="USD">535468.00</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="INF" id="ixv-251" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="INF" id="ixv-252" unitRef="USD">535468.00</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_1" id="ixv-253">(a) Covers shares of Class A common stock, $0.0001 par value per share, of Medline Inc. ("Class A Common Stock") issuable under the Medline Inc. 2025 Omnibus Incentive Plan (the "Omnibus Incentive Plan"). (b) Pursuant to Rule 416(a) under the Securities Act of 1933, as amended (the "Securities Act"), the Registration Statement on Form S-8 (the "Registration Statement") to which this exhibit relates also covers an indeterminate number of additional shares of Class A Common Stock, which may be offered and issued under the Omnibus Incentive Plan and ESPP, as applicable, to prevent dilution resulting from stock splits, stock dividends or similar transactions. (c) Pursuant to Rule 457(c) and 457(h)(1) of the Securities Act, the proposed maximum offering price per share and the proposed maximum aggregate offering price are estimated solely for the purpose of calculating the amount of the registration fee and are based with respect to the 109,246,350 shares approved for issuance under the Omnibus Incentive Plan, and with respect to the 20,000,000 shares issuable under the ESPP, on a price of $30.00 per share, which is the high-point of the estimated price range per share of Class A Common Stock for the Registrant's initial public offering of Class A Common Stock pursuant to the Registrant's Registration Statement on Form S-1 (File No. 333-291112). </ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_2" id="ixv-254">(a) Covers shares of Class A Common Stock approved for issuance under the Medline Inc. 2025 Employee Stock Purchase Plan (the "ESPP"). (b) See note 1(b) above. (c) See note 1(c) above.</ffd:OfferingNote>
</xbrl>
