body {
    overflow-x: hidden;
}

.hidden {
	display:none;
}

.select2-container .select2-dropdown {
    z-index: 1060 !important; /* 모달보다 한 단계 높게 설정 */
}

audio {
    display: none !important; /* 강제로 숨김 */
}

#project .item.plus {
    height: 170px;
}

#project .item {
    border: 1px solid #ccc;
    border-radius: 10px;
    height: 170px;
    padding: 15px;
    cursor: pointer;
    position: relative;
    background-size: cover;
    background-position: center center;
}

#project .item .cmd-section {
    position: absolute;
    width: 30px;
    right: 10px;
    top: 15px;
    z-index: 10;
}

#project .item .cmd-section .btn {
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 3px;
    background-color: #888;
    margin-bottom: 10px;
    margin-top: 0px;
    color: #fff;
}

#project .item .cmd-section .btn i {
    margin: 0px;
    font-size: 13px;
}


/* contenteditable 상태일 때 적용될 스타일 */
#speech_title  {
    border: 2px solid #CCCCCC; /* 파란색 테두리 */
    background-color: #EEEEEE; /* 밝은 파란색 배경 */
    padding: 5px;
    border-radius: 5px;
	overflow:hidden;
}

#speech_title:focus {
    border: 2px solid #007bff; /* 파란색 테두리 */
    background-color: #f0f8ff; /* 밝은 파란색 배경 */
    padding: 5px;
    border-radius: 5px;
}

#voice_list .item {
	padding: 5px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

#voice_list .item .delete-wrapper {
	position:absolute;
	right:27px;
	top:7px;
	font-size:16px;
	cursor:pointer;
}

#voice_list .item .like_wrapper {
	position:absolute;
	right:7px;
	top:7px;
	font-size:16px;
	cursor:pointer;
}

#voice_list .item:hover {
	border:1px solid #0d6efd;
}

#voice_list .name-text {
    width: 120px; /* 폭 제한 */
    overflow: hidden; /* 넘치는 텍스트 숨김 */
    text-overflow: ellipsis; /* 말줄임표 적용 */
    white-space: nowrap; /* 한 줄로 유지 */
    font-size: 14px; /* 필요에 따라 조정 */
    font-weight: 400; /* 필요에 따라 조정 */
}

#voice_list .name-tags {
    font-size: 12px;         /* fs-12 */
    color: #aaa;             /* 텍스트 색상 */
    font-weight: 300;        /* font-weight: 300 */
    white-space: nowrap;     /* 텍스트가 한 줄로 표시되도록 */
    overflow: hidden;        /* 내용이 넘칠 경우 숨기기 */
    text-overflow: ellipsis; /* 넘칠 경우 "..."로 표시 */
	max-width:140px;
}

/********************************
 * 채팅창
 ********************************/

#speech {
	display: flex;
    position: absolute;
    height: 100%;
	width:100%;
}

.voice_wrapper {
    width: 270px;
    flex-shrink: 0; /* 고정 너비 */
    height: 100%; /* 상위 요소 높이 상속 */
    background-color: #f8f9fa;
    border-right: 1px solid #ddd;
    overflow-y: auto;
	padding:10px;
	overflow-x:hidden;
    border-right: 2px solid #c9c9c9;
}

.collapse-left {
	width:30px;
	cursor:pointer;
	display:none;
}

@media (max-width: 768px) { /* 모바일 화면 기준 */
    .voice_wrapper {
        margin-left:-270px;
    }
	
	.voice_wrapper.active {
		margin-left: 0; /* 보여지는 상태 */
	}

	.collapse-left {
		display:block;
	}
}

.message_wrapper {
    flex-grow: 1; /* 남은 공간을 차지 */
    height: 100%; /* 상위 요소 높이 상속 */
	overflow: hidden; /* 내부 콘텐츠 넘침 방지 */
	position:relative;
    display: flex; /* 플렉스 컨테이너 설정 */
    flex-direction: column; /* 세로 방향으로 배치 */
    background-color: #FFFFFF; /* 임의 배경색 */
    margin-left: 0; /* 기본 상태 */
}

.message_wrapper.shifted {
    margin-right: -250px; /* voice_wrapper가 보일 때 */
}

#message_list {
    flex-grow: 1; /* 남은 공간을 채움 */
    overflow-y: auto; /* 스크롤 가능 */
	padding:5px;
}

#speech_header {
    height: 50px; /* 고정 높이 */
    padding: 10px;
    display: flex; /* Flexbox 적용 */
    align-items: center; /* 수직 중앙 정렬 */
    justify-content: space-between; /* 좌우 양끝 배치 */
	flex-shrink: 0; /* 고정 높이 */
}

#speech_footer {
	position: relative;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 14px;
}

#speech_footer .playerPanel {
	height: 60px;
	padding:10px;
}


#speech_footer #btn-player-play {
    height: 42px;
    background-color: #f70;
	border:1px solid  #f70;
    color: #fff;
    display: block;
    border-radius: 10px;
    text-align: center;
    padding: 10px 20px;
	display:inline-block;
}

#speech_footer #btn-player-play:hover {
    background-color: #ff8f2d;
}


#speech_footer #btn-player-download {
    height: 42px;
    background-color: #fff;
    color: #555;
	border:1px solid #555;
    display: block;
    border-radius: 10px;
    text-align: center;
    padding: 10px 20px;
	display:inline-block;
	margin-left:10px;
}

#speech_footer #btn-player-download:hover {
    background-color: #555;
	color:#fff;
}

#speech i {margin:0px;}
#speech .btn-link:hover {
	background-color:#f4f4f4;
}

.playWrapper {
	width:38px;
	height:38px;
	border:1px solid #ccc;
	border-radius:50%;
	margin-right:10px;

    display: flex;
    justify-content: center;
    align-items: center;
}

#message_list .message-item {
	color:#000;
	position:relative;
	padding: 10px;
	border-radius: 5px;
	border:1px solid transparent;
}

#message_list .message-item.active {
    background-color:#e0edff;
	border:1px solid #0d6efd;
}

#message_list .message-item .message-user {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    justify-content: space-between; /* 자식 요소를 양 끝으로 배치 */
    margin-bottom: 10px;
}

#message_list .message-item .message-title {
	font-size:16px;
	font-weight:800;
	color:#888;
}

#message_list .message-item .message-title .handler{
	width: 23px;
    height: 23px;
    border-radius: 3px;
    display: inline-block;
    cursor: pointer;
    padding: 2px;
    color: #fff;
    text-align: center;
    background-color: #ddd;
    font-size: 14px;
}

#message_list .message-item .message-title .handler:hover{
    background-color: #aaa;
}

#message_list .message-item .message-wrap-contaner {
	position: relative;
    padding-right: 70px;
    display: inline-block;
}

#message_list .message-item .message-wrap {
    background-color: #f7f7f5ff;
    border-bottom: 1px solid #ccc;
    position: relative;
    font-size: 15px;
    line-height: 18px;
    z-index: 2;
    padding: 10px;
    display: inline-block;
	min-width:200px;
	margin-bottom:5px;
    color: #333;
	border-radius:5px;
}

#message_list .message-item .message-wrap-contaner .breaktime-wrap {
	position: absolute;
    top: 0px;
    right: 0px;
    max-width: 63px;
	border:1px solid #ccc;
	border-radius:5px;
	overflow:hidden;
}

#message_list .message-item .message-wrap-contaner .breaktime-wrap .breaktime-title {
	font-size: 12px;
    background-color: #eee;
    text-align: center;
    line-height: 16px;
}

#message_list .message-item .message-wrap-contaner .breaktime-wrap select {
    padding: 1px;
    font-size: 13px;
	border:0px;
}

.message-wrap[data-placeholder]:before {
    content: attr(data-placeholder);
    color: #999;
    font-style: italic;
    pointer-events: none; /* 텍스트 클릭 불가 */
    display: block;
}

#message_list .message-item .message-wrap:focus {
    background-color: #f0f8ff; /* 포커스 시 배경색 */
    outline: 2px solid #007bff; /* 강조 효과 */
}

#message_list .message-cmd {
	font-size:13px;
	color:#666;
}

@media (max-width: 768px) {
	#message_list .message-item .message-title {
		width:100%;
	}
	#message_list .message-cmd {
		width:100%;
	}
}

#message_list .message-cmd i{
	margin-right:3px;
}

#message_list .message-cmd a{
	font-size:16px;
	padding:3px 5px;
	border:1px solid transparent;
	border-radius:5px;
	color:#aaa;
}

#message_list .message-cmd a:hover{
	background-color:#efefef;
	color:#444;
}

#message_list .message-play {
	font-size:10px;
	background-color:#f70;
	border-radius:5px;
	color:#fff;
	padding:0px 4px;
	margin-bottom:4px;
	line-height:11px;
	margin-top:4px;
	margin-left:4px;
	color:#fff !important;
}

#message_list .message-play:hover {
	color:#333 !important;
}

#message_list .message-item .duration {
	font-size:13px;
	letter-spacing:-0.2px;
}