@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@400;500;600;700;800&display=swap");

:root {
    --pos-fuente: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --pos-fuente-titulos: "Sora", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html body,
html body[class*="tema-pos-"] {
    font-family: var(--pos-fuente) !important;
}

html body :is(button, input, select, textarea, table, .btn, .form-control, .form-select, .input-group-text, .dropdown-menu, .select2-container, .swal2-popup, .dataTables_wrapper) {
    font-family: var(--pos-fuente) !important;
}

html body :is(h1, h2, h3, h4, h5, h6, .card-title, .modal-title, .catalogo-titulo, .navbar-brand, .brand-text) {
    font-family: var(--pos-fuente-titulos) !important;
}

/* El menú usa la misma familia y escala que el contenido, sin negrita excesiva. */
html body #sidebarPrincipal#sidebarPrincipal :is(.sidebar-grupo-boton, .sidebar-grupo-opciones a, .menu-texto, .sidebar-profile-info strong, .sidebar-profile-info small):not(i) {
    font-family: var(--pos-fuente) !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
}
html body #sidebarPrincipal#sidebarPrincipal :is(.sidebar-grupo-boton, .sidebar-grupo-opciones a, .sidebar-grupo-boton .menu-texto, .sidebar-grupo-opciones a .menu-texto) {
    font-size: var(--pos-font-ui, 14px) !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

/* Evitar saltos de línea durante la carga de la fuente y la transición lateral. */
html body #sidebarPrincipal#sidebarPrincipal .sidebar-grupo-opciones a {
    flex-wrap: nowrap !important;
}
html body #sidebarPrincipal#sidebarPrincipal .sidebar-grupo-opciones a .menu-texto {
    min-width: 0;
    white-space: nowrap !important;
}
