/* =========================================================
   Закрытые сделки сегодня: без этапа, источник отдельной колонкой,
   кнопки редактировать/удаление максимально близко
   ========================================================= */

.admin-closed-today-section .closed-today-template-table,
.admin-closed-today-section table {
    width: 100% !important;
    table-layout: fixed !important;
}

.admin-closed-today-section thead th,
.admin-closed-today-section tbody td {
    vertical-align: middle !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

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

.admin-closed-today-section th:nth-child(2),
.admin-closed-today-section td:nth-child(2) {
    width: 115px !important;
}

.admin-closed-today-section th:nth-child(3),
.admin-closed-today-section td:nth-child(3) {
    width: 22% !important;
}

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

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

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

.admin-closed-today-section th:nth-child(7),
.admin-closed-today-section td:nth-child(7),
.admin-closed-today-section th:nth-child(8),
.admin-closed-today-section td:nth-child(8) {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    text-align: center !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

.admin-closed-today-section td:nth-child(7) button,
.admin-closed-today-section td:nth-child(8) button,
.admin-closed-today-section .edit-client-btn,
.admin-closed-today-section .admin-trash-btn,
.admin-closed-today-section .btn-delete,
.admin-closed-today-section button[title*="Удал"] {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.admin-closed-today-section td:nth-child(7) {
    padding-right: 1px !important;
}

.admin-closed-today-section td:nth-child(8) {
    padding-left: 1px !important;
}

.admin-closed-today-section .client-source-text-cell {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 950px) {
    .admin-closed-today-section table,
    .admin-closed-today-section thead,
    .admin-closed-today-section tbody,
    .admin-closed-today-section th,
    .admin-closed-today-section td,
    .admin-closed-today-section tr {
        display: block;
        width: 100% !important;
        max-width: none !important;
    }

    .admin-closed-today-section thead {
        display: none !important;
    }

    .admin-closed-today-section td {
        display: grid !important;
        grid-template-columns: 115px 1fr !important;
        gap: 8px !important;
        padding: 8px 0 !important;
        text-align: left !important;
    }

    .admin-closed-today-section td:nth-child(7),
    .admin-closed-today-section td:nth-child(8) {
        display: inline-flex !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        margin-right: 4px !important;
        padding: 6px 0 !important;
        vertical-align: top !important;
    }

    .admin-closed-today-section td:nth-child(7)::before,
    .admin-closed-today-section td:nth-child(8)::before {
        display: none !important;
    }
}
