
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

ul {
	margin: 0;
	padding-left: 0px;
}

li {
	list-style-type: none;
}
h3 {
	margin: 0px;
}
.scrollbar::-webkit-scrollbar-track-piece {
	background-color: #fff;
} /* 滚动条的内层滑轨背景颜色 */

.scrollbar::-webkit-scrollbar-track {
	background-color: #fff;
} /* 滚动条的外层滑轨背景颜色 */

.scrollbar::-webkit-scrollbar-thumb {
	background-color: #d4d8e2;
} /* 滚动条的内层滑块颜色 */

.scrollbar::-webkit-scrollbar-button {
	background-color: #fff;
	display: none;
} /* 滑轨两头的监听按钮颜色 */
/* content */
.bvlayout_content {
	width: 100%;
	overflow:visible;
}
.IM_chatlist {
	/* width: 350px; */
	/* height: 920px; */
	border-right: 1.5px solid rgba(1,1,1,0.1);
	float: left;
}
#row-func {
	height: 50px;
	background: rgba(25,13,58);
}

.main-func {
	width: 50%;
	height: 100%;
	float: left;
	line-height: 50px;
}

.minor-func {
	width: 50%;
	height: 100%;
	float: right;
	line-height: 50px;
	text-align: right;
}

.name {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background-color:rgba(238, 238, 238, 0.8);
    text-align: center;
    padding-top: 35vh;
}

.IM_chatlist ul{
	margin: 0;
    padding-left: 0px;
    height:100%;
}

.IM_chatlist li{
	float: left;
	height:100%;
}
.IM_chatlist a{
	padding: 0 12px;
    text-decoration: none;
    font-size: 20px;
}
.IM_chatreview {
	height: 500px;
  padding-right:17px;
	overflow-y: hidden;
}
.IM_chatreview:hover {
  height: 500px;
  padding-right:0px;
	overflow-y: scroll;
}
.IM_colleagueview {
	height: 500px;
  padding-right:17px;
	overflow-y: hidden;
}
.IM_colleagueview:hover {
  height: 500px;
  padding-right:0px;
	overflow-y: scroll;
}
.chatbar {
	padding-bottom: 10px;
}
.chatbar:hover {
	background: rgba(224,224,224,0.5);
	cursor: pointer;
}
.colleaguebar {
	padding-bottom: 10px;
}
.colleaguebar:hover {
	background: rgba(224,224,224,0.5);
	cursor: pointer;
}

.picture {
	/* width: 20%; */
  float: left;
  padding: 10px 0px 0px 10px;	
}
.picture img {
	width: 50px;
  height: 50px;
  border-radius: 25px;
  vertical-align: middle;
}

img.memberHead {
	width:50px; 
	height:50px; 
}
.selfpicture {
	/* width: 20%; */
  padding: 10px 0px 0px 10px;	
}

.selfpicture img {
	width: 50px;
  height: 50px;
  border-radius: 25px;
  vertical-align: middle;
}

.reviewmessage {
	/* width: 50%; */
	height: 50px;
	float: left;
	padding: 10px 0px 0px 10px;
}
.reviewmessage h3 {
	font-size: 16.67px
	font-weight:bold;
	margin: 0;
}

.reviewmessage p {
	font-size: 10px
}

.colleague {
	/* width: 40%; */
	height: 50px;
	float: left;
	padding: 10px 0px 0px 10px;
}
.colleague h3 {
	font-size: 16.67px
	font-weight:bold;
	margin: 0;
}

.colleague p {
	font-size: 16.67px
}
.msgstatus {
	float: left;
	padding: 10px 10px 0px 0px;
	float: right;
}
.msgstatus p {
	text-align: center;
}

.icon {
	color :white;
	border-radius: 15px;
	background: green;
}

.activeTab {
  color :white;
}
#IM_PnlGroupList {
  height: 600px;
}
.nonRead {
	color :white;
	border-radius: 15px;
	background: red;  
}

.IM_chatroom {
	height: 700px;
	/* width: 1009px; */
	/* float: left; */
}
.memberinfo {
	height: 50px;
	background: rgba(224,224,224,0.5);
}

.blockAreaWithThin {
  border-color: lightgray;
  border-style: solid;
  border-width: thin;    
}

canvas.blockAreaWithThin {
  width:50px;
  height:50px;
}

.blockAreaHeadWithGray {
  background-color: lightgray;
  border-color: gray;
  margin-left: 15px;
  margin-right: 15px;  
}

.username {
	padding-left: 10px;
	float: left;
	line-height: 50px;
}
.username h3 {
	font-size: 16.67px
	font-weight:bold;
	margin: 0;
  cursor:pointer;
}
.icon-dot-3 {
	float: right;
	line-height: 50px;
}
.dot:hover {
	cursor: pointer;
}
.chatroomcontent {
	height: 400px;
  padding-right:17px;
	overflow-y: hidden;
}
.chatroomcontent:hover {
	height: 400px;
  padding-right:0px;
	overflow-y: scroll;
}
.system_text_timediff {
	text-align: center;
}
.system_text_timediff span {
	background-color: #eee;
    border-radius: 9px;
    padding: 1px 5px;
    margin-bottom: 7px;
    display: inline-block;
}
.system_text_msg {
	text-align: center;
}
.system_text_msg span {
	background-color: #eee;
    border-radius: 9px;
    padding: 1px 5px;
    margin-bottom: 7px;
    display: inline-block;
}
.self_msg {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 1rem;
	width: 100%;
}
.self_msg img {
	width: 50px;
    height: 50px;
    border-radius: 25px;
    vertical-align: middle;
}

.self_msg p > img.sendImg {
    max-width: 300px;
    max-height: 188px;
    width: auto;
    height: auto;
    border-radius: 5px;
}
.self_only_msg {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	max-width: 70%;
	position: relative;
}
.self_msg_content {
	font-size: 15px;
	line-height: 1.5;
	background-color: #c2f5a8;
	border-radius: 18px;
	padding: 0.75rem 1rem;
	margin-bottom: 0.25rem;
	word-wrap: break-word;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.self_msg_time {
	font-size: 0.75rem;
	color: #999;
	padding: 0 0.5rem;
}
.self_msg .msg {
	color: #333;
	font-size: 0.95rem;
	line-height: 1.5;
}
.self_msg .time {
	color: #999;
	font-size: 0.75rem;
}

.self_msg .msg_pic {
    height: auto;
    width: auto;
    max-width: 500px;
    max-height: 500px;
    vertical-align: middle;
}
.pic_time {
	float: right;
	position: relative;
	height: 281.250px;
}

.others_msg {
	display: flex;
	justify-content: flex-start;
	margin-bottom: 1rem;
	width: 100%;
}
.others_msg img {
	width: 50px;
    height: 50px;
    border-radius: 25px;
    vertical-align: middle;
}

.others_msg p > img.sendImg {
    max-width: 300px;
    max-height: 188px;
    width: auto;
    height: auto;
    border-radius: 5px;
}

.others_only_msg h3 {
	font-size: 0.85rem;
	margin: 0 0 0.25rem 0;
	color: #666;
	font-weight: 600;
}

.others_only_msg {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 70%;
	position: relative;
}
.others_msg .msg {
	color: #333;
	font-size: 0.95rem;
	line-height: 1.5;
}
.others_msg_content {
	font-size: 15px;
	line-height: 1.5;
	background-color: #fff;
	border-radius: 18px;
	padding: 0.75rem 1rem;
	margin-bottom: 0.25rem;
	word-wrap: break-word;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.others_msg_time {
	font-size: 0.75rem;
	color: #999;
	padding: 0 0.5rem;
}
.others_msg .time {
	color: #999;
	font-size: 0.75rem;
}

.tool_bar {
	height: 50px;
	background: rgba(224,224,224,0.5);
	line-height: 50px;
  text-align:center;
}
.tool_bar li {
	float: left;
	padding:0px 10px 0px 10px;
}
.tool_bar li:hover {
	cursor: pointer;
}
.tool_bar li i{
	font-size: 20px;
}
.text_input_area {
	height: 180px;
  padding-right:17px;
	overflow-y: hidden;
}

.text_input_area {
	height: 180px;
  padding-right:0px;
	overflow-y: scroll;
}

.text_input_area textarea {
	width: 100%;
	height: 170px;
	box-sizing: border-box;
	border: none;
	background-color:white;
	resize : none;
}
#file-pic {
	display: none;
}
#file-att {
	display: none;
}
.tool_bar label {
	display: inline-block;
	width: 28px;
	height: 51.2px;
}
.tool_bar li:hover {
	cursor: pointer;
	background: background: rgba(224,224,224,0.8);
}
.tool_bar label:hover {
	cursor: pointer;
}
.chatroomcontent .menu {
	position: absolute;
}
.IMContextMenu > ul > li:hover {
	cursor: pointer;
	background-color: rgb(224,224,224);
  border-style:solid;
  border-color:lightgray;
  border-width:thin;    
}
.IMContextMenu {
  z-index: 121;
  min-width: 150px;
  top: 55px;
  left: 1015px;
  transform: translateX(-100%);  
  position: absolute;
}

.IMContextMenu_hide {
  z-index: 121;
  min-width: 150px;
  top: -1000px;
  left: -1000px; 
  position: absolute;
}

.IMContextMenu > ul > li {
  background-color:white;
  border-style:solid;
  border-color:lightgray;
  border-width:thin;  
}

.IMEditGroupMemberList {
  height:500px!Important;
  padding-right:17px!Important;
  overflow-y:hidden!Important;   
}

.IMEditGroupMemberList:hover {
  height:500px!Important;
  padding-right:0px!Important;
  overflow-y:scroll!Important;   
}

.fa-remove{
  cursor: pointer;
}

.titleMain {
	background-color: lightblue;
}

/* ── Markdown 渲染樣式 ── */

/* 移除 marked 產生的 <p> 預設上下邊距，避免氣泡內部空白過多 */
.msg p {
    margin: 0 0 0.4rem 0;
}
.msg p:last-child {
    margin-bottom: 0;
}

/* 列表 */
.msg ul, .msg ol {
    margin: 0.25rem 0 0.4rem 0;
    padding-left: 1.4rem;
}
.msg li {
    list-style-type: disc;
    margin-bottom: 0.15rem;
}
.msg ol li {
    list-style-type: decimal;
}

/* 水平分隔線（*** --- ___） */
.msg hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 0.6rem 0;
}

/* 表格容器：允許橫向捲動，避免撐破氣泡 */
.others_msg_content {
    overflow-x: auto;
}

/* Markdown table 樣式 */
.msg table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5rem 0;
    font-size: 0.875rem;
    line-height: 1.4;
}
.msg table th,
.msg table td {
    border: 1px solid #d0d0d0;
    padding: 0.35rem 0.65rem;
    text-align: left;
    white-space: nowrap;
}
.msg table th {
    background-color: #efefef;
    font-weight: 600;
}
.msg table tr:nth-child(even) td {
    background-color: #f7f7f7;
}

/* 有 table 時允許氣泡加寬至 90% */
.others_only_msg:has(table) {
    max-width: 90%;
}
