/* Entarch sidebar-search.css: Menu Search box (sidebar-search.js) */
.ea-menu-search { padding: 6px 14px; }
.ea-menu-search-sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #0a3d62;
  border-bottom: 1px solid var(--sidebar-border-col, rgba(255,255,255,0.12));
}
.ea-menu-search-box { position: relative; }
.ea-menu-search-ico {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}
.ea-menu-search .ea-menu-search-input {
  display: block;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 2px 8px 2px 24px;
  font-size: 11px;
  line-height: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.22);
  color: #fff;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.ea-menu-search-input::-webkit-search-cancel-button,
.ea-menu-search-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.ea-menu-search-input::placeholder { color: rgba(255,255,255,0.5); }
.ea-menu-search .ea-menu-search-input:focus {
  border-color: #4fc3f7;
  background: rgba(0,0,0,0.32);
}
.ea-menu-search-results {
  display: none;
  margin-top: 5px;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.ea-menu-search a.ea-menu-search-item {
  display: block;
  padding: 5px 9px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #eef1f4;
  color: #1f2d3d;
  font-size: 11px;
  line-height: 1.3;
  text-decoration: none;
  white-space: normal;
}
.ea-menu-search a.ea-menu-search-item:last-child { border-bottom: none; }
.ea-menu-search a.ea-menu-search-item.active,
.ea-menu-search a.ea-menu-search-item:hover {
  background: #e8f4fd;
  border-left-color: #256EAA;
  color: #1f2d3d;
}
.ea-msi-label { display: block; font-weight: 600; }
.ea-msi-path {
  display: block;
  font-size: 10px;
  color: #6c7a89;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ea-menu-search-empty { padding: 6px 9px; font-size: 10px; color: #6c7a89; }

/* Menu entry a search result just led to */
.sidebar a.ea-search-found {
  background: rgba(79,195,247,0.3);
  border-left-color: #4fc3f7 !important;
  color: #fff !important;
  animation: ea-search-pulse 0.8s ease-in-out 3;
}
@keyframes ea-search-pulse {
  50% { background: rgba(79,195,247,0.08); }
}

/* Tablet icon rail has no room for a text box */
@media (min-width: 768px) and (max-width: 991.98px) {
  .sidebar .ea-menu-search { display: none !important; }
}
