/* AulaNova UCE v0.3.10.3 · Refinamiento visual de Recursos Moodle
   Marker: resource_actions_visual_v1
   Objetivo: compactar la transición pestañas→unidad y unificar la jerarquía visual
   de códigos PPT, asistencia IA y exportación PPTX sin alterar su funcionalidad. */

/* Menor separación entre la navegación de unidades y el panel activo. */
.anu-unit-tabs-wrap[data-version="0.3.10.1"]{
  margin-bottom:10px !important;
}

.anu-unit-panel-v03103{
  margin-top:0 !important;
  border:1px solid #e3e9f2 !important;
  border-radius:16px !important;
  background:#fbfcfe !important;
  box-shadow:0 5px 20px rgba(15,23,42,.045) !important;
  scroll-margin-top:88px;
}

.anu-unit-panel-v03103 .anu-unit-heading-v03102{
  margin-bottom:12px !important;
}

/* Código documental/técnico: informativo, no se presenta como acción principal. */
.anu-unit-panel-v03103 .anu-ppt-code-v03103{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:28px !important;
  margin:0 !important;
  padding:5px 9px !important;
  border:1px solid #d9e4f7 !important;
  border-radius:999px !important;
  background:#edf3ff !important;
  color:#1748b3 !important;
  font-size:.72rem !important;
  font-weight:800 !important;
  line-height:1.15 !important;
  letter-spacing:.01em !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}

/* Base común para acciones de la semana. */
.anu-unit-panel-v03103 .anu-action-v03103{
  -webkit-appearance:none !important;
  appearance:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:.42rem !important;
  min-height:40px !important;
  margin:0 !important;
  padding:8px 14px !important;
  border-radius:10px !important;
  font:inherit !important;
  font-size:.82rem !important;
  font-weight:750 !important;
  line-height:1.2 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
  cursor:pointer !important;
  box-shadow:none !important;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease !important;
}

/* Acción asistida: secundaria/acento. */
.anu-unit-panel-v03103 .anu-action-ai-v03103{
  border:1px solid #cfc7f4 !important;
  background:#f7f5ff !important;
  color:#5035a0 !important;
}
.anu-unit-panel-v03103 .anu-action-ai-v03103:hover{
  border-color:#ad9fe9 !important;
  background:#f0ecff !important;
  color:#3f278c !important;
  transform:translateY(-1px);
}

/* Exportación: acción primaria del recurso PPT. */
.anu-unit-panel-v03103 .anu-action-export-v03103{
  border:1px solid #1748b3 !important;
  background:#1748b3 !important;
  color:#ffffff !important;
  box-shadow:0 4px 12px rgba(23,72,179,.14) !important;
}
.anu-unit-panel-v03103 .anu-action-export-v03103:hover{
  border-color:#123d9b !important;
  background:#123d9b !important;
  color:#ffffff !important;
  transform:translateY(-1px);
}

.anu-unit-panel-v03103 .anu-action-v03103:focus-visible{
  outline:3px solid rgba(37,99,235,.34) !important;
  outline-offset:3px !important;
}

.anu-unit-panel-v03103 .anu-ppt-code-v03103:focus-visible{
  outline:3px solid rgba(37,99,235,.28) !important;
  outline-offset:2px !important;
}

@media (max-width:760px){
  .anu-unit-tabs-wrap[data-version="0.3.10.1"]{
    margin-bottom:8px !important;
  }
  .anu-unit-panel-v03103{
    border-radius:14px !important;
    scroll-margin-top:72px;
  }
  .anu-unit-panel-v03103 .anu-action-v03103{
    min-height:44px !important;
    padding:9px 13px !important;
    font-size:.84rem !important;
  }
}

@media (prefers-reduced-motion:reduce){
  .anu-unit-panel-v03103 .anu-action-v03103{
    transition:none !important;
  }
  .anu-unit-panel-v03103 .anu-action-v03103:hover{
    transform:none !important;
  }
}

@media (forced-colors:active){
  .anu-unit-panel-v03103{border:1px solid CanvasText !important}
  .anu-unit-panel-v03103 .anu-ppt-code-v03103{border:1px solid CanvasText !important}
  .anu-unit-panel-v03103 .anu-action-v03103{border:1px solid ButtonText !important}
  .anu-unit-panel-v03103 .anu-action-export-v03103{
    background:Highlight !important;
    color:HighlightText !important;
  }
}
