/*
 * Jazzmin + AdminLTE (layout-fixed): el menú lateral puede quedar sin scroll.
 * Forzar scroll solo en la zona de enlaces bajo el logo / user panel.
 */
#jazzy-sidebar .sidebar,
.main-sidebar .sidebar {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 3.5rem);
  padding-bottom: 1.5rem;
}

/* El aside fijo no debe recortar el scroll del hijo */
#jazzy-sidebar.main-sidebar {
  overflow: visible;
}

/* -------------------------------------------------------------------------
 * Panel de control (admin /): columna derecha "Acciones recientes"
 * Jazzmin usa timeline + tema Flatly; sin esto suele verse vacío, desalineado
 * o con un icono de reloj suelto al final del timeline.
 * ------------------------------------------------------------------------- */
body.dashboard .content-wrapper .content section.content > .row {
  align-items: flex-start;
}

body.dashboard #content-related {
  position: sticky;
  top: 1rem;
}

body.dashboard #recent-actions-module {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.dashboard #recent-actions-module h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
  color: #2c3e50;
}

body.dashboard #recent-actions-module .text-muted,
body.dashboard #recent-actions-module p.text-muted {
  color: #6c757d !important;
  font-size: 0.9rem;
}

/* Entradas del timeline más legibles */
body.dashboard .timeline {
  margin: 0;
  padding-left: 0.25rem;
}

body.dashboard .timeline > div > .fas,
body.dashboard .timeline > div > .fa {
  margin-right: 0.35rem;
}

body.dashboard .timeline-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.25rem;
  padding: 0.5rem 0.65rem;
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}

body.dashboard .timeline-header {
  font-size: 0.9rem;
  line-height: 1.35;
}

body.dashboard .timeline .time {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  color: #6c757d;
}

/* Bloque sobrante al final del template Jazzmin (solo icono reloj, sin .timeline-item) */
body.dashboard .timeline > div:last-child:not(:has(.timeline-item)) {
  display: none !important;
}
