.uploadFileNM {
    cursor: pointer;
    border-radius: 0% !important;
}

.remove-upload-button {
    border-radius: 0% !important;
    font-size: 100% !important;
}

.custom-file-label {
    border-radius: 0% !important;
    cursor: pointer;
}

.image-tooltip .tooltip-inner {
    background: #000;
    padding: 4px;
    border-radius: .5rem;
    max-width: none;
}

.image-tooltip img {
    display: block;
    width: 200px;
    height: auto;
    border-radius: .35rem;
}

.sidebar-item:not(.selected)>.sidebar-link.active {
    background-color: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

/* Force Select2 to behave like Bootstrap 5 form-select */
.select2-container--default .select2-selection--single {
    height: 38px;
    /* same as .form-select */
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    background-color: #fff;
    position: relative;
    padding: 0 40px 0 12px;
    /* space for arrow on right */
}

/* Arrow position fix */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute;
    right: 10px;
    top: 50% !important;
    transform: translateY(-50%);
    height: auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure rendered text stays centered */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    padding: 0;
}

/* Remove default Bootstrap styles from the original select */
.basic-select2.form-select {
    display: none !important;
}

.select2-option-code {
    font-size: 10px;
    font-weight: lighter;
}

/* ==========================================================
   Select2 Bootstrap 5 Styling
   ========================================================== */

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

.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    background-color: #fff;
    position: relative;
    padding-left: 12px;
    padding-right: 42px;
    box-sizing: border-box;
}

/* Selected text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 0;
    padding-right: 0;
    color: #212529;
}

/* Placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

/* Dropdown arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

/* Clear button */
.select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute;
    right: 34px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    float: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    margin-top: -3px;
}

/* Focus */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

/* Disabled */
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Hide original select */
.basic-select2.form-select {
    display: none !important;
}

/* Custom option code */
.select2-option-code {
    font-size: 10px;
    font-weight: 300;
}