/* =========================================================
   Первый раздел менеджера: компактная таблица
   Убраны колонки "Что мешает оплате" и "Следующее действие".
   ========================================================= */

.today-money-section table {
    min-width: 980px !important;
    table-layout: fixed !important;
}

/* После удаления двух колонок порядок:
   1 Приоритет
   2 Клиент
   3 Направление
   4 Сумма
   5 Этап
   6 Время
   7 Вероятность
   8 Закрыто
   9 Причина незакрытия
   10 Редактировать
   11 Удаление, если есть
*/

.today-money-section th:nth-child(1),
.today-money-section td:nth-child(1) {
    width: 86px !important;
}

.today-money-section th:nth-child(2),
.today-money-section td:nth-child(2) {
    width: 190px !important;
    min-width: 190px !important;
    font-weight: 900 !important;
    color: #111111 !important;
}

.today-money-section th:nth-child(3),
.today-money-section td:nth-child(3) {
    width: 110px !important;
}

.today-money-section th:nth-child(4),
.today-money-section td:nth-child(4) {
    width: 120px !important;
    min-width: 120px !important;
    font-weight: 900 !important;
}

.today-money-section th:nth-child(5),
.today-money-section td:nth-child(5) {
    width: 140px !important;
}

.today-money-section th:nth-child(6),
.today-money-section td:nth-child(6) {
    width: 82px !important;
    text-align: center !important;
}

.today-money-section th:nth-child(7),
.today-money-section td:nth-child(7) {
    width: 84px !important;
    text-align: center !important;
}

.today-money-section th:nth-child(8),
.today-money-section td:nth-child(8) {
    width: 64px !important;
    text-align: center !important;
}

.today-money-section th:nth-child(9),
.today-money-section td:nth-child(9) {
    width: 170px !important;
}

.today-money-section th:nth-child(10),
.today-money-section td:nth-child(10) {
    width: 72px !important;
    text-align: center !important;
}

/* Если есть колонка удаления */
.today-money-section th:nth-child(11),
.today-money-section td:nth-child(11) {
    width: 90px !important;
    text-align: center !important;
}

/* Компактные поля и элементы в первом разделе */
.today-money-section td {
    padding: 6px 8px !important;
    vertical-align: middle !important;
}

.today-money-section .priority,
.today-money-section .priority-select {
    min-width: 70px !important;
    padding: 5px 8px !important;
    font-size: 12px !important;
    border-radius: 7px !important;
}

/* Вероятность компактнее */
.today-money-section td:nth-child(7) {
    font-weight: 800 !important;
    white-space: nowrap !important;
}

/* Чекбокс "Закрыто" компактнее */
.today-money-section td:nth-child(8) input[type="checkbox"],
.today-money-section .deal-complete {
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: block !important;
    box-shadow: none !important;
}

/* Причина незакрытия компактнее */
.today-money-section td:nth-child(9) input {
    min-width: 140px !important;
    width: 100% !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 5px 8px !important;
    font-size: 12px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    border-radius: 7px !important;
}

/* Кнопка редактирования компактнее */
.today-money-section .edit-client-btn,
.today-money-section .edit-btn {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border-radius: 7px !important;
    font-size: 14px !important;
}

/* Кнопка удаления, если она есть */
.today-money-section .btn-danger-outline {
    min-width: 68px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 5px 8px !important;
    font-size: 12px !important;
    border-radius: 7px !important;
}

/* Сумма жирная и аккуратная */
.today-money-section .money,
.today-money-section td:nth-child(4) {
    font-weight: 900 !important;
    color: #111111 !important;
}

/* Чтобы длинный клиент красиво переносился */
.today-money-section td:nth-child(2) {
    line-height: 1.2 !important;
    word-break: normal !important;
    white-space: normal !important;
}

/* Мобильная версия */
@media (max-width: 950px) {
    .today-money-section table {
        min-width: 0 !important;
        table-layout: auto !important;
    }

    .today-money-section th,
    .today-money-section td {
        width: auto !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    .today-money-section td:nth-child(2),
    .today-money-section td:nth-child(4) {
        font-weight: 900 !important;
    }

    .today-money-section td:nth-child(8) input[type="checkbox"] {
        margin: 0 !important;
    }

    .today-money-section .edit-client-btn,
    .today-money-section .edit-btn,
    .today-money-section .btn-danger-outline {
        width: 100% !important;
        min-width: 0 !important;
    }
}
