@import "/style/theme.less";

.ticket-card {
  font-size: 24rpx;
  padding: 15rpx 0 18rpx 0;
  border-radius: 10rpx;
  box-shadow: 0px 2px 12px 2px rgba(242, 243, 244, 1);
  position: relative;
  font-size: 28rpx;
  line-height: 40rpx;
  margin-bottom: 20rpx;
  background-color: white;
  width: 100%;

  &-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 0 30rpx;
    line-height: 56rpx;
    border-bottom: @border;
    &.timeout {
      .clock-img {
        margin-left: 60rpx;
      }
    }

    .timeout {
      width: 80rpx;
      margin-right: 16rpx;
      height: 42rpx;
      position: absolute;
      left: -30rpx;
      top: 50%;
      transform: translateY(-50%);
    }
    .clock-img {
      flex: 0 0 28rpx;
      height: 28rpx;
      margin-right: 16rpx;
      vertical-align: middle;
    }
    .timestamp {
      color: @mainColor;
      font-weight: 500;
      font-size: 32rpx;
      margin-right: auto;
    }
    .status {
      font-weight: 400;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      &-text {
        margin-right: 8rpx;
      }
      &-icon {
        width: 28rpx;
        height: 28rpx;
      }
      &.create {
        color: @create;
      }
      &.pending {
        color: @mainColor;
      }
      &.done, &.approved {
        color: @done;
      }
      &.denied {
        color: @denied;
      }
    }
  }

  .title {
    margin: 12rpx 30rpx 16rpx 30rpx; 
    color: @tx1;
    font-weight: 400;
    width: 100%;
    font-size: 28rpx;
    line-height: 40rpx;
    display: flex;
    align-items: center;

    .property {
      padding: 0 12rpx;
      border-radius: 6rpx;
      border: @border;
      font-size: 20rpx;
      display: inline-block;
      line-height: 40rpx;
      margin-left: 8rpx;
      &.normal {
        border-color: #52C41A;
        color: #52C41A;
      }
      &.emergency {
        border-color: @mainColor;
        color: @mainColor;
      }
      &.random {
        border-color: #017FF8;
        color: #017FF8;
      }
      &.review {
        border-color: #de1c24;
        color: #de1c24;
      }
    }
  }
  .text-cut {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
  .row {
    padding: 0 30rpx;
    .row-item {
      color: @tx2;

      &-img {
        width: 28rpx;
        height: 28rpx;
        display: inline-block;
        vertical-align: middle;
      }

      .timeout-img {
        width: 60rpx;
        height: 34rpx;
      }
    }
  }
  .checkin {
    position: absolute;
    right: 0;
    bottom: 0;
    &-img {
      width: 100rpx;
      height: 90rpx;
    }
  }
}
