﻿.filter-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 470px;
    max-height: 760px;
}

.dropdown-menu.dropdown-menu-start.show.custom {
    right: 0;
    top: 54px;
}

.actions-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 257px;
    gap: 8px;
}

.filter-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.filter-title,
.grid-sort-title {
    border-bottom: 1px solid #E5E5E5;
    height: 56px;
    padding: 16px;
    gap: 10px;
}

    .filter-title label,
    .grid-sort-title label {
        font-family: Inter;
        font-weight: 500;
        font-size: 16px;
    }

    .grid-sort-title button {
        background-color: #FFFFFF;
        border: none;
        right: 20px;
        left: auto;
        position: absolute;
    }

.filter-body,
.grid-sort-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    overflow-y: auto;
}

.actions-body {
    gap: 8px;
    padding: 8px;
}

.filter-body-row,
.grid-sort-row {
    display: flex;
    align-items: center;
    padding: 20px 32px;
    gap: 16px;
    width: 100%;
    height: 88px;
    border-bottom: 1px solid #E5E5E5;
}

.filter-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0px;
    height: 88px;
    padding: 20px 32px;
}

.filter-body-row:has(.filter-checkbox) {
    height: 52px;
}

.filter-checkbox {
    height: auto;
    width: 100%;
    display: flex;
}

.filter-body-row-dropdown {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 88px;
    border-bottom: 1px solid #E5E5E5;
}

.dropdown-flex-row,
.filter-body-row .autocomplete-container {
    top: 10px;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.filter-body-row .autocomplete-container {
    margin: 0;
    top: 0;
}

.filter-body-row:has(.autocomplete-container) {
    height: auto;
}

.filter-body-row .dropdown-flex-row .single-selection-combobox-input {
    width: 100%;
}

.filter-body-row .dropdown-flex-row .single-selection-combobox-input,
.grid-sort-body-row .dropdown-flex-row .single-selection-combobox-input {
    width: 100%;
}

.filter-body-row .datepicker-container {
    width: 100%;
}

.dropdown-toggle-button {
    box-shadow: none;
    padding: 0px;
}

.custom-button-container {
    display: block;
}

.custom-button-container-mobile {
    display: none;
}

form .filter-body-row .input-wrapper {
    margin: 0;
}

.filter-body-row .input-wrapper input {
    background: #FAFAFA;
}


@media screen and (max-width: 768px) {
    .filter-container {
        width: 100vw;
        position: relative;
        bottom: 0%;
        max-height: 100vh;
        bottom: 0;
        left: 0;
    }

    .filter-title {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding-left: 20px;
        padding-right: 20px;
    }

    .filter-body {
        overflow-x: auto !important;
        overflow-x: hidden;
    }

    .filter-body-row,
    .grid-sort-row {
        padding: 20px;
    }

    .grid-sort-body {
        padding-bottom: 20px;
    }

    .grid-sort-body-row {
        width: 100%;
        padding-top: 20px;
        padding-left: 20px;
        padding-right: 20px;
        box-shadow: rgba(0, 0, 0, 0.08), 0 4px 16px;
    }

        .grid-sort-body-row button {
            width: 100%;
            padding: 16px 16px 16px 16px;
            border: 1px solid #E5E5E5;
            border-radius: 10px;
            font-family: Inter;
            font-weight: 400;
            font-size: 14px;
            line-height: 20px;
            background-color: #FFF;
            text-align: left;
            justify-content: left;
        }

    .filter-body input {
        margin-right: 16px;
    }

    .custom-button-container {
        display: none;
    }

    .custom-button-container-mobile {
        display: block;
    }

    .close-filter-container {
        background-color: inherit;
        border: none;
        padding: 0;
    }
}
