@import (reference) '~const.less';

@c: .myProofs;

@{c} {
  height: 100%;
  overflow-y: auto;

  @media @mobile {
    padding-top: 0;
  }

  &-header {
    width: 100%;
    height: 100%;
    padding: 0 @sizeLarge 0 @sizeSmall;
    display: flex;
    align-items: center;
  }

  &-items-header {
    position: relative;
    height: 40px;
    background: @grey-300;
  }

  &-list {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-bottom: 80px;
  }

  &-item {
    height: 56px;

    @media @mobile, @laptop {
      height: 80px;
    }
  }

  &-itemButton {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 @sizeLarge 0 @sizeSmall;
    padding-bottom: 0;
    padding-top: 0;
    display: flex;
    align-items: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 2.29;
    letter-spacing: normal;
    text-align: left;
    white-space: nowrap;

    border: none;
    background: none;

    transition: background-color 0.3s ease;

    cursor: pointer;
    outline: none;

    @media @mobile, @laptop {
      padding-top: 17px;

      display: flex;
      flex-direction: column;
      flex-wrap: wrap;
      align-items: stretch;
      line-height: 1;
    }

    @media @laptop {
      padding-left: 64px;
      padding-right: 64px;
    }

    @media @mobile {
      padding-left: 24px;
      padding-right: 24px;
    }

    &:hover,
    &:focus {
      background-color: @grey-50;

      &:before {
        opacity: 1;
      }

      &:after {
        left: 0;
        right: 0;
      }
    }

    &:active {
      background-color: #f1f3f7;

      &:before {
        opacity: 1;
      }

      &:after {
        left: 0;
        right: 0;
      }
    }

    &:before {
      content: '';
      position: absolute;
      top: -1px;
      left: 0;
      right: 0;

      opacity: 0;
    }

    &:after {
      content: '';
      position: absolute;
      width: 100%;
      bottom: 0;
      left: 0;

      // transition: left 0.3 ease, right 0.3s ease;

      border-bottom: 1px solid #dee7ef;

      @media @mobile {
        left: 24px;
        right: 0;
      }
    }
  }

  &-itemTitle,
  &-headerTitle {
    flex: 1;
    font-size: 16px;
    line-height: 1.25;
    text-align: left;
    color: @grey-800;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    flex-direction: column;
    font-family: @fontFamilyRegular;

    @media @mobile, @laptop {
      flex: initial;
      width: ~'calc(100% - 50px)';

      font-size: 14px;
      line-height: 2.29;

      order: 1;
    }
  }

  &-itemId {
    font-size: @fontExtraSmall;
  }

  &-itemName {
    font-size: @fontMicro;
    color: @blue-700;
  }

  &-itemCalendarStatus {
    // min-width: 195px;
    display: flex;
    align-items: center;

    white-space: nowrap;
    // width: 18.77%;

    .isvg {
      display: block;
      width: 18px;
      height: 18px;
      margin-right: 9px;
      margin-top: 1px;

      font-size: 0;
    }

    .spinner {
      margin-right: 8px;
      margin-top: 1px;
    }

    @media @mobile, @laptop {
      display: none;
    }
  }

  &-itemBtcStatus {
    margin-top: -3px;
    display: flex;
    align-items: center;
    white-space: nowrap;

    .isvg {
      display: block;
      width: 18px;
      height: 18px;
      margin-right: 8px;
      margin-top: 1px;

      font-size: 0;
    }

    .spinner {
      margin-right: 8px;
      margin-top: 1px;
    }

    @media @mobile, @laptop {
      display: none;
    }
  }

  &-itemDate,
  &-headerDate {
    width: 173px;
    margin-top: -3px;

    font-size: 12px;
    line-height: 2.29;
    color: @grey-500;
    white-space: nowrap;

    @media @mobile, @laptop {
      margin-top: -7px;
      width: ~'calc(100% - 50px)';

      font-size: 12px;
      line-height: 2.67;

      order: 2;
    }
  }

  &-itemStatus,
  &-headerStatus {
    width: 145px;

    font-size: 12px;
    text-align: right;
    color: @grey-500;
    white-space: nowrap;

    display: flex;
    justify-content: flex-end;
    @media @mobile, @laptop {
      order: 3;
      width: 50px;
      margin-top: 2px;

      font-size: 12px;
      font-weight: 500;
      line-height: 2.67;

      .buttonIcon {
        margin-top: 6px;
      }
    }
  }

  &-headerTitle,
  &-headerDate,
  &-headerStatus {
    color: @grey-600;
    font-size: 13px;
    font-family: @fontFamilyHeading;
    font-weight: bold;

    @media @mobile {
      padding-top: 0;
    }
  }

  &-statusTime {
    margin-top: -2px;

    font-weight: 500;

    @media @mobile, @laptop {
      display: block;
    }
  }

  &-statusText {
    @media @mobile, @laptop {
      display: none;
    }
  }

  &-statusSpinner {
    position: relative;
    margin-left: 32px;
    display: none;

    @media @mobile, @laptop {
      display: block;
    }
  }
}
