* {
  direction: rtl !important;
}

.brand-image {
  float: right;
}
body {
  margin: 0;
  padding: 0;
}
.content-wrapper,
.main-footer,
.main-header {
  margin-left: 0px;
  margin-right: 250px;
}
.mr-auto-navbav {
  margin-right: auto !important;
}
.navbar-expand .navbar-nav .nav-link {
  padding-right: 1rem;
  padding-left: 1rem;
}
.modal {
   margin-top: 3%;  
  /* z-index: 10001; */
}

/* .modal .select2-container {
  z-index: 10002;
} */

.select2-selection__arrow {
  right: auto !important;
  left: 10px !important; /* Adjust this value to suit your layout */
}
.modal-header .close {
  margin: -1rem -1rem -1rem 0 !important;
}

[class*="icheck-"]
  > input:first-child:checked
  + input[type="hidden"]
  + label::after,
[class*="icheck-"] > input:first-child:checked + label::after {
  right: 15px;
  left: auto;
}
.nav-sidebar .nav-link > .right,
.nav-sidebar .nav-link > p > .right {
  left: 1rem;
  right: auto;
}
.nav-sidebar .nav-link > .right:nth-child(2),
.nav-sidebar .nav-link > p > .right:nth-child(2) {
  left: 2.2rem;
  right: auto;
}
.small-box .icon > i {
  left: 15px;
  right: auto;
}





/* Loader styles */
.overlay {
  display: flex;
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
}

.overlay i {
  font-size: 50px;
  color: #379ce0; /* Change the color here */
}

.register-box {
  width: 80% !important;
  margin: 7% auto;
}

.card-register {
  position: relative;
  padding: 20px; /* Adjust padding as needed */
}

.card-register::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url('../../../assets/images/jomhoria.png');
  background-size: cover;
  background-position: center; */
  opacity: 0.1; /* Adjust the opacity (0.5 in this case) */
}

.waiting-status {
  background-color: #e8edf8 !important; /* Change this color to the desired background color */
}

.wanted-status {
  background-color: #fdb7b4 !important; /* Change this color to the desired background color */
}

.custom-modal {
  max-width: 65% !important;
  /* Adjust the max-width to your desired size */
}

div.dataTables_wrapper div.dataTables_filter {
  text-align: left !important;
}

/* Positioning the autocomplete dropdown */
#searchResults {
  position: absolute;
  width: calc(100% - 40px); /* Adjust the width as needed */
  top: calc(100% + 10px); /* Position it below the search input */
  z-index: 1000;
  background-color: #ebe8e8;
  border: 1px solid #ced4da;
  border-radius: 4px;
  display: none;
}

/* Styling for autocomplete items */
.autocomplete-item {
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.3s;
  border-bottom: solid 1px gray;
}

.scrollable-div {
  max-height: 500px;
  overflow-y: auto;
}
.person-item {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center; /* Vertically center the content */
  height: 64px; /* Set the height as per your requirement */
  border-bottom: solid 1px rgb(180, 178, 178);
}

/* Ensure images are centered vertically */
.person-item img {
  align-self: center;
}

.card-search {
  /* margin-bottom: 2px !important;
  margin-top: 2px !important; */
  cursor: pointer;
  height: 64px;
  background-color: #f4fbff;
  /* background: linear-gradient(to left, #ffffff, #e7e7e7);  */
}

.card-search:hover {
  /* background: linear-gradient(to left, #e7e7e7, #ffffff); */
  background-color: #d7edfc;
  transition: 0.3s;
}
.autocomplete-item:hover {
  opacity: 0.8;
  background-color: #f0f0f0;
}

.no-results {
  padding: 5px;
}

@media (min-width: 992px) {
  .sidebar-mini.sidebar-collapse .content-wrapper,
  .sidebar-mini.sidebar-collapse .main-footer,
  .sidebar-mini.sidebar-collapse .main-header {
    margin-right: 4.6rem !important;
  }
  .sidebar-mini.sidebar-collapse .content-wrapper,
  .sidebar-mini.sidebar-collapse .main-footer,
  .sidebar-mini.sidebar-collapse .main-header {
    margin-right: 4.6rem !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .main-sidebar,
  .main-sidebar::before {
    box-shadow: none !important;
    margin-right: -250px;
  }

  .content-wrapper,
  .content-wrapper::before,
  .main-footer,
  .main-footer::before,
  .main-header,
  .main-header::before {
    margin-right: 0;
  }

  .custom-modal {
    max-width: 100% !important;
    /* Adjust the max-width to your desired size */
  }

  .sidebar-open .main-sidebar,
  .sidebar-open .main-sidebar::before {
    margin-right: 0;
  }
  div.dataTables_wrapper div.dataTables_filter {
    text-align: center !important;
  }
}
