@import "src/assets/styles/responsive-base.scss";

table{
  mat-icon{
    cursor: default;
  }
  margin-bottom: 20px;

  th.mat-header-cell, td.mat-cell, td.mat-footer-cell{
    padding: 0 10px;
  }

  td.mat-cell{
    &.revoked{
      opacity: 0.25;
    }
    &.expired{
      opacity: 0.25;
    }
    &.center{
      text-align: center;
    }

    &.action-buttons{
      mat-icon{
        cursor: pointer;
      }
    }
  }
}

#license-table{
  margin-bottom: 40px;
}

.h2-small{
  margin-bottom:15px;
  display: block;
}

:host{
  display: flex;
  height: 100%;

  >div{
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;

    >div{
      position: absolute;
    }
  }
}

.date-link{
  cursor: pointer;
  text-decoration: underline;
}

#redeem-button-container{
  padding-top: 20px;
}

#nano-manager-link{
  margin-top: 30px;
  padding-bottom: 20px
}
#buy-license-button-container{
  padding-bottom: 40px;
}
.button-row{
  button:last-of-type{
    margin-left: 16px;
  }

  @include screen('phone'){
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    button:last-of-type{
      margin-left: 0;
      margin-top: 22px;
    }
  }

  .mat-icon{
    margin-right: 10px;
  }
}

.desktop-table{
  @include screen('phone'){
    display: none;
  }
}
.mobile-table{
  display: none;
  margin-bottom: 20px;
  @include screen('phone'){
    display: block;
  }

  mat-card{
    margin-bottom: 8px;
  }

  mat-card-content{
    grid-template-columns: 1fr 1fr;
    display: grid;
    align-items: center;
    row-gap: 8px;
    &.revoked{
      .value-cell{
        opacity: 0.25;
      }
    }
    &.expired{
      .value-cell{
        opacity: 0.25;
      }
    }
  }

  .value-cell{
    justify-self: end;
  }
  .title-cell{
    text-transform: uppercase;
  }
}