.choices__inner.is-invalid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 35px center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.choices__inner.is-valid {
    border-color: var(--ins-form-valid-border-color) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%233498db' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 35px center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.choices.is-open,
.choices[data-type*="select-one"] .choices__list--dropdown,
.choices[data-type*="select-multiple"] .choices__list--dropdown {
    z-index: 100 !important;
}

/* ========================================== */
/* Global Dark Mode Table Header Overrides    */
/* ========================================== */
html[data-bs-theme="dark"] .table-light,
html[data-theme="dark"] .table-light,
body.dark-mode .table-light,
.dark-mode .table-light,
html[data-bs-theme="dark"] .table-light th,
html[data-theme="dark"] .table-light th,
body.dark-mode .table-light th,
.dark-mode .table-light th {
    background-color: #1e1e2d !important;
    color: #ffffff !important;
    border-color: #2b2b40 !important;
}

.popover {
    font-size: 0.85rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
}

html[data-bs-theme="dark"] .popover,
html[data-theme="dark"] .popover,
body.dark-mode .popover,
.dark-mode .popover {
    background-color: #1e1e2d !important;
    border: 1px solid #2b2b40 !important;
    color: #ffffff !important;
}

html[data-bs-theme="dark"] .popover-header,
html[data-theme="dark"] .popover-header,
body.dark-mode .popover-header,
.dark-mode .popover-header {
    background-color: #2b2b40 !important;
    border-bottom: 1px solid #32324d !important;
    color: #ffffff !important;
}

html[data-bs-theme="dark"] .popover-body,
html[data-theme="dark"] .popover-body,
body.dark-mode .popover-body,
.dark-mode .popover-body {
    color: #a1a5b7 !important;
}

.choices.is-disabled {
    pointer-events: none !important;
    opacity: 0.75 !important;
}

