.spinner-border {
    width: 1rem;
    height: 1rem;
    border: 0.2em solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-spinner-container {
    position: absolute;
    top: 100%;
    left: 95%;
    transform: translate(-50%, -50%);
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    width: 100%;
    height: 100%;
    display: none; 
}

.modal-spinner {
    width: 3rem; /* Larger size for the spinner */
    height: 3rem; /* Larger size for the spinner */
    border: 0.3em solid rgba(0, 0, 0, 0.1); /* Light border */
    border-radius: 50%;
    border-top-color: #000000; /* Black color for the spinner */
    animation: spin 0.75s linear infinite;
}

.modal-body {
    position: relative; /* Ensure the spinner container is positioned relative to this */
}

.close-link {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px;
    text-decoration: underline;
    cursor: pointer;
}

.search-results-div {
    overflow-y: auto;
    max-height: calc(95vh - 100px);
}

.search-results-div-searchpage {
    overflow-y: auto;
    max-height: none;
}


.search-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 9999; /* Ensure it's above other content */
}

.search-div {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 45%; /* Set the width to 45% of the page */
    background-color: #fff; /* White background */
    z-index: 10000; /* Ensure it's above the overlay */
}

.search-input-div {
    padding: 20px; /* Adjust padding as needed */
    margin-top: 40px;
}

.search-results-div {
    overflow-y: auto; /* Add scroll bar if needed */
    padding: 20px; /* Adjust padding as needed */
}


.search-div {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 45%; /* Set the width to 45% of the page */
    background-color: #fff; /* White background */
    z-index: 10000; /* Ensure it's above the overlay */
}


.dark-overlay {
    position: relative;
}

.dark-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
    z-index: 999; /* Ensure the overlay is above other content */
}    

.search_container {
    position: relative;
}

#searchInput {
    padding-right: 30px;
}

.search_btn {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 30px; 
    background: transparent;
    border: none;
    cursor: pointer;
}

  
  .search-results {
    position: absolute; 
    top: 100%; 
    left: 0;
    width: calc(100% + 200px);
    background-color: #fff;
    border: 1px solid #ccc;
    z-index: 9999; 
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: #F8F9FD;   
    border-bottom-left-radius: 10px; 
    border-bottom-right-radius: 10px;
    max-height: 400px; /* Add max height */
    overflow-y: auto; /* Add scrollbar if content exceeds max height */
}


.response-row {
  margin-bottom: 5px;
  line-height: 25px;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-family: opensans, sans-serif !important;  
}

.response-space {
    margin-bottom: 5px;
    line-height: 10px;
    font-size: 10px !important;
    font-weight: bold;
    font-family: opensans, sans-serif !important;  
    color: #000000 !important;
}

.response-summary {
    margin-bottom: 0px;
    line-height: 15px;
    font-size: 10px !important;
    font-weight: normal;
    font-family: opensans, sans-serif !important;  
    color: #656565 !important;
}

.response-row a {
  color: #009265  !important;
  text-decoration: none;
}

.response-row a:hover {
  text-decoration: underline;
}

.highlight {
  background-color: yellow;
  font-weight: bold;
}

.search-result-row{
    margin-bottom:8px !important;  
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-dialog-slideout {
    position: fixed;
    right: 0;
    margin: 0;
    height: 100%;
    width: 40%;
    max-width: 50% !important;
    min-width: 25%;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    z-index: 1050; /* Ensures the modal is above the backdrop */
    pointer-events: all;
}

.modal.fade .modal-dialog-slideout {
    transform: translateX(100%);
}

.modal.fade.show .modal-dialog-slideout {
    transform: translateX(0);
}

#searchModal .modal-dialog .modal-content {
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    z-index: 1050; /* Ensures the content is above the backdrop */
}

.multi-select-container {
  display: inline-block;
  position: relative;
  width: 100%;  
}

.multi-select-menu {
  position: absolute;
  left: 0;
  top: 0.8em;
  float: left;
  width: 100%;
  background: #fff;
  margin: 1em 0;
  padding: 0.4em 0;
  border: 1px solid #aaa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: none;
}

.multi-select-menu input {
  margin-right: 0.3em;
  vertical-align: 0.1em;
}

.multi-select-button {
  display: inline-block;
  font-size: 0.875em;
  padding: 0.2em 0.6em;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: -0.5em;
  background-color: #fff;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: default;
}

.multi-select-button:after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.4em 0.4em 0 0.4em;
  border-color: #999 transparent transparent transparent;
  margin-left: 0.4em;
  vertical-align: 0.1em;
}

.multi-select-container--open .multi-select-menu { display: block; }

.multi-select-container--open .multi-select-button:after {
  border-width: 0 0.4em 0.4em 0.4em;
  border-color: transparent transparent #999 transparent;
}

.search-dragbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    cursor: ew-resize;
    z-index: 1051;
  }

.article_search .ms-options-wrap > .ms-options > ul input[type="checkbox"] {
    top: 9px;
}