
button.btn.open-button {
    position: fixed;
    bottom: 12px;
    right: 12px;
}


.chat-window {
    width: 600px; /* Adjust the width as needed */
    height: 700px; /* Adjust the height as needed */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}


.box-header {
  background: var(--ct-menu-bg);
  color: #f4f4f4;
  padding: 10px;
  position: relative;
  display: block;
  border-bottom: 1px solid #f4f4f4;
}

.box-header:after,
.box-body:after,
.box-footer:after {
  content: "";
  display: table;
  clear: both;
}

.box-header > .fa,
.box-header > .ion,
.box-header .box-title {
  display: inline-block;
  font-size: 18px;
  margin: 0;
  line-height: 1;
  margin: 8px !important;
}

.box-header > .fa,
.box-header > .ion {
  margin-right: 5px;
}

.box-header > .box-tools {
  position: absolute;
  right: 10px;
  top: 10px;

}

.box-body {
  height: 100vh;
  overflow: auto;
  margin-bottom: 0;
}

.box-footer {
  border-radius: 0 0 3px 3px;
  border-top: 1px solid #f4f4f4;
  padding: 10px;
  background-color: #fff;
}

.direct-chat {
  overflow: auto;
  display: flex;
  flex-direction: column-reverse;
}

.direct-chat .box-body {
  border-radius: 0;
  position: relative;
  overflow-x: hidden;
  padding: 0;
}

.direct-chat-messages {
  transform: translate(0, 0);
  padding: 20px;
  margin-bottom: 50px;
  height: auto;
  overflow: auto;
}

.direct-chat-msg,
.direct-chat-text {
  display: block;
}

.direct-chat-msg {
  margin-bottom: 20px;
}

.direct-chat-msg:before,
.direct-chat-msg:after {
  content: " ";
  display: table;
}

.direct-chat-msg:after {
  clear: both;
}

.direct-chat-text {
  float: left;
  font-size: 13px;
  width: 85%;
  background: var(--ct-light);
  border-radius: 3px;
  padding: 12px;
  position: relative;
}

.right .direct-chat-text {
  color: #39afd1;
  margin-left: 50px;
  float: right !important;
  width: 70% !important;
  background: rgba(57, 175, 209, 0.1);
}

.direct-chat-text:before,
.direct-chat-text:after {
  border-width: 5px;
}

.direct-chat-text:before {
  margin-top: -6px;
  border-width: 6px;
}

.direct-chat-text:after {
  margin-top: -5px;
}

.right .direct-chat-text:before,
.right .direct-chat-text:after {
  right: auto;
  left: 100%;
  border-right-color: transparent;
  border-left-color: #d2d6de;
}

.direct-chat-name {
  font-weight: 600;
  padding-bottom: 8px;
}

input[data-switch]:checked + label:after {
  left: 35px;
}
.select2-container--open .select2-dropdown {
  top: 100% !important; /* Default position below input */
  bottom: auto !important; /* Prevent flipping unless adjusted dynamically */
  position: absolute !important; /* Anchor relative to input */
  z-index: 1055; /* Ensure it stays above modal content */
  max-height: 300px; /* Prevent dropdown from overflowing excessively */
  overflow-y: auto; /* Add scroll for large dropdowns */
}
.select2-selection__arrow {
  display: inline-block; /* Show arrow by default */
}
.select2-selection__clear {
  display: none; /* Hide clear (x) by default */
}
.select2-selection {
  display: flex;
  align-items: center;
  padding-right: 0px; /* Space for arrow/clear */
}
.select2-results__option[aria-selected=true] {
  display: none; /* don't show selected values */
}
.select2-search__field:placeholder-shown {
  margin-left: 8px;
  width: 100% !important; /*makes the placeholder to be 100% of the width while there are no options selected*/
}
h5 {
  font-weight: 300;
  color: #6C757D;
  line-height: 1.2;
  margin-bottom:12px;
  font-size:0.85rem;
}
h3 {
  font-weight: 300;
  color: #6C757D;
  margin-top:12px;
  font-size:1rem;
  margin-bottom:0px;
}

.logo-sm {
  /* background-image: url(/app/resources/assets/images/logo.png); */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 30px;
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.logo-lg {
  /* background-image: url(/app/resources/assets/images/logo-sm.png); */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 30px;
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.CodeMirror {
  min-height: 60vh;
}
