/*==================================================
  Manual Kit Document Search
==================================================*/

#searchMount {
  display: flex;
  align-items: center;
  min-width: 0;
}

.toolbar-search-panel[hidden] {
  display: none;
}

.toolbar-search-panel {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 31px;
  margin-left: 5px;
  padding: 0 4px 0 7px;
  box-sizing: border-box;
  border: 1px solid #48515f;
  border-radius: 5px;
  background: #171b21;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.toolbar-search-panel.is-empty .toolbar-search-count {
  color: #8f98a5;
}

.toolbar-search-panel.is-no-match {
  border-color: #b85757;
}

.toolbar-search-input {
  width: 190px;
  height: 25px;
  padding: 0 6px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f1f4f8;
  font: inherit;
  user-select: text;
}

.toolbar-search-input::placeholder {
  color: #77818e;
}

.toolbar-search-input::-webkit-search-cancel-button {
  display: none;
}

.toolbar-search-count {
  min-width: 48px;
  padding: 0 4px;
  color: #aeb7c2;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}

.toolbar-search-option,
.toolbar-search-nav,
.toolbar-search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #aeb7c2;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.toolbar-search-option {
  width: 29px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.toolbar-search-nav {
  font-family: Arial, sans-serif;
  font-size: 9px;
}

.toolbar-search-close {
  font-family: Arial, sans-serif;
  font-size: 19px;
}

.toolbar-search-option:hover,
.toolbar-search-nav:hover,
.toolbar-search-close:hover {
  border-color: #414a57;
  background: #303640;
  color: #ffffff;
}

.toolbar-search-option.is-active {
  border-color: #5d8ec2;
  background: #28476a;
  color: #ffffff;
}

.toolbar-search-option:focus-visible,
.toolbar-search-nav:focus-visible,
.toolbar-search-close:focus-visible,
.toolbar-search-input:focus-visible {
  outline: 2px solid #6fa8dc;
  outline-offset: -2px;
}

/* 모든 검색 결과 */
.CodeMirror .cm-manual-search-match {
  border-radius: 2px;
  background: rgba(238, 196, 68, 0.38);
  color: inherit !important;
}

/* 현재 검색 결과 */
.CodeMirror .cm-manual-search-current {
  border-radius: 2px;
  background: #e58c32;
  color: #171b21 !important;
  box-shadow: 0 0 0 1px rgba(255, 221, 151, 0.75);
}

@media (max-width: 1050px) {
  .toolbar-search-input {
    width: 140px;
  }

  .toolbar-search-count {
    min-width: 42px;
  }
}

@media (max-width: 780px) {
  #searchMount {
    position: static;
  }

  .toolbar-search-panel {
    position: absolute;
    left: 8px;
    right: 8px;
    z-index: 80;
    margin-left: 0;
    background: #171b21;
  }

  .toolbar-search-input {
    flex: 1 1 auto;
    width: auto;
  }
}
