.disabled {
  pointer-events: none;
  opacity: 0.65;
}

.avatar img {
  object-fit: cover;
}

autocomplete-select {
  display: block;
}

autocomplete-select input.vTextField {
  display: block;
  width: 100%;
  padding: 0.4375rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.53;
  color: #697a8d;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #d9dee3;
  appearance: none;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

autocomplete-select input.vTextField:focus {
  color: #697a8d;
  background-color: #fff;
  border-color: rgba(249, 249, 255, 0.54);
  outline: 0;
  box-shadow: 0 0 0.25rem 0.05rem rgba(105, 108, 255, 0.1);
}

autocomplete-select input.vTextField::placeholder {
  color: #b4bdc6;
  opacity: 1;
}

autocomplete-select input.vTextField:disabled,
autocomplete-select input.vTextField[readonly] {
  background-color: #eceef1;
  opacity: 1;
}

/* Sidebar collapsible (desktop) ------------------------------------------------------------ */

/* Full-height, zero-width rail on the aside's right edge: it only exists to give the sticky
   button a tall containing block, so the button stays at mid-viewport on long pages. */
.sidebar-collapse-rail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 0;
  z-index: 10;
  pointer-events: none;
}

.sidebar-collapse-btn {
  position: sticky;
  top: calc(50vh - 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  padding: 0;
  color: #697a8d;
  background-color: #fff;
  border: 1px solid #d9dee3;
  border-radius: 50%;
  box-shadow: 0 0.125rem 0.25rem rgba(161, 172, 184, 0.4);
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.sidebar-collapse-btn:hover {
  color: #696cff;
  border-color: #696cff;
}

.sidebar-collapse-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.35);
}

.sidebar-collapse-btn i {
  font-size: 1.125rem;
  transition: transform 0.3s;
}

/* Tooltip to the right of collapsed icons. Positioned by sidebar-collapse.js: the menu's
   overflow clips absolutely positioned children, so it is fixed to the viewport. */
.sidebar-tooltip {
  position: fixed;
  z-index: 1100;
  padding: 0.375rem 0.75rem;
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.4;
  white-space: nowrap;
  background-color: #2b2c40;
  border-radius: 0.375rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.15s ease-in-out;
}

.sidebar-tooltip.show {
  opacity: 1;
}

.sidebar-tooltip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  background: inherit;
  transform: translateY(-50%) rotate(45deg);
}

/* Avoid label wrapping while the aside width animates. */
.menu-vertical .menu-inner > .menu-item > .menu-link > div {
  white-space: nowrap;
}

@media (min-width: 1200px) {
  html.layout-menu-collapsed .sidebar-collapse-btn i {
    transform: rotate(180deg);
  }

  /* The :hover selector keeps the icon-only width even if a theme hover-expand is ever enabled. */
  html.layout-menu-collapsed .layout-menu,
  html.layout-menu-collapsed .layout-menu:hover {
    width: 5.25rem;
  }

  html.layout-menu-collapsed .layout-menu .app-brand-logo,
  html.layout-menu-collapsed .layout-menu .app-brand-text {
    display: none;
  }

  html.layout-menu-collapsed .layout-menu .menu-inner > .menu-item,
  html.layout-menu-collapsed .layout-menu .menu-inner > .menu-header {
    width: 5.25rem;
  }

  html.layout-menu-collapsed .layout-menu .menu-inner > .menu-item > .menu-link {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
  }

  html.layout-menu-collapsed .layout-menu .menu-inner > .menu-item > .menu-link > div,
  html.layout-menu-collapsed .layout-menu .menu-header-text,
  html.layout-menu-collapsed .layout-menu .menu-inner > .menu-item > .menu-sub,
  html.layout-menu-collapsed .layout-menu .menu-inner > .menu-item > .menu-toggle::after {
    display: none;
  }

  html.layout-menu-collapsed .layout-menu .menu-inner > .menu-item > .menu-link > .menu-icon {
    margin-right: 0;
  }

  /* Section headers shrink to a centered dash that separates the groups. */
  html.layout-menu-collapsed .layout-menu .menu-inner > .menu-header {
    height: 1px;
    margin: 1.25rem 0 1rem;
    padding: 0;
  }

  html.layout-menu-collapsed .layout-menu .menu-inner > .menu-header::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 1199.98px) {
  .sidebar-collapse-rail {
    display: none;
  }
}
