/**
Сообщения
*/
.msg_box {
	position: fixed;
	top: 64px;
	right: 28px;
	z-index: 100000;
	width: 400px;
	max-width: calc(100vw - 80px);
	display: grid;
	gap: 8px;
}

.msg {
	width: 100%;
	background-color: rgba(255, 255, 255, 0.9);
	border: 1px solid #999;
	padding: 7px;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.msg._overdue {
	background-color: rgba(255, 192, 203, 0.9);
}

.msg_alert {
	background-color: rgba(254, 224, 67, 0.9);
}

.notice_repeated {
	background-color: rgba(188, 188, 188, 0.9);
}

.msg_task {
	background-color: rgba(168, 153, 113, 0.9);
}

.msg_task_completebox {
	background-color: rgba(88, 188, 67, 0.9);
}

.msg_task_cancelbox {
	background-color: rgba(255, 192, 203, 0.9);
}

.dialog .editing-label {
	display: none;
	margin-left: 5px;
}

.dialog .editing-label-button {
	display: none;
	margin-left: 5px;
}

.dialog._editing .editing-label {
	display: inline-block;
}

.dialog._editing .editing-label-button,
.dialog._replying .editing-label-button {
	display: inline-block;
}

.dialog .dialog-due > .dialog-task-reply-label {
	display: none;
}

.dialog._replying .dialog-due > .dialog-task-reply-label {
	display: inline-block;
}

.dialog._replying .dialog-due > .datepicker,
.dialog._replying .dialog-due > .dialog-task-label {
	display: none;
}

.dialog .insert-link-button {
	vertical-align: bottom;
}

.dialog.dialog-full {
	position: relative;
	max-width: 1100px;
	min-width: 400px;
	width: 80vw;
	background-color: #f2f2f2;
	height: calc(100vh - 150px);
	min-height: 400px;
	opacity: 1;
	padding: 7px;
	margin: 5px;
	color: white;
	z-index: 0;
	top: 0;
	right: 0;
}

.dialog.dialog-full.dialog-top {
	z-index: 0;
}

.dialog.dialog-full .dialog_m,
.dialog.dialog-full .dialog_task {
	height: calc(100% - 125px);
	max-height: none;
}

.dialog.dialog-full .dialog_m._no-tabs{
	height: calc(100% - 100px);
}

.dialog.dialog-full.dialog_0 .dialog_m._no-tabs{
	height: 100%;
}

.dialog.dialog-full .tab {
	background: #cde;
}

.dialog.dialog-full .tab:hover {
	background: #def;
}

.dialog.dialog-full .tab.active:hover {
	background: #fff;
}

.dialog.dialog-full[data-userid='0'] .dialog_m.dialog_task {
	height: 100%;
}

.dialog.dialog-full .dialog_t {
	height: 100%;
	margin-top: 0;
	float: left;
}

.dialog.dialog-full .dialog_form {
	height: 90px;
	margin-top: 10px;
}

.dialog.dialog-full .send_btn {
	margin: auto;
	width: 32px;
	height: 32px;
}

.dialog.dialog-full .dialog_buttons > * {
	vertical-align: bottom;
}

.dialog.dialog-full .duedate_div {
	float: right;
	margin-right: 1px;
	margin-top: 10px;
}

.dialog {
	position: fixed;
	width: 330px;
	background-color: #000000;
	box-shadow: 0 0 5px #333333;
	padding: 2px;
	margin: 5px;
	color: white;
	z-index: 9998;
	top: 28px;
	right: 400px;
}

.dialog-box {
	display: flex;
	flex-direction: column;
}

.dialog.dialog-top {
	z-index: 9999;
}

.dialog-msg {
	display: flex;
}

.dialog-msg-inner-wrapper {
	max-width: 85%;
	min-width: 90px;
	margin: 2px 4px;
	word-wrap: break-word;
	border-radius: 5px;
	padding: 5px;
	position: relative;
}

.dialog-msg-inner {
	display: flex;
	flex-wrap: wrap;
}

.dialog-msg._his > .dialog-msg-inner-wrapper::before {
	content: "";
	position: absolute;
	left: -20px;
	background: url('../img/user.png');
	width: 16px;
	height: 16px;
	opacity: 0.3;
	top: 0;
}

.dialog-msg._my > .dialog-msg-inner-wrapper {
	margin-left: auto;
	border: 1px solid #dae9ef;
	background-color: #DBEAF9;
}

.dialog-msg-inner-wrapper .dialog-msg._my > .dialog-msg-inner-wrapper {
	border: 1px solid #bac9cf;
	background-color: #bBcAd9;
}

.dialog-msg._editing > .dialog-msg-inner-wrapper,
.dialog-msg._replying > .dialog-msg-inner-wrapper {
	background-color: #F2D0B5;
}

.dialog-msg._his > .dialog-msg-inner-wrapper {
	margin-right: auto;
	margin-left: 22px;
	border: 1px solid #daf9ef;
	background-color: #eaffff;
}

.dialog-msg-inner-wrapper .dialog-msg._his > .dialog-msg-inner-wrapper {
	margin-right: auto;
	margin-left: 22px;
	border: 1px solid #bad9cf;
	background-color: #cadfdf;
}

.msg-time {
	font-size: 10px;
	line-height: 10px;
	margin-left: auto;
	margin-top: auto;
}

.msg-buttons:empty {
	display: none;
}

.msg-buttons {
	position: absolute;
	top: 0;
	right: 0;
	max-width: 20px;
	max-height: 18px;
	transition: all ease 0.3s 0.2s;
	overflow: hidden;
	display: flex;
	flex-direction: row;
	z-index: 1;
	background: transparent;
	border: 1px solid transparent;
	box-shadow: rgba(0, 0, 0, 0) 0 0;
}

.msg-buttons > .button {
	margin-left: 4px;
}

.msg-buttons > .button:first-child {
	margin-left: 20px;
	transition: margin-left ease 0.5s 0.2s;
}

.msg-buttons:hover > .button:first-child {
	margin-left: 0;
	transition: none;
}

.msg-buttons:before {
	content: '···';
	margin-top: -8px;
	display: block;
	font-weight: bold;
	font-size: 20px;
	transition: all step-start 0s 0.5s;
	height: 26px;
	width: 20px;
	z-index: 0;
}

.msg-buttons:hover {
	transition: all ease 0.3s;
	position: absolute;
	max-width: 100px;
	max-height: 100px;
	z-index: 100;
	background: #f2f2f2;
	border: 1px solid #cccccc;
	box-shadow: rgba(0, 0, 0, 0.5) 0 2px 5px;
}

.msg-buttons:hover:before {
	content: '';
	opacity: 0;
	width: 0;
	height: 0;
	margin-top: 0;
	transition: none;
}

.dialog_task > .dialog-msg > .dialog-msg-inner-wrapper > .dialog-msg-inner .msg-time {
	line-height: 12px;
	font-size: 12px;
}

.dialog_task > .dialog-msg > .dialog-msg-inner-wrapper > .dialog-msg-inner .msg-time:before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	background-size: 8px 8px;
	margin-right: 4px;
}

.dialog_task > .dialog-msg._open > .dialog-msg-inner-wrapper > .dialog-msg-inner .msg-time:before {
	background-image: url(../img/pause.png);
}

.dialog_task > .dialog-msg._in-progress > .dialog-msg-inner-wrapper > .dialog-msg-inner .msg-time:before {
	background-image: url(../img/play.png);
}

.dialog_task .msg-reply-to {
	display: none;
}

.msg-msg {
	margin-right: 3px;
	overflow: hidden;
}

.dialog-msg._sending {
	color: gray;
}

.dialog_h {
	width: 85%;
	cursor: -webkit-grab;
	cursor: grab;
	padding-left: 2px;
}

.ui-draggable-dragging .dialog_h {
	cursor: -webkit-grabbing;
	cursor: grabbing;
}

.dialog_c {
	width: 15%;
	float: right;
	text-align: right;
}

.dialog_c > a {
	margin-left: 4px;
}

.dialog-top-name {
	margin-left: 4px;
}

.dialog-top-btn {
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.3s ease 0s;
	width: 16px;
	height: 16px;
}

.dialog-top-btn:hover {
	opacity: 1;
}

.dialog-tabs {
	display: flex;
}

.dialog-tabs > .tab {
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 100px;
	flex-wrap: nowrap;
	text-align: center;
	border-bottom: 0;
	background: #bbb;
	border-radius: 10px 10px 0 0;
	transition: all 0.3s ease 0s;
}

.dialog-tabs > .tab.active {
	background: #fff;
}

.dialog-tabs > .tab:hover {
	background: #ddd;
}

.dialog-tabs > .tab.active:hover {
	background: #fff;
}

.dialog_m, .dialog_task {
	background-color: white;
	opacity: 1;
	overflow-y: scroll;
	color: black;
	height: 320px;
	font-size: 10pt;
}

.dialog._task-tab .dialog_m,
.dialog:not(._task-tab) .dialog_task {
	height: 0;
}

.dialog_m div.show_before {
	width: 100%;
	text-align: center;
	background-color: #F2F3F4;
	cursor: pointer;
	padding-top: 5px;
	padding-bottom: 5px;
	transition: all 0.2s ease-in-out;
}

.dialog_m div.show_before:hover {
	background-color: #E8EFF7;
}

.focus {
	margin: 0 !important;
}

.dialog_form {
	position: relative;
}

.dialog_t {
	font-family: arial, serif;
	background-color: white;
	color: black;
	display: block;
	height: 80px;
	margin-top: 2px;
	width: 100%;
	box-sizing: border-box;
	resize: none;
	font-size: 10pt;
	padding-right: 35px;
	transition: all 0.3s ease 0s;
	overflow: hidden;
}

.task-sending .dialog_t {
	padding-top: 20px;
}

.send_btn {
	border: 0;
	box-shadow: none !important;
	width: 32px;
	height: 32px;
}

.dialog_buttons {
	position: absolute;
	right: 2px;
	top: 2px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	height: 60px;
}

.taskswitch {
	margin-left: 4px;
	cursor: pointer;
}

.duedate_div {
	margin-right: 43px;
}

.dialog-due {
	position: absolute;
	top: 0;
	color: #000;
	height: 0;
	transition: height 0.3s ease 0s;
	overflow: hidden;
}

.task-sending .dialog-due {
	height: 22px;
}

.unread,
.task_unread_sender {
	background-color: #f0f0fa;
}

.task_complete_sender {
	background-color: lightblue;
}

.task_full_done.task_full_done > .dialog-msg-inner-wrapper {
	background-color: #D9F7DD;
}

.task_read_worker_waits {
	background-color: yellow;
}

.task_read_worker_late {
	background-color: lightcoral;
}

.task_today {
	background-color: orange;
}

.task_attach {
	cursor: pointer;
	color: gray;
}

.dialog .only_instant_link {
	pointer-events: none;
	background: none;
	color: black;
}

/*user list*/
.user-list-wrapper {
	z-index: 9998;
	position: fixed;
	top: 60px;
	right: 3px;
	background-color: #f2f2f2 /*F1F5FB*/;
	padding: 0;
	margin: 0;
	border: #999999 solid 1px;
	width: auto;
	max-height: 300px;
	box-shadow: 0 0 4px #333;
}

.user-list-wrapper > .user-list {
	border-top: 1px solid black;
	height: 100%;
	overflow-y: scroll;
	padding-top: 3px;
	max-height: 274px;
}

.user-list-wrapper > .user-list-filter {
	background: url(../img/filter-gray.png) no-repeat scroll white 8px 3px;
	padding: 2px 2px 2px 30px;
	width: calc(100% - 34px);
}

.user-list-wrapper hr {
	margin: 0;
}

.user-list-wrapper .l_menu {
	background-color: #f2f2f2 /*F1F5FB*/;
	display: block;
	padding: 2px 2px 2px 6px;
	border: 1px #f2f2f2 /*F1F5FB*/ solid;
	cursor: pointer;
	color: #369;
}

.user-list-wrapper .l-menu-icon {
	margin-right: 4px;
}

.user-list-wrapper .l_menu:hover,
.user-list-wrapper .l_menu:focus {
	border: 1px #AECCF1 solid;
	background: #F2F6FD linear-gradient(to bottom, #F9FAFD, #f2f2f2 /*F1F5FB*/);
}

.user-list-wrapper .l_menu:active {
	border: 1px #AECCF1 solid;
	background: #f2f2f2 linear-gradient(to bottom, #f2f2f2 /*F1F5FB*/, #F9FAFD);
	padding-top: 3px;
	padding-bottom: 1px;
	margin-bottom: 0;
}

/*/user list*/
