/* mobile first */
.partial {
    margin: 0 5px;
}

.partial__title {
    margin-bottom: 25px;
    color: #000000;
    font-family: "Segoe UI", -apple-system, system-ui, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.partial__dropdown {
    position: relative;
    margin-bottom: 15px;
    width: 100%;
    padding: 8px 30px 10px 15px;
    background-color: transparent;
    height: auto;
    border: 1px solid #e9e9e9;
    font-family: "Segoe UI", -apple-system, system-ui, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partial__dropdown::after {
    position: absolute;
    right: 15px;
    width: 10px;
    height: 10px;
    border-top: 2px solid transparent;
    border-left: 2px solid transparent;
    border-right: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    transform: rotate(45deg);
}

.partial__search-wrap {
    position: relative;
    font-family: "Segoe UI", -apple-system, system-ui, BlinkMacSystemFont, Arial, sans-serif;
    border: transparent;
}

.partial__search {
    padding: 8px 30px 10px 15px;
    font-size: 1rem;
    line-height: 2;
}

.partial__search-btn {
    position: absolute;
    right: 0;
    border: 1px solid transparent;
    background-color: transparent;
}

.partial__search-icon::before {
    opacity: 0.5;
}

.partial__table .partial__table-data {
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}

.partial__table-th {
    margin-right: -25%;
    font-family: "Segoe UI", -apple-system, system-ui, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 0.875rem;
    line-height: 1.2;
    text-transform: none;
    color: #999;
    border-bottom: 1px solid #e8e8e8;
}

.partial__table-head-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
            align-items: center;
    display: -ms-flexbox;
    display: flex;
    margin-left: 15px;
    min-height: 40px;
}

.partial__table-head {
    color: #999;
    font-family: "Segoe UI", -apple-system, system-ui, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 0.875rem;
    padding: 0 5px;
}

.partial__table-icon {
    flex: 0 0 22px;
    margin-left: 10px;
    width: 22px;
    height: 22px;
    font-size: 0;
    border: none;
    background-color: transparent;
    background-image: url(../../img/favicons/icon-sort.png);
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.partial__table-icon_up {
    background-image: url(../../img/favicons/icon-sort-up.png);
}

.partial__table-head-toggle {
    position: relative;
    height: 60px;
}

.partial__slider-btn {
    position: absolute;
    top: 26px;
    width: 10px;
    height: 10px;
    font-size: 0;
    border-left: 2px solid #cccccc;
    border-bottom: 2px solid #cccccc;
    cursor: pointer;
}
.partial__slider-btn_left {
    left: 17px;
    transform: rotate(45deg);
}
.partial__slider-btn_right {
    right: 17px;
    transform: rotate(225deg);
}
.partial__table-avatar {
    margin-right: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}
.partial__table-link {
    color: #000;
    font-family: "Segoe UI", -apple-system, system-ui, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 17px;
}
.partial__table-data_fio {
    width: 75%;
}
.partial__data-negative {
    color: #d0021b;
}
.partial__data-positive {
    color: #579810;
}

.partial__table-department {
    color: #999;
    font-family: "Segoe UI", -apple-system, system-ui, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 0.75rem;
    line-height: 16px;
}

.partial__department-list {
    list-style: none;
    margin: 0;
    padding-left: 25px;
    text-align: left;
}

.dropdown-item {
    width: 228px;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .partial__table-head-wrap {
        align-items: flex-end;
        margin-left: 0;
        min-height: auto;
        padding: 10px 0;
    }
    .partial__table-link {
        font-size: 1rem;
        line-height: 21px;
        padding-right: 20px;
    }
    .partial__table-department {
        font-size: 0.875rem;
    }
    .partial__table-th,
    .partial__table-data {
        width: 18.5%;
    }
    .partial__table-data_fio {
        width: auto;
    }
    .partial__table-th {
        margin-right: 0;
    }
    .partial__slider-btn {
        display: none;
    }
    .partial__table-head {
        font-weight: 400;
        flex: 0 1 81px;
    }
    .partial__table-icon {
        margin-left: 0;
        margin-bottom: 1px;
        align-self: flex-end;
        background-position: bottom;
    }
    .dropdown-item {
        width: 204px;
    }
}

@media (min-width: 1200px) {
    .partial__table-th,
    .partial__table-data {
        width: 15%;
    }
    .partial__table-data_fio {
        width: auto;
    }
    .partial__table-data_department {
        width: 17%;
    }
}

/* Модальное окно Детализация */
.modal-staff__tab-head {
    display: flex;
    padding: 0 20px;
    border-bottom: 1px solid #e8e8e8;
}

.modal-staff__tab-name {
    margin-bottom: -1px;
    margin-right: 50px;
    padding: 15px 0;
    color: #999999;
    font-size: 1rem;
    line-height: 1;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.12px;
    cursor: pointer;
}

.modal-staff__tab-name:last-of-type {
    margin-right: 0;
}

.modal-staff__tab-name:hover {
    color: #000;
}

.modal-staff__tab-name_active {
    font-weight: 500;
    color: #000;
    border-bottom: 2px solid #fcc142;
}
.salary-form__add-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 2px;
    border: 1px dashed #dcdcdc;
}
.salary-form__add-btn {
    width: 100%;
    padding: 8px 0;
    text-align: center;
    cursor: pointer;
}
.salary-form__item {
    padding-top: 25px;
    border-top: 1px solid #e8e8e8;
}
.salary-form__item:first-of-type {
    border-top: none;
}
.salary-form__item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 15px 15px 0;
}
.salary-form__del-item {
    display: flex;
    align-items: flex-end;
    margin-left: auto;
    background-color: transparent;
    border: none;
    color: #999;
    cursor: pointer;
}
.salary-form__del-item i {
    pointer-events: none;
}
.salary-form__wrap {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.salary-form__wrap label {
    white-space: nowrap;
    width: 100%;
}
@media (min-width: 768px) {
    .salary-form__item {
        flex-wrap: nowrap;
    }
    .salary-form__wrap {
        margin-right: 10px;
        width: auto;
    }
    .salary-form__wrap:last-of-type {
        margin-right: 0;
    }
    .salary-form__del-item {
        margin-top: 22px;
    }
}
.modal-staff .form-control {
    min-width: 85px;
    height: 38px;
    border: 1px solid #e9e9e9;
}
.modal-staff__css-control {
    margin: 0;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .modal-staff__css-control {
        text-align: left;
        display: block;
        /* margin-top: 30px; */
    }
}
.modal-staff .css-control-indicator {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    border: 1px solid #e9e9e9;
    background-color: #ffffff;
}
.modal-staff .css-control-input:checked ~ .css-control-indicator:after {
    content: "";
    position: absolute;
    top: -1px;
    left: 3px;
    width: 17px;
    height: 9px;
    border-left: 2px solid #fcc142;
    border-bottom: 2px solid #fcc142;
    transform: rotate(-45deg);
}
.modal-dialog {
    max-width: 740px;
}
.modal-dialog--access {
    max-width: 760px;
}
.select2-container {
    margin-top: 0;
}
.js-select2 {
    min-height: 34px;
    padding-left: 13px;
    border-radius: 4px;
    border: 1px solid #d4dae3;
}
.dropdown-menu {
    max-height: 50vh;
    overflow: auto;
}

.content .select2-container--default .select2-selection--single, .content .select2-container--default .select2-selection--multiple {
    min-height: 38px;
    border: 1px solid #d4dae3;
    border-radius: 4px;
}

.is-invalid .select2-container--default .select2-selection--single,
.is-invalid .select2-container--default .select2-selection--multiple,
.is-invalid .select2-container--default.select2-container--focus .select2-selection--single,
.is-invalid .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #ef5350;
}

.modal-staff.content,
.modal-staff .department__item.open {
    background: none;
}

.modal-access {
    align-items: baseline;
}
