/* =========================================================
   Клиенты в работе: планирование продажи
   ========================================================= */

.sale-planned-calculation-row td,
.admin-live-row:has(.calculation-sale-wait) td {
    background: #f0fdf4 !important;
}

.sale-planned-calculation-row td:first-child,
.admin-live-row:has(.calculation-sale-wait) td:first-child {
    border-left: 5px solid #16a34a !important;
}

.btn-sale-plan,
.btn-transfer-deal {
    min-height: 32px !important;
    height: auto !important;
    padding: 6px 10px !important;
    border-radius: 10px !important;
    border: 1px solid #bbf7d0 !important;
    background: #ffffff !important;
    color: #166534 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

.btn-sale-plan:hover,
.btn-transfer-deal:hover {
    background: #f0fdf4 !important;
    border-color: #16a34a !important;
}

.calculation-sale-wait {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;

    max-width: 160px;
    padding: 5px 8px;
    border-radius: 10px;
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;

    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
}

.calculation-sale-wait span {
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Мобильная версия */
@media (max-width: 950px) {
    .calculation-sale-wait {
        max-width: 100%;
    }

    .btn-sale-plan,
    .btn-transfer-deal {
        width: 100% !important;
    }
}
