.funnel-tabs {
    position: relative;
    padding: 6px 15px;
    margin-bottom: 16px;
    background: #F1F7FF;
    /*border: 1px solid #D9E2ED;*/
    border-radius: 8px;
}

.funnel-tabs__list {
    padding: 0;
    margin: 0;
    list-style: none;
    width: calc(100% - 80px);

}
.funnel-tabs__list.expand {
    max-height: 36px;
    overflow: hidden;
}
.funnel-tabs__list.expanded {
    max-height: auto;
    overflow: auto;
}

.funnel-tabs__tab {
    display: inline-block;
}

.funnel-tabs__link {
    display: inline-block;
    padding: 8px 20px;
    font-weight: 500;
    font-size: 15px;
    line-height: 1;
    color: rgba(37, 38, 39, 0.65);
    white-space: nowrap;
}

.funnel-tabs__link:hover,
.funnel-tabs__link:focus {
    color: #252627;
    background: #E0EDFF;
    border-radius: 4px;

    text-decoration: none;
}

.funnel-tabs__link.active {
    font-weight: 700;

    color: #252627;

    background: #ffffff;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.funnel-tabs__all,
.funnel-views__all,
.funnel-tabs__expand {
    border: none;
    background: none;
    color: #3C98FF;
    font-size: 28px;
    
}
.funnel__buttons {
    position: absolute;
    top: 5px;
    right: 5px;
}

.funnel-views__all {
    color: rgba(0, 0, 0, 0.65);
}


.funnel__description {
    position: relative;

    display: flex;
    align-items: flex-start;

    padding: 16px 19px;
    padding-left: 58px;
    margin-bottom: 12px;

    font-weight: 500;
    font-size: 14px;
    color: #B4B4B4;

    background: linear-gradient(90deg, #F3F3F3 0%, rgba(243, 243, 243, 0) 60.21%);
    border-radius: 8px;
}

.funnel__description:before {
    content: "\edc9";

    position: absolute;
    left: 17px;

    font-size: 24px;
    font-family: 'lkdev' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;

    transform: translateY(-14%);
}

.square-btn,
.funnel__views-add,
.funnel__views-setting {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 5px;

    font-size: 20px;
    line-height: 0;

    color: #252627;

    border: none;
    background: none;
    border-radius: 8px;
}

.funnel__views-setting {
    margin-right: 5px;
}

.funnel__views-setting:hover,
.funnel__views-setting:focus,
.funnel__views-add:hover,
.funnel__views-add:focus,
.square-btn:hover,
.square-btn:focus {
    background-color: #E0EDFF;
}

.funnel__views-setting.active,
.square-btn.active {
    color: #ffffff;
    background-color: #3C98FF;
}

.funnel-header {
    position: relative;

    display: flex;
    align-items: flex-end;
    margin-bottom: 20px;
    flex: 1 0 100%;
}

.funnel-header:after {
    content: '';

    position: absolute;
    top: 100%;
    left: 0;

    display: block;
    width: 100%;
    height: 3px;
    background-color: #EEEEEE;
}

.funnel-header__views,
.funnel__outlinks {
    display: flex;
    margin: 0;
    padding: 0 16px;

    font-size: 15px;
    line-height: 1;

    list-style: none;
}

.funnel-header__views {
    flex-wrap: wrap;
    max-height: 35px;
    padding-right: 8px;

    overflow: hidden;
}


.funnel-header__view-link,
.funnel__outlink-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    padding-bottom: 12px;

    font-weight: 500;
    line-height: 1;
    white-space: nowrap;

    color: rgba(0, 0, 0, 0.65);

    text-decoration: none!important;
}

.funnel__outlink-link:hover,
.funnel__outlink-link:focus,
.funnel-header__view-link:hover,
.funnel-header__view-link:focus {
    color: #000000;
    background-color: #E0EDFF;
}

.funnel__outlink-link:hover:after,
.funnel__outlink-link:focus:after,
.funnel-header__view-link:hover:after,
.funnel-header__view-link:focus:after,
.funnel-header__view-link.active:after {
    content: '';

    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;

    display: block;
    width: 100%;
    height: 3px;

    background-color: #3C98FF;
    border-radius: 3px;
}

.funnel-header__view-link.active {
    color: #3C98FF;
}

.funnel-header__view + .funnel-header__view,
.funnel__outlink + .funnel__outlink {
    margin-left: 6px;
}

.funnel-header__view-icon + .funnel-header__view-name {
    margin-left: 8px;
}

.funnel__outlinks {
    display: flex;
    list-style: none;
    padding: 0 15px;
    margin: 0;

    font-size: 16px;
}

.funnel__outlink-link:hover {
    text-decoration: none;
}

.funnel__user-add,
.funnel__order-add {
    display: inline-flex;
    align-items: center;
    height: 30px;
    margin-bottom: 5px;
    padding: 0px 10px;

    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    line-height: 0;

    background: #3C98FF;
    border:none;
    border-radius: 8px;

    text-transform: uppercase;
}

.funnel__views-setting {
    border:none;
    background: none;
}

.funnel__status-name {
    display: block;
    padding: 10px 15px;

    margin-bottom: 15px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.funnel__orders {
    margin-bottom: 15px;
}

.funnel__body {
    display: flex;
}

.funnel__statuses {
    position: relative;

    flex-grow: 1;
    max-width: 100%;
}

.funnel__periods {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.funnel__period {
    margin: 0;
    padding: 0;
}

.funnel__period + .funnel__period {
    margin-left: 8px;
}

.funnel__period-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px 6px;

    color: rgba(37, 38, 39, 0.3);
    font-size: 12px;
    line-height: 20px;
    text-decoration: none !important;
    white-space: nowrap;

    background-color: #DEDEDE;
    border-radius: 10px;

    transition: 0.3s;
}

.funnel__period-link.active {
    background-color: #B4E0FF;
}

.funnel__period-link:hover,
.funnel__period-link:focus {
    color: #2a2a2a;
}

.funnel__statuses.hide {
    width: 70%;
}

.funnel__sidebar {
    display: none;

    box-shadow: -4px 2px 8px rgba(0, 0, 0, 0.2);
    transition: width 0.3s;
}

.funnel__sidebar.show {
    display: block;
    width: 30%;
    margin-left: 15px;
    padding: 10px;
}

.funnel__order {
    padding: 10px 20px;
    background-color: #FAFAFA;
    border-radius: 15px;
    margin-left: 15px;
    margin-bottom: 15px;
}

.funlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.funlist__item {
    position: relative;

    display: flex;
    align-items: center;
    padding: 5px 10px;

    border: 1px solid #ffffff;
    border-radius: 8px;
}

.funlist__text {
    margin-right: 10px;
}

.funlist__btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    margin-left: auto;

    color: var(--danger);
    font-size: 12px;
    line-height: 20px;

    background: #fff;
    border: none;
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.funlist__btn:hover {
    color: #fff;
    background: var(--danger);
}

.funnel-flist {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
}

.funnel-flist__item {
    position: relative;

    display: flex;
    align-items: center;
    /*width: 350px;*/
    padding: 10px 10px;

    border: 1px solid #ffffff;
    border-radius: 8px;
}

.funnel-flist__item.active {
    background-color: #F1F7FF;
    border-color: #E0EDFF;
}

.funnel-flist__item + .funnel-flist__item {
    margin-top: 8px;
}

.funnel-flist__item:hover,
.funnel-flist__item:focus {
    background-color: #F3F6F8;
    border-color: #E0E2E6;
}

.funnel-flist__item-btn {
    position: absolute;
    top: 50%;

    color: #B4B4B4;
    letter-spacing: -0.6rem;

    border: none;
    background: none;

    transform: translateY(-50%);
}

.funnel-flist__item-btn::first-letter {
    margin-left: -5px;
}

.funnel-flist__item-btn > span:first-child {
    margin-left: -3px;
}

.funnel-flist__item-name {
    margin-right: auto;
    margin-left: 32px;

    color: #252627;

    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    text-decoration: none !important;
}

.funnel-flist__item-link {
    padding: 0 6px;
    text-decoration: none !important;
}

.funnel-flist__create {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;

    color: #3C98FF;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;

    border-radius: 8px;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: 0.3s
}

.funnel-flist__create:hover,
.funnel-flist__create:focus {
    background: rgba(60, 152, 255, 0.15);

}

.funnel-status__input-color {
    -webkit-appearance : none;
    -moz-appearance : none;
    appearance : none;
    background-color: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.clr-field input.form-control {
    width: 30px;
    height: 30px !important;

    border: none;

    cursor: pointer;
}

.clr-field input.form-control:focus {
    border: none !important;
    outline: none !important;
}

.clr-field button {
    width: 30px;
    height: 30px;

    border-radius: 50%;
}

.funnel-status__field-sort-btn {
    position: absolute;
    left: 0;
    top: 50%;

    color: #B4B4B4;
    letter-spacing: -0.6rem;

    border: none;
    background: none;

    transform: translateY(-50%);
}

.funnel-status__field-sort-btn::first-letter {
    margin-left: -5px;
}

.funnel-status__field-sort-btn > span:first-child {
    margin-left: -3px;
}

.form-kanban-card {
    padding: 15px;

    border-radius: 12px;
    border: 1px solid #3C98FF;
    background-color: #6FF2FF;
}

.form-kanban-card__inner {
    display: flex;
}

.form-kanban-card__inner-l {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: 50%;
}

.form-kanban-card__inner-r {
    margin-left: auto;
}

.form-kanban-card__group {
    display: flex;
}

.form-kanban-card__group .form-kanban-card__field {
    width: 100%;
    max-width: 50%;
    margin-top: 0 !important;
}

.form-kanban-card__group + .form-kanban-card__field {
    margin-top: 8px;
}

.form-kanban-card__field + .form-kanban-card__field {
    margin-top: 8px;
}

.funnel__btn-checkbox {
    background-color: #F1F7FF;
    color: rgba(37, 38, 39, 0.65);
    border: 0;
    border-radius: 15px;
    padding: 2px 12px;
    font-size: 12px;
    line-height: 1;

    transition: opacity 0.2s;
}

.funnel__btn-checkbox.active {
    background-color: #3C98FF;
    color: #fff;
}

.funnel__btn-checkbox:hover,
.funnel__btn-checkbox:focus {
   opacity: 0.7;
}

.funnel__btn-dropdown {
    background-color: #6FF2FF;
    color: rgba(37, 38, 39, 0.65);
    border: 0;
    border-radius: 15px;
    padding: 2px 12px;
    font-size: 12px;
    line-height: 1;
    margin-left: 10px;
    transition: opacity 0.2s;
}

.funnel__btn-dropdown:hover,
.funnel__btn-dropdown:focus {
    opacity: 0.7;
}

.funnel__btn-dropdown[aria-expanded="true"] {
    opacity: 0.7;
}

.funnel__total-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 12px;

    font-size: 12px;
    line-height: 1;

    background-color: #F1F7FF;
    color: rgba(37, 38, 39, 0.65);
    border: 0;
    border-radius: 15px;
}

.funnel-coloris-btn {
    width: 30px;
    height: 30px;

    border: none;
    background: none;
    border-radius: 50%;

    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-indent: -1000px;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
}

.funnel-coloris {
    width: 30px;
    height: 30px !important;

    border: none;

    cursor: pointer;
}
.wt-700{
    width: 700px;
}
@media (max-width: 768px){
    .funnel-header{
        flex-wrap: wrap;
    }
    .wt-700{
        width: 100%;
    }
    .funnel-flist__item{
        width: 100%;
    }
    .funnel__sidebar.show {
        width: 100%;
        margin-left: 0px;
    }
    .funnel__statuses.hide{
        display: none;
    }
    .funnel__line button{
        min-width: max-content;
    }
    .funnel__period, .funnel__line button{
        margin-left: 8px;
    }
    .funnel__period-link{
        padding: 4px 6px;
        border-radius: 15px;
    }
    .funnel__line {
        overflow: auto;
    }
}

/* Табличный вид воронки */
.funnel__display-toggle {
    display: inline-flex;
    vertical-align: middle;
}

.funnel__display-btn.active {
    color: #3C98FF;
    background: #E0EDFF;
    box-shadow: inset 0 0 0 1px #3C98FF55;
}

.funnel-wrapper--table .funnel__statuses {
    width: 100%;
}

.funnel-table {
    width: 100%;
    padding: 4px 0 16px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.funnel-table::-webkit-scrollbar {
    display: none;
    height: 0;
}

.funnel-wrapper--table .jsarrows {
    overflow: visible;
}

.funnel-wrapper--table .jsarrows .funnel-table.jsarrows__inner,
.funnel-wrapper--table .funnel-table.funnel-table__scroll {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.funnel-wrapper--table .jsarrows .funnel-table.jsarrows__inner::-webkit-scrollbar,
.funnel-wrapper--table .funnel-table.funnel-table__scroll::-webkit-scrollbar {
    display: none;
    height: 0;
}

.funnel-table .table-responsive,
.funnel-table .table_arrow-container,
.funnel-table .table_arrow-wrapper {
    overflow: visible !important;
}

.funnel-table .table_arrow-container .controls_btn {
    display: none !important;
}

.funnel-table__grid {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
    background: transparent;
    font-size: 14px;
}

.funnel-table__pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 0;
}

.funnel-table__load-more {
    display: none;
    padding: 12px 0 4px;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.funnel-table__load-more--visible {
    display: block;
}

.funnel-table__pagination-current {
    font-size: 14px;
    color: #6b7280;
}

.funnel-table__grid thead th {
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #4b5563;
    border: none;
    background: transparent;
    white-space: nowrap;
    cursor: default;
    pointer-events: none;
}

.funnel-table__grid thead th a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
    cursor: default;
}

.funnel-table__grid tbody tr.funnel-table__row td {
    padding: 12px 14px;
    font-size: 14px;
    vertical-align: middle;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.funnel-table__grid tbody tr.funnel-table__row td:first-child {
    border-left: 1px solid #e5e7eb;
    border-radius: 10px 0 0 10px;
}

.funnel-table__grid tbody tr.funnel-table__row td:last-child {
    border-right: 1px solid #e5e7eb;
    border-radius: 0 10px 10px 0;
}

.funnel-table__row {
    cursor: pointer;
}

.funnel-table__row--selected td {
    background-color: #e0edff !important;
}

.funnel-table__cell-contact {
    width: 220px;
    max-width: 220px;
    min-width: 220px;
}

.funnel-table__contact {
    display: block;
    width: 220px;
    max-width: 220px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.funnel-table__contact:hover {
    color: #3C98FF;
    text-decoration: none;
}

.funnel-table__contact-line {
    display: block;
    overflow: hidden;
    max-width: 100%;
    line-height: 1.35;
    -webkit-mask-image: linear-gradient(to right, #000 68%, transparent 100%);
    mask-image: linear-gradient(to right, #000 68%, transparent 100%);
}

.funnel-table__contact-line--name {
    white-space: nowrap;
    font-weight: 500;
    color: #1f2a37;
}

.funnel-table__contact-line--surname {
    white-space: nowrap;
    font-weight: 500;
    color: #1f2a37;
}

.funnel-table__contact-line--phone {
    white-space: nowrap;
    color: #6b7280;
    font-size: 13px;
}

.funnel-table__status-cell {
    position: relative;
    min-width: 160px;
    vertical-align: middle;
}

.funnel-table__status-picker {
    cursor: pointer;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    max-width: 100%;
}

.funnel-table__status-badge-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.funnel-table__status-chevron {
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.85;
    transition: transform 0.15s ease;
}

.funnel-table__status-cell.is-open .funnel-table__status-chevron {
    transform: rotate(180deg);
}

.funnel-table__status-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 30;
    min-width: 200px;
    max-width: 260px;
    max-height: 280px;
    padding: 6px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(60, 152, 255, 0.18);
}

.funnel-table__status-dropdown.is-open {
    display: block;
}

.funnel-table__status-option {
    display: block;
    width: 100%;
    min-width: 188px;
    margin: 0 0 4px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
    border-radius: 14px;
    cursor: pointer;
}

.funnel-table__status-option:last-child {
    margin-bottom: 0;
}

.funnel-table__status-option:hover {
    filter: brightness(0.95);
}

.funnel-table__status-option--active {
    box-shadow: inset 0 0 0 2px rgba(60, 152, 255, 0.55);
}

.funnel-table__row--red td {
    background-color: #fff5f5;
}

.funnel-table__row--yellow td {
    background-color: #fffbf0;
}

.funnel-table__row--green td {
    background-color: #f3fff2;
}

.funnel-table__row:hover td {
    background-color: #f1f7ff;
}

.funnel-table__row--selected:hover td {
    background-color: #d6e8ff !important;
}

.funnel-table__status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.funnel-table__deadline--overdue {
    color: #e66464;
    font-weight: 700;
}

.funnel-table__deadline--overdue .mdi {
    font-size: 14px;
    vertical-align: -1px;
}

.funnel--table .funnel-table .table > thead > tr.filters > td {
    padding: 6px 8px;
}

.minimap--table {
    right: 100px;
    left: auto;
    transform: none;
    min-width: 190px;
    max-width: 240px;
    height: 50px;
}

.minimap--table .minimap__inner {
    min-height: 38px;
}

.minimap--table .minimap__children {
    height: 30px;
}

.funnel-wrapper--table .jsarrows__arrow {
    z-index: 12;
}

.context-menu-kanban.show {
    position: fixed;
    z-index: 1060;
    display: block;
}