/* Estilos generales */

body {
    margin: 0;
    /*padding: 1rem; /* Añade padding alrededor de todo el contenido */
    font-family: Arial, sans-serif;
    font-size: 13px; 
    height: 100%;
    background-color: #eee;
}

/* Estilo para espaciado y tamaño de elementos */
.btn, input {
    margin-bottom: 10px; /* Añade margen en la parte inferior */
    width: 100%; /* Asegura que ocupen todo el ancho disponible */
}

/* Diseño de Cuadrícula Flexible */
.container {
    display: flex;
    flex-wrap: wrap;
}

/* Diseño de container en version movil */
@media (max-width: 768px) {
    .container {
        padding-left: 0px;
        padding-right: 0px;
    }
    .p-4{
        padding: 1rem !important;
    }
    .container-fluid {
        padding-left: 5px;
        padding-right: 5px;
    }
}

.container-fluid {
    display: flex;
    flex-wrap: wrap;
}

.container-header{
    border-color: #363636;
    background-color: #efefef; /* Ejemplo de color de fondo */
    padding: 5px;
    padding-right: 35px;
    padding-left: 20px;
    height: 50px;
    box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    /* z-index: 97; */

}

.container-big{
    margin: 2rem;
}

.form-control{
    border-color: #363636;
    background-color: #eee;
}

.action-button {
    padding: 5px;
    font-size: 12px;
    margin: 2px;
}

.input-secondary {
    border-color: #ced4da;
    background-color: #fff;
}
.btn-primary {
    border-color: #363636;
    background-color: #9eb8c5;
}
.btn-primary:hover {
    background-color: #78a2b7;
    border-color: #363636;
}
.btn-primary:active {
    background-color: #78a2b7;
    border-color: #363636;
}
.btn-dif {
    border-color: #363636;
    background-color: #fff;
    color: #363636;
}

.icon-btn{
    border: 0px;
    background-color: #eee;
    border-radius: 5px;
    font-size: 20px;
    margin-right: 7px;
}

.icon-btn:hover{
    background-color: #ddd;
}

.btn-simple-gris{
    border-color: #363636;
    background-color: #eee;
    color: #363636;
}

.btn-simple-gris:hover{
    background-color: #ddd;
}


@media (max-width: 768px) {

    #iconosFiltros {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
    }
}

.iconos-filtros {
    font-size: small; /* Tamaño de letra pequeño */
    color: #6c757d; /* Color sutil del texto */
    text-decoration: none; /* Sin subrayado */
    cursor: pointer;
    padding: 10px;
    margin-top: -5px;
    border-radius: 5px;  
}

.iconos-filtros:hover {
    text-decoration: underline; /* Subrayar al pasar el mouse */
    color: #495057; /* Cambio de color al pasar el mouse */
    background-color: #eeea;
}

.icono-filtro {
    margin-right: 8px;
    font-size: 18px;
}

/* Sidebar principal activa */

.main-container {
    display: flex;
    flex-direction: row;
    background-color: #eee;
}

.sidebar-main {
    width: 60px; /* Más compacto */
    height: 100%;
    background-color: #efefef;
    padding: 5px;
    border-bottom-right-radius: 8px;
}

#mainContent {
    flex-grow: 1;
    padding: 15px;
    padding-top: 25px; 
    margin: 5px;
    background-color: #fff;

    /* Otros estilos para el contenido */
}
/* Estilo para pantallas más grandes */
@media screen and (min-width: 768px) {
    #mainContent {
        flex-grow: 1;
        padding: 15px;
        padding-top: 25px;
        border-radius: 10px;
        border: 1px solid #e7e7e7;
        box-shadow: 0 6px 5px 0 #ccc;
    
        /* Otros estilos para el contenido */
    }
}

/* Estilo para pantallas más pequeñas */
@media screen and (max-width: 768px) {
    #mainContent {
        flex-grow: 1;
        padding: 0px;
        padding-top: 15px;
        border-radius: 10px;
        margin: 0px;
        border: 1px solid #e7e7e7;
        box-shadow: 0 6px 5px 0 #ccc;
    
        /* Otros estilos para el contenido */
    }
}


@media (max-width: 768px) {
    .sidebar-main {
        width: 100%; /* Barra lateral a pantalla completa en móviles */
        display: none;
    }
    .main-container {
        flex-direction: column;
    }
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px;
    border-radius: 5px;
    font-size: 11px;
    border-bottom: 1px solid #e7e7e7;
}

.icon-container i {
    margin-bottom: 5px; /* Espacio entre el icono y el texto */
    font-size: 20px; /* Tamaño del icono */
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease-in-out;
    position: relative;
    margin-top: 1px;
}

.icon-link .bi::before{
    line-height: 1.5;
}

/* Oculta el texto por defecto */
.icon-link span {
    display: none;
    position: absolute;
    left: 55px; /* Ajusta la posición fuera del menú */
    background: #333;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* Muestra el texto al pasar el mouse */
.icon-link:hover span {
    display: block;
    opacity: 1;
    z-index: 99;
}

/* Iconos */
.icon-link i {
    font-size: 20px;
}

/* Efecto de hover */
.icon-link:hover {
    background-color: #d3d3d3;
    color: #111;
}

/* Activo */
.icon-link.active {
    background-color: #c7c7c7;
    color: #000;
}

/* Responsive: En pantallas pequeñas mostrar el menú completo */
@media (max-width: 768px) {
    .sidebar-main {
        width: 100%; /* Se expande en móviles */
        display: none;
    }
}

.icon-link:hover .icon-container {
    background-color: #ccca;
    color: #111;
    text-decoration: none; /* Elimina el subrayado de los enlaces */
}

.icon-container.active {
    background-color: #ccca;
    color: #111;
}

/* Slider */

#statusRange {
    height: 10px;
    margin-bottom: 45px;
}

#statusRange .noUi-connect {
    background: #78a2b7;
}

#statusRange .noUi-handle {
    height: 18px;
    width: 18px;
    top: -5px;
    bottom: -5px;
    right: -9px; /* half the width */
    border-radius: 9px;
}
#statusRange .noUi-tooltip {
    display: none;
}
#statusRange .noUi-active .noUi-tooltip {
    display: block;
}
/* Estilo para las etiquetas de valores */
.noUi-pips .noUi-value {
    font-size: 10px;
    margin-top: 10px;
}

.noUi-pips .noUi-marker {
    background: #78a2b7;
}

.noUi-pips-horizontal {
    height: 20px;
}

/* Ocultar etiquetas y pips en dispositivos móviles */
@media (max-width: 768px) {
    .noUi-pips .noUi-value,
    .noUi-pips .noUi-marker {
        display: none;
    }
    #statusRange {
        height: 10px;
        margin-bottom: 10px;
    }
}

.loader {
    width: 50px;
    height: 50px;
    background: url(/static/images/Isotipo-animado.gif);
    background-size: contain;
}


#spinner {
    position: fixed; /* Hace que el spinner y su fondo se posicionen en relación con la ventana del navegador */
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center; /* Centra horizontalmente el spinner */
    align-items: center; /* Centra verticalmente el spinner */
    z-index: 9999; /* Asegura que el spinner esté sobre otros elementos */
}
  
.icon-dropdown {
    margin-left: -10px;
    margin-right: 5px;
    font-size: 14px;
}

.icon-action-btn {
    padding: 8px;
    font-size: 20px;
    border-radius: 5px;
    border: 2px solid #eee;
    width: 40px;
    height: 40px;
}

.icon-action-btn:hover {
    border: 2px solid #363636;
}

.text-action-btn {
    margin-bottom: 6px;
    vertical-align: middle;
    font-size: 14px;
}

/* Estilos de página de archivos */

.container-files {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#dropZone {
    width: 100%;
    max-width: 500px; /* Ajusta este valor según lo que necesites */
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    cursor: pointer;
    border-radius: 5px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inputFiles .selectFiles {
    margin: 10px 0;
    width: 100%;
    max-width: 500px; /* Coincide con el ancho máximo de dropZone */
}


/* Estilo básico para botones de comentarios */
.comment-button {
    padding: 3px 6px; /* Menos padding para hacerlo más pequeño */
    background-color: #f0f0f0; /* Color claro para un botón sutil */
    border: 0px #ddd; /* Borde suave */
    color: #333; /* Color del texto */
    cursor: pointer;
    border-radius: 5px; /* Esquinas redondeadas */
    font-size: 12px; /* Tamaño de fuente más pequeño */
    transition: background-color 0.3s, border-color 0.3s;
}

/* Estilo para botones con comentarios */
.comment-button.highlight {
    background-color: #d6988b99; /* Color más llamativo */
    /*border-color: #388E3C; /* Borde más visible */
    /*color: white; /* Texto en color blanco para mejor contraste */
}

/* Estilo para hover en ambos tipos de botones */
.comment-button:hover {
    background-color: #d6988b; /* Cambio de color al pasar el ratón por encima */
    /*color: white;*/
}


/* Oscurecer el fondo */
.chat-overlay {
    display: none; /* Inicialmente no se muestra */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

/* Estilo del popup del chat */
.chat-popup {
    display: none; /* Inicialmente no se muestra */
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    z-index: 100;
    max-width: 80%;
    width: 300px; /* Ancho por defecto */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.chat-header {
    display: flex; /* Usa flexbox para alinear los elementos */
    justify-content: space-between; /* Separa los elementos a los extremos */
    align-items: center; /* Alinea los elementos verticalmente */
    background-color: #bcd4bc;
    color: white;
    padding: 10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.chat-body {
    padding: 10px;
    max-height: 450px;
    overflow-y: auto;
}

.chat-footer {
    display: flex;
    padding: 10px;
}

.chat-footer textarea {
    flex-grow: 1;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.chat-footer button {
    background-color: #bcd4bc;
    color: #363636;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.comment {
    background-color: #e7e7e7;
    margin: 5px 0;
    border-radius: 5px;
    padding: 5px 10px;
    word-wrap: break-word;
}
.comment-date {
    font-size: 0.8em;
    color: #363636;
    text-align: right;
}

.comment-user {
    font-weight: bold;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-header .comment-info {
    margin: 0;
    /*font-weight: bold;*/
}

.thumbs-up-icon {
    color: #363636; /* Color oscuro para el contorno */
    cursor: pointer;
    transition: color 0.3s; /* Transición suave para el cambio de color */
}

.thumbs-up-icon:hover {
    color: #818181; /* Cambia a un color azul al pasar el cursor por encima */
}

.thumbs-up-icon:active {
    color: #818181; /* Cambia a un tono de azul más oscuro al hacer clic */
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los iconos horizontalmente*/
    justify-content: center; /* Centra los iconos verticalmente*/
}

@media screen and (max-width: 600px) {
    .chat-popup {
        width: 100%;
        max-width: 100%;
    }
}

/* Estilo para pantallas más grandes */
@media screen and (min-width: 768px) {
    .chat-popup {
        width: 600px; /* Ancho más grande en pantallas de ordenador */
    }
}

.popup {
    position: fixed; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background-color: rgba(0, 0, 0, 0.3);
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 9999;
  }
  .popup-content {
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    max-width: 750px; 
    text-align: center;
  }
  .popup-buttons {
    margin-top: 10px;
  }
  .popup-leyenda {
    margin-top: 15px; 
    font-size: 0.9em;
    color: #666;
  }


/* Popup de búsqueda de producto */

.modalProducto {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}
.modalProducto-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Estilos para popup de incidencias */
.dropzone {
    background-color: #f9f9f9;
    border: 2px dashed #ccc;
    border-radius: 8px;
    transition: background-color 0.3s, border-color 0.3s;
    min-width: 150px;
  }
  
  .dropzone.dragover {
    background-color: #e6f7ff;
    border-color: #007bff;
  }
  
  .preview-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin: 5px;
    position: relative;
  }
  
  .image-container {
    position: relative;
    display: inline-block;
  }
  
  .btn-remove-image {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f24660;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 15px;
    cursor: pointer;
  }

/* Estilos para pantalla de Finanzas */

/* Bordes redondeados */
table.dataTable, .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 10px;
  }
  
  /* Sombra suave al pasar el cursor */
  table.dataTable tbody tr:hover {
    background-color: #eaf4ff;
    transition: background-color;
  }
  
  /* Celdas editables visualmente distintas */
  td.editable {
    background-color: #ecf8ff;  /* color muy suave amarillo */
    cursor: pointer;
    border-left: 3px solid #0798ff;  /* línea sutil amarilla */
  }
  
  td.editable:hover {
    background-color: #cdf0ff;
  }  

  .btn-fijo {
    white-space: nowrap;           /* Mantiene el texto en una línea */
    width: 130px;                  /* Mismo ancho para todos los botones */
    margin-right: 5px;             /* Espacio entre botones */
    display: inline-flex;          /* Alinea icono y texto horizontalmente */
    align-items: center;           /* Centra verticalmente */
    justify-content: center;       /* Centra horizontalmente */
    gap: 5px;                      /* Espacio entre icono y texto */
  }

  tr.dtrg-group {
    background-color: #c02c2c;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 8px;
  }

  /* Para evitar confusiones visuales al desactivar orden */
.orden-desactivado {
    cursor: default !important;
  }
  
.btn-icon-only-incidencias {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    line-height: 1;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-only-incidencias:hover {
    color: #dc3545; /* rojo Bootstrap más fuerte */
    cursor: pointer;
    transform: scale(1.1);
}

/* ===== Reexpediciones DHL: estilos de tabla ===== */
/* Encabezado fijo para la tabla de reexpediciones */
#tablaReexpediciones thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    white-space: nowrap;
    font-weight: 600;
    color: #495057;
}

/* Columnas con tamaño uniforme */
#tablaReexpediciones {
    table-layout: fixed;
}
#tablaReexpediciones th,
#tablaReexpediciones td {
    width: 11.11%; /* 9 columnas ~ 100/9 */
}

/* Fondos sutiles por sección (1-3 original, 4-6 sustituta, 7-9 reclamación) */
#tablaReexpediciones thead tr:first-child th:nth-child(1) {
    background-color: #ea9999; /* azul muy suave */
}
#tablaReexpediciones thead tr:first-child th:nth-child(2) {
    background-color: #a2c4c9; /* verde muy suave */
}
#tablaReexpediciones thead tr:first-child th:nth-child(3) {
    background-color: #d5a6bd; /* naranja muy suave */
}

/* Colorear también la segunda fila de encabezados (títulos de cada columna) */
#tablaReexpediciones thead tr:last-child th:nth-child(1),
#tablaReexpediciones thead tr:last-child th:nth-child(2),
#tablaReexpediciones thead tr:last-child th:nth-child(3) {
    background-color: #f4cccc !important;
}
#tablaReexpediciones thead tr:last-child th:nth-child(4),
#tablaReexpediciones thead tr:last-child th:nth-child(5),
#tablaReexpediciones thead tr:last-child th:nth-child(6) {
    background-color: #d0e0e3 !important;
}
#tablaReexpediciones thead tr:last-child th:nth-child(7),
#tablaReexpediciones thead tr:last-child th:nth-child(8),
#tablaReexpediciones thead tr:last-child th:nth-child(9) {
    background-color: #ead1dc !important;
}

/* Fondo sutil por columnas en el cuerpo para distinguir secciones */
#tablaReexpediciones tbody td:nth-child(-n+3) { /* 1-3 */
    background-color: #f4cccc99;
}
#tablaReexpediciones tbody td:nth-child(n+4):nth-child(-n+6) { /* 4-6 */
    background-color: #d0e0e399;
}
/* #tablaReexpediciones tbody td:nth-child(n+7):nth-child(-n+9)
    background-color: #ead1dc99;
} */

/* Asegurar estilo editable igual que en General */
#tablaReexpediciones td.editable,
#tablaReexpediciones td.editable-reexp {
    background-color: #ffffff;
    cursor: pointer;
    border-left: 3px solid #474747;
}
#tablaReexpediciones td.editable:hover,
#tablaReexpediciones td.editable-reexp:hover {
    background-color: #f1fbff;
}

/* Estilos para el dropdown de estado */
#tablaReexpediciones .estado-select {
    border: none;
    background: transparent;
    padding: 2px 4px;
    font-size: 0.875rem;
    cursor: pointer;
    width: 100%;
}

#tablaReexpediciones .estado-select:focus {
    outline: 2px solid #ead1dc;
    outline-offset: -2px;
    border-radius: 3px;
}

/* Colores para las opciones del dropdown */
#tablaReexpediciones .estado-select option[value="Anterior"] {
    color: #6c757d;
    font-weight: bold;
}
#tablaReexpediciones .estado-select option[value="Reclamado"] {
    color: #6c757d;
    font-weight: bold;
}
#tablaReexpediciones .estado-select option[value="Denegada"] {
    color: #dc3545;
    font-weight: bold;
}
#tablaReexpediciones .estado-select option[value="Aceptada"] {
    color: #28a745;
    font-weight: bold;
}
#tablaReexpediciones .estado-select option[value="Compensada"] {
    color: #17a2b8;
    font-weight: bold;
}
#tablaReexpediciones .estado-select option[value="Cobro erróneo"] {
    color: #ffc107;
    font-weight: bold;
}
#tablaReexpediciones .estado-select option[value="Con problemitas"] {
    color: #fd7e14;
    font-weight: bold;
}

/* Fondos por estado en la celda (Estado) */
#tablaReexpediciones td.estado-dropdown.estado-bg-Anterior { background-color: #e9ecef !important; }
#tablaReexpediciones td.estado-dropdown.estado-bg-Reclamado { background-color: #fff3cd !important; }
#tablaReexpediciones td.estado-dropdown.estado-bg-Denegada { background-color: #f8d7da !important; }
#tablaReexpediciones td.estado-dropdown.estado-bg-Aceptada { background-color: #d4edda !important; }
#tablaReexpediciones td.estado-dropdown.estado-bg-Compensada { background-color: #d1ecf1 !important; }
#tablaReexpediciones td.estado-dropdown.estado-bg-CobroErroneo { background-color: #fff3cd !important; }
#tablaReexpediciones td.estado-dropdown.estado-bg-ConProblemitas { background-color: #ffe5d0 !important; }

/* ... existing code ... */

/* Encabezado fijo para la tabla de finanzas */
#tablaIncidencias thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    font-weight: 600;
    color: #495057;
}
  

/* Estilos para el Menú Hamburguesa */
.sidebar {
    height: 100%; /* Altura completa */
    width: 0; /* Ancho inicial del menú */
    position: fixed; /* Posición fija */
    z-index: 100; /* Asegura que esté sobre otros elementos */
    top: 0; /* Desde la parte superior */
    left: 0; /* Desde la parte izquierda */
    background-color: #e7e7e7; /* Color de fondo */
    overflow-x: hidden; /* Oculta el desbordamiento horizontal */
    transition: 0.2s; /* Efecto de transición suave */
    padding-top: 60px; /* Espacio en la parte superior */
    display: flex;
    flex-direction: column;
}

/* Contenedor para cerrar sesión y email del usuario */
.user-info {
    margin-top: auto; /* Empuja la sección al fondo */
}

/* Estilos para las opciones del menú */
.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    /*transition: 0.3s;*/
}

.sidebar button {
    margin-bottom: 15px; /* Añade espacio debajo de cada botón */
}

.sidebar a:hover {
    color: #f1f1f1;
}

/* Estilo para el icono de Menú Hamburguesa */
#menuIcon {
    cursor: pointer;
    /* Ajustes adicionales para tamaño, posición, etc. */
}

.dropdown-menu {
    font-size: 12px; /* Tamaño de fuente más pequeño para el menú */
}

.dropdown-btn {
    cursor: pointer;
    /* Ajustes adicionales para tamaño, posición, etc. */
}

.dropdown-btn a:hover {
    background-color: #f1f1f1; 
}

.dropdown-menu a:hover {
    background-color: #f1f1f1; 
}
.dropdown-item-active {
    background-color: #9eb8c5; 
}
.dropdown-menu {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); /* Ajusta los valores según necesites */
}

/* Estilos para el menú y el fondo oscuro */
.options-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 100;
    border-radius: 10px 10px 0 0;
    padding: 20px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.option {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    text-align: center;
}

.option:last-child {
    border-bottom: none;
}

.option:hover {
    background-color: #f0f0f0;
}

.cancel {
    color: red;
}



#closeMenuBtn {
    position: absolute; /* Posicionamiento absoluto dentro del menú */
    top: 10px; /* Espacio desde la parte superior del menú */
    right: 10px; /* Espacio desde la parte derecha del menú */
    border: none; /* Opcional: elimina el borde del botón */
    background: transparent; /* Opcional: hace que el fondo sea transparente */
    cursor: pointer; /* Cambia el cursor para indicar que es clickeable */
}

/* Añade esta sección de estilo en tu archivo CSS */
.card-container {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.card {
  background: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.card-header {
  background-color: #E5E5E5;
  color: #333333;
  padding: 10px 15px;
  font-size: 1.3em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body {
  padding: 15px;
  font-size: 0.9em;
}

.card-footer {
  background-color: #FFFFFF;
  padding: 10px 15px;
  font-size: 0.8em;
  display: flex;
  justify-content: space-between;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
}

/* Estilos para los estados */
.Pendiente { background: #ffae9f99; }
.Encargado { background: #ffc9a599; }
.Reasignado { background: #ffc9a599; }
.Cortado { background: #ffb06699; }
.Canteado { background: #ffb06699; }
.Mecanizado { background: #ffb06699; }
.CanteadoCNC { background: #ffb06699; }
.Recibido { background: #f4eab299; }
.Recibidotodo { background: #f0f4b2bb; }
.Defectuoso { background: #fcd3f6bb; }
.Taller { background: #f4eab299; }
.Stock { background: #ebf4b299; }
.Prefabricado { background: #d9aeff66; }
.Faltastock { background: #fcd3f6bb; }
.Picking { background: #d9aeffbb; }
.Embaladoparcial { background: #d3edaa99; }
.Embalado { background: #aaedaf99; }
.Embaladotodo { background: #aaedafbb; }
.Preparado { background: #a4d4d499; }
.Enviado { background: #8cabda99; }
.Entregado { background: #a9a3e499; }
.Completado { background: #8789a899; }
.Despiezado { background: #fcd3f6bb; }
.Devuelto { background: #f0f4b299; }
.Reenviado { background: #a4bcd499; }
.Reexpedido { background: #ff7a7a99; }
.Cancelado { background: #ff7a7a99; }
.Pendientedepago { background: #ff7a7a99; }
.ReteneryHablarconSarayantesdeenviar { background: #fcd3f6bb; }
/* ... y así sucesivamente para los demás estados ... */
      
/* Estilos para el contenedor de botones de acción */
.card-action-buttons {
    display: flex; /* Usa Flexbox para alinear los elementos */
    justify-content: space-around; /* Distribuye los botones uniformemente */
    /*padding: 10px; /* Espacio alrededor de los botones */
    background-color: #F9F9F9; /* Color de fondo para el contenedor de botones */
    border-top: 1px solid #E5E5E5; /* Línea divisoria para separar del footer */
}

/* Estilos para los botones de acción */
.card-action-buttons .btn, .card-action-buttons .action-button {
    flex-grow: 1; /* Permite que los botones crezcan para ocupar el espacio */
    /*margin: 0 5px; /* Espacio entre los botones */
    text-align: center; /* Alinea el texto dentro de los botones */
}

/* Ajustes para que el botón no sea demasiado ancho en caso de pocos botones */
.card-action-buttons .action-button {
  
    padding: 3px 6px; /* Menos padding para hacerlo más pequeño */
    background-color: #9eb8c5; /* Color claro para un botón sutil */
    border: 0px #ddd; /* Borde suave */
    color: #333; /* Color del texto */
    cursor: pointer;
    border-radius: 4px; /* Esquinas redondeadas */
    /*font-size: 12px; /* Tamaño de fuente más pequeño */
    transition: background-color 0.3s, border-color 0.3s;
    max-width: 100px; /* Establece un ancho máximo para los botones */
}

/* Estilo para resaltar el botón de comentarios si tiene comentarios */
.card-action-buttons .comment-button {
    background-color: #eee; /* Color de fondo para botones destacados */
}

.card-action-buttons .highlight {
    background-color: #d6988b; /* Color de fondo para botones destacados */
}

/* Estilos para editar pedido */

.editOrderSection:hover {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  background-color: #eee;
}

.editOrderSection {
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

#editOrderSearch {
    margin-bottom: 15px;
    margin-left: 10px;
    margin-top: 0px;
    border-bottom: 1px solid #ccc;
}

/*Estilos para settings */

.settings-container {
    padding: 20px;
}

.nav-tabs .nav-link.active {
    background-color: #fff;
}

.nav-tabs .nav-link {
    border: 1px solid #ccc;
    background-color: #eee;
    color: #333;
}

.nav-tabs {
    background-color: #eee;
}

.nav-tabs :hover {
    background-color: #fff;
}

#mainContentTabs {
    flex-grow: 1;
    padding: 15px;
    padding-top: 25px; /* Ajusta el espaciado según necesites */
    margin: 5px;
    background-color: #fff;

    /* Otros estilos para el contenido */
}
/* Estilo para pantallas más grandes */
@media screen and (min-width: 768px) {
    #mainContentTabs {
        flex-grow: 1;
        padding: 0px;
        padding-top: 0px; /* Ajusta el espaciado según necesites */
        border-radius: 10px;
        box-shadow: 0 6px 5px 0 #ccc;
    
        /* Otros estilos para el contenido */
    }

    .settings-container {
        display: flex;
    }

    .settings-title{
        flex: 1;
    }
    
    .settings-control{
        flex: 2;
    }
}

#user-table-body .btn{
    margin-bottom: 0px;
}

#user-table-body td{
    padding: .25rem;
}

/* Estilos para pantalla de pedidos a proveedores */
.tabla-pedidos {
    width: 100%; /* Ajusta el ancho al 100% */
    border-collapse: collapse; /* Fusiona los bordes de las celdas */
    margin: auto; /* Centra la tabla */
    margin-bottom: 5px; /* Añade espacio en la parte inferior */
    padding-left: 10px;
    padding-right: 10px;
    font-size: 14px;
    font-weight: 400;
    

}

.barra-estados {
    display: flex;
    height: 20px;
    width: 150px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ccc;
}

.barra-segmento {
    height: 100%;
}

.tabla-pedidos td{
    padding: 2px;
    vertical-align: middle; /* Alinea verticalmente el contenido */
    
    border-bottom: 1px solid #ddd; /* Borde de las celdas */
    border-radius: 10px; /* Esquinas redondeadas */
    
}

.tabla-pedidos th {
    background-color: #f9f9f9; /* Color de fondo para las cabeceras */
    padding: 2px; /* Espacio interno de las cabeceras */
    border-bottom: 1px /* Borde inferior de las cabeceras */
}


#moduloProveedores .nombre-proveedor {
    width: 70%; /* Mayor espacio para el texto */
    vertical-align: middle; /* Alinea verticalmente el texto */
    text-align: center;
    
}

#moduloProveedores .accion-proveedor {
    width: 30%; /* Menor espacio para el botón */
    text-align: center; /* Alinear el botón a la derecha */
}

.accion-proveedor .btn , .accion-reservados .btn{
    margin-bottom: 0px; /* Elimina el margen del botón */
}

.moduloProveedores{
    display: flex;
}

.card-header-proveedores{
    padding: 0px 15px;
    vertical-align: middle;
}

.card-header-proveedores p{
    margin: 10px;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    min-height: 38px;
    padding: 0.25rem 0.75rem;  
    font-size: 14px;
}

#exportarPedidoBtn{
    background-color: #a8b49b;
}

#exportarPedidoBtn:hover {
    background-color: #758c5f;
}

.pedido-reservado {
    background-color: #e1ffcc96 !important; /* Color de fondo para pedidos reservados */
}

.table-responsive {
    margin-top: 15px;
}

.tablePiezas thead {
    background-color: #343a40;
    color: #fff;
}

.tablePiezas th, .tablePiezas td {
    text-align: center;
    vertical-align: middle;
}

.tablePiezas tbody tr:hover {
    background-color: #ebfcfe;
}

.table-revisar-y-exportar td{
    padding: 0px;
    vertical-align: middle;
}

.btnEliminar{
    background-color: rgb(163, 50, 50);
    color: white;
    border: 1px;
    border-radius: 3px;
}

.numero-fila {
    color: #c8c8c8; /* Gris claro */
}

.tooltip-text-material {
    display: none;
    position: absolute;
    z-index: 10;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px;
    max-width: 300px;
    white-space: pre-wrap;
    font-size: 0.7em;
    top: 100%;
    left: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/*Boton de inicio de sesión*/
.btn-google {
    background-color: #ffffff;
    color: #757575;
    border: 1px solid #dcdcdc;
    padding: 8px 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-google:hover {
    background-color: #f7f7f7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.google-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Estilos para la pantalla de preparación de pedidos */

.pedido-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    margin: 10px;
    font-size: 1.2em;
    text-align: center;
    display: inline-block;
    width: calc(20%);
    cursor: pointer;
}

.halfContent {
    flex-grow: 1;
    padding: 10px;
    border-radius: 7px;
    border: 1px solid #e7e7e7;
    box-shadow: 0 0 10px 0 #ccc;
    overflow-y: auto;

    /* Otros estilos para el contenido */
}

.leftContent {
    text-align: center;
    justify-content: center;
}

.card-title-half-content {
    border-bottom: #ccc 1px solid;
    text-align: center;
    padding-bottom: 5px;
}

.halfContentRow{
    padding: 10px;
}

.card-peticiones {
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    margin-bottom: 10px;
}

.card-peticiones-datos {
    width: 90%;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

.card-peticiones-acciones{
    width: 10%;
    display: flex;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    padding: 3px;
    border-left: #ccc 1px solid;
}

.card-peticiones-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-peticiones-title {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
    padding-right: 20px;
}

.card-peticiones-body {
    margin-top: 5px;
}

.card-peticiones-text {
    font-size: 1em;
    margin: 0;
    text-align: right;
}

.card-peticiones-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    border-top: #ccc 1px solid;
    padding-top: 2px;
}

.card-peticiones-footer small {
    margin-right: 5px;
}

.btn-peticiones {
    border-radius: 50px;
    background-color: #36363668;
    color: #fff;
    margin: 0;
}

.urgencia-baja {background-color: #b3fef0;
}
.urgencia-media {background-color: #b4ecfb;
}
.urgencia-alta {background-color: #bfc3f7;
}
.urgencia-maxima {background-color: #e494ff; 
    border: 2px solid #363636;
}

.chat-footer-peticiones {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 2px;
}

.chat-comment-peticiones {
    width: 100%;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 5px;
}

.campo-peticiones{
    margin: 0;
}

.see-solved-request-btn {
    cursor: pointer;
    margin-bottom: -5px;
    padding-top: 4px;
    padding-left: 5px;
    font-size: 11px;
}

.see-solved-request-btn:hover {
    text-decoration: underline;
}

/* Estilos para la pestaña de noticias de sac */
.card-noticias {
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    margin-bottom: 10px;
}

.card-noticias-datos {
    width: 95%;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

.card-noticias-acciones {
    width: 5%;
    display: flex;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    padding: 3px;
    border-left: #ccc 1px solid;
}

.card-noticias-header {
    align-items: center;
}

.card-noticias-title {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
    padding-right: 20px;
}

.card-noticias-body {
    margin-top: 5px;
}

.card-noticias-text {
    font-size: 1em;
    margin: 0;
}

.card-noticias-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    border-top: #ccc 1px solid;
    padding-top: 2px;
}

.card-noticias-footer small {
    margin-right: 5px;
}

.btn-noticias {
    border-radius: 50px;
    background-color: #36363668;
    color: #fff;
    margin: 0;
}

.urgencia-news-baja {border: 1px solid #1cc422;}
.urgencia-news-media {border: 1px solid #b7c916;}
.urgencia-news-alta {border: 2px solid #c7b816;}
.urgencia-news-maxima {background-color: #f6e6fb; 
    border: 3px solid #c81717;
}

/* Tarjeta de categoría */
.item-categoria-paneles {
    padding: 1px 15px;  /* 1px arriba/abajo, 15px laterales */
    display: flex;
    align-items: center;
    font-size: 12px; /* Reducimos un poco el tamaño de la fuente */
}

/* Círculo de color */
.categoria-color {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    border: 1px solid #ccc; /* Bordes sutiles para mejor visibilidad */
    margin-right: 8px;
}

/* Nombre de la categoría */
.categoria-nombre {
    font-weight: 500;
    white-space: nowrap; /* Evita saltos de línea innecesarios */
}

/* Botón de eliminar con ancho fijo */
.w-fixed {
    min-width: 80px; /* Ajustado a un ancho razonable */
    text-align: center;
    padding: 2px 5px; /* Padding reducido */
    font-size: 12px; /* Tamaño de fuente más pequeño */
}



.chat-footer-noticias {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 2px;
}

.chat-comment-noticias {
    width: 100%;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 5px;
}

.campo-noticias {
    margin: 0;
}

.see-solved-news-btn {
    cursor: pointer;
    margin-bottom: -5px;
    padding-top: 4px;
    padding-left: 5px;
    font-size: 11px;
}

.see-solved-news-btn:hover {
    text-decoration: underline;
}


/* Estilos para la pantalla de STOCK */

/* Estilos específicos para la pantalla de stock */
.stock-card {
    border-radius: 10px;
    background-color: #f8f9fa;
    padding: 15px;
    width: 100%;
}

.stock-select,
.stock-input {
    width: 100%;
    border-radius: 5px;
}

.stock-btn {
    font-weight: bold;
    border-radius: 5px;
    width: 100%;
}

/* Contenedor del registro de movimientos */
.stock-log-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background: #fff;
}

.stock-log .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 5px 10px;
}

/* Iconos de estado */
.badge-status {
    font-size: 10px;
    padding: 3px 5px;
}

/* Colores según estado */
.badge-success {
    background-color: #28a745;
}

.badge-warning {
    background-color: #ffc107;
    color: #333;
}

.badge-danger {
    background-color: #dc3545;
}


/* Estilos para el modal de SKU */
.stock-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.stock-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.stock-modal-content input[type="text"] {
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.stock-modal-content .stock-modal-btn {
    margin: 10px 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.stock-modal-btn-secondary {
    background: #6c757d;
    color: white;
}

.stock-modal-checkbox {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    align-items: flex-start;
}

.stock-modal-checkbox input {
    margin: 4px;
    margin-right: 8px;
    width: 10%;
    padding: 2px;

}

/* ==========================================
   SALIDAS PENDIENTES - Estilos
   ========================================== */

/* Barra de encabezado del pedido */
.pedido-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: #fafbfc;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pedido-header-bar:hover {
    border-color: #c8d1db;
}

/* Estado activo - borde destacado con indicador visual */
.pedido-header-bar.pedido-header-activo {
    border-color: #28a745;
    border-width: 3px;
    padding: 6px 12px; /* Compensar el borde más grueso */
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    position: relative;
    animation: pulse-active-border 2s ease-in-out infinite;
}

.pedido-header-bar.pedido-header-activo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997, #28a745);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

@keyframes pulse-active-border {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    }
    50% { 
        box-shadow: 0 2px 12px rgba(40, 167, 69, 0.4);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Spinner para botones de carga */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Estado bloqueado - más sutil */
.pedido-header-bar.pedido-header-bloqueado {
    opacity: 0.6;
    background: #f6f8fa;
}

/* Información del pedido (izquierda) */
.pedido-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pedido-numero {
    font-size: 1rem;
    font-weight: 600;
    color: #24292e;
}

/* Contador de piezas */
.pedido-header-contador {
    display: flex;
    align-items: baseline;
    gap: 2px;
    padding: 3px 8px;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    font-size: 0.8rem;
}

.pedido-header-contador .piezas-listas {
    font-weight: 700;
    color: #28a745;
}

.pedido-header-contador .piezas-separador {
    color: #959da5;
    margin: 0 1px;
}

.pedido-header-contador .piezas-total {
    font-weight: 600;
    color: #586069;
}

/* .piezas-label ya no se usa - eliminado */

/* Acciones del pedido (derecha) */
.pedido-header-acciones {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pedido-header-acciones .btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    margin-bottom: 0;
    min-width: auto;
}

.pedido-header-acciones .btn i {
    font-size: 0.9rem;
}

/* Footer de las tarjetas de salidas */
.salida-card-footer {
    padding: 0.5rem 0.75rem !important;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

/* Botón Listo dentro de las tarjetas */
.salida-btn-listo {
    margin-bottom: 0 !important;
    max-width: 90px;
    padding: 4px 8px !important;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.salida-btn-listo .contador-listo {
    font-size: 0.75rem;
}

/* Barra de acciones superior (Recargar, Instrucciones, Total) */
.salidas-acciones-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.salidas-acciones-links {
    display: flex;
    align-items: center;
}

.salidas-total {
    white-space: nowrap;
}

/* Responsive - solo ocultar texto en móvil pequeño */
@media (max-width: 576px) {
    .pedido-header-acciones .btn .btn-texto {
        display: none;
    }
    
    .pedido-header-acciones .btn {
        padding: 6px 8px;
    }
    
    /* En móvil, separar en 2 líneas */
    .salidas-acciones-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .salidas-total {
        width: 100%;
    }
}

/* Botón desactivado (gris) */
.btn-salida-disabled {
    background: transparent;
    border: 1px solid #d1d5da;
    color: #959da5;
    cursor: not-allowed;
}

.btn-salida-disabled:hover {
    background: transparent;
    border-color: #d1d5da;
    color: #959da5;
}

/* Botón parcial - hereda el color del estado */
.btn-salida-parcial {
    background: transparent;
    border-width: 2px;
    border-style: solid;
    font-weight: 500;
}

.btn-salida-parcial.Embalado {
    border-color: #6abf69;
    color: #4a9f49;
}

.btn-salida-parcial.Embalado:hover {
    background: rgba(106, 191, 105, 0.1);
}

.btn-salida-parcial.Preparado {
    border-color: #7ec4c4;
    color: #5aa4a4;
}

.btn-salida-parcial.Preparado:hover {
    background: rgba(126, 196, 196, 0.1);
}

.btn-salida-parcial.Stock {
    border-color: #c5d86d;
    color: #8a9c3a;
}

.btn-salida-parcial.Stock:hover {
    background: rgba(197, 216, 109, 0.1);
}

/* Botón completo - fondo del color del estado */
.btn-salida-completo {
    border: none;
    color: #212529;
    font-weight: 600;
}

.btn-salida-completo.Embalado {
    background: #aaedaf99;
}

.btn-salida-completo.Embalado:hover {
    background: #8de094;
}

.btn-salida-completo.Preparado {
    background: #a4d4d499;
}

.btn-salida-completo.Preparado:hover {
    background: #89c4c4;
}

.btn-salida-completo.Stock {
    background: #ebf4b299;
}

.btn-salida-completo.Stock:hover {
    background: #d8e89a;
}

/* Estilos adicionales para la barra de pedido */
.salida-btn-iniciar,
.salida-btn-embalado,
.salida-btn-preparado,
.salida-btn-listo {
    min-width: 40px;
    transition: all 0.2s ease;
}

.salida-btn-listo .contador-listo {
    margin-left: 4px;
    font-weight: 600;
}

/* Responsive: en móvil solo mostrar iconos */
@media (max-width: 576px) {
    .salida-btn-iniciar,
    .salida-btn-embalado,
    .salida-btn-preparado {
        padding: 0.25rem 0.5rem;
    }
}

/* Estilos para el modal de crear producto */
#btnCrearProductoStock{
    margin-right: 10px;
}

#modalCrearProductoStock .modal-body {
    width: 100%;
}

#modalCrearProductoStock .modal-body .row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

#modalCrearProductoStock .modal-body .form-group {
    width: 100%;
}

#modalCrearProductoStock .modal-footer {
    width: 100%;
    display: flex;
    justify-content: stretch;
}

#modalCrearProductoStock .modal-footer .btn {
    flex: 1;
}

#modalCrearProductoStock .modal-footer .btn + .btn {
    margin-left: 10px;
}

/* Estilos para el toggle de tipo de imagen */
#modalCrearProductoStock .btn-group-toggle {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

#modalCrearProductoStock .btn-group-toggle .btn {
    border: none;
    border-radius: 0;
    padding: 10px 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
    color: #495057;
}

#modalCrearProductoStock .btn-group-toggle .btn:hover {
    background: #e9ecef;
    color: #007bff;
}

#modalCrearProductoStock .btn-group-toggle .btn.active {
    background: #007bff;
    color: white;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

#modalCrearProductoStock .btn-group-toggle .btn.active:hover {
    background: #0056b3;
    color: white;
}

#modalCrearProductoStock .btn-group-toggle .btn i {
    margin-right: 5px;
}

#modalCrearProductoStock .tipo-imagen-contenido {
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SISTEMA DE NOTIFICACIONES PUSH ===== */
.notificaciones-push-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #f24660;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(255, 0, 111, 0.4);
    transition: all 0.3s ease;
}

.notificaciones-push-icon:hover {
    background-color: #f24660a9;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 0, 81, 0.6);
}

.notificaciones-push-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #363636;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.notificaciones-push-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 400px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 9999;
    pointer-events: none;
}

.notificacion-push {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    pointer-events: all;
    animation: slideInRight 0.4s ease-out;
    transition: all 0.3s ease;
}

.notificacion-push:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(450px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notificacion-push-critico {
    border-left: 4px solid #dc3545;
    animation: slideInRight 0.4s ease-out, pulse-push-critico 2s ease-in-out infinite;
}

.notificacion-push-alto {
    border-left: 4px solid #fd7e14;
}

.notificacion-push-medio {
    border-left: 4px solid #ffc107;
}

.notificacion-push-bajo {
    border-left: 4px solid #bcbcbc;
}

@keyframes pulse-push-critico {
    0% {
        box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(220, 53, 69, 0.6), 0 4px 16px rgba(0,0,0,0.2);
    }
    100% {
        box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    }
}

.notificacion-push-header {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notificacion-push-header-critico {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.notificacion-push-header-alto {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.notificacion-push-header-medio {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.notificacion-push-header-bajo {
    background-color: rgba(172, 172, 172, 0.1);
    color: #505050;
}

.notificacion-push-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

.notificacion-push-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.notificacion-push-close:hover {
    opacity: 1;
}

.notificacion-push-body {
    padding: 15px;
}

.notificacion-push-mensaje {
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.notificacion-push-meta {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.notificacion-push-footer {
    padding: 10px 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.notificacion-push-footer .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Responsive para notificaciones push */
@media (max-width: 768px) {
    .notificaciones-push-container {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 70px;
    }
    
    .notificaciones-push-icon {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}