/*
 * Legacy report list: layout-only corrections.
 * Keep the original visual design and business behaviour; do not restyle cards,
 * typography, colours, or report rows here.
 */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Do not let the persistent language control cover report actions while scrolling. */
.rg-language-switcher {
    position: absolute;
}

/* The six page-range choices need three full rows. */
#pageRange {
    height: auto !important;
    min-height: 122px;
    overflow: visible !important;
}

#pageRange .ckbox {
    margin-bottom: 8px;
}

/* Long English labels may wrap, but must stay inside their own filter cell. */
.rg-lang-en #reportType #css_1 .ckbox,
.rg-lang-en #professionType .industry-filter .ckbox,
.rg-lang-en #institutions .industry-filter .ckbox {
    min-width: 0;
}

.rg-lang-en #reportType #css_1 .ckbox > span:last-child,
.rg-lang-en #professionType .industry-filter .ckbox > span:last-child,
.rg-lang-en #institutions .industry-filter .ckbox > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

/*
 * A filter sidebar is useful on a wide monitor, but not in a narrow Safari
 * window, on a tablet, or on a phone.  At those widths the list receives the
 * full canvas and filtering remains available through search/date controls.
 */
@media (max-width: 1180px) {
    ._2K9sdQF63Lesr7U18-aXyk {
        display: none !important;
    }

    ._2gdAbRwnjCdKhnWWmzaUpg.container,
    ._2hTTMfplKQ0D4l3veAVVYv {
        width: 100% !important;
        max-width: 100% !important;
    }

    ._2hTTMfplKQ0D4l3veAVVYv {
        margin-left: 0 !important;
    }
}

@media (max-width: 760px) {
    .rg-language-switcher {
        top: 6px;
        right: 6px;
        transform: scale(.92);
        transform-origin: top right;
    }

    /* The floating service rail consumes too much of a phone viewport. */
    .right-kefu,
    #right-kefu,
    .rg-service-rail,
    .kefu-right,
    ._2i30yUvB-3YxplpGxfiD_4 {
        display: none !important;
    }

    ._2gdAbRwnjCdKhnWWmzaUpg.container {
        padding-right: 8px !important;
        padding-left: 8px !important;
    }
}
