/**
 * EGroupware: CSS with less preprocessor
 *
 * et2 Messages
 *
 * Please do NOT change css-files directly, instead change less-files and compile them!
 *
 * @link http://www.egroupware.org
 * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
 * @author Stefan Reinhardt <stefan.reinhardt@pixelegg.de>
 * @package pixelegg
 * @version $Id$
 */

@import (reference) "definitions.less";
//##############################################################################################################



#egwpopup {
	top: 46px;
	right:0px !important;
	left: auto !important;
	height: ~"calc(100% - 69px)";
	width: 277px !important;
	position: absolute;
	background: white;
	border:1px solid silver;
	border-top: none;
	border-bottom: none;
    padding: 1em;

    /*Button*/
    input#egwpopup_ok_button,
    button#desktop_perms {
        .Complete_Button_normal;
        .dimension_height_m;
        padding: 0 5px;
        &:hover {.Complete_Button_hover;}
        &:active {background-color: @color_positive_action_active !important;}
    }
	#egwpopup_list::-webkit-scrollbar-track	{
		-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
		background-color: #fafafa;
	}

	#egwpopup_list::-webkit-scrollbar {
		width: 4px;
		background-color: #fafafa;
	}

	#egwpopup_list::-webkit-scrollbar-thumb	{
		background-color: #6a6f71;
	}
	#egwpopup_list {
		overflow-y: auto;
		height: ~"calc(100% - 52px)";
		.egwpopup_time_label {
			width: 100%;
			color: #fafafa;
			text-align: center;
			font-style: italic;
			opacity: 0.5;
			font-size: 10pt;
			background: #255ea5;
			font-weight: bold;
		}

		span.egwpopup_delete {
			display: inline-block;
			float: right;
			width: 24px;
			height: 24px;
			background-image: url(../images/delete.svg);
			background-repeat: no-repeat;
			background-position: center;
			background-size: 12px;
			cursor: pointer;
		}
		.egwpopup_mark {
			display: inline-block;
			float: right;
			width: 10px;
			height: 10px;
			border: 1px solid #b9436c;
			border-radius: 50%;
			margin: 7px;
			background:#b9436c;
			cursor: pointer;
		}
		.egwpopup_message {
            height: auto;
            overflow: hidden;
			padding: 10px;
			background-color: #fafafa;
			margin-bottom: 5px;
			&:hover {
				background-color: rgba(103, 159, 210, 0.2);
			}
			.egwpopup_message_inner_container {
				height: 63px;
				overflow: hidden;
			}
			.egwpopup_message_top_toolbar {
				display: inline-block;
				width: 100%;
				.egwpopup_message_date {
					float: left;
					color: #767676;
				}
				.egwpopup_message_open {
					display: inline-block;
					float: right;
					width: 24px;
					height: 24px;
					background-image: url(../images/search.svg);
					background-repeat: no-repeat;
					background-position: center;
					background-size: 12px;
					cursor: pointer;
				}
				.egwpopup_collapse {display: none;}
			}
			.egwpopup_actions_container {
				text-align: center;
			}
			.egwpopup_actions_container>button {
				height: 24px;
				width: 80px;
				border: none;
				background: #e6e6e6;
				background-size: 16px;
				background-position: 12px center;
				background-repeat: no-repeat;
				padding-left: 26px;
			}
			.egwpopup_message_more_info {
				color:#767676;
				padding-top: 5px;
				padding-bottom: 5px;
			}
			span.egwpopup_nav_prev, span.egwpopup_nav_next {
				display: none;
			}
		}
		.egwpopup_message.egwpopup_expanded {
			position: fixed;
			top: 85px;
			height: ~"calc(100% - 130px)";
			left: 20vw;
			width: 60vw;
			box-shadow: 0 0 40px #666;
			overflow: auto;
			&:hover {
				background-color: #fafafa;
			}
			.egwpopup_message_inner_container {
				height: ~"calc(100% - 62px)";
				overflow: auto;
			}
			.egwpopup_collapse {
				float: right;
				width: 24px;
				height: 24px;
				background-image: url(../images/close.svg);
				background-repeat: no-repeat;
				background-position: center;
				background-size: 12px;
				cursor: pointer;display: inline-block
			}
			.egwpopup_message_more_info {display: none;}
			span.egwpopup_nav_prev {
				display: inline-block;
				float: right;
				width: 24px;
				height: 24px;
				background-image: url(../images/back.png);
				background-repeat: no-repeat;
				background-position: center;
				background-size: 16px;
				cursor: pointer;
			}
			.egwpopup_nav_disable {opacity:0.5; pointer-events: none;}
			span.egwpopup_nav_next {
				display: inline-block;
				float: right;
				width: 24px;
				height: 24px;
				background-image: url(../images/forward.png);
				background-repeat: no-repeat;
				background-position: center;
				background-size: 16px;
				cursor: pointer;
			}
		}
		.egwpopup_message_seen {
			.egwpopup_mark {cursor: auto;background:none;border-color: #666c6e;}
		}
		.egwpopup_message_clone {
			border:2px dashed silver;
			opacity: 0.3;
			height: 125px;
		}
	}
	div#egwpopup_header {
		font-size: 16px;
		color: silver;
		text-align: center;
		padding: 15px;
		.egwpopup_seenall {
			float: right;
			width: 10px;
			height: 10px;
			border: 1px solid silver;
			border-radius: 50%;
			cursor: pointer;
			margin: 4px 0px 0px 0px;
			&:hover {
				border-color: gray;
				background: rgba(103, 159, 210, 0.2);
			}
		}
		.egwpopup_deleteall {
			background-image: url(../images/delete.svg);
			width: 12px;
			height: 12px;
			background-position: center;
			background-size: 12px;
			float: right;
			background-repeat: no-repeat;
			margin-right: 15px;
			margin-top: 4px;
			cursor: pointer;
			display: inline-block;
			opacity: 0.5;
			&:hover {
				opacity: 1;
			}
		}
	}
}


/*popup Messsage*/
div#egwpopup_message {
	background-color: @gray_0;
	padding: 1em;
	overflow-y: auto;
}

#msg,.message {
	color: var(--error-color);
	font-style: italic;
	background: @gray_0;
}

// Container für Meldungen / Message Container
.egw_fw_ui_app_header_container {
        height: auto;

		// Statusmeldung
		// Meldung oberhalb iFrame
		.egw_fw_ui_app_header {
			padding: 1px 0 0 0;
			font-weight: normal;
			color: silver;
			overflow: hidden;
			height: 15px;
			visibility: hidden;
		}
}

.colselection.ui-widget-content {
	width: 45%;
	height:auto;
	.et2_selectbox {
		height: ~"calc(100% - 68px)";
		.ui-multiselect-checkboxes {
			height: ~"calc(100% - 68px)" !important;
		}
	}
}

 /*Calendar ##############*/
td.message {
	background-color: @gray_10 !important;
	height: 0px;
	padding: 0px;
	span.message {
			height: 35px;
			border-bottom: 2px solid @gray_10;
			color: red;
			background: @gray_10;
			height: auto;
			width: 100%;
	}
}


.button_right_toggle {
	height: 32px;
	width: 32px;
	cursor: pointer;
	position:relative;
	margin-top: 1px;
	margin-left: -20px;
	float:left;
	&:after {
		content: "";
		position: absolute;
		left: 13px;
		top: 5px;
		width: 10px;
		height: 2px;
		background-color: silver;
		backface-visibility: hidden;
		border-radius: 6px;
		transform: rotate(145deg) translate(8px, -1px);
		-ms-transform: rotate(145deg) translate(8px, -1px);
		-moz-transform: rotate(145deg) translate(8px, -1px);
		-webkit-transform: rotate(145deg) translate(8px, -1px);
	}
	&:before {
		content: "";
		position: absolute;
		left: 0px;
		top: 0px;
		width: 10px;
		height: 2px;
		background-color: silver;
		backface-visibility: hidden;
		border-radius: 6px;
		transform: rotate(45deg) translate(8px, -2px);
		-ms-transform: rotate(45deg) translate(8px, -2px);
		-moz-transform: rotate(45deg) translate(8px, -2px);
		-webkit-transform: rotate(45deg) translate(8px, -2px);
	}
	&:hover:before, &:hover:after {
		background-color: gray;
	}
}
