.food-files-filter form {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 10px;
}

.food-files-filter form .fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.food-files-filter form .select-wrapper.empty {
    outline: 1px solid #d43b34;
}

.food-files {
    margin-top: 20px;
    margin-bottom: 20px;
    height: auto;
    max-height: 112px;
    padding: 8px 16px;
    box-sizing: border-box;
    border: 1px solid #dee2e6;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #a4a7a7;
}

.food-files::-webkit-scrollbar {
    width: 2px;
}
.food-files::-webkit-scrollbar-track {
    background-color: transparent;
}
.food-files::-webkit-scrollbar-thumb {
    background-color: #a4a7a7;
}

.food-files .files-list {
    margin: 0;
}

.food-files .messages-list li {
    list-style: none;
    padding: 0;
    color: #555555;
}

.food-files.js-loading .js-loading-spinner {
    background: url("../../images/site/spinner.gif") center no-repeat !important;
    background-size: cover;
}

.food-files-filter > * {
    flex: 1;
}

.food-files-filter .reset {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #317bda;
    text-decoration: underline;
    cursor: pointer;
}

.food-files-filter .reset:hover {
    color: #d43b34;
}

@media screen and (max-width: 1024px) {
    .food-files-wrapper {
        display: grid;
        grid-template-columns: 1fr 3fr;
        gap: 10px;
    }

    .food-files-filter form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .food-files-filter form .fields {
        display: grid;
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .food-files {
        margin-top: 0;
    }
}

@media screen and (max-width: 640px) {
    .food-files-wrapper {
        grid-template-columns: 1fr;
    }

    .food-files {
        margin-top: 20px;
    }
}

.select2-container--custom {
    background-color: white;
    border: 1px solid #dee2e6;
    cursor: text;
    outline: 0;
}
.select2-container--custom:focus {
    border: 1px solid #a4a7a7;
}

.select2-container--custom .select2-selection--single {
    background: #ffffff;
}
.select2-container--custom
    .select2-selection--single
    .select2-selection__rendered {
    padding: 8px 24px 8px 16px;
    color: #555555;
    line-height: 14px;
}
.select2-container--custom
    .select2-selection--single
    .select2-selection__placeholder {
    color: #555555;
}
.select2-container--custom
    .select2-selection--single
    .select2-selection__arrow {
    height: 100%;
    position: absolute;
    top: 1px;
    right: 12px;
    width: 12px;
}
.select2-container--custom
    .select2-selection--single
    .select2-selection__arrow
    b {
    display: inline-block;
    width: 100%;
    height: 100%;
    background: url("../../images/icons/arraw-down-grey.png") no-repeat center;
    transition: transform 200ms ease-in-out;
}
.select2-container--custom.select2-container--open .select2-selection--single {
    border: 1px solid #a4a7a7;
}
.select2-container--custom.select2-container--open
    .select2-selection--single
    .select2-selection__arrow {
    background: transparent;
    border: none;
}
.select2-container--custom.select2-container--open
    .select2-selection--single
    .select2-selection__arrow
    b {
    transform: rotate(-180deg);
    transition: transform 200ms ease-in-out;
}
.select2-container--custom .select2-selection--single {
    border: none;
    background: none;
}

.select2-container--custom .select2-search--dropdown .select2-search__field {
    border: 1px solid #aaa;
    outline: 0;
}

.select2-container--custom .select2-search--inline .select2-search__field {
    outline: 0;
    background: none;
    box-shadow: none;
}

.select2-container--custom .select2-dropdown {
    background-color: white;
    border: 1px solid transparent;
}

.select2-container--custom .select2-dropdown--above {
    border-bottom: none;
}

.select2-container--custom .select2-dropdown--below {
    margin: 0 -2px 0 -1px;
    border-radius: 0;
    border-top: none;
}

.select2-container--custom .select2-results > .select2-results__options {
    max-height: 150px;
    margin: 0 1px 0 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #a4a7a7;
}

.select2-container--custom
    .select2-results
    > .select2-results__options::-webkit-scrollbar {
    width: 2px;
}
.select2-container--custom
    .select2-results
    > .select2-results__options::-webkit-scrollbar-track {
    background-color: transparent;
}
.select2-container--custom
    .select2-results
    > .select2-results__options::-webkit-scrollbar-thumb {
    background-color: #a4a7a7;
}

.select2-container--custom .select2-results__option {
    padding: 4px 16px;
    line-height: 14px;
}

.select2-container--custom .select2-results__option[role="group"] {
    padding: 0;
}

.select2-container--custom .select2-results__option[aria-disabled="true"] {
    color: grey;
    display: none;
}

.select2-container--custom
    .select2-results__option--highlighted[aria-selected] {
    background-color: #ebf2fa;
}

.select2-container--custom .select2-results__group {
    cursor: default;
    display: block;
    padding: 6px;
}

.select2-container--custom.select2-container--open .select2-dropdown {
    border-color: #a4a7a7;
}

.kv-plugin-loading {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: url("../../images/site/ripple.gif") center no-repeat !important;
    background-size: contain;
}
