/* Reset global */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: hsla(0, 12%, 97%, 0.925);
    margin:0 ;
   
}

.container {
    flex-grow: 1;
    padding-top: 2px;
    margin-top: 2px;
    border-top: 2px;
   
    
}

.container-costos {
    flex-grow: 1;
    padding-top: 5px;
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;           /* permite varias filas */
    justify-content: center;   /* centra horizontalmente */
    gap: 20px;                 /* separación entre tarjetas */
}




.footer {
    background-color: #05013d;
    color: white;
    padding: 0px;
    background: linear-gradient(135deg, #00070e, #02000e);
   
}

.footer a {
    color: white;
    transition: color 0.3s;
}



.social-icons a {
    font-size: 1.5rem;
}

.table-container {
    max-width: 100%;
    overflow-x: auto;
    margin-top: 0;
    max-height: 300px;
}

table {
    width: 100%;
    table-layout: fixed; /* Controla el ancho de las columnas */
    border-collapse: collapse;
}

th, td {
    text-align: center;
    word-wrap: break-word;
    padding: 8px;
    border: 1px solid #ddd;
    white-space: normal; /* Permite el ajuste del texto */
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Estilos aplicados solo a la tabla con la clase 'tabla-productos' */
.tabla-productos th:nth-child(1), .tabla-productos td:nth-child(1) { width: 100px; }   /* ACCIONES */
.tabla-productos th:nth-child(2), .tabla-productos td:nth-child(2) { width: 200px; }  /* REFERENCIA */
.tabla-productos th:nth-child(3), .tabla-productos td:nth-child(3) { width: 300px; }  /* CÓDIGO */
.tabla-productos th:nth-child(4), .tabla-productos td:nth-child(4) { width: 250px; }  /* DESCRIPCIÓN */
.tabla-productos th:nth-child(5), .tabla-productos td:nth-child(5) { width: 150px; }  /* COD CLIENTE */
.tabla-productos th:nth-child(6), .tabla-productos td:nth-child(6) { width: 120px; }  /* INV INICIAL */
.tabla-productos th:nth-child(7), .tabla-productos td:nth-child(7) { width: 150px; }  /* COSTO FACTURA */
.tabla-productos th:nth-child(8), .tabla-productos td:nth-child(8) { width: 150px; }  /* PVP */
.tabla-productos th:nth-child(9), .tabla-productos td:nth-child(9) { width: 100px; }  /* MARGEN */
.tabla-productos th:nth-child(10), .tabla-productos td:nth-child(10) { width: 150px; } /* PVP OFERTA */
.tabla-productos th:nth-child(11), .tabla-productos td:nth-child(11) { width: 150px; } /* MARGEN OFERTA */
.tabla-productos th:nth-child(12), .tabla-productos td:nth-child(12) { width: 150px; } /* COSTO OFERTA */
.tabla-productos th:nth-child(13), .tabla-productos td:nth-child(13) { width: 180px; } /* PROTECCIÓN UNIT */
.tabla-productos th:nth-child(14), .tabla-productos td:nth-child(14) { width: 180px; } /* VLR MÁX PROT. */
.tabla-productos th:nth-child(15), .tabla-productos td:nth-child(15) { width: 150px; } /* UND VENDIDAS */
.tabla-productos th:nth-child(16), .tabla-productos td:nth-child(16) { width: 180px; } /* TOTAL PROTECCIÓN */
.tabla-productos th:nth-child(17), .tabla-productos td:nth-child(17) { width: 180px; } /* observacion */

#total {
    font-weight: bold;
    background-color: #e9f7ef; /* un verde muy suave */
    text-align: right;
}

.text-right {
    text-align: right;
}


/* Otros estilos */
.card {
    font-size: small;
    width: 100%;
    height: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 5%;
    margin-bottom: 1rem;
    border-radius: 2%;
    
}

.custom-toggler {
    border-color: white !important;
}

.custom-toggler .navbar-toggler-icon {
    filter: invert(1);
}

/* Cambiar color cuando el Offcanvas está activo */
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler[aria-expanded="true"] {
    background-color: #ffffff !important; /* Color de fondo del botón cuando está activo */
    border-color: #ffffff !important; /* Color del borde cuando está activo */
}

.navbar-toggler:focus .navbar-toggler-icon,
.navbar-toggler:active .navbar-toggler-icon,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    filter: invert(0); /* Cambia el color del icono cuando está activo */
}




.nav-link {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
    
    color: #f7f8fa;
    transform: scale(1.05);
}

.select2-container {
    width: 100% !important;
}

.table-responsive {
    max-width: 100%;           /* Asegura que el contenedor ocupe todo el espacio disponible */
    overflow-x: auto;      /* Permite el desplazamiento horizontal si la tabla es más ancha que el contenedor */
    -webkit-overflow-scrolling: touch;  /* Mejora el desplazamiento en dispositivos móviles */
    max-height: 500px;     /* Puedes ajustar el alto máximo según lo necesites */
    overflow-y: auto;  
    border-collapse: collapse;
    table-layout: auto;
        /* Permite el desplazamiento vertical si la tabla tiene muchas filas */
}

.buscar_expo{

 width: 30% !important;

}


.logout-form{

    background-color: #cfb002;
}

/* Contenedor para el botón en la esquina superior derecha */
.logout-container {
    display: flex;
    justify-content: space-between; /* Espacio entre los elementos */
    align-items: center; /* Alineamos los elementos verticalmente en el centro */
    margin-top: 0.5%;
    margin-bottom: 0.5%;
    top: 1%;
    right: 2%;
    margin-left: 0%;
   justify-content: space-between;
    width: 100%;
    height: 4%;
    align-items: center;
    
}

.ticker-container {
    width: 70%; /* Ajusta el tamaño de la cinta */
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 10px;
    background-color: #f1f1f1; /* Color de fondo de la cinta */
    margin-left: 20px; /* Separación entre el logout y el ticker */
    height: 30px; /* Altura fija para la cinta */
}
.ticker-content {
    display: inline-block;
    animation: scroll-left 15s linear infinite;
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.logout-button {
    display: inline-flex;
    align-items: center;
    background: #3c72e7;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
    width: 20%;
    height: 10%;
    
}

/* Icono */
.logout-button i {
    margin-right: 8px;
    font-size: 18px;
   
}

/* Efecto hover */
.logout-button:hover {
    background: #037381;
}

.btn-warning{

margin-right: 1% !important;
border-right: 1%;

}

th, td {
    padding: 8px; /* Añadir algo de espacio alrededor del texto */
    text-align: left;
    white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
}

th {
    background-color: #3a0a01;
    font-weight: bold;
    color: aliceblue;
    border: #2c3e50;
}




/* Estilos para el contenedor de la lista */
.list-group {
    background-color: #f8f9fa; /* Color de fondo */
    border-radius: 5px; /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra */
    padding: 0; /* Eliminar el padding */
    margin: 0; /* Eliminar el margen */
    max-width: 100%; /* Para que ocupe todo el ancho disponible */
    padding-right: 10px; /* Espacio pequeño a la derecha */
}

/* Estilos para cada item dentro de la lista */
.list-group-item {
    padding: 10px 15px; /* Ajustamos el padding */
    font-size: 16px; /* Tamaño de fuente por defecto */
    border: 1px solid #ddd; /* Borde del item */
    border-radius: 3px; /* Bordes redondeados */
    margin-bottom: 5px; /* Margen inferior entre los elementos */
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre el ícono y el texto */
    text-align: left; /* Alineamos el texto a la izquierda */
    word-wrap: break-word; /* Asegura que las palabras largas se rompan */
    word-break: normal; /* Permite el ajuste de palabras largas */
    white-space: normal; /* Asegura que el texto se envuelva */
    flex-wrap: wrap; /* Permite que los elementos se ajusten y se muevan a la siguiente línea si es necesario */
}

/* Efecto hover sobre los items */
.list-group-item:hover {
    background-color: #007bff; /* Fondo azul cuando se pasa el mouse */
    color: white; /* Color del texto */
    cursor: pointer; /* Cambiar cursor a mano */
}

/* Item activo */
.list-group-item.active {
    background-color: #28a745; /* Fondo verde cuando está activo */
    color: white; /* Color de texto */
}

/* Ajustes responsivos: */
@media (max-width: 767px) {
    .list-group-item {
        font-size: 14px; /* Reducir el tamaño de la fuente en pantallas más pequeñas */
        padding: 10px; /* Ajustar padding en móviles */
    }
}

/* Agregar márgenes a los íconos */
.list-group-item i {
    margin-right: 10px; /* Espacio entre ícono y texto */
}

/* Para pantallas grandes, mantenemos el diseño limpio */
@media (min-width: 992px) {
    .list-group-item {
        font-size: 18px; /* Tamaño de fuente mayor en pantallas grandes */
    }
}


.col-md-7.col-lg-7 {
    position:relative;
    background-image: url('../static/images/banner.jpg');
    background-size: cover;  /* Hace que la imagen cubra todo el div */
    background-repeat: no-repeat;  /* Evita que la imagen se repita */
    background-position: center; /* Centra la imagen en el div */
    height: 400px; /* Ajusta la altura del div */
    margin: 0; /* Asegúrate de que no haya margen adicional */
    padding: 0; /* Elimina cualquier relleno adicional */
}

.text-bg{

    color: #ddd;
    z-index: 2; /* Asegura que el texto esté encima de la imagen */
    padding-left: 10%;
    padding-right: 0;
}



/* Imagen */
.imgfoto {
    width: 100%; /* Controla el tamaño de la imagen */
    height: auto; /* Mantiene la proporción de la imagen */
    object-fit: cover; /* Hace que la imagen cubra el área asignada sin deformarse */
    z-index: 1; /* Coloca la imagen detrás del texto */
    padding-left: 0;
}

figure {
    margin: 0; /* Elimina el margen por defecto en la etiqueta <figure> */
}

.table-scrollable {
    max-height: 300px; /* Ajusta este valor según el tamaño que desees */
    overflow-y: auto;  /* Activa el desplazamiento vertical */
    display: block;    /* Hace que la tabla sea desplazable */
}

.form_prod{

    width: 50%;
    display: inline-block;
    
   
}

.neumorphic{

    background: #e0e5ec;
    box-shadow:10px 10px 20px #a3b1c6 ,-10px -10px 20px #ffffff ;
   
}

.neumorphic-input{
       font-family: 'Poppins', sans-serif;
       background: #e0e5ec; border-radius: 20px;
       box-shadow: inset 10px 10px 20px #a3b1c6,inset -10px -10px 20px #ffffff;
       text-align: center;

}

.login-page .neumorphic-card {
    
    position: relative;
    z-index: 1;
    margin: auto;
    margin-top: 10%;
    padding: 30px;
    width: 300px;
    background: #e0e5ec;
    box-shadow: 10px 10px 20px #a3b1c6, -10px -10px 20px #ffffff;
    border-radius: 20px;
    text-align: center;
}
.neumorphic-button {
    background: #e0e5ec;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 10px 10px 20px #a3b1c6, -10px -10px 20px #ffffff;
    transition: all 0.2s ease;
    
}


.neumorphic-button:hover {
    background: #0d6efd;  /* Color primary de Bootstrap */
    color: #ffffff;  /* Cambia el color del texto si quieres */
    box-shadow: 5px 5px 15px #0b5ed7, -5px -5px 15px #ffffff;
}


.login-page {
    background: linear-gradient(135deg, #00070e, #0d0179);
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

/* Particles.js ocupa todo el fondo en la página de login */
.login-page #particles-js {

    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(360deg, #00070e, #0d0179);
}

#vanta-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}


/* Neumorphic para enlaces */
.neumorphic .nav-link {
    background: #e0e0e0;
    color: #333;
    border-radius: 10px;
    box-shadow: 3px 3px 5px #b3b3b3, -3px -3px 5px #ffffff;
    transition: all 0.2s ease;
}

/* Efecto al pasar el mouse */
.neumorphic .nav-link:hover {
    box-shadow: inset 3px 3px 5px #b3b3b3, inset -3px -3px 5px #ffffff;
}

/* Activo */
.neumorphic .nav-link.active {
    background: #ffffff;
    color: #007bff;
}

.notification {
        background: #e0e0e0;
        border-radius: 20px;
        box-shadow: 8px 8px 15px #bebebe, -8px -8px 15px #ffffff;
        padding: 1px;
        margin: 1px;
        text-align: center;
        max-width: 20%;
        max-height: 80%;
        
        margin: 2% auto;
        font-family: Arial, sans-serif;
        transition: all 0.2s ease-in-out;
    }

    .notification p {
        color: #333;
        margin: 0 0 10px;
        font-size: 1.1rem;
    }

    .notification a {
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        background: #03a9f4;
        color: white;
        padding: 5px 10px;
        border-radius: 10px;
        text-decoration: none;
        box-shadow: 3px 3px 6px #bebebe, -3px -3px 6px #ffffff;
        transition: 0.2s;
    }

    .notification a:hover {
        background: #0288d1;
        box-shadow: inset 3px 3px 6px #bebebe, inset -3px -3px 6px #ffffff;
    }
    .bi-bell {
        margin: 0;
        padding: 0;
        vertical-align: middle;
        font-size: 1.2rem; /* Ajusta el tamaño */
    }

.neumorphic-card2 {
    max-width: 400px;
    width: 100%;
    margin: auto;
    padding: 20px;
    background: #e0e5ec;
    box-shadow: 10px 10px 20px #a3b1c6, -10px -10px 20px #ffffff;
    border-radius: 20px;
    text-align: center;
}

/* Controla el contenedor de las contraseñas */
.password-container {
    display: flex;
    align-items: center;
    background: #e0e5ec;
    border-radius: 10px;
    box-shadow: inset 5px 5px 10px #a3b1c6, inset -5px -5px 10px #ffffff;
    padding: 5px;
    margin: 10px 0;
    max-width: 100%;
}

/* Limita el tamaño de los inputs */
.password-container input {
    border: none;
    background: none;
    flex: 1;
    padding: 10px;
    outline: none;
    border-radius: 10px;
    max-width: 100%;
    box-sizing: border-box; /* Asegura que padding no afecte el ancho total */
}

/* Ajusta el icono */
.password-container .toggle-password {
    cursor: pointer;
    padding: 0 10px;
    color: #555;
}

/* Asegura que los formularios no se salgan */
form {
    max-width: 100%;
}


.formulario_expo input {
    font-family: 'Poppins', sans-serif;
    background: #e0e5ec;
    border-radius: 20px;
    box-shadow: inset 10px 10px 20px #a3b1c6, inset -10px -10px 20px #ffffff;
    text-align: center;
    padding-top: 5px;
    margin-top: 5px;
}

.formulario_expo label {
    font-family: 'Poppins', sans-serif;
    background: #666e74;
    border-radius: 20px;
    box-shadow: inset 10px 10px 20px #a3b1c6, inset -10px -10px 20px #ffffff;
    text-align: center;
    margin-top: 10px;
}

#form2 input, 
#form2 select {
    font-family: 'Poppins', sans-serif;
    background: #e0e5ec;
    border-radius: 20px;
    box-shadow: inset 10px 10px 20px #a3b1c6, inset -10px -10px 20px #ffffff;
    text-align: center;
    padding-top: 5px;
    margin-top: 5px;
}

#form2 label {
    font-family: 'Poppins', sans-serif;
    background: #666e74;
    border-radius: 20px;
    box-shadow: inset 10px 10px 20px #a3b1c6, inset -10px -10px 20px #ffffff;
    text-align: center;
    margin-top: 10px;
}

#form3 input, 
#form3 select {
    font-family: 'Poppins', sans-serif;
    background: #e0e5ec;
    border-radius: 20px;
    box-shadow: inset 10px 10px 20px #a3b1c6, inset -10px -10px 20px #ffffff;
    text-align: center;
    padding-top: 5px;
    margin-top: 5px;
}

#form3 label {
    font-family: 'Poppins', sans-serif;
    background: #666e74;
    border-radius: 20px;
    box-shadow: inset 10px 10px 20px #a3b1c6, inset -10px -10px 20px #ffffff;
    text-align: center;
    margin-top: 10px;
}

#form4 input, 
#form4 select {
    font-family: 'Poppins', sans-serif;
    background: #e0e5ec;
    border-radius: 20px;
    box-shadow: inset 10px 10px 20px #a3b1c6, inset -10px -10px 20px #ffffff;
    text-align: center;
    padding-top: 5px;
    margin-top: 5px;
}

#form4 label {
    font-family: 'Poppins', sans-serif;
    background: #666e74;
    border-radius: 20px;
    box-shadow: inset 10px 10px 20px #a3b1c6, inset -10px -10px 20px #ffffff;
    text-align: center;
    margin-top: 10px;
}

.neumorphic-buttonexpo {
    background: #e0e5ec;
    color: #000;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 10px 10px 20px #a3b1c6, -10px -10px 20px #ffffff;
    transition: all 0.2s ease;
    
}


/* Ajuste del ancho del menú */
.offcanvas.offcanvas-start {
    width: 250px; /* Aumentamos para incluir iconos */
    border-radius: 0 8px 8px 0;
    box-shadow: 3px 0 10px rgba(238, 236, 236, 0.959);
    background: linear-gradient(135deg, #00070e, #040022);
    border-bottom: 5px;
}

/* Encabezado del offcanvas */
.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Estilo de los enlaces del menú */
.navbar-nav .nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio entre el icono y el texto */
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

/* Efecto al pasar el mouse */
.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #f8f9fa;
    transform: scale(1.03);
}

/* Iconos */
.navbar-nav .nav-link i {
    font-size: 1.3rem;
    color: #f8f9fa;
}

.icon-container-wrapper {
    width: 100%;  /* El contenedor ocupa el ancho total */
    overflow-x: auto;  /* Permite el desplazamiento horizontal */
    overflow-y: hidden;  /* Evita el desplazamiento vertical */
    white-space: nowrap;  /* Impide el salto de línea */
    padding: 10px 0;  /* Espacio arriba y abajo */
   
    border-radius: 20px;  /* Bordes redondeados */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  /* Sombra sutil */
    margin-bottom: 20px;  /* Espacio debajo de la cinta */
    background-image: url('../static/images/banner.jpg');
    background-size: cover;  /* Hace que la imagen cubra todo el div */
}

/* Ocultar la barra de desplazamiento pero permitir el desplazamiento */
.icon-container-wrapper::-webkit-scrollbar {
    height: 8px;  /* Altura de la barra de desplazamiento */
}

.icon-container-wrapper::-webkit-scrollbar-thumb {
    background-color: #999;  /* Color del 'pulgar' de la barra */
    border-radius: 5px;  /* Bordes redondeados del 'pulgar' */
}

.icon-container-wrapper::-webkit-scrollbar-track {
    background-color: transparent;  /* Fondo transparente */
}

/* Lista de iconos alineados horizontalmente */
.icon-container {
    display: inline-flex;  /* Alineación horizontal de los iconos */
    justify-content: center;
    gap: 15px;  /* Espacio entre iconos */
    margin: 0;  /* Elimina márgenes */
    padding: 0;  /* Elimina padding */
}

/* Estilos para cada ítem (icono) */
.icon-container li {
    margin: 0;  /* Elimina márgenes de los elementos de lista */
    padding: 0;  /* Elimina padding de los elementos de lista */
}

/* Estilo de los iconos */
.icon-container img {
    width: 80px;  /* Tamaño de los iconos */
    height: 80px;  /* Tamaño de los iconos */
    border-radius: 50%;  /* Hace que los iconos sean círculos */
    transition: transform 0.3s ease;  /* Animación para el efecto de hover */
}

/* Efecto al pasar el ratón sobre los iconos */
.icon-container img:hover {
    transform: scale(1.1);  /* Agranda ligeramente el icono */
    cursor: pointer;  /* Cambia el cursor al pasar sobre el icono */
}


/* Cambiar fondo y color del texto del tooltip */
.tooltip .tooltip-inner {
    background-color: #0d0179;  /* Fondo verde */
    color: white;               /* Texto blanco */
    font-weight: bold;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
}

/* Cambiar el color de la flechita */
.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #0d0179;
}
.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #0d0179;
}
.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #0d0179;
}
.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #0d0179;
}

.container.neumorphic {
    margin-top: 10px; /* Ajusta el valor según necesites */
    align-items: center;
}


/* Aplica los estilos solo a la tabla con clase 'tabla-cotizaciones' */
.tabla-cotizaciones th, .tabla-cotizaciones td {
    padding: 10px;  /* Espaciado en celdas */
    text-align: center;  /* Centra el texto en las celdas */
}

.tabla-cotizaciones th {
    background-color: #f2f2f2;  /* Fondo más claro para los encabezados */
    font-weight: bold;
}

.tabla-cotizaciones td {
    background-color: #fff;  /* Fondo blanco para las celdas */
    border: 1px solid #ddd;  /* Borde suave para las celdas */
}

/* Si la tabla tiene muchas columnas, podemos asegurarnos de que sea desplazable horizontalmente */
.tabla-cotizaciones {
    width: 100%;  /* Asegura que ocupe todo el ancho disponible */
    table-layout: auto;  /* Ajusta el ancho de las columnas según el contenido */
    border-collapse: collapse;  /* Elimina los espacios entre celdas */
    overflow-x: auto;  /* Desplazamiento horizontal en caso de que la tabla sea más ancha */
}

.tabla-cotizaciones th, .tabla-cotizaciones td {
    padding: 10px;  /* Espaciado de celdas */
    text-align: center;  /* Centra el texto en las celdas */
}

.tabla-cotizaciones th {
    background-color: #f2f2f2;  /* Fondo más claro para los encabezados */
    font-weight: bold;
}

.tabla-cotizaciones td {
    background-color: #fff;  /* Fondo blanco para las celdas */
    border: 1px solid #ddd;  /* Borde suave para las celdas */
}

#dataframe-container table {
    width: 100%;  /* Asegura que la tabla ocupe todo el ancho disponible */
    table-layout: auto;  /* Permite que las columnas se ajusten según su contenido */
    border-collapse: collapse;  /* Elimina los espacios entre celdas */
}

#dataframe-container th, #dataframe-container td {
    padding: 8px 12px;  /* Relleno para las celdas */
    text-align: left;  /* Alineación del texto en las celdas */
}

#dataframe-container th {
    background-color: #f8f9fa;  /* Color de fondo para los encabezados */
    font-weight: bold;  /* Negrita para los encabezados */
}

#dataframe-container td {
    background-color: #fff;  /* Fondo blanco para las celdas */
    border: 1px solid #ddd;  /* Borde suave para las celdas */
}



/* Estilos para la tabla con clase personalizada 'tabla-ventas' */
/* Estilos para la tabla con clase personalizada 'tabla-ventas' */
.tabla-ventas {
    width: 100%; /* Asegura que la tabla ocupe el 100% del contenedor */
    border-collapse: collapse; /* Para que las celdas no tengan espacio entre ellas */
    table-layout: auto; /* Deja que las celdas se ajusten automáticamente al contenido */
}

/* Encabezados de la tabla */
.tabla-ventas thead th {
    position: sticky;
    top: 0;
    background-color: #f1f1f1;
    z-index: 10; /* Para que los encabezados se queden por encima de las filas */
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

/* Celdas de la tabla */
.tabla-ventas td, .tabla-ventas th {
    padding: 10px 15px; /* Aumentamos el padding */
    text-align: center;
    border: 1px solid #ddd; /* Añade borde a las celdas */
    font-size: 12px; /* Aumentamos el tamaño de la fuente */
    word-wrap: break-word; /* Para evitar desbordamiento en palabras largas */
}

/* Ajuste de celdas con contenido largo */
.tabla-ventas td {
    white-space: nowrap; /* Evita que el contenido se ajuste a varias líneas */
    overflow: hidden; /* Oculta el contenido desbordante */
    text-overflow: ellipsis; /* Añadir "..." cuando el texto se corta */
}

/* Fila alterna de color (opcional) */
.tabla-ventas tr:nth-child(even) {
    background-color: #f9f9f9; /* Fila en color gris claro */
}

.tabla-ventas tr:nth-child(odd) {
    background-color: #ffffff; /* Fila en blanco */
}

/* Estilos adicionales para la tabla */
.tabla-ventas th, .tabla-ventas td {
    text-align: center; /* Alineación centrada */
    vertical-align: middle; /* Centra el contenido verticalmente */
}

/* Estilo para la barra de desplazamiento */
.table-container {
    max-height: 500px;  /* Ajusta la altura máxima según lo necesites */
    overflow-y: auto;   /* Barra de desplazamiento vertical */
    overflow-x: auto;   /* Barra de desplazamiento horizontal si es necesario */
}


/* Establecemos el ancho fijo solo para la columna OBSERVACIONES */
.tabla-ventas td:nth-child(26), .tabla-ventas th:nth-child(26) {
    width: 200px;              /* Establecemos el ancho fijo */
    max-width: 200px;          /* Limita el tamaño máximo */
    word-wrap: break-word;     /* Permite que el texto largo se divida en varias líneas */
    white-space: nowrap;       /* Evita que el texto se envuelva, todo en una sola línea */
    overflow: hidden;          /* Oculta el texto que sobrepasa el ancho */
    text-overflow: ellipsis;   /* Agrega '...' cuando el texto es demasiado largo */
}


/* Estilos del contenedor del spinner pagina ventas */
/* Estilos del contenedor del spinner */
#loading {
    position: fixed; /* Fija el contenedor en la pantalla */
    top: 0;
    left: 0;
    width: 100vw; /* Ocupa todo el ancho de la ventana */
    height: 100vh; /* Ocupa toda la altura de la ventana */
    background-color: rgba(0, 0, 0, 0.5); /* Fondo negro semi-transparente */
    display: flex; /* Usamos flexbox para centrar el contenido */
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
    z-index: 9999; /* Asegura que el spinner esté encima de otros elementos */
    text-align: center; /* Asegura que el texto esté centrado */
}

.spinner-grow {
    margin-right: 10px; /* Espacio entre el spinner y el texto */
}

#loading p {
    color: white;
    font-size: 20px;
    margin: 0; /* Elimina márgenes alrededor del texto */
}


.table-responsive {
    width: 100%;
    overflow-x: auto; /* Permite el desplazamiento horizontal */
    -webkit-overflow-scrolling: touch; /* Para iOS */
}



/*plantilla forecast*/
.text-red { color: red; }
.text-green { color: green; }
.text-orange { color: orange; }


/* tablas de forecast */
.table-scroll-wrapper {
    max-height: 700px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #ddd;
    margin-top: 20px;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto; /* centra horizontalmente */
}

/* Tabla de ancho automático basada en el contenido */
.table-auto-width {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}

.table-auto-width th,
.table-auto-width td {
    white-space: nowrap;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    text-align: left;
}

/* Asegura que el contenido muy largo no dañe el diseño */
.table-auto-width td {
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fijar encabezado */
.table-auto-width thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 2;
}


.card-dashboard {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
    color: white;
  }
  .card-dashboard:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  /* Colores personalizados por tipo */
  .bg-ventas { background: linear-gradient(135deg, #007bff, #00c6ff); }
  .bg-produccion { background: linear-gradient(135deg, #28a745, #82d18d); }
  .bg-exportaciones { background: linear-gradient(135deg, #ffc107, #ff8800); }
  .bg-gestion { background: linear-gradient(135deg, #17a2b8, #69c7d8); }
  .bg-proteccion { background: linear-gradient(135deg, #dc3545, #ff7c87); }
  .bg-forecast { background: linear-gradient(135deg, #6c757d, #adb5bd); }
  .bg-comité { background: linear-gradient(135deg, #1b9c4c, #adb5bd); }
  
  .card:hover {
    transform: scale(1.05);
    transition: 0.3s ease-in-out;
  }

  
  .video-banner {
    width: 100%;
    max-width: 80%;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    margin-bottom: 3%;
}
.video-banner video {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: cover;
}
  

@keyframes impactZoom {
    0% {
        background-size: 100%;
        filter: brightness(1) blur(0px);
        transform: scale(1);
    }
    40% {
        background-size: 105%;
        filter: brightness(1.3) blur(2px);
        transform: scale(1.03);
    }
    70% {
        background-size: 110%;
        filter: brightness(1.1) blur(1px);
        transform: scale(1.05);
    }
    100% {
        background-size: 100%;
        filter: brightness(1) blur(0px);
        transform: scale(1);
    }
}

.card-body{
    position: flex;
    z-index: 1; /* Asegura que el contenido esté encima de la imagen de fondo */
    padding: 20px; /* Espacio interno para el contenido */
    color: white; /* Color del texto */
    text-align: center; /* Centra el texto dentro del card */



}


.card.shadow-lg.border-0.rounded-4.flex-wrap {
    align-items: flex;
    background-image: url('../static/images/INDICADORES.png');
}

.multi-select-dropdown .dropdown-toggle {
    width: 260px;  /* o el ancho que quieras */
}

/* Color de fondo del dropdown */
.multi-select-dropdown .dropdown-menu {
    background-image:url('../static/images/INDICADORES.png');  /* Cambia por el color que quieras */
}

/* Color de los items del dropdown */
.multi-select-dropdown .dropdown-item {
    color: #f1f1f1; 
    font-size: large;             /* Color del texto */
}

/* Color de fondo cuando pasas el mouse sobre un item */
.multi-select-dropdown .dropdown-item:hover {
    background-color: #d1d1d1;  /* Color de hover */
    color: #0d0179;
}


/* -------------------------
   Styles for .shipments-table
   ------------------------- */

/* 1) Definir anchos claros para las primeras columnas (ajusta a tus necesidades) */
.shipments-table th:nth-child(1), .shipments-table td:nth-child(1) { min-width:150px; width:150px; }
.shipments-table th:nth-child(2), .shipments-table td:nth-child(2) { min-width:150px; width:150px; }
.shipments-table th:nth-child(3), .shipments-table td:nth-child(3) { min-width:150px; width:150px; }
.shipments-table th:nth-child(4), .shipments-table td:nth-child(4) { min-width:200px; width:200px; }
.shipments-table th:nth-child(5), .shipments-table td:nth-child(5) { min-width:150px; width:150px; }
.shipments-table th:nth-child(13), .shipments-table td:nth-child(13) { min-width:150px; width:150px; }
.shipments-table th:nth-child(14), .shipments-table td:nth-child(14) { min-width:150px; width:150px; }
.shipments-table th:nth-child(25), .shipments-table td:nth-child(25) { min-width:150px; width:150px; }

/* 2) Encabezado fijo y color de encabezado (APLICAR DIRECTAMENTE A .shipments-table) */
.shipments-table thead th {
  position: sticky;
  top: 0;
  z-index: 100;                 /* alto para que quede sobre filas */
  background-color: #033c41;    /* color del encabezado */
  color: #fff;
  text-align: center;
}

/* 3) Cuando el encabezado y la columna fija se intersectan deben quedar aún más arriba */
.shipments-table thead th:nth-child(-n+5) {
  z-index: 110; /* aún más alto para las intersecciones */
}

/* 4) Filas: mantener fondo blanco (no tapar el encabezado) */
.shipments-table tbody td {
  background-color: #fff;
}


.shipments-table th:nth-child(1),
.shipments-table td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 90; /* menos que el thead general pero mayor que filas normales */
}

.shipments-table th:nth-child(2),
.shipments-table td:nth-child(2) {
  position: sticky;
  left: 150px; /* width col1 */
  z-index: 90;
}

.shipments-table th:nth-child(3),
.shipments-table td:nth-child(3) {
  position: sticky;
  left: 300px; /* 150 + 150 */
  z-index: 90;
}

.shipments-table th:nth-child(4),
.shipments-table td:nth-child(4) {
  position: sticky;
  left: 440px; /* 150+150+150 */
  z-index: 90;
}

.shipments-table th:nth-child(5),
.shipments-table td:nth-child(5) {
  position: sticky;
  left: 630px; /* 450 + 200 */
  z-index: 90;
}



/* 6) Asegurar que las celdas del body de las columnas fijas sigan blancas (evita que muestren color del header) */
.shipments-table tbody td:nth-child(-n+5) {
  background-color: #fff;
}

.shipments-table {
    table-layout: auto; /* deja que el resto de la tabla se ajuste al contenido */
}

.shipments-table th:nth-child(13),
.shipments-table td:nth-child(13),
.shipments-table th:nth-child(14),
.shipments-table td:nth-child(14),
.shipments-table th:nth-child(25),
.shipments-table td:nth-child(25) {
    width: 250px;       /* ancho fijo */
    min-width: 250px;   /* asegurar mínimo */
    max-width: 250px;   /* evitar que crezca */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



*-------------------------
   Styles for .comite-table
   ------------------------- */

/* Dropdown del comité siempre encima */
.comite-filtros .dropdown-menu {
    position: absolute !important;
    z-index: 2000 !important; /* más alto que la tabla y sticky thead */
    display: block; /* evitar que se recorte por overflow */
}

/* La tabla mantiene sticky header */
.comite-table thead th {
    position: sticky;
    top: 0;
    z-index: 1; /* menor que el dropdown para que quede detrás */
    background-color: #033c41;
    color: #fff;
    text-align: center;
}

/* Contenedor filtros */


.card-body.comite-filtros {
    position: relative; /* referencia para el dropdown */
    overflow: visible;  /* clave: permite que dropdown se muestre por encima */
}


/* Aplica directamente a las celdas dentro de la fila, tanto en tbody como tfoot */
.comite-table tbody tr.fila-dias-inventario td,
.comite-table tfoot tr.fila-dias-inventario td {
    background-color: #fff200 !important; /* amarillo más legible */
    color: #c40000 !important;             /* rojo fuerte */
    font-weight: 700 !important;
}


#ventasChart {
    background-color: #000;   /* 🔹 Fondo negro */
    border-radius: 10px;      /* (opcional) bordes redondeados */
}

.video-costos {
    width: 60%;                /* ancho del banner */
    max-width: 80%;            /* opcional, como el forecast */
    margin: 20px auto;         /* centrado horizontal */
    border-radius: 20px;       /* bordes redondeados */
    overflow: hidden;          /* recorta el video dentro del contenedor */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); /* sombra */
    margin-bottom: 3%;         /* separación inferior */
    position: relative;        /* para overlay si lo usas */
}

.video-costos video {
    width: 100%;
    height: 350px;        /* altura como el banner forecast */
    display: block;
    object-fit: cover;    /* mantiene proporción y llena el contenedor */
    object-position: center 20%; /* mueve el video hacia abajo */
}

.video-costos .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* opcional: oscurecer video */
    z-index: 2;
}


/* Color de fila cuando alguna de las banderas manual está activada */
.manual-row td {
  background-color: #fff0f5 !important; /* rosado suave */
}

/* Si prefieres amarillo, usa: #fff7b3 */

/* Asegura que los inputs dentro de la fila usen fondo transparente
   para que se vea el color de la fila */
.manual-row input,
.manual-row input[type="date"],
.manual-row input[type="text"],
.manual-row textarea {
  background-color: transparent !important;
}

/* Opcional: si quieres que el texto destaque más */
.manual-row td, .manual-row input, .manual-row textarea {
  font-weight: 600;
}




