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

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

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

  td.mat-mdc-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;
  }
  /* TODO(mdc-migration): The following rule targets internal classes of card that may no longer apply for the MDC version. */
  mat-card{
    margin-bottom: 8px;
  }
  /* TODO(mdc-migration): The following rule targets internal classes of card that may no longer apply for the MDC version. */
  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;
  }
}