::-webkit-scrollbar {
	width: 5px;
	height: 5px
}
::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: 5px
}
#messagelist-content.scroller::-webkit-scrollbar, 
#folderlist-content.scroller::-webkit-scrollbar {
	width: 3px;
	height: 3px
}
#messagelist-content.scroller::-webkit-scrollbar-thumb, 
#folderlist-content.scroller::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: 3px
}
.thread-main-container .graybodyMsg{
    display: none;
 }
.thread-main-container.hidden_cloasped .graybodyMsg{
   display: block;
}

.thread-chat-summary {
    /* display: flex; */
    align-items: center;
    word-spacing: -0.25em;
}

.thread-chat-summary > span:first-child {
    flex-shrink: 0;
    word-spacing: normal;
}

.graybodyMsg {
    color: #707070;
    margin-top: 2px;
    /* margin-left: 5px; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    flex: 1;
    min-width: 0;
    word-spacing: normal;
}




/* new thread css start */

/* Thread */
.mail-thread {
	display: flex;
	flex-direction: column;
	gap: 10px;
    font-family: Roboto, sans-serif;
    position: relative;
}

.thread-msg {
	background: #ffffff;
	border: 1.5px solid #e5e3ec;
	border-radius: 14px;
	transition: box-shadow .15s;
    box-shadow: 0 0 4px 0px rgb(34 50 72 / 9%);
}

.thread-msg:hover {
	box-shadow: 0 2px 12px rgba(124, 58, 237, .08);
}

.thread-msg.thread-message-hidden-next, .thread-msg.thread-message-hidden-prev{
    display: none;
}

.thread-msg-header {
	padding: 10px;
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	border-bottom: 1px solid #e5e3ec;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.thread-msg.collapsed .thread-msg-header {
	border-bottom: none;
}

.thread-msg.collapsed .thread-msg-body {
	display: none;
}
.mail-thread .thread-msg-body .thread-msg-content .message-htmlpart,
.mail-thread .thread-msg-body .thread-msg-content .message-part{
    border-top: 0;
    margin-top: 0px;
}

.mail-thread .thread-msg .tm-avatar-container .avatar{
    width: 30px;
    height: 30px ;
    margin: auto auto;
    line-height: 30px;
}

.mail-thread .thread-msg .tm-avatar-container .avatar.warn{
    height: 18.48px;
    width: 31px;
    line-height: 18.48px;
    border-radius: 0;
}

.mail-thread .thread-msg .tm-avatar-container .avatar.warn:after,
.mail-thread .thread-msg .tm-avatar-container .avatar.warn:before  {
    content: "";
    position: absolute;
    width: 0;
    left: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
}

.mail-thread .thread-msg .tm-avatar-container .avatar.warn:before,
.mail-thread .thread-msg .tm-avatar-container .avatar.warn:after {
    bottom: 100%;
    border-bottom: 9.24px solid currentColor;
}

.mail-thread .thread-msg .tm-avatar-container .avatar.warn:after {
    bottom: -8px;
    transform: rotate(178deg);
}

.tm-meta {
	flex: 1;
    min-width: 0;
}

.tm-name {
	font-size: .9rem;
	font-weight: 700;
	color: #343434;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-name .tms-maildi{
    font-weight: 400;
    color: #7d7d85;
}

.tm-to {
	font-size: .77rem;
	color: #6b6882;
}

.tm-to .mail-desc-icon:hover{
    color: #0375eb;
}

.tm-to a{
    color: #6b6882;
}

.thread-msg.collapsed .tm-msghints{
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.thread-msg.collapsed .tm-msghints .tm-subj{
    font-weight: 600;
    color: #787878;
}
.tm-msghints{
    font-size: 0.8rem;
    color: #6b6882;
    display: none;
}

.tm-time {
	font-size: .77rem;
	color: #9896ae;
    white-space: nowrap;
}

.tm-actions {
	display: flex;
	gap: 4px;
}

.tm-actions button {
	background: none;
	border: none;
	color: #6b6882;
	font-size: 1rem;
	cursor: pointer;
	padding: 0px 3px;
	border-radius: 6px;
}

.tm-actions button:hover {
    background: #f1f8ff;
    color: #0375eb;
}

.thread-msg-body {
	padding: 10px;
    display: block;
	font-size: .9rem;
	line-height: 1.7;
	color: #343434;
}

.thread-msg-body .thread-msg-subject{
    font-size: 14px;
    font-weight: 600;
    color: #444444;
    margin-bottom: 5px;
}


.thread-msg .thread-msg-header button .bti-fowrd{
    display: inline-block;
    transform: scaleX(-1);
}
.mailbox-resizer {
    cursor: col-resize;
    background: #fbfbfb;
    transition: background .2s;
}

.mailbox-resizer:hover,
.mailbox-resizer.dragging {
    background: #a8d3ff;
}

.mailbox-listcntarea {
    min-width: 220px;
    overflow: auto;
}

.mailbox-container.defaultview .mi-tags{
    width: 100%;
}


.mail-context-menu{
    position: fixed;
    display: none;
    min-width: 180px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 9999;
}

.mail-context-menu .menu-item{
    padding: 10px 14px;
    cursor: pointer;
}

.mail-context-menu .menu-item:hover{
    background: #f5f5f5;
}

.thread-msg.collapsed .tm-to-wrapper{
    display: none;
}

.tm-to-wrapper{
    position:relative;
    display:inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mail-desc-icon{
    cursor:pointer;
    font-size:12px;
    margin-left:4px;
    transition:.2s;
}

.mail-desc-icon.active{
    transform:rotate(180deg);
}


.mail-meta-dropdown{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    padding:12px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:10px;
    box-shadow:0 4px 20px rgba(0,0,0,.12);
    z-index:999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.mail-meta-dropdown div{
    display:flex;
    gap:2px;
    padding:4px 0;
    font-size:13px;
    line-height:1.4;
    white-space: nowrap;
}


.mail-meta-dropdown strong{
    min-width:75px;
    color:#666;
}



/* .thread-msg-body .tm-atts {
	padding: 0 16px 14px
} */

.thread-msg-body .tm-att-lbl {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #9ca3af;
	margin-bottom: 7px
}

.thread-msg-body .tm-att-list {
	display: flex;
	gap: 8px;
	flex-wrap: wrap
}

.thread-msg-body .att-chip {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f5f7fa;
	border: 1px solid #e5e7eb;
	border-radius: 7px;
	padding: 3px 7px;
	cursor: pointer;
	transition: all .17s ease;
}

.thread-msg-body .att-chip:hover {
	border-color: #2563eb;
	background: #2563eb12;
}

.thread-msg-body .att-chip-name {
	font-size: 12px;
	font-weight: 500;
	color: #111827;
}

.thread-msg-body .att-chip-size {
	font-size: 11px;
	color: #9ca3af;
	font-family: 'DM Mono', monospace
}

.tm-avatar-container{
    position:relative;
    display:inline-block;
}

.threadcntno{
    cursor: pointer;
    color: #3a3a3a;
    background: #f0f5ff;
    width: auto;
    display: inline;
    margin: auto;
    margin-top: -21px;
    margin-bottom: -21px;
    text-align: center;
    padding: 0px 14px;
    line-height: 2.3;
    border-radius: 50px;
    border: 1px solid #d7d7d7;
    box-shadow: 0 0 4px 0px rgb(34 50 72 / 27%);
    z-index: 1;

}
.threadcntno:hover{
    background: #ffffff;
    color: #000;
}
#layout-content{
    min-width: 0;
}
/* new thread js end */

.task-mail .content.frame-content {
	background: #f9fdff;
}

.task-mail.action-preview #layout-content {
	height: unset !important;
}

.task-mail.action-preview{
  background: #f9fdff;  
}

@media screen and (max-width: 650px) {
    .thread-msg-header {
        display: block;
    }
}

.forward-wrapper {
    position: relative;
    z-index: 1;
}

.forward-wrapper.forward-active {
    z-index: 9999;
}

.fowardShowListBtns {
    display: none;
    position: absolute;
    bottom: 18px;
    right: -20px;
    padding: 0 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    z-index: 10000;
    user-select: none;
    width: 170px;
}

.fowardShowListBtns button {
    width: 100%;
    text-align: left;
    margin: 5px 0;
    font-size: 0.9rem;
}