@media print {
    .globalnav-wrapper,
    .ht-foot {
        display: none !important;
        max-height: 0px !important;
    }

    li,
    .card {
        break-inside: avoid;
    }

    .mss-category-overview-list-container,
    .mss-capability-table-container {
        overflow: visible !important;
        max-height: none !important;
    }

    .card-compact_dimensions,
    .card-compact_divider_width {
        max-width: 100% !important;
    }

    .mss-dashboard-section__container {
        display: flex !important;
        flex-direction: row !important;
        gap: 2rem !important;
        width: 100% !important;
    }

    .mss-dashboard-section__container > div:first-child {
        flex: 0 0 auto !important;
        width: 50% !important;
    }

    .mss-dashboard-section__container > div:nth-child(2) {
        flex: 0 0 auto !important;
        width: 1px !important;
    }

    .mss-dashboard-section__container > div:last-child {
        flex: 1 !important;
        width: 50% !important;
    }

    .mss-category-overview {
        margin-top: 0 !important;
    }

    /* Remove horizontal line above first category item when printing */
    .mss-dashboard-category-overview-item:first-child {
        border-top: none !important;
        padding-top: 0 !important;
    }

    .trending-signals__container {
        break-inside: avoid !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .category-container {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .category-list {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .category-list-divider-border {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    /* Fix trending signal buttons overflow */
    .trending-signal-buttons {
        width: auto !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        padding-right: 0.25rem !important;
    }

    /* Hide mobile-specific elements during print */
    .mss-category_dropdown {
        display: none !important;
    }

    .hov-content-right-panel {
        padding-bottom: 15rem !important;
    }

    /* Fix mss-scoped-notification print styles */
    .mss-scoped-notification {
        background: #e5e5e5 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        min-height: 48px !important;
        padding: 0.5rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Fix label text wrapping */
    .mss-scoped-notification-label {
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    /* Completely hide the original link text content */
    .mss-scoped-notification-link-text a[href]:after {
        content: none !important;
    }

    /* Show "Learn More" text before the icon in print */
    .mss-scoped-notification-link-text {
        color: #0176d3 !important;
        font-family: var(--wes-g-font-family-sans) !important;
        font-size: var(--wes-g-font-size-1) !important;
        font-weight: 400 !important;
        white-space: nowrap !important;
        display: inline !important;
    }

    /* Ensure the link icon is visible in print */
    .mss-scoped-notification-link-icon {
        display: inline-block !important;
    }

    /* Hide any href content that might be showing */
    .mss-scoped-notification-link[href]::after {
        display: none !important;
        content: none !important;
    }

    /* Fix slds-popover transparency in print */
    .slds-popover {
        background: white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        border: 1px solid #dddbda !important;
        box-shadow: none !important;
    }

    .slds-popover__body {
        background: white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .slds-popover__header {
        background: white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Agentforce full background */
    .hov-outter-highlight-background {
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position-y: 100px !important;
        background-image: linear-gradient(
            to right bottom,
            #caedfe,
            #e3f4fe,
            #f0f8fe,
            #fcf7fe,
            #faf2ff,
            #f9f0fe,
            #f7ecfe
        ) !important;

        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .highlight-category-button {
        background-color: #fff !important;
    }

    .mss-highlight-stars-background {
        background-image: url(/resource/mssWesImages/illustrations/highlight-star.png) !important;
        background-repeat: no-repeat !important;

        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .highlight-category-button[data-variant='primary'] {
        background-color: var(--wes-g-color-palette-cloud-blue-95) !important;
        border: solid var(--wes-g-color-palette-blue-30) !important;
        color: var(--wes-g-color-palette-blue-20) !important;

        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .mss-highlight-card {
        background-color: rgba(226, 235, 248, 0.3) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .slds-icon {
        fill: black !important;
    }

    .mss-highlight-content-wrapper {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: 24px !important;
        width: max-content;
    }

    .mss-highlight-category-card-tooltip {
        display: flex !important;
        padding: 1rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        align-self: stretch !important;
        width: 100% !important;
        border-radius: 0.5rem !important;
        box-shadow:
            0px 0px 2px 0px rgba(24, 24, 24, 0.08),
            0px 2px 4px 1px rgba(24, 24, 24, 0.16) !important;
        max-width: unset !important;
        container-type: inline-size !important;
    }

    .highlight-score-section {
        border-radius: 8px !important;
        border: 1px solid var(--wes-g-color-palette-neutral-80) !important;
        box-shadow:
            0px 0px 2px 0px rgba(24, 24, 24, 0.08),
            0px 2px 4px 1px rgba(24, 24, 24, 0.16) !important;
        background-color: var(--wes-g-color-neutral-base-1, #ffffff) !important;
        color: var(--wes-g-color-palette-neutral-10) !important;
        padding: 16px !important;
        margin-top: 16px !important;

        width: auto !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mss-highlight-view-container {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 10rem !important;
        padding-bottom: 8rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .ht-foot {
        display: none !important;
    }

    .ht-footer {
        display: none !important;
    }
}
