/* Official print chrome: institute letterhead, printed date, page numbers. Hidden on screen. */
.rt-doc-print-header,
.rt-doc-print-footer {
    display: none;
}

@media print {
    @page {
        margin: 26mm 14mm 18mm 14mm;
        @bottom-left {
            content: "Randatech Innovative Institute";
            font-size: 8pt;
            color: #1A2B56;
        }
        @bottom-center {
            content: "Page " counter(page) " of " counter(pages);
            font-size: 8pt;
            color: #64748b;
        }
        @bottom-right {
            content: "Printed document";
            font-size: 8pt;
            color: #64748b;
        }
    }

    html,
    body {
        background: #fff !important;
        color: #0f172a !important;
    }

    .rt-doc-print-header {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 0 0 8px;
        background: #fff;
        z-index: 9999;
    }

    .rt-doc-print-header__inner {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
    }

    .rt-doc-print-header__brand {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .rt-doc-print-header__logo {
        display: block;
        max-height: 42px;
        max-width: 160px;
        width: auto;
    }

    .rt-doc-print-header__name {
        margin: 0;
        font-size: 13px;
        font-weight: 700;
        color: #1A2B56;
        letter-spacing: -0.02em;
    }

    .rt-doc-print-header__contact,
    .rt-doc-print-header__printed {
        margin: 2px 0 0;
        font-size: 9px;
        color: #64748b;
    }

    .rt-doc-print-header__printed {
        text-align: right;
        font-weight: 700;
        color: #1A2B56;
        white-space: nowrap;
    }

    .rt-doc-print-header__rule {
        height: 4px;
        margin-top: 8px;
        background: linear-gradient(90deg, #1A2B56 0 46%, #F58220 46% 74%, #C5A059 74% 100%);
    }

    .rt-doc-print-footer {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding-top: 6px;
        border-top: 0.7pt solid #C5A059;
        font-size: 8px;
        color: #64748b;
        background: #fff;
        z-index: 9999;
    }

    .rt-doc-print-footer__institute {
        font-weight: 700;
        color: #1A2B56;
    }

    .rt-doc-print-footer__contact {
        flex: 1;
        min-width: 0;
        text-align: center;
        color: #64748b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rt-doc-print-footer__pages::after {
        content: " " counter(page) " of " counter(pages);
    }

    .adm-sidebar,
    .adm-header,
    .adm-sidebar-overlay,
    .adm-header__actions,
    .rt-skip-link,
    .rt-header,
    .rt-topbar,
    .rt-mobile-menu,
    .rt-footer,
    .rt-scroll-top,
    .rt-page-loader,
    .ui-page-loader,
    .rt-checkout-canvas__top,
    .rt-checkout-flow__review,
    .rt-payment-success__actions,
    .rt-payment-success__invoice-actions,
    .rt-payment-success__badges,
    .report__actions,
    .rt-no-print,
    .no-print,
    button[onclick*="print"],
    .portal-whatsapp,
    x-portal\.whatsapp {
        display: none !important;
    }

    .adm-shell,
    .adm-main-wrap,
    .adm-content,
    .rt-checkout,
    .rt-body {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    a[href]::after {
        content: none !important;
    }
}
