@charset "UTF-8";
:root {
  --monlau-primary-color: #000 !important;
}
h1, h2, h3, h4 {
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
body.monlau-css-corp {
  --monlau-primary-color: #000 !important;
  --num-columns-course-activities: 1 !important;
}
body.monlau-css-corp .navbar-brand {
  background: url(//lms.monlau.com/pluginfile.php/1/theme_monlau/customimages/1795429503/monlau_corp.png);
}
body.monlau-css-eso {
  --num-columns-course-activities: 1 !important;
  --monlau-primary-color: #36ab58 !important;
}
body.monlau-css-eso .navbar-brand {
  background: url(//lms.monlau.com/pluginfile.php/1/theme_monlau/customimages/1795429503/monlau_eso.jpg);
}
body.monlau-css-fp {
  --monlau-primary-color: #07529d !important;
}
body.monlau-css-fp .navbar-brand {
  background: url(//lms.monlau.com/pluginfile.php/1/theme_monlau/customimages/1795429503/monlau_fp.jpg);
}
body.monlau-css-mma {
  --monlau-primary-color: #ed1c24 !important;
  --num-columns-course-activities: 1 !important;
}
body.monlau-css-mma .navbar-brand {
  background: url(//lms.monlau.com/pluginfile.php/1/theme_monlau/customimages/1795429503/monlau_mma.png);
}
body.monlau-css-corp, body.monlau-css-eso, body.monlau-css-mma, body.monlau-css-fp {
  --primary: var(--monlau-primary-color);
  --bs-primary: var(--primary);
}
body.monlau-css-corp .navbar-brand, body.monlau-css-eso .navbar-brand, body.monlau-css-mma .navbar-brand, body.monlau-css-fp .navbar-brand {
  display: flex !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 60px;
  height: 60px;
}
body.monlau-css-corp .navbar-brand img, body.monlau-css-eso .navbar-brand img, body.monlau-css-mma .navbar-brand img, body.monlau-css-fp .navbar-brand img {
  opacity: 0;
  width: 0;
}
/* AFP */
.path-local-afp-index .local-afp-subheader-usermycourses .tabs .local-afp-tabfavorites {
  background: rgba(255, 255, 255, 0.25);
}
.path-local-afp-index .local-afp-header {
  padding-bottom: 0.5rem;
  position: relative;
}
.path-local-afp-index .local-afp-header:before {
  content: "";
  display: block;
  width: 40rem;
  height: 35rem;
  position: absolute;
  bottom: -20%;
  right: 0;
  z-index: 0;
  -webkit-mask-image: url("https://lms.monlau.com/pluginfile.php/1/theme_monlau/customimages/1781019690/molau_mask.png");
  mask-image: url("https://lms.monlau.com/pluginfile.php/1/theme_monlau/customimages/1781019690/molau_mask.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center 100%;
  mask-position: center 100%;
  background: rgba(255, 255, 255, 0.18) 45%;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.35));
  opacity: 0.6;
}
.path-local-afp-index .local-afp-header h1 > h3, .path-local-afp-index .local-afp-header .local-afp-userinfo > h3, .path-local-afp-index .local-afp-header .local-afp-subheader-usermycourses > h3 {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
}
.path-local-afp-index .local-afp-descriptiontab {
  border-radius: var(--afp-ui-border-radius, 16px);
}
.path-local-afp-index .local-afp-courses-card-style-standard .course-card {
  width: 220px;
  min-width: 220px;
}
.path-local-afp-index div[class$="-overlay"] .course-card .course-image-container {
  min-height: 270px;
}
.path-local-afp-index div[class$="-overlay"] .course-card .course-image-container:before {
  display: none;
}
.path-local-afp-index div[class$="-overlay"] .course-card .course-info {
  padding-bottom: 0 !important;
}
.path-local-afp-index div[class$="-overlay"] .course-card .overlay-bottom-content {
  backdrop-filter: blur(20px);
  background-color: rgba(0, 0, 0, 0.1);
  padding: 1rem 1rem 0.5rem;
  min-height: 35%;
}
.path-local-afp-index div[class$="-overlay"] .course-card .overlay-bottom-content h3 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal !important;
  width: 100% !important;
}
.path-local-afp-index .local-afp-subheader-opencourses {
  background: var(--monlau-primary-color, var(--primary, #0f6cbf)) !important;
}
.path-local-afp-index .local-afp-subheader-opencourses .opencourses-tags .opencourses-tag.active {
  background: #fa8d2f;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.2);
  background-clip: padding-box;
}
@media screen and (max-width: 768px) {
  .path-local-afp-index .local-afp-header {
    overflow: hidden;
  }
  .path-local-afp-index .local-afp-header .userinfo-tabs {
    padding-right: 3rem;
  }
  .path-local-afp-index .local-afp-subheader-userinfo {
    padding-right: 0;
  }
}
body#page-course-view-grid:not(.editing) .course-content > [id$="-course-format"] > p.text-right, body#page-course-view-section-grid:not(.editing) .course-content > [id$="-course-format"] > p.text-right {
  display: flex;
  justify-content: flex-start;
  max-width: var(--max-width);
  margin: 0 auto 1rem;
  padding: 0 1.5rem;
}
body#page-course-view-grid:not(.editing) .course-content > [id$="-course-format"] > p.text-right a, body#page-course-view-section-grid:not(.editing) .course-content > [id$="-course-format"] > p.text-right a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-radius: calc(var(--element-border-radius) * 1.6);
  color: #fff;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
body#page-course-view-grid:not(.editing) .course-content > [id$="-course-format"] > p.text-right a::before, body#page-course-view-section-grid:not(.editing) .course-content > [id$="-course-format"] > p.text-right a::before {
  content: "";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9rem;
  color: #fff;
}
body#page-course-view-grid:not(.editing) .course-content > [id$="-course-format"] > p.text-right a, body#page-course-view-section-grid:not(.editing) .course-content > [id$="-course-format"] > p.text-right a {
  background: var(--monlau-primary-color, var(--primary, #0f6cbf)) !important;
}
body.lms-monlau-com {
  container-type: inline-size;
  /*.login-wrapper::after {
     content: "";
     position: absolute;
     inset: 0;
     z-index: 2;
     pointer-events: none;

     background-image:
       url(//lms.monlau.com/pluginfile.php/1/theme_monlau/customimages/1795429503/monlau_eso.jpg),
       url(//lms.monlau.com/pluginfile.php/1/theme_monlau/customimages/1795429503/monlau_fp.jpg),
       url(//lms.monlau.com/pluginfile.php/1/theme_monlau/customimages/1795429503/monlau_corp.jpg);

     background-repeat: no-repeat, no-repeat, no-repeat;
     background-position:
       30px 34px,
       center 34px,
       calc(100% - 30px) 34px;
     background-size:
       72px auto,
       72px auto,
       72px auto;
    }*/
}
body.lms-monlau-com.boost-samoo-course-header-enabled #topofscroll.boost-samoo-course-hero::before {
  background-image: linear-gradient(to right, var(--monlau-primary-color), #fff0), var(--course-header-image);
}
body.lms-monlau-com .navbar.fixed-top {
  background: var(--monlau-primary-color) !important;
  border: none;
}
body.lms-monlau-com .navbar.fixed-top .nav-item:not(.dropdown) a, body.lms-monlau-com .navbar.fixed-top .navbar-nav .nav-link, body.lms-monlau-com .navbar.fixed-top .dropdown > a, body.lms-monlau-com .navbar.fixed-top .editmode-switch-form, body.lms-monlau-com .navbar.fixed-top .usermenu .login a {
  color: #fff;
}
body.lms-monlau-com .navbar.fixed-top .nav-item:not(.dropdown) a label, body.lms-monlau-com .navbar.fixed-top .navbar-nav .nav-link label, body.lms-monlau-com .navbar.fixed-top .dropdown > a label, body.lms-monlau-com .navbar.fixed-top .editmode-switch-form label, body.lms-monlau-com .navbar.fixed-top .usermenu .login a label {
  color: #fff !important;
}
body.lms-monlau-com .navbar.fixed-top .nav-item:not(.dropdown) a:hover, body.lms-monlau-com .navbar.fixed-top .navbar-nav .nav-link:hover, body.lms-monlau-com .navbar.fixed-top .dropdown > a:hover, body.lms-monlau-com .navbar.fixed-top .editmode-switch-form:hover, body.lms-monlau-com .navbar.fixed-top .usermenu .login a:hover {
  color: var(--monlau-primary-color, var(--primary, #0f6cbf)) !important;
}
body.lms-monlau-com .navbar.fixed-top .nav-item:not(.dropdown) a:hover:not(.editmode-switch-form), body.lms-monlau-com .navbar.fixed-top .navbar-nav .nav-link:hover:not(.editmode-switch-form), body.lms-monlau-com .navbar.fixed-top .dropdown > a:hover:not(.editmode-switch-form), body.lms-monlau-com .navbar.fixed-top .editmode-switch-form:hover:not(.editmode-switch-form), body.lms-monlau-com .navbar.fixed-top .usermenu .login a:hover:not(.editmode-switch-form) {
  background-color: #fff;
}
body.lms-monlau-com .local-afp-header, body.lms-monlau-com #page-wrapper #page-footer {
  background-color: var(--monlau-primary-color, var(--primary, #0f6cbf)) !important;
  background: var(--monlau-primary-color, var(--primary, #0f6cbf)) !important;
  border: none;
}
body.lms-monlau-com #page-wrapper #page-footer {
  width: 100cqw !important;
  max-width: 100cqw !important;
  margin-left: calc(50% - 50cqw) !important;
  margin-right: calc(50% - 50cqw) !important;
}
body.lms-monlau-com #page-wrapper #page-footer .popover-body {
  background-color: var(--monlau-primary-color, var(--primary, #0f6cbf)) !important;
}
body.lms-monlau-com #page-wrapper #page-footer .popover-body img {
  max-width: 100%;
}
body.lms-monlau-com #page-wrapper #page-footer .popover-body * {
  color: #fff;
}
body.lms-monlau-com .login-container {
  background-color: rgba(117, 117, 117, 0.4) !important;
  margin-top: 5rem;
}
body.lms-monlau-com .login-container .login-logo {
  background: url(//lms.monlau.com/pluginfile.php/1/theme_monlau/customimages/1795429503/monlaugroup.svg);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}
body.lms-monlau-com .login-container .login-logo img {
  opacity: 0;
}
body.lms-monlau-com .login-container a, body.lms-monlau-com .login-container h2 {
  color: #fff;
}
/* ============================================================
   MONLAU - BANCO DE PREGUNTAS
   Moodle 5.1 + Boost Union
   Visualización optimizada de categorías
   Versión corregida
   ============================================================ */
/* ============================================================
   1. CONTENEDOR GENERAL
   Aprovechar el ancho disponible
   ============================================================ */
body.path-question-bank #page.drawers .main-inner, body.path-question-category #page.drawers .main-inner {
  width: calc(100% - 32px) !important;
  max-width: 1800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Pantallas grandes */
@media (min-width: 1800px) {
  body.path-question-bank #page.drawers .main-inner, body.path-question-category #page.drawers .main-inner {
    max-width: 1900px !important;
  }
}
/* ============================================================
   2. REGIÓN PRINCIPAL
   Eliminar restricciones internas de ancho
   ============================================================ */
body.path-question-bank #region-main, body.path-question-category #region-main {
  width: 100% !important;
  max-width: none !important;
}
body.path-question-bank #region-main .container, body.path-question-bank #region-main .container-fluid, body.path-question-category #region-main .container, body.path-question-category #region-main .container-fluid {
  width: 100% !important;
  max-width: none !important;
}
/* ============================================================
   3. CARD PRINCIPAL
   ============================================================ */
body.path-question-bank .card, body.path-question-category .card, body.path-question-bank .card-body, body.path-question-category .card-body {
  width: 100% !important;
  max-width: none !important;
}
/* ============================================================
   4. BLOQUE DE CATEGORÍAS
   ============================================================ */
body.path-question-bank .questioncategories, body.path-question-category .questioncategories {
  width: 100% !important;
  max-width: none !important;
  opacity: 1 !important;
  color: #212529 !important;
}
/* ============================================================
   5. LISTAS
   ============================================================ */
body.path-question-bank .questioncategories ul, body.path-question-category .questioncategories ul {
  width: 100% !important;
  max-width: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  opacity: 1 !important;
}
/* ============================================================
   6. ELEMENTOS LI
   Evitar transparencia acumulativa en niveles anidados
   ============================================================ */
body.path-question-bank .questioncategories li, body.path-question-category .questioncategories li {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  color: #212529 !important;
  line-height: 1.2 !important;
}
/* ============================================================
   7. FILA DE CADA CATEGORÍA
   ============================================================ */
body.path-question-bank .questioncategories li > div, body.path-question-category .questioncategories li > div {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  min-height: 32px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-bottom: 1px solid #e5e7eb !important;
  opacity: 1 !important;
  color: #212529 !important;
}
/* ============================================================
   8. TEXTO
   Recuperar contraste completo
   ============================================================ */
body.path-question-bank .questioncategories a, body.path-question-category .questioncategories a, body.path-question-bank .questioncategories span, body.path-question-category .questioncategories span, body.path-question-bank .questioncategories strong, body.path-question-category .questioncategories strong, body.path-question-bank .questioncategories .categoryname, body.path-question-category .questioncategories .categoryname {
  opacity: 1 !important;
  color: #212529 !important;
}
/* Enlaces */
body.path-question-bank .questioncategories a, body.path-question-category .questioncategories a {
  text-decoration: none !important;
}
/* Hover de enlace */
body.path-question-bank .questioncategories a:hover, body.path-question-category .questioncategories a:hover {
  color: #0051a0 !important;
  text-decoration: none !important;
}
/* ============================================================
   9. NOMBRE DE LA CATEGORÍA
   ============================================================ */
body.path-question-bank .questioncategories .categoryname, body.path-question-category .questioncategories .categoryname {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  opacity: 1 !important;
  color: #212529 !important;
}
/* ============================================================
   10. BOOTSTRAP / FLEX
   Hacer que las filas utilicen todo el ancho
   ============================================================ */
body.path-question-bank .questioncategories .d-flex, body.path-question-category .questioncategories .d-flex, body.path-question-bank .questioncategories .row, body.path-question-category .questioncategories .row {
  width: 100% !important;
  max-width: none !important;
  opacity: 1 !important;
}
body.path-question-bank .questioncategories .flex-grow-1, body.path-question-category .questioncategories .flex-grow-1 {
  flex-grow: 1 !important;
  width: auto !important;
  max-width: none !important;
  opacity: 1 !important;
}
body.path-question-bank .questioncategories [class*="col-"], body.path-question-category .questioncategories [class*="col-"] {
  max-width: none !important;
}
/* ============================================================
   11. MENÚ DE ACCIONES ···
   Siempre visible pero discreto
   ============================================================ */
body.path-question-bank .questioncategories .action-menu, body.path-question-category .questioncategories .action-menu, body.path-question-bank .questioncategories .dropdown, body.path-question-category .questioncategories .dropdown {
  margin-left: auto !important;
  flex: 0 0 auto !important;
  min-width: 28px !important;
  opacity: 1 !important;
  color: #5f6368 !important;
}
/* Botón del menú */
body.path-question-bank .questioncategories .action-menu button, body.path-question-category .questioncategories .action-menu button, body.path-question-bank .questioncategories .dropdown button, body.path-question-category .questioncategories .dropdown button {
  opacity: 1 !important;
  color: #5f6368 !important;
}
/* Hover menú */
body.path-question-bank .questioncategories .action-menu button:hover, body.path-question-category .questioncategories .action-menu button:hover, body.path-question-bank .questioncategories .dropdown button:hover, body.path-question-category .questioncategories .dropdown button:hover {
  color: #0051a0 !important;
}
/* ============================================================
   12. ICONO DE ARRASTRE
   Sin opacity para evitar efectos acumulativos
   ============================================================ */
body.path-question-bank .questioncategories .draghandle, body.path-question-category .questioncategories .draghandle {
  opacity: 1 !important;
  color: #9ca3af !important;
}
/* Iconos dentro del draghandle */
body.path-question-bank .questioncategories .draghandle .icon, body.path-question-category .questioncategories .draghandle .icon {
  opacity: 1 !important;
  color: #9ca3af !important;
}
/* Hover arrastre */
body.path-question-bank .questioncategories .draghandle:hover, body.path-question-category .questioncategories .draghandle:hover, body.path-question-bank .questioncategories .draghandle:hover .icon, body.path-question-category .questioncategories .draghandle:hover .icon {
  color: #0051a0 !important;
}
/* ============================================================
   13. OTROS ICONOS
   ============================================================ */
body.path-question-bank .questioncategories .icon, body.path-question-category .questioncategories .icon {
  opacity: 1 !important;
}
/* ============================================================
   14. HOVER DE FILA
   ============================================================ */
body.path-question-bank .questioncategories li > div:hover, body.path-question-category .questioncategories li > div:hover {
  background-color: #f8fafc !important;
  color: #212529 !important;
}
/* ============================================================
   15. SANGRÍA
   Jerarquía clara sin perder demasiado ancho
   ============================================================ */
/* Nivel 2 */
body.path-question-bank .questioncategories ul ul, body.path-question-category .questioncategories ul ul {
  padding-left: 18px !important;
  margin-left: 0 !important;
}
/* Nivel 3 */
body.path-question-bank .questioncategories ul ul ul, body.path-question-category .questioncategories ul ul ul {
  padding-left: 16px !important;
}
/* Nivel 4 */
body.path-question-bank .questioncategories ul ul ul ul, body.path-question-category .questioncategories ul ul ul ul {
  padding-left: 14px !important;
}
/* Nivel 5 y siguientes */
body.path-question-bank .questioncategories ul ul ul ul ul, body.path-question-category .questioncategories ul ul ul ul ul {
  padding-left: 12px !important;
}
/* ============================================================
   16. JERARQUÍA VISUAL
   No utilizar opacity para diferenciar niveles
   ============================================================ */
/* Categoría raíz */
body.path-question-bank .questioncategories > ul > li > div, body.path-question-category .questioncategories > ul > li > div {
  font-weight: 700 !important;
  color: #212529 !important;
}
/* Primer nivel */
body.path-question-bank .questioncategories > ul > li > ul > li > div, body.path-question-category .questioncategories > ul > li > ul > li > div {
  font-weight: 700 !important;
  color: #212529 !important;
}
/* Segundo nivel */
body.path-question-bank .questioncategories > ul > li > ul > li > ul > li > div, body.path-question-category .questioncategories > ul > li > ul > li > ul > li > div {
  font-weight: 600 !important;
  color: #212529 !important;
}
/* Niveles interiores */
body.path-question-bank .questioncategories ul ul ul ul li > div, body.path-question-category .questioncategories ul ul ul ul li > div {
  font-weight: 500 !important;
  color: #212529 !important;
}
/* ============================================================
   17. FORMULARIOS DEL BANCO
   ============================================================ */
body.path-question-bank .mform, body.path-question-category .mform, body.path-question-bank .form-item, body.path-question-category .form-item {
  width: 100% !important;
  max-width: none !important;
}
/* ============================================================
   18. INPUTS Y SELECTORES
   ============================================================ */
body.path-question-bank input[type="text"], body.path-question-category input[type="text"], body.path-question-bank select, body.path-question-category select {
  max-width: 100% !important;
}
/* ============================================================
   19. TABLAS
   ============================================================ */
body.path-question-bank table, body.path-question-category table {
  width: 100% !important;
  max-width: none !important;
}
body.path-question-bank table td, body.path-question-category table td {
  vertical-align: middle !important;
}
/* ============================================================
   20. TÍTULOS Y ESPACIADO
   ============================================================ */
body.path-question-bank h2, body.path-question-category h2, body.path-question-bank h3, body.path-question-category h3 {
  margin-bottom: 0.6rem !important;
}
body.path-question-bank .mb-3, body.path-question-category .mb-3 {
  margin-bottom: 0.75rem !important;
}
/* ============================================================
   21. PANTALLAS MEDIANAS
   ============================================================ */
@media (max-width: 1200px) {
  body.path-question-bank #page.drawers .main-inner, body.path-question-category #page.drawers .main-inner {
    width: calc(100% - 20px) !important;
  }
  body.path-question-bank .questioncategories ul ul, body.path-question-category .questioncategories ul ul {
    padding-left: 14px !important;
  }
}
/* ============================================================
   22. TABLETS Y MÓVILES
   ============================================================ */
@media (max-width: 768px) {
  body.path-question-bank #page.drawers .main-inner, body.path-question-category #page.drawers .main-inner {
    width: calc(100% - 12px) !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  body.path-question-bank .questioncategories ul ul, body.path-question-category .questioncategories ul ul {
    padding-left: 10px !important;
  }
}
/* ============================================================
   MOODLE - MODALES DE BANCO DE PREGUNTAS
   Mejora de ancho, altura, navegación y contraste
   ============================================================ */
/* ------------------------------------------------------------
   1. MODAL MÁS GRANDE
   ------------------------------------------------------------ */
.modal-dialog {
  width: 92vw;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1400px) {
  .modal-dialog {
    max-width: 1250px;
  }
}
/* ------------------------------------------------------------
   2. APROVECHAR LA ALTURA DE PANTALLA
   ------------------------------------------------------------ */
.modal-content {
  max-height: 92vh;
}
.modal-body {
  max-height: 80vh;
  overflow-y: auto;
  line-height: 1.45;
  padding-left: 18px;
  padding-right: 18px;
}
/* ------------------------------------------------------------
   3. ESPACIADO GENERAL
   ------------------------------------------------------------ */
.modal-body .form-group, .modal-body .mb-3 {
  margin-bottom: 0.8rem;
}
/* ------------------------------------------------------------
   4. SELECTORES NORMALES
   ------------------------------------------------------------ */
.modal select {
  width: 100%;
  max-width: 100%;
}
.modal select[size], .modal select[multiple] {
  min-height: 340px;
  max-height: 58vh;
}
/* ------------------------------------------------------------
   5. AUTOCOMPLETE DE CATEGORÍAS
   ------------------------------------------------------------ */
.modal .form-autocomplete-selection {
  width: 100%;
  max-width: none;
}
.modal .form-autocomplete-input {
  min-width: 420px;
  width: 100% !important;
}
/* ------------------------------------------------------------
   6. DESPLEGABLE DE CATEGORÍAS
   ------------------------------------------------------------ */
.modal .form-autocomplete-suggestions {
  width: 700px !important;
  min-width: 700px !important;
  max-width: 80vw !important;
  max-height: 55vh !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  padding: 4px 0;
  background-color: #ffffff !important;
  border: 1px solid #ced4da;
  border-radius: 4px;
}
/* ------------------------------------------------------------
   7. FILAS DEL ÁRBOL DE CATEGORÍAS
   ------------------------------------------------------------ */
.modal .form-autocomplete-suggestions li {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  line-height: 1.35;
  white-space: nowrap;
  color: #212529 !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
}
/* ------------------------------------------------------------
   8. HOVER
   ------------------------------------------------------------ */
.modal .form-autocomplete-suggestions li:hover, .modal .form-autocomplete-suggestions li[aria-selected="true"]:hover {
  background-color: #e9ecef !important;
  color: #000000 !important;
}
/* Forzar contraste en elementos internos */
.modal .form-autocomplete-suggestions li:hover *, .modal .form-autocomplete-suggestions li[aria-selected="true"]:hover * {
  color: #000000 !important;
}
/* ------------------------------------------------------------
   9. FILA ACTIVA / SELECCIONADA
   ------------------------------------------------------------ */
.modal .form-autocomplete-suggestions li[aria-selected="true"], .modal .form-autocomplete-suggestions li.active, .modal .form-autocomplete-suggestions li:focus {
  background-color: #dce8f7 !important;
  color: #000000 !important;
  outline: none !important;
}
/* Elementos internos heredan correctamente el color */
.modal .form-autocomplete-suggestions li span, .modal .form-autocomplete-suggestions li div, .modal .form-autocomplete-suggestions li a {
  color: inherit !important;
}
/* ------------------------------------------------------------
   10. EVITAR CORTES DE TEXTO
   ------------------------------------------------------------ */
.modal .form-autocomplete-suggestions li span, .modal .form-autocomplete-suggestions li div {
  overflow: visible !important;
  text-overflow: unset !important;
}
/* ------------------------------------------------------------
   11. BLOQUE DE FILTROS
   ------------------------------------------------------------ */
.modal .filter-group, .modal .questionbank-filter {
  width: 100%;
}
/* ------------------------------------------------------------
   12. PIE DEL MODAL
   ------------------------------------------------------------ */
.modal-footer {
  padding-top: 10px;
  padding-bottom: 10px;
}
/* ------------------------------------------------------------
   13. PANTALLAS PEQUEÑAS
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .modal-dialog {
    width: 96vw;
    max-width: 96vw;
  }
  .modal .form-autocomplete-suggestions {
    width: 90vw !important;
    min-width: 90vw !important;
    max-width: 90vw !important;
  }
  .modal .form-autocomplete-input {
    min-width: 250px;
  }
}
.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}
@media (max-width: 595px) {
  .path-local-afp-index .local-afp-mycourses-wrapper .local-afp-container-tab {
    padding-right: 0 !important;
  }
  .path-local-afp-index .local-afp-mycourses-wrapper .local-afp-container-tab .local-afp-courses {
    padding-right: 2rem;
  }
}
/* ============================================================
   MONLAU - FORMATO MULTITOPIC
   Más ancho + temas sin cajas
   ============================================================ */
@media (min-width: 992px) {
  body.format-multitopic #page.drawers .main-inner {
    width: calc(100% - 64px) !important;
    max-width: 1250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
body.format-multitopic #region-main, body.format-multitopic .course-content {
  width: 100% !important;
  max-width: none !important;
}
/* Temas / subsecciones */
body.format-multitopic ul.section-list > li.section, body.format-multitopic ul.section-list > li.section > .course-section-header {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}
body.format-multitopic ul.section-list > li.section {
  margin-bottom: 0.5rem !important;
}
/* Responsive */
@media (max-width: 991px) {
  body.format-multitopic #page.drawers .main-inner {
    width: calc(100% - 24px) !important;
    max-width: none !important;
  }
}
