.ecofit-grade-modalidade-title{
    margin-bottom: 30px;
}

.ecofit-grade-modalidade-template {
    width: 100%;
}

.ecofit-grade-modalidade-weeknames{
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 10px;
}

.ecofit-grade-modalidade-day{
    flex: 1;
    background-color: #F5F5F5;
    color: #999999;
    transition: color 0.3s;
    padding: 39px 25px 39px 31px;
    border-radius: 20px 0px 20px 0px;
    width: 100%;
    font-family: "Poppins", Sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 24px;
    letter-spacing: 0px;
}

.gym-builder-table-routine table{
    border-collapse: initial;
}

.gym-builder-table-routine table td,
.gym-builder-table-routine table th {
    border: none;
    border-top: 1px solid hsla(0, 0%, 50%, .502);
    border-right: 1px solid hsla(0, 0%, 50%, .502);
}

.gym-builder-table-routine table tr td:first-child,
.gym-builder-table-routine table tr th:first-child {
    border-left: 1px solid hsla(0, 0%, 50%, .502);

}

.gym-builder-table-routine table .gym-builder-routine {
    display: none;
    margin-top: 1px;
}

.gym-builder-table-routine table td .gym-builder-routine:first-child {
    margin-top: 0;
}

.gym-builder-table-routine table .gym-builder-routine.show {
    display: block;
}

.gym-builder-table-routine table tbody tr:first-child {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: white; /* Importante para não ficar transparente */
}

.gym-builder-table-routine table tbody tr th:first-child{
    position: sticky;
    left: 0;
    z-index: 51;
    background-color: white;
}

.gym-builder-table-routine table tbody>tr:nth-child(odd)>th:first-child {
    background-color: #f6f6f6;
}

.table-scroll {
    position: relative;
    max-height: 500px; /* Defina a altura máxima conforme necessário */
    max-width: 100%;
    overflow-y: scroll;
    overflow-x: scroll;
    scrollbar-width: none; /* Firefox */
    margin-bottom: 40px;
}

.gym-builder-table-routine table .gym-builder-routine{
    min-height: 150px;
    min-width: 178px;
    width: 100%;
}

.class-item {
    padding-top: 16px;
}


@media screen and (min-width: 768px) {
    .ecofit-grade-modalidade-weeknames {
        grid-template-columns: 1fr 1fr;
    }

    .gym-builder-table-routine table .gym-builder-routine{
        min-height: 150px;
        min-width: 150px;
        width: 100%;
    }

    .gym-builder-table-routine table tr:first-child th.column-title {
        width: 178px;
    }

    .table-scroll {
        max-height: 500px; /* Defina a altura máxima conforme necessário */
        overflow-y: scroll;
        overflow-x: hidden;
        scrollbar-width: none; /* Firefox */
        margin-bottom: 40px;
    }

    /* Remover scrollbar no Chrome, Edge, Safari */
    .table-scroll::-webkit-scrollbar {
        display: none;
    }
}