:root, [data-bs-theme=light] {
    --bs-primary: #393;
    --bs-secondary: #6c757d;
    --bs-primary-rgb: 67, 94, 190;
    --bs-secondary-rgb: 108, 117, 125;
    --bs-success-rgb: 25, 135, 84;
    --bs-primary-text-emphasis: #1b264c;
    --bs-secondary-text-emphasis: #2b2f32;
    --bs-success-text-emphasis: #0a3622;
    --bs-info-text-emphasis: #055160;
    --bs-warning-text-emphasis: #664d03;
    --bs-danger-text-emphasis: #58151c;
    --bs-light-text-emphasis: #495057;
    --bs-dark-text-emphasis: #495057;
    --bs-primary-bg-subtle: #d9dff2;
    --bs-secondary-bg-subtle: #f8f9fa;
    --bs-success-bg-subtle: #d1e7dd;
    --bs-info-bg-subtle: #cff4fc;
    --bs-warning-bg-subtle: #fff3cd;
    --bs-danger-bg-subtle: #f8d7da;
    --bs-light-bg-subtle: #fcfcfd;
    --bs-dark-bg-subtle: #ced4da;
    --bs-primary-border-subtle: #b4bfe5;
    --bs-secondary-border-subtle: #e9ecef;
    --bs-success-border-subtle: #a3cfbb;
    --bs-info-border-subtle: #9eeaf9;
    --bs-warning-border-subtle: #ffe69c;
    --bs-danger-border-subtle: #f1aeb5;
    --bs-light-border-subtle: #e9ecef;
    --bs-dark-border-subtle: #adb5bd;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-color: #333;
    --bs-body-color-rgb: 51, 51, 51;
    --bs-heading-color: #333;

    --my-menu-link-color: #25396f;
    --my-menu-link-color-hover: #435ebe;
    --my-menu-link-color-active: var(--my-menu-link-color-hover);

    --bs-card-color: #333;

    --bs-body-font-size: 0.875rem;

    --fancybox-zIndex: 2000;
}

.dropdown-menu {
    --bs-dropdown-font-size: 0.875rem;
    --bs-dropdown-min-width: 10rem;
}

.btn {
    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: .5rem;
    --bs-btn-font-size: 0.875rem;
}
.btn-sm, .btn-group-sm>.btn {
    --bs-btn-padding-y: .25rem;
    --bs-btn-padding-x: .5rem;
    --bs-btn-font-size: .75rem;
    --bs-btn-border-radius: .2rem;
}

.btn-lg, .btn-group-lg>.btn {
    --bs-btn-padding-y: .5rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-size: 1.25rem;
    --bs-btn-border-radius: .3rem;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #393;
    --bs-btn-border-color: #393;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2c7d2c;
    --bs-btn-hover-border-color: #2c7d2c;
    --bs-btn-focus-shadow-rgb: 95, 118, 200;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #2c7d2c;
    --bs-btn-active-border-color: #2c7d2c;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #058905;
    --bs-btn-disabled-border-color: #058905;
}

.btn-outline-primary {
    --bs-btn-color: #393;
    --bs-btn-border-color: #393;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #393;
    --bs-btn-hover-border-color:#393;
    --bs-btn-focus-shadow-rgb: 67, 94, 190;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #393;
    --bs-btn-active-border-color: #393;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    --bs-btn-disabled-color: #393;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #393;
    --bs-gradient: none;
}

.modal {
    --bs-modal-zindex: 2055;
}

.bd-blue-100 {
    color: #000;
    background-color: #cfe2ff
}

.bd-blue-200 {
    color: #000;
    background-color: #9ec5fe
}

.bd-blue-300 {
    color: #000;
    background-color: #6ea8fe
}

.bd-blue-400 {
    color: #000;
    background-color: #3d8bfd
}

.bd-blue-500 {
    color: #fff;
    background-color: #0d6efd
}

.bd-blue-600 {
    color: #fff;
    background-color: #0a58ca
}

.bd-blue-700 {
    color: #fff;
    background-color: #084298
}

.bd-blue-800 {
    color: #fff;
    background-color: #052c65
}

.bd-blue-900 {
    color: #fff;
    background-color: #031633
}

.bd-indigo-100 {
    color: #000;
    background-color: #e0cffc
}

.bd-indigo-200 {
    color: #000;
    background-color: #c29ffa
}

.bd-indigo-300 {
    color: #000;
    background-color: #a370f7
}

.bd-indigo-400 {
    color: #fff;
    background-color: #8540f5
}

.bd-indigo-500 {
    color: #fff;
    background-color: #6610f2
}

.bd-indigo-600 {
    color: #fff;
    background-color: #520dc2
}

.bd-indigo-700 {
    color: #fff;
    background-color: #3d0a91
}

.bd-indigo-800 {
    color: #fff;
    background-color: #290661
}

.bd-indigo-900 {
    color: #fff;
    background-color: #140330
}

.bd-purple-100 {
    color: #000;
    background-color: #e2d9f3
}

.bd-purple-200 {
    color: #000;
    background-color: #c5b3e6
}

.bd-purple-300 {
    color: #000;
    background-color: #a98eda
}

.bd-purple-400 {
    color: #000;
    background-color: #8c68cd
}

.bd-purple-500 {
    color: #fff;
    background-color: #6f42c1
}

.bd-purple-600 {
    color: #fff;
    background-color: #59359a
}

.bd-purple-700 {
    color: #fff;
    background-color: #432874
}

.bd-purple-800 {
    color: #fff;
    background-color: #2c1a4d
}

.bd-purple-900 {
    color: #fff;
    background-color: #160d27
}

.bd-pink-100 {
    color: #000;
    background-color: #f7d6e6
}

.bd-pink-200 {
    color: #000;
    background-color: #efadce
}

.bd-pink-300 {
    color: #000;
    background-color: #e685b5
}

.bd-pink-400 {
    color: #000;
    background-color: #de5c9d
}

.bd-pink-500 {
    color: #fff;
    background-color: #d63384
}

.bd-pink-600 {
    color: #fff;
    background-color: #ab296a
}

.bd-pink-700 {
    color: #fff;
    background-color: #801f4f
}

.bd-pink-800 {
    color: #fff;
    background-color: #561435
}

.bd-pink-900 {
    color: #fff;
    background-color: #2b0a1a
}

.bd-red-100 {
    color: #000;
    background-color: #f8d7da
}

.bd-red-200 {
    color: #000;
    background-color: #f1aeb5
}

.bd-red-300 {
    color: #000;
    background-color: #ea868f
}

.bd-red-400 {
    color: #000;
    background-color: #e35d6a
}

.bd-red-500 {
    color: #fff;
    background-color: #dc3545
}

.bd-red-600 {
    color: #fff;
    background-color: #b02a37
}

.bd-red-700 {
    color: #fff;
    background-color: #842029
}

.bd-red-800 {
    color: #fff;
    background-color: #58151c
}

.bd-red-900 {
    color: #fff;
    background-color: #2c0b0e
}

.bd-orange-100 {
    color: #000;
    background-color: #ffe5d0
}

.bd-orange-200 {
    color: #000;
    background-color: #fecba1
}

.bd-orange-300 {
    color: #000;
    background-color: #feb272
}

.bd-orange-400 {
    color: #000;
    background-color: #fd9843
}

.bd-orange-500 {
    color: #000;
    background-color: #fd7e14
}

.bd-orange-600 {
    color: #000;
    background-color: #ca6510
}

.bd-orange-700 {
    color: #fff;
    background-color: #984c0c
}

.bd-orange-800 {
    color: #fff;
    background-color: #653208
}

.bd-orange-900 {
    color: #fff;
    background-color: #331904
}

.bd-yellow-100 {
    color: #000;
    background-color: #fff3cd
}

.bd-yellow-200 {
    color: #000;
    background-color: #ffe69c
}

.bd-yellow-300 {
    color: #000;
    background-color: #ffda6a
}

.bd-yellow-400 {
    color: #000;
    background-color: #ffcd39
}

.bd-yellow-500 {
    color: #000;
    background-color: #ffc107
}

.bd-yellow-600 {
    color: #000;
    background-color: #cc9a06
}

.bd-yellow-700 {
    color: #000;
    background-color: #997404
}

.bd-yellow-800 {
    color: #fff;
    background-color: #664d03
}

.bd-yellow-900 {
    color: #fff;
    background-color: #332701
}

.bd-green-100 {
    color: #000;
    background-color: #d1e7dd
}

.bd-green-200 {
    color: #000;
    background-color: #a3cfbb
}

.bd-green-300 {
    color: #000;
    background-color: #75b798
}

.bd-green-400 {
    color: #000;
    background-color: #479f76
}

.bd-green-500 {
    color: #fff;
    background-color: #198754
}

.bd-green-600 {
    color: #fff;
    background-color: #146c43
}

.bd-green-700 {
    color: #fff;
    background-color: #0f5132
}

.bd-green-800 {
    color: #fff;
    background-color: #0a3622
}

.bd-green-900 {
    color: #fff;
    background-color: #051b11
}

.bd-teal-100 {
    color: #000;
    background-color: #d2f4ea
}

.bd-teal-200 {
    color: #000;
    background-color: #a6e9d5
}

.bd-teal-300 {
    color: #000;
    background-color: #79dfc1
}

.bd-teal-400 {
    color: #000;
    background-color: #4dd4ac
}

.bd-teal-500 {
    color: #000;
    background-color: #20c997
}

.bd-teal-600 {
    color: #000;
    background-color: #1aa179
}

.bd-teal-700 {
    color: #fff;
    background-color: #13795b
}

.bd-teal-800 {
    color: #fff;
    background-color: #0d503c
}

.bd-teal-900 {
    color: #fff;
    background-color: #06281e
}

.bd-cyan-100 {
    color: #000;
    background-color: #cff4fc
}

.bd-cyan-200 {
    color: #000;
    background-color: #9eeaf9
}

.bd-cyan-300 {
    color: #000;
    background-color: #6edff6
}

.bd-cyan-400 {
    color: #000;
    background-color: #3dd5f3
}

.bd-cyan-500 {
    color: #000;
    background-color: #0dcaf0
}

.bd-cyan-600 {
    color: #000;
    background-color: #0aa2c0
}

.bd-cyan-700 {
    color: #fff;
    background-color: #087990
}

.bd-cyan-800 {
    color: #fff;
    background-color: #055160
}

.bd-cyan-900 {
    color: #fff;
    background-color: #032830
}

.bd-gray-100 {
    color: #000;
    background-color: #f8f9fa
}

.bd-gray-200 {
    color: #000;
    background-color: #e9ecef
}

.bd-gray-300 {
    color: #000;
    background-color: #dee2e6
}

.bd-gray-400 {
    color: #000;
    background-color: #ced4da
}

.bd-gray-500 {
    color: #000;
    background-color: #adb5bd
}

.bd-gray-600 {
    color: #fff;
    background-color: #6c757d
}

.bd-gray-700 {
    color: #fff;
    background-color: #495057
}

.bd-gray-800 {
    color: #fff;
    background-color: #343a40
}

.bd-gray-900 {
    color: #fff;
    background-color: #212529
}

.bd-white {
    color: #000;
    background-color: #fff
}

.bd-black {
    color: #fff;
    background-color: #000
}

.table, .dataTable-table {
    --bs-table-hover-bg: #f6f8f9;
}

.sidebar-wrapper {
    background: transparent;
}

.sidebar-wrapper .sidebar-header {
    padding: 1rem 0.5rem;
}

.sidebar-wrapper .sidebar-header img,
.navbar .logo img {
    height: 2rem;
    display: block;
    margin-left: 0.5rem;
}

.navbar .logo img {
    margin-left: 0;
}

.burger-btn .bi {
    width: 1.75rem;
    height: 1.75rem;
    line-height: 1;
    margin-left: 2px;
}

.sidebar-wrapper .menu {
    margin-top: 0;
    padding: 0 0.5rem;
}

.sidebar-wrapper .menu .sidebar-link span {
    margin-left: 0.5rem;
}

.sidebar-wrapper .menu .sidebar-link {
    padding: .5rem;
    color: var(--my-menu-link-color);
}

.sidebar-wrapper .menu .sidebar-title {
    padding: 0 0.5rem;
}

.sidebar-wrapper .menu .submenu .submenu-item a {
    padding: .35rem 0.5rem;
}

.sidebar-wrapper {
    width: 230px;
}

#sidebar ~ #main {
    margin-left: 230px;
    transition: margin-left .7s cubic-bezier(.22, 1, .36, 1);
}


.sidebar-wrapper .menu .sidebar-item.active > .sidebar-link {
    background-color: #F9D3BC;
}

.sidebar-wrapper .menu .sidebar-item.active > .sidebar-link svg, .sidebar-wrapper .menu .sidebar-item.active > .sidebar-link i {
    fill: var(--my-menu-link-color);
    color: var(--my-menu-link-color);
}

.sidebar-wrapper .menu .sidebar-item.active > .sidebar-link span,
.sidebar-item.has-sub > .sidebar-link {
    color: var(--my-menu-link-color);
}

.sidebar-item.has-sub > .sidebar-link:after,
.sidebar-wrapper .menu .sidebar-item.active.has-sub .sidebar-link:after {
    color: var(--my-menu-link-color);
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9" style="fill:none;stroke:gray;stroke-width:1"></polyline></svg>');
}

.sidebar-item .badge-notification {
    right: -8px;
    top: 1px;
    padding: 3px 3px;
    min-width: 18px;
    font-size: 12px;
    font-weight: normal;
    color: #fff !important;
    margin: 0 !important;
    visibility: visible !important;
}

.burger-btn {
    color: var(--my-menu-link-color);
}

#sidebar .sidebar-wrapper {
    transition: width .7s cubic-bezier(.22, 1, .36, 1), background .7s cubic-bezier(.22, 1, .36, 1);
}

#sidebar.inactive .sidebar-wrapper {
    left: 0;
    overflow-x: hidden !important;
    width: 48px;
}

#sidebar.inactive.hover .sidebar-wrapper {
    width: 230px;
    background-color: rgba(255, 255, 255, 0.95);
}

#sidebar .sidebar-menu {

}

#sidebar.inactive ~ #main {
    margin-left: 48px;
}

#sidebar .sidebar-header .logo,
.sidebar-wrapper .menu .sidebar-link span,
#sidebar .sidebar-item.has-sub > .sidebar-link:after {
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
}

.sidebar-wrapper .menu .sidebar-link span {
    white-space: nowrap;
}

#sidebar.inactive .sidebar-header .logo,
#sidebar.inactive:not(.hover) .sidebar-wrapper .menu .sidebar-link span {
    -webkit-animation-name: fadeOut;
    animation-name: fadeOut;
    -webkit-animation-duration: .3s;
    animation-duration: .3s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    visibility: hidden;
}

.sidebar-wrapper .menu .submenu {
    padding-left: 1.5rem;
}

.sidebar-wrapper .menu .submenu.submenu-level-2 {
    padding-left: 0.8rem;
}

.submenu-item.has-sub .submenu-link {
    padding-right: 1.2rem;
}
.submenu-item.has-sub>.submenu-link:after {
    top: 5px;
    right: 0;
}

#sidebar.inactive:not(.hover) .sidebar-item.has-sub > .sidebar-link:after {
    opacity: 0;
    visibility: hidden;
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
}

#main {
    padding: 0 1rem 1rem;
}

@media (min-width: 1200px) {
    .bi.fs-1 {
        width: auto;
        height: 2.5rem !important
    }

    .bi.fs-2 {
        width: auto;
        height: 2rem !important
    }

    .bi.fs-3 {
        width: auto;
        height: 1.75rem !important
    }

    .bi.fs-4 {
        width: auto;
        height: 1.5rem !important
    }
}

.navbar-expand .navbar-nav .nav-link {
    color: var(--my-menu-link-color);
    transition: color .3s;
    padding: 0;
}

.navbar-expand .navbar-nav .nav-link:hover {
    color: var(--my-menu-link-color-hover)
}


.navbar-expand .navbar-nav .nav-link .bi {
    width: 1.5rem;
    height: 1.5rem;
}

.navbar-nav .badge-notification {
    right: -8px;
    padding: 3px 6px;
    font-size: 12px;
}

.module-submenu .badge-notification {
    right: -14px;
    top: -5px;
    padding: 3px 6px;
    font-size: 12px;
}

.navbar {
    height: auto;
    padding: 1rem 0;
}

.navbar .logo {
    opacity: 0;
    visibility: hidden;
    transition: all .7s cubic-bezier(.22, 1, .36, 1);
}

#sidebar.inactive + #main .navbar .logo {
    opacity: 1;
    visibility: visible;
}


.layout-horizontal .main-navbar {
    background-color: transparent;
    padding: 0;
    display: block !important;
}

.layout-horizontal .main-navbar ul > .menu-item .menu-link {
    color: var(--my-menu-link-color) !important;;
}

.layout-horizontal .main-navbar ul > .menu-item.active a {
    color: var(--my-menu-link-color-active) !important;
}

.layout-horizontal .main-navbar ul > .menu-item.has-sub .menu-link:after {
    color: var(--my-menu-link-color-active) !important;
}

.layout-horizontal .main-navbar ul > .menu-item:hover .menu-link {
    color: var(--my-menu-link-color-hover) !important;
}

.layout-horizontal .main-navbar .submenu .submenu-group .submenu-item a {
    color: var(--my-menu-link-color) !important;
    transition: color .3s;
}

.layout-horizontal .main-navbar .submenu .submenu-group .submenu-item a:hover {
    color: var(--my-menu-link-color-hover) !important
}

.layout-horizontal .main-navbar ul .menu-link span {
    height: auto;
}

.layout-horizontal .main-navbar ul {
    flex-direction: row;
    gap: 2rem !important;
}

.layout-horizontal .main-navbar ul>.menu-item.has-sub .menu-link {
    padding-right: 1.3rem;
}
.layout-horizontal .main-navbar ul>.menu-item.has-sub .menu-link:after {
    top: 2px;
}

h1, .h1 {
    font-size: 1.75rem;
    font-weight: 300;
}

h2, .h2 {
    font-size: 1.5rem;
    font-weight: 300;
}


h3, .h3 {
    font-size: 1.25rem;
    font-weight: 300;
}


h4, .h4 {
    font-size: 1.1rem
}

h5, .h5,
h6, .h6 {
    font-size: 1rem
}

.card {
    margin-bottom: 1.5rem;
}

.page-heading {
    margin: 0 0 1.25rem;
}

.page-subheading {
    margin: 0 0 0.75rem;
    border-radius: 24px;
    background-color: rgba(82, 92, 105, .08);
}

.page-subheading,
.page-subheading .nav-link {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(82, 92, 105, .8);
}

.page-subheading .nav-link {
    position: relative;
    padding: 0;
}


.page-subheading .nav-item {
    padding: 6px 13px;
}

.page-subheading .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(82, 92, 105, .4);
}

.nav-tabs {
    margin-bottom: 1rem;
}

.form-line {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 0;
}

.form-control {
    font-size: 0.875rem;
    /*padding: .5rem .75rem;*/
    line-height: 1.8;
}
.form-control-sm {
    padding: .25rem .2rem;
    font-size: 12px;
    border-radius: .2rem;
}
.form-select-sm {
    padding-top: .25rem;
    padding-bottom: .25rem;
    padding-left: .2rem;
    font-size: 12px;
    border-radius: .2rem;
    white-space: normal;
}

.form-control.for_date {
    max-width: 140px;
}

.form-control.max-w50 {
    max-width: 50px;
}
.form-control.max-w100 {
    max-width: 100px;
}
.form-control.max-w120 {
    max-width: 120px;
}
.form-control.max-w150 {
    max-width: 150px;
}
.form-control.max-w200 {
    max-width: 200px;
}

.form-control:read-only {
    background-color: #eee;
    opacity: 1;
}


#sidebar {
    position: relative;
    z-index: 1050;
}

.icons-td a,
.drag-handle {
    color: var(--bs-secondary);
    transition: color .3s;
}

.drag-handle {
    cursor: move;
}

.table th a {
    color: var(--bs-table-color);
    transition: color .3s;
}

.icons-td a:hover,
.table th a:hover,
.drag-handle:hover {
    color: var(--bs-secondary-text-emphasis);
}

.page-item i, .page-item svg {
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    width: 13px;
    height: 13px;
}

.page-item .page-link {
    font-size: .875rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 35px;
}

.col-checkbox {
    width: 30px;
}

.col-sort-icon {
    width: 30px;
}

.combo {
    opacity: 0;
    visibility: hidden;
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
    display: none;
}

.combo.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

.side-panel-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1300;
    background-color: rgba(0, 0, 0, .4);
    transform: translateZ(0);
    height: 100vh;
    width: 100vw;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
}

.side-panel.open .side-panel-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.side-panel-container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1400;
    display: block;
    width: calc(100% - 120px);
    background: #ebf1f4;
    transform: translateX(120%);
    transform-origin: 100% 50%;
    visibility: hidden;
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
}

.side-panel.open .side-panel-container {
    transform: translateX(0);
    visibility: visible;
}

.side-panel-labels {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    top: 17px;
    z-index: 1;
    transform: translateX(-100%);
    transition: all 300ms ease;
}

.side-panel-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 37px;
    height: 38px;
    padding: 5px 10px;
    margin-bottom: 10px;
    background: var(--bs-info);
    color: #fff;
    border-top-left-radius: 19px;
    border-bottom-left-radius: 19px;
    transition: all .3s;
    box-shadow: inset -6px 0 8px -10px rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.side-panel-label:hover {
    padding-right: 20px;
}

.side-panel-label .bi {
    width: auto;
    height: auto;
    line-height: 1;
    margin-top: -2px;
}

.side-panel-label .label-name {
    margin-left: 5px;
    text-transform: uppercase;
    font-size: 0.75rem;
    line-height: 1;
}

.side-panel-content-container {
    padding: 20px;
    overflow-y: auto;
    height: 100vh;
}

body.open-sidepanel {
    overflow: hidden;
}

.dotted-link {
    color: #80868e;
    opacity: 0.8;
    transition: opacity .3s;
    cursor: pointer;
}

.dotted-link:hover {
    opacity: 1;
}

.dotted-link span {
    border-bottom: 1px dashed currentColor;
}

.js-cards-list-item:last-child .delete-card,
.js-lines-list-item:last-child .delete-line,
.js-lines-custom-list-item:last-child .delete-line {
    display: none;
}

.js-cards-list-item:not(:last-child) .add-card {
    display: none;
}


.autocomplete-suggestions {
    border: 1px solid #dce7f1;
    background: #FFF;
    overflow: auto;
    min-width: 300px;
}

.autocomplete-suggestion {
    padding: .5rem .75rem;
    /*white-space: nowrap;*/
    overflow: hidden;
}

.autocomplete-selected {
    background: var(--bs-info);
}

.autocomplete-suggestions strong {
    font-weight: normal;
    color: #3399FF;
}

.autocomplete-group {
    padding: 2px 5px;
}

.autocomplete-group strong {
    display: block;
    border-bottom: 1px solid #000;
}
.autocomplete-no-suggestion {
    padding: .5rem .75rem;
}

.side-panel .form-footer {
    margin-bottom: 0;
}

.modal-link,
a {
    cursor: pointer;
}
.js-cards-list-item {
    position: relative;
}

.modal-backdrop {
    --bs-backdrop-zindex: 1550;
}

.modal .modal-header .close {
    padding: 0;
    width: 35px;
    height: 35px;
}

.custom-field-object {
    position: relative;
}

.custom-field-object-settings {
    position: absolute;
    right: 0;
    top: 0;
}

.custom-field-object-settings a.nav-link {
    color: var(--bs-secondary);
    opacity: 0.5;
    transition: opacity .3s;
}
.custom-field-object-settings a.nav-link:hover {
    opacity: 1;
}
.custom-field-object-settings a.nav-link .bi {
    width: 14px;
    height: 14px;
}


.deals-progress-line {
    display: inline-flex;
    justify-content: flex-start;
}
.deals-progress-line-item {
    width: 25px;
    height: 10px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-right: none;
    transition: box-shadow .3s;
}
.deals-progress-line-item:last-child {
    border-right: 1px solid #ccc;
}

.deals-progress-line-item.active ~ .deals-progress-line-item {
    background: #fff;
}

.deals-progress-line-item:hover {
    box-shadow: 0 0 .25rem rgba(0, 0, 0, .5);
}

.tooltip {
    font-family: var(--bs-body-font-family);
    z-index: 5000;
}

.wrap-kanban {
    overflow: auto;
    margin-right: -1rem;
    height: calc(100vh - 250px);
}
.kanban-grid {
    display: flex;
    /*overflow: auto;*/
    min-height: calc(100vh - 255px);
    scrollbar-arrow-color: #ccc;
    scrollbar-track-color: transparent;
    scrollbar-base-color: #ccc;
    scrollbar-shadow-color: #fff;
    scrollbar-highlight-color: #fff;
}
.kanban-column {
    display: flex;
    flex-direction: column;
    min-width: 240px;
    max-width: 340px;
    padding: 0 3px;
    position: relative;
    z-index: 1;
}

.kanban-column:before {
    content: '';
    position: absolute;
    left: 3px;
    top: 30px;
    bottom: 5px;
    width: 2px;
    z-index: 9;
    border-left: 1px dashed rgba(255, 255, 255, .55);
}
.kanban-column:first-child:before {
    left: 0;
}
.kanban-column-header {
    position: relative;
    margin: 0 -4px 5px 0;
    z-index: 9;
}
.kanban-column-title {
    display: block;
    height: 32px;
    position: relative;
    width: 100%;
    white-space: nowrap;
    box-sizing: border-box;
}

.kanban-column-title-info {
    display: flex;
    position: relative;
    margin: 0 18px 0 12px;
    z-index: 99;
}
.kanban-column-title-text {
    display: flex;
    flex: 1;
    overflow: hidden;
    margin: 0 4px 0 0;
    vertical-align: middle;
    height: 32px;
    line-height: 32px;
    font-size: 12px;
    color: #000;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
}
.kanban-column-title-text-inner {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.kanban-column-total-item {
    flex: 1;
    height: 32px;
    margin: 0 0 0 2px;
    line-height: 32px;
    font-size: 11px;
    color: #000;
    opacity: .7;
}
.kanban-column-total-item:before {
    content: '(';
}
.kanban-column-total-item:after {
    content: ')';
}
.kanban-column-title-bg {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 13px;
    z-index: -999;
    background: #ace9fb;
    border-radius: 3px 0 0 3px;
}
.kanban-tasks-column .kanban-column-title-bg {
    border-radius: 3px;
    right: 0;
}
.kanban-column-title-dark .kanban-column-total-item,
.kanban-column-title-dark .kanban-column-title-text {
    color: #fff;
}

.kanban-column-title-right {
    content: '';
    width: 14px;
    height: 32px;
    position: absolute;
    right: 0;
    top: 0;
}
.kanban-column-subtitle {
    min-height: 36px;
    overflow: hidden;
    position: relative;
    color: #525c68;
    text-align: center;
    z-index: 9;
}
.kanban-total-price {
    display: block;
    overflow: hidden;
    height: 50px;
    line-height: 50px;
    color: #525c68;
    text-align: center;
}
.kanban-total-price-total {
    width: 100%;
    overflow: hidden;
    font-size: 26px;
    white-space: nowrap;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    padding: 0 10px;
}
.kanban-column-subtitle .btn {
    width: 95%;
}

.kanban-column-body {
    flex: 1;
    padding: 1px 3px 0 1px;
    margin: 0 -2px 0 0;
    /*
    overflow-x: hidden;
    overflow-y: auto;
    */
    position: relative;
    opacity: 1;
    z-index: 99;
    /*
    scrollbar-arrow-color: #ccc;
    scrollbar-track-color: transparent;
    scrollbar-base-color: #ccc;
    scrollbar-shadow-color: #fff;
    scrollbar-highlight-color: #fff;
     */
    transition: .2s;
    /*
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
     */
}

.kanban-item {
    display: block;
    position: relative;
    padding: 0 0 6px 0;
    margin: 0 1px 0 -1px;
}
.kanban-item:hover {
    transform: translateY(-1px);
}
.kanban-item-wrapper {
    position: relative;
    background: #fff;
    border-radius: 10px;
    user-select: none;

    display: flex;
    flex-direction: column;
    padding: 10px 30px 10px 15px;
    overflow: hidden;
    min-height: 120px;
}
.kanban-item-title {
    position: relative;
    word-wrap: break-word;
    max-width: 100%;
    margin: 0 0 4px 0;
    color: #333;
    font-weight: bold;
    font-size: 13px;
    line-height: 15px;
    transition: color .2s;
}
.kanban-item-title:hover {
    color: var(--bs-link-hover-color);
}
.kanban-item-service {
    position: relative;
    word-wrap: break-word;
    max-width: 100%;
    margin: 0 0 4px 0;
    color: var(--bs-info);
    font-weight: bold;
    font-size: 13px;
    line-height: 15px;
    transition: color .2s;
}

.kanban-item-counter {
    font-size: 12px;
    line-height: 14px;
    color: #333;
}
.kanban-item-counter div{
    color: var(--bs-primary);
    font-size: 14px;
    line-height: 16px;
}
.kanban-item-line {
    display: block;
    width: 3px;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background-color: var(--kanban-item-color);
}
.kanban-item-total {
    font-size: 14px;
    line-height: 26px;
    color: #535c6a;
    margin: 0 0 1px 0;
    position: relative;
    z-index: 9;
}
.kanban-item-contact {
    font-size: 13px;
    line-height: 17px;
    color: #2660c0;
    margin: 0 0 3px 0;
    position: relative;
    z-index: 9;
    text-overflow: ellipsis;
}
.kanban-item-aid_responsible {
    font-size: 13px;
    line-height: 17px;
}
.kanban-item-result {
    font-size: 13px;
    line-height: 17px;
    font-weight: bold;
}
.kanban-item-date {
    font-size: 12px;
    color: #8e8e8e;
    margin: 0;
    position: relative;
    z-index: 9;
}
.kanban-item-aside {
    position: absolute;
    top: 5px;
    right: 5px;
    opacity: 1;
    z-index: 9;
}
.kanban-item-shadow {
    position: absolute;
    bottom: -15px;
    left: -3px;
    right: 0;
    height: 15px;
    border-top: 1px solid #e1e7ea;
    transition: .2s;
}
.kanban-item-shadow:before {
    content: '';
    position: absolute;
    left: 5px;
    right: 5px;
    top: -5px;
    height: 5px;
    opacity: 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,.5);
    transition: .2s;
    transform: translateY(-5px)
}
.kanban-item:hover .kanban-item-shadow {
    border-top: 1px solid transparent
}

.kanban-item-aside a {
    color: var(--bs-secondary);
    transition: color .3s;
}

.kanban-item-aside a:hover {
    color: var(--bs-secondary-text-emphasis);
}

.kanban-column-items {
    padding-bottom: 50px;
    min-height: 100%;
}

.kanban-item-tasks {
    margin-top: 10px;
}

.kanban-item-tasks .title {
    font-size: 12px;
    color: #8e8e8e;
}

.kanban-item-tasks div {
    font-size: 13px;
    line-height: 17px;
    color: #2660c0;
    margin: 0 0 3px 0;
    text-overflow: ellipsis;
}
.kanban-item-tasks .date {
    color: #535c6a;
}


.sticky-top {
    z-index: 299;
}

.module-submenu {
    position: relative;
    z-index: 300;
}

/* filters */
.toolbar-filter-box {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    display: flex;
    align-items: center;
    position: relative;
}
.main-ui-filter-search {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
    height: 39px;
    border-radius: 2px;
    background: #fff;
    font-size: 15px;
    line-height: 39px;
    outline: 0;
    z-index: 1;
    overflow: hidden;

    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 100%;
    min-width: 700px;
    max-width: 748px;
}

.main-ui-filter-search-square {
    display: inline-block;
    float: left;
    padding: 0 30px 0 13px;
    border-radius: 2px;
    background: #bcedfc;
    font-size: 15px;
    line-height: 30px;
    vertical-align: middle;
    transition: background .2s linear;
    z-index: 3;
    overflow: visible;

    position: relative;
    flex-grow: 0;
    flex-basis: min-content;
    margin: 3.5px;
    height: 31px;
    white-space: nowrap;
    outline: 0;
}

.main-ui-filter-search .main-ui-square.main-ui-filter-search-square:first-child {
    margin-left: 4px;
}
.main-ui-square-item {
    display: inline-block;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.main-ui-item-icon {
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 100%;
    transition: opacity .3s ease;
    opacity: .3;
    cursor: pointer;
}
.main-ui-item-icon:hover {
    opacity: 1;
}
.wrap-main-ui-filter-search-filter {
    position: relative;
    width: calc(100% - 70px);
}
.main-ui-filter-search-filter {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
    outline: 0;
    z-index: 1;
    overflow: hidden;

    box-sizing: border-box;
    padding: 0 55px 0 16px;
    width: 100%;
    height: 30px;
    border: 0;
    border-radius: 2px;
    background-color: #fff;
    font-size: 15px;
    line-height: 30px;
}

.main-ui-item-icon-block {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0 5px;
    height: 39px;
    width: 60px;
    z-index: 2;
}
.main-ui-item-icon-block .main-ui-item-icon{
    position: relative;
    margin: 0 4px;
}
.filter-search-plus {
    display: none;
    position: absolute;
    align-items: center;
    justify-content: center;
    left: 0;
    top:0;
    height: 30px;
    z-index: 9;
}
.main-ui-filter-search-square + .wrap-main-ui-filter-search-filter .filter-search-plus {
    display: flex;
}

.main-ui-filter-wrapper {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    z-index: 1000;
    color: #535c69;
    box-shadow: var(--bs-box-shadow);
    border-radius: 12px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all .3s;
}
.main-ui-filter-wrapper.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.main-ui-filter-inner-container {
    position: relative;
    margin: 0;
    min-height: 100%;
    width: 780px;
    background: #fff;
    box-sizing: border-box;
    border-radius: 12px;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
}
.main-ui-filter-sidebar {
    position: relative;
    box-sizing: border-box;
    padding: 20px;
    width: 215px;
    border-right: 1px solid #e7eaec;
    background: #f8fafb;
    text-transform: uppercase;
    border-radius: 12px 0 0 12px;
}
.main-ui-filter-field-container {
    position: relative;
    box-sizing: border-box;
    padding: 20px 25px;
    min-height: 200px;
    width: calc(100% - 215px);
}

.main-ui-filter-sidebar-title {
    border-bottom: 1px solid #e7eaec;
    text-align: center;
}
.main-ui-filter-sidebar-title-item {
    margin: 0 0 10px;
    color: #a0a5ab;
    font-size: 8px;
    font-weight: 600;
}
.main-ui-filter-sidebar-item-container {
    font-size: 12px;
    font-weight: 600;
}
.main-ui-filter-sidebar-item {
    position: relative;
    z-index: 1;
    padding: 0 0 0 3px;
    max-width: 174px;
    height: 39px;
    border-bottom: 1px solid #e7eaec;
    line-height: 38px;
    cursor: pointer;
}
.main-ui-filter-sidebar-item-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
    max-width: 170px;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #a0a5ab;
    transition: color .3s ease;
}
.main-ui-filter-sidebar-item .main-ui-filter-sidebar-item-text:hover,
.main-ui-filter-sidebar-item .main-ui-filter-sidebar-item-text.active {
    color: #000
}

.hidden {
    display: none !important;
}

.top-search {
    height: 34px;
    width: 500px;
    max-width: 650px;
    position: relative;
}

.top-search .but-serach {
    position: absolute;
    right: 12px;
    top: 5px;
}

.top-search-input {
    width: 100%;
    background-color: rgba(0, 0, 0, .07);
    height: 34px;
    border: none !important;
    outline: none !important;
    border-radius: 17px;
    padding: 0 40px 0 14px;
    transition: background-color .3s linear;
}
.top-search-input:focus {
    background-color: #fff;
}
.navbar-collapse {
    flex-grow: 0;
}

.quick_search_results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    box-shadow: var(--bs-box-shadow);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all .3s;
}
.quick_search_results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quick_search_results .group_results + .group_results {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eaf0f6;
}
.quick_search_results .group_results .title {
    color: #525c69;
    font-weight: bold;
    margin-bottom: 5px;
}

.documents-top-icon-buttons {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
}
.documents-top-icon-buttons .btn {
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.documents-top-icon-buttons .btn .icon {
    margin-right: 10px;
}

.one-file a {
    color: #80868e;
    opacity: 0.8;
    transition: opacity .3s;
    text-align: center;
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
}
.one-file a:hover {
    opacity: 1;
}

.link-doc-list-icon {
    opacity: 0.8;
    transition: opacity .3s;
}
.link-doc-list-icon:hover {
    opacity: 1;
}
.link-doc-list-icon.pdf {
    color: #fb2536;
}
.link-doc-list-icon.excel {
    color: #00703c;
}
.link-doc-list-icon .bi {
    width: 2rem;
    height: 2rem;
}

.wrap-filter-search-documents {
    width: calc(100% - 325px);
}
.wrap-filter-search-documents .main-ui-filter-search {
    max-width: none;
}

.copy-line.active {
    color: green;
}

.tasks-connection-item  + .tasks-connection-item {
    margin-top: 5px;
}

.td-file-link-icon {
    width: 70px;
}
.td-file-size {
    width: 110px;
}
.file-link-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-image: url("../images/files/file.svg");
    background-size: cover;
}
.file-link-icon.file-avi {
    background-image: url("../images/files/avi.svg");
}
.file-link-icon.file-bmp {
    background-image: url("../images/files/bmp.svg");
}
.file-link-icon.file-cad {
    background-image: url("../images/files/cad.svg");
}
.file-link-icon.file-doc {
    background-image: url("../images/files/doc.svg");
}
.file-link-icon.file-docx {
    background-image: url("../images/files/docx.svg");
}
.file-link-icon.file-dwg {
    background-image: url("../images/files/dwg.svg");
}
.file-link-icon.file-eps {
    background-image: url("../images/files/eps.svg");
}
.file-link-icon.file-exe {
    background-image: url("../images/files/exe.svg");
}
.file-link-icon.file-gif {
    background-image: url("../images/files/gif.svg");
}
.file-link-icon.file-jpg,
.file-link-icon.file-jpeg {
    background-image: url("../images/files/jpg.svg");
}
.file-link-icon.file-mov {
    background-image: url("../images/files/mov.svg");
}
.file-link-icon.file-mp3 {
    background-image: url("../images/files/mp3.svg");
}
.file-link-icon.file-mp4 {
    background-image: url("../images/files/mp4.svg");
}
.file-link-icon.file-pdf {
    background-image: url("../images/files/pdf.svg");
}
.file-link-icon.file-png {
    background-image: url("../images/files/png.svg");
}
.file-link-icon.file-ppt {
    background-image: url("../images/files/ppt.svg");
}
.file-link-icon.file-psd {
    background-image: url("../images/files/psd.svg");
}
.file-link-icon.file-rar {
    background-image: url("../images/files/rar.svg");
}
.file-link-icon.file-rtf {
    background-image: url("../images/files/rtf.svg");
}
.file-link-icon.file-svg {
    background-image: url("../images/files/svg.svg");
}
.file-link-icon.file-tiff {
    background-image: url("../images/files/tiff.svg");
}
.file-link-icon.file-txt {
    background-image: url("../images/files/txt.svg");
}
.file-link-icon.file-xls,
.file-link-icon.file-xlsx {
    background-image: url("../images/files/xlsx.svg");
}
.file-link-icon.file-zip,
.file-link-icon.file-7z {
    background-image: url("../images/files/zip.svg");
}

/* file uploader */
.form-upload-drop {
    min-height: 4.75em;
    color: #4f4f4f;
    text-align: center;
    border: 2px dashed rgba(82, 92, 105, .15);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all .3s;
}
.miltiuploader_short .form-upload-drop {
    padding: 5px;
    min-height: 0;
}
.form-upload-drop:hover {
    border: 2px dashed rgba(82, 92, 105, .3);
}
.form-upload-drop.form-upload-drop_dnd_hover {
    background-color: #0dcaf0;
    border-color: transparent;
    color: #fff;
}

.form-upload-drop span {
    border-bottom: 1px solid rgba(79, 79, 79, 0.4);
}
.form-upload-drop.form-upload-drop_dnd_hover span {
    border-color: transparent;
}
.form-upload-drop input.upload {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity = 0);
    display: block;
    width: 100%;
    height: 100%;
}

.b-dropzone,
.b-dropzone__bg {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30000;
    position: absolute;
}
.b-dropzone__bg {
    border: 2px dashed #0dcaf0;
    background-color: #fff;
    border-radius: .7rem;
}
.b-dropzone__txt {
    color: #4f4f4f;
    font-weight: bold;
    text-align: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30001;
    position: absolute;
}

.b-upload__files {
    margin-top: 20px;
}

.progress-small {
    height: 5px;
    padding: 0;
    border-radius: 5px;
    background-color: #ccc;
}
.b-thumb__del {
    color: #f08143;
}
.progress-small .bar {
    width: 0;
    height: 100%;
    position: static;
    border-radius: 5px;
    background-color: #f08143;
}

.b-upload__name,
.b-upload__size {
    display: inline-block;
    position: relative;
    overflow: hidden;
    max-width: 150px;
    vertical-align: middle;
}
.b-upload__size {
    color: #666;
    font-size: 12px;
}

.b-upload .b-upload__files:after {
    clear: both;
    content: '';
    display: block;
}

.b-upload__dnd {
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: rgba(0,0,0,.1);
}
.b-upload__dnd_hover {
    color: #fff;
    background-color: orange;
}

.b-upload__hint {
    padding: 5px 8px;
    font-size: 12px;
    white-space: normal;
    border-radius: 3px;
    background-color: rgba(0,0,0,.08);
}

.fileprogress {
    padding: 1px;
    height: 5px;
    box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background-color: rgba(0,0,0,.5);
}
.fileprogress__bar {
    width: 0;
    height: 100%;
    border-radius: 10px;
    background-color: orange;
}

.b-upload__name,
.b-upload__size {
    display: inline-block;
    position: relative;
    overflow: hidden;
    max-width: 150px;
    vertical-align: middle;
}
.b-upload__size {
    color: #666;
    font-size: 12px;
}

.b-upload .b-upload__files:after {
    clear: both;
    content: '';
    display: block;
}

.b-upload .b-upload__files {
    margin:10px 0 0 -3px;
}


.b-thumb {
    margin: 10px 0 0;
    padding: 0 0 5px;
    overflow: hidden;
    position: relative;
    background-color: #fff;
}
.b-thumb__del {
    top: 0;
    right: 0;
    color: #FF0000;
    cursor: pointer;
    z-index: 999;
    position: absolute;
    opacity: 0;
    font-size: 14px;
    -webkit-transition: opacity .1s ease-in;
    -moz-transition: opacity .1s ease-in;
    transition: opacity .1s ease-in;
}
.b-thumb:hover .b-thumb__del {
    opacity: 1;
}


.b-thumb__name {
    font-size: 14px;
}

.b-thumb__progress {
    margin-top: 5px;
    position: relative;
}

.user-messages-list-item {
    position: relative;
    margin-bottom: 7px;
    padding: 20px 20px 10px 20px;
    background-color: #fff;
    border-radius: 6px;
    color: #000;
}
.user-messages-list-item.from-admin {
    background-color: rgba(13, 202, 240, 0.15);
}
.user-messages-list-item.noviewed {
    background-color: rgba(255, 0, 0, 0.1);
}

.user-messages-list-item-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 5px;
    font-size: 12px;
}

.user-messages-list-item-name {
    font-weight: bold;
}

.user-messages-list-item-text {

}

.td-task-complited a {
    color: #ccc;
    text-decoration: line-through !important;
}
.td-task-postponed a {
    color: #ccc;
}
.td-task-check a {
    color: #198754;
}

.alert-info {
    background-color: var(--bs-info-bg-subtle);
    color: var(--bs-info-text-emphasis);
}

.invalid-feedback.show {
    display: block;
}

.task-deadline {
    display: inline-block;
    background-color: rgb(211, 244, 255);
    padding: 0 8px;
    height: 20px;
    color: rgb(0, 141, 186);
    border-radius: 10px;
    font-size: 12px;
    line-height: 20px;
    font-weight: bold;
    white-space: nowrap;
}
.task-deadline.overdue {
    background-color: rgb(255, 220, 219);
    color: rgb(194, 27, 22)
}
.task-deadline.today {
    background-color: rgb(255, 169, 0);
    color: #fff
}
.task-deadline.tomorrow {
    background-color: rgb(226, 241, 179);
    color: rgb(104, 136, 0)
}


/** чат **/
.wrap-chats,
.chat-color1 {
    --chat-color: rgb(223, 83, 45);
}
.chat-color2 {
    --chat-color: #0d6efd;
}
.chat-color3 {
    --chat-color: #6610f2;
}
.chat-color4 {
    --chat-color: #6f42c1;
}
.chat-color5 {
    --chat-color: #d63384;
}
.chat-color6 {
    --chat-color: #dc3545;
}
.chat-color7 {
    --chat-color: #fd7e14;
}
.chat-color8 {
    --chat-color: #ffc107;
}
.chat-color9 {
    --chat-color: #198754;
}
.chat-color10 {
    --chat-color: #20c997;
}
.chat-color11 {
    --chat-color: #0dcaf0;
}
.chat-color12 {
    --chat-color: #084298;
}
.chat-color13 {
    --chat-color: #3d0a91;
}
.chat-color14 {
    --chat-color: #432874;
}
.chat-color15 {
    --chat-color: #801f4f;
}
.chat-color16 {
    --chat-color: #842029;
}
.chat-color17 {
    --chat-color: #984c0c;
}
.chat-color18 {
    --chat-color: #997404;
}
.chat-color19 {
    --chat-color: #0f5132;
}
.chat-color20 {
    --chat-color: #13795b;
}
.chat-color21 {
    --chat-color: #087990;
}

.side-panel.for-chats .side-panel-container {
    background-color: #fff;
}
.side-panel.for-chats .side-panel-content-container {
    padding: 0;
}
.wrap-chats {
    height:calc(100vh - 68px);
    display: flex;
    align-items: stretch;
    overflow: hidden;
}
.side-panel .wrap-chats {
    height: 100%;
}
.chats-sidebar {
    flex: 0 0 400px;
    max-width: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-right: 1px solid rgb(230, 231, 233);
}
.chats-content {
    max-width: calc(100% - 400px);
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    background-color: rgb(159, 207, 255);
    background-image: url("../images/chat-pattern-white.svg"), url("../images/chat-bg.png");
    background-position: right top, center center;
    background-repeat: repeat, no-repeat;
    background-size: auto, cover;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
.chats-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 10px 13px;
    border-bottom: 1px solid rgba(82, 92, 105, 0.08);
}
.chats-sidebar-header .add-new-chat-link {
    font-size: 22px;
    color: #80868e;
    opacity: 0.8;
    transition: opacity .3s;
}
.chats-sidebar-header .add-new-chat-link:hover {
    opacity: 1;
}
.chats-sidebar-wrap-list {
    flex: 1 0 auto;
    position: relative;
    padding-top: 1px;
}
.chats-sidebar-list {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overflow-y: scroll;
}
.chats-sidebar-list-inner {
    padding: 4px 4px 6px 4px;
}
.chats-sidebar-list-item {
    position: relative;
    transition: background-color .3s;
    border-radius: 8px;

    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    height: 70px;
    padding: 0 8px 0 10px;
    cursor: pointer;
}
.chats-sidebar-list-item:before {
    content: '';
    position: absolute;
    width: calc(100% - 10px);
    height: 1px;
    background-color: rgba(82, 92, 105, 0.08);
    margin-left: 5px;
    opacity: 1;
    transition: opacity .3s;
}
.chats-sidebar-list-item:first-child:before {
    display: none;
}

.chats-sidebar-list-item:hover {
    background-color: #f1f4f6;
}
.chats-sidebar-list-item.active {
    background-color: rgb(0, 172, 227);
}

.chats-sidebar-list-item:hover:before,
.chats-sidebar-list-item.active:before,
.chats-sidebar-list-item:hover + .chats-sidebar-list-item:before,
.chats-sidebar-list-item.active + .chats-sidebar-list-item:before{
    opacity:0
}

.chats-sidebar-list-item-avatar,
.chats-content-header-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-right: 13px;
    width: 48px;
}
.chats-sidebar-list-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}
.chats-sidebar-list-item-avatar .text-avatar,
.chats-sidebar-list-item-avatar .special-avatar,
.chats-content-header-avatar .text-avatar,
.chats-content-header-avatar .special-avatar,
.chats-messages-list-author-group-avatar .text-avatar {
    width: 48px;
    height: 48px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
.chats-sidebar-list-item-avatar .text-avatar,
.chats-content-header-avatar .text-avatar,
.chats-messages-list-author-group-avatar .text-avatar {
    border-radius: 50%;
    background-color: var(--chat-color);
}
.chats-sidebar-list-item-avatar .special-avatar,
.chats-content-header-avatar .special-avatar {
    border-radius: 9px;
    background-color: rgb(62, 153, 206);
    font-size: 20px;
}
.chats-sidebar-list-item-avatar .special-avatar .bi,
.chats-content-header-avatar .special-avatar .bi {
    width: 1em;
    height: 1em;
}
.chats-sidebar-list-item-avatar .text-avatar .text,
.chats-content-header-avatar .text-avatar .text,
.chats-messages-list-author-group-avatar .text-avatar .text{
    text-align: center;
    font-size: 18px;
    line-height: 48px;
    text-transform: uppercase;
}
.chats-sidebar-list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3px;
}
.chats-sidebar-list-item-header .title {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    color: #333;
    font-weight: 500;
}
.chats-sidebar-list-item-header .date {
    margin-left: 3px;
    color: rgb(189, 193, 198);
    white-space: nowrap;
}
.chats-sidebar-list-item-bottom {
    display: flex;
    justify-content: space-between;
    height: 38px;
}
.chats-sidebar-list-item-bottom .text {
    color: rgb(149, 156, 164);
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    line-height: 18px;
}
.chats-sidebar-list-item-bottom  .wrap-bottom-right {
    margin-left: 8px;
    display: flex;
    justify-content: right;
    align-items: center;
    color: rgb(149, 156, 164);
}
.chats-sidebar-list-item-bottom .wrap-counter {
    align-self: center;
    display: flex;
    justify-content: right;
    align-items: center;
    height: 20px;
    margin-left: 8px;
}
.chats-sidebar-list-item-bottom .wrap-counter .badge-notification {
    padding: 3px 3px;
    min-width: 18px;
    font-size: 12px;
    font-weight: normal;
    color: #fff !important;
    margin: 0 !important;
    visibility: visible !important;
    right: 0;
    position: relative;
}
.chats-sidebar-list-item.active .chats-sidebar-list-item-header .title,
.chats-sidebar-list-item.active .chats-sidebar-list-item-header .date,
.chats-sidebar-list-item.active .chats-sidebar-list-item-bottom .text,
.chats-sidebar-list-item.active .chats-sidebar-list-item-bottom  .wrap-bottom-right {
    color: #fff
}

.chats-content-header {
    height: 64px;
    max-height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 15px;
    background-color: #fff;
}
.chats-content-header-left {
    display: flex;
    align-items: center;
    min-width: 0;
    margin-right: 20px;
}

.chats-content-dialog {
    height: calc(100% - 64px - 64px);
    position: relative;
}


.chats-content-header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}
.chats-content-header-info .title {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    color: #333;
    font-weight: 500;
    transition: color .2s;
}
.chats-content-header-info .subtitle {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.chats-content-header-info .subtitle .participants {
    color: rgb(149, 156, 164);
    margin-right: 10px;
    transition: color .2s;
}
.chats-content-header-info .subtitle a.participants:hover,
.chats-content-header-info a.title:hover {
    color: rgba(var(--bs-link-color-rgb));
}

.chats-content-header-search {
    margin-left: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.chats-content-header-search .messages-search-input {
    width: 300px;
    background-color: rgba(0, 0, 0, .07);
    height: 34px;
    border: none !important;
    outline: none !important;
    border-radius: 17px;
    padding: 0 40px 0 14px;
    transition: background-color .3s linear;
}
.chats-content-header-search .messages-search-results {
    margin-left: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.chats-content-header-search .messages-search-results .finded-buttons {
    margin-left: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.chats-content-header-search .messages-search-results .finded-buttons button + button {
    margin-left: 5px;
}
.chats-content-header-search .messages-search-results .btn-messages-search-close {
    margin-left: 15px;
}


.chats-content-header-right .add-participant-link {
    display: inline-block;
    cursor: pointer;
    font-size: 22px;
    color: #80868e;
    opacity: 0.8;
    transition: opacity .3s;
}
.chats-content-header-right .add-participant-link:hover {
    opacity: 1;
}
.chats-content-header-right .add-participant-link + .add-participant-link {
    margin-left: 20px;
}
.chats-content-textarea {
    display: flex;
    justify-content: center;
    flex: 0 0 64px;
    width: calc(100% - 6px);
    margin: 0 6px 0 0;
    padding: 6px 33px 12px;
    align-self: center;
    align-items: flex-end;
}

.chats-content-textarea-container {
    width: 100%;
    height: 100%;
    margin-right: 12px;
    padding: 14px 6px 14px 34px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
    background-color: #fff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.chats-content-textarea-container-text {
    position: relative;
    width: 100%;
}

.chats-content-textarea .but-send-message {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background-color: rgb(0, 172, 227);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 22px;
    transition: all .2s;
}
.chats-content-textarea .but-send-message svg {
    margin-left: -2px;
    transform: rotate(45deg);
}
.chats-content-textarea .but-send-message:hover {
    transform: scale(1.1);
}
.chats-content-textarea-container .but-send-file {
    position: absolute;
    left: -25px;
    top: -2px;
    font-size: 22px;
    cursor: pointer;
    color: #80868e;
    opacity: 0.8;
    transition: opacity .3s;
}
.chats-content-textarea-container .but-send-file:hover {
    opacity: 1;
}
.chats-content-textarea-container .chat-input-holder {
    position: relative;
}
.chats-content-textarea-container .message-input,
.chats-content-textarea-container .message-placeholder {
    font-size: 14px;
    line-height: 18px;
}

.chats-content-textarea-container .message-input {
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 18px;
    outline: 0;
    resize: none;
    position: relative;
    z-index: 30;
    color: #000;
    word-wrap: break-word;
    -webkit-appearance: none;
}

.chats-content-textarea-container .message-placeholder {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
    cursor: text;
    color: #9F9F9F;
}

.chats-content-dialog-content {
    position: absolute;
    left: 0;
    top: 1px;
    bottom: 0;
    width: 100%;
    overflow: hidden;
}

.chats-content-dialog-scroll-container {
    width: 100%;
    min-width: 100%;
    height: 100%;
    overflow: hidden;
    overflow-y: auto;
    overflow-anchor: none;
    position: relative;
    scrollbar-gutter: stable;
}

.chats-content-dialog-scroll-button {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 22px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-size: 40px;
    color: rgb(0, 172, 227);
    opacity: 0;
    visibility: hidden;
    transition: all .5s;
}
.chats-content-dialog-scroll-button.show {
    opacity: 1;
    visibility: visible;
}
.chats-content-dialog-scroll-button svg {
    opacity: 0.8;
    transition: opacity .3s !important;
}
.chats-content-dialog-scroll-button:hover svg {
    opacity: 1;
}

.chats-content-dialog-content .chats-messages-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    min-height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 27px 0 33px;
}
.chats-content-dialog-content .chats-messages-list-date-group {
    display: flex;
    flex-direction: column;
}
.chats-messages-list-date-group-title {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    margin: 0 auto;
    max-width: 100%;
    z-index: 89;
    padding-top: 12px;
}
.chats-messages-list-date-group-title .date {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    border-radius: 20px;
    font-size: 13px;
    line-height: 2;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
}
.chats-messages-list-author-group-container {
    max-width: 830px;
    display: flex;
    align-items: flex-end;
    width: 100%;
}
.chats-messages-list-author-group-avatar {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    margin-right: 12px;
    padding-top: 12px;
    z-index: 75;
}
.chats-messages-list-author-group-container .chats-messages-list-content {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    margin-left: 60px;
    align-items: flex-start;
}
.chats-messages-list-author-group-avatar + .chats-messages-list-content {
    margin-left: 0;
}
.chats-messages-list-item-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin-bottom: -4px;
}
.chats-messages-list-item {
    position: relative;
    margin-bottom: 4px;
}
.chats-messages-list-item-inner {
    position: relative;
    max-width: 770px;
    min-height: 42px;
    background-color: #fff;
    border-radius: 6px;
    padding: 9px 10px 6px 14px;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px 0px;
}
.chats-messages-list-author-group-container.self .chats-messages-list-item-inner {
    background-color: rgb(233, 254, 203);
}
.chats-messages-list-author-group-container.system .chats-messages-list-item-inner {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: none
}
.chats-messages-list-item .name {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-size: 15px;
    font-weight: 500;
    color: var(--chat-color);
}
.chats-messages-list-item .text {
    word-break: break-word;
    padding-right: 20px;
    color: rgb(51, 51, 51);
    font-size: 15px;
}
.chats-files-list + .text {
    margin-top: 10px;
}
.chats-messages-list-item .bottom-line {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.chats-messages-list-item .bottom-line .time {
    color: rgba(82, 92, 105, 0.4);
    font-size: 10px;
    line-height: 1;
}
.chats-messages-list-item .bottom-line .edit-iсons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-right: 8px;
}
.chats-messages-list-item .bottom-line .edit-iсons a {
    color: var(--bs-secondary);
    transition: color .3s;
    font-size: 10px;
}
.chats-messages-list-item .bottom-line .edit-iсons a:hover {
    color: var(--bs-secondary-text-emphasis);
}
.chats-messages-list-item .bottom-line .edit-iсons a + a {
    margin-left: 6px;
}

.chats-messages-list-author-group-container.opponent .chats-messages-list-item:last-child .chats-messages-list-item-inner,
.chats-messages-list-author-group-container.self .chats-messages-list-item:last-child .chats-messages-list-item-inner {
    border-bottom-left-radius: 0;
}
.chats-messages-list-author-group-container.opponent .chats-messages-list-item:last-child .chats-messages-list-item-inner:after,
.chats-messages-list-author-group-container.self .chats-messages-list-item:last-child .chats-messages-list-item-inner:after {
    content: '';
    position: absolute;
    width: 4px;
    height: 9px;
    bottom: 0;
    left: -4px;
}
.chats-messages-list-author-group-container.opponent .chats-messages-list-item:last-child .chats-messages-list-item-inner:after {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='4' height='9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.202 9H4V0C3.854 2.61 2.008 5.042.354 6.718-.4 7.482.13 9 1.202 9z' fill='%23fff'/%3E%3C/svg%3E");
}
.chats-messages-list-author-group-container.self .chats-messages-list-item:last-child .chats-messages-list-item-inner:after {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='4' height='9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.202 9H4V0C3.854 2.61 2.008 5.042.354 6.718-.4 7.482.13 9 1.202 9z' fill='%23E9FECB'/%3E%3C/svg%3E");
}

.chats-messages-list-item:before {
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: -50vw;
    right: -60vw;
    content: '';
    background-color: transparent;
    opacity: 0;
    transform: translateZ(-1px);
    transition: all 1.5s;
}
.chats-messages-list-item.highlighted:before {
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: none;
}

.chats-messages-list-item .link-quote {
    position: absolute;
    right: -27px;
    top: 0;
    border-radius: 50%;
    background: rgba(82, 92, 105, 0.2);
    color: #fff;
    cursor: pointer;
    padding: 5px;
    font-size: 11px;
    opacity: 0;
    transition: all .3s;
}
.chats-messages-list-item .link-quote:hover {
    background: rgba(82, 92, 105, 0.4);
}
.chats-messages-list-item:hover .link-quote {
    opacity: 1;
}

.chats-messages-quote {
    cursor: pointer;
    position: relative;
    font-size: 13px;
    line-height: 1.4;
    color: rgb(118, 126, 135);
    padding-left: 10px;
    padding-bottom: 2px;
    margin: 4px 0;
}
.chats-messages-quote:before {
    content: '';
    display: block;
    width: 2px;
    height: 100%;
    position: absolute;
    left: 0;
    border-radius: 19px;
    background: rgb(47, 198, 246);
}
.chats-messages-quote-name {
    font-size: 13px;
    line-height: 1.2;
    color: rgb(17, 169, 217);
    padding-top: 1px;
    padding-bottom: 2px;
    font-weight: 500;
}
.chats-messages-quote-text {
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    word-break: break-word;
}
.chats-list-messages-new-message-container {
    height: 30px;
    margin-top: 12px;
    text-align: center;
}
.chats-list-messages-new-message-text {
    height: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: rgb(82, 92, 105);
    background-color: rgba(255, 255, 255, 0.8);
    margin-left: -100%;
    margin-right: -100%;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
}

.for-select-chats-participants {
    padding-bottom: 230px;
}
.for-select-chats-participants .ms-options {
    max-height: 250px !important;
}

.chats-messages-list-item .name + .chats-files-list {
    margin-top: 12px;
}
.chats-files-list-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.chats-files-list-item + .chats-files-list-item {
    margin-top: 12px;
}
.chats-files-list-item-wrap-icon {
    width: 44px;
    height: 44px;
    margin-right: 8px;
}
.chats-files-list-item-wrap-icon .file-link-icon {
    width: 40px;
    height: 40px;
}
.chats-files-list-item-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: calc(100% - 52px);
}
.chats-files-list-item-content  .file-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
}
.chats-files-list-item-content  .file-size {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(82, 92, 105, 0.5);
}


.chats-content-textarea-container-quote {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    position: relative;
    width: 100%;
    margin-left: -30px;
    margin-bottom: 15px;
}
.chats-content-textarea-container-quote .quote-iсon {
    width: 28px;
    margin-right: 3px;
    color: rgb(47, 198, 246);
    font-size: 28px;
    line-height: 1;
}
.chats-content-textarea-container-quote .quote-iсon .bi {
    width: 1em;
    height: 1em;
}
.chats-content-textarea-container-quote .quote-content {
    border-left: 2px solid rgb(47, 198, 246);
    padding-left: 6px;
    flex: 0 0 calc(100% - 35px);
}
.chats-content-textarea-container-quote .quote-content .name {
    font-size: 13px;
    line-height: 16px;
    font-weight: 600;
    color: rgb(47, 198, 246);
    margin-bottom: 2px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.chats-content-textarea-container-quote .quote-content .text {
    font-size: 13px;
    line-height: 1.4;
    color: rgb(130, 139, 149);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 90%;
}
.chats-content-textarea-container-quote .but-close-quote {
    position: absolute;
    right: -20px;
    top: 0;
    font-size: 18px;
    cursor: pointer;
    color: #80868e;
    opacity: 0.8;
    transition: opacity .3s;
}
.chats-content-textarea-container-quote .but-close-quote:hover {
    opacity: 1;
}

.chats-search-input {
    width: 300px;
    background-color: rgba(0, 0, 0, .07);
    height: 34px;
    border: none !important;
    outline: none !important;
    border-radius: 17px;
    padding: 0 40px 0 14px;
    transition: background-color .3s linear;
}

/** end чат **/

.modal .modal-header i, .modal .modal-header svg {
    margin-top: -3px;
}

.setting-fields-columns {
    column-count: 3;
}
.field-editable-name {
    cursor: pointer;
}

.table-grid-container {
    overflow-x: auto;
    position: relative;
}
.table-grid-container .table {
    min-width: 100%;
    table-layout: fixed;
}
.table-grid-container .table th {
    position: relative;
}
.table-grid-container .table th:after {
    content: '';
    position: absolute;
    right: 3px;
    top: 50%;
    margin-top: -13px;
    width: 1px;
    height: 26px;
    background: rgba(0, 0, 0, .1);
    opacity: 0;
    transition: opacity .2s;
}
.table-grid-container .table th:hover:after {
    opacity: 1;
}
.table-grid-container .table th:last-child:after,
.tab-content .table-grid-container .table th:after {
    display: none;
}


.JColResizer{
    table-layout:fixed;
}
.JColResizer > tbody > tr > td, .JColResizer > tbody > tr > th{
    overflow:hidden;
}
.JCLRgrips{
    height:0;
    position:relative;
    z-index: 300;
}
.JCLRgrip{
    margin-left:-5px;
    position:absolute;
    z-index:5;
}
.JCLRgrip .JColResizer{
    position:absolute;
    opacity:0;
    width:10px;
    height:100%;
    cursor: col-resize;
    top:0;
    border-left: 1px solid rgb(238, 238, 238);
    transition: opacity .2s;
}
.JCLRgrip .JColResizer:hover{
    opacity: 1;
}
.JCLRLastGrip{
    position:absolute; width:1px;
}
.JCLRgripDrag{
    border-left:1px dotted black;
}
.JCLRFlex{

}
.JCLRgrip.JCLRdisabledGrip .JColResizer{
    cursor:default;
    display:none;
}

.tab-content .link-settings-field {
    display: none;
}


.gray-link {
    color: #4f4f4f;
    text-decoration: none;
    border-bottom: 1px solid rgba(79, 79, 79, 0.4);
    transition: border .2s;
}
.gray-link:hover {
    border-bottom-color: rgba(79, 79, 79, 1);
}

.modal-dialog-scrollable .modal-content {
    overflow: visible;
}
.toast-container {
    --bs-toast-zindex: 10090;
}

.rounded-pin {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f00;
    vertical-align: middle;
    margin-left: 5px;
}
.kanban-item-title .rounded-pin {
    margin-left: 0;
    position: absolute;
    top: 4px;
    left: -9px;
}

.inline-files-show .file-link-icon {
    width: 36px;
    height: 36px;
    margin-left: 5px;
    margin-right: 5px;
}

.table.table-sm tr td,
.table-sm.dataTable-table tr td,
.table.table-sm tr th,
.table-sm.dataTable-table tr th {
    padding: 0.25rem;
}
.table.table-sm {
    font-size: 12px;
}
.table.table-sm th {
    font-size: 11px;
    letter-spacing: normal;
}

.order_products .text {
    width: 67px;
}
.order_products .text.for-count {
    width: 40px;
}
.order_products .text.for-serial {
    width: 140px;
}
.order_products .text.for-price {
    width: 55px;
}
.order_products .text.for-price-zakup {
    width: 45px;
}
.order_products .text.for-price-zakup .form-control-sm {
    font-size: 11px;
}

.order_products .text.for-price-dop {
    width: 33px;
}
.order_products .text.for-price-dop .form-control-sm {
    font-size: 10px;
    padding: .1rem .2rem;
}

.order_products .textarea {
    width: 150px;
}
.order_products .textarea.for-name,
.order_products .select-category {
    width: 240px;
}

.order_products .for-check-type {
    width: 130px;
}
.order_products .for-mpi {
    width: 90px;
}
.order_products .for-company {
    width: 130px;
}
.order_products .vsmall {
    width: 70px;
}
.order_products .date {
    width: 87px;
}

.table.table-sm .form-check-input {
    font-size: 14px;
}

.float-wrap-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 290px;
    padding: 10px;
    z-index: 1100;
}
.float-wrap-buttons .wrap-selected {
    font-weight: bold;
}

.protocols-gen-modal-info {
    padding: 18px 12px 9px;
    margin: 0 0 17px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fce883;
    width: 250px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    font-size: 14px;
}

.select-time-conditions-check {
    margin: 4px 0 8px;
}
.select-time-conditions-check a + a {
    margin-left: 15px;
}
.select-time-conditions-check a.active {
    font-weight: bold;
    border-bottom: 1px solid #80868e;
}

.file_new_preview,
.input_smart_file {
    width: 170px;
    margin: 5px 0;
    position: relative;
    cursor: pointer;
    text-align: left;
    color: #80868e;
    overflow: hidden;
    height: 20px;
}
.file_new_preview span {
    cursor: pointer;
    border-bottom: 1px dashed currentColor;
}
.file_new_preview input,
.input_smart_file input {
    cursor: pointer;
    display: block;
    font: 100px/100px Arial,Sans-serif;
    height: 100px;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width:100%;
}

.sidebar-item.has-sub, .submenu-item.has-sub {
    overflow: visible;
}

.calendar-month {
    margin-bottom: 2rem;
}
.calendar-month .month-title {
    padding: 0.5rem;
}
.calendar-month .calendar-table {
    width: 100%;
    color: #666;
}
.calendar-month .calendar-table th {
    text-align: center;
    padding: 0.25rem;
    font-size: 0.875rem;
    background-color: #e9ecef;
    color: #000;
}
.calendar-month .day-cell {
    position: relative;
    height: 40px;
    cursor: pointer;
    padding: 0;
    background-color: #f8d7da;
    color: #000;
}
.calendar-month .day-checkbox {
    position: absolute;
    opacity: 0;
}
.calendar-month .day-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 0.2s;
    font-size: 0.875rem;
    cursor: pointer;
}
.calendar-month .day-checkbox:checked + .day-label {
    background-color: #a6e9d5;
}
.calendar-month .day-label:hover {
    background-color: #e9ecef;
}
.calendar-month .empty-cell {
    background-color: #fff;
}


.form-upload-images-short .b-thumb {
    width: 50px;
    padding: 0;
    position: relative;
}

.form-upload-images-short .b-thumb__del {
    top: -6px;
    right: -1px;
    color: #FF0000;
    cursor: pointer;
    opacity: 0;
    z-index: 999;
    position: absolute;
    font-size: 20px;
    transition: opacity .1s ease-in;
}

.form-upload-images-short .b-thumb:hover .b-thumb__del {
    opacity: 1;
}

.form-upload-images-short .b-thumb__preview {
    width: 50px;
    height: 50px;
    transition: transform .2s ease-in;
}

.form-upload-images-short .b-thumb__preview__pic {
    width: 100%;
    height: 100%;
    background: url('../images/files/file.svg') 50% 50% no-repeat;
}

.form-upload-images-short .b-thumb__name {
    width: 50px;
    overflow: hidden;
    font-size: 12px;
    display: none;
}

.form-upload-images-short .b-thumb .photo-error {
    font-size: 10px;
    white-space: normal;
    color: #f00
}

.form-upload-images-short .b-thumb__progress {
    top: 50%;
    left: 5px;
    right: 5px;
    position: absolute;
    transform: translateY(-50%);
}

.form-upload-images-short .b-thumb__progress.progress-small {
    height: 7px;
    border: 1px solid #0dcaf0;
    background-color: #fff;
}

.form-upload-images-short .b-thumb__progress.progress-small .bar {
    width: 0;
    height: 100%;
    position: static;
    background-color: #0dcaf0;
}

.form-upload-images-short .form-upload-documents {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.form-upload-images-short .form-upload-document__item {
    overflow: hidden;
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-upload-images-short .form-upload-document__item img {
    max-width: 100%;
}

.form-upload-images-short .form-upload-document__item.process img {
    opacity: 0.6;
}

.form-upload-images-short .form-upload-document__item .remove-file {
    top: -6px;
    right: 0;
    color: #FF0000 !important;
    opacity: 0;
    z-index: 999;
    position: absolute;
    font-size: 14px;
    transition: opacity .1s ease-in;
    cursor: pointer;
    text-decoration: none;
}

.form-upload-images-short .form-upload-document__item:hover .remove-file {
    opacity: 1;
}

.form-upload-images-short .form-upload-document__item.process .rotate-file {
    display: none;
}

.form-upload-images-short .form-upload-document__item .loader {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.form-upload-images-short  .form-upload-drop {
    min-height: 0;
    padding: 5px;
}

.form-upload-images-short .b-upload__files {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px
}

.list-short-files {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.list-short-files-item {
    max-width: 200px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.list-short-files-item .wrap-file-link-icon {
    width: 44px;
    height: 44px;
    margin-right: 8px;
}
.list-short-files-item .wrap-file-link-icon .file-link-icon {
    width: 40px;
    height: 40px;
}
.list-short-files-item .file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2em;
    max-height: 2.4em;
}
.list-short-files-item .file-size {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(82, 92, 105, 0.5);
}

.kanban-tasks-column {
    --kanban-item-color: var(--bs-info);
    z-index: 100;
}
.kanban-tasks-column .kanban-column-header {
    z-index: 200;
}
.kanban-tasks-column .kanban-column-subtitle {
    padding-top: 11px;
    padding-bottom: 11px;
    overflow: visible;
    z-index: 201;
}
.kanban-tasks-list {
    padding-bottom: 50px;
    min-height: 100%;
}
.kanban-tasks-list-item {
    display: block;
    position: relative;
    padding: 0 0 6px 0;
    margin: 0 1px 0 -1px;
}
.kanban-tasks-list-item-wrapper {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 10px 15px 10px 15px;
    overflow: hidden;
}
.kanban-tasks-list-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.kanban-tasks-list-item-meta .category,
.kanban-tasks-list-item-meta .role
{
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
}
.kanban-tasks-list-item-title {
    font-size: 13px;
}

.kanban-tasks-column .main-ui-filter-inner-container {
    text-align: left;
}
.kanban-tasks-column .main-ui-filter-field-container {
    width: 100%;
}
.kanban-tasks-column .main-ui-filter-inner-container {
    width: 340px;
}

.bringing-aid-ext-lab,
.no-product-bringing,
.order-bringing-directly-lab {
    display: none;
}