a {
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.wrapper {
    overflow: hidden;
}
.sidebar-mini .content-wrapper{
    padding-top: 57px;
}
.card-sticky {
    position: sticky;
    top: 57px;
    background-color: #fff;
    z-index: 2;
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link, .page-item.active .page-link {
    background-color: #5a6268;
    border-color: #545b62;
}
.nav-pills .nav-link:not(.active):hover, .page-link {
    color: #545b62;
}
@media
only screen and (-moz-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (-Webkit-min-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
    .selected, input[type=color], input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], select {
        font-size: 1rem
    }

    input, select, textarea {
        font-size: 1rem !important
    }
}
.action-column button {
    padding: 0;
}
.action-column button:after {
    display: none;
}
.action-column button i {
    font-size: 1.5rem;
    color: #6c757d;
}

.action-column i {
    font-size: 1.2rem;
    color: #6c757d;
}
i.ion-icons {
    font-size: 1.2rem;
    color: #6c757d;
}
.nav-icon {
    font-size: 1.2rem!important;
    height: 1.4rem!important;
    width: auto!important;
    margin-right: .5rem!important;
    margin-left: 0.05rem!important;
    text-align: left!important;
    display: flex;
    align-items: center;
}
.nav-icon:before {
    height: 1.4rem!important;
    width: auto!important;
    display: flex!important;
    align-items: center;
}
.fa-beat  {
    animation: 1.5s ease 0s infinite beat;
}
.fa-unread {
    animation: 1.5s ease 0s infinite beat, 1.5s ease 0s infinite pulse
}
@keyframes beat {
    0%, 50%, 100% { transform: scale(1, 1); }
    30%, 80% { transform: scale(0.62, 0.65); }
}
@keyframes pulse {
    0%, 50%, 100% {  color: #ea0f0f; }
    30%, 80% { color: inherit; }
}
.nav-sidebar .nav-item>.nav-link {
    margin-bottom: 0;
    display: flex;
}

.nav-sidebar .nav-item>.nav-link p {
    text-overflow: ellipsis;
}

.nav-sidebar .nav-item>.nav-link .nav-icon {
    width: 1.4rem!important;
    margin-right: .85rem!important;
    justify-content: center;
}

.nav-sidebar .nav-link p {
    white-space: nowrap;
}

.nav-sidebar .nav-link>.right, .nav-sidebar .nav-link>p>.right {
    right: .5rem;
    top: .8rem;
}
.nav-sidebar .nav-link>.right, .nav-sidebar .nav-link>p>.right.badge {
    top: 0;
    right: 0;
    border-radius: 50%;
    padding: .25em .5em;
}
.main-sidebar.main-navbar{
    position: relative !important;
    min-height: unset !important;
    width: 100%;
    z-index: 2;
    margin-left: unset!important;
}
/*@media (max-width:767.98px)*/
/*.main-sidebar, .main-sidebar::before {*/
/*    box-shadow: none!important;*/
/*    margin-left: -250px;*/
/*}*/
.layout-top-nav .main-header{
    margin-left: auto !important;
}
.main-header{
    border-bottom: unset;
}

.navbar{
    border-bottom: 1px solid #dee2e6;
    position: fixed;
    width: 100vw;
    z-index: 999;
}

/*.nav-sidebar .menu-open>.nav-treeview, .nav-sidebar .menu-is-opening>.nav-treeview {*/
/*    display: flex!important;*/
/*}*/
.pillsContainerWrapper .nav-sidebar.nav-child-indent .nav-treeview{
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background-color: #ffffff;
    z-index: 1001;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    padding: .5rem .5rem .5rem 1.5rem;
}

.pillsContainerWrapper{
    width: 100%;
    display: inline-flex;
    padding: .5rem 0;
    margin-top: 57px;
    overflow-x: clip;
}
.pillsContainerHider {
    width: 100%;
    height: 40px;
    background-color: #fff;
    z-index: 3;
}
@media (min-width:1200px){.container, .container-lg, .container-md, .container-sm, .container-xl, .trendingPillsContainer {
    max-width: 1140px;
}}
@media (min-width:992px){.container, .container-lg, .container-md, .container-sm, .trendingPillsContainer {
    max-width: 85vw;
}}
@media (min-width:768px){.container, .container-md, .container-sm, .trendingPillsContainer {
    max-width: 90vw;
}}
@media (min-width:576px){.container, .container-sm, .trendingPillsContainer {
    max-width: 95vw;
}}
@media (max-width:1199px){.hide-on-m {
    display: none;
}}
@media (max-width:991px){.hide-on-s {
    display: none;
}}
/* MAIN MENU */


.trendingPillsContainer {
    position: relative;
    padding:0 5px 0 0;
    z-index:2;
}

.trendingPillsContainer .leftArrowWrapper, .trendingPillsContainer .rightArrowWrapper {
    position: absolute;
    display: flex;
    z-index: 10;
    top: 0;
    -ms-flex-direction: row;
    -moz-flex-direction: row;
    -webkit-flex-direction: row;
    flex-direction: row;
    cursor: pointer;
    height:100%
}

.trendingPillsContainer .leftArrowWrapper .arrow, .trendingPillsContainer .rightArrowWrapper .arrow {
    height: 100%;
    padding: 11px 23px 11px 16px;
    box-sizing: border-box;
    position:relative
}

.trendingPillsContainer .leftArrowWrapper .arrow i, .trendingPillsContainer .rightArrowWrapper .arrow i {
    pointer-events: none;
    font-size: 15px;
    line-height: 20px;
    position: absolute;
    left: 50%;
    top: .75rem;
    transform:translateX(-50%)
}

.trendingPillsContainer .leftArrowWrapper .arrow i:before, .trendingPillsContainer .rightArrowWrapper .arrow i:before {
    color:#969696
}

.trendingPillsContainer .leftArrowWrapper .arrow:hover, .trendingPillsContainer .rightArrowWrapper .arrow:hover i:before {
    color:#000000
}

.trendingPillsContainer .leftArrowWrapper .arrow:active, .trendingPillsContainer .rightArrowWrapper .arrow:active i:before {
    color:#000000
}

.trendingPillsContainer .leftArrowWrapper.hide, .trendingPillsContainer .rightArrowWrapper.hide {
    display:none
}

.trendingPillsContainer .leftArrowWrapper {
    left: 0;
    background: linear-gradient(90deg, #fff 47.62%, rgba(255, 255, 255, 0) 100%);
    padding-right:20px;
    z-index:3;
}

.trendingPillsContainer .leftArrowWrapper .arrow {
    background-color:transparent
}

.trendingPillsContainer .leftArrowWrapper .arrow i {
    margin-left:-1px
}

.trendingPillsContainer .rightArrowWrapper {
    right: 0;
    background: linear-gradient(275deg, #fff 47.62%, rgba(255, 255, 255, 0) 100%);
    padding-left:20px;
    z-index:3;
}

.trendingPillsContainer .rightArrowWrapper .arrow {
    background-color:transparent
}

.trendingPillsContainer .rightArrowWrapper .arrow i {
    margin-left:2px
}

.trendingPillsContainer .scrollableWrapper {
    white-space: nowrap;
    overflow:visible;
    max-width: 100vw;
}

.trendingPillsContainer .trendingNowWrapper {
    transition-duration: .15s;
    transition-timing-function: cubic-bezier(.05, 0, 0, 1);
    will-change: transform;
    display: inline-block;
    white-space:nowrap;
    width: max-content;
    /*max-width: max-content;*/
}

.trendingPillsContainer .trendingNowWrapper li {
    display: inline-flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-right:5px;
    position: relative;
}

.trendingPillsContainer .trendingNowWrapper li.has-treeview > .nav-link {
    padding: .5rem 1.5rem .5rem 1rem;
}

.trendingPillsContainer .trendingNowWrapper li a {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition:background-color .5s cubic-bezier(.05, 0, 0, 1)
}

.trendingPillsContainer .trendingNowWrapper li a:hover {
    /*text-decoration: none;*/
    /*background-color:#212121*/
}

.trendingPillsContainer .trendingNowWrapper li.has-treeview li {
    display: block;
    text-align: left;
}

td, th {
    border: 1px solid #dddddd;
}

.small-box .icon>i.fa, .small-box .icon>i.fab, .small-box .icon>i.fad, .small-box .icon>i.fal, .small-box .icon>i.far, .small-box .icon>i.fas, .small-box .icon>i.ion {
    top: calc(50% - 35px);
}

/* Скрываем стандартную радиокнопку */
.custom-radio-button {
    display: none;
}

/* Добавляем вид кнопки для кастомной радиокнопки */
.custom-radio-button + label {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #6c757d; /* Цвет фона кнопки */
    color: #fff; /* Цвет текста */
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

/* Эффект при наведении */
.custom-radio-button + label:hover {
    background-color: #495357;
}

/* Эффект активного состояния */
.custom-radio-button:checked + label {
    background-color: #28a745; /* Цвет фона при выборе */
    border-color: #28a745; /* Цвет рамки при выборе */
}

/* Можно добавить стиль для изменения размера */
.custom-radio-button + label {
    width: auto; /* Можно задать ширину, если нужно */
}

.small-text {
    font-size: 12px;
}

.medium-text {
    font-size: 16px;
}

.large-text {
    font-size: 22px;
}

.custom-file-label.custom-attachment::after {
    content: "\f0c6";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.direct-chat-text-notification {
    border-radius: 0.3rem;
    background-color: #A8E5ECFF;
    border: 1px solid #d2d6de;
    color: #444;
    margin: 5px 100px 5px 100px;
    padding: 2px 6px;
    position: relative;
    text-align: center;
}
.border-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
    background-color: #007bff;
}
.chat-container {
    background: #fff;
    overflow-y: auto;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.date-header {
    position: sticky;
    top: 10px;
    background: #e0e0e0;
    text-align: center;
    font-size: 12px;
    color: #555;
    padding: 5px 0;
    z-index: 1;
    margin: 10px 0;
    border-radius: 5px;
}

.message {
    display: flex;
    flex-direction: row;
    margin: 10px;
    align-items: flex-start;
}

.bubble {
    max-width: 70%;
    background: #f1f0f0;
    border-radius: 12px;
    padding: 10px;
    position: relative;
}

.message.user .bubble {
    background: #dcf8c6;
    margin-left: auto;
}

.bubble-header {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
}

.timestamp {
    font-size: 10px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

.system-inline-message {
    text-align: center;
    font-size: 12px;
    color: #555;
    background: #eaeaea;
    padding: 6px 10px;
    border-radius: 10px;
    margin: 15px auto;
    max-width: 60%;
    display: inline-block;
}

.attachment-image {
    max-width: 100%;
    margin-top: 5px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.attachment-file {
    display: inline-block;
    margin-top: 6px;
    background: #f2f2f2;
    padding: 6px 10px;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.attachment-file:hover {
    background: #e0e0e0;
}
.upload-chat {
    display: flex;
    align-items: center;
    background: #f5f5f7;
    border-radius: 20px;
    padding: 10px 14px;
    width: 100%;
    position: relative;
    font-family: sans-serif;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 55px;
    transition: all 0.3s ease;
}

.chat-input-group {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    width: 100%;
    min-height: 55px;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.upload-progress-block {
    animation: fadeIn 0.3s ease forwards;
    width: 100%;
    min-height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upload-progress-bar {
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: #28a745;
    transition: width 0.3s ease;
}

.d-none {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chat-icon-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

.chat-icon-button:hover {
    transform: scale(1.05);
}

.chat-icon-button:active {
    transform: scale(0.97);
}

.chat-send-btn {
    background-color: #007bff;
}

.chat-send-btn:hover {
    background-color: #0069d9;
}

.chat-attach-btn {
    background-color: #6c757d;
}

.chat-attach-btn:hover {
    background-color: #5a6268;
}

#chat-message {
    margin-bottom: 4px;
    border: none;
    background: transparent;
    outline: none;
    flex-grow: 1;
}
.chat-cancel-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: #dee2e6;
    color: #495057;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    padding: 0;
}

.chat-cancel-button:hover {
    background-color: #ced4da;
    transform: scale(1.05);
}

.chat-cancel-button:active {
    transform: scale(0.95);
}

.clients-hidden {
    height: 0;
    overflow: hidden;
    transition: height 0.5s ease;
    margin-top: 5px;
}
a.toggle-open, a.toggle-close {
    cursor: pointer;
    text-decoration: none;
}

.paytile {
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: .75rem 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.paytile:hover {
    border-color: var(#004f9f);
    box-shadow: 0 .25rem .6rem rgba(0,0,0,.08);
}

/* чекбокс */
.paytile-check {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0;
    margin-right: 1rem;   /* вместо me-3 для BS4 */
    border: 2px solid #adb5bd;
    border-radius: .25rem;
    transition: background-color .15s ease, border-color .15s ease;
}
.paytile-check:focus {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(0,79,159,.25);
    border-color: var(#004f9f);
}
.paytile-check:checked {
    background-color: var(#004f9f);
    border-color: var(#004f9f);
    background-image:
            linear-gradient(-45deg,transparent 65%, #fff 65%, #fff 80%, transparent 80%),
            linear-gradient(45deg,transparent 45%, #fff 45%, #fff 60%, transparent 60%);
    background-size: 60% 60%, 60% 60%;
    background-position: 35% 60%, 55% 40%;
    background-repeat: no-repeat;     /* белая галочка */
}

/* текст */
.paytile-title {
    font-weight: 500;
    color: #212529;
    transition: color .15s ease;
}

/* выделение всей плитки при выборе */
.paytile-check:checked ~ .paytile-title {
    color: var(#004f9f);
    font-weight: 600;
}
.paytile-check:checked ~ .paytile-title::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(rgba(0,79,159,.06));
    border-radius: .5rem;
    z-index: -1;
}
.bot-orders-filter-banner {
    border-radius: .5rem;
    border-left-width: 4px !important; /* как у стандартного callout */
    padding: .6rem .9rem;
    margin-bottom: 1rem;
}

/* Внутренняя компоновка */
.bot-orders-filter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Левая часть: иконка + текст */
.bot-orders-filter-main {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.bot-orders-filter-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: .75rem;
    color: #fff;
    font-size: .9rem;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    flex-shrink: 0;
}

.bot-orders-filter-text {
    display: flex;
    flex-direction: column;
}

.bot-orders-filter-title {
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: .05rem;
}

.bot-orders-filter-subtitle {
    font-size: .8rem;
}

.bot-orders-filter-subtitle .badge {
    font-size: .8rem!important;
}

/* Правая часть: кнопка сброса */
.bot-orders-filter-actions {
    margin-left: 1rem;
}

.bot-orders-filter-reset {
    border-radius: 999px;
    padding: .25rem .9rem;
    font-size: .8rem;
    font-weight: 500;
    white-space: nowrap;
    color: #6c757d!important;
}

.bot-orders-filter-reset i {
    font-size: .85rem;
}

/* Мобильная адаптация */
@media (max-width: 767.98px) {
    .bot-orders-filter-inner {
        align-items: flex-start;
    }
    .bot-orders-filter-actions {
        width: 100%;
        margin-left: 0;
        margin-top: .5rem;
        text-align: left;
    }
}