/*MARK: Broker menu
*/

#secBroker {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

/*MARK: Notifications
  */

.notifications,
.tasks {
	align-content: center;
}

.notifications #notificationsmenutitle,
.tasks #tasksmenutitle {
	padding: 0 0 0 10px;
	font-size: 14px;
	font-weight: 500;
}

.notifications #notificationsmenuoptions {
	margin-top: 5px;
	padding: 0 10px 0 10px;
}

.notifications #checkallnotifications,
.tasks #checkalltasks {
	color: var(--btnprimaryback);
	border-radius: 8px;
	width: 100%;
	text-align: center;
	font-size: 12px;
	font-weight: 500;
	height: 20px;
	    pointer-events: none;
}

.notifications #checkallnotifications a,
.tasks #checkalltasks a {
	line-height: 17px;
}

.notifications #checkallnotifications:hover,
.tasks #checkalltasks:hover {
	background-color: var(--btnsecondarybackhover);
	color: var(--btnprimaryback);
	text-decoration: underline;
}

#notifications-img-container,
#tasks-img-container {
	position: relative;
	align-content: center;
	width: 30px;
	height: 30px;
}

#notifications-img-container #notificationsCounter,
#notifications-img-container #notificationsIcon,
#tasks-img-container #tasksCounter,
#tasks-img-container #tasksIcon {
	position: absolute;
}

#notificationsIcon,
#tasksIcon {
	width: 30px;
	height: 30px;
	z-index: 1;
	left: 0;
	top: 0;
}

#notificationsCounter,
#tasksCounter {
	display: none;
	width: 25px;
	height: 15px;
	background-color: var(--btnprimaryback);
	border: 1px solid var(--btnprimaryback);
	border-radius: 30%;
	z-index: 2;
	/* Ensure this is on top */
	color: white;
	right: -8px;
	top: -2px;
	font-size: x-small;
	text-align: center;
	line-height: normal;
}

#notificationsmenu,
#tasksmenu {
	min-width: 210px;
	max-height: 210px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #ccc white;
	padding: 0 5px;
	overflow-x: hidden;
}

#notificationsmenu::-webkit-scrollbar,
#tasksmenu::-webkit-scrollbar {
	width: 5px;
}

#notificationsmenu::-webkit-scrollbar-thumb,
#tasksmenu::-webkit-scrollbar-thumb {
	background-color: #999;
	border-radius: 4px;
}

#notificationsmenu::-webkit-scrollbar-track,
#tasksmenu::-webkit-scrollbar-track {
	background-color: white;
}

#notificationsmenu .noNotifications,
#tasksmenu .noTasks {
	display: none;
	padding: 0 10px;
	margin-top: 10px;
}

#notificationsmenu .noNotifications:hover,
#tasksmenu .noTasks:hover {
	background-color: white;
}

#notificationsmenu .noNotifications #noNotifsText,
#tasksmenu .noTasks #noTasksText {
	font-size: 12px;
	font-weight: 300;
	text-align: center;
}

#notificationsmenu .notification-options {
	height: 50px;
	align-content: center;
	padding-top: 10px;
}

#notificationsmenu .notification-options #notifications-checkall {
	float: left;
	padding-left: 10px;
}

#notificationsmenu .notification-options #notifications-checkall:hover {
	color: var(--btnprimarybackhover);
}

#notificationsmenu .notification-options #notifications-markall {
	float: right;
	padding-right: 10px;
	width: 120px;
	line-height: 18px;
}

#notificationsmenu .notification-options #notifications-markall:hover {
	color: var(--btnprimarybackhover);
}

#notificationsmenu .notification-container,
#tasksmenu .task-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-radius: 8px;
	padding: 5px 0;
}

#notificationsmenu .notification-container:hover,
#tasksmenu .task-container:hover {
	background-color: var(--btnprimaryselected);
}

#notificationsmenu .notification-container a:hover,
#tasksmenu .task-container a:hover {
	color: black;
}

#notificationsmenu .notification-item,
#tasksmenu .task-item {
	cursor: pointer;
	max-width: 210px;
	display: flex;
	align-items: center;
	gap: 2px;
}

#notificationsmenu .notification-item img,
#tasksmenu .task-item img {
	width: 40px;
	height: 40px;
}

#notificationsmenu .notification-item .notification-content,
#tasksmenu .task-item .task-content {
	max-width: 210px;
	height: 40px;
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

#notificationsmenu .notification-item .notification-content p,
#tasksmenu .task-item .task-content p {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	display: block;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	margin-bottom: 0;
}

#notificationsmenu .notification-item .notification-content .timeagotxt {
	font-size: 12px;
	font-weight: 300;
}

#notificationsmenu .notification-item .aConf {
	float: right;
}

#secNotifications>div:first-of-type {
	width: 100%;
}

#secNotifications .unread {
	background-color: var(--btnprimaryselected) !important;
}

#secNotifications .notificationsActionsDiv {
	display: flex;
	justify-content: flex-end;
	align-items: end;
}

#secNotifications .notificationsActionsDiv #markAllAsReadBtn {
	margin: 0;
	margin-left: 20px;
}

#secNotifications .notificationsActionsDiv #actionsBtn {
	margin-left: 20px;
	visibility: hidden;
}

#secNotifications .notificationsActionsDiv #selectedCount {
	margin-left: 20px;
	text-align: center;
	line-height: normal;
	visibility: hidden;
}

.row-select {
	appearance: none;
	/* Removes default checkbox */
	-webkit-appearance: none;
	/* Removes default checkbox in Safari */
	width: 20px;
	height: 20px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background-color: white;
	cursor: pointer;
	position: relative;
}

/* Style for the checked state */
.row-select:checked {
	background-color: var(--btnprimaryback);
	border: 1px solid white;
}

/* Custom checkmark */
.row-select:checked::after {
	content: "";
	position: absolute;
	top: 2.3px;
	left: 6px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/*MARK: Tasks
*/

/* progress bar */
progress[value] {
	--color: var(--btnprimaryback);
	/* the progress color */
	--background: rgba(234, 236, 240, 1);
	/* the background color */

	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border: none;
	width: 140px;
	height: 8px;
	margin: 0 12px 10px 0;
	border-radius: 4px;
	background: var(--background);
}

progress[value]::-webkit-progress-bar {
	/* webkit (chrome, etc) */
	border-radius: 10em;
	background: var(--background);
}

progress[value]::-webkit-progress-value {
	/* webkit */
	border-radius: 10em;
	background: var(--color);
}

progress[value]::-moz-progress-bar {
	/* firefox */
	border-radius: 10em;
	background: var(--color);
}


