@charset "UTF-8";

:root{
	--clr-bg: #f9fcff;
}
body {
  	position: relative;
  	margin: 0;
  	padding-bottom: 1rem;
  	height: 100vh;
  	background-color:#fff;
	hyphens: auto;
	max-height: 100vh;
	overflow-y: hidden;
}
#viewer body{
	background-color: var(--clr-bg);
}
#viewer #head h1{
	margin-top: .5rem;
}

h1 {
	font-size:24px;
}
h2 {
	font-size:18px;
}

#head{

}

#left {
	overflow-y: auto;
	overflow-x: hidden;
	min-width: 168px;
	padding-right: 0;
}
#left .newContact svg{
	margin-right: 20px;
	font-weight: bold;
}
#left .contactlist{
	display: flex;
	flex-direction: column;
	gap: 15px;
}
#left .contact{
	display: flex;
	gap: 15px;
	align-items: center;
	border-top: 1px solid rgba(33, 37, 41, 0.3);
	padding-top: 15px;
}
#left a{
	color: currentColor;
	text-decoration: none;
	font-size: calc(12px + .1vw);
}
#left .image{
	border-radius: 100vmax;
	width: 50px;
	height: 50px;
}
#left .image:empty{
	background-image: url(../img/profilePlaceholder.png);
	background-size: 50px 50px;
	border-radius: 100vmax;
	width: 50px;
	height: 50px;
}
#left .sender, #left .contact{

}
#left .newContact{
	margin-left: 15px;
}
#right {
	padding-inline: 0;
}
#center {
	padding-inline: 0;
}
.messageListToggle{
	position: relative;
	display: none;
	float: left;
	width: 25px;
	height: 25px;
	cursor: pointer;
	margin-right: 20px;
	margin-top: 15px;
}
.messageListToggle span{
	position: absolute;
	width: 100%;
	height: 3px;
	background-color: black;
}
.messageListToggle span:nth-child(1){
	top: 0;
}
.messageListToggle span:nth-child(2){
	top: 6px;
}
.messageListToggle span:nth-child(3){
	top: 12px;
}
.messageListToggle[aria-expanded="true"] span:nth-child(1){
	transform: rotateZ(45deg);
	top: 15px;
	left: 10px;
	width: 70%;
}
.messageListToggle[aria-expanded="true"] span:nth-child(2){
	display: none;
}
.messageListToggle[aria-expanded="true"] span:nth-child(3){
	transform: rotateZ(-45deg);
	top: 15px;
	left: 10px;
	width: 70%;
}

.messages {
	position:relative;
	border:1px solid #e2e1de;
	padding:10px;
	height: calc(100vh - 190px);
	width:100%;
    overflow-x:hidden;
    overflow-y:visible;
}

#right .messages {
	background-color:#f3f0ea;
}

#center .messages {
	background-color:#efeae2;
}

.messagesshort {
	position:relative;
	border:1px solid #e2e1de;
	padding:10px;
	height: 60vh;
	width:100%;
    overflow-x:hidden;
    overflow-y:visible;
}


.messages-inside {
	height:auto;
	width: 98%;
	bottom:0;
}
.message {
	position:relative;
	display:inline-block;	
	padding:5px;
	width:100%;
}

.message.messageR {
	text-align:right;
}

.message.messageR .box {
	position: relative;
	display: inline-block;
	border-radius: 20px 0 20px 20px;
	padding:10px;
	background-color:#d9fdd3;
}
.message.messageR .box::after{
	content: '';
	position: absolute;
	clip-path: polygon(0 0, 100% 0, 50% 50%, 0% 100%);
	top: 0;
	right: -15px;
	width: 20px;
	height: 20px;
	display: inline-block;
	background-color:#d9fdd3;
}


.message.messageL {
	text-align:left;
}
.message.messageL .box {
	display: inline-block;
	border-radius: 0 20px 20px 20px;
	padding:10px;
	background-color:#fff;
}
.message.messageL .box::after{
	content: '';
	position: absolute;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 50%);
	top: 5px;
	left: -8px;
	width: 20px;
	height: 20px;
	display: inline-block;
	background-color:#fff;
}

.messagelist {
	padding: 0 1vh;
}

.message .date {
	color:#999;
	font-size:0.8rem;
	float: right;
	margin-top: 5px;
}

.message .textfailed {
	color:#ff0000;
}
.message .textdelivered {
	color:#333;
}

.message .textread {
	color:#000;
}

.statusicon svg {
	height:16px;
}
.statusicon {
	font-size:14px;
}

.statusicon.red {
	color:#c00;
}
.statusicon.grey {
	color:#999;
}
.statusicon.blue {
	color:#0dcaf0;
}

.previewimg {
	border-radius:10px;
	width: 100%;
	max-width: 200px;
	height: auto;
	max-height: 200px;
	object-fit: contain;
}

.image-view {
	max-height:80vh;
}

.template-inputs {
	display:none;
}
.hide{
	display: none;
}
.inputbar{
	padding: 10px;
	border-right: 1px solid rgba(33, 37, 41, 0.2);
	border-bottom: 1px solid rgba(33, 37, 41, 0.2);
	border-left: 1px solid rgba(33, 37, 41, 0.2);
	background-color: var(--clr-bg);
}
.inputbar .answer{
	display: flex;
	position: relative;
	justify-content: space-between;
	gap: 10px;
	align-items: center;
}
.inputbar input[type="file"]{
	background-color: transparent;
}
.inputbar .fileLabel .bi-paperclip{
	width: 35px;
	height: 35px;
	padding: 5px;
	transform: rotateZ(45deg);
	cursor: pointer;
}
.inputbar .labelSubmit .bi-send{
	width: 35px;
	height: 35px;
	padding: 5px;
	transform: rotateZ(45deg);
	cursor: pointer;
}
.img_preview_wrap{
	display: none;
}
[id*='imagePreview_']{
	text-align: right;
	width: 100%;
	height: 100px;
}
.img_preview_wrap{
	flex-direction: column;
	align-items: flex-end;
	position: absolute;
	bottom: 48px;
	left: -9px;
	flex-direction: row;
	backdrop-filter: blur(10px);
	width: 100%;
	background-color: rgba(0, 0, 0, 13%);
	max-height: 50px;
}
@media (hover: none){
	.img_preview_wrap{
		width: 103%;
	}
}
.img_preview_wrap img{
	width: 100%;
	max-width: 100px;
	height: auto;
	max-height: 50px;
	object-position: center center;
	object-fit: cover;
	padding: 5px;
}
[id*='imagePreviewName_']{
	font-size: 14px;
	color: white;
	text-shadow: 2px 2px 2px black;
	/*background-color: rgba(255, 255, 255, 0.2);*/
	padding-inline: 3px;
	padding-block: 5px;
	text-align: right;
}
#resetbtn{
	width: 40px;
	margin-bottom: auto;
	margin-top: 2px;
	margin-left: 5px;
	cursor: pointer;
}

/* ####################################################
                    T3 OTP
######################################################*/
.t3-login{
	width: 100% !important;
	height: 100vh;
	align-items: center;
	justify-content: center !important;
}
.t3-login form{
	flex-direction: column;
}
.t3-login h1{
	margin-bottom: 30px;
}
.t3-otp{
	display: flex;
	flex-direction: column;
	width: 310px;
	margin-inline: auto;
	background-color: var(--clr-bg);
	padding: 20px;
	border-radius: 20px;
	box-shadow: 0 0 30px -15px black;
}
.t3-otp-input-group {
	display: flex;
	flex-direction: row;
	align-items: center;
}
.t3-code-group{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}
.t3-otp-group{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}
.t3-otp input{
	padding: 5px 10px;
	font-size: 18px;
	border: none;
	margin-right: 8px;
	background-color: rgba(0, 0, 0, 0.1);
	border: 1px solid black;
	border-radius: 0.5rem;
	color: black;
	text-align: center;
	transition: all 150ms ease-in-out;
}
.t3-code{
	display: flex;
	align-items: center;
	width: 220px;
}
.t3-code:focus {
	color: teal;
	outline: 2px solid teal;
}
.t3-otp-input-group input{
	width: 30px;
}
.t3-otp-input-group input:focus {
	color: teal;
	outline: 2px solid teal;
}
.t3-otp-submit{
	margin: 30px 10px;
	padding: 5px 10px;
	border: 1px solid black;
	width: 80px;
	border-radius: 0.5rem;
}

/*#########################################################
                        RESPONSIVE
#########################################################*/
@media(max-width: 1180px){
	#head{
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		background-color: var(--clr-bg);
		padding-top: 10px;
	}
	#center{
		margin-top: 77px;
	}
	.messagelist {
		padding: 0 1vh;
	}
	.messageListToggle{
		display: block;
	}
	#left{
		z-index: 1;
		position: fixed;
		transform: translateX(-700px);
		background-color: white;
		transition: transform 250ms ease-in;
		width: 60% !important;
		top: 55px;
		height: 90vh;
		border-top: 1px solid rgba(33, 37, 41, 0.3);
		border-right: 2px solid rgba(33, 37, 41, 0.3);
	}
	#left[data-visible="true"]{
		transform: translateX(0px);
		width: 50%;
		top: 63px;
		padding: 20px;
	}
	.messageListToggle[aria-expanded="true"]{
		width: 30px;
		height: 25px;
		margin-right: 20px;
		margin-top: 5px;
	}
	.col-5 {
		width:100%;
	}
	#left {
		padding:2px;
	}
	#center {
		padding:0;
	}
	#right {
		display:none;
	}
}