@import '~scss/variables';

.billCard {
  width: 440px;
  min-height: 56px;
  padding: 0 12px 0 20px;
  margin-bottom: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  flex: 1 1;

  &:hover {
    cursor: pointer;
    background: $light-color03;
  }

  :global {
    label.checkbox {
      &::before {
        width: 12px;
        height: 12px;
      }

      .checked::after {
        left: 5px;
        top: 2px;
      }
    }
  }

  .checkContainer {
    margin-right: 16px;
  }

  .info {
    display: flex;
    flex: 1;
    overflow: hidden;
    align-items: center;

    .title {
      position: relative;

      .indicator {
        position: absolute;
        bottom: 0;
        right: 0;
        z-index: 2;
      }
    }

    .desc {
      word-break: break-all;
      margin-left: 12px;
      overflow: hidden;
    }

    .tagContainer {
      margin-left: 12px;
      flex: 2 1;

      :global {
        .tag {
          min-height: 20px;
          height: auto;
          word-break: break-all;
        }
      }

      & > span {
        margin-right: 5px;
        margin-bottom: 5px;

        & > span {
          margin-top: -2px;
          margin-right: 5px;
        }
      }
    }
  }

  .symbol:hover {
    & > span {
      transition: all 0.3s ease;
      transform: rotate(90deg);
    }
  }
}

.selected {
  background: $dark-color07;

  .desc {
    div {
      color: #fff;
    }
  }

  &:hover {
    cursor: pointer;
    background: $dark-color07;
  }
}

.noHover {
  &:hover {
    cursor: initial;
    background: none;
  }
}

.disabled {
  position: relative;
  cursor: not-allowed !important;
  opacity: 0.3;

  &:hover {
    background: none;
  }

  &::after {
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: block;
    position: absolute;
    z-index: 10;
  }

  .unMeter {
    z-index: 11;
  }
}
