@import 'var-list';
:host {
  display: block;
  padding: 1rem 2rem;
}
.title {
  padding: 10px 0;
  border-bottom: 1px solid var(--main-title-hr-color);
}
.list {
  table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    tr {
      height: 70px;
      td:first-child {
        width: 3rem;
      }
      td:nth-child(2) {
        padding-left: 1rem;
      }
      td:not(:first-child) {
        border-bottom: 1px solid var(--main-item-hr-color);
      }
      td:last-child {
        width: 8rem;
      }
      td {
        .name {
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
    }
  }
}
.appInfo {
  display: flex;
  flex-direction: column;
  height: 48px;
  justify-content: space-around;
  .version {
    color: gray;
    font-size: 0.9rem;
  }
}
.time {
  width: 150px;
  color: gray;
}
.progressInfo {
  min-width: 200px;
  flex-shrink: 0;
  padding-top: 0.5rem;
  progress {
    width: 100%;
  }
  .speed {
    display: flex;
    justify-content: space-between;
    color: gray;
    .size {
      white-space: nowrap;
    }
  }
  .message {
    display: flex;
    justify-content: center;
    font-size: 0.8rem;
    color: gray;
  }
  .failed {
    color: red;
  }
}
.controlBtn {
  flex: 2;
  display: flex;
  justify-content: flex-end;
  @each $ctl in $control-button {
    .#{$ctl}Btn {
      width: 36px;
      height: 36px;
      padding: 0;
      background-size: 100% 100%;
      background-color: transparent !important;
      background-repeat: no-repeat;
      box-shadow: unset;
      background-position-x: 0, 36px, 36px, 36px;
      &:hover:enabled {
        background-image: var(--control-icon-#{$ctl});
        background-position-x: 36px, 0, 36px, 36px;
      }
      &:active:enabled {
        background-image: var(--control-icon-#{$ctl});
        background-position-x: 36px, 36px, 0, 36px;
      }
      &:disabled {
        background-image: var(--control-icon-#{$ctl});
        background-position-x: 36px, 36px, 36px, 0;
      }
      background-image: var(--control-icon-#{$ctl});
    }
  }
}

