header {
  position: sticky;
  top: 0;
  z-index: 1;

  .header-main {
    background: var(--primary-color);
    height: 44px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding-right: 15px;
  }

  .go-back {
    display: block;
    padding: 2px 15px;

    img {
      width: 12px;
      height: auto;
      display: block;
    }
  }
}

#main {
  /* background: linear-gradient(var(--primary-color) 80px, transparent 80px); */
  display: grid;
  gap: 10px;
}

.search-items {
  display: flex;
  margin-bottom: 20px;
}

.search-item-title {
  font-weight: bold;
  flex: 0 0 50px;
}

.search-item-list {
  display: flex;
  flex-wrap: wrap;
}

.search-item {
  padding: 0 10px;
  font-size: 13px;
  border-radius: 3px;
  line-height: 26px;
  margin: 0 5px 5px 0;

  &:not(.active-current):hover {
    color: var(--primary-color);
  }
}

.active-current {
  background: var(--primary-color);
  color: white;
}

.search-selected {
  display: flex;
  background: white;
  white-space: nowrap;
  min-height: 44px;
  align-items: flex-start;
}

.selected-list {
  flex: 1 1 100%;
  padding-top: 10px;
  padding-bottom: 5px;
  display: flex;
  flex-wrap: wrap;
}

.selected-title {
  color: #999;
  line-height: 44px;
  padding: 0 10px;
}

.selected-item {
  padding-left: 10px;
  line-height: 22px;
  border-radius: 12px;
  border: 1px solid var(--primary-color);
  font-size: 12px;
  color: var(--primary-color);
  margin-right: 5px;
  margin-bottom: 5px;
  overflow: hidden;

  &::after {
    content: '✕';
    display: inline-block;
    width: 24px;
    text-align: center;
  }
}

.search-clear {
  color: #e4393c;
  line-height: 44px;
  padding: 0 10px;
}

.search-box {
  border: 1px solid white;
  border-radius: 17px;
  display: flex;
  justify-content: space-between;
  height: 34px;
  background: white;
  overflow: hidden;

  button {
    all: unset;
    color: #fff;
    font-size: 15px;
    height: 100%;
    width: 60px;
    background: var(--primary-color);
    display: grid;
    place-content: center;
    cursor: pointer;

    &:hover {
      opacity: 0.8;
    }
  }

  input {
    all: unset;
    padding: 0 20px;
    flex: 1;
  }

}

.no-tip {
  height: 350px;
  display: grid;
  place-items: center;


  .notip-desc {
    font-size: 12px;
    color: #999;
  }
}

.search-filter {
  position: absolute;
  top: 44px;
  background: white;
  overflow: hidden;
  width: 100vw;
  left: 0;
  height: 0;
  padding: 0 10px;
  transition: all 0.5s;
}

input:focus~.search-filter {
  height: calc(100vh - 44px);
  padding: 10px;
}

.pages {
  text-align: center;
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  justify-content: center;
  padding: 10px;

  a {
    color: var(--primary-color);
  }
}