@import '../../src/style/tools.css';
@import '../../src/style/animate.css';

.bx-profession {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;

  & .bx-container {
    position: fixed;
    width: 80%;
    height: 100%;
    right: 0;
    bottom: 0;
    background: var(--profession-bg-color);

    & .bx-container-head {
      top: 0;
      right: 0;

      & .bx-container-title {
        position: relative;
        box-sizing: border-box;
        height: 45px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;

        & .bx-container-base {
          display: inline-block;
          width: 24px;
          height: 24px;
          font-size: 0;
          color: var(--color-text-minor);
        }

        & .bx-container-title-center {
          font-size: 14px;
          color: var(--color-text-primary);
          letter-spacing: 0;
        }
      }

      & .bx-container-selected {
        background-color: var(--color-bg-minor);
        padding: 15px;

        & .bx-container-selected-sel {
          font-size: 13px;
          color: var(--color-text-primary);
          letter-spacing: 0;
          line-height: 16px;
        }

        & .bx-container-selected-text {
          box-sizing: border-box;
          font-size: 13px;
          color: var(--color-text-primary);
          letter-spacing: 0;
          line-height: 18px;
          margin-top: 6px;
        }

        & .bx-container-err {
          font-size: 13px;
          color: var(--color-type-danger);
          letter-spacing: 0;
          line-height: 15px;
          margin-top: 6px;
        }

        & .bx-container-right {
          font-size: 13px;
          color: var(--color-type-primary);
          letter-spacing: 0;
          line-height: 15px;
          margin-top: 6px;
        }
      }
    }

    & .bx-container-list {
      right: 0;
      top: 0;
      overflow-x: hidden;
      overflow-y: scroll;

      & .bx-container-list-li {
        box-sizing: border-box;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 45px;
        padding: 14.5px 10px 13.5px 0;
        margin-left: 15px;
        font-size: 14px;
        color: var(--color-text-primary);
        letter-spacing: 0;
        line-height: 17px;

        &.bx-container-highlight {
          color: var(--color-type-primary);
        }

        & .bx-icon-right {
          font-size: 0;
          color: var(--color-text-patch);
        }
      }
    }
  }

  & .bx-container-menu {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    height: 45px;
    padding: 0 15px;
    margin: 0;
    display: block;

    & .bx-container-item {
      @apply --ellipsis;

      box-sizing: border-box;
      float: left;
      height: 45px;
      min-width: 60px;
      max-width: 33%;
      line-height: 45px;
      display: block;
      padding: 0 7.5px;
      color: var(--color-text-primary);
      font-size: 14px;
      text-align: center;
    }

    & .bx-container-item.active {
      position: relative;
      color: var(--color-type-primary);

      &::after {
        content: '';
        position: absolute;
        bottom: 1px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 4px;
        background: var(--color-type-primary);
        border-radius: 2px;
      }
    }
  }

  & .bx-search-container {
    position: fixed;
    width: 100%;
    height: 100%;
    right: 0;
    bottom: 0;
    background: var(--color-bg-primary);
    margin: 0;

    & .bx-search-bar {
      position: relative;
      z-index: var(--zindex-8);
    }

    & .bx-search-content {
      overflow-y: scroll;
    }

    & .bx-search-result {
      height: 100%;
      overflow-y: scroll;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;

      & .bx-search-item {
        position: relative;
        padding: 10px 15px;
        background: var(--profession-bg-color);
        box-sizing: border-box;

        & .bx-search-name {
          font-size: 14px;
          line-height: 20px;
          color: var(--color-text-primary);
        }

        & .bx-search-job-type {
          margin-top: 6px;
          font-size: 12px;
          line-height: 12px;
          color: var(--color-default);
        }

        & .bx-text-warn {
          color: var(--profession-color-text-warning);
        }
      }
    }
  }
}
