/*
 * Global Font Override — Manrope
 * Reemplaza la familia tipográfica por defecto (Source Sans Pro de AdminLTE,
 * Segoe UI fallback, etc.) por Manrope. Se carga DESPUÉS de adminlte.min.css
 * para garantizar precedencia.
 *
 * El monospace stack se preserva para elementos de código y contraseñas.
 */

:root {
    --font-sans: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

html,
body {
    font-family: var(--font-sans) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Heredan en cascada — pero AdminLTE/Bootstrap re-declara la familia en muchos
   selectores, así que forzamos en los más comunes: */
button, input, select, textarea, optgroup,
.btn, .form-control, .input-group-text, .custom-select,
h1, h2, h3, h4, h5, h6,
.navbar, .nav-link, .sidebar, .main-sidebar,
.card-title, .card-header, .card-body, .card-footer,
.swal2-popup, .swal2-title, .swal2-html-container,
.breadcrumb, .breadcrumb-item, .dropdown-menu, .dropdown-item,
.modal, .modal-title, .modal-body, .tooltip, .popover,
.table, .table th, .table td,
.alert, .badge, .pagination, .page-link,
label, fieldset, legend {
    font-family: var(--font-sans) !important;
}

/* Preservar monospace en código, fragmentos técnicos y contraseñas. */
code, kbd, pre, samp, tt, var,
.monospace, .font-monospace, .text-monospace,
[class*="-monospace"],
input[type="password"],
.copy-target,
.pwd-val {
    font-family: var(--font-mono) !important;
}

/* Los íconos de Font Awesome usan su propia familia — no tocarlos. */
.fa, .fas, .far, .fab, .fal, .fad, .fass, .fasr,
[class^="fa-"], [class*=" fa-"] {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'Font Awesome 5 Free', 'Font Awesome 5 Brands' !important;
}
