/* notifications.css — окно «Уведомления», всплывающие сообщения об ответах и бейдж ответов
   на карточке Главной (09.11.2026). Подключают index.php и project_qr_requests.php. */

/* ===== Окно «Уведомления» ===== */
.nt-modal .modal-header { background: #141c26; color: #fff; }
.nt-modal .nt-tabs { display: flex; gap: 6px; padding: 10px 16px; border-bottom: 1px solid #e3e7ec; background: #f8f9fa; align-items: center; }
.nt-modal #notificationsList { max-height: 65vh; overflow-y: auto; }
.nt-modal .nt-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f0f2f5; cursor: pointer; }
.nt-modal .nt-item:hover { background: #f7f9fc; }
.nt-modal .nt-item.unread { background: #f3f8ff; }
.nt-modal .nt-item.read { opacity: .8; }
.nt-modal .nt-item[hidden] { display: none; }
.nt-modal .nt-ico { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; background: #8b96a3; }
.nt-modal .nt-ico.ans { background: #198754; }
.nt-modal .nt-ico.edit { background: #0d6efd; }
.nt-modal .nt-ico.new { background: #fd7e14; }
.nt-modal .nt-ico.asg { background: #6f42c1; }
.nt-modal .nt-main { flex: 1; min-width: 0; }
.nt-modal .nt-top { display: flex; gap: 10px; }
.nt-modal .nt-title { font-weight: 600; font-size: 13.5px; }
.nt-modal .nt-item.unread .nt-title { font-weight: 700; }
.nt-modal .nt-date { margin-left: auto; font-size: 11.5px; color: #8b96a3; white-space: nowrap; }
.nt-modal .nt-body { font-size: 13px; margin-top: 4px; background: #fff; border: 1px solid #e3e7ec; border-radius: 8px; padding: 6px 9px; white-space: pre-line; }
.nt-modal .nt-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.nt-modal .nt-actions .btn { font-size: 12px; padding: 2px 10px; }
.nt-modal .nt-empty { padding: 24px; text-align: center; color: #8b96a3; }

/* ===== Всплывающие сообщения ===== */
.qr-toasts { position: fixed; right: 24px; bottom: 24px; z-index: 1090; display: flex; flex-direction: column; gap: 10px; width: 380px; max-width: calc(100vw - 32px); }
.qr-toast { background: #fff; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.2); border-left: 5px solid #198754; padding: 12px 14px; animation: qr-toast-in .3s; transition: opacity .25s, transform .25s; }
.qr-toast.qr-toast-edit { border-left-color: #0d6efd; }
.qr-toast.is-hiding { opacity: 0; transform: translateY(10px); }
@keyframes qr-toast-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.qr-toast-head { font-weight: 700; font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.qr-toast-head i { color: #198754; }
.qr-toast-edit .qr-toast-head i { color: #0d6efd; }
.qr-toast-head .btn-close { margin-left: auto; font-size: 10px; }
.qr-toast-body { font-size: 12.5px; color: #5b6774; margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.qr-toast-actions { display: flex; gap: 6px; align-items: center; }

/* ===== Главная: карточка «QR запросы» с новыми ответами ===== */
.action-card.has-unread-answers { box-shadow: 0 0 0 2px #198754, 0 8px 20px rgba(25,135,84,.15); }
.action-card .badge-answers { background: #198754 !important; }
.action-card .card-last-answer { margin-top: 10px; border-top: 1px dashed #e3e7ec; padding-top: 8px; font-size: 12px; color: #5b6774; }
.action-card .card-last-answer b { color: #198754; }
