/* Doc alert tooltip animation */
@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mass Inscription Popup */
.mass-inscription-add-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin-bottom: 4px;
}

.mass-inscription-add-row .input-group {
  flex: none;
}

.mass-inscription-add-row .input-group:nth-child(1) { width: 200px; }  /* Empresa */
.mass-inscription-add-row .input-group:nth-child(2) { width: 200px; }  /* Curso */
.mass-inscription-add-row .input-group:nth-child(3) { width: 120px; }  /* Evento */
.mass-inscription-add-row .input-group:nth-child(4) { width: 100px; }  /* DNI */
.mass-inscription-add-row .input-group:nth-child(5) { width: 200px; }  /* Apellido */
.mass-inscription-add-row .input-group:nth-child(6) { width: 200px; }  /* Nombre */
.mass-inscription-add-row .input-group:nth-child(7) { width: 200px; }  /* Email */

.mass-inscription-excel-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 12px;
}

.mass-inscription-empty {
  text-align: center;
  color: #999;
  font-size: 13px;
  padding: 20px;
  margin: 0;
}


/* Quick filters in title row */
.page-title-quick-filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.quick-filter-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-filter-label {
  font-size: 10px;
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}


/* Actions dropdown menu */
.table-actions-menu {
  position: relative;
}

.results-table tbody td:last-child {
  overflow: visible;
}

.btn-actions-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  padding: 4px 8px;
  border-radius: 4px;
}

.btn-actions-toggle:hover {
  background: #f0f0f0;
}

.btn-actions-toggle:focus {
  outline: none;
}

.actions-dropdown {
  display: none;
  position: fixed;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  min-width: 200px;
  padding: 4px 0;
}

.actions-dropdown.open {
  display: block;
}

.actions-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  color: #333;
  text-align: left;
  white-space: nowrap;
}

.actions-dropdown-item:hover {
  background: #f5f5f5;
}

.actions-dropdown-item:focus {
  outline: none;
}

.actions-dropdown-item i {
  width: 16px;
  text-align: center;
  font-size: 12px;
}

/* Detail popup - exam action icons (Ver examen / Descargar examen) */
/* extra right padding so the last icon tooltip is not clipped by the popup edge */
/* note shown in the detail popup when the inscription has no exam records */
.detail-no-exams-note {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  color: #777;
  text-align: center;
}

#detailPopupBody .detail-exams-list {
  padding-right: 12px;
}

.detail-exam-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail-exam-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.detail-exam-action:hover {
  background-color: #eee;
  color: var(--color1);
}

/* disabled state: exam not taken yet */
.detail-exam-action.detail-exam-action-disabled {
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

/* tooltip */
.detail-exam-action[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s;
  z-index: 10;
  pointer-events: none;
}

.detail-exam-action[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Exam Review Popup */
.exam-review-questions {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.exam-review-question {
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.exam-review-question:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exam-review-question-text {
  margin: 0 0 10px;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.exam-review-image {
  max-width: 100%;
  max-height: 220px;
  border-radius: 6px;
  margin-bottom: 10px;
  display: block;
}

.exam-review-options {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.exam-review-option {
  display: flex;
  align-items: center;
  column-gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fafafa;
  font-size: 13px;
  color: #444;
}

.exam-review-option-ref {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background-color: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
}

.exam-review-option-text {
  flex: 1;
}

/* selected + correct */
.exam-review-option.exam-review-option-ok {
  border-color: #28a745;
  background-color: #eafaf0;
}

/* selected + wrong */
.exam-review-option.exam-review-option-wrong {
  border-color: var(--errorColor);
  background-color: #fdecec;
}

/* correct option highlighted when the student answered wrong */
.exam-review-option.exam-review-option-correct {
  border-color: #f0c000;
  background-color: #fdf7e0;
}

.exam-review-icon-ok {
  color: #28a745;
  font-size: 14px;
}

.exam-review-icon-wrong {
  color: var(--errorColor);
  font-size: 14px;
}
