/**
 * APEX Spotlight Search
 * Author: Daniel Hochleitner
 * Credits: APEX Dev Team: /i/apex_ui/css/core/Spotlight.css
 * Version: 1.6.1
 */
.apx-Spotlight {
  display: flex;
  overflow: hidden;
  height: auto !important;
}

.apx-Spotlight-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Body Class to prevent scrolling when spotlight is open */
body.apex-spotlight-active {
  overflow: hidden;
}

/* Spotlight Results */
.apx-Spotlight-results {
  background-color: rgba(255, 255, 255, 0.98);
  flex-grow: 1;
  overflow: auto;
  max-height: 50vh;
}

.apx-Spotlight-results:empty {
  display: none;
}

/* Spotlight Results List */
.apx-Spotlight-resultsList {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* List Item */
.apx-Spotlight-result:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.apx-Spotlight-result .apx-Spotlight-link:hover {
  text-decoration: none;
}

.apx-Spotlight-result.is-active .apx-Spotlight-link {
  text-decoration: none;
  background-color: #0572CE;
  color: #fff;
}

.apx-Spotlight-result.is-active .apx-Spotlight-link .apx-Spotlight-desc, .apx-Spotlight-result.is-active .apx-Spotlight-link .apx-Spotlight-shortcut {
  color: #fff;
}

.apx-Spotlight-result.is-active .apx-Spotlight-link .apx-Spotlight-shortcut {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Search Field */
.apx-Spotlight-search {
  padding: 16px;
  flex-shrink: 0;
  display: flex;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: -1px;
}

.apx-Spotlight-search .apx-Spotlight-icon {
  position: relative;
  z-index: 1;
  background-color: #bdc3c7;
}

.apx-Spotlight-field {
  flex-grow: 1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.apx-Spotlight-input {
  font-size: 20px !important;
  line-height: 32px;
  height: 64px;
  padding: 16px 16px 16px 64px;
  border-width: 0;
  display: block;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
}

.apx-Spotlight-input:focus {
  outline: none;
}

/* Result Link */
.apx-Spotlight-link {
  display: block;
  display: flex;
  padding: 16px;
  color: #202020;
  align-items: center;
}

.apx-Spotlight-link:focus {
  outline: none;
}

.apx-Spotlight-icon {
  margin-right: 16px;
  padding: 8px;
  width: 32px;
  height: 32px;
  box-shadow: 0 0 0 1px #fff;
  border-radius: 2px;
  background-color: #399bea;
  color: #fff;
}

.apx-Spotlight-result--app .apx-Spotlight-icon {
  background-color: #f54b21;
}

.apx-Spotlight-result--ws .apx-Spotlight-icon {
  background-color: #24cb7f;
}

.apx-Spotlight-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apx-Spotlight-label {
  font-size: 14px;
  font-weight: 500;
}

.apx-Spotlight-desc {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.65);
}

.apx-Spotlight-shortcut {
  line-height: 16px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.65);
  padding: 4px 12px;
  border-radius: 24px;
  background-color: rgba(0, 0, 0, 0.025);
}

/* Spotlight Dialog */
body .ui-dialog.ui-dialog--apexspotlight {
  border-width: 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  background-color: transparent;
}

body .ui-dialog.ui-dialog--apexspotlight .ui-dialog-titlebar {
  display: none;
}

@media only screen and (max-height: 768px) {
  .apx-Spotlight-results {
    max-height: 390px;
  }
}

/* Tippy History Popover */
ul.spotlight-history-list {
  text-align: left;
}

a.spotlight-history-link,
a.spotlight-history-delete {
  color: #fff;
}

/* APEX Spotlight Search Orange Theme */
.apx-Spotlight-result-orange.is-active .apx-Spotlight-link {
  background-color: #f59e33;
  color: #fff;
}

.apx-Spotlight-icon-orange {
  background-color: #79787e;
  color: #fff;
}

/* APEX Spotlight Search Red Theme */
.apx-Spotlight-result-red.is-active .apx-Spotlight-link {
  background-color: #da1b1b;
  color: #fff;
}

.apx-Spotlight-icon-red {
  background-color: #606060;
  color: #fff;
}

/* APEX Spotlight Search Dark Theme */
.apx-Spotlight-result-dark.is-active .apx-Spotlight-link {
  background-color: #323336;
  color: #fff;
}

.apx-Spotlight-icon-dark {
  background-color: #e6e6e6;
  color: #404040;
  box-shadow: 0 0 0 1px #404040;
}
