body,
html {
  height: 100%;
}

#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
}

#page-content-wrapper {
  flex-grow: 1;
  width: 100%;
  margin-left: 250px;
  overflow: auto;
}

#sidebar-wrapper {
    width: 250px; 
  height: 100vh;
  /* overflow-y: auto; */
  position: fixed; /* Fixed position */

}

#sidebar-wrapper.collapsed {
  width: 80px !important;
  z-index: 1050;
}

#page-content-wrapper.expanded {
  margin-left: 80px; /* Ensure this matches the collapsed sidebar width */
}

/* Adjust the size of the icons and the display of text in collapsed mode */
#sidebar-wrapper.collapsed .nav-link span,
#sidebar-wrapper.collapsed .sidebar-heading h2 {
  display: none;
}

#sidebar-wrapper.collapsed .bi-list {
  display: inline-block;
}

/* Sidebar styling */
#sidebar-wrapper {
  transition: width 0.3s ease;
}

#page-content-wrapper {
  transition: margin-left 0.3s ease;
}

.table-container {
  overflow: visible;
}

#sidebar-wrapper.collapsed ul li a span,
#sidebar-wrapper.collapsed ul li a i {
  display: none;
  /* Hide text labels */
}

#sidebar-wrapper.collapsed ul li a i {
  display: inline-block;
  /* Ensure icons are shown */
}

#sidebar-wrapper ul li ul li a {
  background-color: #4b4f54;
  /* Slightly lighter than the main sidebar color */
}

#sidebar-wrapper ul li a:hover,

#sidebar-wrapper ul li ul li a:hover {
  background-color: #1c1e22;
  /* A bit lighter for hover effect */
}

#sidebar-wrapper.collapsed ul {
  list-style-type: none;
  /* Remove bullets */
  padding-left: 0;
  /* Remove padding that may offset icons to the right */
}

#sidebar-wrapper ul {
  list-style-type: none;
  /* Consistently remove bullets */
  padding-left: 0;
  /* Consistently remove padding */
}


.nav-link i,
.dropdown-toggle i {
    font-size: 16px; /* Standard icon size */
}


.nav-link {
    color: whitesmoke;
}


.table-container {
    overflow: visible; 
  }

.custom-select2+.select2-container {
    min-width: 180px;
}

.word-wrap {
    word-wrap: break-word;
    max-width: 600px;
}

.select2-container {
  width: 100% !important;
  min-width: 250px !important;
  max-width: 600;
}

.select2-selection--multiple {
  min-height: 38px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
}

.select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  white-space: normal;
  max-width: 100%;
  position: relative;
}

.select2-selection__choice {
  margin-top: 0.2rem;
  margin-right: 0.2rem;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  flex: 0 1 auto;
}

td .select2-container {
  min-width: 350px !important;
  max-width:600px;
  width: 100% !important;
  display: inline-block;
}


.select2-search__field {
  width: auto !important;
  min-width: 1em !important;
  max-width: 300px !important;
  flex-grow: 1;
  flex-shrink: 1;
}

.select2-selection__choice.hidden-choice {
  display: none;
}

.select2-selection__choice.more-indicator {
  display: inline-block;
  background-color: #e2e6ea;
  color: #333;
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.select2-selection__rendered {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  max-width: 100%;
}

.select2-selection--multiple {
  max-width: 100%;
  overflow-x: auto;
}

.select2-selection__choice {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}