input.highlight,
select.highlight,
textarea.highlight,
.form-control.highlight {
    border: 1px solid #cc0000 !important;
    box-shadow: 0 0 4px rgba(204, 0, 0, 0.35) !important;
    border-radius: 4px !important;
}

/* Hide DataTables' own dots indicator; #spinnerOverlay (driven by processing.dt in ums-v2-utils.js) is the only loading indicator */
.dt-processing {
    display: none !important;
}

/* Bottom-scrollbar relocation (see ums-v2-utils.js): .dt-scroll-body keeps its vertical
   scrollbar (overflow-y stays auto from DataTables' inline style) but loses its horizontal
   one - overflow-x:hidden still honors JS-driven scrollLeft assignments in every browser, it
   only removes the native scrollbar UI and direct wheel/drag/keyboard scrolling on this element.
   !important needed: DataTables sets overflow:auto (shorthand, both axes) as an inline style. */
.dt-scroll-body.bottom-scrollbar-source {
    overflow-x: hidden !important;
}

/* !important needed: DataTables sets overflow:hidden as an inline style on .dt-scroll-foot */
.dt-scroll-foot.bottom-scrollbar-target {
    overflow-x: auto !important;
}

/* CKEditor 4 defaulted config.height to 200px; CKEditor 5 has no default
   height and collapses to a single line, so restore the old editing-area size globally. */
.ck-editor__editable_inline {
    min-height: 200px;
}


/* CKEditor 5 shows a "Powered by CKEditor" badge whenever the editor is focused under the GPL
   licence key. Hiding it is a licensing decision, not a styling tweak - the officially supported
   way to remove it is a commercial licence key. Left disabled pending that decision.
.ck.ck-balloon-panel.ck-powered-by-balloon {
    display: none !important;
}
*/

/* Date range validation messages: the row mirrors the .input-daterange input-group
   (message | "to" spacer | message) so each message sits under its own input, and it
   takes no height until a message is shown. */
.input-daterange-messages {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.input-daterange-messages:has(.field-validation-error) {
    grid-template-rows: 1fr;
    opacity: 1;
}

.input-daterange-messages-row {
    display: flex;
    min-height: 0;
    overflow: hidden;
}

.input-daterange-messages-row > * {
    flex: 1 1 0%;
    min-width: 0;
    overflow-wrap: break-word;
}

.input-daterange-messages-row > :not(:first-child) {
    margin-left: calc(var(--bs-border-width) * -1);
}

/* Keeps only the spacer's width; bs3-compat.css forces .input-group-text height with !important */
.input-daterange-messages-row > .input-daterange-spacer {
    flex: 0 0 auto;
    height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
    visibility: hidden;
}
