/* ==========================================================================
   Filters and Inputs
   ========================================================================== */

   .filter-box {
    margin-bottom: 20px;
  }
  
  .filter-box .input-container {
    position: relative;
    margin-bottom: 10px;
  }
  /*
  .filter-box .filter-label {
    color: #000;
    font-size: 16px;
    transition: -webkit-transform 0.2s ease-out, -webkit-font-size 0.2s ease-out, -webkit-color 0.2s ease-out;
    transition: transform 0.2s ease-out, font-size 0.2s ease-out, color 0.2s ease-out;
    transition: transform 0.2s ease-out, font-size 0.2s ease-out, color 0.2s ease-out, -webkit-transform 0.2s ease-out, -webkit-font-size 0.2s ease-out, -webkit-color 0.2s ease-out;
    position: absolute;
    top: 8px;
    left: 8px;
    pointer-events: none;
  }
    */
  
  .filter-box .label-inside {-
    transform: translateY(0) scale(1);
    font-size: 12px;
    color: #555;
  }
  
  .filter-box .filter-input {
    width: 175px;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: width 0.4s ease-in-out;
    background-color: #ffffff;
    color: #000;
  }
  
  .filter-box .filter-input:focus {
    width: 350px;
    outline: none;
    border-color: #007bff;
  }
  
  .filter-box .filter-input:focus + .filter-label,
  .filter-box .filter-input:not(:placeholder-shown) + .filter-label {
    transform: translateY(-140%) scale(0.8);
    font-size: 12px;
    color: #555;
  }
  
  /* ==========================================================================
     Searchable Select and Dropdowns
     ========================================================================== */
  
  .searchable-select {
    position: relative;
    display: flex;
    flex-direction: column;
  }
  
  .dropdown-container {
    position: relative;
  }
  
  .image-with-input {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #ffffff;
  }
  
  .image-with-input img {
    padding-left: 5px;
  }
  
  .image-with-input input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    background-color: transparent;
    color: #000;
    outline: none;
    margin: 10px;
  }
  
  .dropdown-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* Ensure it appears above other elements */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile Safari */
  }
  
  .dropdown-option {
    padding: 8px 10px;
    cursor: pointer;
    color: #000;
    border-bottom: 1px solid #ccc;
  }
  
  .dropdown-option:hover {
    background-color: #f0f0f0;
    color: #000;
  }
  
  .dropdown-option:last-child {
    border-bottom: none;
  }
  
  .sticky-search {
    position: -webkit-sticky; /* Safari prefix */
    position: sticky;
    top: 0; /* Sticks to the top of the viewport */
    z-index: 100; /* Ensures it stays above other content */
    width: 100%; /* Full width of its container, adjust as needed */
    padding: 8px; /* Optional: Adds padding for better appearance */
    background-color: #ffffff; /* Ensures the background is visible */
    border: 1px solid #ccc; /* Adds a border for visibility */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Adds a shadow for depth */
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Safari prefix for box-shadow */
  }
  
  /* Ensure it works within a container or parent with scrolling */
  .search-container {
    position: relative; /* Helps with sticky positioning in Safari */
    overflow: visible; /* Ensure sticky works correctly in Safari */
  }
  
  /* Mobile Adjustments */
  @media (max-width: 768px) {
    .sticky-search {
      position: -webkit-sticky; /* Safari prefix */
      position: sticky;
      top: 68px; /* Sticks to the top of the viewport */
      z-index: 100; /* Ensures it stays above other content */
      width: 100%; /* Full width of its container, adjust as needed */
      padding: 8px; /* Optional: Adds padding for better appearance */
      background-color: #ffffff; /* Ensures the background is visible */
      border: 1px solid #ccc; /* Adds a border for visibility */
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Adds a shadow for depth */
      -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Safari prefix for box-shadow */
    }
  
    .filter-box .filter-input {
      width: 100%; /* Full width on mobile */
    }
  
    .filter-box .filter-input:focus {
      width: 100%; /* Full width on mobile focus */
    }
  
    .dropdown-wrapper {
      width: 100%; /* Full width on mobile */
    }
  }

.curr-dropdown {
    position: relative;
    display: inline-block;
    margin: 10px;
}

.curr-dropdown-button {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: black;
}

.curr-dropdown-content {
    display: block;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1;
    width: 350px; /* Match button width */
    max-height: 200px; /* Limit height, scroll if needed */
    overflow-y: auto;
}

.curr-checkboxlabel {
    display: block;
    padding: 5px 10px;
    cursor: pointer;
}

.curr-checkboxlabel input {
    margin-right: 5px;
}