/* Autosuggestion styles matching infosyssearch component - merged from primary and secondary endpoints */

.auto-suggestion-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.auto-suggest-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.suggestion-left-column {
  width: 25%;
  min-width: 220px;
  border-right: 1px solid #e6e6e6;
  padding-right: 16px;
}

.suggestion-right-column {
  width: 75%;
  padding-left: 4px;
}

.li-content-wrapper {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  text-align: left;
  cursor: pointer;
  min-height: 36px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.li-content-wrapper:hover {
  background-color: #f5f5f5;
}

.li-content-wrapper:last-child {
  border-bottom: none;
}

.suggestion-icon {
  display: none;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: #007cc3;
  text-align: center;
}

.suggestion-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.suggestion-content-stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.suggestion-left-heading {
  color: rgb(112, 112, 112);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}

.suggestion-search-icon {
  width: 1.5em;
  height: 1.5em;
  display: block;
  margin: 0 12px 0 0;
}

.suggestion-container {
  width: calc(100% - 20px);
  max-width: 1100px;
  z-index: 9;
  margin-left: 0;
  margin-top: 2px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(112, 112, 112, 0.2);
  overflow-y: auto;
  max-height: 340px;
  padding: 14px;
  position: absolute;
  background: #fff;
  top: 215px;
  left: 50%;
  transform: translateX(-50%);
  /* Merges suggestions from primary (bpm-suggestion-right) and secondary (bpm-suggestion-left) endpoints */
}

.suggestion-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.suggestion-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  background: #fff;
}

.suggestion-card:hover {
  border-color: #d8d8d8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.suggestion-card-image,
.suggestion-card-image-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 56px;
}

.suggestion-card-image-placeholder {
  background: linear-gradient(135deg, #eef2f6, #dfe5ec);
}

.suggestion-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.suggestion-card-assettype {
  margin: 0 0 4px;
  color: #007cc3;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-card-heading {
  margin: 0;
  color: #007cc3;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.suggestion-card-description {
  margin: 6px 0 0;
  color: #1f1f1f;
  font-size: 12px;
  text-align: left;
  line-height: 1.35;
  font-weight: 400;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.suggestion-card-link {
  color: #1f1f1f;
  text-decoration: none;
}

.suggestion-card-link:hover,
.suggestion-card-link:focus {
  text-decoration: underline;
}

.mb-10 {
  margin-bottom: 10px;
}

.hide-target {
  display: none !important;
}

@media all and (max-width: 1024px) {
  .suggestion-container {
    top: 245px;
  }
}

@media all and (max-width: 992px) {
  .suggestion-container {
    top: 295px;
  }

  .auto-suggest-layout {
    flex-direction: column;
    gap: 14px;
  }

  .suggestion-left-column,
  .suggestion-right-column {
    width: 100%;
    min-width: 0;
    border-right: 0;
    padding: 0;
  }
}

@media all and (max-width: 767px) {
  .suggestion-container {
    width: calc(100% - 20px);
    margin-left: 0;
    top: 255px;
    padding: 10px;
  }

  .suggestion-type {
    display: none;
  }

  .suggestion-card-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 992px) {
  .suggestion-container {
    top: 295px;
  }
}

@media all and (max-width: 767px) {
  .suggestion-container {
    top: 255px;
    width: calc(100% - 20px);
    padding: 10px;
  }

  .suggestion-type {
    display: none;
  }
}
