.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    color: #fff;
    font-size: 14px;
}

.notification.success {
    background-color: #4CAF50; /* Green for success */
}

.notification.error {
    background-color: #F44336; /* Red for error */
}
.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

.autocomplete-active {
    background-color: #007bff !important;
    color: #ffffff;
}

.autocomplete {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select2-container {
    width: 100% !important;
}


#modalSearchResults {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 0.5rem;
    background-color: white;
    z-index: 50;
    position: absolute;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#modalSearchResults {
    position: absolute;
    top: 100%; /* ลอยใต้ input */
    left: 0;
    margin-top: 0px;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    z-index: 50;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#modalSearchResults ul.list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#modalSearchResults ul.list li {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

#modalSearchResults ul.list li:hover {
    background-color: #f0f8ff;
}

#modalpopover {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

/* Style the backdrop (optional) */
#modalpopover::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

/* Disable style */
.disabled-btn {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}
