/* ===============================
   notifications.css – полная версия
   Стек уведомлений, выделение строк,
   адаптивные кнопки подписки и теста
   =============================== */

/* ---------- Стек уведомлений ---------- */
.notification-stack {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.notification-item {
    background: #28a745;
    color: white;
    border-radius: 12px;
    padding: 12px 40px 12px 16px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    word-wrap: break-word;
    animation: slideIn 0.3s ease;
}

.notification-item.error {
    background: #dc3545;
}

.notification-item,
.notification-item * {
    box-sizing: border-box !important;
}

.notification-item .close-notif {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.notification-item .close-notif:hover {
    background: rgba(0,0,0,0.4);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ---------- Выделение непрочитанных строк ---------- */
.unread-ticket td,
.unread-project td {
    font-weight: bold !important;
}

.unread-ticket {
    background-color: #fff3cd !important;
}

.unread-project {
    background-color: #cfe2ff !important;
}

/* ---------- Подсветка пунктов меню ---------- */
.menu-item.has-unread::after,
.mob-menu-item.has-unread::after {
    content: "●";
    color: #ff4444;
    font-size: 12px;
    margin-left: 5px;
    vertical-align: middle;
}

/* ---------- Адаптивные кнопки (подписка и тест) ---------- */
.push-buttons-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    overflow: visible !important;
}

.push-btn {
    background: #007aff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.push-btn:hover {
    background: #005fc1;
}

.push-btn:active {
    transform: scale(0.97);
}

/* Десктопная версия (ширина > 600px) */
@media (min-width: 601px) {
    .push-btn {
        padding: 10px 20px;
        border-radius: 30px;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
    }
    .push-btn-icon {
        font-size: 18px;
        line-height: 1;
    }
    .push-btn-text {
        display: inline-block;
    }
}

/* Мобильная версия (ширина ≤ 600px) – круглые иконки */
@media (max-width: 600px) {
    .push-buttons-row {
        justify-content: center;
        gap: 12px;
    }
    .push-btn {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 50%;
        background: #007aff;
        justify-content: center;
        align-items: center;
        transform: translateY(0);
        margin: 0;
        overflow: visible;
    }
    .push-btn-text {
        display: none;
    }
    .push-btn-icon {
        font-size: 30px;
        line-height: 1;
        display: inline-block;
        vertical-align: middle;
        margin: 0;
        padding: 0;
    }
    .push-btn:active {
        transform: scale(0.94);
    }
}

/* ---------- Старая кнопка тестового уведомления (для обратной совместимости) ---------- */
.test-btn {
    background: #310a6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 15px;
}
.test-btn:hover {
    background: #4a1d8c;
}

/* ---------- Принудительное отключение overflow:hidden у блоков Tilda ---------- */
.t123,
.t-rec,
.t-container_100,
#allrecords,
.t-width {
    overflow: visible !important;
}