Actual
/* =========================================================
   site.css (AJUSTADO PARA DASHBOARD 100% RESPONSIVO)
   - Chart.js 4.1.1: el tamaño lo controla el CONTENEDOR.
   - Se elimina la dependencia de width: XXvw (causa scroll horizontal
     y distorsión) y se estandariza con .chart-box + alturas clamp().
   ========================================================= */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/*Principalmente param los modales*/
.oculto {
    visibility: hidden;
    height: 0px;
    width: 0px;
}

/*Para el Dashboard*/
body {
    font-size: .875rem;
}

.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

/*
 * Sidebar
 */
.sidebar {
    position: fixed;
    top: 0;
    /* rtl:raw:
  right: 0;
  */
    bottom: 0;
    /* rtl:remove */
    left: 0;
    z-index: 100; /* Behind the navbar */
    padding: 48px 0 0; /* Height of navbar */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
    }
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

    .sidebar .nav-link .feather {
        margin-right: 4px;
        color: #727272;
    }

    .sidebar .nav-link.active {
        color: #2470dc;
    }

        .sidebar .nav-link:hover .feather,
        .sidebar .nav-link.active .feather {
            color: inherit;
        }

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/*
 * Navbar
 */
.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
}

.navbar .navbar-toggler {
    top: .25rem;
    right: 1rem;
}

.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}

.form-control-dark {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .1);
}

    .form-control-dark:focus {
        border-color: transparent;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
    }

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}


/* =========================================================
   ChartJs
   ========================================================= */

/* ----------------------------------------------------------------
   CAMBIO IMPORTANTE (DESACOPLAR DE vw/vh):
   Tus clases .chartJs-sm/.chartJs-md/.chartJs-lg usan width: XXvw.
   Eso típicamente provoca:
    - Scroll horizontal en móvil (80vw + padding/márgenes/columnas)
    - Distorsión de canvas cuando el grid cambia
    - Dificultad para “encajar” en columnas Bootstrap

   Recomendación: DEJAR DE USAR esas clases en el Dashboard y
   migrar a .chart-box + .chart-md/lg/xl.

   Para no romper pantallas viejas (si aún tienes vistas que
   las usan), NO las borro; las “neutralizo” para que ya NO
   controlen el ancho con vw.
   ---------------------------------------------------------------- */

/* ====== LEGACY: chartJs-sm/md/lg (NEUTRALIZADAS) ====== */
/* CAMBIO: width pasa a 100% para que sea el grid el que mande. */
.chartJs-sm,
.chartJs-md,
.chartJs-lg {
    position: relative;
    width: 100%; /* <-- CAMBIO: antes era XXvw */
    max-width: 100%; /* <-- NUEVO: evita overflow */
}

/* CAMBIO: mantenemos alturas por compatibilidad, pero sin width vw.
   Nota: idealmente, en el Dashboard ya NO deberías usar estas clases. */
.chartJs-sm {
    height: 30vh;
}

.chartJs-md {
    height: 30vh;
}

.chartJs-lg {
    height: 30vh;
}

/* CAMBIO: los media queries de width:80vw ya no aportan valor si width=100%.
   Los dejo comentados para que identifiques qué fue removido.
   Si quieres, puedes eliminarlos después de verificar que no hay vistas legacy. */

/*
@media screen and (max-width: 575.98px) { .chartJs-sm { height: 30vh; width: 80vw; } }
@media screen and (min-width: 576px) and (max-width: 767.98px) { .chartJs-sm { height: 30vh; width: 80vw; } }
@media screen and (min-width: 768px) and (max-width: 991.98px) { .chartJs-sm { height: 30vh; width: 80vw; } }
@media screen and (min-width: 992px) and (max-width: 1199.98px) { .chartJs-sm { height: 30vh; width: 20vw; } }
@media screen and (min-width: 1200px) and (max-width: 1399.98px) { .chartJs-sm { height: 30vh; width: 20vw; } }
@media screen and (min-width: 1400px) { .chartJs-sm { height: 30vh; width: 20vw; } }

@media screen and (max-width: 575.98px) { .chartJs-md { height: 30vh; width: 80vw; } }
@media screen and (min-width: 576px) and (max-width: 767.98px) { .chartJs-md { height: 30vh; width: 80vw; } }
@media screen and (min-width: 768px) and (max-width: 991.98px) { .chartJs-md { height: 30vh; width: 80vw; } }
@media screen and (min-width: 992px) and (max-width: 1199.98px) { .chartJs-md { height: 30vh; width: 48vw; } }
@media screen and (min-width: 1200px) and (max-width: 1399.98px) { .chartJs-md { height: 40vh; width: 45vw; } }
@media screen and (min-width: 1400px) { .chartJs-md { height: 30vh; width: 45vw; } }

@media screen and (max-width: 575.98px) { .chartJs-lg { height: 20vh; width: 80vw; } }
@media screen and (min-width: 576px) and (max-width: 767.98px) { .chartJs-lg { height: 30vh; width: 80vw; } }
@media screen and (min-width: 768px) and (max-width: 991.98px) { .chartJs-lg { height: 30vh; width: 80vw; } }
@media screen and (min-width: 992px) and (max-width: 1199.98px) { .chartJs-lg { height: 35vh; width: 80vw; } }
@media screen and (min-width: 1200px) and (max-width: 1399.98px) { .chartJs-lg { height: 50vh; width: 70vw; } }
@media screen and (min-width: 1400px) { .chartJs-lg { height: 45vh; width: 80vw; } }
*/


/*Estilos para reportes de documentos como pólizas*/
.encabezado {
    border: 1px solid #e3e3e3;
    box-shadow: 0px 1px 1px 0px rgba(0,0,0,.2);
}

/*Estilos para los submenus*/
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .dropdown-menu {
        position: absolute;
        left: 100%;
        top: 0;
        margin-top: 0;
        display: none;
    }

    .dropdown-submenu:hover .dropdown-menu {
        display: block;
    }

/* Team cards: micro-interacción moderna */
.card.shadow-sm {
    transition: transform .15s ease, box-shadow .15s ease;
}

    .card.shadow-sm:hover {
        transform: translateY(-2px);
        box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.08) !important;
    }

/* =========================================================
   Dashboard - UI base (CANÓNICO / RECOMENDADO)
   ========================================================= */

.dashboard-card {
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.04);
    border-radius: .75rem;
}

/* Contenedor universal de Chart.js
   CAMBIO: Este contenedor ES el que manda el tamaño.
   Chart.js debe ir con maintainAspectRatio:false. */
.chart-box {
    position: relative; /* requerido por Chart.js */
    width: 100%;
    max-width: 100%; /* NUEVO: blindaje contra overflow */
}

/* Alturas fluidas
   (Se conservan tus valores; son correctos para un dashboard) */
.chart-md {
    height: clamp(260px, 32vh, 420px);
}

.chart-lg {
    height: clamp(280px, 38vh, 520px);
}

.chart-xl {
    height: clamp(320px, 45vh, 600px);
}

/* Canvas ocupa el contenedor
   CAMBIO: forzamos 100% para que el canvas siga al contenedor. */
.chart-box > canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Ajustes finos móvil */
@media (max-width: 575.98px) {
    .chart-lg {
        height: clamp(260px, 34vh, 440px);
    }

    .chart-xl {
        height: clamp(300px, 40vh, 520px);
    }
}

/* =========================================================
   Pare reportes
   ========================================================= */

