:root {
  --main_color: #009e82;
}

.am-spinner svg {
  display: inline-block;
}

.pilar_card_box {
  border: 2px solid rgb(255, 255, 255);
  border-radius: 8px;
  box-shadow: rgb(0 0 0 / 20%) 0px 0px 6px;
  padding: 16px;
  display: grid;
  grid-template-columns: 100px 1fr 1fr auto;
  gap: 6px;
  cursor: pointer;
  margin-bottom: 10px;
  align-items: center;
}
.pilar_card_box:hover {
  border-color: rgb(221, 221, 221);
}
.pilar_card_box:focus,
.pilar_card_box:focus-within {
  border-color: var(--main_color) !important;
}
.pilar_card_img_box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.pilar_card_image {
  width: 64px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
}
.pilar_card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pilar_card_btn {
  padding: 12px 24px;
  background: var(--main_color);
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  display: inline-block;
  font-weight: 500;
  line-height: 16px;
  min-height: 40px;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  user-select: none;
  font-size: 13px;
  position: relative;
}
.pilar_card_time span {
  display: block;
}
span.pilar_title1 {
  color: var(--main_color) !important;
}
span.pilar_title2 {
  font-size: 25px;
  color: var(--main_color) !important;
}
span.pilar_title3 {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pilar_modal {
  display: none;
}
.pilar_modal.show {
  display: block;
  z-index: 99999;
}
.pilar_modal_close {
  position: absolute;
  right: 15px;
  z-index: 9999;
}
.text_right {
  text-align: right;
}
.variation dt {
  font-weight: bold;
}
.d-flex {
  display: flex;
}
.flex-nowrap {
  flex-wrap: nowrap;
}
.align-items-center {
  align-items: center;
}
.justify-content-between {
  justify-content: space-between;
}
.text-dark {
  color: #1a1b1c !important;
}
.justify-content-center {
  justify-content: center;
}
.js-today {
  background-color: var(--main_color);
  border-radius: 100px;
}
.disabled_month > div {
  color: #cecece !important;
}
#pilar_calendar .active {
  border-radius: 100px;
  background: var(--main_color);
}
.disabled_month {
  pointer-events: none !important;
  cursor: not-allowed !important;
  color: #cecece !important;
}
.calendar_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.year_container td {
  font-size: 12px;
}
.date_show_wrap {
  width: 30px;
  height: 30px;
  display: inline-flex;
  justify-content: center;
  cursor: pointer;
  align-items: center;
  border-radius: 100px;
  background: transparent;
  transition: 0.3s;
}
.date_show_wrap:hover {
  background: #009e82;
}
.date_show_wrap.current_active_month {
  background: #009e82;
}
.year_container table {
  display: none;
}
.year_container table.active {
  display: block;
}
.year_container table svg path {
  fill: #000 !important;
}
.year_container table:first-child .calendar_prev,
.year_container table:last-child .calendar_next {
  pointer-events: none;
}
.year_container table:first-child .calendar_prev path,
.year_container table:last-child .calendar_next path {
  fill: #cdcdcd !important;
}

.pilar_message_btn,
.add_info,
.pilar_add_note_btn {
  color: #009e82;
  font-weight: 400;
  border: 2px solid #009e82;
  border-radius: 5px;
  font-size: 13px;
}
.add_info {
  min-width: auto;
  margin: 0;
  right: 0;
  margin-top: 20px;
}
.pilar_message_box,
.pilar_additional_box {
  position: fixed;
  top: 0;
  left: 0;
  background: #0000003d;
  width: 100%;
  height: 100%;
  z-index: 999999999;
  display: none;
}
.pilar_message_box form,
.pilar_additional_box form {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 800px;
  background: white;
  padding: 20px;
  border-radius: 8px;
}
.pilar_message_box form {
  min-width: 600px;
}
.pilar_message_box.show,
.pilar_additional_box.show {
  display: block;
}
.pilar_message_box_close,
.pilar_additional_box_close {
  background: #009e82;
  width: 28px;
  height: 28px;
  display: inline-block;
  border-radius: 100px;
  color: #fff !important;
  position: absolute;
  right: 5px;
  top: 5px;
  text-align: center;
  line-height: 26px;
  font-size: 15px;
  text-decoration: none !important;
  cursor: pointer;
}
.pilar_message_box_close {
  background: #ffffff;
  color: #000 !important;
  right: 10px;
  top: 14px;
}
.info_linking_table,
.pilar_zoom_link {
  display: none;
}
.additiona_info_text {
  min-height: 300px;
}
.image_uploader label {
  border: 1px solid #b8b8b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  margin-top: 10px;
  border-radius: 5px;
  max-width: 140px;
  cursor: pointer;
}
.image_uploader label input[type="file"] {
  position: absolute;
  opacity: 0;
  left: -100%;
}
.image_previewer img {
  width: 100% !important;
  height: 120px !important;
  max-width: 150px !important;
  border-radius: 0 !important;
  object-fit: cover;
  object-position: top;
}
.image_previewer button {
  padding: 0;
}

.chat-container {
  width: 500px;
  max-width: 100%;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.chat-header {
  background-color: #009e82;
  color: #fff !important;
  padding: 15px;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: scroll;
  background-color: #f0f2f5;
  height: 400px;
}

/* Hide scrollbar for WebKit browsers */
.chat-messages::-webkit-scrollbar {
  width: 0px;
  background: transparent; /* optional: just make scrollbar transparent */
}

/* Hide scrollbar for IE, Edge, and Firefox */
.chat-messages {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.message {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.message.sent {
  justify-content: flex-end;
}

.message.received {
  justify-content: flex-start;
}

.message .message-text {
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 20px;
  position: relative;
}

.message.sent .message-text {
  background-color: #009e82;
  color: #fff !important;
  border-bottom-right-radius: 0;
}

.message.received .message-text {
  background-color: #e5e5ea;
  color: #000;
  border-bottom-left-radius: 0;
}

.chat-input {
  display: flex;
  padding: 10px;
  background-color: #fff;
  border-top: 1px solid #ccc;
}

.chat-input input {
  flex: 1;
  padding: 24px 10px !important;
  border: 1px solid #ccc !important;
  border-radius: 100px !important;
  outline: none !important;
  font-size: 1em !important;
}

.chat-input button {
  background-color: #009e82;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 11px !important;
  cursor: pointer;
  font-size: 1.2em;
  margin-bottom: 0;
  margin-right: 0;
  height: 40px;
}

.image_uploaderv2 .image_previewer {
  display: flex;
  gap: 15px;
}
.image_uploaderv2 .image_previewer span {
  position: relative;
}
.image_uploaderv2 .remove_image_upload {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 25px !important;
  height: 25px !important;
  background: #009e82;
  border-radius: 100px;
  display: flex;
  margin: 0;
  max-width: inherit;
  max-height: inherit;
  min-height: inherit;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: 400;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.image_uploaderv2 .image_previewer span:hover .remove_image_upload {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1312px) {
  .pilar_sidebar {
    position: absolute !important;
    z-index: 99;
    height: 100%;
    border-radius: 0 !important;
    left: -100%;
    transition: 0.3s ease-in-out;
  }
  .pilar_search_bar {
    margin-left: 48px;
  }
  .pilar_humberger {
    display: inline-block !important;
  }
  .pilar_sidebar.show {
    left: 0;
  }
  .pilar_close_icon {
    display: inline-block !important;
  }
}
@media (max-width: 991px) {
  .pilar_card_box {
    grid-template-columns: 1fr 1fr;
  }
  .pilar_service_box {
    order: 4;
  }
  .pilar_card_btn {
    margin-top: 15px;
  }
  .dataTables_wrapper {
    overflow-x: auto;
  }
}
