/* Sobrescribir colores de Bootstrap a tonos verdes rgb(0, 122, 51) */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0, 122, 51, 0.05);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(0, 122, 51, 0.075);
}

.border-primary {
    border-color: #007A33 !important;
}

.text-primary {
    color: #007A33 !important;
}

.bg-primary {
    background-color: #007A33 !important;
}

/* =========================================================
   Títulos con color verde corporativo
   ========================================================= */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.content h1, .content h2, .content h3,
.content h4, .content h5, .content h6 {
    color: #007A33 !important;
}

/* Títulos en card-headers con bg-primary deben ser blancos */
.card-header.bg-primary h1, 
.card-header.bg-primary h2, 
.card-header.bg-primary h3, 
.card-header.bg-primary h4, 
.card-header.bg-primary h5, 
.card-header.bg-primary h6,
.card-header.bg-primary .text-white {
    color: #ffffff !important;
}

/* Títulos en card-headers sin bg-primary mantienen el verde */
.card-header:not(.bg-primary) h1, 
.card-header:not(.bg-primary) h2, 
.card-header:not(.bg-primary) h3, 
.card-header:not(.bg-primary) h4, 
.card-header:not(.bg-primary) h5, 
.card-header:not(.bg-primary) h6 {
    color: #007A33 !important;
}

/* =========================================================
   Deshabilitar TODOS los efectos hover en card-headers
   ========================================================= */

/* Deshabilitar hover en card-headers - mantener colores originales */
.card-header,
.card-header:hover,
.card-header:focus,
.card-header:active {
    transition: none !important;
}

/* Card-headers con bg-primary mantienen su fondo verde siempre */
.card-header.bg-primary,
.card-header.bg-primary:hover,
.card-header.bg-primary:focus,
.card-header.bg-primary:active {
    background-color: #007A33 !important;
}

/* Todos los títulos dentro de card-header mantienen su color sin cambios */
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.card-header h1:hover,
.card-header h2:hover,
.card-header h3:hover,
.card-header h4:hover,
.card-header h5:hover,
.card-header h6:hover,
.card-header h1:focus,
.card-header h2:focus,
.card-header h3:focus,
.card-header h4:focus,
.card-header h5:focus,
.card-header h6:focus {
    transition: none !important;
}

/* Títulos en card-headers con bg-primary siempre blancos */
.card-header.bg-primary h1,
.card-header.bg-primary h2,
.card-header.bg-primary h3,
.card-header.bg-primary h4,
.card-header.bg-primary h5,
.card-header.bg-primary h6,
.card-header.bg-primary .text-white,
.card-header.bg-primary h1:hover,
.card-header.bg-primary h2:hover,
.card-header.bg-primary h3:hover,
.card-header.bg-primary h4:hover,
.card-header.bg-primary h5:hover,
.card-header.bg-primary h6:hover,
.card-header.bg-primary .text-white:hover,
.card-header.bg-primary h1:focus,
.card-header.bg-primary h2:focus,
.card-header.bg-primary h3:focus,
.card-header.bg-primary h4:focus,
.card-header.bg-primary h5:focus,
.card-header.bg-primary h6:focus,
.card-header.bg-primary .text-white:focus {
    color: #ffffff !important;
    transition: none !important;
}

/* Títulos en card-headers sin bg-primary siempre verdes */
.card-header:not(.bg-primary) h1,
.card-header:not(.bg-primary) h2,
.card-header:not(.bg-primary) h3,
.card-header:not(.bg-primary) h4,
.card-header:not(.bg-primary) h5,
.card-header:not(.bg-primary) h6,
.card-header:not(.bg-primary) h1:hover,
.card-header:not(.bg-primary) h2:hover,
.card-header:not(.bg-primary) h3:hover,
.card-header:not(.bg-primary) h4:hover,
.card-header:not(.bg-primary) h5:hover,
.card-header:not(.bg-primary) h6:hover {
    color: #007A33 !important;
    transition: none !important;
}

/* Deshabilitar hover en spans e iconos dentro de card-header */
.card-header span,
.card-header span:hover,
.card-header .bi,
.card-header .bi:hover {
    transition: none !important;
}

/* =========================================================
   Pestañas (Tabs) con color verde corporativo
   ========================================================= */
.nav-tabs .nav-link {
    color: #007A33 !important;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    color: #005a26 !important;
    border-color: #e9ecef #e9ecef #007A33 !important;
}

.nav-tabs .nav-link.active {
    color: #007A33 !important;
    border-bottom-color: #007A33 !important;
    font-weight: 600;
}

.nav-pills .nav-link {
    color: #007A33 !important;
}

.nav-pills .nav-link.active {
    background-color: #007A33 !important;
    color: #ffffff !important;
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(0, 122, 51, 0.1) !important;
    color: #005a26 !important;
}

/* Menú superior (top-row) con verde corporativo */
.navbar-dark {
    background-color: #007A33 !important;
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-dark .nav-link:hover {
    color: #ffffff !important;
}

/* Sidebar/Menú lateral con fondo verde claro */
.nav-scrollable {
    background-color: #e6f5ec !important;  /* Verde claro suave */
    border-right: 1px solid #007A33;
}

.nav-scrollable .nav-link {
    color: #ffffff !important;  /* Texto blanco para buen contraste */
    background-color: #007A33 !important;  /* Verde corporativo */
    font-weight: 600;
    border-radius: 6px;  /* Bordes redondeados */
    margin: 4px 8px;  /* Espaciado entre botones */
    padding: 8px 12px;  /* Padding interno */
    transition: all 0.3s ease;  /* Transición suave */
}

.nav-scrollable .nav-link:hover {
    background-color: #005a26 !important;  /* Verde más oscuro al hacer hover */
    color: #ffffff !important;  /* Texto blanco al hacer hover */
    transform: translateX(4px);  /* Efecto de desplazamiento */
}

.nav-scrollable .nav-link.active {
    background-color: #00401b !important;  /* Verde muy oscuro para item activo */
    color: white !important;
    font-weight: 700;
}

/* Estilo para iconos en el menú */
.nav-scrollable .bi {
    margin-right: 0.5rem;
}

/* Asegurar que top-row también tenga buen contraste */
.top-row {
    background-color: #007A33 !important;
    color: white;
}

.top-row a {
    color: white;
}

/* =========================================================
   REGLA GLOBAL: Sin efectos hover en card-headers
   Aplicar al final para máxima prioridad
   ========================================================= */

/* Sobrescribir cualquier hover/transición/animación en card-headers y su contenido */
.card-header,
.card-header *,
.card-header::before,
.card-header::after,
.card-header *::before,
.card-header *::after {
    transition: none !important;
    animation: none !important;
}

/* Todos los card-headers mantienen estilos fijos sin cambios en hover/focus/active */
.card-header,
.card-header:hover,
.card-header:focus,
.card-header:active,
.card-header:focus-within {
    transition: none !important;
    animation: none !important;
}

/* Card-headers con bg-primary SIEMPRE verdes */
.card-header.bg-primary,
.card-header.bg-primary:hover,
.card-header.bg-primary:focus,
.card-header.bg-primary:active,
.card-header.bg-primary:focus-within {
    background-color: #007A33 !important;
    transition: none !important;
}

/* Todos los elementos dentro de card-headers mantienen colores fijos */
.card-header *,
.card-header *:hover,
.card-header *:focus,
.card-header *:active {
    transition: none !important;
    animation: none !important;
}
