/* 🔹 Stil general pentru celulele activităților */
.td-activitate {
  position: relative;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.4s ease;
  padding-right: 36px;
  vertical-align: middle;
}

/* 🔹 Când este extinsă */
.td-activitate.extins {
  white-space: normal;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  min-width: 480px;
  padding: 14px 45px 14px 20px;
  line-height: 1.6;
  text-align: justify;
  position: relative;
  z-index: 5;

  transform: scale(1.03);
  opacity: 1;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background-color 0.35s ease,
    opacity 0.35s ease;
}

/* 🔹 Tranziție inițială pentru toate celulele activități */
.td-activitate {
  transition:
    transform 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease;
}

/* 🔹 Efect la hover */
.td-activitate:hover {
  background-color: #f4f9ff;
  box-shadow: inset 0 0 6px rgba(13, 110, 253, 0.25);
  transform: scale(1.01);
}

/* 🔹 Iconiță săgeată */
.td-activitate::after {
  content: '🔽';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  font-size: 0.9em;
  pointer-events: none;
  transition: transform 0.3s ease, color 0.3s ease;
}
.td-activitate.extins::after {
  content: '🔼';
  color: #0d6efd;
  transform: translateY(-50%) rotate(180deg);
}

/* 🔹 Rândul activ – fără deplasare, doar accentuat vizual */
tr.rand-extins {
  transition: background-color 0.4s ease;
  background-color: #fcfcfc;
  position: relative;
  z-index: 2;
}

/* 🔹 Celelalte coloane din rând – estompate ușor */
tr.rand-extins td:not(.td-activitate) {
  transition: opacity 0.3s ease;
  opacity: 0.75;
}

/* 🔹 Menține tabelul stabil, fără deplasare */
.table-responsive {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;   /* ✅ nu mai e fixed — compatibil Edge */
}

td, th {
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
  vertical-align: middle;
}

/* 🔹 Efect fin pe hover */
.td-activitate:hover {
  background-color: #f0f6ff;
  box-shadow: inset 0 0 4px rgba(13, 110, 253, 0.2);
}

/* 🔹 Textarea automată (pentru formulare) */
.textarea-auto {
  overflow-y: hidden;
  resize: none;
  min-height: 60px;
  line-height: 1.5;
  transition: height 0.2s ease;
}

@media (max-width: 768px) {
  #filtruOrar select,
  #filtruOrar button,
  #filtruOrar a.btn {
    width: 100% !important;
  }
}

/* 🔹 Corectare layout pentru mesaje de tip alert */
.alert {
  position: relative;
  padding-right: 2.5rem;
  display: block !important;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
  line-height: 1.5;
}

.alert-close-btn {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: #000;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.alert-close-btn:hover {
  opacity: 1;
}
