@import '../index.scss';

.mods-com-firecard {
  display: flex;
  flex-direction: column;
  width: 248px;
  min-height: 128px;
  // background-color: white;
  border: solid 1px $firecard-border-eaeaea;
  // border: solid 1px #eaeaea;
  border-radius: 6px;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);

  &.mods-com-firecard-selected {
    // border: 1px solid #00c20c;
    border: 1px solid $color-00c20c;
  }

  &:hover {
    // border: 1px solid #00c20c;
    border: 1px solid $color-00c20c;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.25);
  }

  .mods-com-firecard-top {
    display: flex;
    padding: 8px;
    flex: 1;
    background: $firecard-top-background ;

    .mods-com-firecard-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 104px;
      height: 80px;
      padding: 5px;
      background: $firecard-content-border;
      // border: 1px solid #e4e4e4;
      border-radius: 3px;

      img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
      }
    }

    .mods-com-firecard-info {
      display: inline-flex;
      width: calc(100% - 108px);
      padding-top: 2px;
      padding-left: 7px;
      font-size: 12px;
      line-height: 16px;
      // color: black;
      color: $color-black;
      flex-direction: column;

      .mods-com-firecard-name {
        overflow: hidden;
        color: $font-color-black;
        text-overflow: ellipsis;
        word-break: break-all;
        white-space: nowrap;
        // flex: 1;
      }

      .mods-com-firecard-infoitem {
        overflow: hidden;
        // color: #3f3f3f;
        color: $color-3f3f3f;
        text-overflow: ellipsis;
        word-break: break-all;
        white-space: nowrap;

        .mods-com-firecard-label {
          margin-right: 0;
          color: $font-color-black;
        }

        .mods-com-firecard-value {
          color: $font-color-black;
        }
      }
    }
  }

  .mods-com-firecard-floor {
    display: flex;
    align-items: center;
    width: 100%;
    height: 30px;
    padding: 0 7px;
    background: $firecard-floor-background;
    border-radius: 0 0 6px 6px;

    .mods-com-firecard-qrcode {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 17px;
      height: 17px;
      margin-right: 5px;
      // background: #646464;
      background: $color-646464;
      border-radius: 3px;

      img {
        width: 100%;
      }
    }

    .mods-com-firecard-texttag {
      display: inline-block;
      height: 17px;
      padding: 0 5px;
      margin-right: 5px;
      font-size: 12px;
      line-height: 17px;
      // color: white;
      color: $font-color-black;
      cursor: pointer;
      border-radius: 3px;
    }

    .mods-com-firecard-icontag {
      display: inline-block;
      height: 17px;
      margin-right: 5px;
      font-size: 12px;
      line-height: 17px;
      // color: white;
      color: $background-color-white;
      cursor: pointer;
      border-radius: 3px;

      img {
        height: 17px;
      }
    }

    .mods-com-firecard-status {
      flex: 1;
      display: flex;
      align-items: center;
    }

    .mods-com-firecard-menus {
      width: 16px;
      cursor: pointer;

      &:hover {
        opacity: 0.8;
      }
    }
  }
}

.mods-com-firecard-popover {
  // background: white;
  background: $background-color-white;
  // border: 1px solid #e7e7e7;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
}

.mods-com-firecard-popover-wrapper.amos-popover {
  padding-top: 10px;

  &::after {
    display: none;
  }
}

.mods-com-firecard-menulist.ui-menu {
  min-width: 100px;
  padding: 3px 0;
  background: $firecard-menulist-background;

  li {
    display: flex;
    height: 28px;
    padding-left: 8px;
    font-size: 12px;
    line-height: 28px;
    // color: #333;
    color: $font-color-black;
    align-items: center;
    cursor: pointer;

    &:hover {
      // background: #e6f7ff;
      background: $firecard-menulist-background-hover;
    }

    &.mods-com-firecard-menudivider {
      // border-bottom: 1px solid #e7e7e7;
      border-bottom: 1px solid $color-e7e7e7;
    }

    img {
      width: 20px;
      height: 20px;
      margin-right: 5px;
    }
  }
}

.mods-com-firecard-qrcode-content {
  position: relative;
  width: 128px;
  padding: 16px;
  background-color:$background-color-rqcode;

  .mods-com-firecard-qrcode-value {
    position: relative;
    top: 8px;
    margin-top: -7px;
    font-size: 12px;
    // color: black;
    color: $color-black;
    text-align: center;
  }
}

