/* nexusACE navigation search — permission-safe client-side menu discovery. */
.nx-command-search {
  position: relative;
  width: clamp(300px, 31vw, 520px);
  margin-left: auto;
  margin-right: .45rem;
  flex: 0 1 520px;
  z-index: 1080;
}

.nx-command-search__field {
  min-height: 44px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .32rem .38rem .32rem .75rem;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.17);
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.nx-command-search:focus-within .nx-command-search__field,
.nx-command-search.is-open .nx-command-search__field {
  background: #fff;
  border-color: rgba(23,184,214,.5);
  box-shadow: 0 0 0 .2rem rgba(23,184,214,.13), 0 14px 30px rgba(5,15,25,.18);
}

.nx-command-search__icon {
  color: rgba(255,255,255,.75);
  flex: 0 0 auto;
}

.nx-command-search:focus-within .nx-command-search__icon,
.nx-command-search.is-open .nx-command-search__icon {
  color: #0e7182;
}

.nx-command-search__input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: .93rem;
  font-weight: 650;
}

.nx-command-search__input::placeholder { color: rgba(255,255,255,.62); }
.nx-command-search:focus-within .nx-command-search__input,
.nx-command-search.is-open .nx-command-search__input { color: #17212b; }
.nx-command-search:focus-within .nx-command-search__input::placeholder,
.nx-command-search.is-open .nx-command-search__input::placeholder { color: #7b8794; }

.nx-command-search__shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: .15rem .48rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.12);
  color: rgba(255,255,255,.72);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .03em;
  white-space: nowrap;
}

.nx-command-search:focus-within .nx-command-search__shortcut,
.nx-command-search.is-open .nx-command-search__shortcut {
  border-color: #d9e2ea;
  background: #f4f7f9;
  color: #667585;
}

.nx-command-search__clear,
.nx-sidebar-search__clear {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: transparent;
  color: rgba(255,255,255,.65);
}

.nx-command-search:focus-within .nx-command-search__clear,
.nx-command-search.is-open .nx-command-search__clear { color: #64748b; }
.nx-command-search__clear:hover,
.nx-command-search__clear:focus-visible { background: rgba(23,184,214,.10); color: #0e7182; }

.nx-command-search__panel {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid rgba(203,214,224,.96);
  border-radius: 17px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 22px 48px rgba(15,23,42,.22);
  color: #17212b;
}

.nx-command-search__panel[hidden] { display: none !important; }
.nx-command-search__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .85rem .55rem;
  color: #667585;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nx-command-search__results { max-height: min(440px, 58vh); overflow-y: auto; padding: 0 .42rem .42rem; }
.nx-command-result {
  width: 100%;
  min-height: 55px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .52rem .62rem;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #17212b;
  text-align: left;
}
.nx-command-result:hover,
.nx-command-result:focus-visible,
.nx-command-result.is-active { background: #eef8fb; color: #102b34; outline: 0; }
.nx-command-result__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: #edf4f7;
  color: #0e7182;
}
.nx-command-result.is-active .nx-command-result__icon { background: #dff4f8; }
.nx-command-result__body { min-width: 0; flex: 1 1 auto; }
.nx-command-result__title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 800; }
.nx-command-result__group { display: block; margin-top: .08rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6b7886; font-size: .73rem; }
.nx-command-result__enter { color: #97a4af; font-size: .8rem; }
.nx-command-search__empty { padding: 1.1rem 1rem 1.2rem; text-align: center; color: #6b7886; }
.nx-command-search__empty i { display: block; margin-bottom: .4rem; color: #9aa7b2; font-size: 1.35rem; }

.nx-sidebar-search {
  position: sticky;
  top: -1.2rem;
  z-index: 8;
  margin: -.2rem 0 1rem;
  padding: .55rem 0 .7rem;
  background: linear-gradient(180deg, #16212b 0%, rgba(22,33,43,.98) 84%, rgba(22,33,43,0) 100%);
}
.nx-sidebar-search__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin: 0 .3rem .42rem;
  color: rgba(255,255,255,.56);
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nx-sidebar-search__box {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .36rem .3rem .68rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.nx-sidebar-search__box:focus-within {
  border-color: rgba(23,184,214,.55);
  background: rgba(255,255,255,.11);
  box-shadow: 0 0 0 .18rem rgba(23,184,214,.11);
}
.nx-sidebar-search__icon { color: rgba(255,255,255,.62); }
.nx-sidebar-search__input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: .88rem;
  font-weight: 650;
}
.nx-sidebar-search__input::placeholder { color: rgba(255,255,255,.48); }
.nx-sidebar-search__clear:hover,
.nx-sidebar-search__clear:focus-visible { background: rgba(255,255,255,.09); color: #fff; }
.nx-sidebar-search__empty {
  margin-top: .65rem;
  padding: .8rem;
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 14px;
  color: rgba(255,255,255,.66);
  text-align: center;
  font-size: .82rem;
}

.nx-offcanvas-search { padding: .8rem 1rem .25rem; }
.nx-offcanvas-search .nx-sidebar-search__box { border-color: #d5e0e8; background: #fff; }
.nx-offcanvas-search .nx-sidebar-search__icon { color: #738292; }
.nx-offcanvas-search .nx-sidebar-search__input { color: #17212b; }
.nx-offcanvas-search .nx-sidebar-search__input::placeholder { color: #8794a0; }
.nx-offcanvas-search .nx-sidebar-search__clear { color: #738292; }
.nx-offcanvas-search .nx-sidebar-search__clear:hover { background: #eef8fb; color: #0e7182; }
.nx-offcanvas-search .nx-sidebar-search__empty { color: #667585; border-color: #d5e0e8; }

[data-nav-section][hidden],
[data-nav-folder][hidden],
[data-nav-item][hidden] { display: none !important; }

@media (max-width: 1399.98px) {
  .nx-command-search { width: clamp(270px, 27vw, 390px); }
  .nx-command-search__shortcut { display: none; }
}
