/* ===============================
   УВЕДОМЛЕНИЯ — АДАПТИВ
================================ */
.header_notifications {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 12px;
}
.notifications_button {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
}
.notifications_button:hover {
    background: rgba(0, 0, 0, 0.05);
}
/* Счётчик */
.notifications_badge {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    line-height: 1;
}
/* Выпадающее окно */
.notifications_dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 30px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: none;
    z-index: 1000;
}
.notifications_dropdown.open {
    display: block;
}
/* Заголовок */
.notifications_header {
    padding: 14px 16px;
    border-bottom: 1px solid #eeeeee;
    font-size: 15px;
}
/* Список */
.notifications_list {
    max-height: 400px;
    overflow-y: auto;
}
/* Уведомление */
.notification_item {
    padding: 13px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s ease;
}
.notification_item:hover {
    background: #f7f7f7;
}
/* Непрочитанное */
.notification_item.unread {
    background: #f4f7ff;
}
.notification_item.unread:hover {
    background: #edf2ff;
}
/* Заголовок уведомления */
.notification_title {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}
/* Текст уведомления */
.notification_message {
    font-size: 13px;
    line-height: 1.4;
    color: #555;
}
/* Дата */
.notification_date {
    margin-top: 7px;
    font-size: 11px;
    color: #999;
}
/* Нет уведомлений */
.notifications_empty {
    padding: 25px 16px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

/* ===============================
ПЛАНШЕТ
================================ */
@media (max-width: 900px) {
    .notifications_dropdown {
        width: 340px;
    }
}

/* ===============================
ТЕЛЕФОН
================================ */
@media (max-width: 600px) {
    .header_notifications {
        margin-right: 5px;
    }
    .notifications_button {
        width: 38px;
        height: 38px;
        font-size: 19px;
    }
    /*
    На телефоне выпадающее окно
    привязываем к экрану,
    а не к колокольчику.
    */
    .notifications_dropdown {
        position: fixed;
        top: 65px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        border-radius: 12px;
        max-height: calc(100vh - 80px);
    }
    .notifications_list {
        max-height: calc(100vh - 270px);
    }
    .notifications_header {
        padding: 13px 15px;
        font-size: 14px;
    }
    .notification_item {
        padding: 12px 14px;
    }
    .notification_title {
        font-size: 13px;
    }
    .notification_message {
        font-size: 12px;
    }
    .notification_date {
        font-size: 10px;
    }
}

/* ===============================
СОВСЕМ МАЛЕНЬКИЕ ЭКРАНЫ
================================ */
@media (max-width: 400px) {
    .notifications_dropdown {
        top: 60px;
        left: 8px;
        right: 8px;
    }
    .notifications_button {
        width: 36px;
        height: 36px;
    }
}