/* =========================================================
   2-й раздел: ровная шапка + кнопка "В продажу" в одну строку
   ========================================================= */

@media (min-width: 951px) {
    /* Шапка таблицы: одинаковый шрифт и без разрыва слов */
    .calculation-money-section thead th {
        font-family: inherit !important;
        font-size: 12px !important;
        line-height: 1.08 !important;
        font-weight: 900 !important;
        color: #006b2d !important;
        text-align: left !important;
        vertical-align: middle !important;
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .calculation-money-section thead th:nth-child(n+8) {
        text-align: center !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

    /* Длинный заголовок можно в две строки только между словами, не по буквам */
    .calculation-money-section thead th:nth-child(8) {
        width: 58px !important;
        max-width: 58px !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        font-size: 11px !important;
        line-height: 1.05 !important;
    }

    /* Комментарии — слово полностью, без "Коммента / рии" */
    .calculation-money-section thead th:nth-child(9),
    .calculation-money-section td:nth-child(9) {
        width: 76px !important;
        max-width: 76px !important;
        min-width: 76px !important;
    }

    .calculation-money-section thead th:nth-child(9) {
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    /* Редактирование — узкая иконка */
    .calculation-money-section thead th:nth-child(10),
    .calculation-money-section td:nth-child(10) {
        width: 40px !important;
        max-width: 40px !important;
        min-width: 40px !important;
        text-align: center !important;
    }

    /* В продажу — кнопка строго в одну строку */
    .calculation-money-section thead th:nth-child(11),
    .calculation-money-section td:nth-child(11) {
        width: 92px !important;
        max-width: 92px !important;
        min-width: 92px !important;
        text-align: center !important;
    }

    .calculation-money-section td:nth-child(11) button,
    .calculation-money-section td[data-label="В продажу"] button,
    .calculation-money-section .btn-transfer-deal,
    .calculation-money-section .btn-sale-plan,
    .calculation-money-section .transfer-narrow-btn {
        width: auto !important;
        min-width: 78px !important;
        max-width: 88px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 6px 8px !important;
        border-radius: 10px !important;
        font-size: 11px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    /* Удаление — слово полностью, без "Удале / ние" */
    .calculation-money-section thead th:nth-child(12),
    .calculation-money-section td:nth-child(12) {
        width: 64px !important;
        max-width: 64px !important;
        min-width: 64px !important;
        text-align: center !important;
    }

    .calculation-money-section thead th:nth-child(12) {
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    .calculation-money-section td:nth-child(12) button,
    .calculation-money-section td[data-label="Удаление"] button {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    .calculation-money-section td:nth-child(9) .assigned-comments-btn,
    .calculation-money-section .calculation-comments-icon-cell .assigned-comments-btn {
        width: 40px !important;
        min-width: 40px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 4px 7px !important;
        margin: 0 auto !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 950px) {
    .calculation-money-section td[data-label="В продажу"] button,
    .calculation-money-section .btn-transfer-deal,
    .calculation-money-section .btn-sale-plan,
    .calculation-money-section .transfer-narrow-btn {
        white-space: nowrap !important;
        word-break: keep-all !important;
    }
}
