.tabs {
    width: 100%;
    display: inline-block;
    margin-top: 10px;
}


/*----- Tab Links -----*/

.tab-links:after {
    display: block;
    clear: both;
    content: "";
}

.tab-links li {
    margin: 0;
    float: left;
    list-style: none;
}

.tab-links a {
    padding: 8px 0;
    background: #007955!important;
    display: inline-block;
    border-radius: 2px 2px 0px 0px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    transition: all linear 0.3s;
    width: 130px;
    text-align: center;
    text-decoration: none;
    margin: 5px 5px 5px 0;
}

.tab-links a:hover {
    background: #007955!important;
    margin: 5px 5px 5px 0;
    padding: 8px 0;
    color: #fff;
}

li.active a,
li.active a:hover {
    background-color: #fff!important;
    color: #007955;
    border: 1px solid #007955;
    margin: 5px 5px 5px 0;
    padding: 7px 0;
}


/*----- Content of Tabs -----*/

.tab-content {
    width: 100%;
    border-radius: 3px;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.45);
    margin-top: -16px;
    padding: 0px;
    display: grid;
}

.tab {
    display: none;
}

.tab.active {
    display: block;
    margin-left: -10px;
    margin-right: -10px;
}

.tabs img {
    margin: 0 auto 10px;
    width: 100%;
    height: auto;
}

.tab a.custom {
    border-color: transparent;
    background-color: transparent;
    border-radius: 0;
}

.tab a {
    float: left;
    width: calc(16.6% - 10px);
    padding-top: calc(16.6% - 14px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    border: 2px solid #555;
    margin: 0px;
    border-radius: 15px;
    position: relative;
}

@media only screen and (max-width: 1200px) {
    .tab a {
        width: calc(20% - 10px);
        padding-top: calc(20% - 14px);
    }
}

@media only screen and (max-width: 850px) {
    .tab a {
        width: calc(25% - 10px);
        padding-top: calc(25% - 14px);
    }
}

@media only screen and (max-width: 500px) {
    .tab a {
        width: calc(33.3% - 10px);
        padding-top: calc(33.3% - 14px);
    }
    .tab-links a {
        width: 90px;
    }
}

.history-table tr:nth-child(odd) {
    border: 1px solid #ddd;
    padding: 4px;
    background: #7cfc00;
    text-align: center;
    color: #fff;
}

#downline-winloss .filter select {
    float: left;
    width: calc(31% - 50px);
    margin-right: 5px;
    padding: 9px 8px 8px;
    font-size: 13px;
}

#downline-list .filter,
#downline-winloss .filter {
    overflow: hidden;
    padding: 5px;
    background: #ccc;
    display: flex;
    height: 50px;
}

#downline-list .filter input,
#downline-winloss .filter input {
    flex: 20%;
    width: 100%;
    margin-right: 5px;
    padding: 9px 8px 8px;
    font-size: 13px;
}

#downline-list .filter .btn,
#downline-winloss .filter .btn {
    width: 90px;
    font-size: 13px;
}

.btn.search {
    display: block;
    padding: 8px 0!important;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 700;
    text-shadow: -1px -1px 0 rgb(0 0 0 / 30%);
    text-align: center;
    color: #fff;
    cursor: pointer;
    background: #007955;
    border: 1px solid#007955;
}

@media only screen and (min-width: 500px) {
    .img-tick {
        width: 13% !important;
    }
}