/* Ranking List */
.view-topranks.dashboard-panel-body #sp-component h1{
    font-family: 'Inter', sans-serif !important;
    font-weight:800 !important;
    color: #3F3F3F !important;
    font-size:32px !important;
    margin-bottom: 20px !important;
    text-transform:capitalize !important;
}

p.top-ranking-notice {
    color: #3f3f3f;
    padding: 30px 0 100px 0;
}


.view-topranks .row0.top-first i {
    color:#7d5014 !important;
    margin-right: 8px;
    font-size: 20px;
}

.view-topranks .row1.top-second i {
    color:#474747 !important;
    margin-right: 8px;
    font-size: 16px;
}

.view-topranks .row0.top-third i {
    color:#381d00 !important;
    margin-right: 8px;
    font-size: 12px;
}

.view-topranks .table td{
    color: #3f3f3f !important;
    font-weight:600;
}

.view-topranks .table tr:nth-of-type(odd) td{
    color: #3f3f3f !important;
    font-weight:600;
}

.view-topranks .table>:not(caption)>*>*{
    border-bottom-width:0;
}

.view-topranks .table#toprankList tr.row0.top-first td{
    color:#7d5014 !important;
    font-weight:700;
}

.view-topranks .top-second td{
    color: #474747 !important;
    font-weight:700;
}

.view-topranks .table#toprankList tr.row0.top-third td{
    color: #381d00 !important;
    font-weight:700;
}

.view-topranks .row0.top-first {
    scale: 1.0;
    height: 70px;
    color:#7d5014 !important;
    transform:translateY(3px);
}

.view-topranks .row0.top-first:after{
    content:'';
    position:absolute;
    left:0;
    top:0;
    height: 70px;
    width:100%;
    background-image:linear-gradient(-45deg, #c79a59, #f4d180, #fcf3c3);
    z-index:-1;
    border-radius:0px;
}



.view-topranks .row1.top-second {
    scale: 1;
    height:70px;
    transform:translateY(2px);
}

.view-topranks .row1.top-second:after{
    content:'';
    position:absolute;
    left:0;
    top:0;
    height:70px;
    width:100%;
    background-image:linear-gradient(-45deg, #6e6e6e, #b1b1b1, #ffffff);
    z-index:-1;
    border-radius:0px;
}

.view-topranks .row0.top-third {
    scale: 1;
    height:70px;
}

.view-topranks .row0.top-third:after{
    content:'';
    position:absolute;
    left:0;
    top:0;
    height:70px;
    width:100%;
    background-image:linear-gradient(-45deg, #774005, #d69249, #ffd09d);
    z-index:-1;
    border-radius:0px;
}


.view-topranks .row0, .view-topranks .row1 {
    scale: 1;
    height: 60px;
    vertical-align:middle;
}

.view-topranks .row0:after, .view-topranks .row1:after{
    content:'';
    position:absolute;
    left:0;
    top:0;
    height: 60px;
    width:100%;
    background:rgb(255 255 255 / 30%);
    z-index:-1;
    border-radius:0px;
}

.view-topranks .row0 td:first-child, .view-topranks .row1 td:first-child{
    border-radius:10px 0 0 10px;
    text-align:center;
}

.view-topranks .row0 td:last-child, .view-topranks .row1 td:last-child{
    border-radius:0 10px 10px 0;
    text-align:center;
}

div#filter_year_chosen.chosen-container {
    width: 100% !important;
}

@media (max-width:767px){
    .view-topranks .row0.top-first i,
    .view-topranks .row1.top-second i,
    .view-topranks .row0.top-third i{
        margin-right: 2px;
        font-size: 14px;
    }
    .view-topranks .row0.top-first {
        height: 90px;
        transform:translateY(4px);
    }
    .view-topranks .row0.top-first:after{
        height: 90px;
    }
    .view-topranks .row1.top-second {
        height: 90px;
        transform:translateY(3px);
    }
    .view-topranks .row1.top-second:after{
        height: 90px;
    }
    .view-topranks .row0.top-third {
        height: 90px;
        transform:translateY(0px);
    }
    .view-topranks .row0.top-third:after{
        height: 90px;
    }
}

@media (max-width:425px){
    .view-topranks .row0.top-first i,
    .view-topranks .row1.top-second i,
    .view-topranks .row0.top-third i{
        width:100%;
    }
}


/* TESTING RANKING */
.view-topranks #list_limit.form-select {
    background-color: rgb(255 255 255 / 70%);
    border-color: rgb(255 255 255 / 70%);
}

.top3{
    padding-top:100px;
}

.top3 .item:hover {
    transform: none !important;
}

.top3 .one.item,
.top3 .two.item,
.top3 .three.item{
    margin: 0 !important;
    height: auto !important;
    padding: 0 !important;
    display:flex;
    flex-direction:column ;
    z-index: 3;
    position: relative;
}

.top3 .item .pic{
    order:0;
    background-position: top center !important;
    position: relative;
}
.top3 .item.one .pic:before,
.top3 .item.two .pic:before,
.top3 .item.three .pic:before{
    content:'';
    position:absolute;
    background-size:contain;
    background-repeat:no-repeat;
    z-index:3;
}
.top3 .item.one .pic:after,
.top3 .item.two .pic:after,
.top3 .item.three .pic:after{
    content:'';
    position:absolute;
    background-size:contain;
    background-repeat:no-repeat;
    z-index: -1;
}
.top3 .item .name{
    order:1;
    position:absolute;
    left:0;
    right:0;
    margin:auto;
    z-index:5;
    width: 160px;
    line-height:1;
    letter-spacing:0;
    height:28px;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size: 14px !important;
    color: #000000 !important;
    font-weight: 500;
}
.top3 .item .score{
    order:2;
    font-family:'Montserrat', sans-serif;
    font-weight:800;
    font-size:28px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity:1 !important;
    margin-bottom:10px;
}
.top3 .item .score:after{
    font-weight:400;
    font-size:12px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    transform:translateY(-3px);
}
.top3 .item .pos{
    order:3;
    margin-bottom:0 !important;
    border-radius:10px 10px 0 0;
    transform:translateY(3px);
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:32px !important;
}

.top3 .item.one{
    width:34% !important;
}
.top3 .item.one .pos{
    background-image:linear-gradient(0deg, rgb(199 154 89 / 30%), rgb(244 209 128 / 60%), #fcf3c3);
    color:rgb(125 80 20 / 50%);
    height:70px;
}
.top3 .item.one .score{
    background-image:linear-gradient(0deg, rgb(199 154 89 / 100%), rgb(244 209 128 / 100%), #fcf3c3);
}
.top3 .item.one .pic{
    height: 210px !important;
    width: 210px !important;
    margin-bottom:120px !important;
}
.top3 .item.one .pic:before{
    background-image:url(/images/001-sam/ranking/top1_frame_f03.png);
    width:400px;
    height:400px;
    top: -91px;
    left: -95px;
}
.top3 .item.one .pic:after{
    background-image:url(/images/001-sam/ranking/top1_frame_b03.png);
    width:400px;
    height:400px;
    top: -91px;
    left: -95px;
}
.top3 .item.one .name{
    top: 184px;
}

.top3 .item.two{
    width:calc(33% - 10px) !important;
}
.top3 .item.two .pos{
    background-image:linear-gradient(-3deg, rgb(110 110 110 / 40%), rgb(177 177 177 / 70%), #ffffff);
    color:rgb(71 71 71 / 50%);
    height:60px;
}
.top3 .item.two .score{
    background-image:linear-gradient(-3deg, rgb(110 110 110 / 100%), rgb(177 177 177 / 100%), #ffffff);
}
.top3 .item.two .pic{
    height:160px !important;
    width:160px !important;
    margin-bottom:60px !important;
}
.top3 .item.two .pic:before{
    background-image:url(/images/001-sam/ranking/top2_frame_f03.png);
    width:310px;
    height:310px;
    top:-75px;
    left:-75px;
}
.top3 .item.two .pic:after{
    background-image:url(/images/001-sam/ranking/top2_frame_b02.png);
    width:310px;
    height:310px;
    top:-75px;
    left:-75px;
}
.top3 .item.two .name{
    top: 140px;
}

.top3 .item.three{
    width:calc(33% - 10px) !important;
}
.top3 .item.three .pos{
    background-image:linear-gradient(3deg, rgb(119 64 5 / 40%), rgb(214 146 73 / 70%), #ffd09d);
    color:rgb(56 29 0 / 50%);
    height:50px;
}
.top3 .item.three .score{
    background-image:linear-gradient(3deg, rgb(119 64 5 / 100%), rgb(214 146 73 / 100%), #ffd09d);
}
.top3 .item.three .pic{
    height:160px !important;
    width:160px !important;
    margin-bottom:40px !important;
}
.top3 .item.three .pic:before{
    background-image:url(/images/001-sam/ranking/top3_frame_f02.png);
    width:310px;
    height:310px;
    top: -74px;
    left: -76px;
}
.top3 .item.three .pic:after{
    background-image:url(/images/001-sam/ranking/top3_frame_b02.png);
    width:310px;
    height:310px;
    top:-75px;
    left:-75px;
}
.top3 .item.three .name{
    top: 140px;
}

@media (max-width:1400px){
    .top3 .item .name{
        font-size: 12px !important;
    }
    .top3 .item.one .pic{
        height:185px !important;
        width:185px !important;
        margin-bottom:120px !important;
    }
    .top3 .item.one .pic:before{
        width:360px;
        height:360px;
        top: -84px;
        left: -88px;
    }
    .top3 .item.one .pic:after{
        width:360px;
        height:360px;
        top:-85px;
        left:-88px;
    }
    .top3 .item.one .name{
        top: 164px;
    }

    .top3 .item.two .pic{
        height:145px !important;
        width:145px !important;
        margin-bottom:60px !important;
    }
    .top3 .item.two .pic:before{
        width:280px;
        height:280px;
        top:-68px;
        left:-68px;
    }
    .top3 .item.two .pic:after{
        width:280px;
        height:280px;
        top:-68px;
        left:-68px;
    }
    .top3 .item.two .name{
        top: 125px;
    }

    .top3 .item.three .pic{
        height: 145px !important;
        width: 145px !important;
        margin-bottom:50px !important;
    }
    .top3 .item.three .pic:before{
        width:280px;
        height:280px;
        top: -67px;
        left: -68px;
    }
    .top3 .item.three .pic:after{
        width:280px;
        height:280px;
        top: -67px;
        left: -68px;
    }
    .top3 .item.three .name{
        top: 125px;
    }
}

@media (max-width:1200px){
    .top3{
        padding-top:80px;
    }
    .top3 .item .score{
        font-size:24px;
    }
    .top3 .item .name{
        font-size: 9px !important;
        width:100px;
    }
    .top3 .item.one .pic{
        height: 145px !important;
        width: 145px !important;
        margin-bottom:90px !important;
    }
    .top3 .item.one .pic:before{
        width:280px;
        height:280px;
        top: -65px;
        left: -68px;
    }
    .top3 .item.one .pic:after{
        width:280px;
        height:280px;
        top: -65px;
        left: -68px;
    }
    .top3 .item.one .name{
        top: 125px;
    }

    .top3 .item.two .pic{
        height: 115px !important;
        width: 115px !important;
        margin-bottom:40px !important;
    }
    .top3 .item.two .pic:before{
        width:220px;
        height:220px;
        top: -53px;
        left: -53px;
    }
    .top3 .item.two .pic:after{
        width:220px;
        height:220px;
        top: -53px;
        left: -53px;
    }
    .top3 .item.two .name{
        top: 95px;
    }

    .top3 .item.three .pic{
        height: 115px !important;
        width: 115px !important;
        margin-bottom:40px !important;
    }
    .top3 .item.three .pic:before{
        width:220px;
        height:220px;
        top: -53px;
        left: -53px;
    }
    .top3 .item.three .pic:after{
        width:220px;
        height:220px;
        top: -53px;
        left: -53px;
    }
    .top3 .item.three .name{
        top: 95px;
    }
}

@media (max-width:767px){
    .top3{
        padding-top:60px;
    }
    .top3 .item .score{
        font-weight:800;
        margin:auto;
    }
    .top3 .item.one .score{
        font-size:18px;
        width:115px;
    }
    .top3 .item.two .score{
        font-size:16px;
        width:100px;
    }
    .top3 .item.three .score{
        font-size:16px;
        width:100px;
    }
    .top3 .item .name{
        font-size: 9px !important;
        width:100px;
    }
    .top3 .item.one .pic{
        height: 120px !important;
        width: 120px !important;
        margin-bottom: 185px !important;
    }
    .top3 .item.one .pic:before{
        width:230px;
        height:230px;
        top: -53px;
        left: -55px;
    }
    .top3 .item.one .pic:after{
        width:230px;
        height:230px;
        top: -53px;
        left: -55px;
    }
    .top3 .item.one .name{
        top: 102px;
    }

    .top3 .item.two .pic{
        height: 100px !important;
        width: 100px !important;
        margin-bottom:40px !important;
    }
    .top3 .item.two .pic:before{
        width: 190px;
        height: 190px;
        top:-45px;
        left:-45px;
    }
    .top3 .item.two .pic:after{
        width: 190px;
        height: 190px;
        top:-45px;
        left:-45px;
    }
    .top3 .item.two .name{
        top: 81px;
    }

    .top3 .item.three .pic{
        height:100px !important;
        width:100px !important;
        margin-bottom:40px !important;
    }
    .top3 .item.three .pic:before{
        width: 190px;
        height: 190px;
        top:-45px;
        left:-45px;
    }
    .top3 .item.three .pic:after{
        width: 190px;
        height: 190px;
        top:-45px;
        left:-45px;
    }
    .top3 .item.three .name{
        top: 81px;
        !i;!;
    }
    .top3 .item .pos{
        transform:translateY(4px);
    }
}

@media (max-width:425px){
    .top3 .item.two .pic{
        margin-left:15px !important;
    }
    .top3 .item.two .name{
        top: 81px;
        transform: translateX(14px);
    }
    .top3 .item.three .pic{
        margin-right:15px !important;
    }
    .top3 .item.three .name{
        top: 78px;
        transform: translateX(-1px);
    }
}

@media (max-width:767px){
    table#toprankList {
        table-layout: fixed;
        width: 100%;
        overflow:none;
    }
    
    table#toprankList  td {
        width: 100%; font-size:11px;
    }
    
    table#toprankList  td:nth-child(1) {
        width: 10%;
    }
    table#toprankList  td:nth-child(2) {
        width: 50%;
    }
    table#toprankList  td:nth-child(3) {
        width: 30%;
    }
    table#toprankList  td:nth-child(4) {
        width: 20%;
    }

    .view-topranks-month table#toprankList  td:first-child {
        width: 10%;
    }
    .view-topranks-month table#toprankList  td:nth-child(2) {
        width: 40%;
    }
    .view-topranks-month table#toprankList  td:nth-child(3) {
        width: 30%;
    }
    .view-topranks-month table#toprankList  td:nth-child(4) {
        width: 10%;
    }
    .view-topranks-month table#toprankList  td:last-child {
        width: 10%;
    }
    
    table#toprankList  .pagination {
        display: flex;
        justify-content: center;
    }
    
    table#toprankList  tfoot {
        transform: scale(0.8);
        transform-origin: center;
        margin: auto;
    }
}

@media (max-width:450px){
    table#toprankList  td:first-child {
        width: 10%;
    }
    table#toprankList  td:nth-child(2) {
        width: 40%;
    }
    table#toprankList  td:nth-child(3) {
        width: 35%;
    }
    table#toprankList  td:last-child {
        width: 15%;
    }
    .view-topranks-month table#toprankList  td:first-child {
        width: 6%;
    }
    .view-topranks-month table#toprankList  td:nth-child(2) {
        width: 36%;
    }
    .view-topranks-month table#toprankList  td:nth-child(3) {
        width: 28%;
    }
    .view-topranks-month table#toprankList  td:nth-child(4) {
        width: 18%;
    }
    .view-topranks-month table#toprankList  td:last-child {
        width: 12%;
    }
}


/* Leader Progress */
.progress-container-main.leader-progress-div-2 {
    background: linear-gradient(325deg, #bf9153, #f4cf7b, #fdf8cc);
    border-radius: 10px;
    box-shadow: 0 15px 25px rgb(4 7 23 / 50%);
    height: 100%;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    font-family: "Montserrat", sans-serif;
}

.progress-container-main.leader-progress-div-2:before {
    content: "";
    position: absolute;
    background: url('/images/001-sam/dashboard/dashboard-element.png');
    width: 100px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    right: 0;
    top: -10px;
}

.progress-container-main.leader-progress-div-1:before {
    content: "";
    position: absolute;
    /*background-image: url('/images/001-sam/dashboard/dashboard-element-001.png');*/
    width: 600px;
    height: 150px;
    bottom: 0;
    right: 0 !important;
    background-position: 0% 0%;
    background-size: contain;
    background-repeat: no-repeat;
    transform:translateY(16px);
}

@media (max-width:1200px){
    .progress-container-main.leader-progress-div-1:before {
        width: 450px;
        height: 120px;
    }
}

@media (max-width:767px){
    .progress-container-main.leader-progress-div-1:before {
        width: 350px;
        height: 100px;
    }
}

@media (min-width:575px) and (max-width:767px){
    .progress-container-main.leader-progress-div-2:before{
        display:none;
    }
}

.leader-progress-div-2 .progress-container{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.leader-progress-div-2 .progress-container div{
    color: #191946;
    text-transform: uppercase;
    font-size: 40px;
    font-weight: 900;
    text-align: center;
}

.leader-progress-div-2 .progress-container div:first-child{
    font-size: 16px;
    font-weight: 700;
    padding-bottom:15px;
}

.leader-progress-div-2 .progress-container div:last-child{
    font-size: 14px;
    font-weight: 700;
}

.leader-progress-div-1 .progress-container h3 {
    text-transform: uppercase;
    font-size: 24px;
    margin-bottom: 15px;
    display: block;
    font-weight: 700;
    color: #e1d78e;
    font-family: 'Montserrat', sans-serif;
}

.leader-progress-commission {
    margin-bottom: 10px;
}

.leader-progress-commission .progress-bar{
    margin: 3px 0;
}

.leader-progress-downline .progress-bar{
    margin:8px 0;
}

.leader-progress-div-1 .leader_target {
    text-align: right;
    font-family: 'Montserrat', sans-serif;
}

.leader-progress-commission div:first-child,
.leader-progress-downline div:first-child{
    text-transform: capitalize;
    font-family: 'inter', sans-serif;
    font-size: 12px !important;
    color: #333 !important;
    font-weight:700;
}
.leader-progress-commission .leader_target,
.leader-progress-downline .leader_target{
    font-family: 'inter', sans-serif;
    font-size: 12px !important;
    color: #333 !important;
    font-weight:700;
    text-align: end;
}

.leader-progress-not-completed i{
    color: rgb(225 215 142 / 30%) !important;
}

.leader-progress-completed i{
    color: rgb(225 215 142 / 100%) !important;
}

.leader-progress-commission div:first-child.progress-details,
.leader-progress-downline div:first-child.progress-details{
    color: #ffffff !important;
    font-weight: 400;
    line-height: 16px;
    font-size: 11px !important;
}

p.leader-progress_message-2 {
    margin-bottom: 0;
    padding: 0 30px 30px 30px;
}

h5.leader-progress_message {
    padding: 30px 30px 0px 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #3f3f3f;
}

@media (max-width: 768px) {
    .leader-progress-div-2  .progress-container {
        width: 90% !important;
        padding: 0px!important;
    }
    .leader-progress-div-1 .progress-container {
        width: 90% !important;
        padding: 5px 0px !important;
    }
    p.leader-progress_message-2 {
        margin-bottom: 0;
        padding: 0 15px 20px 15px;
    }
    
    h5.leader-progress_message {
        padding: 20px 15px 0px 15px;
        margin-bottom: 15px;
        text-transform: uppercase;
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
    }
}

@media (max-width: 575px) {
    .leader-progress-div-1 {
        margin-bottom:30px;
    }
}


/* Pagination */
.view-topranks .pagination .page-link,
.view-commissions .pagination .page-link,
.view-awardrecords .pagination .page-link{
    background-color: transparent;
    color: rgb(0 0 0 / 50%);
    border: none;
}

.view-topranks ul.pagination.ms-0.mb-4,
.view-commissions ul.pagination.ms-0.mb-4,
.view-awardrecords ul.pagination.ms-0.mb-4{
    margin: 30px 0 !important;
}

.view-topranks .pagination>.active>a, .view-topranks .pagination>.active>span,
.view-commissions .pagination>.active>a, .view-commissions .pagination>.active>span,
.view-awardrecords .pagination>.active>a, .view-awardrecords .pagination>.active>span{
    color: #000000;
    background: rgb(255 255 255 / 10%) !important;
    border-radius: 5px;
}

.view-topranks .pagination>li>a, .view-topranks .pagination>li>span,
.view-commissions .pagination>li>a, .view-commissions .pagination>li>span,
.view-awardrecords .pagination>li>a, .view-awardrecords .pagination>li>span{
    transition:0.5s;
}

.view-topranks .pagination>li>a:hover, .view-top ranks .pagination>li>a:focus, 
.view-topranks .pagination>li>span:hover, .view-topranks .pagination>li>span:focus,
.view-commissions .pagination>li>a:hover, .view-commissions .pagination>li>a:focus, 
.view-awardrecords .pagination>li>span:hover, .view-awardrecords .pagination>li>span:focus{
    color: rgb(0 0 0);
    background: rgb(255 255 255 / 10%) !important;
    border-radius: 5px;
}

.view-topranks .pagination>.active>a:hover, .view-topranks .pagination>.active>a:focus, 
.view-topranks .pagination>.active>span:hover, .view-topranks .pagination>.active>span:focus,
.view-commissions .pagination>.active>a:hover, .view-commissions .pagination>.active>a:focus, 
.view-awardrecords .pagination>.active>span:hover, .view-awardrecords .pagination>.active>span:focus{
    background-color: rgb(255 255 255 / 20%) !important;
}

/* END OF RANKING */