/*
 * Copyright 2017-2021 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 {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: auto;
  height: 100%;
}

.search-input {
  margin-bottom: 5px;
}

.table thead tr {
  text-transform: uppercase;
  height: 34px;
}

.table table thead[class*="table-thead"] tr {
  height: 34px;
}

.table tbody tr {
  height: 35px;
}

.table table thead[class*="table-thead"] tr th,
.table tbody tr td.column,
.table tbody tr td.actions-column {
  padding: 4px 8px;
  vertical-align: middle;
  word-break: break-word;
}

.table tbody tr td.status-column {
  padding: 0 0 0 4px;
  max-width: 45px;
}

.table.has-child-routes tbody tr td.status-column {
  min-width: 45px;
}

.table tr .name-column,
.table tr .ip-column,
.table tr .service-name-column,
.table tr .protocol-column {
  min-width: 100px;
}

.table tr .ports-column {
  min-width: 50px;
}

.table-content-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 5px 0;
}

.table-actions.right {
  justify-content: flex-end;
}

.refresh-button-container {
  height: 34px;
  display: flex;
  align-items: center;
  position: absolute;
  z-index: 1;
  right: 10px;
}

.table-actions > button {
  margin-right: 10px;
}

.table-actions > button:last-of-type {
  margin-right: 0;
}

.removed {
  color: rgba(0, 0, 0, 0.25);
  text-decoration: line-through;
}

.divider-row {
  color: rgba(0, 0, 0, 0.65);
  text-align: center;
  height: 15px !important;
}

.divider-row td {
  padding: 5px !important;
  line-height: 15px;
}

.revert-action-block {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.route-status {
  padding: 0;
  font-size: larger;
}

.removed .route-status {
  color: currentColor;
}

.blink {
  animation: blinker 1.5s cubic-bezier(0.5, 0, 1, 1) infinite alternate;
}

@keyframes blinker {
  from { opacity: 1; }
  to { opacity: 0; }
}

.comment-column {
  min-width: 100px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ports {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.ports .port:not(:last-child)::after {
  content: ', ';
  margin-right: 5px;
}
