/**
* Dashboard css
*
* Free SVG Background by BGJar (https://bgjar.com)
 */

:root {
  --bs-primary: #006292; /* new */
  --bs-primary-rgb: 0, 98, 146; /* new */
}

body {
  font-size: .875rem;
}

.nav-link {
  color: var(--bs-primary);
}


.page-dash .login-bar .nav-item .nav-link {
  color: #222;
}
.page-dash .login-bar .nav-item .disabled.nav-link,
.page-dash .login-bar .separator span {
  color: #9c9c9c;
}
.page-dash .login-bar .nav-item .nav-link:hover {
  color: rgba(0,0,0,0.5);
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

#carouselVIPs .controls .feather {
  width: 24px;
  height: 24px;
}

.dashboard {
  padding-top: 170px;
}

.dashboard h2 {
  font-size: 1.65rem;
  font-weight: normal;
  color: #6c757d;
}
.dashboard h3 {
  font-size: 1.60rem;
}

.dashboard .pagination {
  flex-wrap: wrap !important;
  gap: 0.25rem;
}

footer {
  position: relative;
  border-top: 1px solid #ced4da;
  /*background-color: #fafafa;*/
}

.copy {
  text-align: center;
  padding: 0.5rem 0 0 1rem;
}
.hstack {
  justify-content: center!important;
}

/* Small devices (landscape phones, 768px and up) */
@media (min-width: 769px) {
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .dashboard {
    padding-top: 130px;
  }
  .copy {
    text-align: left;
    padding-top: 0;
  }
}

/*
 * Sidebar
 */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 120px 1px 0 0; /* Height of navbar */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px) {
  .sidebar {
    top: 5rem;
  }
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #727272;
}

.sidebar .nav-link.active {
  color: var(--bs-primary);
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/* Forms */
.form-control:disabled, .form-control[readonly] {
  opacity: 0.75;
}

/* Photos */
.photobg {
  object-fit: cover; /* Do not scale the image */
  object-position: center; /* Center the image within the element */
  width: 100%;
  max-height: 350px;
}
.nophoto {
  /*max-height: 150px;
  margin: 0 auto;*/
  padding: 1rem 1rem;
}

/* Suggestions */
.summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6rem;
}

/* Media queries */
@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }
}

/**
Message center
 */

.chat-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0px 0px;
  grid-auto-flow: row;
  background-color: rgba(0,0,0,0.05);
}

.chat {
  background-color: #fff;
}

.people-list {
  -moz-transition: .5s;
  -o-transition: .5s;
  -webkit-transition: .5s;
  transition: .5s;
  padding: 0.5rem;
  background-color: #fff;
  border-right: 1px solid #eaeaea;
  height:50vh;
  overflow: auto;
}

.chat-list {
  padding-bottom: 1rem;
  clear: both;
}
.chat-ajax {
  border-bottom: 1px solid #eaeaea;
}

.people-list .chat-list li {
  padding: 10px 15px;
  list-style: none;
  border-radius: 3px;
}

.people-list .chat-list li:hover {
  background: #e8f1f3;
  cursor: pointer;
}

.people-list .chat-list li.active {
  background: #efefef
}

.people-list .chat-list li .name {
  font-size: 0.95rem;
}

.people-list .chat-list img {
  width: 45px;
  border-radius: 50%
}

.people-list img {
  float: left;
  border-radius: 50%
}

.people-list .about {
  float: left;
  padding-left: 8px
}

.people-list .status {
  color: #999;
  font-size: 0.85rem;
}

.chat .chat-header {
  padding: 15px 20px;
  height: 70px;
  z-index: 100;
}

.chat .chat-header img {
  float: left;
  border-radius: 40px;
  width: 40px;
}

.chat .chat-header .chat-about {
  float: left;
  padding-left: 10px;
}

.chat-about h6 {
  margin-bottom: 0;
}
.chat-about small {
  color: #999;
}

.chat .chat-history {
  padding: 30px 20px 20px 20px;
  border-bottom: 2px solid #fff;
  /*height:500px;*/
  height: calc(50vh - 70px);
  overflow: auto;
  z-index: 1;
  box-shadow: 0px -5px 10px -5px rgba(61, 61, 61, 0.29);
}

.chat .chat-history ul {
  padding: 0
}

.chat .chat-history ul li {
  list-style: none;
  margin-bottom: 30px
}

.chat .chat-history ul li:last-child {
  margin-bottom: 0px
}

.chat .chat-history .message-data {
  margin-bottom: 15px
}

.chat .chat-history .message-data img {
  border-radius: 40px;
  width: 40px
}

.chat .chat-history .message-data-time {
  color: #7a8294;
  padding-left: 6px;
  font-size: 90%;
}
.chat .chat-history .text-end .message-data-time {
  padding-right: 6px;
  padding-left: 0px;
}


.chat .chat-history .message {
  color: #444;
  padding: 18px 20px;
  line-height: 26px;
  font-size: 16px;
  border-radius: 7px;
  display: inline-block;
  position: relative;
}

.chat .chat-history .message:after {
  bottom: 100%;
  left: 10%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-bottom-color: #fff;
  border-width: 10px;
  margin-left: -10px;
}

.chat .chat-history .my-message {
  background: #efefef;
}

.chat .chat-history .my-message:after {
  bottom: 100%;
  left: 30px;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-bottom-color: #efefef;
  border-width: 10px;
  margin-left: -10px;
}

.chat .chat-history .other-message {
  background: #e8f1f3;
  text-align: right;
}

.chat .chat-history .other-message:after {
  border-bottom-color: #e8f1f3;
  /*left: 90%;*/
  left: calc(100% - 30px);
}

.chat .chat-message {
  padding: 20px;
}

.people-list .status span {
  font-size: 2rem;
  padding: 0 0;
  margin: 0;
  line-height: 0.75rem;
  vertical-align: middle;
}
.people-list .status.offline span {
  color: #DD3646;
}
.people-list .status.online span {
  color: #86c541;
}

.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0
}

/* Right icons */
.chat-header svg {
  width: 1rem;
  border-radius: 0;
}
.chat-header .user svg {
  fill: #6C757D;
}
.chat-header .trash svg {
  fill: #DD3646;
}
.chat-header .user:hover svg, .chat-header .trash:hover svg {
  fill: #ffffff;
}


@media only screen and (max-width: 991px) {
  .chat-window {
    /*height: 70vh;*/
  }
  .chat-grid {
    display: block;
  }
  .chat .chat-header {
    height: auto;
    border-top: 1px solid #b3b3b3;
    background-color: rgba(0,0,0,0.03);
  }

  .chat .chat-history {
    height: 33vh;
  }

  /*.people-list {
    height: 50vh;
  }*/

  .mobile-hide {
    display: none;
  }

}

@media only screen and (min-width: 768px) and (max-width: 992px) {
 /* .chat-grid {
    display: grid;
    grid-template-columns: 30% 1fr;
  }*/
  /*.people-list {
    height: 500px;
  }*/

}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1) {

}

/* Premium ribbon */
.ribbon {
  z-index: 1;
  overflow: hidden;
}
.ribbon span {
  font-size: 10px;
  font-weight: bold;
  color: #FFF;
  text-transform: uppercase;
  text-align: center;
  line-height: 20px;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  width: 100px;
  display: block;
  background: #79A70A;
  background: linear-gradient(#9BC90D 0%, #79A70A 100%);
  box-shadow: 0 3px 10px -5px rgba(37, 37, 37, 0.76);
  position: absolute;
  top: 19px; left: -21px;
}

/* capitalize first letter of names */
.capname {
  text-transform: capitalize;
}
