@use '../variables' as *;

/* 待投递岗位列表面板样式 */
.agent-pending-job-list-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: $bg-white;
  border-radius: 0.2rem;
  overflow: hidden;

  /* 顶部标题栏 */
  &__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.16rem 0.2rem;
  }

  &__title {
    font-size: 0.16rem;
    font-weight: 600;
    color: $text-dark;
  }

  /* 关闭按钮 */
  &__close-btn {
    width: 0.28rem;
    height: 0.28rem;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;

    svg {
      width: 100%;
      height: 100%;
    }
  }

  /* 列表区域（可滚动） */
  &__list {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.2rem 0.2rem;
  }

  /* 单个岗位项 */
  &__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.14rem 0.16rem;
    background: $bg-main;
    border-radius: 0.12rem;
    margin-bottom: 0.1rem;

    &:last-child {
      margin-bottom: 0;
    }
  }

  /* 左侧信息区域 */
  &__info {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    flex: 1;
    min-width: 0;
  }

  /* 公司 Logo */
  &__logo {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 0.08rem;
    background: $bg-middle;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    svg {
      width: 0.22rem;
      height: 0.22rem;
      color: $text-middle;
    }
  }

  /* 岗位详情 */
  &__detail {
    min-width: 0;
  }

  &__company {
    font-size: 0.13rem;
    font-weight: 500;
    color: $text-dark;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  &__position {
    font-size: 0.12rem;
    color: $text-middle;
    margin-top: 0.02rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 标签 */
  &__tags {
    display: flex;
    gap: 0.06rem;
    margin-top: 0.06rem;
    flex-wrap: wrap;
  }

  &__tag {
    font-size: 0.11rem;
    color: $text-middle;
    background: $bg-white;
    padding: 0.02rem 0.08rem;
    border-radius: 0.04rem;
  }

  /* 右侧区域 */
  &__right {
    display: flex;
    align-items: center;
    gap: 0.14rem;
    flex-shrink: 0;
  }

  /* 匹配度环 */
  &__score {
    position: relative;
    width: 0.4rem;
    height: 0.4rem;
  }

  &__ring {
    width: 100%;
    height: 100%;
  }

  &__score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.1rem;
    font-weight: 600;
    color: $text-dark;
  }

  /* 移出按钮 */
  &__remove-btn {
    padding: 0.06rem 0.16rem;
    background: $text-dark;
    color: $bg-white;
    border: none;
    border-radius: 0.2rem;
    font-size: 0.12rem;
    cursor: pointer;
    transition: opacity 0.2s;

    &:hover {
      opacity: 0.85;
    }

    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }

  /* 加载中 */
  &__loading {
    text-align: center;
    padding: 0.16rem 0;
    font-size: 0.12rem;
    color: $text-light;
  }

  /* 暂无更多数据 */
  &__no-more {
    text-align: center;
    padding: 0.16rem 0;
    font-size: 0.12rem;
    color: $text-light;
  }

  /* 空状态 */
  &__empty {
    text-align: center;
    padding: 0.4rem 0;
    font-size: 0.13rem;
    color: $text-light;
  }
}
