/* Tạo bởi: Claude Code (luồng 2 · chuông theo tab) · Model: claude-sonnet-5-5 · Thời gian: 2026-10-24
   Dropdown chuông chia tab (mẫu 19). BEM notify-dd-…, hook JS .js__notify-dd-…. */
.notify-dd-menu,
.layout-navbar .navbar-nav .nav-item.dropdown .dropdown-menu.notify-dd-menu {
	width: 380px;
	min-width: 0;
	max-width: calc(100vw - 16px);
	padding: 0;
	border-radius: 20px;
	overflow: hidden;
}
.notify-dd {
	display: flex;
	flex-direction: column;
	max-height: min(640px, calc(100vh - 90px));
	padding: 14px 12px 12px;
	background: #f3f3f8;
}
.notify-dd__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	padding: 0 4px 10px;
}
.notify-dd__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #233446;
}
.notify-dd__sub {
	font-size: 0.8125rem;
	color: #697a8d;
}
.notify-dd__readall {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 4px 12px;
	border: 1px solid #d9dee3;
	border-radius: 999px;
	background: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #233446;
	white-space: nowrap;
	cursor: pointer;
}
.notify-dd__readall:hover {
	background: #ececf4;
}
.notify-dd__tabs {
	display: flex;
	/* Khung dropdown là flex cột: không cho hàng tab co lại (bị cắt còn ~14px khi danh sách dài). */
	flex-shrink: 0;
	gap: 2px;
	padding: 3px;
	margin-bottom: 8px;
	border-radius: 999px;
	background: #fff;
	overflow-x: auto;
	scrollbar-width: none;
}
.notify-dd__tab {
	display: inline-flex;
	flex: 1 0 auto;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 36px;
	padding: 4px 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #566a7f;
	white-space: nowrap;
	cursor: pointer;
}
.notify-dd__tab.is-active {
	background: #696cff;
	color: #fff;
}
.notify-dd__tab-count {
	min-width: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #ff3e1d;
	font-size: 0.6875rem;
	line-height: 18px;
	color: #fff;
	text-align: center;
}
.notify-dd__body {
	flex: 1 1 auto;
	min-height: 120px;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.notify-dd__group {
	padding: 8px 4px 6px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #8592a3;
	text-transform: uppercase;
}
.notify-dd__empty {
	padding: 32px 8px;
	text-align: center;
	color: #8592a3;
}
.notify-dd__card {
	display: flex;
	gap: 12px;
	padding: 12px;
	margin-bottom: 8px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(35, 52, 70, 0.08);
	cursor: pointer;
}
.notify-dd__card:hover {
	box-shadow: 0 2px 8px rgba(35, 52, 70, 0.16);
}
.notify-dd__card:focus-visible {
	outline: 2px solid #696cff;
	outline-offset: 2px;
}
.notify-dd__icon {
	position: relative;
	display: inline-flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #696cff;
	font-size: 1.25rem;
	color: #fff;
}
.notify-dd__dot {
	position: absolute;
	top: -3px;
	right: -3px;
	width: 10px;
	height: 10px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #2f6bff;
}
.notify-dd__main {
	flex: 1 1 auto;
	min-width: 0;
}
.notify-dd__top {
	display: flex;
	align-items: center;
	gap: 4px;
}
.notify-dd__type {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #697a8d;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}
.notify-dd__time {
	font-size: 0.75rem;
	color: #697a8d;
	white-space: nowrap;
}
.notify-dd__act {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	font-size: 1.125rem;
	color: #8592a3;
	cursor: pointer;
}
.notify-dd__act:hover {
	background: #ececf4;
	color: #233446;
}
.notify-dd__act.is-saved {
	color: #ffab00;
}
.notify-dd__item-title {
	margin-top: 2px;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	color: #233446;
}
.notify-dd__card:not(.is-unread) .notify-dd__item-title {
	font-weight: 600;
	color: #566a7f;
}
.notify-dd__content {
	display: -webkit-box;
	margin-top: 2px;
	overflow: hidden;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #566a7f;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.notify-dd__all {
	display: block;
	margin-top: 4px;
	padding: 10px;
	border: 1px solid #d9dee3;
	border-radius: 999px;
	background: #fff;
	font-weight: 700;
	color: #233446;
	text-align: center;
}
.notify-dd__all:hover {
	background: #ececf4;
	color: #233446;
}
/* Điện thoại: dropdown full-width, danh sách cuộn bên trong */
@media (max-width: 575.98px) {
	.notify-dd-menu.show,
	.layout-navbar .navbar-nav .nav-item.dropdown .dropdown-menu.notify-dd-menu.show {
		position: fixed !important;
		top: 60px !important;
		right: 8px !important;
		left: 8px !important;
		width: auto;
		max-width: none;
		transform: none !important;
	}
	.notify-dd {
		/* Trừ header (~62px) + thanh menu đáy mobile .bottom-navbar (~55px) để nút "Xem tất cả" không bị che. */
		max-height: calc(100vh - 140px);
	}
}
@media (prefers-reduced-motion: no-preference) {
	.notify-dd__card {
		transition: box-shadow 0.15s ease;
	}
}
