.main.small_sidebar .menu-box-title,
.main.small_sidebar .nav-link .txt {
    display: none !important;
}

.main.small_sidebar .nav-link {
    justify-content: center !important;
    padding: 6px 0 !important;
}

.main.small_sidebar .nav-link .icon {
    margin-right: 0 !important;
}

.main.small_sidebar .nav-link .icon img {
    width: 25px;
    height: 25px;
    max-height: none;
    transition: transform 0.2s ease;
}

.main.small_sidebar .nav-link {
    padding: 10px 0 !important;
}

.main.small_sidebar .nav-item.active .nav-link {
    background-color: #8a6df9; /* или другой заметный цвет */
    border-radius: 8px;
    justify-content: center;
}

.main.small_sidebar .nav-item.active .nav-link img {
    filter: brightness(5); /* делает иконку ярче */
    transform: scale(1.15); /* немного увеличивает */
    transition: 0.2s ease;
}
.main.small_sidebar .nav-link {
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 6px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.main.small_sidebar .nav-item.active .nav-link {
    background-color: #8a6df9;
}

.main.small_sidebar .nav-link .icon img {
    width: 20px;
    height: 20px;
}

.nav-item {
    margin: 2px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 6px 15px;
    color: #9fa8c3;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

/* --- СТИЛЬ ЗАГОЛОВКОВ МЕНЮ --- */
.sidebar .menu-box-title {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #b7c1e6;
    letter-spacing: 0.6px;
    background: rgba(126, 126, 248, 0.07);
    border-radius: 4px;
    padding: 10px 16px 10px 16px; /* ← одинаково как у пунктов меню */
    margin: 16px 0 6px 0; /* ← убран margin слева/справа */
    min-height: 36px;
}

/* У первого блока убираем верхний отступ */
.sidebar .menu-box:first-of-type .menu-box-title {
    margin-top: 0;
}

/* --- НЕОНОВАЯ ЛИНИЯ СЛЕВА --- */
.sidebar .menu-box-title::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0; /* ← ПРИЖАТА К ЛЕВОЙ ГРАНИЦЕ */
    width: 3px;
    background-color: #00ffc2;
    border-radius: 2px;
    box-shadow: 0 0 5px #00ffc2, 0 0 10px #00ffc2, 0 0 15px #00ffc2;
}

.nav-link:hover,
.nav-item.active .nav-link {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-link .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    margin-right: 10px;
}

.nav-link .icon img {
    max-height: 18px;
    transition: 0.2s ease;
}

.nav-link .hover_icon {
    display: none;
}

.nav-link:hover .normal_icon {
    display: none;
}

.nav-link:hover .hover_icon {
    display: inline;
}

.menu-box-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    padding: 10px 15px 5px;
    margin: 15px 0 5px;
}

.order-fav-btn {
    background: linear-gradient(113.36deg, #8a6df9 -12.22%, #b6a3ff 179.61%);
    border-radius: 10px;
}

div.dropdown:nth-child(1) {
    width: 100%;
}

.far.fa-star {
    font-size: 14px;
    margin-right: 0;
    color: #000;
    text-shadow: none;
    background: #000;
    background-clip: text;
    -webkit-background-clip: text;
}

.fas.fa-star {
    color: #ffe700;
    text-shadow: 1px 1px 7px #ffc10fb0;
}

#service-table > tbody > tr > td:nth-child(1) > span[role="button"] {
    width: 56px;
    height: 48px;
    background: #9277fa38;
    border-radius: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#service-table
    > tbody
    > tr
    > td:nth-child(1)
    > span[role="button"].favorite-active {
    background: linear-gradient(113.36deg, #8a6df9 -12.22%, #b6a3ff 179.61%);
}

#service-table > tbody > tr > td:nth-child(1) > span[role="button"] > span {
}

#service-table
    > tbody
    > tr
    > td:nth-child(1)
    > span[role="button"]
    > span:before {
    content: "\f004";
    font-size: 16px;
    color: #fff;
    font-weight: 400;
    text-shadow: none;
}

.dropdown-fav__block {
    align-items: center;
    gap: 10px;
}

.order-fav-btn {
    min-width: auto;
    width: 34px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 34px;
    min-height: auto;
    position: relative;
}

.order-fav-btn:before {
    content: "Добавить услугу в избранное";
    position: absolute;
    bottom: calc(100% + 8px);
    left: -20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid rgba(132, 126, 156, 0.6);
    color: #fff;
    font-family: var(--bs-font-sans-serif);
    white-space: nowrap;
    z-index: 100;
    background: #242744;
    pointer-events: none;
}

.order-fav-btn:hover:before {
    opacity: 1;
}

#category-drop > button[onclick="selectCategory(-1)"] {
    display: none;
}

.modal .modal-dialog .modal-content .modal-body form .inp {
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.paperclip {
    color: #8a6df9;
}

.files-label {
    color: #fff;
}

div.question > div:nth-child(1) {
    margin-bottom: 15px;
}

div.question > div:nth-child(2) > a > img {
    max-width: 100px;
    max-height: 100px;
}

#search-field {
    position: absolute;
    left: 12px;
    top: 0;
    width: calc(100% - 89px);
    z-index: 100;
}

#search-field button {
    display: none;
}

#search-field input {
    height: 42px;
    border: none;
    padding: 0.075rem 0.75rem;
}

.select2-results > div:nth-child(1) {
    scrollbar-width: none;
}

.select2-container .select2-selection__text {
    color: #fff;
}

.select2-dropdown {
    border: 1px solid #f5f5f514;
}

.select2-results__options,
.select2-dropdown {
    background: #141627;
}

.select2-results__option {
    transition: 0.5s;
}

.select2-results__option:hover {
    background: #f5f5f514;
}

#order_extra_fee,
#order_total {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 50px;
}

#field-commission-total {
    margin: 0;
}

#field-commission-extra_fee-copy,
#field-commission-total-copy {
    height: 40px;
    align-self: center;
}

#order_total {
    margin-bottom: 40px;
}

.page .main .main_cont .bottom_cont .main_bottom_cont .main_label {
    font-weight: 600;
    font-size: 18px;
}

.control-label-copy {
    font-size: 14px;
}

.nav-pills {
    display: flex;
    flex-direction: column;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(132, 126, 156, 0.2);
}

.col-lg-offset-2 {
    width: 100%;
}

.nav-buttons a {
    padding: 6px 15px;
    font-size: 14px;
    background: rgba(38, 39, 62, 0.4);
    border: 1px solid rgba(89, 92, 152, 0.2);
    border-radius: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    color: #847e9c;
    display: inline-block;
}

.nav-buttons a:hover {
    color: #fff;
}

.nav-buttons div.active a {
    background: linear-gradient(113.36deg, #8a6df9 -12.22%, #b6a3ff 179.61%);
    border: 1px solid rgba(89, 92, 152, 0.2);
    color: #fff;
}

#history-search .input-group {
    position: relative;
    margin-bottom: 30px;
}

#history-search .form-control {
    border-radius: 10px;
}

#history-search .input-group-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    transform: translate(0, -50%);
}

#history-search .btn {
    background: transparent;
    width: 20px;
    height: 20px;
    min-width: auto;
    min-height: auto;
}

.table-refunds {
    width: 100%;
}

.table-refunds thead th {
    padding: 10px 10px;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    color: #fff;
    background: #696c9c;
}

.table-refunds td {
    padding: 10px 10px;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #a39bc0;
    border: 1px solid rgba(132, 126, 156, 0.2);
}

.table-refunds td * {
    color: #a39bc0;
}

.alert {
    background: #696c9c;
    border: 0;
    color: #fff;
}

#instruction_instruction {
    background: rgba(132, 126, 156, 0.6);
    border: 1px solid rgba(132, 126, 156, 0.6);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

#instruction_instruction .control-label {
    margin: 0;
    border-bottom: 1px solid #ffffff14;
    width: 100%;
}

.add-funds #form-payment {
    display: block;
}

.add-funds .payment__history {
    display: none;
}

.add-funds.history #form-payment {
    display: none;
}

.add-funds.history .payment__history {
    display: block;
}

.change__payment {
    gap: 15px;
    max-width: 700px;
}

.change__payment ul.cstmnav li {
    width: 100%;
}

.add-funds button {
    text-transform: uppercase;
    width: 100% !important;
    max-width: none !important;
    position: relative !important;
}

#payment__history table {
    color: #fff;
}

#payment__history th,
#payment__history td {
    border: 1px solid #847e9c33;
}

#payment__history th {
    background: #696c9c;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

#payment__history td {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #a39bc0;
}

#instruction_instruction {
    max-width: 1050px;
}

#form-payment .select:has(#method) {
    max-width: 260px;
}

#form-payment .btn_c {
    max-width: 516px;
}

#form-payment #amount {
    max-width: 400px;
}

#form-payment .exchangerate {
    max-width: 260px;
}

#payment__history {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.main_cont:has(.main_cont) {
    overflow: hidden !important;
}

.repeat__button {
    background: transparent;
}

.question_text,
.question_text * {
    color: #000;
    font-weight: 400;
    font-size: 12px;
}

.question_text hr {
    display: none;
}

.repeat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    background: rgba(29, 30, 49, 0.8);
    backdrop-filter: blur(2px);
    padding: 20px;
    transition: all 0.3s ease-in-out;
    z-index: 10;
}

.repeat-modal.active {
    visibility: visible;
    opacity: 1;
}

.repeat-modal__window {
    background: #352f60;
    border-radius: 10px;
    padding: 35px 30px 30px;
    transform: translate(0, -20px);
    transition: transform 0.3s ease-in-out;
    position: relative;
}

.active .repeat-modal__window {
    transform: none;
}

.repeat-modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: url(https://promovk.ru/panel/images/close.svg) no-repeat center
        center/cover;
}

.repeat-modal__title {
    margin-bottom: 25px;
}

.repeat-modal__window .btn_m {
    max-width: none;
    width: 100%;
}

.sidebar .menu-box-title::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 3px;
    background-color: #00ffc2;
    border-radius: 2px;
    box-shadow: 0 0 5px #00ffc2, 0 0 10px #00ffc2, 0 0 15px #00ffc2;
}

@media (max-width: 1600px) {
    .sidebar .menu-box-title::before {
        display: none;
    }

    .sidebar-open .menu-box-title::before {
        display: inline-block;
    }

    .sidebar .menu-box-title {
        display: none !important;
    }

    .sidebar-open .menu-box-title {
        display: flex !important;
    }
}

/* @media (max-width: 1600px) {
    #order_extra_fee,
    #order_total {
        gap: 14px 24px;
    }
} */

/* @media (max-width: 575px) {
    .page .main .sidebar {
        width: 35px;
    }

    .page .small_sidebar .sidebar {
        width: 300px;
    }

    .page .main .main_cont {
        margin-left: 35px;
    }

    .page .main .main_cont {
        width: calc(100% - 35px);
    }

    .neworder__container {
        display: flex;
        flex-direction: column-reverse;
    }

    .neworder__container > div {
        width: 100%;
        max-width: none;
    }

    .neworder__buttons {
        margin: 0 !important;
        flex-direction: column;
        gap: 10px !important;
    }

    .neworder__buttons > li {
        width: 100% !important;
    }

    .neworder__buttons button {
        max-width: none !important;
        width: 100% !important;
        position: relative !important;
    }

    .change__payment.cstmnav {
        flex-direction: column;
    }

    .change__payment.cstmnav li {
        width: 100%;
    }

    th {
        white-space: nowrap;
    }

    .row:has(table),
    .has__table {
        overflow: auto;
        scrollbar-width: thin;
    }

    .botsect h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .xs_sidebar_btn {
        display: block;
        position: absolute;
        top: 10px;
        left: 10px;
        background: none;
        border: none;
        z-index: 1100;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -240px;
        width: 240px;
        height: 100vh;
        background: #1f1f2d;
        overflow-y: auto;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .sidebar.sidebar-open {
        left: 0;
    }

    .main_cont {
        margin-left: 0 !important;
    }

    .main.sidebar-opened .main_cont {
        opacity: 0.4;
    }

    .sidebar .menu-box-title,
    .sidebar .nav-link .txt {
        display: block !important;
    }

    .nav-link {
        justify-content: flex-start;
        padding: 10px 20px;
    }

    .nav-link .icon img {
        width: 20px;
        height: 20px;
    }
} */
/* Убираем горизонтальный скролл глобально */
/* html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
} */

/* Кнопка-гамбургер */
/* .hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background: #8a6df9;
    border: none;
    padding: 10px;
    color: white;
    font-size: 20px;
    cursor: pointer;
} */

/* Боковое меню */
/* .sidebar {
    position: fixed;
    top: 0;
    left: -250px; 
    width: 250px;
    height: 100vh;
    background-color: #1f1f2d;
    color: white;
    padding: 20px;
    box-sizing: border-box;
    transition: left 0.3s ease;
    z-index: 1000;
} */

/* Когда открыто */
/* .sidebar.open {
    left: 0;
} */

/* Контент */
/* .content {
    padding: 100px 20px;
} */
