.label.label-satisfactory {
    background: #71CDA1;
    color: #0a0d1e;
}

.label.label-unsatisfactory {
    background: #F59BC9;
    color: #0a0d1e;
}

.label.label-upcoming {
    background: #00C4E9;
}

.label.label-overdue {
    background: #FFC04A;
    color: #0a0d1e;
}

.label.label-unscheduled {
    background: #FF5B57;
}


.alert.alert-satisfactory {
    background: #71CDA1;
    color: #0a0d1e;
}

.alert.alert-unsatisfactory {
    background: #F59BC9;
    color: #0a0d1e;
}

.alert.alert-upcoming {
    background: #00C4E9;
}

.alert.alert-overdue {
    background: #FFC04A;
    color: #0a0d1e;
}

.alert.alert-unscheduled {
    background: #FF5B57;
}


form label {

    color: black !important;
}

#calendar {
    color: black;
}

a.jstree-anchor {
    color: black !important;
}

.breadcrumb .breadcrumb-item a {
    color: white !important;
}

.form-group {
    color: black;
}

.tab-pane h2 {
    color: black;
}

.modal-title {
    color: black;
}

.modal-body {
    color: black;
}

a.nav-link:hover {
    color: white !important;
}

a.nav-link.active:hover {
    color: black !important;
}

.panel-body {
    color: black;
}

.result-info {
    color: black;
}

h3 {
    color: black !important;
}

.tab-pane h3 {
    color: black;
}

.tab-pane p {
    color: black;
}

.card-text {
    color: black;
}

body table.dataTable thead tr th.sorting,
body table.dataTable thead tr th.sorting_asc,
body table.dataTable thead tr th.sorting_desc {
    position: relative;
}

body table.dataTable thead tr th.sorting:after,
body table.dataTable thead tr th.sorting_asc:after,
body table.dataTable thead tr th.sorting_desc:after {
    position: absolute;
    right: 0.5em;
    bottom: 8px;
    display: inline-block;
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", FontAwesome !important;
    font-weight: 900;
}

body table.dataTable thead tr th.sorting:after {
    content: "\f0dc";
}
/* ---- Navbar search typeahead (HTMX) -------------------------------------- */
.search-suggest {
    position: relative;
}
/* Big, wide search — centred in the header on desktop. Below 992px it falls
   back to the theme's normal navbar-form flow so mobile isn't disrupted. */
#header .navbar-form.search-suggest form,
#header .navbar-form.search-suggest .form-group {
    width: 100%;
    margin: 0;
}
#header .navbar-form.search-suggest {
    margin-top: 8px;
    margin-bottom: 8px;
}
#header .navbar-form.search-suggest .form-control {
    width: 100%;
    height: 38px;
    font-size: 15px;
    padding: 6px 44px 6px 18px;
    border-radius: 19px;
}
/* Color Admin widens the navbar search on focus via a keyframe animation
   (navbar-input-expand), not a transition — cancel the animation and pin the
   width so the fixed-width box doesn't jump when clicked/focused. */
#header .navbar-form.search-suggest .form-control:focus {
    width: 100%;
    animation: none;
}
#header .navbar-form.search-suggest .btn-search {
    height: 38px;
}
@media (min-width: 992px) {
    #header .navbar-form.search-suggest {
        position: absolute;
        left: 50%;
        top: 8px;
        bottom: 8px;
        transform: translateX(-50%);
        width: 520px;
        max-width: 44vw;
        margin: 0;
        padding: 0;
    }
}
.search-suggest__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    width: 100%;
    min-width: 320px;
    max-width: 92vw;
}
/* Empty until HTMX swaps content in — keep it out of the way. */
.search-suggest__dropdown:empty {
    display: none;
}
.search-suggest-panel {
    margin-top: 4px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    max-height: 70vh;
    overflow-y: auto;
    padding: 4px 0;
}
.search-suggest-item {
    display: block;
    padding: 8px 14px;
    color: #2d353c;
    border-bottom: 1px solid #f2f3f4;
}
.search-suggest-item:last-of-type {
    border-bottom: 0;
}
.search-suggest-item:hover,
.search-suggest-item:focus {
    background: #f0f3f5;
    color: #2d353c;
    text-decoration: none;
}
.search-suggest-item__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 600;
}
.search-suggest-item__type {
    font-size: 9px;
    font-weight: 600;
    flex: 0 0 auto;
}
.search-suggest-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 2px;
    font-size: 11px;
    color: #6c757d;
}
.search-suggest-item__meta > span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #adb5bd;
}
.search-suggest-item__client {
    font-style: italic;
}
.search-suggest-empty {
    padding: 12px 14px;
    color: #6c757d;
    font-size: 13px;
}
.search-suggest-all {
    display: block;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #2d8515;
    border-top: 1px solid #e9ecef;
    background: #fafbfc;
}
.search-suggest-all:hover {
    background: #f0f3f5;
    text-decoration: none;
}
