/* Tùy chỉnh card nếu cần */
.NDTAN_DUPLICATE-settings-wrap .card {
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Styles cho NDT Duplicate */
.NDTAN_DUPLICATE-settings-wrap .d-flex {
    display: flex !important;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
}
.NDTAN_DUPLICATE-settings-wrap .flex-grow-1 {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}
.NDTAN_DUPLICATE-settings-wrap .flex-shrink-0 {
    flex: 0 0 auto;
    width: 300px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}
.NDTAN_DUPLICATE-settings-wrap .NDTAN_DUPLICATE-toggle-switch {
    display: inline-flex;
    align-items: center;
    position: relative;
    gap: 0.75rem; /* Tăng khoảng cách giữa toggle switch và label */
}
.NDTAN_DUPLICATE-settings-wrap .NDTAN_DUPLICATE-toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 2.5em; /* Tăng kích thước để toggle switch lớn hơn */
    height: 1.5em;
    z-index: 1;
    cursor: pointer;
}
.NDTAN_DUPLICATE-settings-wrap .NDTAN_DUPLICATE-toggle-slider {
    position: relative;
    width: 2.5em; /* Tăng chiều rộng của toggle switch */
    height: 1.5em; /* Tăng chiều cao */
    background-color: #ccc;
    border-radius: 1.5em; /* Làm tròn hơn */
    transition: background-color 0.15s ease-in-out;
    display: inline-block;
}
.NDTAN_DUPLICATE-settings-wrap .NDTAN_DUPLICATE-toggle-slider:before {
    content: '';
    position: absolute;
    width: 1.1em; /* Kích thước nút trượt */
    height: 1.1em;
    left: 0.2em; /* Khoảng cách từ mép trái */
    top: 0.2em; /* Khoảng cách từ mép trên */
    background-color: white;
    border-radius: 50%;
    transition: transform 0.15s ease-in-out;
}
.NDTAN_DUPLICATE-settings-wrap .NDTAN_DUPLICATE-toggle-switch input[type="checkbox"]:checked + .NDTAN_DUPLICATE-toggle-slider {
    background-color: #007bff;
}
.NDTAN_DUPLICATE-settings-wrap .NDTAN_DUPLICATE-toggle-switch input[type="checkbox"]:checked + .NDTAN_DUPLICATE-toggle-slider:before {
    transform: translateX(1em); /* Di chuyển nút trượt sang phải khi bật */
}
.NDTAN_DUPLICATE-settings-wrap .NDTAN_DUPLICATE-toggle-switch .form-check-label {
    margin-left: 0; /* Xóa margin-left mặc định */
    line-height: 1.5em; /* Đảm bảo label thẳng hàng với toggle switch */
}
.NDTAN_DUPLICATE-settings-wrap .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}
.NDTAN_DUPLICATE-settings-wrap .form-check-input {
    margin: 0;
    margin-right: 0.5rem;
    width: 1em;
    height: 1em;
}
.NDTAN_DUPLICATE-settings-wrap .form-check-label {
    margin: 0;
}
.NDTAN_DUPLICATE-settings-wrap .form-select {
    width: auto;
    display: inline-block;
}
.NDTAN_DUPLICATE-settings-wrap .btn-primary {
    background-color: #007bff !important;
    border-color: #007bff !important;
    display: inline-block;
    width: auto;
    padding: 0.375rem 0.75rem;
}
.NDTAN_DUPLICATE-settings-wrap .btn-primary:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}
.NDTAN_DUPLICATE-settings-wrap .alert {
    position: relative;
    padding: 1rem;
    margin-top: 1rem;
}
.NDTAN_DUPLICATE-settings-wrap .alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.NDTAN_DUPLICATE-settings-wrap .alert .btn-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}
@media (max-width: 768px) {
    .NDTAN_DUPLICATE-settings-wrap .flex-grow-1,
    .NDTAN_DUPLICATE-settings-wrap .flex-shrink-0 {
        width: 100%;
    }
}