#workarea-content {
  font-family: "Roboto", sans-serif;
  background: transparent !important;
  margin: 0;
  padding: 15px;
  font-size: 13px;

}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

#search-input {
  flex: 1;
  min-width: 220px;
  padding: 8px 12px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
}

.status-text {
  font-size: 0.9rem;
  color: #555;
}

.status-text[data-state="error"] {
  color: #b42318;
}

.status-text[data-state="loading"] {
  color: #475467;
}

.status-text.is-hidden {
  display: none;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 15px;
}

.section-header {
  font-size: 1.8rem;
  /* color: #444; */
  color: white;
  padding-bottom: 15px;
  border-bottom: 3px solid #eeeeee;
  margin-bottom: 15px;
  font-weight: 500;
}

.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 15px;
  overflow: visible;
  /* background-color: #f7f7f7; */
  /* Добавлено, чтобы увеличенные карточки не обрезались */
}

.card {
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, #fdfdfd, rgb(236, 244, 247));
  padding: 8px;
  border-radius: 8px;
  overflow: hidden;

  transform-origin: center top;
  max-height: 220px;
  min-width: 250px;
  border-left: 4px solid #007bff;
  position: relative;
  z-index: 1;
  transition: z-index 0.1s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

}

.card:hover {
  z-index: 2;
  transform: scale(1.05);
  max-height: none;
  /* Remove max-height restriction on hover */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 123, 255, 0.5);

}

.card:hover .card-text {
  white-space: normal;
  overflow: visible;
  max-height: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: auto;
  background: #FFF;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  padding: 15px;
  border-radius: 4px;
  margin-top: 10px;
  box-sizing: border-box;
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

/* Добавляем псевдо-элемент для затемнения фона за карточкой */
.card:hover::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(0, 0, 0, 0.5); */
  z-index: -1;
}

.card-image {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.card-info {
  flex-grow: 1;
  overflow: hidden;
  /* Hide overflow */
}

.card-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.card-text {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3.6em;
  /* Initial max-height for clamp */
  transition: max-height 0.3s ease-in-out;
  /* Smooth transition for expanding text */
}

.card-link {
  margin-left: 5px;
  padding: 6px 12px;
  text-decoration: none;
  font-size: 0.85rem;
  background: linear-gradient(145deg, #007bff, #0056b3);
  color: #ffffff;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.card-link:hover {
  background: linear-gradient(145deg, #0056b3, #003d82);
  color: white;
}

.card-link.is-disabled {
  pointer-events: none;
  opacity: 0.6;
}

.empty-state {
  padding: 20px;
  border: 1px dashed #d0d7de;
  border-radius: 8px;
  color: #475467;
  background: #fff;
  text-align: center;
}

#description-popup {
  display: none;
  /* initially hidden */
  position: absolute;
  background: #FFF;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 100;
  /* Ensure it's above other elements */
  min-width: 300px;
  /* Set a minimum width for the popup */
  max-height: 80vh;
  /* Maximum height is 80% of the viewport height */
  overflow-y: auto;
  /* Enable vertical scrolling if content is too tall */
}

/* Стили для пользовательской светлой темы */
.tippy-box[data-theme~='custom-light'] {
  background-color: white;
  color: #333;
  /* Более мягкий оттенок черного для текста */
  border: 1px solid #ddd;
  border-radius: 8px;
  /* Скругленные углы */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  /* Тень для объемного эффекта */
  transition: transform 0.2s ease, opacity 0.2s ease;
  /* Плавные переходы */
  /* Добавьте другие стили, если необходимо */
}

/* Стилизация стрелки для светлой темы */
.tippy-box[data-theme~='custom-light'] .tippy-arrow {
  color: white;
}

.tippy-box[data-theme~='custom-light'] .tippy-arrow:before {
  border-top-color: white;
  /* Цвет стрелки для верхней стрелки */
  /* Для стрелок, направленных в другие стороны, настройте соответствующие свойства border-color */
}

/* Плавное появление и исчезновение тултипа */
.tippy-box[data-theme~='custom-light'][data-state='hidden'] {
  opacity: 0;
  transform: translateY(10px);
}

.tippy-box[data-theme~='custom-light'][data-state='visible'] {
  opacity: 1;
  transform: translateY(0);
}