.stock-list {
    max-height: 300px;
    overflow-y: auto;
}

.stock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.stock-item:hover {
    border-color: #5381fe;
    background: #f8f9ff;
}

.stock-item.selected {
    border-color: #5381fe;
    background: #f0f4ff;
    box-shadow: 0 0 0 2px rgba(83, 129, 254, 0.2);
}

.stock-info {
    flex: 1;
}

.stock-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.stock-details {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.stock-location {
    font-weight: 500;
    color: #5381fe;
}

.stock-count {
    color: #28a745;
    font-weight: 500;
}

.stock-radio {
    margin-left: 15px;
}

.stock-radio input[type="radio"] {
    display: none;
}

.stock-radio label {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.stock-radio input[type="radio"]:checked + label {
    border-color: #5381fe;
    background: #5381fe;
}

.stock-radio input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Анимация для модального окна */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Центрирование и z-index для модального окна выбора склада */
#stockSelectModal {
    z-index: 99999 !important;
}

#stockSelectModal .modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-width: 500px;
    width: 90%;
}

#stockSelectModal .modal-content {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#stockSelectModal .modal-backdrop {
    z-index: 99998 !important;
}

/* Стили для кнопок */
.modal-footer .btn {
    min-width: 120px;
}

/* .modal-footer .btn-primary {
    background: #5381fe;
    border-color: #5381fe;
}

.modal-footer .btn-primary:hover {
    background: #4267d6;
    border-color: #4267d6;
} */

.modal-footer .btn-primary:disabled {
    /* background: #6c757d;
    border-color: #6c757d; */
    opacity: 0.65;
}

/* Адаптивность */
@media (max-width: 576px) {
    .stock-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .stock-radio {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .stock-details {
        flex-direction: column;
        gap: 5px;
    }
}
