.ecotest_table {
    border-style: solid;
    border-width: 1px;
    border-color: black;
    border-radius: 1rem;
    padding: 1rem;
    width: 100%;

    form {
        display: grid;
        grid-template-columns: 100%;
        grid-gap: 0.5rem;
        max-width: 100%;
        align-items: start;
        justify-items: start;

        label {
            font-weight: bold;
            margin: 0;
        }

        div label {
            font-size: 1rem;
            font-weight: normal;
            hyphens: auto;
        }

        #id_disqualifying_criterion {
            display: flex;
            flex-direction: row;
            column-gap: 1rem;
            flex-wrap: wrap;
            div {
                width: 10rem;
            }
        }

        #id_disqualifying_criterion__lte {
            justify-self: start;
            align-self: center;
            width: 3.5rem;
            height: 2rem;
            text-align: center;
            
        }

        #id_keyword_search, select {
            height: 2rem;
            width: 10rem;
        }
        
    }
    table {
        width: 100%;
        #grading_total, #grading_sustainability, #grading_finances {
            height: 10.5rem;
            white-space: nowrap;
            padding: .5rem !important;
            div {
                position: relative;
                right: 1rem;
                transform:
                    translate(13px, 0px)
                    rotate(270deg);
                width: 30px;
                span {
                    padding: 5px 10px;
                }
            }
        }

        th {
            border-bottom: 1px solid black;
            padding: 0.5rem;
            font-size: medium;
        }
        td {
            padding: 0.5rem;
            hyphens: auto;
        }
        tr:nth-child(odd) {
            background-color: #f0f0f0;
        }
    }

    @media only screen and (min-width: 640px) {
        form {
            display: grid;
            grid-template-columns: 20rem auto;
            grid-gap: 0.5rem;

            .ecotest_submit {
                grid-column: 1 / span 2;
                justify-self: center;
                width: 100%
            }
        }
    }
    .pagination {
        list-style: none;
        margin-top: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;

        .page-link {
            padding: 0.5rem 0.75rem;
            border: 1px solid #ccc;
            border-radius: 0.25rem;
            text-decoration: none;
            color: #007bff;
            cursor: pointer;
        }

        .page-link:hover {
            background-color: #f0f0f0;
        }

        .active .page-link {
            background-color: #007bff;
            color: white;
            cursor: default;
        }
    }
}