/* Базовые стили */
body {
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* ✅ Добавили Roboto для всех */
}


.custom-alert.alert-danger {
    background-color: #f8d7da !important; /* Светло-красный */
    color: #721c24 !important; /* Тёмно-красный */
    border-color: #f5c6cb !important;
}
/*=======================================================================*/
/* Стили для формы */
.operation-form-container {
    max-width: 500px; /* Ограничим ширину формы */
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/*=======================================================================*/
.receipt-btn, .contract-btn, .edit-btn, .delete-btn, .verify-btn, .copy-btn, .sign-btn {
    text-decoration: none;    /* Убирает подчеркивание у ссылок */
    border: none;             /* Убирает границу кнопки */
    background: transparent;  /* Делает фон прозрачным */
    padding: 0;               /* Убирает внутренние отступы */
    margin: 0 5px;            /* Отступы по бокам */
    display: inline-block;    /* Отображение в строку */
    cursor: pointer;          /* Курсор в виде руки */
    text-align: center;       /* Центровка контента */
    width: auto;
    height: 20px;
}

/* Наведение */
.receipt-btn:hover, .contract-btn:hover, .edit-btn:hover, .delete-btn:hover, .verify-btn:hover, .copy-btn:hover, .sign-btn:hover {
    text-decoration: none;
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* Иконки */
.receipt-icon, .edit-icon, .delete-icon, .verify-icon, .copy-icon, .sign-icon {
    font-size: 16px;
    line-height: 1;
    display: block;
    margin: 0 auto;
}

/* Центровка кнопок в ячейке */
.action-buttons {
    text-align: center;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}


/*=======================================================================*/

/* Стили для иконки комментария - согласованные с другими иконками */
.comment-icon-btn {
    text-decoration: none;    /* Убирает подчеркивание */
    border: none;             /* Убирает границу кнопки */
    background: transparent;  /* Делает фон прозрачным */
    padding: 0;               /* Убирает внутренние отступы */
    margin: 0 5px;            /* Добавляет отступы по бокам */
    display: inline-block;    /* Элемент отображается как блок, но в строке */
    cursor: pointer;          /* Меняет курсор на указатель при наведении */
    text-align: center;       /* Центрирует текст внутри кнопки */
}

.comment-icon {
    font-size: 15px;
    color: #3d6066;
}

.comment-icon-btn:hover {
    text-decoration: none;    /* Убирает подчеркивание при наведении */
    transform: scale(1.2);    /* Увеличивает размер кнопки на 20% при наведении */
    transition: transform 0.2s ease; /* Делает увеличение плавным (0.2 секунды) */
}

/* Стили для модального окна комментариев */
.modal-header.bg-info {
    background-color: #3d6066 !important;
}

.comment-card {
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.comment-card p {
    margin-bottom: 5px;
}
/*=======================================================================*/
/* 🔹 Контейнер с таблицей и тенью справа */
.table-container {
    width: 100%; /* На всю доступную ширину */
    max-width: 100%; /* Не расширяется сверх 100% */
    background: #fff; /* Белый фон */
    padding: 0; /* Без внутренних отступов */
    border-radius: 10px; /* Скруглённые углы */
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.1); /* Тень справа */


}



/* 🔹 Общие стили ячеек */
.table th, .table td {
    background-color: #f9f9f9 !important; /* Светло-серый фон */
    color: #000 !important;              /* Чёрный текст */
    border: 1px solid #ccc !important;   /* Тонкая серая граница */
    padding: 10px;                       /* Внутренние отступы */
    text-align: center;                  /* Текст по центру */
    white-space: nowrap;                 /* Запрещаем перенос строки */
}


/* Уменьшаем размер шрифта в таблице */
.table th, .table td {
    font-size: 14.5px;
    padding: 1px;
}

/* Выравниваем текст в колонке "ФИО" влево */
.table td:nth-child(1), /* Для первой колонки */
.table td:nth-child(2), /* Для второй колонки */
.table td:nth-child(4), /* Для четвертой колонки */
.table td:nth-child(9), /* Для девятой колонки */
.table td:nth-child(10), /* Для десятой колонки */
.table td:nth-child(11) { /* Для одиннадцатой колонки */
    text-align: left; /* Выравнивание текста по левому краю */
    padding-left: 5px; /* Добавление отступа слева на 5px */
}

/* Выравниваем Сумму договора, Оплату, Остаток вправо */
.table td:nth-child(6), /* Для шестой колонки (Оплата) */
.table td:nth-child(7) { /* Для седьмой колонки (Остаток) */
    text-align: right; /* Выравнивание текста по правому краю */
    padding-right: 5px; /* Добавление отступа справа на 5px */
}

/* Общие стили для ячеек таблицы */
.table th,
.table td {
    vertical-align: middle; /* Центрирование содержимого по вертикали */
    text-align: center;      /* Центрирование содержимого по горизонтали */
    padding: 0px 4px;       /* Отступы: 4px сверху и снизу, 8px слева и справа */
    border: 1px solid rgb(64, 64, 64) !important; /* черная рамка */
    }

/* Контейнер для кнопок в таблице ОПЕРАЦИИ  чтобы были в одной ячейке и не выходили за ячейку*/
.table td:last-child .edit-btn,
.table td:last-child .delete-btn {
    margin: 0;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

/* Иконки в таблице ОПЕРАЦИИ */
.table td:last-child .edit-icon,
.table td:last-child .delete-icon {
    font-size: 15px;  /* Размер кнопки редактировать и удалить */
    line-height: 1;
}

/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* Новый стиль карточек в справочник */
.menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
    max-width: 100%;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    max-width: 200px; /* Уменьшенная ширина */
    min-height: 180px; /* Уменьшенная высота */
    text-align: center;
    gap: 0.6rem;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

/* Новый стиль иконок */
.icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0,0,0,.08);
    font-size: 2rem;
}

/* Цвета иконок для справочник*/
.icon-blue { background: #007bff1a; color: #007bff; }
.icon-yellow { background: #ffc1071a; color: #ffc107; }
.icon-green { background: #28a7451a; color: #28a745; }
.icon-red  { background: #eae1e1; color: #9C1A1C; }


/* Заголовки */
.menu-item h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Описание */
.menu-item p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .menu-item {
        max-width: 160px;
        min-height: 160px;
        padding: 0.8rem;
    }

    .icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .menu-item h3 {
        font-size: 0.9rem;
    }

    .menu-item p {
        font-size: 0.75rem;
    }
}
/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* 📌 Контейнер для иконок этот блок полностью дата принятия и увольнения*/
.icon-group {
    display: flex;
    align-items: center;  /* Выравниваем иконки по центру */
    gap: 5px; /* Отступ между иконками */
}

/* 📌 Стили для иконок */
.save-icon, .delete-icon {
    font-size: 20px; /* Одинаковый размер для всех иконок */
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
    display: inline-flex;
    align-items: center; /* Центрируем */
    justify-content: center;
}

/* 📌 Увеличение при наведении */
.save-icon:hover,
.delete-icon:hover {
    transform: scale(1.3);
}

/* 📌 Убираем лишние отступы */
.icon-group a {
    line-height: 1; /* Убираем влияние высоты строки */
    padding: 3px; /* Добавляем немного пространства вокруг */
}

/* 📌 Убираем синюю обводку у полей ввода */
input:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ccc !important;
}

/* 📌 Ячейка с датой - делаем шире */
.date-column {
    text-align: center;
    padding: 10px;  /* Увеличиваем отступ */
    width: 180px;  /* Делаем шире */
}

/* 📌 Контейнер, объединяющий дату и кнопки */
.date-container {
    display: flex;             /* Размещаем элементы в строку */
    align-items: center;       /* Выравниваем по центру по вертикали */
    gap: 5px;                 /* Расстояние между элементами */
    padding: 6px;              /* Внутренний отступ для удобства */
    border-radius: 6px;        /* Закругляем углы */
    background: #f8f9fa;       /* Светло-серый фон */
}

/* 📌 Поле ввода даты - увеличиваем размер и настраиваем внешний вид */
.datepicker {
    text-align: center;        /* Выравниваем текст по центру */
    width: 100px;              /* Ширина поля */
    height: 35px;              /* Высота поля */
    font-size: 15px;           /* Размер текста */
    outline: none;             /* Убираем обводку при фокусе */
}

/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/

/* Делаем колонку "Напоминание" длиннее */
.telegram-column {
    min-width: 200px; /* Увеличиваем ширину столбца */
    max-width: 400px; /* Ограничиваем максимальную ширину */
}

/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
    /* операции и потоки все что написано в начала таблиц отпускает вниз*/
.content {
    padding: 20px;
    margin-top: 30px; /* Отступ для улучшения визуального разделения */
}

/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* Убираем стрелки в числовых полях в ведомсоти*/
.salary-input::-webkit-outer-spin-button,
.salary-input::-webkit-inner-spin-button,
.working-days-input::-webkit-outer-spin-button,
.working-days-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.salary-input,
.working-days-input {
    -moz-appearance: textfield; /* Для Firefox */
}
/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* 🔹 Базовые стили для ячеек посещаемости */
.attendance-cell {
    width: 40px;
    height: 40px;
    font-size: 20px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    user-select: none; /* 🚀 Запрещает выделение текста */
    position: relative;
}

/* 🔥 Увеличение только смайлика при наведении */
.attendance-cell span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.attendance-cell:hover span {
    transform: scale(1.4); /* Увеличение только смайлика */
}

/* ✅ Присутствие */
.attendance-cell.present {
    background-color: #28a745; /* Ярко-зелёный */
    color: white;
}

/* ❌ Отсутствие */
.attendance-cell.absent {
    background-color: #dc3545; /* Красный */
    color: white;
}

/* 🔘 Выходной */
.attendance-cell.holiday {
    background-color: #ffc107; /* Жёлтый */
    color: black;
 }
   /*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* 🔹 кнопка сохранить в ведомости */

.btn-success {
    font-size: 16px;
    border-radius: 8px;
    padding: 12px 24px;
    transition: all 0.1s ease-in-out;
}

.btn-success:hover {
    background-color: #218838; /* Темнее при наведении */
    transform: scale(1.05);
}
   /*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* 🔹 Улучшенные вкладки */

.nav-tabs {
    border-bottom: 3px solid #3d6066;
    display: flex;
    justify-content: flex-start; /* Вкладки теперь слева */
    margin-bottom: 15px;
}

.nav-tabs .nav-item {
    margin-right: 5px;
}

.nav-tabs .nav-link {
    font-size: 16px;
    font-weight: bold;
    padding: 8px 16px; /* Уменьшаем размеры ячеек */
    color: #444;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease-in-out;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #ddd;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

/* 🔥 Эффект увеличения текста при наведении */
.nav-tabs .nav-link:hover {
    color: #3d6066;
}

.nav-tabs .nav-link:hover span {
    transform: scale(1.1); /* Увеличиваем только буквы */
    transition: transform 0.2s ease-in-out;
    display: inline-block;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #3d6066 0%, #002e36 100%);
    color: white;
    font-weight: bold;
    border: 2px solid #3d6066;
    box-shadow: 0px 3px 8px rgba(61, 96, 102, 0.3);
}

/* 🔹 Заголовок "Отдел продаж" */
.sales-header {
    font-size: 30px; /* Чуть уменьшили */
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid #3d6066;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: left;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
   /*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* 🔹 убираем стрелки в ячеках в отдел продаж*/

.percent-input {
    width: 100%; /* Ячейка будет равна ширине колонки */
    border: none; /* Убираем границу */
    text-align: center; /* Выравниваем текст */
    appearance: textfield; /* Убираем стрелки в Chrome */
    -moz-appearance: textfield; /* Убираем стрелки в Firefox */
}

/* Дополнительно: убираем стрелки в Safari */
.percent-input::-webkit-outer-spin-button,
.percent-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Для Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Для Firefox */
input[type=number] {
    -moz-appearance: textfield;
}
   /*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/*в отчет мк*/
.card {
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: bold;
}

.table thead th {
    background-color: #598288 !important;
    color: #ffffff !important;
    text-shadow: 0 0 4px #000000; /* добавляем лёгкую чёрную тень */
}

/* --- Стили для ячеек таблицы и подсветки при наведении (Filter Brightness - Выборочно) --- */

/* 1. БАЗОВЫЙ СТИЛЬ ДЛЯ ЯЧЕЕК (с transition для filter и background-color) */
.table th, .table td {
    /* --- Твои существующие стили --- */
    color: #000 !important;
    border: 1px solid rgb(64, 64, 64) !important;
    padding: 0px 4px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    font-size: 14.5px;
    background-color: #f9f9f9 !important;
    /* --- Конец твоих существующих стилей --- */

    /* !!! ВАЖНО: Плавный переход и для filter, и для background-color */
    transition: filter 0.15s ease, background-color 0.15s ease;
}


/* 2. ПРАВИЛО ДЛЯ ОСВЕТЛЕНИЯ (FILTER) ОБЫЧНЫХ ЯЧЕЕК ПРИ НАВЕДЕНИИ НА СТРОКУ */
/* Применяется ко всем TD, КРОМЕ .date-column */
.table tbody tr:hover td:not(.date-column) {
    filter: brightness(1.15); /* Осветление (можно настроить 1.1, 1.15, 1.2) */
    /* Не меняем background-color, filter применяется к исходному цвету ячейки */
}

/* 3. ОТДЕЛЬНОЕ ПРАВИЛО ДЛЯ ЯЧЕЙКИ .date-column ПРИ НАВЕДЕНИИ НА СТРОКУ */
/* Используем безопасное затемнение фона */
.table tbody tr:hover td.date-column {
    background-color: rgba(0, 0, 0, 0.05) !important; /* Легкое затемнение */
    filter: none; /* Явно отключаем фильтр для этой ячейки */
}



/* --- Стили для кастомного селекта (ОБЯЗАТЕЛЬНО ОСТАВИТЬ!) --- */
td.date-column {
    position: relative; /* Необходимо для позиционирования списка */
}
/* ... и остальные стили для .custom-select-wrapper, .custom-select-list ... */
.custom-select-wrapper {
    position: relative;
}
.custom-select-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ced4da;
    border-top: none;
    max-height: 150px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    margin-top: -1px;
    border-radius: 0 0 .25rem .25rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}
.custom-select-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.custom-select-list li {
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.custom-select-list li:hover {
    background-color: #e9ecef;
}
.custom-select-list li.filtered-out {
    display: none;
}
/* --- Конец стилей для селекта --- */

/* Стили для блок-схемы */
.flow-diagram {
    padding: 20px;
}

.flow-box {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flow-box:hover {
    transform: translateY(-5px);
}

.flow-box h5 {
    margin-bottom: 10px;
    font-weight: bold;
}

.flow-box .number {
    font-size: 24px;
    font-weight: bold;
}

.arrow {
    color: #007bff;
}

.fa-arrow-down {
    color: #007bff;
}


/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* Убираем стрелки в числовых полях в ведомсоти*/
.dropdown-item.manager-item {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
}

.manager-item .form-check {
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
    width: 100% !important;
}

.manager-item .form-check-input {
    position: static !important;
    margin: 0 !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
}

.manager-item .form-check-label {
    margin: 0 !important;
    padding: 0 !important;
    flex-grow: 1 !important;
    cursor: pointer !important;
}

/* Стили для кнопок */
.client-selection-row {
    display: flex !important;
    width: 100% !important;
    border-bottom: 1px solid #dee2e6 !important;
}




/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* ✅ Делаем все кнопки "Выбрать все" и "Отменить все" серыми */
.client-action-btn {
    flex: 1 !important;
    padding: 0.5rem !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease; /* Плавный переход */
}

/* ✅ По умолчанию кнопки "Выбрать все" и "Отменить все" серые */
.client-selection-row .client-action-btn {
    background-color: #6c757d !important; /* Серый цвет */
}

/* ✅ Общий эффект при наведении */
.client-action-btn:hover {
    background-color: #5a6268 !important; /* Темнее при наведении */
}


/* Убираем максимальную ширину для .dropdown-menu */
.dropdown-menu {
    width: auto !important; /* Автоматическая ширина для подгонки */
    min-width: 0 !important; /* Убираем минимальную ширину */
    white-space: nowrap !important; /* Запрещаем перенос строк */
    word-wrap: break-word !important; /* Переносим длинные слова, если нужно */
    max-height: 300px; /* Ограничиваем высоту */
    overflow-y: auto; /* Включаем прокрутку */
}

/* Убедитесь, что элементы внутри списка могут растягиваться */
.dropdown-item {
    width: auto !important; /* Устанавливаем ширину на auto для растягивания */
    white-space: nowrap !important; /* Запрещаем перенос слов */
}


/* Убедитесь, что для всех фильтров используется один и тот же стиль */
.dropdown-item:hover,
.manager-item:hover,
.stream-item:hover,
.client-item:hover,
.filter-item:hover, /* Дополнительно для других фильтров */
.modal-item:hover {  /* Если нужно для модальных окон */
    background-color: #f1f1f1 !important; /* Убедитесь, что цвет фона одинаковый */
    color: #000 !important; /* Если нужно, установите цвет текста */
    cursor: pointer;
}



/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
    /* Стили для заголовка секции в администарции*/
    .section-title {
        font-size: 24px;
        font-weight: bold;
        color: #4A90E2; /* Синий цвет */
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Стили для ссылки на уволенных пользователей */
    .toggle-link {
        font-size: 18px;
        color: #FF6F61; /* Цвет для кнопки (красный оттенок) */
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        display: inline-block;
        padding: 5px 10px;
        border: 2px solid #FF6F61; /* Красная рамка */
        border-radius: 5px;
        transition: all 0.3s ease; /* Плавный переход */
    }

    /* Стили для изменения цвета при наведении */
    .toggle-link:hover {
        background-color: #FF6F61; /* Изменение фона на красный при наведении */
        color: #fff; /* Текст белый при наведении */
        transform: scale(1.05); /* Легкое увеличение кнопки */
    }

/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/*это фильтр в создании клиента ответсвенного , поток и мк выбоирать*/

.manager-list-container,
.stream-list-container,
.mk-list-container {
    max-height: 120px; /* Ограничиваем высоту, чтобы было видно только 3 элемента */
    overflow-y: auto; /* Добавляем прокрутку */
}

/* Убираем точки у списка */
.manager-list,
.stream-list,
.mk-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Делаем одинаковый размер шрифта в выпадающих списках */
.manager-list .form-check-label,
.stream-list .form-check-label,
.mk-list .form-check-label {
    font-size: 14px; /* Размер шрифта */
    line-height: 1.2; /* Высота строки */
}

/* Дополнительно уменьшаем чекбоксы, если нужно */
.stream-item .form-check-input,
.manager-item .form-check-input,
.mk-item .form-check-input {
    width: 14px; /* Размер чекбокса */
    height: 14px; /* Высота чекбокса */
    margin-right: 5px; /* Отступ справа */
}

/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/*для карточек отчет по потокам*/

/* 🔷 Общий стиль карточки */
.report-cards .card {
    border-radius: 14px; /* скруглённые углы */
    overflow: hidden; /* обрезает лишнее за углами */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04); /* лёгкая тень */
    font-size: 0.95rem; /* общий базовый размер текста */
    text-align: center; /* выравнивание заголовка */
}

/* 🔹 Шапка карточки */
.report-cards .card-header {
    font-size: 1rem; /* размер текста заголовка */
    font-weight: 900; /* жирный */
    padding: 0.55rem 1rem; /* отступы внутри шапки */
    border-radius: 14px 14px 0 0; /* скругления только сверху */
    color: #fff; /* белый текст */
}

/* 📦 Внутренний контейнер (центрирует блок с текстом) */
.report-cards .card-body.flex-center {
    display: flex;
    flex-direction: column;
    justify-content: center; /* вертикальное центрирование */
    height: 100%;
    padding: 0.8rem 0.8rem 0.8rem 0.8rem; /* компактные отступы */
}

/* 🧾 Одна строка списка (например, "Итого: 4") */
.report-cards .list-group-item {
    display: flex;
    justify-content: space-between; /* текст слева, цифра справа */
    align-items: center;
    padding: 0.5rem 0.5rem; /* компактный внутренний отступ */
    border: none;
    background-color: #f9f9f9;
    border-radius: 0px;
    margin-top: -5px; /* отступ сверху на 10 пикселей */
    margin-bottom: -5px; /* расстояние между строками */
}

/* 📝 Подпись слева ("Итого", "От ОП" и т.д.) */
.report-cards .list-group-item span {
    font-size: 1.1rem; /* немного меньше цифры */
    font-weight: 500;  /* средний вес */
    color: #495057;    /* серый цвет */
}

/* 🔢 Значение справа (цифры) */
.report-cards .list-group-item strong {
    font-size: 1.2rem; /* чуть крупнее */
    font-weight: 700;  /* жирнее */
    color: #212529;    /* тёмный текст */
}

/* 💰 Центрированное значение в карточках без списка */
.report-cards .centered-value {
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #212529;
}
/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* Центрированный узкий блок для фильтра и таблицы в отчете мк*/
.centered-narrow-block {
    max-width: 660px; /* можно изменить на 720px или 800px если хочешь ещё уже */
    margin: 0 auto;    /* выравнивание по центру */
}
/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* кнопка добавить операцию клиента все кнопки сохранить*/

.custom-add-btn {
    background: linear-gradient(100deg, #3d6066, #002e36);
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.custom-add-btn:hover {
    transform: scale(1.02);
    color: #ffffff !important;
    background: linear-gradient(100deg, #497b83, #00444f);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.custom-add-btn-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.custom-add-btn i {
    font-size: 1.2rem;
}
/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* это в протоколе сужение 3 верхних блока */
.custom-wrapper {
  max-width: 60%;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .custom-wrapper {
    max-width: 100%;
  }
}
/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* это в протоколе сужение 3 верхних блока */
/* Только для input-даты: Срок до и Напоминание */
.fixed-cell input.datepicker {
    padding: 3px 8px;
    font-size: 14px;
    height: auto;
    width: 100%;
    border: none;
    background-color: transparent;
    box-shadow: none;
    outline: none;
    cursor: pointer;
}

/* Только для выпадающих списков: Ответственный, Важность, Статус */
.fixed-cell select.form-select,
.fixed-cell select.protocol-status-select {
    padding: 3px 8px;
    font-size: 14px;
    height: auto;

    border: none;
    background-color: transparent;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    appearance: none;
    width: auto !important;
    max-width: 100%;
    white-space: nowrap;
}

.fixed-cell select.form-select,
.fixed-cell select.protocol-status-select {

}

.fixed-input {
    width: 100% !important;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
/* Убираем стрелки у всех select */
select.fixed-input {
    appearance: none;         /* Chrome, Safari, Edge */
    -webkit-appearance: none; /* Safari */
    -moz-appearance: none;    /* Firefox */
    background-image: none;   /* Убираем фон-иконку */
    padding-right: 10px;      /* Оставим отступ, чтобы текст не обрезался */
}

/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* нумирация страниц */

.pagination .page-item.active .page-link {
    background-color: #3d6066;
    border-color: #3d6066;
    color: #fff;
}

.pagination .page-link {
    color: #3d6066;
}

.pagination .page-link:hover {
    background-color: #3d6066;
    color: #fff;
}

.pagination .page-link:focus {
    box-shadow: none;
    outline: none;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}
/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* кнопка в уведомлении*/

.btn-mode {
    border: 1px solid black !important;
    background-color: white;
    color: black;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
}

.btn-mode:hover {
    background-color: #f0f0f0;
}

/* Активная ДОХОД — зелёная с черной рамкой */
.btn-mode.active#operationBtn {
    background-color: #4CAF50; /* зелёный */
    color: white;
    border: 1px solid black !important;
}

/* Активная РАСХОД — красная с черной рамкой */
.btn-mode.active#expenseBtn {
    background-color: #f44336; /* красный */
    color: white;
    border: 1px solid black !important;
}

/* Активная ПЕРЕВОД — серая с черной рамкой */
.btn-mode.active#transferBtn {
    background-color: #9e9e9e; /* серый */
    color: white;
    border: 1px solid black !important;
}


/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* кнопка плюс и комент*/
.comment-icon-btn {
    background: none;
    border: none;
    padding: 0;
    transition: opacity 0.3s ease;
}

/* Иконка ПЛЮС ➕ — полупрозрачная */
.plus-icon {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* При наведении на кнопку ПЛЮС становится чётким */
.comment-icon-btn:hover .plus-icon {
    opacity: 1;
}

/* Иконка ЧАТА 💬 — всегда чёткая */
.chat-icon {
    opacity: 1;
}

/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* красит цветом в мк таблицу при выборе статусов*/

/* Полное переопределение цветов для статусов */
.table > tbody > tr.table-success {
    --bs-table-bg-state: #7ee87e !important; /* Ярко-зеленый */
    background-color: var(--bs-table-bg-state) !important;
    color: #000000 !important; /* Черный текст для контраста */
}

.table > tbody > tr.table-payment {
    --bs-table-bg-state: #8cbf8f !important; /* Ярко-голубой */
    background-color: var(--bs-table-bg-state) !important;
    color: #000000 !important;
}

.table > tbody > tr.table-on-site {
    --bs-table-bg-state: #6d9eeb !important; /* Золотой */
    background-color: var(--bs-table-bg-state) !important;
    color: #000000 !important;
}

.table > tbody > tr.table-warning {
    --bs-table-bg-state: #ffe599 !important; /* Ярко-желтый */
    background-color: var(--bs-table-bg-state) !important;
    color: #000000 !important;
}

.table > tbody > tr.table-danger {
    --bs-table-bg-state: #f68585 !important; /* Ярко-красный */
    background-color: var(--bs-table-bg-state) !important;
    color: #FFFFFF !important; /* Белый текст для контраста */
}

.table > tbody > tr.table-secondary {
    --bs-table-bg-state: #d6d5d5 !important; /* Темно-серый */
    background-color: var(--bs-table-bg-state) !important;
    color: #FFFFFF !important;
}
.table > tbody > tr.table-primary {
    --bs-table-bg-state: #46bdc6 !important; /* Светло-голубой */
    background-color: var(--bs-table-bg-state) !important;
    color: #000000 !important; /* Чёрный текст для хорошей читаемости */
}
.table > tbody > tr.table-info {
    --bs-table-bg-state: #f3c1c1 !important; /* Светло-голубой */
    background-color: var(--bs-table-bg-state) !important;
    color: #000000 !important; /* Чёрный текст для хорошей читаемости */
}
.table > tbody > tr.table-green {
    --bs-table-bg-state: #00ff39 !important; /* Светло-зелёный фон */
    background-color: var(--bs-table-bg-state) !important;
    color: #000000 !important;               /* Чёрный текст */
    font-weight: bold;                       /* 🔥 Жирный текст */
}



td.table-green {
    background-color: #28a745 !important;
    color: #ffffff !important;
}


tr.table-yellow2 td {
    background-color: #fbf1c6 !important;
    color: #000000 !important;
}
td.table-yellow {
    background-color: #ffc107 !important;
    color: #000000 !important;
}

td.table-red {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}


/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* обводка столбцов в ддс*/

.block-group {
  border: 2.5px solid #000000;
  border-radius: 8px;
}

/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* // ползунок снизу экрана*/
/* Файл: style.css или аналогичный (этот код уже должен быть там) */

.custom-table-scroll-wrapper {
    position: relative;
}

.floating-scrollbar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    background-color: rgba(220, 220, 220, 0.85);
    z-index: 1030;
    display: none;
    border-top: 1px solid #ccc;
}

.floating-scrollbar-content {
    height: 1px;
}


/* Список */
.custom-select-list {
    position: absolute;
    top: 100%;     /* Под инпутом */
    left: 0;       /* От левого края инпута */
    min-width: 100%; /* Не уже инпута */
    width: max-content; /* Ширина по самому длинному тексту */
    max-height: 150px; /* Макс. высота перед скроллом */
    margin-top: -1px;
    background-color: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 .25rem .25rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    overflow-y: auto; /* Скролл по высоте */
    z-index: 9999;
    display: none; /* Скрыт по умолчанию */
}

/* Элементы списка */
.custom-select-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.custom-select-list li {
    padding: 8px 12px;
    white-space: nowrap; /* Запрещаем перенос текста */
    cursor: pointer;
}
.custom-select-list li:hover {
    background-color: #e9ecef; /* Фон при наведении */
}
.custom-select-list li.filtered-out {
    display: none; /* Скрытие при фильтрации */
}

/* Обязательные стили для родительских элементов */
td.date-column { position: relative; }
.custom-select-wrapper { position: relative; }

/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* чтоб изсезал списов в мк при проверке */
#mkVerifyList {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  padding: 0;
  z-index: 1050;
  top: 100%; /* 🟢 откроется прямо под input */
  left: 0;
}

#mkVerifyList li {
  list-style: none;
}
#streamVerifyList {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  padding: 0;
  z-index: 1050;
  top: 100%;
  left: 0;
}

#streamVerifyList li {
  list-style: none;
}

/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* всплывающие окна */


/* Общий контейнер */
.reminder-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    transition: all 0.4s ease;
    z-index: 9999;
}

.reminder-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    overflow-y: auto;       /* <== обязательно! */
    max-height: 500px;      /* <== ограничиваем высоту */
    opacity: 0.90;
    transition: opacity 0.4s ease, display 0s linear 0.4s;
}

.reminder-icon {
  position: fixed;
  bottom: 30px;
  right: 45px;
  font-size: 40px;
  background: white;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  z-index: 10000;
  display: none;
  animation: bell-pulse 0.6s infinite ease-in-out;
  transition: all 0.3s ease;
}



/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* new-в коментах */

.new-comment-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background-color: red;
    color: white;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 8px;
    line-height: 1;
    z-index: 10;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}
/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* отчет по тренингам  */

/* 📅 Стили для input[type="date"] внутри таблицы */
#invoice-table input[type="date"],
#invoice-table select {
    background-color: transparent;  /* ⬅️ убираем белый фон */
    border: none;                   /* ⬅️ убираем границы */
    width: 100%;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

/* 🔲 Чтобы при фокусе тоже не светилось */
#invoice-table input[type="date"]:focus,
#invoice-table select:focus {
    outline: none;
    background-color: transparent;
    box-shadow: none;
}
#invoice-table td.total,
#invoice-table td[data-field="price"],
#invoice-table td[data-field="quantity"] {
    text-align: right;
    white-space: nowrap;
}

/* Убираем стрелку у select */
select.no-arrow {
    appearance: none;           /* для современных браузеров */
    -moz-appearance: none;      /* Firefox */
    -webkit-appearance: none;   /* Safari и Chrome */
    background-image: none;     /* полностью убираем иконку */
    padding-right: 0.5rem;      /* можно уменьшить отступ справа */
}
/* 🔍 Эффект увеличения при наведении */
.hover-scale {
    display: inline-block;
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.4); /* Увеличиваем */
}

/* 🔵 Убираем синие подчеркивания и обводку */
a.check-link {
    text-decoration: none;
}

.upload-btn {
    box-shadow: none !important;
    outline: none !important;
}
/* 🔧 Удаляем серый фон и рамку при наведении на .upload-btn */
.upload-btn {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0;
}

/* 🧲 Убираем эффект Bootstrap при наведении */
.upload-btn:hover,
.upload-btn:focus,
.upload-btn:active {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* надпись в отчете мк и потоки */

.info-banner {
    animation: fadeSlideIn 0.8s ease;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(13, 110, 253, 0.35),
        inset 0 2px 3px rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
    transition: box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.info-banner:hover {
    box-shadow:
        0 6px 30px rgba(0, 0, 0, 0.3),
        0 0 16px rgba(13, 110, 253, 0.6),
        inset 0 3px 6px rgba(255, 255, 255, 0.4);
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px); /* 👈 осталась только вертикальная анимация */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 🔁 Пульсирующая анимация */
@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: translateX(-50%) scale(1.02);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* 🟥 Уведомление с пульсацией */
#fixed-alert {
    position: fixed;
    top: -3px; /* отступ от шапки */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1055;
    padding: 10px 20px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    width: auto;
    max-width: 95%;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s infinite;
}
#call-alert {
    position: fixed;
    top: -3px; /* отступ от шапки */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1055;
    padding: 10px 20px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    width: auto;
    max-width: 95%;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s infinite;
}
#request-alert {
    position: fixed;
    top: -3px; /* отступ от шапки */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1055;
    padding: 10px 20px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    width: auto;
    max-width: 95%;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s infinite;
}

#request-morning-alert {
    position: fixed;
    top: -3px; /* отступ от шапки */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1055;
    padding: 10px 20px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    width: auto;
    max-width: 95%;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s infinite;
}

#followup-alert {
    position: fixed;
    top: -3px; /* отступ от шапки */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1055;
    padding: 10px 20px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    width: auto;
    max-width: 95%;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s infinite;
}

/*✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅*/
/* убираем в отчете по мк поле где ввод*/

.table-input {
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    padding: 0px;
    font-size: 14px;
}

.table-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.5); /* слегка подсветить при фокусе */
}




tr.importance-critical td {
    background-color: #fd707a !important;  /* красный/розовый */
}
tr.importance-urgent td {
    background-color: #f49ffa !important;  /* жёлтый */
}
tr.importance-important td {
    background-color: #b592fa !important;  /* голубой */
}
tr.importance-low td {
    background-color: #a3c3ff !important;  /* серый */
}
tr.task-complete td {
    background-color: #6cff8f !important;
    color: #155724 !important;
}

/* Новый подход — ширина будет адаптивной */
.comment-cell {
    text-align: left !important;

}

.plus-icon-btn {
    text-decoration: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0 5px;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    line-height: 1;
    color: black;
    transition: transform 0.2s ease;
}

.plus-icon-btn:hover {
    transform: scale(1.2);
}



.contract-status-wrapper {
    display: inline-block;
    padding-top: 2px;      /* расстояние сверху */
    padding-bottom: 2px;   /* расстояние снизу */
}

.contract-status-badge {
    display: inline-block;
    padding: 4px 10px !important; /* внутри самой плашки */
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
}
/* Квадратные кнопки с иконками */
.btn-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    font-size: 14px;
    border-radius: 4px;
}

.btn-icon i {
    line-height: 1;
}




.comment-fresh {
  color: #059746;      /* зелёный (0–3 дня) */
  font-weight: 600;
}

.comment-medium {
  color: #a18407;      /* жёлтый (4–14 дней) */
  font-weight: 600;
}

.comment-old {
  color: #ff3b3b;      /* красный (15–30 дней) */
  font-weight: 600;
}

.comment-very-old {
  color: #850606;      /* бордовый (31+ дней) */
  font-weight: 1000;
}
.col-client-name {
    white-space: nowrap !important;   /* В одну строку */
    overflow: visible !important;     /* Не обрезаем */
    text-overflow: unset !important;  /* Без троеточий */
    width: auto !important;           /* Автоматическая ширина */
    max-width: none !important;       /* Не ограничиваем */
    text-align: left !important;
}
.col-manager {
    white-space: normal !important;
    text-align: left;
    vertical-align: middle;
    word-break: break-word;
    min-width: 180px;
}

.manager-line {
    display: block;
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap; /* чтобы фамилия и имя не ломались */
}
.client-edit-dblclick {
    cursor: pointer;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.client-edit-dblclick:hover {
    color: #0d6efd;           /* лёгкий синий оттенок */
    text-decoration: underline;
}
.op-btn {
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.25s ease;
}

.op-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
    filter: brightness(1.05);
}

.op-btn-blue {
    background: linear-gradient(135deg, #1f6feb, #1158c7);
}

.op-btn-green {
    background: linear-gradient(135deg, #2ea043, #1b7c32);
}
table.block-group tbody tr td.saldo-pos {
    background-color: #d4fdd4 !important;
    color: #0b6b2f !important;
    font-weight: 700 !important;
}

table.block-group tbody tr td.saldo-neg {
    background-color: #ffd6d6 !important;
    color: #8a0000 !important;
    font-weight: 700 !important;
}
