:root {
    --color-title: #4b0099;
    --color-text-active: #231f20;
    --color-text: #b2b2b2;
    --color-bg-category: #f5f5f5;
    --color-bg-subcategory: #f9f9f9;
    --color-border: #dbdbdb;
    --color-icons-hover: #676565;
    --color-btn-active: #610cb9;
    --color-btn: #cdc3eb;
}

.color-title {
    color: var(--color-title);
}

.color-text-active {
    color: var(--color-text-active);
}

.color-text {
    color: var(--color-text);
}

.color-bg-category {
    color: var(--color-bg-category);
}

.color-bg-subcategory {
    color: var(--color-bg-subcategory);
}

.color-border {
    color: var(--color-border);
}

.color-icons-hover {
    color: var(--color-icons-hover);
}

.color-btn-active {
    color: var(--color-btn-active);
}

.color-btn {
    color: var(--color-btn);
}

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

.manrope-btn {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    line-height: 130%;
}

.manrope-input {
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 500;
    font-style: normal;
    line-height: 120%;
}

.manrope-option {
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 600;
    font-style: normal;
    line-height: 120%;
}

.manrope-title {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
    line-height: 120%;
    color: var(--color-title);
}

.manrope-checkbox {
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 500;
    font-style: normal;
    line-height: 120%;
}

.manrope-placeholder {
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    line-height: 120%;
}


.shadow {
    box-shadow: 0px 0px 3px 0px rgba(103, 101, 101, 0.20);
}

.shadow-active {
    box-shadow: 0px 3px 10px 0px rgba(103, 101, 101, 0.25);
}

.wrapper {
    max-width: 1214px;
    width: 100%;
    margin: 44px auto 90px;
    padding: 0 15px;
}

.label-custom {
    margin-bottom: 10px;
}

/**
* tabs
*/

.tabs {
    height: 52px;
    background-color: var(--color-bg-subcategory);
    display: flex;
    align-items: center;
    margin-bottom: 34px;
    padding: 0 6px;
}

.tab-link {
    width: 50%;
    text-align: center;
    font-weight: bold;
    color: var(--color-icons-hover);
    cursor: pointer;
    line-height: 46px;
}

.tab-link:hover {
    color: var(--color-text-active);
}

.tab-link.active {
    background-color: white;
    box-shadow: 0px 0px 10px 0px rgba(103, 101, 101, 0.25);
    color: var(--color-text-active);
}

/**
* search-users
*/

.search-users {
    margin-bottom: 34px;
}

.search-users-items {
    width: 100%;
    height: 46px;
    box-shadow: 0px 0px 3px 0px rgba(103, 101, 101, 0.20);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-users-input {
    width: 100%;
    height: 46px;
    border: none;
    padding-left: 20px;
}

.search-users-input:hover {
    box-shadow: 0px 0px 10px 0px rgba(103, 101, 101, 0.25);
}

.search-users-input:focus {
    box-shadow: 0px 0px 10px 0px rgba(103, 101, 101, 0.25),
    0px 0px 10px 0px rgba(103, 101, 101, 0.25);
}

.search-users-input:focus::placeholder {
    color: #bcbcbc;
}

.search-users-result {
    box-shadow: 0px 0px 3px 0px rgba(103, 101, 101, 0.20);
}

.search-users-result-list {
    padding-top: 8px!important;
    padding-bottom: 8px!important;
    height: 150px;
    overflow-y: auto;
}

.search-users-result-list:hover {
    box-shadow: 0px 0px 10px 0px rgba(103, 101, 101, 0.25);
}

.search-users-result-list::-webkit-scrollbar {
    width: 4px;
    background-color: white;
}

.search-users-result-list::-webkit-scrollbar-thumb {
    background-color: var(--color-text);
}

.search-users-result-item {
    height: 28px;
    margin-left: 7px;
    margin-right: 7px;
    padding-left: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-users-result-item:hover {
    background-color: var(--color-text-active);
    color: white;
    border-radius: 2px;
    font-weight: 600;
}

/**
* common-price
*/

.common-price {
    margin-bottom: 34px;
}

.select2-container--default.type-client .select2-selection__arrow b::before {
    /* content: url('../images/arrow-right.svg'); */
    content: "";
    width: 10px;
    height: 10px;
    border: 2px solid var(--color-text);
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
    display: inline-block;
    transition: all 0.5s;
    position: absolute;
    top: 5px;
    right: -12px;
}

.select2-container--default.type-client.select2-container--open .select2-selection__arrow b::before {
    transform-origin: 50% 46%;
    transform: rotate(135deg);
}

.select2-container--default.type-client .select2-selection--single {
    width: 100%;
    height: 46px;
    padding-left: 12px;
    display: flex;
    align-items: center;
    border: none;
    box-shadow: 0px 0px 3px 0px rgba(103, 101, 101, 0.20);
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1),
    0px 0px 10px 0px rgba(103, 101, 101, 0.25);
    position: relative;
    z-index: 9999;
}

.select2-container--default.type-client .select2-selection--single:hover {
    box-shadow: 0px 0px 10px 0px rgba(103, 101, 101, 0.25);
}

.select2-container--default.type-client .select2-selection--single .select2-selection__arrow b {
    border: none;
    margin-left: -20px;
}

.select2-selection__rendered {
    color: var(--color-text-active)!important;
}

.select2-container--default.type-client .select2-dropdown {
    border: none;
    box-shadow: 0px 0px 10px 0px rgba(103, 101, 101, 0.25);
    color: var(--color-text-active)!important;
}

.select2-container--default.type-client .select2-results>.select2-results__options::-webkit-scrollbar {
    width: 4px;
    background-color: white;
}

.select2-container--default.type-client .select2-results>.select2-results__options::-webkit-scrollbar-thumb {
    background-color: var(--color-text);
}

.select2-container--default.type-client .select2-search--dropdown .select2-search__field {
    display: none;
}

.select2-container--default.type-client .select2-results__option {
    padding-left: 20px;
}

.select2-container--default.type-client .select2-results>.select2-results__options {
    padding-top: 8px;
    padding-bottom: 8px;
}

.select2-container--default.type-client .select2-results__option--highlighted[aria-selected] {
    background-color: var(--color-text-active);
    color: white;
    font-weight: 600;
    margin-left: 7px;
    padding-left: 13px;
    margin-right: 7px;
    border-radius: 2px;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--color-border);
    margin: 0 8px;
    padding-left: 10px;
}

.select2-container--default .select2-results>.select2-results__options {
    height: 206px;
}

.select2-container--default .select2-results>.select2-results__options {
    max-height: 206px;
}

/**
* category-price -brand -category
*/

.category-price,
.category-brand,
.category-category,
.product-in-stock,
.town {
    margin-top: 34px;
}

.category-price-btn,
.category-brand-btn,
.category-category-btn {
    width: 100%;
    height: 46px;
    box-shadow: 0px 0px 3px 0px rgba(103, 101, 101, 0.25);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
}

.category-price-btn:hover,
.category-brand-btn:hover,
.category-category-btn:hover {
    width: 100%;
    height: 46px;
    box-shadow: 0px 0px 10px 0px rgba(103, 101, 101, 0.25);
}

.category-price-btn.active,
.category-brand-btn.active,
.category-category-btn.active {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.10),
    0px 0px 10px 0px rgba(103, 101, 101, 0.25);
}

.category-price-btn-add,
.category-price-btn-delete,
.category-price-btn-open,
.category-brand-btn-add,
.category-brand-btn-delete,
.category-brand-btn-open,
.category-category-btn-add,
.category-category-btn-delete,
.category-category-btn-open {
    border: none;
    background-color: transparent;
    cursor: pointer;
    display: inline-block;
}

.category-price-btn-add::after,
.category-price-btn-open::after,
.category-brand-btn-add::after,
.category-brand-btn-open::after,
.category-category-btn-add::after,
.category-category-btn-open::after {
    position: absolute;
    width: 24px;
    height: 24px;
    transition: all 0.5s;
}

.category-price-btn-add::after,
.category-brand-btn-add::after,
.category-category-btn-add::after {
    content: url('../images/plus-in-circle.svg');
    top: 11px;
    left: 20px;
}

.category-price-btn-delete::after,
.category-brand-btn-delete::after,
.category-category-btn-delete::after {
    content: url('../images/delete.svg');
    top: 11px;
    display: none;
}

.category-price-btn-open::after,
.category-brand-btn-open::after,
.category-category-btn-open::after {
    /* content: url('../images/arrow-right.svg'); */
    content: "";
    width: 10px;
    height: 10px;
    border: 2px solid var(--color-text);
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
    top: 17px;
    right: 19px;
}

.rotated::after {
    transform-origin: 50% 46%;
    transform: rotate(90deg);
}

.hide-show::after {
    display: block;
}

.change-picture::after {
    content: url('../images/edit.svg');
}

.category-price-edit,
.category-brand-edit,
.category-brand-edit-price,
.category-category-edit {
    padding: 35px 30px 45px 30px;
    background-color: var(--color-bg-category);
    border: 1px solid var(--color-border);
    display: grid;
    column-gap: 60px;
}

.category-price-edit {
    grid-template-columns: repeat(2, 1fr);
}

.category-brand-edit,
.category-category-edit {
    grid-template-columns: repeat(3, 1fr);
}

.category-brand-edit-price {
    grid-template-columns: repeat(5, 1fr);
}

/* .column {
    break-inside: avoid;
} */

.edits:hover {
    box-shadow: 0px 0px 10px 0px rgba(103, 101, 101, 0.25);
}

.edits.active {
    box-shadow: 0px 0px 10px 0px rgba(103, 101, 101, 0.25),
    0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

.edits {
    display: flex;
    background-color: var(--color-white);
}

.edit-btn-checkbox {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rotated-check::after {
    transform-origin: 50% 46%;
    transform: rotate(90deg);
}

/*
* new master-slave checkboxes block
*/

.parent-block,
.parent-block-category {
    width: 100%;
}

.parent-box,
.child-box {
    display: flex;
    justify-content: space-between;
}

.parent-box {
    padding: 0 10px;
    background-color: white;
    height: 50px;
    align-items: center;
    box-shadow: 0px 0px 3px 0px rgba(103, 101, 101, 0.20);
    position: relative;
}

.parent-box:hover {
    box-shadow: 0px 0px 10px 0px rgba(103, 101, 101, 0.25),
    0px 0px 10px 0px rgba(0, 0, 0, 0.10);
    z-index: 5;
}

.parent-block.active .parent-box,
.parent-block-category.active .parent-box {
    box-shadow: 0px 0px 10px 0px rgba(103, 101, 101, 0.25),
    0px 0px 10px 0px rgba(0, 0, 0, 0.10);
    /* border-bottom: 2px solid var(--color-border); */
}

.parent-btn-select {
    display: flex;
}

.parent-btn {
    width: 40px;
    border-right: 1px solid var(--color-border);
    text-align: center;
}

.check {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
    line-height: 120%;
}

.child-block,
.child-block-category {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    height: 0;
    transition: opacity 0.5s ease, height 0.5s ease;
}

.child-block.open,
.child-block-category.open {
    display: block;
    opacity: 1;
    height: auto;
}

.child-box {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 9px;
    background-color: var(--color-bg-subcategory);
    border: 1px solid var(--color-border);
}

.child-box:hover {
    background-color: #ececec;
}

.child-box label {
    margin-left: 10px;
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 13px;
    line-height: 120%;
}

.child-btn-select {
    border-left: 1px solid var(--color-border);
}

.open-btn,
.open-btn-category {
    border: none;
    background-color: transparent;
    position: relative;
    cursor: pointer;
    width: 37px;
    height: 37px;
    top: 6px;
}

.open-btn::after,
.open-btn-category::after {
    content: "";
    width: 10px;
    height: 10px;
    border: 2px solid var(--color-text);
    border-width: 2px 2px 0 0;
    position: absolute;
    transition: all 0.3s;
    transform: rotate(45deg);
}

.open-btn::after {
    top: 14px;
    right: 14px;
}

.open-btn-category::after {
    top: 5px;
    right: 5px;
}

.open-btn.rotated::after {
    top: 11px;
}

.open-btn-category.rotated::after {
    top: 5px;
}

.rotated::after {
    transform-origin: 50% 46%;
    transform: rotate(135deg);
}

.open-btn::before,
.open-btn-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: inherit; /* Используем курсор кнопки */
}

/*
* choices
*/

.choices__inner {
    width: 138px;
    min-height: 50px;
    background-color: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    border: 0;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-left: 11px;
    color: var(--color-text);
}

.choices.is-open .choices__inner {
    color: var(--color-text-active);
}

.choices[data-type*=select-one] {
    border-left: 1px solid var(--color-border);
}

.choices[data-type*=select-one] .choices__inner {
    padding-bottom: 0;
}

.choices[data-type*=select-one]::after {
    width: 10px;
    height: 10px;
    border: 2px solid var(--color-text);
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
    transition: all 0.3s;
    right: 2px;
    top: 20px;
    margin-top: 0;
}

.choices[data-type*=select-one].is-open::after {
    border: 2px solid var(--color-text-active);
    border-width: 2px 2px 0 0;
    transform-origin: 46% 55%;
    transform: rotate(135deg);
    top: 23px;
}

.parent-box:hover .choices__list--single .choices__item {
    color: var(--color-text-active);
}

.choices__placeholder {
    opacity: 1;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    background-color: var(--color-text-active);
    width: 160px;
    max-height: 180px;
    padding-top: 5px;
    padding-bottom: 9px;
    font-size: 12px;
    line-height: 120%;
}

.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
    padding: 5px;
}

.parent-btn-select .choices__list--dropdown,
.parent-btn-select .choices__list[aria-expanded] {
    margin-top: -1px;
}

.child-btn-select .choices__list--dropdown,
.child-btn-select .choices__list[aria-expanded] {
    margin-top: -5px;
}

.choices__list--dropdown .choices__list,
.choices__list[aria-expanded] .choices__list {
    max-height: 166px;
}

.choices__list--dropdown .choices__list::-webkit-scrollbar,
.choices__list[aria-expanded] .choices__list::-webkit-scrollbar {
    width: 4px;
    background-color: var(--color-text-active);
}

.choices__list--dropdown .choices__list::-webkit-scrollbar-thumb,
.choices__list[aria-expanded] .choices__list::-webkit-scrollbar-thumb {
    background-color: var(--color-text);
}

.choices__list--dropdown .choices__placeholder {
    display: none;
}

.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-left: 7px;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    color: var(--color-text-active);
    background-color: white;
    margin: 0 7px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
}

/* Check */

.check {
    padding-left: 30px;
}

.check__input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.check__box,
.check__box-slave {
    position: absolute;
    margin-top: 1px;
    margin-left: -26px;
    width: 16px;
    height: 16px;
    overflow: hidden;
    border-radius: 2px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    border: 2px solid var(--color-text);
}

/* checked */

.check__input:checked + .check__box {
    background-color: var(--color-btn-active);
    background-image: url('../images/check.svg');
    border: 2px solid var(--color-btn-active);
}

.check__input:checked + .check__box-slave {
    background-color: var(--color-text-active);
    background-image: url('../images/check.svg');
    border: 2px solid var(--color-text-active);
}

/* indeterminate */

.check__input:indeterminate + .check__box {
    background-color: var(--color-btn-active);
    background-image: url('../images/indeterminate.svg');
    border: 2px solid var(--color-btn-active);
    background-position: top 4px right 1px;
}

/* hover */

.check__input:hover + .check__box {
    border: 2px solid var(--color-btn-active);
}

.check__input:hover + .check__box-slave {
    border: 2px solid var(--color-text-active);
}

/* disabled */

.check__input:disabled + .check__box {
    box-shadow: 0 0 0 0.1em var(--color-btn);
}

.check__input:checked:disabled + .check__box {
    background-color: var(--color-btn);
}

.check__input:disabled + .check__box-slave {
    box-shadow: 0 0 0 0.1em var(--color-text);
}

.check__input:checked:disabled + .check__box-slave {
    background-color: var(--color-text);
}

/**
* submit-btn
*/

.submit-btn {
    margin-top: 70px;
    display: flex;
    justify-content: center;
}

.submit-btn-body {
    width: 256px;
    height: 40px;
    border-radius: 2px;
    cursor: pointer;
    background-color: var(--color-btn);
    color: white;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    line-height: 130%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn-body:hover {
    background-color: var(--color-btn-active);
}

.submit-btn-body img {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

/**
* product-in-stock
*/

.product-in-stock-container {
    height: 52px;
    background-color: var(--color-bg-category);
    display: flex;
    align-items: center;
    padding-left: 45px;
}

.product-in-stock-container .radio {
    margin-right: 50px;
    font-weight: 600;
}

.radio__input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.radio__box {
    position: absolute;
    margin-top: 1px;
    margin-left: -26px;
    width: 18px;
    height: 18px;
    overflow: hidden;
    border-radius: 50%;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    border: 2px solid var(--color-text);
}

.radio__input:hover + .radio__box {
    border: 2px solid var(--color-btn-active);
}

.radio__input:checked + .radio__box {
    border: 2px solid var(--color-btn-active);
}

.radio__input:checked + .radio__box::after {
    content: "";
    background-color: var(--color-btn-active);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
}

/**
* town
*/

.town-container {
    height: 52px;
    background-color: var(--color-bg-category);
    display: flex;
    align-items: center;
    padding-left: 16px;
}

.town-container .check {
    margin-right: 50px;
    font-weight: 600;
}

@media all and (max-width: 961px) {

    .category-price-edit,
    .category-brand-edit,
    .category-category-edit,
    .category-brand-edit-price {
        grid-template-columns: 1fr;
        padding: 7px 5px;
    }

    .open-btn,
    .open-btn-category {
        width: 10px;
        height: 10px;
    }

    .open-btn::after {
        top: 8px;
        right: 10px;
    }

    .open-btn-category::after {
        top: -5px;
        right: 10px;
    }

    .open-btn-category.rotated::after {
        top: -7px;
    }

    .parent-box {
        padding-left: 0;
    }

    .parent-btn {
        width: 10px;
    }

    .check {
        padding-left: 36px;
    }

    .child-box label {
        margin-left: 0;
    }

    .choices {
        width: 88px;
    }

    .choices__inner {
        width: 88px;
        margin-left: 6px;
    }

    .choices__list--single {
        padding: 4px 4px 4px 4px;
    }

    .choices__list--dropdown,
    .choices__list[aria-expanded] {
        width: 97px;
    }

    .choices[data-type*=select-one]::after {
        display: none;
    }

    .product-in-stock-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        height: 158px;
        padding-top: 10px;
    }

    .town-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        height: 166px;
        padding: 10px;
    }
  }