@charset "utf-8";

html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: 100%;
    position: relative;
    max-width: 1024px;
    margin: 0 auto;
    padding: 60px 0 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}


.menu-section {
    position: relative;
    width: 270px;
    max-width: 270px;
    min-height: 100%;
    border-right: 1px solid #F0F2F5;
}

.menu-section h1 {
    padding: 30px 0 80px 30px;
}

.user-box {
    display: flex;
    padding: 22px 30px 23px 30px;
    align-items: center;
}

.user-box .name {
    position: relative;
    padding: 0 0 0 13px;
    width: 130px;
    height: 40px;
    box-sizing: border-box;
}

.user-box .name input {
    height: 40px;
    line-height: 40px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    border-bottom: 1px solid transparent;
}

.user-box .name input:focus {
    outline: none;
    border-bottom: 1px solid #666;
}

.user-box .name.active input {
    outline: none;
    border-bottom: 1px solid #666;
}

.user-box .btn-alter {
    display: block;
    width: 40px;
    height: 40px;
    background: url('/img/chat/icon_pen.png') no-repeat 50% 50%;
    box-sizing: border-box;
}

.menu ul li a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 56px;
    font-size: 16px;
    color: #9F9F9F;
    padding-left: 83px;
    box-sizing: border-box;
    font-weight: 500;
    transition: all .4s ease
}

.menu ul li.active a {
    color: #575757;
    background: #F0F2F5;
}

.menu ul li a:hover {
    background: #F0F2F5;
}

.resource-box {
    position: absolute;
    width: 100%;
    bottom: 102px;
    left: 0;
    box-sizing: border-box;
    padding: 0 30px;
}

.resource-box li {
    margin-top: 9px;
}

.resource-box li .btn {
    position: relative;
    display: block;
    width: 100%;
    height: 42px;
    border: 1px solid #9F9F9F;
    border-radius: 10px;
    color: #9F9F9F;
    font-size: 16px;
    font-weight: 500;
    padding-left: 17px;
    line-height: 40px;
    box-sizing: border-box;
}

.resource-box li .btn img {
    margin-right: 10px;
    vertical-align: middle;
    line-height: 40px;
}

.resource-box li .btn:after {
    content: '';
    display: block;
    width: 8px;
    height: 14px;
    position: absolute;
    top: 14px;
    right: 15px;
    background: url('/img/chat/icon_arrow.png') no-repeat 0 0
}


/*chat*/
.chat-area {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 0 20px;
    box-sizing: border-box;
    padding-top: 10px;
}

.chat-area .date {
    text-align: center;
    font-size: 11px;
    color: rgba(22, 23, 25, 0.8);
    padding: 8px 0;
    margin-bottom: 10px;
}

.chat-area .notibox {
    text-align: center;
    padding-bottom: 15px;
}

.chat-area .notibox span {
    display: inline-block;
    padding: 8px 15px;
    font-size: 11px;
    background: rgba(22, 23, 25, 0.05);
    border-radius: 16px;
    color: rgba(22, 23, 25, 0.8);;
    line-height: 1.3;
}

.message-list {
    display: flex;
    margin-bottom: 10px;
}

.message-list .avatar-image img {
    width: 30px;
    height: 30px;
    border-radius: 30px;
}

.message-list .message-box {
    padding-left: 8px;
    min-width: 0;
}

.message-list .message-box .avatar-name {
    font-size: 12px;
    color: #161719;
    line-height: 1.4;
}

.message-list .message-box .message-time {
    margin-top: 5px;
    display: flex;
    align-items: flex-end;
}

.message-list .message-box .message-time .message-text {
    font-size: 12px;
    line-height: 1.5;
    padding: 10px 15px;
    min-width: 0;
    word-wrap: break-word;
}

.message-list .message-box .message-time .message-text .highlight {
    background-color: black;
}

.message-list .message-box .message-time .timestamps {
    font-size: 9px;
    color: rgba(22, 23, 25, 0.4);
    min-width: 70px;
}

.message-list.avatar {
    justify-content: flex-start;
}

.message-list.avatar .message-box .message-time .message-text {
    color: #575757;
    background: rgba(22, 23, 25, 0.08);
    border-radius: 2px 18px 18px 18px;
}

.message-list.avatar .message-box .message-time .timestamps {
    padding-left: 4px;
}

.message-list.wirter {
    justify-content: flex-end;
    padding-right: 0;
}

.message-list.wirter .message-box .message-time .message-text {
    color: #fff;
    background: #064196;
    border-radius: 18px 2px 18px 18px;
}

.message-list.wirter .message-box .message-time .timestamps {
    padding-right: 5px;
    text-align: right;
}

.message-write-area {
    position: relative;
    width: 100%;
    background: #fff;
    margin-top: auto;
    overflow: hidden;
}

.message-write-area .message-write-inner {
    position: relative;
    margin: 0 auto;
    height: 54px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: space-between;
    padding: 0 20px;
    border-top: 1px solid #eee;
}

.message-list .file-area {
    max-width: 304px;
    border-radius: 10px;
}

.message-list .file-area img {
    border-radius: 18px;
    height: auto;
    border: 1px solid #eee;
    max-width: 100%;
}

.message-list .file-area video {
    border-radius: 18px;
    height: auto;
    border: 1px solid #eee;
    max-width: 100%;
}

.message-list .file-area.file a {
    color: #161719;
}

.message-list .file-area.file {
    position: relative;
    width: auto;
    max-width: 100%;
    border-radius: 2px 18px 18px 18px;
    background: rgba(22, 23, 25, 0.08);
    box-sizing: border-box;
    padding: 15px 15px 15px 65px;
}

.message-list .file-area.file .fileName {
    display: -webkit-box;
    width: 100%;
    color: #161719;
    font-size: 12px;
    line-height: 20px;
    overflow: hidden;
    /*text-overflow:ellipsis;white-space: nowrap;*/
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 40px;
}

.message-list .file-area.file .fileSize {
    display: block;
    color: rgba(22, 23, 25, 0.7);
    font-size: 10px;
    margin-top: 2px;
}

.message-list .file-area.file .filedown {
    width: 40px;
    height: 40px;
    background: url('/img/chat/file_icon.svg') no-repeat;
    background-size: 16px auto;
    background-position: center;
    background-color: rgba(22, 23, 25, 0.07);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
}

.message-list.wirter .file-area.file {
    background: #064196;
    border-radius: 18px 2px 18px 18px;
}

.message-list.wirter .file-area.file .fileName {
    color: #fff;
}

.message-list.wirter .file-area.file .fileSize {
    color: rgba(255, 255, 255, 0.7);
}

.message-list.wirter .file-area.file .filedown {

    background: url('/img/chat/file_icon_w.svg') no-repeat;
    background-size: 16px auto;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.07);
}

.message-write-area .message-write-inner .btn-attach {
    position: relative;
}

.message-write-area .message-write-inner .btn-attach a {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s;
}

.message-write-area .message-write-inner .btn-attach a::before {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -10px;
    width: 19px;
    height: 1px;
    background: #8B8B8C;
    transform: rotate(0);
    border-radius: 50px;
}

.message-write-area .message-write-inner .btn-attach a::after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -10px;
    width: 19px;
    height: 1px;
    background: #8B8B8C;
    transform: rotate(-90deg);
    border-radius: 50px;
}

.message-write-area .message-write-inner .btn-attach a:active {
    background: rgba(22, 23, 25, 0.05);
}

.message-write-area .message-write-inner .btn-attach a.active {
    transform: rotate(45deg);
}

.message-write-area .message-write-inner .btn-send {
    color: transparent;
    background: #fafafa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background: url('/img/chat/send.svg') no-repeat;
    background-position: center;
    background-size: 40px auto;
}

.message-write-area .message-write-inner .btn-send.active {
    background: url('/img/chat/send_active.svg') no-repeat;
    background-position: center;
    background-size: 40px auto;
}


.message-write-area .message-write-inner .write-box {
    position: relative;
    width: 100%;
}

.message-write-area .message-write-inner .write-box input[type=text] {
    width: 100%;
    height: 40px;
    background: #fafafa;
    border: 1px solid rgba(22, 23, 25, 0.05);
    box-sizing: border-box;
    border-radius: 100px;
    resize: none;
    padding: 9px 15px;
    line-height: 1.5;
    font-size: 14px;
    font-weight: normal;
    outline: none;
}

.message-write-area .message-write-inner .write-box input[type=text]:focus {
    border-color: rgba(22, 23, 25, 0.2);
}

.message-write-area .message-write-inner .write-box input[type=text]::placeholder {
    color: rgba(22, 23, 25, 0.3);
}

.attach-box {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    height: 0;
    transition: height 0.3s;
}

.attach-box ul {
    position: relative;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
}

.attach-box ul li {
    position: relative;
}

.attach-box ul li a {
    color: rgba(22, 23, 25, 0.7);
    font-size: 12px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 70px;
    height: 70px;
    gap: 4px;
    text-align: center;
    transition: background 0.3s;
}

.attach-box ul li a:active {
    background: rgba(22, 23, 25, 0.05);
}

.attach-box ul li a img {
    width: 30px;
    height: auto;
}

.attach-box.active {
    height: 257px;
}

/*head*/
.page_head {
    justify-content: space-between;
    flex-wrap: wrap;
}

.page_name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.head_right {
    position: absolute;
    right: 15px;
    display: flex;
    align-items: center;
    height: 60px;
}

.head_right a {
    width: 40px;
    height: 40px;
    display: inline-block;
}

.head_right a img {
    width: 40px;
    height: auto;
}


.input_group.chat_search_wrap {
    position: relative;
    width: 100%;
    background: rgba(22, 23, 25, 0.03);
    border-bottom: 1px solid #eee;
    top: 0;
    margin: 0 auto;
    display: none;
    padding: 10px 30px;
    box-sizing: border-box;
}

.chat_search {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 3px;
}

.chat_search_wrap.input_group .input_box {
    box-sizing: border-box;
    padding: 0;
}

.input_group.chat_search_wrap .search_box input {
    height: 32px;
    padding: 6px 10px;
    background: #fff;
    font-size: 12px;
}

.input_group.chat_search_wrap .search_box input::placeholder {
    font-size: 12px;
}

.search_close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/*chat_overay*/
.overay_title {
    position: absolute;
    top: 25px;
    left: 30px;
    font-size: 13px;
    color: rgba(22, 23, 25, 0.7);
}

/*chat_list*/
.input_group .input_box.chat_list_search input {
    height: 40px;
    padding: 10px 15px 10px 37px;
    position: relative;
    background: url('/img/chat/input_search.svg') no-repeat;
    background-size: 16px 16px;
    background-position: 14px center;
}

/* ykh 추가 */
.chat_btn_wrap{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat_btn_wrap a{
    font-size: 13px;
    color: rgba(6, 65, 150, 1);
    border-radius: 8px;
    padding: 10px 30px;
    border: 1px solid rgba(6, 65, 150, 0.15);
    font-weight: 900;
    line-height: 13px;
    position:relative;
    overflow: hidden;
    cursor: pointer;

}
.chat_btn_wrap .search_btn{
    margin-left: 8px;,
    line-height: 24px;
    text-align: center;
    padding: 10px !important;
    width: 50px;
    max-width: 100px;
    min-width: 30px;}

.input_group .input_box.chat_btn_wrap input {
    height: 40px;
    padding: 10px 15px 10px 37px;
    position: relative;
    background: url('/img/chat/input_search.svg') no-repeat;
    background-size: 16px 16px;
    background-position: 14px center;
}
/** ykh 끝  */



.chat_list_wrap {
    position: relative;
    padding: 0 30px;
    box-sizing: border-box;
}

.chat_list_wrap ul {
    position: relative;
    width: 100%;
}

.chat_list_wrap ul li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 14px;
    min-height: 74px;
    cursor: pointer;
}

.chat_list_wrap ul li .chat_profile {
    width: 50px;
    height: 50px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(22, 23, 25, 0.05);
    border-radius: 50%;
    flex-shrink: 0;
}

.chat_list_wrap ul li .chat_profile img {
    width: 100%;
    display: block;
}

.chat_list_wrap ul li .chat_wrap {
    width: 100%;
    min-width: 0;
}

.chat_list_wrap ul li .chat_wrap .chat_title_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat_list_wrap ul li .chat_wrap .chat_title_wrap .profile_name {
    font-size: 14px;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: break-all;
    flex: auto;
}

.chat_list_wrap ul li .chat_wrap .chat_title_wrap .chat_time {
    font-size: 10px;
    color: rgba(22, 23, 25, 0.4);
    min-width: 50px;
    text-align: right;
}

.chat_list_wrap ul li .chat_wrap .chat_content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 3px;
}

.chat_list_wrap ul li .chat_wrap .chat_content .chat_txt {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: break-all;
    flex: auto;
    font-size: 12px;
    color: rgba(22, 23, 25, 0.5);
}

.chat_list_wrap ul li .chat_wrap .chat_content .chat_count {
    width: 20px;
    height: 20px;
    font-size: 11px;
    background: #064196;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff;
    text-align: center;
    line-height: 20px;
    font-weight: 600;
}

.badge_count {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: #E63636;
    color: #fff;
    border: 1px solid #fff;
    font-size: 10px;
    border-radius: 50%;
    line-height: 18px;
    font-weight: 600;
    text-align: center;
    margin-left: 12px;
}

.auto-message{
    background: #DB9700 !important;
}
