#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsFooter a{color:#333333;text-decoration:none}
#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsFooter a:hover{color:#006699;text-decoration:none}

/* Help icon injected next to "Plugins » Redmineflux Notifications plugin"
   on this plugin's own settings page — see
   AppNotificationsHookListener#view_layouts_base_body_bottom and
   _settings_help_icon.html.erb. Not scoped under #top-menu since the h2
   it's injected into lives in the page's main content area, not the menu. */
h2 a.rfn-settings-help-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	color: #888888;
	vertical-align: middle;
	margin-left: 6px;
	transition: background-color 0.15s, color 0.15s;
}
h2 a.rfn-settings-help-link:hover {
	background-color: #f1f1f1;
	color: #333333;
}
#top-menu ul li.notificationsLinkParent #notificationsContainer {
	color: #333;
	background-color: #fff;
	border: 1px solid rgba(100, 100, 100, .4);
	-webkit-box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
	position: absolute;
	top: 25px;
	/* Anchored to the bell <li>'s own right edge (via `right`, not
	   margin-left from an unpredictable left edge) so the 400px-wide
	   panel always extends leftward from the icon and never overflows
	   past the viewport's right edge, regardless of how far right the
	   li itself sits (which varies by Redmine version/layout — see the
	   nav#top-menu vs div#top-menu rules above). */
	right: -20px;
	width: 400px;
	z-index: 9999;
	display: none;
	font-size: 12px;
}

#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody{
	max-height: 400px;
	overflow-y: auto;
}

#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody .no-notifications-container{
	display: flex;
	flex-direction: column;
	align-items: center;
	row-gap: 10px;
	padding: 20px 0px;
	/* background-color: #F1F1FF; */
    font-weight: 500;
}

#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody .no-notifications-container .no-notifications{
	background-image: url("/assets/plugin_assets/redmineflux_notification/no-notification-img-b24bb82b.svg");
    height: 150px;
    width: 150px;
    background-repeat: no-repeat;
    background-size: contain;
}

.theme-Purplemine2 #notificationsContainer {
        margin-left: 125px;
}

/* Redmine 7's #top-menu .top-menu__links ul is a flex row that only shrinks
   to fit its own <li> content (no stretch, no free space), so neither
   float:right nor margin-left:auto have anywhere to push these items to.
   Redmine 5/6's #top-menu mixes float:right on #account, #loggedas AND on
   this li within the same containing block, which makes the li overlap
   the "Logged in as ... | My account | Sign out" text instead of sitting
   past it. Anchoring with position:absolute against #top-menu itself
   sidesteps both float layouts entirely and guarantees the icons sit in
   the nav's top-right corner regardless of sizing.
   Redmine 7 renders <nav id="top-menu"> with a small avatar chip on the
   right; Redmine 5/6 render <div id="top-menu"> with the wider
   "Logged in as ... | My account | Sign out" text links on the right, so
   the two need different offsets — hence the tag-qualified selectors. */
#top-menu {
	position: relative;
	/* #header (which renders right below #top-menu) also has
	   position:relative with no z-index of its own in STOCK Redmine. Two
	   position:relative siblings with z-index:auto stack in DOM order, and
	   #header comes after #top-menu in the markup — so without an explicit
	   z-index here, #header paints over the notification dropdown despite
	   the dropdown's own z-index:9999 (that z-index has no effect against a
	   sibling of its non-stacking-context-forming ancestor). Giving
	   #top-menu its own stacking context via z-index elevates the whole
	   nav, dropdown included, above #header.
	   Themes that give #header its own z-index (e.g. Redmineflux Scarlet,
	   for its floating-card layout) are expected to keep it below this
	   themselves -- see scarlet.css's #header rule -- rather than this
	   plugin chasing every theme's #header value with an ever-higher
	   number here. */
	z-index: 999;
}

#top-menu ul li.notificationsLinkParent,
#top-menu ul li.notification_countParent
{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: 16px;
}

/* Redmine 7: <nav id="top-menu">, avatar chip (~22px) on the right */
nav#top-menu ul li.notificationsLinkParent {
	right: 70px;
}

nav#top-menu ul li.notification_countParent {
	right: 95px;
}

/* Redmine 5/6: <div id="top-menu">, wider text links on the right */
div#top-menu ul li.notificationsLinkParent {
	right: 260px;
}

div#top-menu ul li.notification_countParent {
	right: 305px;
}

#top-menu ul li.notificationsLinkParent #notificationsLink {
	background-image: url("/assets/plugin_assets/redmineflux_notification/icons8-notification-9449727a.svg");
    display: inline-block;
    height: 20px;
    width: 20px;
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: 0px 0px;
    font-size: 0px;
    position: relative;
    top: -2px;
}

/* add css for show red dot icon when notification received first time  */
#top-menu ul li #notification_count.empty {
	background-image: url("/assets/plugin_assets/redmineflux_notification/unread-notification-dot-fed36865.svg");
	display: inline-block;
    height: 10px;
    width: 10px;
    background-repeat: no-repeat;
    background-size: 9px;
    background-position: 0px 0px;
    font-size: 0px;
    position: absolute;
    top: 0px;
	right: 254px;
}

#top-menu ul li.notification_countParent #notification_count {
	background-image: url("/assets/plugin_assets/redmineflux_notification/unread-notification-dot-fed36865.svg");
	display: inline-block;
    height: 10px;
    width: 10px;
    background-repeat: no-repeat;
    background-size: 9px;
    background-position: 0px 0px;
    font-size: 0px;
    position: absolute;
    top: -2px;
	right: -30px;
}

#top-menu ul li.notificationsLinkParent #notificationsContainer:before {
	content: '';
	display: block;
	position: absolute;
	width: 0;
	height: 0;
	color: transparent;
	border: 10px solid black;
	border-color: transparent transparent white;
	margin-top: -20px;
}

/* The container is now anchored to the bell <li> via `right` (see above),
   not margin-left from the left edge, so this arrow needs to sit a fixed
   distance from the container's RIGHT edge (where the bell icon is)
   instead of a fixed distance from the left edge. The exact offset that
   centers it under the bell differs slightly by layout (measured via the
   bell's and container's actual rendered rects), hence tag-qualified. */
nav#top-menu ul li.notificationsLinkParent #notificationsContainer:before {
	right: 20px;
}

div#top-menu ul li.notificationsLinkParent #notificationsContainer:before {
	right: 28px;
}
#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsTitle {
	z-index: 1000;
	font-weight: bold;
	padding: 8px;
	font-size: 13px;
	background-color: #ffffff;
	width: 384px;
	border-bottom: 1px solid #dddddd;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
}

/* Help icon inside the bell dropdown's title bar — opens the plugin's own
   in-app documentation in a new tab. Sized/colored to sit quietly next to
   the bold "Notifications" label rather than compete with it. */
#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsTitle #notificationsHelpLink {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: #888888;
	flex-shrink: 0;
	transition: background-color 0.15s, color 0.15s;
}

#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsTitle #notificationsHelpLink:hover {
	background-color: #f1f1f1;
	color: #333333;
}
#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsFooter {
	background-color: #F1F1FF;
	text-align: center;
	font-weight: bold;
	padding: 8px;
	font-size: 13px;
	border-top: 1px solid #dddddd;
}

#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody a .notification-container {
	padding: 10px 15px;
	background-color: #FCFCFF;
	cursor: pointer;
}

#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody .notification-container {
	padding: 10px 15px;
	background-color: #F0F0FF;
	cursor: pointer;
}

#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody .notification-container a .notification-title {
	font-weight: bold;
    color: #3E5B76;
    font-size: 12px;
}

#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody div.notification-container > div.notification-content {
	color: #333;
	display: block;
	word-wrap: break-word;
	white-space: normal;
	font-size: 11px;
	padding-left: 10px;
}

#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody .notification-container:hover {
	background-color: #FFFFFF;
}

#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody a .notification-container:hover {
	background-color: #FFFFFF;
}

#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody a .notification-container.new {
	background-color: #F0F0FF;
}

#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody a .notification-container.new:hover {
	background-color: #FFFFFF;
}

#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody a {
	color: #333;
	text-decoration: none;
	margin-right: 0;
	font-weight: normal;
	white-space: normal;
}
#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody a .notification-container .notification-date,
#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody .notification-container .notification-date {
	color: #333;
	font-style: italic;
	font-size: 10px;
}
#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody a .notification-container .notification-title {
	font-weight: bold;
	color: #3E5B76;
	font-size: 12px;
}
#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody a .notification-container .notification-content {
	color: #333;
	display:block;
	word-wrap: break-word;
	white-space: normal;
	font-size: 11px;
	padding-left: 10px;
}

.controller-app_notifications.action-index #content > .main-notification-container{
	margin-top: 10px;
}

.controller-app_notifications.action-index #content > .main-notification-container .notification a.view-notification {
	float: right;
}

.controller-app_notifications.action-index #content > .main-notification-container .notification {
	margin: 2px;
	padding: 7px;
}
.controller-app_notifications.action-index #content > .main-notification-container .notification.new {
	background-color: #F0F0FF;
}

.controller-app_notifications.action-index #content > .main-notification-container .no-notifications-container > .no-notifications{
	background-image: url("/assets/plugin_assets/redmineflux_notification/no-notification-img-b24bb82b.svg");
    height: 200px;
    width: 200px;
    background-repeat: no-repeat;
    background-size: contain;
}
.controller-app_notifications.action-index #content > .main-notification-container .no-notifications-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 20px;
	margin: 50px 0px;
	font-size: 15px;
    font-weight: 500;
}

.controller-app_notifications.action-index #content > div.main-notification-container > div.notification > p > img {
	width: 100%;
	height: 100%;
}

.controller-app_notifications.action-index #content > ul.pages{
	list-style: none;
    display: flex;
    row-gap: 10px;
    column-gap: 10px;
    padding: 10px;
}

.push-notification {
    background-color: #333;
    position: fixed;
    right: 20px;
    bottom: 20px;
    color: #fff;
    padding: 15px 15px 15px 30px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background-repeat: no-repeat;
    background-position: 7px center;
    vertical-align: middle;
    box-shadow: 4px 4px 4px #000;
    -webkit-box-shadow: 4px 4px 4px #000;
    -moz-box-shadow: 4px 4px 4px #000;    	
}

.push-notification a.push-notification-link {
	color: #fff;
	text-decoration: none;
}
	
.push-notification a.push-notification-link:hover {
	color: #c61a1a;
	text-decoration: underline;
} 

#notification-notes{
	width: 330px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    overflow: hidden;
}

#notification-notes p img {
    display: none;
}
/* #notification-notes p{
	margin-bottom: 0px;
} */
#notification-notes p:empty {
    display: none; 
}

#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody .notification-container .notification-content #notification-notes{
	display: flex;
	gap: 5px;
	margin-top: 8px;
  	margin-bottom: 8px;
}

#top-menu ul li.notificationsLinkParent #notificationsContainer #notificationsBody .notification-container .notification-content #notification-notes p{
	margin: 0px;
}

.controller-app_notifications.action-index #content > .main-notification-container div.notification #notification-notes{
	display: flex;
	align-items: center;
	gap: 5px;
	width: auto;
}

.controller-app_notifications.action-index #content > .main-notification-container div.notification #notification-notes p{
	margin: 10px 0px;
}

.controller-app_notifications.action-index #content > .main-notification-container div.notification h3{
	margin: 0px;
}

.controller-app_notifications.action-index #content > .main-notification-container div.notification ul{
	margin: 5px;
}