/*
 * Copyright 2017-2023 EPAM Systems, Inc. (https://www.epam.com/)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
}

.title {
  font-size: larger;
  margin-right: 10px;
}

.notifications-container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-y: auto;
  margin-top: 5px;
}

.header {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 2;
}

.header .control:not(:last-child) {
  margin-right: 5px;
}

.notification-grid-row {
  display: grid;
  grid: "status title body date readDate actions" 34px / 55px 1fr 1fr 135px 135px 25px;
  padding: 3px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-grid-row.header {
  grid-template-rows: 20px;
  padding: 5px 0;
  cursor: default;
}

.notification-cell {
  margin: auto 0;
  padding: 0 5px;
  max-height: 100%;
  overflow: hidden;
}

.notification-cell.header {
  font-weight: bold;
  font-size: small;
}

.notification-status {
  grid-area: status;
  margin: auto;
  padding: 0;
  font-size: medium;
}

.notification-title {
  grid-area: title;
}

.notification-body {
  grid-area: body;
}

.notification-date {
  grid-area: date;
}

.notification-read-date {
  grid-area: readDate;
}

.notification-actions {
  grid-area: actions;
}

.empty-placeholder {
  padding: 15px;
  text-align: center;
}

.pagination {
  margin-top: 15px;
  margin-left: auto;
}

.md-preview-ellipsis > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
