.fundraisers {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    padding: 48px;
    padding-bottom: 0;
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/top_circle.png);
    background-size: 100vw;
    background-repeat: no-repeat;
}

.admin .main-container {
    padding-top: 0;
}
/* 
.modal .modal-header,
.btn-secondary {
    background-color: rgb(78, 71, 234);
} */

.fundraisers .list .tblContainer {
    max-height: none !important;
    border-top-right-radius: 8px;
}
.fundraisers .headerContainer {
    display: flex;
    flex-direction: column;
}
.fundraisers .setup-button {
    /* background-color is set dynamically via JavaScript using mainColor */
    cursor: pointer;
    border-radius: 8px;
    padding: 10px 20px;
    color: white;
    border: 2px solid white;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fundraisers .headerContainer .headerTop {
    display: flex;
    width: 100%;
    justify-content: flex-end;
}
.fundraisers .headerTop {
    margin-top: 30px;
}
.fundraisers .headerContainer .headerBottom {
    display: flex;
}
.fundraisers .inputContainer {
    margin: 0;
    width: fit-content;
}

.fundraisers .inputContainer .input-title {
    display: none;
}

.fundraisers .gvinput .inputContainer select {
    font-size: 16px;
    letter-spacing: 0.16px;
    height: auto;
    padding: 12px;
    padding-right: 35px;
    width: 100%;
    background-image: none;
}
select {
    border-radius: 4px;
    border: none;
    background: #d9e0fa;
    display: flex;
    height: 36px;
    padding: 2px 10px;
    justify-content: center;
    align-items: center;
    font-family: "Metropolis Regular";
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.18px;
    color: #4b4a4a;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 35px;
}
.fundraisers .headerContainer .headerBottom .headerLeft {
    display: flex;
    width: 100%;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 16px;
    padding: 24px;
    min-height: 300px;
    margin-bottom: 30px;
}

.fundraisers .headerContainer .headerBottom .headerRight {
    margin-right: 35px;
}

.fundraisers .leaderboard .nameAndIcon {
    display: flex;
    align-items: center;
}

.fundraisers .leaderboard .nameAndIcon.clickeable {
    cursor: pointer;
}

.fundraisers .leaderboard .nameAndIcon .badgeContainer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
}

.fundraisers .leaderboard .nameAndIcon .badgeContainer .badge {
    display: none;
}

.fundraisers .leaderboard .nameAndIcon .badgeContainer .badge.show {
    display: block;
    width: 49px;
    height: 49px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border-radius: 50%;
}

.fundraisers .leaderboard .support {
    font-family: "Metropolis Medium";
    font-size: 18px;
    letter-spacing: 0.2px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    background-color: var(--mainColor, #4e47ea);
    border: 1px solid white;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
}

.fundraisers .leaderboard .nameAndIcon .teamNameContainer {
    width: 100%;
}

.fundraisers .leaderboard .nameAndIcon .teamName,
.fundraisers .leaderboard .rank,
.fundraisers .leaderboard .metric {
    font-family: "Metropolis Regular";
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.18px;
    margin-left: 24px;
    color: #4b4a4a;
}

.fundraisers .leaderboard .nameAndIcon .teamName .entityName {
    font-family: "Metropolis Semi Bold";
}

.fundraisers .leaderboard .nameAndIcon .teamName .orgName {
    word-break: break-word;
}
.fundraisers .leaderboard .rank,
.fundraisers .leaderboard .metric {
    color: #333;
}

.fundraisers .leaderboard .rank {
    margin-left: 17px;
}

.fundraisers .leaderboard .metric {
    margin-left: 0;
    margin-right: 10px;
}

.fundraisers .leaderboard .list .table th:nth-last-child(1) {
    font-family: "Metropolis Semi Bold";
    font-size: 18px;
    line-height: 16px;
    letter-spacing: 0.18px;
    text-align: center;
}
.fundraisers .leaderboard .list .table th {
    padding: 24px 12px;
}
.fundraisers .leaderboard .list .table th:nth-child(1),
.fundraisers .leaderboard .list .table td:nth-child(1) {
    width: 70px;
    padding: 24px 12px;
}

.fundraisers .leaderboard .list .table .metrics {
    display: flex;
    justify-content: flex-end;
    padding: 26px;
    font-family: "Metropolis Regular";
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.18px;
    padding-right: 50px;
}

.fundraisers .headerContainer .headerBottom .headerLeft .fundraiserImage {
    min-width: 160px;
    min-height: 160px;
    border-radius: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    align-self: center;
    margin-right: 24px;
    cursor: pointer;
}

.fundraisers .headerContainer .textContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fundraisers .headerContainer .headerBottom .headerLeft.textContainer {
    flex-grow: 1;
    padding-left: 10px;
    width: 100%;
}

.fundraisers .headerContainer .headerBottom .headerLeft .textContainer .title {
    font-family: "Metropolis Bold";
    font-size: 28px;
    letter-spacing: 0.28px;
    color: white;
    margin-bottom: 8px;
    margin-top: auto;
}

.fundraisers .headerContainer .headerBottom .headerLeft .textContainer .description,
.fundraisers .headerContainer .headerBottom .headerLeft .textContainer .description span {
    font-family: "Metropolis Regular";
    font-size: 20px;
    line-height: 20px;
    letter-spacing: 0.2px;
    margin-bottom: 20px;
    color: white;
}

.fundraisers .headerContainer .headerBottom .headerLeft .textContainer .description span {
    margin-inline: 5px;
    font-family: "Metropolis Bold";
}

.fundraisers .headerContainer .headerBottom .headerLeft .textContainer .description.bold,
.fundraisers .headerContainer .headerBottom .headerLeft .textContainer .description.bold span {
    font-family: "Metropolis Bold";
    font-size: 24px;
    line-height: 20px;
    letter-spacing: 0.24px;
    margin-bottom: 10px;
    color: white;
}

.fundraisers .headerContainer .headerBottom .headerLeft .textContainer .iconAndTextWrapper {
    display: flex;
    margin-top: auto;
}
.fundraisers .totalsSmallScreen {
    overflow-y: scroll;
}
.fundraisers .headerContainer .headerBottom .headerLeft .buttonsSmallScreen,
.fundraisers .headerContainer .headerBottom .headerLeft .totalsSmallScreen {
    display: none;
}

.fundraisers .headerContainer .headerBottom .headerLeft .buttonsSmallScreen.show {
    display: flex;
    width: 100%;
}

.fundraisers .headerContainer .headerBottom .headerLeft .totalsSmallScreen.show {
    display: flex;
}

.fundraisers .rankingAndFilterContainer {
    display: flex;
    position: absolute;
    left: 50%;
    justify-content: end;
    width: 47%;
    align-items: center;
    height: 36px;
}

.fundraisers .filterWrapper {
    position: absolute;
    right: 0;
    top: 0;
}

.fundraisers .rankingAndFilterContainer .filterWrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 20px;
    background-color: white;
    width: min-content;
    border-radius: 4px;
    position: relative;
    padding-right: 15px;
}

.fundraisers .rankingAndFilterContainer .filterWrapper .filter {
    background-color: white;
    border: 1px solid white;
    border-radius: 5px;
}

.fundraisers .filterWrapper .arrowIcon {
    position: absolute;
    right: 10px;
    top: calc(50%);
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #4e47ea;
    pointer-events: none;
}

.fundraisers .rankingAndFilterContainer .filterWrapper .filter .gvinput .inputContainer {
    margin: 0;
}

.fundraisers .rankingAndFilterContainer .filterWrapper .filter .gvinput .inputContainer select {
    font-family: "Metropolis Bold";
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.18px;
    color: rgba(255, 255, 255, 0.87);
    background-color: white;
    border: none;
    text-align: center;
    padding-inline: 5px 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.fundraisers
    .rankingAndFilterContainer
    .filterWrapper
    .filter
    .gvinput
    .inputContainer
    select:focus {
    outline: none;
}

.fundraisers .rankingAndFilterContainer .filterWrapper .filter .gvinput .input-title {
    display: none;
}

.fundraisers
    .headerContainer
    .headerBottom
    .headerLeft
    .textContainer
    .iconAndTextWrapper
    .iconAndText,
.fundraisers .iconAndText {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-block: 15px;
}

.fundraisers .iconAndText.hide,
.fundraisers
    .headerContainer
    .headerBottom
    .headerLeft
    .textContainer
    .iconAndTextWrapper
    .iconAndText.hide,
.fundraisers .headerContainer .headerTop.hide,
.fundraisers .rankingAndFilterContainer .iconAndText.hide,
.fundraisers .tabsSkeleton.hide,
.fundraisers .hide,
.fundraisers .leaderboardSkeleton.hide,
.fundraisers .leaderboard.hide,
.fundraisers .filterWrapper.hide {
    display: none;
}

.fundraisers
    .headerContainer
    .headerBottom
    .headerLeft
    .textContainer
    .iconAndTextWrapper
    .iconAndText {
    justify-content: start;
    margin-top: 8px;
    max-width: fit-content;
    margin-right: 42px;
}
.popupmessage .modal-body {
    padding: 16px;
    align-content: flex-start;
}

.popupmessage .modalContainer .title {
    font-family: "Metropolis Bold";
    font-size: 20px;
    line-height: 16px;
    letter-spacing: 0.2px;
    text-align: left;
    width: 100%;
    color: white;
    padding-block: 8px;
    margin-bottom: 0px;
}

.popupmessage .modalContainer .info {
    font-family: "Metropolis Medium";
    font-size: 18px;
    line-height: 21px;
    letter-spacing: 0.18px;
    color: #333;
    text-align: justify;
    padding-bottom: 0 10px;
}

#_fundraiserRules {
    cursor: pointer;
}

.fundraisers
    .headerContainer
    .headerBottom
    .headerLeft
    .textContainer
    .iconAndTextWrapper
    .iconAndText
    .text {
    font-family: "Metropolis Regular";
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.18px;
    color: white;
    padding-left: 10px;
}
.fundraisers .iconAndText .text {
    font-family: "Metropolis Bold";
    font-size: 20px;
    line-height: 16px;
    letter-spacing: 0.2px;
    color: white;
    padding-left: 10px;
}
.fundraisers .list .table th {
    color: #fff;
}

.fundraisers .tabsContainer {
    display: flex;
    justify-content: left;
    margin-bottom: 25px;
    border-bottom: 3px solid #4e47ea;
}

.fundraisers .tabsContainer .tabs,
.fundraisers .tabsContainer .tabs .tab {
    width: 100%;
}

.fundraisers .tabsContainer.hide {
    display: none;
}

.fundraisers
    .headerContainer
    .headerBottom
    .headerLeft
    .textContainer
    .iconAndTextWrapper
    .iconAndText
    .dateIcon,
.fundraisers
    .headerContainer
    .headerBottom
    .headerLeft
    .textContainer
    .iconAndTextWrapper
    .iconAndText
    .rulesIcon,
.fundraisers .iconAndText .rankIcon {
    width: 24px;
    height: 24px;
    background-size: cover;
    background-repeat: no-repeat;
}

.fundraisers
    .headerContainer
    .headerBottom
    .headerLeft
    .textContainer
    .iconAndTextWrapper
    .iconAndText
    .dateIcon {
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/white_calendar.svg);
}
.popupmessage .modal-header {
    background-color: #4e47ea !important;
}

.fundraisers .list .searchInput {
    color: #4b4a4a;
}

.fundraisers .list .searchContainer {
    border: 2px solid #d9e0fa;
    background-color: white;
}

.fundraisers .list ::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #333;
    opacity: 1; /* Firefox */
}
.fundraisers .list :-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #333;
}
.fundraisers .list ::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #333;
}

.fundraisers .list .searchIcon {
    background-image: url(http://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/search_icon_black_rally_for_the_y.png);
    background-size: contain;
    background-repeat: no-repeat;
    height: 24px;
    width: 28px;
    margin-right: 5px;
}

.fundraisers
    .headerContainer
    .headerBottom
    .headerLeft
    .textContainer
    .iconAndTextWrapper
    .iconAndText
    .rulesIcon {
    width: 22px;
    height: 18px;
    background-size: contain;
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/rules.png);
}

.fundraisers .iconAndText .rankIcon {
    width: 32px;
    height: 32px;
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/rank_icon_blue_v1.svg);
}

.table th {
    padding: 1.3rem;
}

.fundraisers .logo {
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/logo_bluegoji_rider_profile_v1.png);
    min-width: 164px;
    min-height: 31px;
    background-size: 164px 31px;
    background-repeat: no-repeat;
    background-position: center;
    position: fixed;
    bottom: 24px;
    align-self: flex-end;
}

/* mobile */
@media (max-width: 767px) {
    .fundraisers {
        padding-inline: 18px;
    }
    .fundraiserTotals {
        padding-inline: 0px;
    }
    .fundraisers .leaderboard.top {
        margin-top: 30px;
    }
    .fundraisers .leaderboard .list .table th:nth-child(1),
    .fundraisers .leaderboard .list .table td:nth-child(1) {
        width: 7%;
        max-width: 7%;
        padding: 24px 0;
        text-align: center;
    }
    .fundraisers .leaderboard .list .table td:nth-child(2) {
        width: 79%;
        /* max-width: 83%; */
    }
    /* .fundraisers .leaderboard .list .table td:nth-child(3) {
        width: 4%;
    }
    .fundraisers .leaderboard .list .table td:nth-child(4) {
        width: 10%;
    } */

    .fundraisers .fundraiserImage {
        margin-bottom: 30px;
        width: 100px;
        height: 100px;
    }

    .fundraisers.noLogin {
        padding: 15px;
    }
    .fundraisers .setup-button {
        margin-left: 0;
    }
    .fundraisers .iconAndTextWrapper {
        flex-direction: column;
    }

    .fundraisers .tabsContainer {
        margin-block: 0 15px;
    }

    .fundraisers .headerContainer .headerBottom .headerLeft .textContainer .title {
        font-size: 24px;
        line-height: 20px;
        letter-spacing: 0.27px;
    }
    .fundraisers .headerContainer .headerBottom .headerLeft .textContainer .description {
        font-size: 17px;
        letter-spacing: 0.17px;
    }
    .fundraisers .headerContainer .headerBottom .headerLeft .fundraiserImage {
        min-width: 120px;
        min-height: 120px;
        margin-right: 10px;
    }
    .fundraisers
        .headerContainer
        .headerBottom
        .headerLeft
        .textContainer
        .iconAndTextWrapper
        .iconAndText {
        text-wrap: nowrap;
        margin-right: 20px;
    }
    .fundraisers
        .headerContainer
        .headerBottom
        .headerLeft
        .textContainer
        .iconAndTextWrapper
        .iconAndText
        .text {
        font-family: "Metropolis Regular";
        font-size: 17px;
        letter-spacing: 0.17px;
        padding-left: 5px;
    }
    .fundraisers .leaderboard .list .searchContainer.short {
        width: 100%;
    }

    .fundraisers .rankingAndFilterContainer .filterWrapper .filter .gvinput .inputContainer select {
        position: absolute;
        top: -11px;
        width: 24px;
        background-color: transparent;
        color: rgba(255, 255, 255, 0.87);
        padding-inline: 0px;
    }
    .fundraisers .rankingAndFilterContainer {
        left: 90%;
        width: 0;
    }
    .fundraisers .rankingAndFilterContainer .filterWrapper.show {
        margin-left: 0;
        padding-right: 0;
    }
    .fundraisers .rankingAndFilterContainer .filterWrapper .filter {
        border: 0;
    }
    .fundraisers .rankingAndFilterContainer .filterWrapper .filter .gvinput .inputContainer {
        width: 0;
    }
    .fundraisers .headerContainer .headerBottom .headerLeft {
        display: flex;
        width: 100%;
        margin-right: 0;
        padding-inline: 10px;
        flex-direction: column;
    }
    .fundraisers .leaderboard .support {
        border-radius: 8px;
        cursor: pointer;
        background-color: transparent;
        border: 1px solid white;
        display: flex;
        align-items: center;
        justify-content: center;
        background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/support_icon_blue.svg);
        background-position: center;
        background-repeat: no-repeat;
        height: 32px;
        width: 36px;
        background-size: 18px 20px;
        margin-left: 23%;
        font-size: 0;
    }
    .fundraisers .leaderboard .nameAndIcon .teamName {
        margin-left: 8px;
        /* overflow: hidden;
        text-overflow: ellipsis; */
        /* white-space: nowrap; */
    }
    .fundraisers .leaderboard .rank {
        margin-left: 0;
    }

    .fundraisers .leaderboard .list .table .metrics {
        padding: 26px 0px;
        padding-right: 25px;
    }
    .fundraisers .leaderboard .metric {
        margin-right: 0;
    }
    .fundraisers .leaderboard .list .table td {
        max-width: 150px;
        overflow: hidden;
    }
    .selectList .list-image .thumbnail {
        width: 30px;
        height: 30px;
    }
    .selectList .list-item {
        font-family: "Metropolis Bold";
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0.14px;
        width: 90%;
    }
    .selectList .checkContainer {
        width: 30px;
        height: 30px;
        background-size: 30px;
    }
    .errormessage .message {
        font-size: 13px;
        letter-spacing: 0.1px;
    }
    .tab {
        height: 45px;
    }
    .tab .content {
        font-size: 16px;
        padding-inline: 5px;
    }

    /* DARK MODE mobile */
    .dark .fundraisers .leaderboard .support {
        background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/support_icon_white.svg);
        &::after {
            content: "";
        }
    }
    .dark .fundraisers .leaderboard .support.highlight {
        background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/support_icon_blue.svg);
    }
    .dark .fundraisers .rankingAndFilterContainer .filterWrapper .arrowIcon {
        position: absolute;
        left: 0px;
        width: 24px;
        height: 24px;
        background-image: url(http://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/filter_icon_white_BO_v1.svg);
        background-size: 24px;
    }
    .dark
        .fundraisers
        .rankingAndFilterContainer
        .filterWrapper
        .filter
        .gvinput
        .inputContainer
        select {
        color: #031821;
    }
}

/* iPad */
@media (min-width: 768px) and (max-width: 1025px) {
    .fundraisers {
        padding-inline: 18px;
    }
    .admin .main-container {
        padding-left: 0;
        padding-inline: 0px;
    }
    .fundraisers .tabsContainer {
        margin-inline: 0;
        margin-block: 25px 20px;
    }
    .fundraisers .leaderboard {
        margin-inline: 0;
    }
    .fundraisers .rankingAndFilterContainer {
        width: 46%;
    }
    .fundraisers .headerContainer .headerBottom .headerLeft {
        margin-right: 0;
        width: 100%;
    }
    .fundraisers .headerContainer .headerBottom .headerLeft .fundraiserImage {
        min-width: 120px;
        min-height: 120px;
    }
    .fundraisers .headerContainer .headerBottom .headerLeft .textContainer .title {
        font-size: 24px;
        letter-spacing: 0.24px;
    }
    .fundraisers .headerContainer .headerBottom .headerLeft .textContainer .description {
        font-size: 18px;
        letter-spacing: 0.18px;
    }
    .fundraisers .rankingAndFilterContainer .filterWrapper.show {
        margin-left: 45px;
    }
    .fundraisers .leaderboard .list .table th:nth-last-child(1) {
        text-align: end;
    }

    .fundraisers .leaderboard .support {
        border-radius: 8px;
        cursor: pointer;
        background-color: transparent;
        border: 1px solid white;
        display: flex;
        align-items: center;
        justify-content: center;
        background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/support_icon_blue.svg);
        background-position: center;
        background-repeat: no-repeat;
        height: 45px;
        width: 50px;
        background-size: 32px 34px;
        color: transparent;
        &::after {
            content: "";
        }
    }

    /* DARK MODE iPad */
    .dark .fundraisers .leaderboard .support {
        background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/support_icon_white.svg);
    }
    .dark .fundraisers .leaderboard .support.highlight {
        background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/support_icon_blue.svg);
    }
}

.fundraisers .row {
    display: flex;
    flex-direction: row;
    gap: 24px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 5rem;
}

.fundraisers .column {
    display: flex;
    flex-direction: column;
    position: relative;
}

.fundraisers .column:first-child {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.fundraisers .column:last-child {
    width: 300px; /* Or your desired width for the right column */
}

.fundraisers .iconWrapper {
    width: 36px;
    height: 36px;
    /* background-color is set dynamically via JavaScript using mainColor */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1024px) {
    .fundraisers .row {
        flex-direction: column-reverse;
        gap: 16px;
    }

    .fundraisers .column:last-child {
        width: 100%;
    }
}

/* Add this media query */
@media (max-width: 767px) {
    .fundraisers .row {
        flex-direction: column-reverse;
    }

    .fundraisers .row .column.top {
        margin-top: 10px;
    }

    .fundraisers .column {
        width: 100%;
    }

    .fundraisers .filterWrapper {
        position: relative;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
        width: fit-content;
        margin-inline: auto;
    }

    .fundraisers .filterWrapper.top {
        top: -30px;
    }
}
