/* =========================================================
   Деньги на сегодня: шаблон столбцов по образцу 2-го раздела
   ========================================================= */

@media (min-width: 951px) {
    .today-money-section .table-wrap {
        overflow-x: auto !important;
    }

    .today-money-section .section2-template-table.today-template-table,
    .today-money-section table.today-template-table {
        width: 100% !important;
        min-width: 980px !important;
        table-layout: fixed !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
    }

    .today-money-section table.today-template-table th,
    .today-money-section table.today-template-table td {
        vertical-align: middle !important;
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }

    .today-money-section table.today-template-table th {
        font-family: inherit !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        line-height: 1.08 !important;
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

    /* 9 колонок после удаления: Этап, Вероятность, Причина незакрытия */
    .today-money-section table.today-template-table th:nth-child(1),
    .today-money-section table.today-template-table td:nth-child(1) { width: 8% !important; }

    .today-money-section table.today-template-table th:nth-child(2),
    .today-money-section table.today-template-table td:nth-child(2) { width: 28% !important; }

    .today-money-section table.today-template-table th:nth-child(3),
    .today-money-section table.today-template-table td:nth-child(3) { width: 11% !important; }

    .today-money-section table.today-template-table th:nth-child(4),
    .today-money-section table.today-template-table td:nth-child(4) { width: 11% !important; }

    .today-money-section table.today-template-table th:nth-child(5),
    .today-money-section table.today-template-table td:nth-child(5) { width: 17% !important; }

    .today-money-section table.today-template-table th:nth-child(6),
    .today-money-section table.today-template-table td:nth-child(6) {
        width: 8% !important;
        text-align: center !important;
    }

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

    .today-money-section table.today-template-table th:nth-child(8),
    .today-money-section table.today-template-table td:nth-child(8) {
        width: 5% !important;
        text-align: center !important;
    }

    .today-money-section table.today-template-table th:nth-child(9),
    .today-money-section table.today-template-table td:nth-child(9) {
        width: 5% !important;
        text-align: center !important;
    }

    .today-money-section table.today-template-table td:nth-child(6),
    .today-money-section table.today-template-table td:nth-child(7),
    .today-money-section table.today-template-table td:nth-child(8),
    .today-money-section table.today-template-table td:nth-child(9),
    .today-money-section table.today-template-table th:nth-child(6),
    .today-money-section table.today-template-table th:nth-child(7),
    .today-money-section table.today-template-table th:nth-child(8),
    .today-money-section table.today-template-table th:nth-child(9) {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .today-money-section .deal-amount-cell {
        min-height: 34px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .today-money-section .deal-amount-cell .deal-amount-edit-btn {
        display: none !important;
    }

    .today-money-section .today-closed-cell {
        text-align: center !important;
    }

    .today-money-section .today-close-check {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        height: 34px !important;
        margin: 0 auto !important;
        cursor: pointer !important;
    }

    .today-money-section .today-close-check input {
        position: absolute !important;
        opacity: 0 !important;
        width: 1px !important;
        height: 1px !important;
        pointer-events: none !important;
    }

    .today-money-section .today-close-check span {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 26px !important;
        height: 26px !important;
        border-radius: 8px !important;
        border: 1px solid #86efac !important;
        background: #f0fdf4 !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.85) !important;
    }

    .today-money-section .today-close-check span::before {
        content: "";
        width: 12px;
        height: 7px;
        border-left: 3px solid transparent;
        border-bottom: 3px solid transparent;
        transform: rotate(-45deg) translate(1px, -1px);
    }

    .today-money-section .today-close-check input:checked + span {
        background: #22c55e !important;
        border-color: #16a34a !important;
    }

    .today-money-section .today-close-check input:checked + span::before {
        border-left-color: #ffffff;
        border-bottom-color: #ffffff;
    }

    .today-money-section table.today-template-table td:nth-child(8) .edit-client-btn,
    .today-money-section table.today-template-table td:nth-child(9) .btn-postpone-deal {
        margin: 0 auto !important;
    }

    .today-money-section table.today-template-table td:nth-child(8) .edit-client-btn.edit-deal-main-btn,
    .today-money-section table.today-template-table td:nth-child(9) .btn-postpone-deal {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 17px !important;
        line-height: 1 !important;
    }
}

@media (max-width: 950px) {
    .today-money-section td[data-label="Этап"],
    .today-money-section td[data-label="Вероятность"],
    .today-money-section td[data-label="Причина"],
    .today-money-section td[data-label="Причина незакрытия"] {
        display: none !important;
    }

    .today-money-section .today-close-check {
        width: 42px !important;
        height: 42px !important;
    }

    .today-money-section .today-close-check input {
        position: absolute !important;
        opacity: 0 !important;
    }

    .today-money-section .today-close-check span {
        width: 30px !important;
        height: 30px !important;
        border-radius: 9px !important;
        border: 1px solid #86efac !important;
        background: #f0fdf4 !important;
    }

    .today-money-section .today-close-check input:checked + span {
        background: #22c55e !important;
        border-color: #16a34a !important;
    }
}
