/* =========================================================================
   LUCIDE ICONS + REFINAMIENTO VISUAL
   Se carga después de pro-ui.css (y después del <style> de cada página).
   Solo toca propiedades cosméticas.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1 · ICONOS LUCIDE
   Los <i class="bi bi-..."> conservan sus clases y estilos; la capa JS
   (assets/js/lucide-icons.js) les inserta un <svg> de Lucide. Aquí se anula
   el glifo de Bootstrap Icons y se ajusta el tamaño/alineación del SVG para
   que ocupe exactamente el lugar del icono original.
   ------------------------------------------------------------------------- */
i[data-lucide-icon]::before,
i.bi.lucide-icon::before,
i.lucide-icon::before {
    content: none !important;
    display: none !important;
}

i[data-lucide-icon],
i.lucide-icon {
    font-style: normal;
    line-height: 1;
}

i[data-lucide-icon] > svg.lucide-icon-svg {
    width: 1.1em;
    height: 1.1em;
    display: inline-block;
    vertical-align: -0.125em;
    stroke-width: 1.85;
    overflow: visible;
}

/* En el menú lateral el icono vive dentro de un recuadro de 42px:
   se le da un poco más de presencia sin tocar el layout. */
body .sidebar .menu-item .menu-icon > svg.lucide-icon-svg {
    width: 1.2em;
    height: 1.2em;
}

body .sidebar.collapsed .menu-item .menu-icon > svg.lucide-icon-svg {
    width: 1.05em;
    height: 1.05em;
}

/* -------------------------------------------------------------------------
   2 · DETALLES TIPOGRÁFICOS Y DE DATOS
   ------------------------------------------------------------------------- */
body {
    text-rendering: optimizeLegibility;
    font-variant-numeric: tabular-nums;
}

body ::selection {
    background: rgba(33, 152, 145, 0.18);
    color: inherit;
}

/* Encabezados de tabla como micro-etiquetas: más limpios y legibles */
body .table thead th,
body .tabla-solicitudes thead th,
body .tabla-embarazadas thead th,
body .tabla-usuarios thead th,
body .tabla-solicitantes thead th {
    font-size: 0.69rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* -------------------------------------------------------------------------
   3 · ICONOS DENTRO DE BOTONES Y CAMPOS
   ------------------------------------------------------------------------- */
body .btn > i.lucide-icon,
body .btn > svg.lucide-icon-svg {
    flex-shrink: 0;
}
