/* UI overrides for segofarm app */
/* Ensure PO status badges inside panel titles remain readable */
.x_title .label {
    color: #fff;
}

/* ── Sidebar parent groups: keep the caret (and optional pending-approval badge)
   pinned to the right on the SAME line as the label. Absolute positioning
   prevents the badge from pushing the caret onto a new line, even in narrow
   viewports. ── */
#sidebar-menu .nav.side-menu > li > a.has-caret {
    position: relative;
    padding-right: 34px;
}
#sidebar-menu .nav.side-menu > li > a.has-badge {
    padding-right: 60px;
}
#sidebar-menu .nav.side-menu > li > a.has-caret > .fa-chevron-down {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    float: none !important;
    margin: 0 !important;
}
#sidebar-menu .nav.side-menu > li > a.has-badge > .badge {
    position: absolute !important;
    right: 30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    float: none !important;
    margin: 0 !important;
}
/* ── Animal tag field (manual entry + locked species prefix) ────────────────
   The prefix is fixed chrome, not content: it can never be selected, so a
   drag-select starting on it cannot paste "COW-" into the suffix box. */
.input-group-addon.tag-prefix-addon {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    cursor: default;
    font-weight: 600;
    letter-spacing: .5px;
    background-color: #f5f5f5;
}

/* Verdict states — colour is never the only signal; the .tag-feedback <small>
   beside every tag input carries the same message as text. */
.tag-input.tag-error,
.tag-input.tag-error:focus {
    border-color: #d9534f;
    box-shadow: 0 0 0 2px rgba(217, 83, 79, .18);
}
.tag-input.tag-ok,
.tag-input.tag-ok:focus {
    border-color: #398439;
}
.tag-input.tag-checking {
    background-image: none;
    opacity: .75;
}

/* The feedback line sits under the input-group without shifting the layout. */
.tag-feedback {
    margin-top: 3px;
    margin-bottom: 0;
}

/* One line's stack of per-head tag inputs (livestock receive). */
.tag-stack {
    margin-top: 6px;
}
.tag-stack .input-group {
    margin-bottom: 4px;
}
