html,
body,
.container {
  width: 100%;
  height: 100%;
}

body {
  overflow: auto;
  margin: 0;
}

::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #d1d1d1;
  border-radius: 0;
}

::-webkit-scrollbar-thumb {
  background: #292929;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #525252;
}

::-webkit-scrollbar-thumb:active {
  background: #3f4853;
}

.show {
  display: inline-table !important;
}

.hide {
  display: none !important;
}

.show2 {
  display: flex !important;
}

.container {
  display: flex;
}

.show-agency {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.required .show-agency.add-agency {
  justify-content: space-between;
}

.required .group-assign {
  padding: 0 !important;
}

.required .show-agency {
  justify-content: start;
  padding: 13px;
  box-sizing: border-box;
}

.left-long {
  background: #0a0a0a;
  height: 100%;
  min-width: 280px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.left-head {
  border-bottom: 1px solid #5d5d5d;
}

.left-head {
  padding: 20px 20px;
  padding-top: 25px;
}
.left-info {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.up {
  padding: 10px 20px;
}

.left-head img {
  height: 25px;
}

.list {
  color: #f8f9fa;
  list-style-type: none;
  padding: 0;
  font-size: 16px;
}

.up {
  color: #c6c6c6;
  font-size: 13px;
  margin: 0;
}

.bgc {
  background-color: #e8e8e8;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  /* 초기에는 보이지 않도록 설정 */
}

.dimmed {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.allow-popup,
.delete-popup,
.image-modal,
.alert-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  z-index: 1001;
  width: calc(100% / 2);
  height: fit-content;
  border: 1px solid rgba(207, 207, 207, 0.5) !important;
  box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px !important;
  border-radius: 5px !important;
  padding-left: 30px;
  font-weight: 600;
}

.alert-modal {
  width: calc(100% / 4);
}
.image-modal {
  width: auto;
  border: none !important;
  padding: 0;
}

.image-modal .popup-content {
  padding: 0;
}
.image-modal img.message-image {
  height: 100dvh;
  width: auto;
}

.popup-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup-title span {
  font-size: 20px;
}

.close-btn-gray {
  padding: 30px;
  cursor: pointer;
  font-size: 20px;
  color: #8b8b8b;
}

.popup-content {
  color: #8b8b8b;
  padding-bottom: 40px;
}

.popup-btn-wrap {
  text-align: right;
}

.popup-select-btn {
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  padding: 30px;
  cursor: pointer;
}

/* 중앙에 위치한 팝업창 */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  z-index: 999;
  width: calc(100% / 4);
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(207, 207, 207, 0.5) !important;
  box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px !important;
  border-radius: 5px !important;
}

.new-group-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  z-index: 999;
  width: calc(100% / 4);
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(207, 207, 207, 0.5) !important;
  box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px !important;
  border-radius: 5px !important;
}

.popup-head {
  font-weight: bold;
  font-size: 23px;
  text-align: center;
}

#overlay > div > div.popup-info label,
#overlay > div > div.popup-info .group {
  display: flex;
  align-items: baseline;
  margin-bottom: 5px;
  color: #858585;
  font-weight: bold;
  gap: 3px;
}

.popup-info {
  display: flex;
  flex-direction: column;
  padding: 30px;
  width: 100%;
  box-sizing: border-box;
  gap: 10px;
}

.popup-info > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#overlay > form > div.popup-info input,
#overlay > form > div.popup-info .group-assign {
  border: none;
  background: #f4f4f4;
  border-radius: 5px;
  padding: 13px;
  font-size: 13px;
}

.required > label::after,
.required > span.group::after {
  content: "(필수)";
  font-size: 11px;
  color: red;
}

.addpopupbtn {
  width: 150px;
  height: 40px;
  font-weight: bold;
  border: none;
  border-radius: 40px;
  margin-top: 10px;
  cursor: pointer;
  color: white;
  background-color: black;
  padding: 5px 10px;
}

.head-bind {
  width: 100%;
  height: 10%;
  position: relative;
  padding: 20px 0;
  border-bottom: 2px solid rgba(207, 207, 207, 0.5);
}

.close-btn {
  position: absolute;
  top: 0;
  right: 0;
  padding: 25px;
  cursor: pointer;
  font-size: 20px;
}

.right-real {
  -webkit-overflow-scrolling: touch;
  width: calc(100% - 280px);
  padding-left: 15px !important;
}

#main-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

#main-table th,
#main-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.right-head {
  min-height: 75px;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e9e9e9;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 0 30px;
  box-sizing: border-box;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.head-row {
  width: 100%;
  height: 100%;
  display: flex;
}

.right-info,
.right-real {
  padding: 30px 30px;
  box-sizing: border-box;
}

.right-info {
  min-width: 280px;
  height: 100%;
  display: flex;
  padding-right: 15px !important;
}

.right-info,
.right-real {
  background: #f8f9fa;
}

.right-long {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-y: auto;
}

.info {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 15px;
  box-shadow: 0px 4px 15px -6px #9b9b9b;
  box-sizing: border-box;
  width: 100%;
  height: fit-content;
}

.info span {
  cursor: pointer;
  padding: 20px 20px;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.info > span:first-child {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
.info > span:last-child {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.info > span:hover {
  background-color: black;
  color: white;
}

.info > span.active {
  background-color: black;
  color: white;
}

#main-table_wrapper {
  padding: 10px 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0px 4px 15px -6px #9b9b9b;
  box-sizing: border-box;
  width: 100%;
  height: fit-content;
  overflow: auto;
  font-weight: 600;
  font-size: 14px;
}

#main-table thead tr:last-child th {
  border-bottom: 1px solid rgba(0, 0, 0, 0.3) !important;
  padding-bottom: 20px;
}

#main-table tr th:first-child,
#main-table tr td:first-child {
  padding-left: 25px;
}
#main-table tr th:last-child,
#main-table tr td:last-child {
  padding-right: 25px;
}

#main-table tr:first-child td {
  padding-top: 20px;
}

.dt-scroll-body {
  border: 0 !important;
}
.dt-scroll-foot {
  padding: 0 !important;
}

.dt-scroll > div {
  padding: 10px 20px;
}

.table-top {
  margin-bottom: 20px;
}

#table-search {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  background: white !important;
  border-radius: 15px !important;
  padding: 20px !important;
  box-shadow: 0px 4px 15px -6px #9b9b9b;
  box-sizing: border-box;
  width: 100%;
  height: 60px;
  border: 1px solid rgba(207, 207, 207, 0.5) !important;
  font-size: 15px;
  margin: 0 !important;
}

#search_icon {
  position: absolute;
  right: 50px;
  height: 40px;
  font-size: 20px;
  align-content: center;
  cursor: pointer;
}

/* .dt-input {
    width: 100%;
    height: 50px;
    border: 1px solid rgba(207, 207, 207, 0.5) !important;
    box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px !important;
    border-radius: 5px !important;
    padding: 10px !important;
    font-size: 15px;
} */

.search-container {
  display: flex;
  width: 100%;
  align-items: center;
}

#dt-length-0 {
  width: 100px;
}

.dt-scroll-head tr th {
  border: none !important;
}

/* 테이블의 tbody에 대한 보더 제거 */
#main-table tbody {
  border: none !important;
}

/* tbody의 tr에 대한 보더 제거 */
#main-table tbody tr {
  border: none !important;
}

/* 각 셀의 보더 제거 */
#main-table tbody td {
  border: none !important;
}

#main-table th {
  border: none !important;
  padding-right: 10px;
}

.name {
  max-width: 100px;
}
.email-column {
  max-width: 250px;
}

.pagination {
  padding: 0;
  display: flex;
  gap: 10px;
  list-style: none;
  align-items: center;
  justify-content: center;
}
.page-item.active .page-link {
  background: black;
  color: white;
  border: none;
}

.pagination a {
  background: white;
  padding: 5px 10px;
  border-radius: 5px;
  color: black;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #e3e3e3;
  box-shadow: 0px 5px 10px -5px #c9c9c9;
}

.roles_badge_wait {
  background: rgb(233 233 233);
  color: black;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
}

.roles_badge_comp {
  background: black;
  color: white;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
}

.text-center {
  text-align: center !important;
}
.text-left {
  text-align: left !important;
}

.dt-column-order {
  margin-bottom: 10px;
}

.adduser {
  padding: 10px 20px;
  background: black;
  color: white;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
}

.list li {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 11px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.list li:not(.active):hover {
  background: grey;
}

.list li svg {
  fill: white;
  width: 20px;
  height: 20px;
}

li.active svg {
  fill: black;
}

li.active {
  background: #f8f9fa;
  color: black;
}

#chat-wrap {
  display: flex;
  height: 100vh;
  overflow: hidden;
  padding: 40px;
  box-sizing: border-box;
}
.chat-container {
  display: flex;
  width: 100%;
  background: white;
  border-radius: 15px;
  box-shadow: 0px 4px 15px -6px #9b9b9b;
  box-sizing: border-box;
  border: 1px solid rgba(207, 207, 207, 0.5);
}
#chat-info {
  scale: 105%;
  width: 30%;
  min-width: 300px;
  background-color: white;
  border-right: 1px solid #ddd;
  border-radius: 15px;
  box-shadow: 1px 5px 20px -5px #a3a3a3;
  display: flex;
  flex-direction: column;
}
#chat-filter {
  background: black;
  color: white;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  position: relative;
  padding: 0 25px;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  max-height: 70px;
  min-height: 70px;
  box-sizing: border-box;
}
#chat-list {
  position: relative;
  overflow-y: auto;
}
#selected-user {
  font-size: 18px;
  font-weight: bold;
}
#chat-details {
  width: 100%;
  height: 100%;
  display: flex;
  box-sizing: border-box;
  overflow-y: auto;
  flex-direction: column;
}
#chat-details h4 {
  margin: 0;
}

.section-title {
  font-size: 18px;
  font-weight: bold;
  padding: 25px 40px;
  background: black;
  color: white;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.chat-item {
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-item:hover {
  background-color: #e9ecef;
}
.chat-item img {
  border-radius: 50%;
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-width: 24px;
  max-height: 24px;
}
.chat-item strong {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.5;
}
.chatroom-oneimage {
  max-width: 100% !important;
  max-height: 100% !important;
}
.chat-message {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
}
.chat-message.sender {
  justify-content: flex-end;
}
.chat-message .message-bubble {
  max-width: 60%;
  padding: 10px;
  border-radius: 15px;
  line-height: 1.4;
  position: relative;
}
.chat-message.sender .message-bubble {
  background-color: #000000;
  color: #fff;
  text-align: right;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
}
.chat-message.receiver .message-bubble {
  display: flex;
  gap: 10px;
  flex-direction: column;
  background-color: #f1f1f1;
  color: #000;
  text-align: left;
  border-top-left-radius: 0;
  border-bottom-right-radius: 0;
}
.chat-message .message-bubble::after {
  content: "";
  position: absolute;
  border-width: 10px;
  border-style: solid;
}
.chat-message.sender .message-bubble::after {
  border-color: #000000 transparent transparent transparent;
  top: 0;
  right: -9px;
  border-width: 10px 10px 10px 0;
}
.chat-message.receiver .message-bubble::after {
  border-color: #f1f1f1 transparent transparent transparent;
  top: 0;
  left: -9px;
  border-width: 10px 0 10px 10px;
}
.chat-input {
  display: flex;
  align-items: center;
  padding: 10px 30px;
}
.chat-input input {
  flex: 1;
  padding: 10px;
  margin-right: 10px;
  outline: none;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 50px;
}
.chat-input button {
  background-color: #000000;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
}
.chat-input button:hover {
  background-color: #1f1f1f;
}
#chat-messages {
  padding: 30px 40px;
  height: 100%;
  align-content: flex-end;
  overflow-y: scroll;
  overflow-x: hidden;
}
.message-date {
  padding: 50px 10px;
  font-size: 13px;
  width: 100%;
  display: block;
  text-align: center;
}
.message-time {
  align-self: self-end;
  padding: 10px;
  font-size: 13px;
}
.message-date span {
  background: black;
  color: white;
  padding: 2px 40px;
  border-radius: 50px;
}
.list-image-wrap, .filter-list-image-wrap {
  width: 55px;
  height: 55px;
  min-width: 55px;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  background: #e4e4e4;
  border-radius: 50px;
  box-sizing: border-box;
}
.room-count-badge {
  display: flex;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
}
.room-count-badge span {
  background: #979797;
  color: #fff;
  padding: 3px;
  border-radius: 6px;
  font-size: 11px;
  width: fit-content;
  aspect-ratio: 1;
  display: block;
  text-align: center;
  box-sizing: border-box;
}
.filter-list-image-wrap {
  width: 35px;
  height: 35px;
  min-width: 35px;
}

.time-unread {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  min-width: 60px;
}

.chat-msg-time {
  font-size: 11px;
  color: #888888;
}
.last-msg {
  padding: 5px 0;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
}

.board-title {
  max-width: 200px;  /* 최대 폭을 200px로 제한 */
  white-space: nowrap;  /* 텍스트를 한 줄로 표시 */
  overflow: hidden;  /* 내용이 넘칠 경우 숨김 */
  text-overflow: ellipsis;  /* 넘친 부분을 ... 으로 표시 */
}

.has-unread {
  background: #000;
  color: #fff;
  padding: 3px;
  border-radius: 20px;
  font-size: 11px;
  width: fit-content;
  aspect-ratio: 1;
  display: block;
  text-align: center;
  gap: 5px;
}

.list-content-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
}

.active-room {
  background: #CDCDCD;
}

/* Pulse 애니메이션 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

.pulse {
  animation: pulse 0.5s ease-out;
  border-color: red;
  transition: border-color 0.5s ease-out, box-shadow 0.5s ease-out;
}

.pulse-remove {
  border-color: none;
  box-shadow: none;
}

.currentt {
  color: black;
  font-size: 20px;
  width: 100%;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.adduser {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 25px;
  background: black;
  color: #fff;
  padding: 5px 10px;
  border-radius: 40px;
  width: 100px;
  font-weight: 700;
  font-size: 15px;
}

.popup-btn {
  height: 10%;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding-bottom: 20px;
}

.title {
  font-size: 20px;
  font-weight: 600;
}

.list a {
  text-decoration: none;
  color: white;
}

/* 숨기기 기본 체크박스 */
.custom-checkbox {
  display: none;
}

/* 사용자 정의 체크박스 레이블 스타일 */
.custom-checkbox-label {
  display: inline-block;
  width: 20px; /* 체크박스 너비 */
  height: 20px; /* 체크박스 높이 */
  background-color: black; /* 체크박스 배경색 */
  border: 2px solid white; /* 체크박스 테두리색 */
  border-radius: 5px; /* 체크박스 모서리 둥글게 */
  position: relative;
  cursor: pointer; /* 포인터 커서 추가 */
  vertical-align: middle;
}

.custom-checkbox-label i {
  color: white;
  opacity: 0;
  transition: all 0.1s;
}

/* 체크된 상태 스타일 */
.custom-checkbox:checked + .custom-checkbox-label i {
  opacity: 1;
}

.head3bar > div {
  height: 100%;
}

.notice-label {
  color: black;
  width: 100%;
  align-self: start;
  font-size: 12px;
  font-weight: 600;
  padding: 10px;
  box-sizing: border-box;
}

#chat-filter-dropdown {
  display: flex;
  flex-direction: column;
  background: white;
  width: 80%;
  height: fit-content;
  max-height: 300px;
  overflow-y: scroll;
  position: absolute;
  box-sizing: border-box;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  box-shadow: 1px 5px 20px -5px #a3a3a3;
  top: 60px;
  left: 10%;
  z-index: 1;
}

.filter-item {
  display: flex;
  gap: 10px;
  padding: 5px 20px;
  transition: all 0.1s;
  color: black;
}

.filter-item:hover {
  background: #272727;
  color: white;
}

.filter-profileImg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

#chat-filter-dimmed {
  background: #575757a6;
  width: 100%;
  height: calc(100% - 70px);
  position: fixed;
  left: 0;
  bottom: 0;
  border-bottom-left-radius: 15px;
}

.agencyDropdown {
  cursor: pointer;
  text-align: left;
  position: absolute;
  top: 130%;
  left: 0;
  width: 200px;
  background-color: white;
  border: 1px solid rgb(204, 204, 204);
  z-index: 100;
  margin-left: -50px;
  color: black;
  height: auto;
  font-size: 12px;
  border-radius: 10px;
  border: 1px solid rgba(207, 207, 207, 0.5);
  box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
  max-height: 200px;
  overflow-y: scroll;
}

.addAgencyDropdown {
  width: 100%;
  margin-left: 0;
}

.agencyDropdown > div {
  padding: 10px 20px;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

.agencyDropdown > div:hover {
  background-color: #e2e2e2;
}
.agencyDropdown > div:hover::after {
  background-color: #e2e2e2;
  content: "\f00c"; /* 유니코드 값 */
  display: inline-block;
  font-family: "Font Awesome 5 Free"; /* Font Awesome 폰트 패밀리 설정 */
  font-weight: 900; /* Font Awesome에서 아이콘이 제대로 표시되도록 폰트 웨이트 설정 */
  margin-left: 10px; /* 아이콘과 텍스트 사이에 여백 추가 */
}
.agencyDropdown > div:nth-child(1) {
  padding-top: 15px;
}
.agencyDropdown > div.newgroup {
  padding-bottom: 15px;
  border-top: 1px solid #dbdbdb;
  color: #cccccc;
}
.agencyDropdown > div:nth-child(1):hover {
  background-color: #e2e2e2;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}
.agencyDropdown > div.newgroup:hover {
  background-color: #e2e2e2;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}
.agencyDropdown > div.newgroup:hover::after {
  content: none;
}

@media screen and (max-width: 1024px) {
  .left-long {
    margin-left: -280px;
    transition: margin-left 0.5s ease;
  }

  .hamburger {
    cursor: pointer;
    width: fit-content;
    height: fit-content;
  }

  .bar {
    width: 30px;
    height: 3px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.5s;
  }

  .hamburger.active .bar1 {
    transform: rotate(-45deg) translate(-5px, 5px);
  }

  .hamburger.active .bar2 {
    opacity: 0;
  }

  .hamburger.active .bar3 {
    transform: rotate(45deg) translate(-7px, -7px);
  }

  .showHamburger {
    margin-left: 0;
  }
}

.arrowbr svg {
  width: 20px;
  height: 20px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-detail {
  cursor: pointer;
}
.c_title{
  padding: 0 10px;
}
.c_user_id{
  padding: 0 10px;
}
#comment-content{
  margin-left: 123px;
}
.c_user_id{
  margin-left: -10px;
}

img.message-image {
  height: 350px;
  width: fit-content;
  align-self: center;
}