/* Chuông thông báo (nạp trên mọi trang). Chỉ áp dụng cho lớp .qa-tb-panel do notify.js gắn vào khung chuông. */

/* app.css: ".qa-dropdown a { display:flex }" mạnh hơn ".qa-notify-item { display:block }" → mục bị xếp ngang. */
.qa-tb-panel .qa-notify-item { display: block; padding: 10px 14px; border-radius: 0; }
.qa-tb-panel .qa-notify-item b, .qa-tb-panel .qa-notify-item span { overflow-wrap: anywhere; }
.qa-tb-panel .qa-notify-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 1px; }
.qa-tb-panel .qa-notify-item.is-unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--qa-primary); margin-right: 6px; vertical-align: 2px; }
.qa-tb-panel .qa-notify-head .qa-btn[disabled] { opacity: .45; }
.qa-tb-panel .qa-notify-all { display: block; text-align: center; color: var(--qa-primary); }

@media (max-width: 560px) {
  /* Trên điện thoại hẹp, khung 360px canh theo nút chuông bị tràn mép trái → trải theo chiều ngang màn hình. */
  .qa-notify-panel.qa-tb-panel { position: fixed; left: 8px; right: 8px; top: calc(60px + env(safe-area-inset-top, 0px)); width: auto; max-width: none; }
  .qa-tb-panel .qa-notify-list { max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); overscroll-behavior: contain; }
}
