﻿.nav-link {
  padding: 4px 8px;
  display: inline-block;
  border-radius: 4px;
  transition: border 0.3s;
  margin-left: 8px;
  margin-right: 16px;
}

.table-cell-header {
  color: var(--mud-palette-text-primary);
  font-weight: 500;
  line-height: 1.5rem;
  position: relative;
  cursor: pointer;
}
.custom-table [role="toolbar"] {
  height: 52px; 
}

.table-cell-header::after {
  content: '\2193'; 
  font-size: 1.2rem;
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0; 
  transition: opacity 0.2s ease; 
}

.table-cell-header:hover::after {
  opacity: 1; 
}

.mud-menu-label {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.table-cell {
  max-width: 12.5em;
  max-height: 2em;
  
  white-space: normal;
  word-wrap: break-word; 
  overflow-wrap: break-word;
  
}

.description-cell {
  max-height: 6em;        /* допустимо 3–4 строки текста */
  height: 6em;
  overflow-y: auto;
}

.table-cell-no-user {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 10em;
  max-height: 2em;
  user-select: none;
}
.truncate-text {
  display: inline-block;
  max-width: 12.5em; /* Максимальная ширина (можно настроить в em или px) */
  white-space: nowrap; /* Отключаем перенос текста */
  overflow: hidden; /* Скрываем текст, который выходит за пределы */
  text-overflow: ellipsis; /* Добавляем троеточие */
}

.nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: white;
}

.sticky-header th {
  position: relative;
  box-shadow: 0 -4px 5px white;
}

.sticky-header th::after {
  content: "";
  position: absolute;
  bottom: 0; 
  left: 0;
  width: 100%;
  height: 1px;
  background-color: black;
  z-index: 10; 
}

.sticky-header .second-row {
  box-shadow: 0 -6px 5px white;
  transform: translateY(-2px);
}

.mud-table-toolbar-custom {
  padding-left: 16px;
  padding-right: 8px;
  padding-inline-start: 16px;
  padding-inline-end: 8px;
  margin-bottom: -12px;
}
.fit-content {
  width: fit-content !important;
}

.no-wrap-text {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.no-wrap-text-max-180 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 180px;
}

.no-wrap-text-max-160 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 160px;
}


.fit-autocomplete {
  width: fit-content;
  min-width: 123px;
}

.fit-popover .mud-popover {
  width: auto !important;
  min-width: 200px;
  max-width: 400px;
}

.fit-datepicker {
  min-width: 123px;
  max-width: 200px; 
}

.highlight-new {
  background-color: #d1ffd1; /* Зеленоватый фон для выделения */
  transition: background-color 0.5s ease-in-out;
}