/*.doc-search-widget {
  //background: #fff;
  //border: 0px solid #e7ebf0;
  //border-radius: 0px;
  //box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
 // padding: 14px;
  //margin-top: 14px;
}*/

.doc-search-head {
  margin-bottom: 12px;
}

.doc-search-head-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-search-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  flex: 0 0 24px;
}

.doc-search-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
  color: #182230;
}

.doc-search-subtitle {
  margin: 6px 0 0;
  font-size: 12px;
  color: #667085;
  line-height: 1.45;
}

.doc-search-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.doc-search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.doc-search-input {
  width: 100%;
  height: 44px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 0 42px 0 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.doc-search-input:focus {
  border-color: #8fb4ff;
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.08);
}

.doc-search-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #98a2b3;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
}

.doc-search-clear svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.doc-search-clear:hover {
  background: #f2f4f7;
  color: #344054;
}

.doc-search-clear.is-visible {
  display: inline-flex;
}

.doc-search-btn {
  width: 52px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: #0f62fe;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.doc-search-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.doc-search-btn:hover {
  opacity: .95;
}

.doc-search-results {
  margin-top: 12px;
}

.doc-search-status {
  font-size: 13px;
  color: #667085;
  padding: 8px 2px;
}

.doc-result-card {
  border: 1px solid #e8edf3;
  background: #fbfcfe;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.doc-result-card:hover {
  border-color: #d7dfeb;
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.06);
  transform: translateY(-1px);
}

.doc-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.doc-result-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #0f62fe;
  background: #edf4ff;
  border: 1px solid #dbe8ff;
  border-radius: 999px;
  padding: 4px 8px;
}

.doc-result-score {
  font-size: 11px;
  color: #98a2b3;
  white-space: nowrap;
}

.doc-result-title {
  font-size: 14px;
  font-weight: 800;
  color: #182230;
  line-height: 1.35;
  margin-bottom: 6px;
}

.doc-result-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #475467;
  margin-bottom: 10px;
}

.doc-fulltext-body {
  margin: 10px 0 12px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.9;
  color: #334155;
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  white-space: normal;
  word-break: break-word;
}

.doc-result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.doc-result-link {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #0f62fe;
}

.doc-result-link:hover {
  text-decoration: underline;
}

.doc-action-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #dbe2ea;
  background: #fff;
  color: #182230;
  border-radius: 10px;
  cursor: pointer;
  transition: all .18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.doc-action-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.doc-action-btn:hover {
  border-color: #bfcad8;
  background: #f8fafc;
}

.doc-action-btn.is-done {
  border-color: #cfe3ff;
  background: #edf4ff;
  color: #0f62fe;
}

.doc-action-btn span {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.doc-result-url {
  font-size: 11px;
  color: #98a2b3;
  word-break: break-word;
}

mark {
  background: #fff0b3;
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .doc-search-widget {
    padding: 16px;
    border-radius: 18px;
  }

  .doc-search-title {
    font-size: 18px;
    line-height: 1.25;
  }

  .doc-search-subtitle {
    font-size: 13px;
    line-height: 1.55;
    margin-top: 8px;
  }

  .doc-search-form {
    gap: 10px;
    margin-top: 14px;
  }

  .doc-search-input {
    height: 52px;
    font-size: 18px;
    border-radius: 14px;
    padding: 0 46px 0 16px;
  }

  .doc-search-input::placeholder {
    font-size: 16px;
  }

  .doc-search-clear {
    right: 14px;
    width: 26px;
    height: 26px;
  }

  .doc-search-btn {
    width: 56px;
    height: 52px;
    border-radius: 14px;
  }

  .doc-result-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .doc-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}