/* Estado del proceso dentro del Paso 2, sin superposiciones. */

/* La consulta unificada usa modalConsultaRegistro. El modal informativo
   histórico se oculta para evitar dos ventanas durante la misma consulta. */
#modalConsultaTitulos {
  display: none !important;
}

.student-process-panel {
  position: static;
  width: 100%;
  box-sizing: border-box;
  margin: 22px 0 0;
  padding: 22px;
  border: 1px solid #d7e0ec;
  border-left: 5px solid #c9ad63;
  border-radius: 16px;
  background: #f8fafc;
  color: #172033;
}

.student-process-panel[hidden] {
  display: none !important;
}

.student-process-panel--returned {
  border-left-color: #b7791f;
  background: #fffaf0;
}

.student-process-panel--approved {
  border-left-color: #218653;
  background: #f2fbf6;
}

.student-process-panel--pending {
  border-left-color: #315f91;
  background: #f4f8fc;
}

.student-process-panel__header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.student-process-panel__icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: #8a6721;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.student-process-panel--approved .student-process-panel__icon {
  color: #167044;
}

.student-process-panel--pending .student-process-panel__icon {
  color: #315f91;
}

.student-process-panel__badge {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #765817;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.student-process-panel--approved .student-process-panel__badge {
  color: #167044;
}

.student-process-panel--pending .student-process-panel__badge {
  color: #315f91;
}

.student-process-panel h3 {
  margin: 0 0 7px;
  color: #0b2345;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.2;
}

.student-process-panel__header p {
  margin: 0;
  color: #526174;
  line-height: 1.5;
}

.student-process-panel__comment,
.student-process-panel__approved,
.student-process-panel__notice,
.student-process-panel__titles {
  position: static;
  width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
}

.student-process-panel__comment,
.student-process-panel__approved {
  padding: 16px 18px;
  border: 1px solid #d9e1eb;
  border-radius: 12px;
  background: #ffffff;
}

.student-process-panel__comment span,
.student-process-panel__approved span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.student-process-panel__comment p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #27364a;
  line-height: 1.5;
  white-space: normal;
}

.student-process-panel__approved strong {
  display: block;
  overflow-wrap: anywhere;
  color: #0b2345;
  font-size: 1.15rem;
  line-height: 1.4;
  white-space: normal;
}

.student-process-panel__titles h4 {
  margin: 0 0 10px;
  color: #0b2345;
  font-size: 1rem;
}

.student-process-panel__titles ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.student-process-panel__titles li {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #d9e1eb;
  border-radius: 12px;
  background: #ffffff;
}

.student-process-panel__titles li.is-favorite {
  border-color: #c9ad63;
  box-shadow: inset 4px 0 0 #c9ad63;
}

.student-process-panel__titles li > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.student-process-panel__titles li span {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff4d6;
  color: #765817;
  font-size: 0.72rem;
  font-weight: 800;
}

.student-process-panel__titles li p {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  color: #334155;
  line-height: 1.45;
  white-space: normal;
}

.student-process-panel__notice {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff1c7;
  color: #5f4b1c;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .student-process-panel {
    padding: 18px;
  }

  .student-process-panel__header {
    gap: 12px;
  }

  .student-process-panel__icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .student-process-panel__titles li > div {
    align-items: flex-start;
    flex-direction: column;
  }
}
