.custom-loading {
  border: 3px solid rgba(38, 56, 113, 0.1); /* Light grey */
  border-top: 3px solid #263871; /* Blue */
  border-bottom: 3px solid #263871;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: load 1s linear infinite;
}
@keyframes load {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.read-only{
  background-color: #FFFFFF;
  cursor: pointer;
}


/* limit number of lines */
.limited-text-4 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* number of lines to show */
  -webkit-box-orient: vertical;
}
.limited-text-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1; /* number of lines to show */
  -webkit-box-orient: vertical;
}
.limited-text-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines to show */
  -webkit-box-orient: vertical;
}
.limited-text-3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines to show */
  -webkit-box-orient: vertical;
}


/* profile image */
.profile-pic-wrapper {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.pic-holder {
  text-align: center;
  position: relative;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  border: 2px dashed #D9E3E0;
}
.pic-banner {
  text-align: center;
  position: relative;
  border-radius: 10px;
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  background-color: #f8f9fc;
}
.pic-banner .pic {
  height: 100%;
  width: 100%;
  -o-object-fit: fill;
  object-fit: fill;
}
.pic-banner .pic-holder .pic {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.pic-holder .upload-file-block,
.pic-holder .upload-loader {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(90, 92, 105, 0.7);
  color: #f8f9fc;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.pic-holder .upload-file-block {
  cursor: pointer;
}
.pic-holder:hover .upload-file-block,
.uploadProfileInput:focus ~ .upload-file-block {
  opacity: 1;
}
.pic-holder.uploadInProgress .upload-file-block {
  display: none;
}
.pic-holder.uploadInProgress .upload-loader {
  opacity: 1;
}


/* custom file upload */
.file-upload-content {
  display: none;
  text-align: center;
  cursor: pointer;
}
.file-upload-input {
  position: absolute;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  outline: none;
  opacity: 0;
  cursor: pointer;
}
.image-upload-wrap {
  border: 2px dashed #D9E3E0;
  position: relative;
  border-radius: 5px;
  height: 154px;
}
.image-dropping,
.image-upload-wrap:hover {
  background-color: #D9E3E0;
  border: 2px dashed #D9E3E0;
}
.drag-text {
  text-align: center;
}
.drag-text p {
  color: #024430;
  padding: 60px 0;
}
.file-upload-image {
  height: 150px;
  width: 100%;
  margin: auto;
  border-radius: 5px;
  object-fit: cover;
  display: none;
}


/* Snackbar css */
.snackbar {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-size: 14px;
  transform: translateX(-50%);
}
.snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}
@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}
@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}
@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

/*============================================*/
/*CSS OVERWRITES */
/*============================================*/
.swal2-container {
  z-index: 10000 !important;
}
.fancybox__container {
  z-index: 10000 !important;
}
.jsPanel {
  z-index: 10000 !important;
}


/* CSS for custom controls */
.custom-control-icon.custom-smallify::before{
  /*content: "\025B4";*/
  content: url(../images/icons/chevron-up.svg);
}
.custom-control-icon.custom-minimize::before {content: url(../images/icons/minus.svg); }
.custom-control-icon.custom-normalize::before{ content: url(../images/icons/chevron-down.svg); }
.custom-control-icon.custom-maximize::before{ content: url(../images/icons/minus.svg); }
.custom-control-icon.custom-close::before{content: url(../images/icons/x.svg); }


.oyoplayer {
  box-sizing                  : border-box;
  width                       : 500px;
  min-width                   : 272px;
  max-width                   : 500px;
  border-radius               : unset !important;
  box-shadow                  : unset !important;
  background-color            : #000000;
  padding                     : unset !important;
  margin-bottom               : unset !important;
  /*font-family                 : 'Inter', 'Roboto', Arial, Verdana, Helvetica, sans-serif;*/
  font-size                   : 10pt;
  user-select                 : none;
  overflow                    : hidden;
}

.air-datepicker {
  z-index: 10000 !important;
}

.bootstrap-tagsinput {
  width: 100% !important;
  border: 1px solid #d3dfea;
  padding: 0.375rem 0.75rem;
}

.bootstrap-tagsinput .tag {
  margin-right: 2px;
   color: unset !important;
}



/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #024430;
}

input:focus + .slider {
  box-shadow: 0 0 1px #024430;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}


.password-wrapper {
  position: relative;
}



.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-toggle:hover {
  color: #495057;
}

.form-control {
  padding-right: 45px;
}





/* Remove default select arrow - Targeted approach */

/* Target the select element directly before Slim Select initialization */
select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
  padding-right: 30px !important;
}

/* Remove IE/Edge default arrow */
select::-ms-expand {
  display: none !important;
}

/* If you see double arrows in the Slim Select dropdown itself */
.ss-main .ss-single-selected {
  background-image: none !important;
}

.ss-main .ss-arrow {
  /* Ensure only one arrow shows */
  display: block !important;
}

/* Alternative: If the original select is still visible, force hide it */
select[data-ssid] {
  display: none !important;
}

/* Remove any padding/background on the Slim Select container that might show an arrow */
.ss-main {
  background: none !important;
}

.ss-single-selected::after {
  display: none !important;
}

/* FIXED: Only target select elements and Slim Select components */
/* Remove the nuclear option that was breaking everything */
select,
.ss-main *:not(.ss-arrow):not(.ss-arrow *) {
  background-image: none !important;
}

/* Then add back Slim Select's arrow specifically */
.ss-main .ss-arrow path {
  fill: currentColor;
}

/* OPTIONAL: If you still see double arrows, try this more specific approach */
.ss-content select,
.ss-list select {
  background-image: none !important;
}



/* For datatable responsiveness and fixing of dropdown (scoped) */
.dataTables_scrollBody {
  overflow-y: auto;
  overflow-x: auto;
}

table.dataTable {
  border-collapse: separate;
}

/* Actions column should be visible */
td:last-child {
  position: relative;
  overflow: visible !important;
}

/* Only apply fixed positioning to dropdowns inside datatables to avoid affecting site-wide dropdowns */
.dataTables_scrollBody .dropdown-menu {
  position: fixed !important;
  will-change: transform;
  z-index: 1050;
}

/* Ensure dropdown button container inside datatable doesn't clip */
.dataTables_scrollBody .dropdown {
  position: static !important;
}





/*
 Printing styles
*/

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }

  #printable-content,
  #printable-content * {
    visibility: visible;
  }

  #printable-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  .no-print {
    display: none !important;
  }

  .card {
    box-shadow: none;
    page-break-inside: avoid;
  }
}




/* Leaflet Map */

.location-search-wrap {
  position: relative;
}

.location-search-wrap .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.location-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.location-suggestions li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}

.location-suggestions li:hover {
  background: #f5f5f5;
}

.selected-location-display {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  background: #f0f8ff;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
}

.location-spinner {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: #888;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spin {
  animation: spin 0.8s linear infinite;
}

/* Dim the map while loading */
#locationMap.map-loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s;
}



/* custom file upload */
.file-upload-content {
  display: none;
  text-align: center;
  cursor: pointer;
}
.file-upload-input {
  position: absolute;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  outline: none;
  opacity: 0;
  cursor: pointer;
}
.image-upload-wrap {
  border: 2px dashed #D9E3E0;
  position: relative;
  border-radius: 5px;
  height: 154px;
}
.image-dropping,
.image-upload-wrap:hover {
  background-color: #D9E3E0;
  border: 2px dashed #D9E3E0;
}
.drag-text {
  text-align: center;
}
.drag-text p {
  color: #024430;
  padding: 60px 0;
}
.file-upload-image {
  height: 150px;
  width: 100%;
  margin: auto;
  border-radius: 5px;
  object-fit: cover;
  display: none;
}




.slide-caption {
  position: absolute;
  bottom: 10px;
  right: 16px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
}


/* removes delete button from first repeater element */
/* [data-repeater-item]:first-child [data-repeater-delete] { display: none; } */




