/* Estilos para el módulo de Stock */

/* Color institucional para el header de la tabla */
.table-stock thead th {
    background-color: #006657 !important;
    color: white !important;
    border-color: #006657 !important;
}

/* Colores para los estados */
.badge-vencido {
    background-color: #9F2241 !important;
    color: white !important;
}

.badge-sin-stock {
    background-color: #DDC9A3 !important;
    color: #333 !important;
}

.badge-por-vencer {
    background-color: #ffc107 !important;
    color: #333 !important;
}

/* Estilos para select2 */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    min-height: 38px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #006657;
    border: 1px solid #006657;
    color: white;
    border-radius: 4px;
    padding: 2px 8px;
    margin: 2px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 5px;
    font-weight: bold;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ffc107;
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #006657;
    color: white;
}

/* Responsive para select2 */
@media (max-width: 768px) {
    .select2-container {
        width: 100% !important;
    }
}

/* Estilos para tabla expandible */
.fila-clave {
    transition: background-color 0.2s ease;
}

.fila-clave:hover {
    background-color: #f8f9fa !important;
}

.fila-clave td:first-child {
    width: 30px;
    text-align: center;
}

.icono-expandir {
    transition: transform 0.2s ease;
    color: #006657;
}

.fila-clave.expandida .icono-expandir {
    transform: rotate(90deg);
}

.fila-detalle {
    background-color: #f8f9fa;
}

.detalle-lotes {
    padding: 15px;
    background-color: white;
    border-top: 1px solid #dee2e6;
}

.detalle-lotes .table {
    margin-bottom: 0;
}

.detalle-lotes .table thead th {
    background-color: #f8f9fa !important;
    color: #333 !important;
    border-color: #dee2e6 !important;
    font-size: 0.9rem;
    font-weight: 600;
}

.detalle-lotes .table tbody td {
    font-size: 0.9rem;
    padding: 0.5rem;
}

/* Animación para expandir/contraer */
.fila-detalle {
    transition: all 0.3s ease;
}

/* Estilo para fila seleccionada */
.fila-clave.seleccionada {
    background-color: #e3f2fd !important;
}
