.container-fluid {
    padding: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col-md-6 {
    padding: 0 15px;
}

.qr-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    height: 80vh; /* Cao cố định để QR hiển thị tốt */
    overflow-y: auto;
}

.qr-slider {
    position: relative;
    overflow: hidden;
}

.qr-slide {
    display: none;
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    margin-bottom: 10px;
}

.qr-slide.active {
    display: block;
}

.qr-slide img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.qr-slide .qr-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.qr-slide .qr-details {
    font-size: 0.9em;
    color: #666;
}

.slider-buttons {
    text-align: center;
    margin-top: 10px;
}

#nextQR, #doneQR {
    margin: 0 5px;
    display: none;
}

#selectedPersonnelTable {
    margin-bottom: 20px;
}

#selectedPersonnelTable td, #selectedPersonnelTable th {
    vertical-align: middle;
}

#selectedPersonnelTable .amount-input {
    width: 120px;
    text-align: right;
}

.personnel-scroll {
    max-height: 200px; /* Chiều cao tối đa trước khi cuộn */
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
}

.personnel-scroll .form-check {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .qr-container {
        height: auto;
    }
    .qr-slide {
        padding: 5px;
    }
    .qr-slide img {
        max-width: 200px;
    }
    #nextQR, #doneQR {
        width: 100%;
        margin-bottom: 5px;
        display: none;
    }
    #selectedPersonnelTable .amount-input {
        width: 100px;
    }
    .personnel-scroll {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .qr-slide img {
        max-width: 150px;
    }
    #nextQR, #doneQR {
        font-size: 0.9em;
        display: none;
    }
    #selectedPersonnelTable .amount-input {
        width: 80px;
    }
    .personnel-scroll {
        max-height: 100px;
    }
}