﻿:root {
    --YearSelector--primery: #ED3F3F
}


.YearSelector button {
    border: unset;
    border-radius: unset;
    background-color: transparent;
}


    .YearSelectorModal button:disabled,
    .YearSelectorModal button:disabled:hover {
        background: #ED3F3F80 !important;
        border-color: #ED3F3F80 !important;
    }

    .YearSelectorModal .modal-content {
        box-shadow: unset !important;
        border: unset !important;
        padding: 16px 24px 0px 10px;
    }

    .YearSelectorModal .modal-header {
        padding: 15px 0px;
        border-bottom: unset;
    }

        .YearSelectorModal .modal-header .headerBar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

            .YearSelectorModal .modal-header .headerBar .yearSelectorTitle {
                height: 24px;
                margin-bottom: 18px;
            }

            .YearSelectorModal .modal-header .headerBar .RemoveAll {
                color: var(--YearSelector--primery);
                background: transparent;
                padding: 2px 10px;
                display: flex;
                align-items: center;
                gap: 5px;
                cursor: pointer;
            }

                .YearSelectorModal .modal-header .headerBar .RemoveAll:before {
                    display: block;
                    content: '';
                    width: 18px;
                    height: 18px;
                    background-image: url('../svg/trash.svg');
                    background-position: center;
                    background-size: cover;
                }

        .YearSelectorModal .modal-header .modal-Caption {
            display: flex;
            margin: 10px 0;
            height: 35px;
        }

        .YearSelectorModal .modal-header h5.modal-title {
            color: #000;
            font-weight: bold;
        }

        .YearSelectorModal .modal-header .YearSelectorModalSelectedList {
            display: flex;
            overflow-x: auto;
            flex-wrap: nowrap;
            position: relative;
            margin-bottom: 20px;
            gap: 5px;
            width: 100%;
            cursor: grab;
        }

            .YearSelectorModal .modal-header .YearSelectorModalSelectedList::-webkit-scrollbar {
                display: none;
            }

            .YearSelectorModal .modal-header .YearSelectorModalSelectedList > div {
                display: flex;
                background-color: #F2F4F9;
                border: 1px solid #33333324;
                border-radius: 90px;
                align-items: center;
                justify-content: center;
                padding: 6px 10px 6px 6px;
                font-size: 12px;
                flex-direction: row-reverse;
                text-align: center;
                height: 35px;
            }

                .YearSelectorModal .modal-header .YearSelectorModalSelectedList > div > .caption {
                    display: flex;
                    gap: 5px;
                    /* flex-direction: row; */
                    flex-wrap: nowrap;
                    text-wrap-mode: nowrap;
                }

                .YearSelectorModal .modal-header .YearSelectorModalSelectedList > div > label {
                    margin: 0 !important;
                    width: 20px;
                    height: 20px;
                    padding: 0 3px !important;
                    color: var(--YearSelector--primery) !important;
                    font-weight: bold !important;
                }

    .YearSelectorModal .modal-body {
        height: 82%;
        overflow: auto;
        padding: 0px !important;
    }

        .YearSelectorModal .modal-body::-webkit-scrollbar {
            width: 6px;
        }

        .YearSelectorModal .modal-body::-webkit-scrollbar-thumb {
            background: var(--YearSelector--primery) !important;
            border-radius: 15px;
        }

        .YearSelectorModal .modal-body::-webkit-scrollbar-button {
            display: none;
        }

        .YearSelectorModal .modal-body::-webkit-scrollbar-track {
            background: #e0e0e0 !important;
            border-radius: 15px;
        }

        .YearSelectorModal .modal-body .SelectorItem {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 0px 4px;
            border-bottom: 1px solid rgba(230, 230, 230, 0.65);
        }

            .YearSelectorModal .modal-body .SelectorItem > div > * {
                margin: 0;
            }

            .YearSelectorModal .modal-body .SelectorItem > div {
                display: flex;
                align-items: center;
                width: 100%;
            }

                .YearSelectorModal .modal-body .SelectorItem > div > label {
                    display: flex;
                    align-items: center;
                    gap: 5px;
                    width: 100%;
                }

                    .YearSelectorModal .modal-body .SelectorItem > div > label span {
                        color: #000;
                    }


body.modal-open {
    overflow-y: hidden !important;
}

.YearSelectorModal .SelectorItem label {
    color: #000!important;
}
@media(max-width:767px) {
    .YearSelectorModal .modal-dialog {
        margin: 0;
        max-width: unset;
        height: 100%;
        position: fixed;
        width: 100%;
    }

    .YearSelectorModal .modal-content {
        border-radius: 0;
        height: 100%;
    }
}

@media(min-width:768px) {

    .YearSelectorModal .modal-dialog {
        width: 488px;
        max-width: 488px !important;
    }

        .YearSelectorModal .modal-dialog .modal-content {
            height: 41rem !important;
        }

    .YearSelectorModal .modal-content {
        border-radius: 24px;
    }

    .YearSelectorModal .modal-header h5.modal-title {
        font-size: 18px;font-weight: bold;
    }

}
