/* ===== ROUNDED CONTAINER — убрать скругление ===== */
.new-rounded-container {
    border-radius: 0 !important;
}

/* ===== STAGE COL HEADER — современный стиль, нежные цвета ===== */
.new-kanban-layout .stage-col-header {
    height: 40px !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(0,0,0,.07) !important;
    display: flex !important;
    align-items: center !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-bottom: 0 !important;
    position: relative;
}

/* Приглушаем яркие фоны через полупрозрачный белый слой поверх */
.new-kanban-layout .stage-col-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.52);
    pointer-events: none;
}

/* Текст темнее, чтобы читался на пастельном фоне */
.new-kanban-layout .stage-col-header .stage-header,
.new-kanban-layout .stage-col-header .stage-sub-header,
.new-kanban-layout .stage-col-header * {
    color: #1b2333 !important;
    position: relative;
    z-index: 1;
}

.new-kanban-layout .stage-header {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    margin-top: 0 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

.new-kanban-layout .stage-sub-header {
    font-size: 10px !important;
    opacity: .65;
    letter-spacing: .01em !important;
}

/* ===== ACTION-BLOCK / CRM HEAD BOX — стиль как у заголовков колонок ===== */

.crm-head-box {
    display: flex;
    gap: 6px;
    height: 38px;
    align-items: center;
    flex: 1;
    margin-bottom: 6px;
}

/* Кнопка раскрытия фильтра */
.crm-head-box .toggle-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #4b5563;
    text-decoration: none;
    transition: color .12s, border-color .12s;
    margin-left: 0;
    flex-shrink: 0;
}
.crm-head-box .toggle-menu-link:hover {
    color: #1a3f8a;
    border-bottom-color: rgba(47,111,237,.5);
}
.crm-head-box .toggle-menu-link svg {
    display: block;
}

/* Контейнер кнопок */
.crm-head-box .temp-leads {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Базовый стиль кнопок — только нижнее подчёркивание */
.crm-head-box .temp-leads a,
.crm-head-box .openTempLeadsModal,
.crm-head-box .openQualificationLeadsModal,
.crm-head-box .openNoTaskLeadsModal {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    height: 32px !important;
    padding: 0 11px !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    background: transparent !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-decoration: none;
    transition: background .12s, color .12s, border-color .12s;
    white-space: nowrap;
}
.crm-head-box .temp-leads a svg,
.crm-head-box .openTempLeadsModal svg,
.crm-head-box .openQualificationLeadsModal svg,
.crm-head-box .openNoTaskLeadsModal svg {
    flex-shrink: 0;
}

/* Непринятые — красное подчёркивание */
.crm-head-box .openTempLeadsModal {
    color: #7a2020 !important;
    border-bottom-color: rgba(217,72,72,.35) !important;
}
.crm-head-box .openTempLeadsModal:hover {
    background: rgba(217,72,72,.08) !important;
    color: #5c1818 !important;
    border-bottom-color: rgba(217,72,72,.7) !important;
}
.crm-head-box .openTempLeadsModal.btn-new-leads {
    background: rgba(217,72,72,.1) !important;
    color: #5c1818 !important;
    border-bottom-color: rgba(217,72,72,.7) !important;
}

/* На квалификацию — зелёное подчёркивание */
.crm-head-box .openQualificationLeadsModal {
    color: #0d5236 !important;
    border-bottom-color: rgba(18,135,90,.35) !important;
}
.crm-head-box .openQualificationLeadsModal:hover {
    background: rgba(18,135,90,.08) !important;
    color: #093d28 !important;
    border-bottom-color: rgba(18,135,90,.7) !important;
}
.crm-head-box .openQualificationLeadsModal.btn-new-leads {
    background: rgba(18,135,90,.1) !important;
    color: #093d28 !important;
    border-bottom-color: rgba(18,135,90,.7) !important;
}

/* lite-home-btn — синее подчёркивание */
.lite-home-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    height: 32px !important;
    padding: 0 10px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid rgba(47,111,237,.35) !important;
    color: #1a3f8a !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-decoration: none;
    transition: background .12s, color .12s, border-color .12s;
    white-space: nowrap;
}
.lite-home-btn:hover {
    background: rgba(47,111,237,.08) !important;
    color: #102d69 !important;
    border-bottom-color: rgba(47,111,237,.7) !important;
}
.lite-home-btn svg {
    flex-shrink: 0;
}

/* in-queue-user-now — информационная метка, не кнопка */
.in-queue-user-now {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 10px;
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(180,83,9,.4);
    color: #7a3a06 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    pointer-events: none;
    cursor: default;
}

/* Search-box — обёртка */
.crm-head-box .search-box {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #e6e8ec !important;
    padding: 0 11px !important;
    height: 32px;
    background: transparent !important;
    min-width: 140px;
    margin-left: 0;
    width: 100% !important;
    transition: border-color .15s;
    position: relative;
}
.crm-head-box .search-box:focus-within {
    border-bottom-color: rgba(47,111,237,.5) !important;
    box-shadow: none;
}
.crm-head-box .search-placeholder-img {
    position: static !important;
    margin: 0 !important;
    width: 14px !important;
    height: 14px !important;
    color: #9aa1ac;
    flex-shrink: 0;
}
.crm-head-box .quick_search {
    border: none !important;
    border-radius: 0 !important;
    outline: none;
    background: transparent !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #1b2333 !important;
    height: auto !important;
    padding: 0 !important;
    width: 100%;
}
.crm-head-box .quick_search::placeholder {
    color: #9aa1ac !important;
}

/* search-results — выпадает ниже search-box, не перекрывает инпут */
.crm-head-box .search-results {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    width: auto !important;
    z-index: 10000;
    margin-top: 0;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-top: none;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    padding: 8px 0;
}
.crm-head-box .search-results .search-results-item {
    padding: 6px 14px;
    font-size: 12.5px;
    color: #1b2333;
    border-bottom: 1px solid #f0f1f4;
    margin-bottom: 0;
    transition: background .1s;
}
.crm-head-box .search-results .search-results-item:last-child {
    border-bottom: none;
}
.crm-head-box .search-results .search-results-item:hover {
    background: #f7f9ff;
}
.crm-head-box .search-results .text-muted {
    display: block;
    padding: 6px 14px;
    font-size: 11.5px;
    color: #9aa1ac;
}
.crm-head-box .search-results .show-info-modal {
    padding: 4px 14px;
    font-size: 11px;
    color: #9aa1ac;
}

/* ===== ROUNDED CONTAINER — убрать фон ===== */
.rounded-container {
    background-color: transparent !important;
}

/* ===== KANBAN КАРТОЧКА КОМПАНИИ ===== */
.new-kanban-layout .stage-lead-company {
    height: 32px !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background-color: rgba(4,44,80,.06) !important;
    border: none !important;
    border-left: 3px solid rgba(47,111,237,.4) !important;
    padding: 0 10px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.new-kanban-layout .stage-lead-company .full-name-client {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #1b2333 !important;
    letter-spacing: .01em;
    overflow: hidden;
    text-overflow: ellipsis;
}
.new-kanban-layout .stage-lead-company .badge-secondary {
    background-color: rgba(255,255,255,.7) !important;
    color: #4b5563 !important;
    font-weight: 500 !important;
    font-size: 10px !important;
    border-radius: 4px !important;
    padding: 1px 5px !important;
    border: 1px solid rgba(0,0,0,.1);
}

/* ===== KANBAN КАРТОЧКА СДЕЛКИ ===== */
.new-kanban-layout .stage-lead {
    background-color: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #f0f1f4 !important;
    border-left: none !important;
    padding-left: 12px !important;
    font-size: 13px !important;
    transition: background .1s;
    position: relative;
}
.new-kanban-layout .stage-lead:hover {
    background-color: #f7f9ff !important;
}

.new-kanban-layout .lead-link {
    color: #1b2333 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    text-decoration: none;
    display: block;
    line-height: 1.35;
}
.new-kanban-layout .lead-link:hover {
    color: #2f6fed !important;
}

.new-kanban-layout .lead-date {
    color: #9aa1ac !important;
    font-size: 10.5px !important;
}

.new-kanban-layout .price-client {
    display: inline-flex;
    align-items: center;
    color: #2f6fed !important;
    font-size: 10.5px !important;
    font-family: 'SF Mono', 'JetBrains Mono', Consolas, monospace;
    font-weight: 700 !important;
    padding: 1px 6px !important;
    border: 1px solid rgba(47,111,237,.3) !important;
    border-radius: 4px !important;
    height: auto !important;
    line-height: 1.4 !important;
    background: rgba(47,111,237,.06);
}

.new-kanban-layout .stage-lead .lead-has-updates {
    color: #2f6fed;
    font-size: 7px;
}

/* ===== FILTER DRAWER OVERLAY ===== */
.filter-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.25);
    z-index: 100000;
}

/* ===== FILTER DRAWER — панель справа с анимацией ===== */
.float-filter-menu {
    position: fixed !important;
    top: 40px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 300px !important;
    height: auto !important;
    z-index: 100001 !important;
    background: #fff !important;
    border-left: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    box-shadow: -8px 0 32px rgba(0,0,0,.1) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.float-filter-menu.open {
    transform: translateX(0) !important;
}

/* Заголовок дравера */
.float-filter-menu::before {
    content: 'Фильтр';
    display: block;
    padding: 14px 20px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #1b2333;
    letter-spacing: .03em;
    text-transform: uppercase;
    border-bottom: 1px solid #f0f1f4;
    flex-shrink: 0;
}

/* Формы внутри дравера */
.float-filter-menu .filter-form {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f1f4;
}
.float-filter-menu .filter-form:last-child {
    border-bottom: none;
}

/* Лейблы и поля */
.float-filter-menu .mb-2 {
    margin-bottom: 10px !important;
}
.float-filter-menu .form-control,
.float-filter-menu select.form-control {
    border: 1px solid #e6e8ec !important;
    border-radius: 7px !important;
    height: 32px !important;
    font-size: 12.5px !important;
    color: #1b2333 !important;
    background: #fff !important;
    padding: 0 10px !important;
    box-shadow: none !important;
    outline: none !important;
    width: 100%;
    transition: border-color .15s;
}
.float-filter-menu .form-control:focus,
.float-filter-menu select.form-control:focus {
    border-color: rgba(47,111,237,.5) !important;
}
.float-filter-menu input[type=date].form-control {
    height: 32px !important;
}

/* Кнопки custom-switch */
.float-filter-menu .custom-control-label {
    font-size: 12.5px;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.6;
}
.float-filter-menu .custom-control-label::before {
    border-radius: 10px;
    border-color: #d7dbe1;
    background: #d7dbe1;
}
.float-filter-menu .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #2f6fed;
    border-color: #2f6fed;
}

/* Кнопки применить/сбросить */
.float-filter-menu .flex-filter-btns {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.float-filter-menu .flex-filter-btns a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 14px;
    border-radius: 7px;
    border: none;
    background: rgba(47,111,237,.1);
    color: #1a3f8a;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .12s;
    white-space: nowrap;
}
.float-filter-menu .flex-filter-btns a:hover {
    background: rgba(47,111,237,.2);
}
.float-filter-menu .flex-filter-btns .resetBtn {
    background: rgba(0,0,0,.05);
    color: #4b5563;
}
.float-filter-menu .flex-filter-btns .resetBtn:hover {
    background: rgba(0,0,0,.1);
}

/* Кнопка + новая сделка */
.float-filter-menu .filter-add-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 32px;
    padding: 0 14px !important;
    width: auto !important;
    border: none !important;
    border-radius: 7px !important;
    background: rgba(18,135,90,.1) !important;
    color: #0d5236 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none;
    transition: background .12s;
}
.float-filter-menu .filter-add-btn:hover {
    background: rgba(18,135,90,.2) !important;
}

/* Поле поиска внутри дравера */
.float-filter-menu .search-inp {
    width: 100% !important;
    height: 32px !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 7px !important;
    padding: 0 10px 0 32px !important;
    font-size: 12.5px !important;
    color: #1b2333 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.float-filter-menu .search-inp:focus {
    border-color: rgba(47,111,237,.5) !important;
    outline: none !important;
    box-shadow: none !important;
}
.float-filter-menu .search-placeholder-img {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px !important;
    height: 14px !important;
    opacity: .5;
    pointer-events: none;
    margin: 0 !important;
}

/* ===== SEARCH RESULTS — современный стиль ===== */
.search-results-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 14px;
    border-bottom: 1px solid #f0f1f4;
    font-size: 12.5px;
    color: #1b2333;
    transition: background .1s;
}
.search-results-item:last-child {
    border-bottom: none;
}
.search-results-item:hover {
    background: #f7f9ff;
}
.search-results-item a {
    color: #1b2333;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-results-item a:hover {
    color: #2f6fed;
}
.search-results-item .lead-date {
    font-size: 11px !important;
    color: #9aa1ac !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.search-results-item .lead-has-updates {
    font-size: 6px;
    color: #2f6fed;
    flex-shrink: 0;
}
.search-results-item .tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.search-results .row {
    margin: 0;
    padding: 0;
}
.search-results .col-md-2 {
    padding: 8px 14px 4px;
    font-size: 10px;
    font-weight: 700;
    color: #9aa1ac;
    letter-spacing: .05em;
    text-transform: uppercase;
    width: auto;
    max-width: 100%;
    flex: 0 0 100%;
}
.search-results .col-md-10 {
    padding: 0;
    width: auto;
    max-width: 100%;
    flex: 0 0 100%;
}
.search-results .mt-2 {
    padding: 6px 14px;
}
.search-results .show-hidden-leads {
    font-size: 11px;
    color: #2f6fed;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .03em;
    text-decoration: none;
}
.search-results .show-hidden-leads:hover {
    text-decoration: underline;
}
.search-results .search-loader {
    padding: 10px 14px;
    font-size: 12px;
    color: #9aa1ac;
}

/* ===== IZIMODAL — современный стиль ===== */
.iziModal {
    border-radius: 0 !important;
    border-bottom: none !important;
    box-shadow: 0 16px 48px rgba(0,0,0,.16) !important;
    overflow: hidden !important;
}

.iziModal-header {
    padding: 12px 48px 12px 20px !important;
    min-height: auto !important;
    background: #1c2438 !important;
}

.iziModal-header-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,.9) !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.iziModal-header-subtitle {
    font-size: 11px !important;
    color: rgba(255,255,255,.5) !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.iziModal-header-buttons {
    right: 10px !important;
}

.iziModal-button-close {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    opacity: .6 !important;
    transition: opacity .12s !important;
}
.iziModal-button-close:hover {
    opacity: 1 !important;
}

.iziModal-wrap {
    background: #fff !important;
}

.iziModal-content {
    font-size: 13px !important;
    color: #1b2333 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

/* Подложка — glass blur эффект */
.iziModal-overlay {
    background: rgba(15,20,40,.45) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

/* ===== KANBAN — stage-lead-company ===== */
.new-kanban-layout .stage-lead.disable-sort.stage-lead-company {
    background-color: rgba(4,44,80,.08) !important;
    border-left-color: rgba(47,111,237,.5) !important;
    cursor: pointer;
    position: relative;
}

/* Глазик — закрытый по умолчанию (eye-off) */
.new-kanban-layout .stage-lead.disable-sort.stage-lead-company::before {
    content: '';
    display: inline-flex;
    align-items: center;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-right: 6px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    color: rgba(47,111,237,.5);
    /* eye-off SVG */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94'/%3E%3Cpath d='M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94'/%3E%3Cpath d='M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

/* Глазик — открытый когда expanded */
.new-kanban-layout .stage-lead.disable-sort.stage-lead-company.open::before {
    color: rgba(47,111,237,.8);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

 /* ===== QUEUE MODAL — современный стиль ===== */
#queueModal .modal-dialog {
    width: 360px !important;
    max-width: 90vw !important;
}

#queueModal .modal-content {
    border-radius: 0;
    border: none;
    box-shadow: 0 16px 48px rgba(0,0,0,.18);
    overflow: hidden;
}

#queueModal .modal-header {
    background: #1c2438;
    border-bottom: none;
    padding: 13px 18px;
    display: flex;
    align-items: center;
}

#queueModal .modal-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    margin: 0;
}

#queueModal .btn-close {
    width: 26px !important;
    height: 26px !important;
    border-radius: 6px !important;
    background: transparent !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: .5 !important;
    transition: opacity .12s !important;
    margin-left: auto !important;
    padding: 0 !important;
}
#queueModal .btn-close:hover {
    opacity: 1 !important;
    background: rgba(255,255,255,.1) !important;
}
#queueModal .btn-close svg {
    width: 14px !important;
    height: 14px !important;
}
#queueModal .btn-close svg path {
    fill: #fff !important;
}

#queueModal .modal-body {
    padding: 0 !important;
    background: #fff;
}

#queueModal .queue-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

#queueModal .queue-list a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1b2333 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f1f4 !important;
    transition: background .1s, color .1s !important;
}
#queueModal .queue-list a:last-child {
    border-bottom: none !important;
}
#queueModal .queue-list a:hover {
    background: #f7f9ff !important;
    color: #2f6fed !important;
}
#queueModal .queue-list a::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e6e8ec;
    flex-shrink: 0;
    transition: background .1s;
}
#queueModal .queue-list a:hover::before {
    background: #2f6fed;
}

/* Backdrop с blur для Bootstrap modal */
.modal-backdrop.show {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(15,20,40,.5) !important;
    opacity: 1 !important;
}
#queueModal {
    .modal-content {
        background-color: transparent;
    }
}

/* ===== LEAD SIDEBAR — современный редизайн ===== */

.lead-left {
    width: 360px !important;
    min-width: 340px;
}

.lead-sidebar ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Каждый блок — li */
.lead-sidebar ul li {
    display: block !important;
    margin-bottom: 0 !important;
    background-color: #fff !important;
    border-left: 3px solid #d0d6e0 !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e6e8ec !important;
    transition: border-left-color .15s !important;
}
.lead-sidebar ul li:hover {
    background-color: #f7f9ff !important;
    border-left-color: #2f6fed !important;
}

/* Заголовок li — кликабельный toggle */
.lead-sidebar ul li h4 {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    color: #1b2333 !important;
    padding: 8px 10px !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
    transition: color .12s, background .12s !important;
    user-select: none;
    position: relative;
    background: #e6e8ec;
}
.lead-sidebar ul li h4:hover {
    color: #1b2333 !important;
    background: #d7dbe6 !important;
}

/* Шеврон через ::after — вниз по умолчанию, поворачивается когда контент видим */
.lead-sidebar ul li h4::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    margin-left: auto;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: transform .2s;
}

/* Когда контент скрыт — шеврон повёрнут */
.lead-sidebar ul li:has(.lead-sidebar-container.hidden-elem) h4::after {
    transform: rotate(-90deg);
}

/* Контейнер с содержимым */
.lead-sidebar-container {
    margin-top: 7px;
    padding: 0 10px 10px 12px !important;
}

/* Кнопки */
.lead-sidebar .form-control,
.lead-sidebar select.form-control,
.lead-sidebar .form-control-sm {
    border: 1px solid #e6e8ec !important;
    border-radius: 6px !important;
    height: 30px !important;
    font-size: 12px !important;
    color: #1b2333 !important;
    background: #fff !important;
    padding: 0 8px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .15s !important;
}
.lead-sidebar .form-control:focus,
.lead-sidebar select.form-control:focus {
    border-color: rgba(47,111,237,.5) !important;
}

/* Поле ввода названия сделки */
.lead-title-input {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    height: 32px !important;
    border-radius: 6px !important;
}

/* Этап */
.current-stage {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    color: #4b5563 !important;
    background-color: #f4f5f8 !important;
    margin-top: 0 !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    border: 1px solid #e6e8ec !important;
    height: 28px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    letter-spacing: .03em;
    transition: background .1s, border-color .1s !important;
}
.current-stage:hover {
    background-color: #eaf1ff !important;
    border-color: rgba(47,111,237,.4) !important;
    color: #1a3f8a !important;
}

/* Выпадающий список этапов */
.lead-dropdown {
    display: none;
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border-radius: 6px !important;
    overflow: hidden;
    border: 1px solid #e6e8ec;
}
.lead-dropdown li {
    background-color: transparent !important;
    color: #1b2333 !important;
    border-radius: 0 !important;
    border: none !important;
    height: 28px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background .1s !important;
    position: relative;
}
.lead-dropdown li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: .5;
    margin-right: 6px;
    flex-shrink: 0;
}
.lead-dropdown li:hover {
    opacity: 1 !important;
    background: rgba(47,111,237,.07) !important;
    color: #1a3f8a !important;
}

/* Менеджер */
.lead-manager-box {
    gap: 10px !important;
}
.manager-photo {
    width: 40px !important;
}
.item-photo {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background-size: cover !important;
    background-position: center !important;
}
.manager-info .name {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #1b2333 !important;
}

/* Contr-box поля */
.lead-sidebar-container .contr-box-item span {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    color: #9aa1ac !important;
    display: block;
    margin-bottom: 2px;
    margin-top: 6px;
}

/* Убрать горизонтальный скролл в левом сайдбаре */
.lead-left {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
.lead-sidebar-container .contr-box-item input,
.lead-sidebar-container .contr-box-item select {
    max-width: 100%;
    width: 100% !important;
    box-sizing: border-box;
}

/* ===== BTN-LEAD GRID — две кнопки в ряд ===== */
.btn-lead-grid {
    margin-top: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 0;
    background: transparent;
}

/* ===== BTN-LEAD — пастельный стиль с тёмным текстом ===== */
.btn-lead {
    height: 32px !important;
    border-radius: 0 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 0;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: .03em !important;
    text-transform: uppercase !important;
    color: #1b2333 !important;
    margin-top: 0 !important;
    cursor: pointer !important;
    transition: filter .12s !important;
    text-decoration: none !important;
    box-sizing: border-box;
}
.btn-lead:hover {
    filter: brightness(.94) !important;
    color: #1b2333 !important;
}

.btn-make-call {
    background-color: #cfe2ff !important;
}
.btn-write {
    background-color: #fde8d0 !important;
}
.btn-chat {
    background-color: #d4edda !important;
    display: flex !important;
}
.btn-chat svg {
    width: 12px !important;
    height: 12px !important;
}
.btn-save {
    background-color: #e2d9f3 !important;
}
.btn-restore {
    background-color: #fff3cd !important;
    grid-column: 1 / -1;
}
.btn-make-call:disabled,
.btn-open-write-tab:disabled {
    opacity: .4 !important;
}

/* ===== LEAD HEAD NAV — современный стиль вкладок ===== */
.lead-head-nav {
    display: inline-flex !important;
    gap: 2px !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
    list-style: none !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: #f0f1f4 !important;
    justify-content: flex-start !important;
    width: auto !important;
}

.newLeadForm .lead-head-nav {
    height: 40px !important;
}

.lead-head-nav li {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    height: 40px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    color: #6b7280 !important;
    background: #e6e8ec !important;
    border: none !important;
    cursor: pointer !important;
    flex: none !important;
    white-space: nowrap;
    transition: color .12s, background .12s !important;
}
.lead-head-nav li:not(:last-child) {
    border-right: none !important;
}
.lead-head-nav li svg {
    opacity: .7;
    transition: opacity .12s;
}
.lead-head-nav li:hover {
    color: #1b2333 !important;
    background: #d7dbe6 !important;
}
.lead-head-nav li:hover svg {
    opacity: 1;
}
.lead-head-nav li.active {
    color: #fff !important;
    background: #1c2438 !important;
}
.lead-head-nav li.active svg {
    opacity: .9;
}

/* Загрузчик внутри вкладки */
.lead-head-nav li .tab-loader {
    width: 12px !important;
    height: 12px !important;
}

/* ===== FEED FILTER — фильтры ленты ===== */
.feed-filter {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid #f0f1f4 !important;
    margin-bottom: 8px !important;
}

.feed-filter-item {
    display: inline-flex !important;
    align-items: center !important;
    height: 24px !important;
    padding: 0 10px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .03em !important;
    color: #9aa1ac !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    transition: color .1s, border-color .1s !important;
}
.feed-filter-item input {
    display: none !important;
}
.feed-filter-item:hover:not(.feed-filter-item-active) {
    color: #4b5563 !important;
    background: transparent !important;
    border-color: transparent !important;
    border-bottom-color: #d0d6e0 !important;
}
.feed-filter-item-active {
    color: #1b2333 !important;
    background: transparent !important;
    border-color: transparent !important;
    border-bottom-color: #1c2438 !important;
}

.toggle-notifications {
    display: inline-flex !important;
    align-items: center !important;
    height: 24px !important;
    padding: 0 10px !important;
    background: rgba(180,83,9,.08) !important;
    border: 1px solid rgba(180,83,9,.2) !important;
    border-radius: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #7a3a06 !important;
    cursor: pointer !important;
    transition: background .1s !important;
}
.toggle-notifications:hover {
    background: rgba(180,83,9,.15) !important;
}

.adv-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d94848;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    position: absolute;
    top: -4px;
    right: -6px;
}
.lead-tab-content {
    border-radius: 0 !important;
    padding: 0 !important;
}

/* ===== FEED LIST — лента событий ===== */
.feed-list {
    display: block !important;
    padding: 0 !important;
}

/* Закреплённые заметки — фиксированные сверху ленты */
.sticky-notes {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: #fff !important;
    border: none !important;
    margin-bottom: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
}
.sticky-notes .feed-item {
    border-bottom: none !important;
}

/* Группировка по датам */
.feed-group-title {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 8px 16px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    color: #9aa1ac !important;
    background: #f4f5f8 !important;
    border-bottom: 1px solid #e6e8ec !important;
    cursor: pointer !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    transition: background .1s !important;
}
.feed-group-title:hover {
    background: #eaf1ff !important;
    color: #2f6fed !important;
}
.feed-group-title-active {
    background: #f4f5f8 !important;
    color: #4b5563 !important;
}

.feed-group-content {
    background: transparent !important;
    padding: 0 !important;
}

/* ===== ACTIVITY FEED — modern flat timeline ===== */

/* Контейнер ленты (дублирующий блок — перекрыт выше) */
.feed-list {
    display: block !important;
    gap: 0 !important;
    padding: 12px 0 !important;
}

/* Разделители дат */
.feed-group-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 4px 0 8px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
    color: #9aa1ac !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    position: static !important;
    margin-top: 8px !important;
}
.feed-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e6e8ec;
}
.feed-group-title:hover {
    color: #4b5563 !important;
    background: transparent !important;
}
.feed-group-title-active {
    color: #6b7280 !important;
}

/* Свёрнутое состояние группы */
.feed-group-content {
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
}
.feed-group-content.hidden-elem {
    display: none !important;
}

/* Карточка события — плоский стиль, высота по контенту */
.feed-item {
    display: block !important;
    background: #fff !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    border-left: 3px solid #e6e8ec !important;
    padding: 0 !important;
    transition: background .15s, border-color .15s !important;
    position: relative !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}
.feed-item:hover {
    background: #f4f5f8 !important;
    border-color: #d0d6e0 !important;
}

/* Цвет левой полоски по типу */
.style-task           { border-left-color: #f59e0b !important; }
.style-completed-task { border-left-color: #10b981 !important; }
.style-notification   { border-left-color: #9aa1ac !important; }
.style-call-in        { border-left-color: #2f6fed !important; }
.style-call-out       { border-left-color: #7c3aed !important; }
.style-chat-in        { border-left-color: #0891b2 !important; }
.style-chat-out       { border-left-color: #059669 !important; }
.style-mail-in        { border-left-color: #d97706 !important; }
.style-mail-out       { border-left-color: #dc2626 !important; }
.style-note           { border-left-color: #22c55e !important; }
.style-sticky-note    { border-left-color: #f97316 !important; }
.style-adv            { border-left-color: #8b5cf6 !important; }

/* Hover — одинаково светлый #f4f5f8 для всех типов */
.style-task:hover,
.style-completed-task:hover,
.style-sticky-note:hover,
.style-call-in:hover,
.style-note:hover {
    background: #f4f5f8 !important;
}

/* Заголовок карточки */
.feed-item-header-box {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px 14px 8px !important;
    border-bottom: 1px solid #f0f1f4 !important;
}

/* Иконка события */
.feed-icon {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-align: center !important;
}
.feed-icon img {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    filter: brightness(0) invert(1) !important;
}

/* Иконка по типу */
.style-task .feed-icon           { background: #fef3c7 !important; }
.style-task .feed-icon img       { filter: none !important; }
.style-completed-task .feed-icon { background: #d1fae5 !important; }
.style-completed-task .feed-icon img { filter: none !important; }
.style-notification .feed-icon   { background: #f3f4f6 !important; }
.style-notification .feed-icon img { filter: none !important; }
.style-call-in .feed-icon        { background: #dbeafe !important; }
.style-call-in .feed-icon img    { filter: none !important; }
.style-call-out .feed-icon       { background: #ede9fe !important; }
.style-call-out .feed-icon img   { filter: none !important; }
.style-chat-in .feed-icon        { background: #cffafe !important; }
.style-chat-in .feed-icon img    { filter: none !important; }
.style-chat-out .feed-icon       { background: #dcfce7 !important; }
.style-chat-out .feed-icon img   { filter: none !important; }
.style-mail-in .feed-icon        { background: #fef3c7 !important; }
.style-mail-in .feed-icon img    { filter: none !important; }
.style-mail-out .feed-icon       { background: #fee2e2 !important; }
.style-mail-out .feed-icon img   { filter: none !important; }
.style-note .feed-icon           { background: #dcfce7 !important; }
.style-note .feed-icon img       { filter: none !important; }
.style-sticky-note .feed-icon    { background: #ffedd5 !important; }
.style-sticky-note .feed-icon img { filter: none !important; }
.style-adv .feed-icon            { background: #ede9fe !important; }
.style-adv .feed-icon img        { filter: none !important; }

/* Контент заголовка */
.feed-content {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.feed-item-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
}

.feed-item-header .date {
    width: auto !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.feed-item-header .date .d-time {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
    line-height: 1.2 !important;
}

.feed-item-header .date .d-date {
    font-size: 10.5px !important;
    color: #9aa1ac !important;
    line-height: 1.2 !important;
}

.feed-item-header-title {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: .03em !important;
    text-transform: uppercase !important;
    color: #4b5563 !important;
    flex: 1 !important;
}

/* Тело карточки */
.feed-item-content {
    padding: 10px 14px 12px !important;
    font-size: 13px !important;
    color: #1b2333 !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    word-break: break-word;
}

/* Вторичный текст внутри */
.feed-item-info {
    font-size: 11.5px !important;
    color: #6b7280 !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
}

/* feed-item-placeholder полностью скрыт */
.feed-item-placeholder {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}
.feed-item.has-overflow .feed-item-placeholder {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 40px !important;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.9) 55%, #fff 100%) !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding-bottom: 5px !important;
    cursor: pointer !important;
    z-index: 2 !important;
}
.feed-item.has-overflow .feed-item-placeholder::after {
    content: '···  развернуть  ···';
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9aa1ac;
    line-height: 1.2;
}


/* Pull-right — кнопки действий в заголовке карточки */
.pull-right {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    float: right !important;
    margin-left: auto !important;
}
.pull-right a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    color: #9aa1ac !important;
    text-decoration: none !important;
    transition: color .12s !important;
    font-size: 16px !important;
}
.pull-right a:hover {
    color: #1b2333 !important;
}
.pull-right a.text-danger:hover {
    color: #d94848 !important;
}

/* hover не должен желтить placeholder */
.style-task .feed-item-placeholder,
.style-completed-task .feed-item-placeholder {
    background: transparent !important;
}
.style-sticky-note {
    border-bottom: 0 !important;
}

/* ===== LEAD FOOTER SLIDER — современный плоский стиль ===== */
.lead-footer-slider {
    background: #f0f1f4 !important;
    border: none !important;
    border-top: 2px solid #c7ccd6 !important;
    border-radius: 10px 10px 0 0 !important;
    left: 15% !important;
    right: 15% !important;
    width: auto !important;
    transform: none !important;
    transition: all .2s ease !important;
    box-shadow: 0 -3px 16px rgba(0,0,0,.1) !important;
}

.slider-down {
    background: #e6e8ec !important;
    border: none !important;
    border-top: 2px solid #c7ccd6 !important;
}

.slider-control {
    padding: 6px 16px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-bottom: 1px solid #d0d6e0 !important;
    cursor: pointer !important;
}

.slider-control img {
    width: 22px !important;
    height: 22px !important;
    opacity: .5;
    transition: opacity .12s;
}
.slider-control img:hover {
    opacity: .9;
}

.slider-content {
    margin: 0 !important;
    padding: 0 !important;
    max-height: 380px !important;
}

/* Вкладки нижней панели */
.new-feed-message .tab-nav {
    display: flex !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border-bottom: 1px solid #e6e8ec !important;
}

.new-feed-message .tab-nav li {
    display: inline-flex !important;
    align-items: center !important;
    height: 34px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    color: #9aa1ac !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -1px !important;
    cursor: pointer !important;
    transition: color .12s, border-color .12s !important;
    border-radius: 0 !important;
    border-color: transparent !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
}
.new-feed-message .tab-nav li:hover {
    color: #4b5563 !important;
    background: transparent !important;
}
.new-feed-message .feed-active-tab {
    color: #1b2333 !important;
    background: transparent !important;
    border-bottom-color: #1c2438 !important;
}

/* Цветные акценты вкладок убраны (плоский стиль) */
.new-feed-message .tab1,
.new-feed-message .tab2,
.new-feed-message .tab3,
.new-feed-message .tab4,
.new-feed-message .tab5,
.new-feed-message .tab6,
.new-feed-message .tab7 {
    border-color: transparent !important;
}
.new-feed-message .feed-active-tab.tab1,
.new-feed-message .feed-active-tab.tab2,
.new-feed-message .feed-active-tab.tab3,
.new-feed-message .feed-active-tab.tab4,
.new-feed-message .feed-active-tab.tab5,
.new-feed-message .feed-active-tab.tab6,
.new-feed-message .feed-active-tab.tab7 {
    border-bottom-color: #1c2438 !important;
}

/* Контейнер содержимого вкладки */
.feed-message-container {
    padding: 10px 14px 10px !important;
    background: transparent !important;
    border: none !important;
}

.new-feed-message .feed-message-container {
    border: 0 !important;
}

/* Таблица задач */
.feed-message .lead-tasks {
    margin-top: 8px !important;
    font-size: 12px !important;
}
.feed-message .lead-tasks th,
.feed-message .lead-tasks td {
    padding: 6px 8px !important;
    font-size: 11.5px !important;
    vertical-align: middle !important;
    border-color: #e6e8ec !important;
}
.feed-message table.table-bordered {
    border: 1px solid #e6e8ec !important;
}
.feed-message table.table-bordered > thead > tr > th,
.feed-message table.table-bordered > tbody > tr > td {
    border: 1px solid #e6e8ec !important;
}
.feed-message .lead-tasks thead tr {
    background: #f4f5f8 !important;
    color: #4b5563 !important;
}

/* Поля ввода в нижней панели */
.new-feed-message textarea,
.new-feed-message .autoresize-area {
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    background: #fff !important;
    font-size: 12.5px !important;
    color: #1b2333 !important;
    padding: 8px 10px !important;
    resize: vertical !important;
    min-height: 60px !important;
    box-shadow: none !important;
    outline: none !important;
    width: 100% !important;
    transition: border-color .12s !important;
}
.new-feed-message textarea:focus {
    border-color: rgba(47,111,237,.45) !important;
}

/* Форма действий (задача) */
.new-feed-message .feed-task-form .actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    font-size: 12px !important;
    color: #6b7280 !important;
}
.new-feed-message .feed-task-form .actions input,
.new-feed-message .feed-task-form .actions select,
.new-feed-message .feed-note-form .actions input,
.new-feed-message .feed-note-form .actions select {
    height: 28px !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    padding: 0 8px !important;
    background: #fff !important;
}

/* Кнопка Отправить */
.new-feed-message .addFeedBtn {
    height: 30px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    background: #1c2438 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: opacity .12s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.new-feed-message .addFeedBtn:hover {
    opacity: .85 !important;
}

/* Строки выезды/проекты */
.services-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 6px 6px !important;
    font-size: 11.5px !important;
    color: #1b2333 !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: 1px solid #f0f1f4 !important;
    transition: background .12s !important;
}
.services-row:hover {
    background: #f4f5f8 !important;
    color: #1b2333 !important;
    text-decoration: none !important;
}
.services-row img {
    display: none !important;
}
.services-row::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-color: #9aa1ac;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.feed-trips-form .services-row::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
}
.contract-title-cell {
    font-size: 11.5px !important;
    color: #1b2333 !important;
}

/* Блок чат-сообщения */
.feed-adv-message-container {
    padding: 8px 0 !important;
    border-bottom: 1px solid #f0f1f4 !important;
    margin-bottom: 8px !important;
}

/* Селект получателя чата */
.chatMessageFor,
.chat-message-for ~ span select {
    height: 26px !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    padding: 0 6px !important;
    background: #fff !important;
    color: #1b2333 !important;
    box-shadow: none !important;
    outline: none !important;
    min-width: 140px !important;
}
.chatMessageFor:focus {
    border-color: rgba(47,111,237,.45) !important;
}

/* Строки почтовой формы */
.mail-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 4px !important;
    padding: 3px 0 !important;
    min-height: 34px !important;
}
.mail-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #9aa1ac !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    min-width: 42px !important;
    flex-shrink: 0;
}
.mail-field {
    flex: 1 !important;
}
.mail-field input,
.mail-field select {
    width: 100% !important;
    height: 26px !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    padding: 0 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
}
.mail-field input:focus,
.mail-field select:focus {
    border-color: rgba(47,111,237,.45) !important;
}

/* ===== LEAD LIST CARDS — newLeadItem и кнопки действий ===== */

/* Строка кнопок действий — flex */
.newLeadItem .col-md-12.mt-2 > .row > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    padding: 4px !important;
}

/* Перебить инлайновый color на markNoContactBtn */
.markNoContactBtn {
    color: #991b1b !important;
}


.newLeadItem {
    background: #fff !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    border-left: 3px solid #d0d6e0 !important;
    padding: 12px 14px !important;
    margin-bottom: 4px !important;
    margin-right: 0 !important;
    box-shadow: none !important;
    transition: background .12s, border-color .12s !important;
}
.newLeadItem:hover {
    background: #f7f9ff !important;
    border-left-color: #2f6fed !important;
    box-shadow: none !important;
}

.call-cell {
    background: #fff !important;
    border-left-color: #2f6fed !important;
}
.phone-cell {
    background: #fff !important;
    border-left-color: #10b981 !important;
}

.newLeadItem .openModal {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1b2333 !important;
    text-decoration: none !important;
    transition: color .12s !important;
}
.newLeadItem .openModal:hover {
    color: #2f6fed !important;
}

/* Кнопки действий — плоский компактный стиль */
.acceptBtn,
.rejectBtn,
.rejectBtn2,
.supplierBtn,
.qualificationBtn,
.blockBtn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .03em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
    transition: background .12s !important;
    white-space: nowrap;
    cursor: pointer;
}

.acceptBtn {
    background: #d1fae5 !important;
    border-color: #a7f3d0 !important;
    color: #065f46 !important;
}
.acceptBtn i { color: #059669 !important; }
.acceptBtn:hover { background: #a7f3d0 !important; color: #064e3b !important; }

.rejectBtn {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #991b1b !important;
}
.rejectBtn i { color: #dc2626 !important; }
.rejectBtn:hover { background: #fca5a5 !important; color: #7f1d1d !important; }

.rejectBtn2 {
    background: #f4f5f8 !important;
    border-color: #d0d6e0 !important;
    color: #4b5563 !important;
}
.rejectBtn2:hover { background: #e6e8ec !important; color: #1b2333 !important; }

.supplierBtn {
    background: #ede9fe !important;
    border-color: #c4b5fd !important;
    color: #5b21b6 !important;
}
.supplierBtn i { color: #7c3aed !important; }
.supplierBtn:hover { background: #ddd6fe !important; color: #4c1d95 !important; }

.qualificationBtn {
    background: #cffafe !important;
    border-color: #a5f3fc !important;
    color: #164e63 !important;
}
.qualificationBtn i { color: #0891b2 !important; }
.qualificationBtn:hover { background: #a5f3fc !important; color: #0e3a4f !important; }

.blockBtn {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    color: #1e3a8a !important;
}
.blockBtn i { color: #1d4ed8 !important; }
.blockBtn:hover { background: #bfdbfe !important; }

/* Форма отклонения */
.reject-comment-box {
    margin-top: 8px !important;
    padding: 10px !important;
    background: #fafbfc !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
}
.reject-comment-box textarea {
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    padding: 6px 8px !important;
    min-height: 60px !important;
    resize: vertical !important;
    width: 100% !important;
    margin-top: 6px !important;
}
.reject-comment-box input[type="text"] {
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    height: 28px !important;
    padding: 0 8px !important;
    width: 100% !important;
    margin-top: 6px !important;
}

/* Кнопка "Нет контакта" — выровнять вертикально с другими кнопками */
.markNoContactBtn {
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .03em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    border: 1px solid #fca5a5 !important;
    background: #fee2e2 !important;
    color: #991b1b !important;
    text-decoration: none !important;
    transition: background .12s !important;
}
.markNoContactBtn:hover {
    background: #fca5a5 !important;
    color: #7f1d1d !important;
}

/* ===== POPUP FILTERS — фильтры в попапах ===== */

/* Контейнер фильтра в попапах */
.iziModal .col-md-12:has(.baza-user-id),
.iziModal [class*="filter"],
.baza-sort {
    font-size: 12px !important;
}

/* Селекты в фильтрах (baza и similar) */
.baza-user-id,
.baza-type-id {
    display: inline-flex !important;
    height: 28px !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    font-size: 11.5px !important;
    color: #1b2333 !important;
    background: #fff !important;
    padding: 0 8px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .12s !important;
    margin-left: 6px !important;
}
.baza-user-id:focus,
.baza-type-id:focus {
    border-color: rgba(47,111,237,.45) !important;
}

/* Фильтр форм в попапах — отступ сверху */
.filter-form {
    padding-top: 12px !important;
}
.filter-form:first-child {
    padding-top: 16px !important;
}

/* Поля фильтра — form-control */
.filter-form .form-control,
.lead-main-filter .form-control {
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    height: 30px !important;
    font-size: 12px !important;
    color: #1b2333 !important;
    background: #fff !important;
    padding: 0 8px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .12s !important;
}
.filter-form .form-control:focus,
.lead-main-filter .form-control:focus {
    border-color: rgba(47,111,237,.45) !important;
}
.filter-form .form-control-sm,
.lead-main-filter .form-control-sm {
    height: 28px !important;
    font-size: 11.5px !important;
}

/* Поля дат */
.filter-form input[type="date"] {
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    height: 28px !important;
    font-size: 12px !important;
    padding: 0 8px !important;
    background: #fff !important;
    width: 100% !important;
    margin-bottom: 4px !important;
    box-shadow: none !important;
}

/* Кнопки фильтра */
.flex-filter-btns {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
}
.filter-form .btn-primary,
.lead-main-filter .btn-primary {
    height: 28px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    background: #1c2438 !important;
    border: none !important;
    border-radius: 0 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: opacity .12s !important;
}
.filter-form .btn-primary:hover,
.lead-main-filter .btn-primary:hover {
    opacity: .85 !important;
    color: #fff !important;
}
.filter-form .resetBtn {
    background: #f4f5f8 !important;
    color: #4b5563 !important;
    border: 1px solid #d0d6e0 !important;
}
.filter-form .resetBtn:hover {
    background: #e6e8ec !important;
    color: #1b2333 !important;
    opacity: 1 !important;
}

/* Ссылки сортировки */
.baza-sort {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #2f6fed !important;
    text-decoration: none !important;
}
.baza-sort:hover {
    color: #1a3f8a !important;
    text-decoration: underline !important;
}

/* Кнопка "Создать задачу" в фильтре */
.filter-add-btn {
    height: 30px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    background: #1c2438 !important;
    border: none !important;
    border-radius: 0 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: opacity .12s !important;
}
.filter-add-btn:hover {
    opacity: .85 !important;
    color: #fff !important;
}
.filter-box-form {
    margin-top: 10px;
}

/* ===== DOCS / FOLDERS TAB ===== */

/* Переключатель режима отображения */
.display-mode-doc-switcher {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 16px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #e6e8ec !important;
}
.switch-doc-mode {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    color: #9aa1ac !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    transition: color .12s, border-color .12s !important;
}
.switch-doc-mode svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
    fill: currentColor !important;
}
.switch-doc-mode svg path {
    fill: currentColor !important;
}
.switch-doc-mode:hover {
    color: #4b5563 !important;
    border-color: #d0d6e0 !important;
}
.switch-doc-mode.active {
    color: #fff !important;
    border-color: #1c2438 !important;
    background: #acb5cd !important;
}

/* Плитка папок и файлов */
.folders-tab-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    align-items: flex-start !important;
}
.folders-tab-list li {
    position: relative !important;
}
.folders-tab-list li a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    width: 72px !important;
    text-decoration: none !important;
    color: #4b5563 !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: color .12s !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}
.folders-tab-list li a:hover {
    color: #2f6fed !important;
}
.folders-tab-list li a div {
    width: 100% !important;
    max-width: 72px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
}

/* SVG-иконки папок и файлов */
.folder-icon-svg {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0;
    transition: transform .12s !important;
}
.folders-tab-list li a:hover .folder-icon-svg {
    transform: translateY(-2px) !important;
}

.file-icon-svg {
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0;
    opacity: .85;
    transition: opacity .12s, transform .12s !important;
}
.folders-tab-list li a:hover .file-icon-svg {
    opacity: 1 !important;
    transform: translateY(-2px) !important;
}

/* Старые img-иконки — fallback */
.folders-tab-list li a img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    opacity: .8 !important;
    transition: opacity .12s, transform .12s !important;
}
.folders-tab-list li a:hover img {
    opacity: 1 !important;
    transform: translateY(-2px) !important;
}

/* Кнопка удаления файла */
.deleteFolderFile {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    background: transparent !important;
    color: #dc2626 !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    line-height: 18px !important;
    text-decoration: none !important;
    opacity: 0;
    transition: opacity .12s !important;
    z-index: 2;
    overflow: hidden !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border: 2px solid #fff !important;
}
.folders-tab-list li:hover .deleteFolderFile {
    opacity: 1 !important;
}

/* Таблица папок/файлов (режим список) */
.folders-list-item,
.files-list-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.folders-list-item a,
.files-list-item a {
    font-size: 12.5px !important;
    color: #1b2333 !important;
    text-decoration: none !important;
    transition: color .12s !important;
}
.folders-list-item a:hover,
.files-list-item a:hover {
    color: #2f6fed !important;
}
.files-list-item .deleteFolderFile {
    position: static !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin-left: auto !important;
}

/* Таблица в режиме список */
.lead-tab-content .lead-tasks {
    font-size: 12px !important;
    border-color: #e6e8ec !important;
}
.lead-tab-content .lead-tasks th,
.lead-tab-content .lead-tasks td {
    padding: 6px 10px !important;
    border-color: #e6e8ec !important;
    font-size: 12px !important;
    vertical-align: middle !important;
}
.lead-tab-content .lead-tasks thead tr {
    background: #f4f5f8 !important;
    color: #4b5563 !important;
}
.lead-tab-content table.table-bordered {
    border: 1px solid #e6e8ec !important;
}
.lead-tab-content table.table-bordered > thead > tr > th,
.lead-tab-content table.table-bordered > tbody > tr > td {
    border: 1px solid #e6e8ec !important;
}

/* Окно создания папки */
.new-folder-window {
    background: #fff !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.12) !important;
    padding: 20px !important;
    width: 300px !important;
    height: auto !important;
}
.win-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    color: #4b5563 !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}
.win-form .folder-name {
    height: 30px !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    background: #fff !important;
    font-size: 12px !important;
    padding: 0 8px !important;
    width: 100% !important;
}
.win-button {
    height: 30px !important;
    border: none !important;
    border-radius: 0 !important;
    background: #1c2438 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    color: #fff !important;
    width: 100% !important;
    margin-top: 10px !important;
    cursor: pointer !important;
    transition: opacity .12s !important;
}
.win-button:hover {
    background: #1c2438 !important;
    opacity: .85 !important;
}
.add-folder {
    margin-top: 5px;
}

/* KP/Contract list inline SVGs — ограничить размер */
.new-lead-contract-row svg:not(.kp-drive-badge svg),
.show-all-kp-rows svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
}
.kp-drive-badge svg {
    width: 14px !important;
    height: 14px !important;
}

/* ===== CONTRACT / KP TABS ===== */

/* Список договоров/КП — секция */
.contract-form-box,
.kp-form-box {
    margin-top: 16px !important;
    padding-top: 14px !important;
    border-top: 1px solid #e6e8ec !important;
}

/* Строка договора/КП */
.new-lead-contract-row,
.new-lead-kp-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 10px !important;
    border: 1px solid #e6e8ec !important;
    border-left: 3px solid #2f6fed !important;
    border-radius: 0 !important;
    background: #fff !important;
    margin-bottom: 4px !important;
    transition: background .12s !important;
    cursor: pointer;
}
.new-lead-contract-row:hover,
.new-lead-kp-row:hover {
    background: #f7f9ff !important;
}
.new-lead-contract-row img,
.new-lead-kp-row img {
    display: none !important;
}
.new-lead-contract-row::before,
.new-lead-kp-row::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-color: #2f6fed;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.contract-title-cell {
    flex: 1 !important;
    font-size: 12.5px !important;
    color: #1b2333 !important;
}
.contract-title-cell .created_at {
    font-size: 11px !important;
    color: #4b5563 !important;
    margin-right: 8px !important;
    font-weight: 600 !important;
}

.deleteContract {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    color: #9aa1ac !important;
    transition: color .12s !important;
    text-decoration: none !important;
    flex-shrink: 0;
}
.deleteContract:hover {
    color: #dc2626 !important;
}

/* Раскрывающийся блок договора */
.contract-box {
    padding: 8px 10px 8px 24px !important;
    background: #fafbfc !important;
    border: 1px solid #e6e8ec !important;
    border-top: none !important;
    margin-bottom: 6px !important;
    font-size: 12px !important;
}

.download-contract {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    height: 26px !important;
    padding: 0 10px !important;
    background: #cfe2ff !important;
    border: 1px solid #93c5fd !important;
    color: #1e3a8a !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .03em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: background .12s !important;
    margin-bottom: 6px !important;
}
.download-contract:hover {
    background: #bfdbfe !important;
    color: #1e3a8a !important;
}

/* Форма генерации договора — поля */
.contract-form-gen label,
.feed-task-form.contr label,
.feed-task-form label {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    color: #6b7280 !important;
    display: block !important;
    margin-bottom: 3px !important;
    margin-top: 8px !important;
}
.contract-form-gen .form-control,
.feed-task-form.contr .form-control,
.feed-task-form.contr input[type="text"],
.feed-task-form.contr input[type="date"],
.feed-task-form.contr input[type="number"],
.feed-task-form.contr select,
.feed-task-form.contr textarea {
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    height: 30px !important;
    font-size: 12px !important;
    color: #1b2333 !important;
    background: #fff !important;
    padding: 0 8px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .12s !important;
    width: 100% !important;
}
.feed-task-form.contr textarea {
    height: auto !important;
    min-height: 60px !important;
    padding: 6px 8px !important;
    resize: vertical !important;
}
.contract-form-gen .form-control:focus,
.feed-task-form.contr .form-control:focus,
.feed-task-form.contr select:focus,
.feed-task-form.contr input:focus {
    border-color: rgba(47,111,237,.45) !important;
}

/* Кнопки в форме договора */
.contract-form-gen .btn,
.feed-task-form.contr .btn {
    height: 30px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: opacity .12s !important;
}
.contract-form-gen .btn-primary,
.feed-task-form.contr .btn-primary {
    background: #1c2438 !important;
    border-color: #1c2438 !important;
    color: #fff !important;
}
.contract-form-gen .btn-secondary,
.feed-task-form.contr .btn-secondary,
.contract-form-gen .btn-light,
.feed-task-form.contr .btn-light {
    background: #f4f5f8 !important;
    border-color: #d0d6e0 !important;
    color: #4b5563 !important;
}
.contract-form-gen .btn:hover,
.feed-task-form.contr .btn:hover {
    opacity: .85 !important;
}

/* KP строки — идентично договорам, но зелёный акцент */
.new-lead-kp-row {
    border-left-color: #10b981 !important;
}
.new-lead-kp-row::before {
    background-color: #10b981 !important;
}

.stages-page {
    /* ===== PIPELINES LINK — кнопка настроек воронки ===== */

    .pipelines-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 30px !important;
        height: 30px !important;
        color: #9aa1ac !important;
        text-decoration: none !important;
        flex-shrink: 0;
        transition: color .12s, transform .2s !important;
    }

    .pipelines-link:hover {
        color: #4b5563 !important;
        transform: rotate(30deg) !important;
    }

    /* ===== STAGES PAGE — scoped to .stages-page ===== */
}

.stages-page .rounded-container.simple-container,
.stages-page .rounded-container {
    background: #fff !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    padding: 24px !important;
    max-width: 680px !important;
    margin: 0 auto !important;
}
.stages-page .rounded-container h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1b2333 !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e6e8ec !important;
}
.stages-page .simple-form .form-control {
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    height: 32px !important;
    font-size: 12.5px !important;
    color: #1b2333 !important;
    background: #fff !important;
    padding: 0 10px !important;
    box-shadow: none !important;
    transition: border-color .12s !important;
}
.stages-page .simple-form .form-control:focus {
    border-color: rgba(47,111,237,.45) !important;
    box-shadow: none !important;
}
.stages-page .color-select-item {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
    border-radius: 50% !important;
    transition: transform .12s, border-color .12s !important;
    margin: 2px !important;
}
.stages-page .color-select-item input[type="radio"] {
    display: none !important;
}
.stages-page .color-select-item:hover {
    transform: scale(1.2) !important;
}
.stages-page .color-select-item-active {
    border-color: #1b2333 !important;
    transform: scale(1.15) !important;
}
.stages-page .simple-form .btn-primary.notApply {
    height: 30px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    background: #1c2438 !important;
    border: none !important;
    border-radius: 0 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: opacity .12s !important;
}
.stages-page .simple-form .btn-primary.notApply:hover {
    opacity: .85 !important;
}
.stages-page .pipelines {
    border-top: 1px solid #e6e8ec !important;
    padding-top: 16px !important;
    margin-top: 8px !important;
}
.stages-page .pipelines .hover-row {
    display: flex !important;
    align-items: center !important;
    padding: 7px 10px !important;
    margin-bottom: 1px !important;
    border: none !important;
    border-bottom: 1px solid #f0f1f4 !important;
    border-radius: 0 !important;
    background: #fff !important;
    cursor: grab !important;
    transition: background .1s !important;
}
.stages-page .pipelines .hover-row:hover {
    background: #f7f9ff !important;
}
.stages-page .pipelines .col-item {
    background: transparent !important;
}
.stages-page .stage-color-label {
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    margin-right: 8px !important;
}
.stages-page .pipelines .col-item a.font-weight-bold {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #1b2333 !important;
    text-decoration: none !important;
    transition: color .12s !important;
}
.stages-page .pipelines .col-item a.font-weight-bold:hover {
    color: #2f6fed !important;
}
.stages-page .pipelines .col-item a.text-danger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    color: #9aa1ac !important;
    transition: color .12s !important;
    text-decoration: none !important;
}
.stages-page .pipelines .col-item a.text-danger:hover {
    color: #dc2626 !important;
}
.stages-page .pipeline-placeholder {
    border: 1px dashed #c7ddfb !important;
    background: #f0f6ff !important;
    height: 38px !important;
    margin-bottom: 1px !important;
    border-radius: 0 !important;
}

/* ===== LEADS TABLE MODE — современная таблица сделок ===== */

.tasks-table-container {
    overflow-x: auto !important;
    padding: 0 !important;
}

.tasks-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    font-size: 12px !important;
    table-layout: fixed !important;
}

/* Заголовок таблицы */
.tasks-table thead tr {
    background: #f4f5f8 !important;
    border-bottom: 2px solid #e6e8ec !important;
}
.tasks-table thead th {
    padding: 8px 10px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    color: #6b7280 !important;
    border: none !important;
    border-right: 1px solid #e6e8ec !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    vertical-align: middle !important;
}
.tasks-table thead th:last-child {
    border-right: none !important;
}

/* Строки таблицы */
.tasks-table tbody tr {
    border-bottom: 1px solid #f0f1f4 !important;
    transition: background .1s !important;
}
.tasks-table tbody tr:hover {
    background: #f7f9ff !important;
}
.tasks-table tbody tr.table-info {
    background: #eff6ff !important;
}

/* Ячейки */
.tasks-table tbody td {
    padding: 7px 10px !important;
    font-size: 12px !important;
    color: #1b2333 !important;
    border: none !important;
    border-right: 1px solid #f0f1f4 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    vertical-align: middle !important;
}
.tasks-table tbody td:last-child {
    border-right: none !important;
}

/* Ссылки в таблице */
.tasks-table a {
    color: #1b2333 !important;
    text-decoration: none !important;
    transition: color .12s !important;
}
.tasks-table a:hover {
    color: #2f6fed !important;
}

/* Чекбокс */
.tasks-table .selectAllProds,
.tasks-table .prodCheckbox {
    width: 14px !important;
    height: 14px !important;
    cursor: pointer !important;
    accent-color: #2f6fed !important;
}

/* Индикатор обновлений */
.lead-has-updates {
    color: #2f6fed !important;
    font-size: 7px !important;
    vertical-align: middle !important;
    margin-right: 4px !important;
}

/* Теги этапа в таблице */
.tasks-table .tag {
    display: inline-flex !important;
    align-items: center !important;
    height: 18px !important;
    padding: 0 7px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: .03em !important;
    border-radius: 0 !important;
    white-space: nowrap !important;
}
.tasks-table .tag a {
    color: inherit !important;
}

/* Дата задач */
.tasks-table .lead-date {
    display: block !important;
    font-size: 10.5px !important;
    margin-top: 2px !important;
    line-height: 1.2 !important;
}

/* Кнопки действий в строке */
.flex-lead-btns {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
}
.flex-lead-btns a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    background: #f4f5f8 !important;
    color: #6b7280 !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    font-size: 11px !important;
    transition: background .12s, color .12s !important;
}
.flex-lead-btns a:hover {
    background: #e6e8ec !important;
    color: #1b2333 !important;
}

/* ===== PAGINATION — современная минималистичная пагинация ===== */

.pagination {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 0 !important;
    margin: 14px 0 0 0 !important;
    list-style: none !important;
    flex-wrap: wrap !important;
}

.pagination .page-item .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: background .12s, color .12s !important;
    line-height: 1 !important;
}
.pagination .page-item .page-link:hover {
    background: #f0f1f4 !important;
    color: #1b2333 !important;
}
.pagination .page-item.active .page-link {
    background: #1c2438 !important;
    color: #fff !important;
    pointer-events: none !important;
    font-weight: 600 !important;
}
.pagination .page-item.disabled .page-link {
    color: #c4c9d4 !important;
    pointer-events: none !important;
    background: transparent !important;
}

/* ===== TOGGLE-MENU-LINK — кнопка фильтра ===== */

.toggle-menu-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    color: #6b7280 !important;
    background: #f4f5f8 !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    transition: background .12s, color .12s !important;
}
.toggle-menu-link:hover {
    background: #e6e8ec !important;
    color: #1b2333 !important;
}
.toggle-menu-link img {
    display: none !important;
}
.toggle-menu-link svg {
    flex-shrink: 0;
}

/* ===== MASS-ACTIONS-BLOCK — массовые действия ===== */

.mass-actions-block {
    display: none;
    background: #f8f9fb !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    padding: 8px 12px !important;
    margin-bottom: 8px !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}
.mass-actions-block ul {
    display: flex !important;
    gap: 4px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
}
.mass-actions-block ul li a {
    display: inline-flex !important;
    align-items: center !important;
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    color: #4b5563 !important;
    background: #fff !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    transition: background .1s, border-color .1s !important;
}
.mass-actions-block ul li a:hover {
    background: #f0f1f4 !important;
    color: #1b2333 !important;
    border-color: #d0d6e0 !important;
}
.mass-actions-block .action-form-block {
    display: none;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}
.mass-actions-block .action-form-block.active {
    display: flex !important;
}
.mass-actions-block .form-control {
    height: 26px !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    padding: 0 8px !important;
    background: #fff !important;
    box-shadow: none !important;
}
.mass-actions-block .applyMassActionBtn {
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    background: #1c2438 !important;
    border: none !important;
    border-radius: 0 !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: opacity .12s !important;
    display: inline-flex !important;
    align-items: center !important;
}
.mass-actions-block .applyMassActionBtn:hover {
    opacity: .85 !important;
}

/* ===== TABLE — вертикальное выравнивание заголовков ===== */

.tasks-table thead th {
    vertical-align: middle !important;
    line-height: 1.2 !important;
}

/* ===== BADGES / TAGS — метки и бейджи ===== */

.badge,
.badge-primary,
.badge-secondary,
.badge-success,
.badge-danger,
.badge-warning,
.badge-info,
.badge-light,
.badge-dark {
    display: inline-flex !important;
    align-items: center !important;
    height: 18px !important;
    padding: 0 6px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .03em !important;
    border-radius: 0 !important;
    white-space: nowrap !important;
}
.badge-primary  { background: #cfe2ff !important; color: #1e3a8a !important; }
.badge-secondary { background: #e6e8ec !important; color: #4b5563 !important; }
.badge-success  { background: #d1fae5 !important; color: #065f46 !important; }
.badge-danger   { background: #fee2e2 !important; color: #991b1b !important; }
.badge-warning  { background: #fef3c7 !important; color: #92400e !important; }
.badge-info     { background: #cffafe !important; color: #164e63 !important; }
.badge-light    { background: #f4f5f8 !important; color: #4b5563 !important; }
.badge-dark     { background: #1c2438 !important; color: #fff !important; }
.tasks-block-list {margin-top: 0; padding-top:0;}

/* ===== TASK WINDOW — окно просмотра/редактирования задачи ===== */

.task-window {
    padding: 16px 0 0 0 !important;
}

/* Навигация вкладок задачи */
.task-tabs-nav {
    border-bottom: 1px solid #e6e8ec !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}
.task-actions-window {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    flex-wrap: nowrap !important;
}
.task-tab-spacer {
    flex: 1 !important;
}

/* Вкладки — светлые, без тёмного фона */
.task-tab-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    height: 36px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    color: #9aa1ac !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -1px !important;
    text-decoration: none !important;
    transition: color .12s, border-color .12s !important;
}
.task-tab-link:hover {
    color: #4b5563 !important;
    background: transparent !important;
}
.task-tab-link.active {
    color: #fff !important;
    background: transparent !important;
    border-bottom-color: #4b5563 !important;
}

/* Кнопки действий в шапке */
.task-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    height: 28px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #9aa1ac !important;
    text-decoration: none !important;
    transition: color .12s !important;
    border-radius: 0 !important;
}
.task-action-btn:hover {
    color: #4b5563 !important;
}
.task-action-delete {
    color: #9aa1ac !important;
}
.task-action-delete:hover {
    color: #dc2626 !important;
}

/* Контент вкладок */
.task-tab-content {
    padding: 16px 0 !important;
}

/* Связанная сделка */
.task-meta-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 0 12px !important;
    border-bottom: 1px solid #f0f1f4 !important;
    margin-bottom: 12px !important;
    font-size: 12px !important;
    flex-wrap: wrap !important;
}
.task-lead-link {
    font-weight: 700 !important;
    color: #1b2333 !important;
    text-decoration: none !important;
    font-size: 13px !important;
}
.task-lead-link:hover {
    color: #2f6fed !important;
}
.task-contacts {
    font-size: 11.5px !important;
    color: #6b7280 !important;
}
.task-no-contact {
    font-size: 11.5px !important;
    color: #f59e0b !important;
}

/* Тело задачи */
.task-body {
    margin-bottom: 12px !important;
}
.task-date-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    margin-bottom: 6px !important;
}
.task-text-block {
    font-size: 13px !important;
    color: #1b2333 !important;
    line-height: 1.6 !important;
}
.task-for-label {
    font-weight: 700 !important;
    margin-right: 4px !important;
    color: #4b5563 !important;
}

/* Тип/тег задачи */
.task-tag-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
    flex-wrap: wrap !important;
    line-height: 1 !important;
}
.task-type-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    height: 20px !important;
    padding: 0 8px !important;
    background: #f4f5f8 !important;
    border: 1px solid #e6e8ec !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #4b5563 !important;
    letter-spacing: .03em !important;
    vertical-align: middle !important;
    flex-shrink: 0;
}

/* Нормализовать теги этапа в task-tag-row */
.task-tag-row .tag {
    display: inline-flex !important;
    align-items: center !important;
    height: 20px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    flex-shrink: 0;
}

/* Файлы задачи */
.task-files {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-bottom: 12px !important;
}
.task-file-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    height: 22px !important;
    padding: 0 8px !important;
    background: #f4f5f8 !important;
    border: 1px solid #e6e8ec !important;
    color: #1b2333 !important;
    font-size: 11.5px !important;
    text-decoration: none !important;
    transition: background .1s !important;
}
.task-file-item:hover {
    background: #e6e8ec !important;
    color: #2f6fed !important;
}

/* Результат выполнения */
.task-completed-result {
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    background: #f0fdf4 !important;
    border-left: 3px solid #10b981 !important;
    font-size: 12px !important;
    color: #065f46 !important;
    margin-bottom: 12px !important;
    line-height: 1.5 !important;
}
.task-complete-meta {
    font-weight: 600 !important;
    margin-right: 4px !important;
    flex-shrink: 0;
}

/* Форма выполнения */
.task-complete-form {
    padding-top: 12px !important;
    border-top: 1px solid #f0f1f4 !important;
}
.task-complete-input-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
    flex-wrap: wrap !important;
}
.task-complete-input {
    flex: 1 !important;
    min-width: 160px !important;
    height: 30px !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    padding: 0 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .12s !important;
}
.task-complete-input:focus {
    border-color: rgba(47,111,237,.45) !important;
}

/* Форма пересоздания */
.task-recreate-box {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

/* Кнопки задачи */
.task-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    height: 30px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: opacity .12s !important;
    border: none !important;
    white-space: nowrap;
}
.task-btn-primary {
    background: #1c2438 !important;
    color: #fff !important;
}
.task-btn-primary:hover {
    opacity: .85 !important;
    color: #fff !important;
}

/* Селект задачи */
.task-select {
    height: 28px !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    padding: 0 8px !important;
    background: #fff !important;
    color: #1b2333 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .12s !important;
}
.task-select:focus {
    border-color: rgba(47,111,237,.45) !important;
}

/* Поле даты задачи */
.task-date-input {
    height: 28px !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    padding: 0 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .12s !important;
    width: 160px !important;
}
.task-date-input:focus {
    border-color: rgba(47,111,237,.45) !important;
}

/* Редактирование задачи */
.task-edit-form {
    padding-top: 4px !important;
}
.task-edit-row {
    display: flex !important;
    align-items: flex-end !important;
    gap: 16px !important;
    margin-bottom: 12px !important;
    flex-wrap: wrap !important;
}
.task-edit-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.task-field-label {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
    color: #9aa1ac !important;
}
.task-edit-textarea-row {
    margin-bottom: 12px !important;
}
.task-textarea {
    width: 100% !important;
    min-height: 100px !important;
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    font-size: 12.5px !important;
    color: #1b2333 !important;
    padding: 8px 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    resize: vertical !important;
    transition: border-color .12s !important;
    line-height: 1.6 !important;
}
.task-textarea:focus {
    border-color: rgba(47,111,237,.45) !important;
    outline: none !important;
}
.task-edit-actions {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}

/* task-recreate-box — вертикальное выравнивание элементов */
.task-recreate-box {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    padding-top: 4px !important;
}
.task-recreate-box .custom-control {
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}
.task-recreate-box .custom-control-label {
    line-height: 28px !important;
    font-size: 11.5px !important;
    color: #6b7280 !important;
}

/* ===== SELECTRIC — кастомный стиль для окна задачи ===== */

/* Wrapper в задаче */
.task-window .selectric-wrapper,
.show-task .selectric-wrapper {
    display: inline-block !important;
    width: auto !important;
    vertical-align: middle !important;
}
.task-window .selectric,
.show-task .selectric {
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    background: #f4f5f8 !important;
    height: 28px !important;
    min-width: 130px !important;
}
.task-window .selectric .label,
.show-task .selectric .label {
    font-size: 12px !important;
    color: #1b2333 !important;
    line-height: 26px !important;
    margin: 0 30px 0 8px !important;
}
.task-window .selectric .button,
.show-task .selectric .button {
    height: 26px !important;
    width: 26px !important;
    background: transparent !important;
    color: #9aa1ac !important;
    line-height: 26px !important;
}
.task-window .selectric .button::after,
.show-task .selectric .button::after {
    border-top-color: #9aa1ac !important;
    border-width: 4px 4px 0 !important;
}

/* Dropdown — открывать вверх в модальном окне */
.task-window .selectric-items,
.show-task .selectric-items {
    border: 1px solid #e6e8ec !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.1) !important;
}
.task-window .selectric-open,
.show-task .selectric-open {
    z-index: 99999 !important;
}

/* Принудительно открываем вверх */
.iziModal .selectric-open .selectric-items,
.task-window .selectric-open .selectric-items {
    top: auto !important;
    bottom: 100% !important;
    margin-bottom: 2px !important;
    margin-top: 0 !important;
}

.task-window .selectric-items li,
.show-task .selectric-items li {
    padding: 5px 10px !important;
    font-size: 12px !important;
    color: #1b2333 !important;
    transition: background .1s !important;
}
.task-window .selectric-items li:hover,
.show-task .selectric-items li:hover {
    background: #f4f5f8 !important;
    color: #1b2333 !important;
}
.task-window .selectric-items li.selected,
.show-task .selectric-items li.selected {
    background: #eff6ff !important;
    color: #1e3a8a !important;
    font-weight: 600 !important;
}
