 .content-wrapper {
        padding: 20px;
    }
    .table-responsive {
        overflow-x: auto;
    }
    .table th, .table td {
        vertical-align: middle;
        white-space: nowrap;
    }
    .color-circle {
        display: inline-block;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        margin-right: 5px;
    }
    .btn-export {
        margin-left: 10px;
    }
    .stats-container {
        margin-bottom: 10px;
        font-weight: bold;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    .filter-container {
        margin-bottom: 10px;
    }
    .suggestions-list {
        list-style: none;
        padding: 0;
        margin: 5px 0 0 0;
        background: #F7F4E3;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: 250px;
        overflow-y: auto;
        position: absolute;
        width: calc(100% - 30px);
        z-index: 10000;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        display: none;
    }
    .suggestions-list.show {
        opacity: 1;
        transform: translateY(0);
        display: block;
    }
    .suggestions-list li {
        padding: 14px 15px;
        color: #3C8DBC;
        font-weight: bold;
        font-size: clamp(1.8rem, 3.5vw, 1.3rem);
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
    }
    .suggestions-list li:hover {
        background: #E5E7EB;
        color: #1E40AF;
    }
    .suggestions-list li:not(:last-child) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    .suggestions-list li.error {
        color: #DC2626;
        font-weight: normal;
        cursor: default;
    }
    .suggestions-list li.selected {
        background: #E5E7EB;
        color: #1E40AF;
    }
    .suggestions-list::-webkit-scrollbar {
        width: 8px;
    }
    .suggestions-list::-webkit-scrollbar-thumb {
        background: #1E3A8A;
        border-radius: 4px;
    }
    .suggestions-list::-webkit-scrollbar-track {
        background: #E5E7EB;
    }
    .input-group {
        position: relative;
    }
    /* Estilos para el modal robótico */
    .modal-robotic .modal-content {
        background: linear-gradient(135deg, #2c3e50, #34495e);
        color: #ecf0f1;
        border-radius: 10px;
        border: 2px solid #3498db;
        position: relative;
        overflow: hidden;
    }
    .modal-robotic .modal-header {
        background: #3498db;
        border-bottom: none;
        position: relative;
        padding: 20px;
    }
    .modal-robotic .modal-header::before,
    .modal-robotic .modal-header::after {
        content: '';
        position: absolute;
        width: 50px;
        height: 50px;
        background: radial-gradient(circle, #7f8c8d 10%, transparent 11%),
                    radial-gradient(circle at bottom left, #7f8c8d 5%, transparent 6%),
                    radial-gradient(circle at bottom right, #7f8c8d 5%, transparent 6%),
                    radial-gradient(circle at top left, #7f8c8d 5%, transparent 6%),
                    radial-gradient(circle at top right, #7f8c8d 5%, transparent 6%);
        background-size: 10px 10px;
        top: -25px;
        left: -25px;
        transform: rotate(45deg);
        opacity: 0.3;
    }
    .modal-robotic .modal-header::after {
        left: auto;
        right: -25px;
    }
    .modal-robotic .modal-body {
        padding: 30px;
        background: #34495e;
    }
    .modal-robotic .form-control {
        background: #2c3e50;
        border: 1px solid #3498db;
        color: #ecf0f1;
        border-radius: 5px;
    }
    .modal-robotic .form-control:focus {
        border-color: #1abc9c;
        box-shadow: 0 0 5px rgba(26, 188, 156, 0.5);
    }
    .modal-robotic .input-group-addon {
        background: #3498db;
        color: #ecf0f1;
        border: none;
    }
    .modal-robotic .modal-footer {
        background: #2c3e50;
        border-top: none;
        padding: 20px;
    }
    .modal-robotic .btn-primary {
        background: #1abc9c;
        border: none;
        transition: all 0.3s;
    }
    .modal-robotic .btn-primary:hover {
        background: #16a085;
    }
    .modal-robotic .btn-danger {
        background: #e74c3c;
        border: none;
    }
    .modal-robotic .btn-danger:hover {
        background: #c0392b;
    }
    @media (max-width: 768px) {
        .box-header {
            flex-direction: column;
            align-items: flex-start;
        }
        .btn-export {
            margin-top: 10px;
        }
        .table {
            font-size: 14px;
        }
        .modal-dialog {
            margin: 10px;
        }
        .stats-container {
            flex-direction: column;
            gap: 10px;
        }
    }
    @media (max-width: 576px) {
        .table {
            font-size: 12px;
        }
        .btn {
            padding: 5px 10px;
            font-size: 14px;
        }
        .color-circle {
            width: 15px;
            height: 15px;
        }
    }
 /* Estilos para el desplegable de Select2 */
.select2-results__options {
    height: 140px !important; /* Altura exacta para 4 opciones */
    overflow-y: scroll !important; /* Forzar scroll siempre visible */
}
.select2-results__options::-webkit-scrollbar {
    width: 8px;
}
.select2-results__options::-webkit-scrollbar-thumb {
    background: #1E3A8A;
    border-radius: 4px;
}
.select2-results__options::-webkit-scrollbar-track {
    background: #E5E7EB;
}
.select2-color-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    height: 35px; /* Altura fija para cada opción */
}
.color-preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

.pending-transfer {
    filter: grayscale(100%);
    opacity: 0.6;
}
.pending-transfer .btn:not(.btn-confirm-received) {
    pointer-events: none;
    opacity: 0.5;
}
.btn-confirm-received {
    background-color: #28a745 !important;
    color: white !important;
}

/* Estilos para productos en traslado */
.bg-gray-light {
    background-color: #f2f2f2 !important;
    color: #999 !important;
}

/* Timeline de trazabilidad */
.timeline {
    position: relative;
    padding: 20px 0;
    list-style: none;
}

.timeline:before {
    content: ' ';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50px;
    width: 2px;
    background: #ddd;
    margin-left: -1.5px;
}

.timeline > li {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item {
    margin-left: 80px;
    margin-right: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 10px;
    position: relative;
}

.timeline-item > .time {
    color: #999;
    float: right;
    padding: 5px 0;
    font-size: 12px;
}

.timeline-item > .timeline-header {
    margin: 0;
    color: #555;
    border-bottom: 1px solid #f4f4f4;
    padding-bottom: 5px;
    font-size: 16px;
}

.timeline-item > .timeline-body {
    padding: 10px 0;
}

.timeline-item > .fa {
    width: 30px;
    height: 30px;
    font-size: 15px;
    line-height: 30px;
    position: absolute;
    color: #fff;
    background: #d2d6de;
    border-radius: 50%;
    text-align: center;
    left: 18px;
    top: 0;
}

/* Colores para los iconos del timeline */
.bg-blue {
    background-color: #3c8dbc !important;
}
.bg-green {
    background-color: #00a65a !important;
}
.bg-yellow {
    background-color: #f39c12 !important;
}

/* Flechas de conexión */
.arrow-steps {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.step {
    position: relative;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    margin: 0 10px;
    min-width: 200px;
    text-align: center;
    border-radius: 5px;
    flex: 1;
    margin-bottom: 20px;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid #dee2e6;
    transform: translateY(-50%);
    z-index: 1;
}

.step:not(:last-child):before {
    content: '';
    position: absolute;
    top: 50%;
    right: -19px;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid #f8f9fa;
    transform: translateY(-50%);
    z-index: 2;
}

.step.active {
    background: #3c8dbc;
    color: white;
    border-color: #367fa9;
}

.step.active:before {
    border-left-color: #3c8dbc;
}

.step-header {
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.step.active .step-header {
    border-bottom-color: rgba(255,255,255,0.3);
}

.step-content {
    font-size: 14px;
}

/* Responsivo */
@media (max-width: 768px) {
    .arrow-steps {
        flex-direction: column;
    }
    
    .step {
        margin-bottom: 30px;
    }
    
    .step:not(:last-child):after,
    .step:not(:last-child):before {
        top: auto;
        bottom: -20px;
        left: 50%;
        right: auto;
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-top: 20px solid #dee2e6;
        border-bottom: none;
        transform: translateX(-50%);
    }
    
    .step:not(:last-child):before {
        border-top: 20px solid #f8f9fa;
        border-bottom: none;
        bottom: -19px;
    }
    
    .step.active:before {
        border-top-color: #3c8dbc;
    }
}