/* === Bootstrap Select === */
.sidebar-body .bootstrap-select {
  width: 100% !important;
  border-radius: 0px;
}

/* Custom select picker */
.select-picker-container {
  width: 100%;
  height: 33px;
  position: relative;
}

.select-button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-inline: 8px;
  border: 1px solid var(--border);
}
.select-button:hover {
  cursor: pointer;
  background-image: linear-gradient(rgba(0, 0, 0, 0.2));
}

.select-picker-container .select-dropdown {
  display: none;
  position: absolute;
  z-index: 999;
  background-color: var(--background);
  width: 100%;
  height: 100px;
  overflow-y: scroll;
  box-shadow: 0px 5px 5px rgba(0,0,0,0.2);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}
.select-picker-container .select-dropdown.show {
  display: block;
}

.select-option-item {
  width: 100%;
  padding: 2px 8px;
  text-align: center;
}
.select-option-item:hover {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2));
}
.select-option-item.selected {
  background-color: var(--secondary);
}

.select-option-label {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.select-option-checkbox {
  display: none;
}








.sidebar-body .bootstrap-select .btn {
  position: relative;
  box-sizing: border-box;
  background-color: transparent;
  color: var(--text);
  font-size: 14px;
  border: none;
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
  padding: 6px 10px;
  width: 100%;
  text-align: left;
}

.sidebar-body .bootstrap-select .btn:focus,
.sidebar-body .bootstrap-select .btn:hover {
  box-shadow: none;
  border-radius: 0px;
}

/* Dropdown menu */
.sidebar-body .bootstrap-select .dropdown-menu.show {
  background-color: var(--background);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  border: unset;
  border-radius: 0px 0px var(--border-radius) var(--border-radius);
}

/* Dropdown items */
.dropdown-menu.inner.show {
  border-top: 1px solid var(--border);
}

.dropdown-menu.inner.show li .dropdown-item {
  text-align: center;
  color: var(--text);
  padding-block: 3px;
}
.dropdown-menu.inner.show li .dropdown-item .text {
  margin-right: 0;
}
.dropdown-menu.inner.show li .dropdown-item:hover {
  background-color: rgba(0,0,0,.2);
}

/* Selected item checkmark (if using show-tick) */
.sidebar-body .bootstrap-select .dropdown-item.active,
.sidebar-body .bootstrap-select .dropdown-item:active {
  background-color: var(--btn-bg);
  color: var(--text);
}

/* Dropdown select/deselect all */
.bs-actionsbox {
  padding: 0
}
.btn-group.btn-group-sm {
  display: flex;
}

.actions-btn.btn.btn-light {
  border-radius: var(--border-radius-sm) !important;
  padding: 4px;
  text-align: center;
  font-size: 11px;
  color: var(--text);
  margin: 4px;
  background-color: rgba(255,255,255,.1);
  text-wrap: nowrap;
}
.actions-btn.bs-select-all.btn.btn-light {
  border: 1px solid var(--primary);
}
.actions-btn.bs-deselect-all.btn.btn-light {
  border: 1px solid var(--accent);
}