/* Works on Firefox */

* {
  /*scrollbar-width: thin;*/
  scrollbar-color: #ababab transparent;
}

/* Works on Chrome, Edge, and Safari */

*::-webkit-scrollbar {
  overflow: auto;
  width: 14px;
  height: 14px;
}

*::-webkit-scrollbar-track {
  background: #f8f9fc;
}

::-webkit-scrollbar-track:horizontal{
  background-color: var(--bs-body-bg);
}

.chat-history::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3a3;
  border-radius: 25px;
  border: 1px solid #9ca3a3;
}

*::-webkit-scrollbar-thumb {
  background-color: #ababab;
  background-clip: content-box;
  border: 4px solid transparent;
  border-radius: 7px;
}

*::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

*::-webkit-scrollbar-corner {
  background-color: #F8F9FC;
}

#navbar-popup-info {
  margin: 0px;
  font-size: 16px;
}

#navbar-top-p {
  margin: 0px;
  margin-left: 5px;
  font-size: xx-large;
}

#navbar-top-info {
  padding-left: 1vmin;
}

@media (max-width: 768px) {
  #navbar-top-info p {
    font-size: x-large;
  }
}

.getcontract-btn i {
  margin-right: 5px;
}

.main-container {
  max-width: 1500px;
}

.sticky-footer {
  margin-top: 40px;
}

.vk-icon:hover {
  color: #396ffe;
}

.yt-icon:hover {
  color: #FF011D;
}

.site-icon:hover {
  color: #0BA58B;
}

.notify-link {
  text-decoration: none;
  color: inherit;
}

.readallnotify-btn {
  color: var(--bs-white);
}

.notify-block {
  max-width: 800px;
}

.notify-counter-badge {
  margin-left: 7px;
}

@media (max-width: 767px) {
  .readallnotify-btn {
    width: 100%;
    margin-top: 20px;
  }
}

.notify-maintext {
  color: #767d7d;
}

.notify-link:hover h5 {
  color: var(--bs-blue)!important;
}

.notify-subtext {
  color: var(--bs-gray-500);
}

.notify-unread-badge {
  margin-left: 7px;
}

.files-list table {
  margin-bottom: 0px;
}

.files-list td {
  vertical-align: middle;
}

.receipts-list table {
  margin-bottom: 0px;
}

.receipts-list td {
  vertical-align: middle;
}

.notify-unread-link {
  background-color: aliceblue;
}

@media (max-width: 360px) {
  .reg-div {
    padding-left: 20px!important;
    padding-right: 20px!important;
  }
}

form.user .btn-user {
  font-size: 0.9rem;
  border-radius: 10rem;
  padding: .75rem 1rem;
}

form.user .form-control-user {
  font-size: .9rem;
  border-radius: 10rem;
  padding: 1rem;
}

.scroll-to-top {
  border: none;
  z-index: 1000;
}

.open-feedback-link {
  padding: 5px;
  display: flex;
  border: none;
  z-index: 1000;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  text-align: center;
  color: #fff;
  line-height: 46px;
  transition: bottom 500ms, right 500ms, left 500ms;
}

@media (min-width: 767px) {
  .open-feedback-link, .scroll-to-top, #store-preorder {
    width: 3.5rem!important;
    height: 3.5rem!important;
  }
  #store-preorder {
    right: 5.5rem!important;
  }
}

#phone-number-check {
  display: none;
}

.toast-header {
  background-color: transparent;
  color: white;
}

.toast-bg-primary {
  background-color: #4e73df;
  background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
  background-size: cover;
}

.toast-bg-warning {
  background-color: #dfa54e;
  background-image: linear-gradient(180deg, #dfa54e 10%, #ba8a43 100%);
  background-size: cover;
}

.toast-bg-error {
  background-color: #c1463e;
  background-image: linear-gradient(180deg, #c1463e 10%, #812620 100%);
  background-size: cover;
}

.toast-header .img-fluid {
  height: 20px;
}

@media (max-width: 767px) {
  .toast-container {
    left: 50%;
    transform: translateX(-50%);
  }
}

.toast-container {
  position: fixed;
  z-index: 1090;
  bottom: 10px;
  right: 10px;
}

.sidebar {
  width: 6.5rem;
  min-height: 100vh;
  transition: 600ms;
}

.sidebar.toggled {
  width: 0 !important;
  overflow: hidden;
  transition: all 600ms;
}

@media (min-width: 768px) {
  .sidebar.toggled {
    overflow: visible;
    width: 6.5rem !important;
    transition: all 600ms;
  }
}

#wrapper #content-wrapper {
  z-index: 1;
}

.login-pass-icon {
  position: absolute;
  right: 25px;
  top: 20px;
  color: var(--bs-primary);
}

.login-pass-icon:hover, .dfcrm-pass-icon:hover {
  cursor: pointer;
  color: var(--bs-danger);
}

#password-meter {
  margin: 10px;
}

.otc label {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.otc {
  position: relative;
  margin: 0 auto;
}

.otc fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.otc div {
  display: flex;
  align-items: center;
}

.otc legend {
  margin: 0 auto 1em;
}

.otc input[type="text"] {
  width: 45px;
  line-height: 1;
  margin: .1em;
  padding: 8px 0 4px;
  font-size: 40px;
  text-align: center;
  appearance: textfield;
  -webkit-appearance: textfield;
  border: 2px solid var(--bs-gray);
  color: var(--bs-success);
  border-radius: 4px;
}

@media (max-width: 400px) {
  .otc input[type="text"] {
    width: 35px;
    font-size: 30px;
  }
}

.people-list {
  width: 260px;
  float: left;
}

.people-list .search {
  padding: 20px;
}

.people-list input {
  border-radius: 3px;
  border: none;
  padding: 14px;
  color: white;
  background: #6A6C75;
  width: 90%;
  font-size: 14px;
}

.people-list .fa-search {
  position: relative;
  left: -25px;
}

.people-list ul {
  padding: 20px;
}

.people-list ul li {
  padding-bottom: 20px;
}

.people-list img {
  float: left;
}

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

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

.people-list .status {
  color: #92959E;
}

.chat {
  width: 100%;
  float: left;
  background: transparent;
  color: #434651;
}

.chat .chat-header {
  padding: 20px;
  border-bottom: 1px solid #dadada;
}

.chat .chat-header img {
  float: left;
}

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

.chat .chat-header .chat-with {
  font-weight: bold;
  font-size: 16px;
}

.chat .chat-header .chat-num-messages {
  color: #92959E;
}

.chat .chat-history {
  padding: 30px 30px 30px;
  overflow-y: scroll;
  max-height: 400px;
}

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

.chat .chat-history .message-data-time {
  color: #a8aab1;
  padding-left: 6px;
}

.chat .chat-history .message {
  color: white;
  padding: 18px 20px;
  line-height: 26px;
  font-size: 16px;
  border-radius: 7px;
  margin-bottom: 30px;
  width: max-content;
  max-width: 90%;
  position: relative;
}

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

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

.chat .chat-history .other-message {
  background: #94C2ED;
}

.chat .chat-history .other-message:after {
  border-bottom-color: #94C2ED;
  left: auto;
  right: 15px;
}

.chat .chat-message {
  padding: 30px;
  border-top: 1px solid #dadada;
}

.chat .chat-message textarea {
  width: 100%;
  padding: 10px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  resize: none;
}

.chat .chat-message button {
  float: right;
  font-size: 16px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.online, .offline, .me {
  margin-right: 3px;
  font-size: 10px;
}

.online {
  color: #86BB71;
}

.offline {
  color: #E38968;
}

.me {
  color: #94C2ED;
}

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

.chat .chat-history ul {
  padding-left: 0px;
  list-style: none;
}

@media (max-width: 576px) {
  .chat .chat-history {
    padding: 15px 10px 15px;
  }
}

@media (max-width: 576px) {
  .chat .chat-message {
    padding: 15px 10px 15px;
  }
}

@media (max-width: 576px) {
  .chat .chat-header {
    padding: 15px 10px 15px;
  }
}

@media (max-width: 576px) {
  .main-container {
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
  }
}

.loading {
  position: relative;
  width: 100px;
  height: 100px;
  transform-style: preserve-3d;
  perspective: 800px;
  margin: auto;
  margin-top: 50px;
  margin-bottom: 50px;
}

.loading.small {
  width: 50px;
  height: 50px;
  margin-top: 25px;
  margin-bottom: 25px;
}

.loading .arc {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border-bottom: 3px solid var(--bs-primary);
}
.loading .arc:nth-child(1) {
  animation: rotate1 1.15s linear infinite;
}
.loading .arc:nth-child(2) {
  animation: rotate2 1.15s linear infinite;
}
.loading .arc:nth-child(3) {
  animation: rotate3 1.15s linear infinite;
}
.loading .arc:nth-child(1) {
  animation-delay: -0.8s;
}
.loading .arc:nth-child(2) {
  animation-delay: -0.4s;
}
.loading .arc:nth-child(3) {
  animation-delay: 0s;
}

@keyframes rotate1 {
  from {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(0);
  }
  to {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(1turn);
  }
}
@keyframes rotate2 {
  from {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(0);
  }
  to {
    transform: rotateX(50deg) rotateY(10deg) rotateZ(1turn);
  }
}
@keyframes rotate3 {
  from {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(0);
  }
  to {
    transform: rotateX(35deg) rotateY(55deg) rotateZ(1turn);
  }
}

.spinner-border.custom-spinner {
  margin-left: 10px;
  display: none;
}

.admin-user-search {
  max-width: 750px;
}

.ui-autocomplete {
  z-index: 2000;
}

.paysystem-info img {
  height: 20px;
  margin-right: 5px;
}

.payment-card {
  min-width: 350px;
  width: 70vmin;
  max-width: 600px;
}

#client-payment-form input {
  background: #F0F2F7;
  border-radius: 7px;
  border-style: none;
}

#client-payment-form button:hover {
  background-color: #f1c645;
}

#client-payment-form button {
  background-color: #FFE083;
  border-style: none;
  border-radius: 7px;
  width: 100%;
}

.payment-card a {
  text-decoration: none;
}

.watcher-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

.groups-table {
  max-width: 600px;
}

.group-item-add-btn {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
}

.group-action-btn {
  border-radius: 50%;
  width: 45px;
  height: 45px;
  margin: 3px;
}

#groups-tabs td {
  vertical-align: middle;
}

.group-add-btn {
  width: 100%;
}

.stream-name-span {
  font-size: 13px;
}

#streams-table td, #cameras-table td, #cameras-fullinfo-table, #cameras-groupadd-datatable, #cameras-groupadd-commonfields-datatable td, #order-receipts-list-table td, #payments_orders td  {
  vertical-align: middle;
}

.streams-table td {
  vertical-align: middle;
  text-align: center;
}


/* DATATABLES */
table.dataTable thead > tr > th.sorting, table.dataTable thead > tr > th.sorting_asc, table.dataTable thead > tr > th.sorting_desc, table.dataTable thead > tr > th.sorting_asc_disabled, table.dataTable thead > tr > th.sorting_desc_disabled, table.dataTable thead > tr > td.sorting, table.dataTable thead > tr > td.sorting_asc, table.dataTable thead > tr > td.sorting_desc, table.dataTable thead > tr > td.sorting_asc_disabled, table.dataTable thead > tr > td.sorting_desc_disabled {
  cursor: pointer;
  position: relative;
  padding-right: 26px
}

table.dataTable thead > tr > th.sorting:before, table.dataTable thead > tr > th.sorting:after, table.dataTable thead > tr > th.sorting_asc:before, table.dataTable thead > tr > th.sorting_asc:after, table.dataTable thead > tr > th.sorting_desc:before, table.dataTable thead > tr > th.sorting_desc:after, table.dataTable thead > tr > th.sorting_asc_disabled:before, table.dataTable thead > tr > th.sorting_asc_disabled:after, table.dataTable thead > tr > th.sorting_desc_disabled:before, table.dataTable thead > tr > th.sorting_desc_disabled:after, table.dataTable thead > tr > td.sorting:before, table.dataTable thead > tr > td.sorting:after, table.dataTable thead > tr > td.sorting_asc:before, table.dataTable thead > tr > td.sorting_asc:after, table.dataTable thead > tr > td.sorting_desc:before, table.dataTable thead > tr > td.sorting_desc:after, table.dataTable thead > tr > td.sorting_asc_disabled:before, table.dataTable thead > tr > td.sorting_asc_disabled:after, table.dataTable thead > tr > td.sorting_desc_disabled:before, table.dataTable thead > tr > td.sorting_desc_disabled:after {
  position: absolute;
  display: block;
  opacity: .125;
  right: 10px;
  line-height: 9px;
  font-size: .8em
}

table.dataTable thead > tr > th.sorting:before, table.dataTable thead > tr > th.sorting_asc:before, table.dataTable thead > tr > th.sorting_desc:before, table.dataTable thead > tr > th.sorting_asc_disabled:before, table.dataTable thead > tr > th.sorting_desc_disabled:before, table.dataTable thead > tr > td.sorting:before, table.dataTable thead > tr > td.sorting_asc:before, table.dataTable thead > tr > td.sorting_desc:before, table.dataTable thead > tr > td.sorting_asc_disabled:before, table.dataTable thead > tr > td.sorting_desc_disabled:before {
  bottom: 50%;
  content: "▲"
}

table.dataTable thead > tr > th.sorting:after, table.dataTable thead > tr > th.sorting_asc:after, table.dataTable thead > tr > th.sorting_desc:after, table.dataTable thead > tr > th.sorting_asc_disabled:after, table.dataTable thead > tr > th.sorting_desc_disabled:after, table.dataTable thead > tr > td.sorting:after, table.dataTable thead > tr > td.sorting_asc:after, table.dataTable thead > tr > td.sorting_desc:after, table.dataTable thead > tr > td.sorting_asc_disabled:after, table.dataTable thead > tr > td.sorting_desc_disabled:after {
  top: 50%;
  content: "▼"
}

table.dataTable thead > tr > th.sorting_asc:before, table.dataTable thead > tr > th.sorting_desc:after, table.dataTable thead > tr > td.sorting_asc:before, table.dataTable thead > tr > td.sorting_desc:after {
  opacity: .6
}

table.dataTable thead > tr > th.sorting_desc_disabled:after, table.dataTable thead > tr > th.sorting_asc_disabled:before, table.dataTable thead > tr > td.sorting_desc_disabled:after, table.dataTable thead > tr > td.sorting_asc_disabled:before {
  display: none
}

.dataTables_wrapper .dataTables_filter input {
  margin-left: 7px;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #858796;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #d1d3e2;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.35rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.dataTables_wrapper .dataTables_filter input:focus {
  color: #858796;
  background-color: #fff;
  border-color: #a7b9ef;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgb(78 115 223 / 25%);
}

.dataTables_wrapper .dataTables_filter {
  text-align: right;
  padding: 10px;
}

#cameras-fullinfo-table > .dataTables_wrapper .dataTables_filter{
  text-align: left;
  padding: 10px 10px 10px 0px;
  position: absolute;
  top: 5px;
}

#cameras-fullinfo-table {
  font-size: smaller;
  overflow-x: visible;
}

@media (max-width: 576px) {
  .dataTables_wrapper .dataTables_filter {
    text-align: center;
  }
}

.dataTables_wrapper .dataTables_filter label {
  font-size: 17px;
  font-weight: bold;
}
/* DATATABLES */

.actions-price span {
  text-decoration: line-through;
  color: var(--bs-secondary);
}

.actions-price {
  color: var(--bs-danger);
}

.connections-info {
  width: 50px;
}

.navbar-expand .navbar-nav {
  align-items: center;
}

a.open-door {
  color: white!important;
  height: 40px!important;
  background-color: var(--bs-btn-bg);
}

.tooltip {
  --bs-tooltip-max-width: auto!important;
}

@media (min-width: 576px) {
  #open-entrance-menu {
    width: max-content;
    right: -150%;
  }
}

.dfcrm-pass-icon {
  position: absolute;
  right: 25px;
  top: 44px;
  color: var(--bs-primary);
}

#store-preorder {
  display: none;
  /*display: flex;*/
  line-height: 1rem;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 5px;
  /*flex-direction: column;*/
  border: none;
  z-index: 1000;
  position: fixed;
  width: 2.75rem;
  height: 2.75rem;
  bottom: 1rem;
  right: 4.1rem;
  /*left: 50%;
  margin-right: -50%;
  transform: translate(-50%, 0%);*/
}

#store-preorder span {
  font-size: 0.8rem;
  font-weight: bold;
}

.cart-change {
  height: 40px;
}

#cart-payment {
  background-color: #FFE083;
  border-style: none;
  border-radius: 7px;
}

#cart-payment:hover {
  background-color: #f1c645;
}

#orders-list td, #dvr-download-list td, #orders-list-details td {
  vertical-align: middle;
}

#orders-list, #orders-list-details, #dvr-download-list, .tbl-white {
  background: white;
}

[data-bs-theme=dark] #orders-list, #orders-list-details, #dvr-download-list, .tbl-white {
  background: var(--bs-body-bg);
}

.order-info-img {
  width: 90px;
}

@media (max-width: 576px) {
  .order-info-img {
    width: 60px;
  }
}

.content-fit {
  width: fit-content;
  min-width: 350px;
}

#grid-toggle {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
}
#grid-toggle.hide {
  display: none !important;
}

.floating-controls {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1050;
  opacity: 1;
}

.floating-controls.hidden {
  transform: translate(-50%, 100%);
  opacity: 0;
  pointer-events: none;
}

#spo-cont .row {
  line-height: 0;
}

.dvr-open-btn {
  z-index: 10;
  right: 10px;
  top: 5px;
}

#spo-cont {
  background-color: #000000;
}