@mixin ellipsis($row) {
  overflow: hidden;
  text-overflow: ellipsis;
  @if $row == 1 {
    display: block;
    white-space: nowrap;
    word-wrap: normal;
  } @else if $row >= 2 {
    display: -webkit-box;
    -webkit-line-clamp: $row;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    line-height: 1.2em;
  }
}

.rightDrawer-notice {
  width: 100%;
  height: calc(100% - 60px);

  .table-box {
    height: calc(100% - 111.5px);
    overflow: auto;
  }
}

.mat-table {
  width: 100%;
  position: relative;
  th.infos {
    padding: 10px;
    text-align: center;
  }
  tr.mat-row {
    height: 70px;
    .notice-info {
      padding: 16px;
      display: grid;
      height: 70px;
      .title {
        font-weight: 600;
        margin-bottom: 2px;
        width: 100%;
        @include ellipsis(2);
        display: flex;
        align-items: center;
        .important {
          color: red;
          margin-right: 6px;
        }
      }
    }
    .date {
      .date {
        font-size: 0.8em;
        text-align: right;
      }
    }
  }
}

.mat-paginator-container {
  display: flex;
  flex-flow: column;
}

.mat-row:hover {
  background: rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.footer-fix {
  position: absolute;
  bottom: 0;
  flex-direction: column;
  box-sizing: border-box;
  display: flex;
  border-top: 1px solid #dddddd;
  .mat-paginator {
    .mat-paginator-container {
      justify-content: center;
    }
  }
  .btn-box {
    height: 50px;
    padding-bottom: 10px;
    width: 100%;
    background-color: #ffffff;
    button {
      margin: 5px;
    }
  }
}

/*::ng-deep .mat-paginator {
  .mat-paginator-container {
    justify-content: center;
  }
  .mat-paginator-navigation-first {
    order: 1;
  }
  .mat-paginator-navigation-previous {
    order: 2;
  }
  // override material paginator page switch
  .mat-paginator-range-label {
    order: 3;
  }
  .mat-paginator-navigation-next {
    order: 4;
  }
  .mat-paginator-navigation-last {
    order: 5;
  }
}*/
.mat-form-field-appearance-legacy {
  .mat-form-field-infix {
    padding: 6px;
  }
}
