@import "./../../../assets/css/shared/animations.css";

.notifications-center-body {
	background-color: transparent;
	bottom: 0;
	margin: 25px 0 0;
	/* stylelint-disable-next-line declaration-no-important */
	overflow: hidden !important; /* necessary to hide default scrollbar, cause the parent html element is restyled at the `hackScrollbar()` function */
}

.notifications-center-body.docked {
	/* stylelint-disable-next-line declaration-no-important */
	margin-top: 0 !important; /* necessary to push the window up to take over the hidden titlebar when the center is docked */
}

.notifications-center-body.docked #FSBLHeader {
	display: none;
}

.notifications-center-body #drawer {
	background-color: var(--notification-drawer-background-color);
	padding: 0 10px;
	min-height: calc(100vh - 25px);
}

.notifications-center-body.docked #drawer {
	min-height: 100vh;
}

.drawer-container {
	display: flex;
	padding-bottom: 5px;
	flex-direction: column;
	height: 100vh;
}

.notifications-center-body .divider {
	min-height: 10px;
	max-height: 10px;
}

.notifications-center-body .finsemble-icon-check svg path {
	transform: scale(0.5);
}

.cards-container {
	/* Full window minus Search and Filter rows height  */
	flex-grow: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding-left: 6px;
	padding-right: 6px;
}

.cards-container::-webkit-scrollbar {
	width: 8px;
}

.cards-container::-webkit-scrollbar-track {
	background: var(--core-primary);
}

.cards-container::-webkit-scrollbar-thumb {
	background-color: var(--accent-primary);
	border-radius: 20px;
	border: 1px solid var(--core-primary-3);
}

#notifications-center__header {
	background: var(--core-primary-1);
	display: grid;
	grid-template-columns: 24px auto 24px 24px;
	grid-template-rows: 40px;
	align-items: end;
}

.finsemble-notifications_center__header.icon,
.finsemble-notifications_center__control.icon {
	align-items: center;
	display: flex;
	height: 24px;
	justify-content: center;
	position: relative;
	width: 24px;
}

.finsemble-notifications_center__header.icon:hover,
.finsemble-notifications_center__control.icon:hover {
	background: var(--menu-actions-hover-color);
}

.finsemble-notifications_center__header.icon:hover {
	border-radius: 50px;
}

.search-notifications__input {
	height: 25px;
	border: none;
	border-bottom: solid 2px var(--core-primary-3);
	background-color: var(--core-primary-1);
	font-family: var(--notification-font-family);
	font-size: var(--font-size);
	color: var(--core-primary-5);
	padding-left: 10px;
	transition: all 0.3s ease-in-out;
	outline: none;
}

.search-notifications__input:focus {
	border-bottom: 2px solid var(--accent-primary);
}

#notifications-center-controls {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	padding: 10px 0; /* change to margin when notifications search is implemented */
}

.notifications-center-controls__row {
	display: flex;
	flex-direction: row;
	width: 100%;
	padding: 5px 0;
}

.notifications-center-controls__row .finsembleToggleButtonBar {
	background-color: var(--core-primary);
}

.notifications-center-controls__view_mode .finsembleToggleButtonBar i {
	position: relative;
	top: 1px;
}

.notifications-center-controls__row .button-container-primary button {
	background-color: var(--core-primary);
	margin: 0 1px;
}

.notifications-center-controls__row.center {
	justify-content: center;
}

.notifications-center-controls__filter-btn {
	height: 24px;
	line-height: 24px;
	border-radius: 12px;
	background-color: var(--core-primary-2);
	text-shadow: 0 1px 1px var(--font-shadow);
	font-family: var(--notification-font-family);
	font-size: 11px;
	color: var(--font-color);
	padding: 0 7px;
	margin: 0 3px;
	cursor: pointer;
	white-space: nowrap;
}

.notifications-center-controls__filter-btn.active {
	background-color: var(--accent-primary);
}

.check_icon_container {
	flex-basis: 17px;
	margin-right: 8px;
	height: 17px;
	width: 17px;
	border-radius: 12px;
	background-color: var(--core-primary-2);
	text-shadow: 0 1px 1px var(--font-shadow);
	font-family: var(--notification-font-family);
	font-size: 13px;
	color: var(--font-color);
	cursor: pointer;
	justify-content: center;
	align-items: center;
}

.check_icon_container .finsemble-icon {
	color: var(--font-color);
	cursor: pointer;
	display: inline-block;
	margin: auto 4px;
}

.check_icon_container > .checked {
	color: var(--accent-positive);
}

#notifications-center-controls .notifications-center-controls__view_mode {
	margin-left: auto;
	display: flex;
	flex-direction: row;
	cursor: pointer;
}

.notifications-center-controls__view_mode .icon {
	margin: 0 2px;
}

.icon.active svg {
	fill: var(--accent-primary);
}

.drawer-enter {
	animation: slide-in-right 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.drawer-exit {
	animation: slide-out-right 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
}

/* Notification card and views */

i.default-img.large {
	font-size: var(--font-size-large);
	justify-self: center;
}

.list-row__cell img {
	object-fit: contain;
	margin-right: 8px;
	max-width: 18px;
	max-height: 18px;
	width: auto;
	height: auto;
}

.list-header__container {
	align-items: center;
	display: grid;
	grid-template-columns: 110px 30px auto 30px;
	grid-template-rows: 34px;
	padding-left: 8px;
}

.list-header_cell {
	opacity: 0.5;
}

.list-row__container {
	align-items: center;
	cursor: pointer;
	display: grid;
	grid-template-columns: 110px 30px auto 30px;
	grid-template-rows: 34px;
	padding-left: 8px;
}

.list-header_cell:nth-child(2),
.list-row__cell:nth-child(2) {
	display: flex;
}

.list-row__container.notification-item {
	border-radius: 17px;
}

.list-row__container.notification-item:hover {
	background-color: var(--core-primary);
}

.list-row__container.notification-item.new {
	border-radius: 17px;
	box-shadow: 0 0 9px 0 var(--notification-highlight-border-color);
}

.list-row__container.notification-item.is-read .list-row__cell {
	opacity: 0.5;
}

.list-row__container.notification-item.is-read .list-row__cell:last-child {
	opacity: 1;
}

.list-row__cell:nth-last-child(2) {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.list-row__container .list-row__cell:last-child span {
	visibility: hidden;
}

.list-row__container:hover .list-row__cell:last-child span {
	visibility: visible;
}

.notification-card .context-menu__container,
.notification-card.read .context-menu__container {
	color: var(--font-color);
}

.no-notifications {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.icon-holder svg {
	width: 20px;
	height: 20px;
}

.finsemble-icon {
	display: grid;
	margin: 0 7px;
}

.finsemble-icon i {
	color: var(--font-color);
}

.finsemble-icon g {
	fill: var(--font-color); /* custom icons (evelope, snooze, etc) color */
}

.notifications-details__container {
	padding-top: 9px;
}

.notification-details__header {
	display: flex;
	flex-direction: row;
	margin: 20px 0 10px;
}

.notification-details__header i,
.notification-details__header img {
	margin: 0 10px;
	font-size: var(--font-size-xl);
	max-width: 34px;
	max-height: 34px;
	width: auto;
	height: auto;
}

.notification-details__header .notification-card__title {
	font-size: var(--font-size-xl);
	overflow: visible;
	text-overflow: unset;
	white-space: unset;
}

.notification-details__section-title {
	font-size: var(--font-size-larger);
	color: var(--accent-primary);
	margin: 15px 0 8px;
}

.notification-details__body {
	margin-bottom: 15px;
}

.notification-details__performed-action {
	margin: 5px 0;
}

.notification-details__performed-action-timestamp {
	opacity: 0.5;
	margin-right: 20px;
}

.notification-details__section-type-label {
	background-color: var(--core-primary-2);
	border-radius: 12px;
	padding: 4px 12px;
}

.center-menu {
	position: relative;
}

.center-menu-container {
	position: absolute;
}

/* Buttons & Icons - This are probably better placed in the core CSS? */

.notifications-center-controls__filter-btn i {
	padding-right: 5px;
}

.notifications-center-controls__filter-btn i.icon_active {
	color: var(--accent-positive);
}

.visible {
	display: flex;
}

.invisible {
	display: none;
}

.enabled {
	cursor: pointer;
	opacity: 1;
}

.disabled {
	cursor: default;
	opacity: 0.4;
}

#notifications-center-controls .button-container-primary .button-icon-before.finsemble-icon-check {
	color: var(--accent-positive);
}

#notifications-center-controls .button-container-primary .finsemble-icon-close svg g {
	fill: var(--accent-negative);
}
