/* Harbor Elements shell layout integration for CTC.
   Bridges the Harbor shell-header / shell-nav with the existing Bootstrap content area.
   Does not modify any backend behavior. */

:root {
    --ctc-header-height: 56px;
    --ctc-footer-height: 46px;

    /* -----------------------------------------------------------------------
       Global typography contract
       Aligned to the Job Scheduler dashboard: the system sans/mono stacks and
       the Harbor Magnetic type scale (expressed against the app's 16px root:
       2xs 10 / xs 12 / sm 14 / md 16 / lg 18 / xl 24 / 2xl 30 / 3xl 48).
       Single source of truth for fonts used across every page.
       ----------------------------------------------------------------------- */
    --ctc-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    --ctc-font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --ctc-font-mono: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;

    /* CUI sets html font-size to 62.5% (--cui-html-font-size), so 1rem = 10px
       here — identical to job_scheduler. These rem values therefore match
       job_scheduler's effective px scale exactly (10/12/14/16/18/24/30/48). */
    --ctc-font-size-2xs: 1rem;
    --ctc-font-size-xs: 1.2rem;
    --ctc-font-size-sm: 1.4rem;
    --ctc-font-size-md: 1.6rem;
    --ctc-font-size-lg: 16px;
    --ctc-font-size-xl: 2.4rem;
    --ctc-font-size-2xl: 3rem;
    --ctc-font-size-3xl: 4.8rem;

    --ctc-font-weight-normal: 400;
    --ctc-font-weight-medium: 500;
    --ctc-font-weight-semibold: 600;
    --ctc-font-weight-bold: 700;

    --ctc-line-height-heading: 1.4;
    --ctc-line-height-body: 1.5;

    /* -----------------------------------------------------------------------
       Semantic colour tokens mirrored from the Job Scheduler Magnetic theme,
       used for the overall visual styling (page canvas, panels, borders,
       brand accent). Applied to the existing Bootstrap/Harbor cards & tables
       below — the navigation structure is unchanged.
       ----------------------------------------------------------------------- */
    --ctc-color-brand: #0353a8;
    --ctc-color-brand-hover: #1170cf;
    --ctc-color-text: #222931;
    --ctc-color-text-muted: #70777F;
    --ctc-color-text-subtle: #8D959C;
    --ctc-color-surface: #FFFFFF;
    --ctc-color-subtle: #F3F8FE;
    --ctc-color-canvas: #E4EBF3;
    --ctc-color-border: #D4DCE3;
    --ctc-color-border-strong: #CCD3DB;
    --ctc-color-danger: #C9372C;
    --ctc-color-danger-hover: #A82C22;
    --ctc-shadow-sm: 0 1px 2px rgba(15, 16, 19, 0.06);
    --ctc-shadow-md: 0 2px 6px rgba(15, 16, 19, 0.08), 0 1px 2px rgba(15, 16, 19, 0.04);
    --ctc-radius-md: 8px;
}

/* ---------------------------------------------------------------------------
   hbr-card slotted-content token bridge.
   Content projected into an <hbr-card>'s slot does NOT inherit the --ctc-*
   custom properties from :root (they resolve empty across the shadow-slot
   boundary, and a `hbr-card > *` combinator does not match the slotted root
   either). Token-based styling on tables/text inside a card would then
   silently fall back to the browser default (e.g. Times New Roman, dark CUI
   header). Re-declaring the tokens directly on the table containers (which the
   selectors reliably match) restores them for each table subtree — header,
   body cells and the DataTables chrome all inherit — so every in-card table
   matches the viewtandata / Job Scheduler look.
   --------------------------------------------------------------------------- */
.dataTables_wrapper,
table.table,
table.dataTable {
    --ctc-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    --ctc-font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --ctc-font-mono: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    --ctc-font-size-2xs: 1rem;
    --ctc-font-size-xs: 1.2rem;
    --ctc-font-size-sm: 1.4rem;
    --ctc-font-size-md: 1.6rem;
    --ctc-font-size-lg: 16px;
    --ctc-font-size-xl: 2.4rem;
    --ctc-font-size-2xl: 3rem;
    --ctc-font-size-3xl: 4.8rem;
    --ctc-font-weight-normal: 400;
    --ctc-font-weight-medium: 500;
    --ctc-font-weight-semibold: 600;
    --ctc-font-weight-bold: 700;
    --ctc-color-brand: #0353a8;
    --ctc-color-brand-hover: #1170cf;
    --ctc-color-text: #222931;
    --ctc-color-text-muted: #70777F;
    --ctc-color-text-subtle: #8D959C;
    --ctc-color-surface: #FFFFFF;
    --ctc-color-subtle: #F3F8FE;
    --ctc-color-canvas: #E4EBF3;
    --ctc-color-border: #D4DCE3;
    --ctc-color-border-strong: #CCD3DB;
    --ctc-color-danger: #C9372C;
    --ctc-color-danger-hover: #A82C22;
    --ctc-shadow-sm: 0 1px 2px rgba(15, 16, 19, 0.06);
    --ctc-radius-md: 8px;
}

/* ---------------------------------------------------------------------------
   Prevent flash of unstyled content (FOUC) for Harbor web components.
   The Harbor runtime registers the <hbr-*> custom elements asynchronously
   (ES module bootstrap). Until an element is upgraded, the browser paints its
   raw slotted markup (bare links/text), which flashes through the translucent
   navigation loader overlay on every page transition.
   `:not(:defined)` matches ONLY not-yet-registered custom elements (standard
   HTML tags are always :defined), so this hides them until Harbor upgrades
   them. visibility:hidden preserves layout, so nothing shifts on reveal. */
:not(:defined) {
    visibility: hidden;
}

/* ---------------------------------------------------------------------------
   Harbor typography
   Replaces the legacy Cisco UI font throughout the app and establishes one
   consistent type scale for every page. font-family inherits (so body cascades
   to most text); headings, form controls and code are set explicitly since
   they don't inherit these values from the body.
   --------------------------------------------------------------------------- */
body.cui,
body {
    font-family: var(--ctc-font-body);
    font-size: var(--ctc-font-size-sm);
    font-weight: var(--ctc-font-weight-normal);
    line-height: var(--ctc-line-height-body);
    color: var(--ctc-color-text);
    background-color: var(--ctc-color-canvas);
}

/* Light dashboard canvas behind the white "panel" cards (Job Scheduler look).
   Raised specificity (body.cui …) to override the CUI theme's own
   `.cui .content.content--alt{background:var(--cui-background-alt)}` rule. */
body.cui .content.content--alt,
.content.content--alt {
    background-color: var(--ctc-color-canvas);
    /* Reserve space so page content is never hidden behind the fixed footer. */
    padding-bottom: var(--ctc-footer-height);
}

/* Page content wrapper (`.row.divrow`) ships a customcss.css `margin-left:-35px`
   that pulls the panel card flush against the side nav, leaving no left gap.
   Neutralise the extra pull so the card is inset symmetrically with the right
   edge (matches the Job Scheduler spacing). */
.content .divrow,
.content .row.divrow {
    margin-left: 0;
}

input,
select,
textarea,
button,
.btn,
.form-control {
    font-family: var(--ctc-font-body);
    font-size: var(--ctc-font-size-sm);
}

/* ---------------------------------------------------------------------------
   Unified label typography.
   Inline emphasis labels (<b>/<strong>) and the inline field-label headings
   render in the same sans-serif medium weight as the filter labels (e.g.
   "Use Case"), so section labels like "Rule Description" / "Pitstop Rules
   (Non-Editable)" read as one consistent font rather than a heavier, different-
   looking bold. Scoped to page content so the shell header/nav are untouched;
   data-table body cells keep their monospace stack (weight-only change). */
.content b,
.content strong,
.mri_rt_heading {
    font-weight: var(--ctc-font-weight-medium, 500);
    font-family: var(--ctc-font-body);
}

/* Consistent heading scale (mirrors Harbor's own hbr-type h1–h5 mapping) */
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    font-family: var(--ctc-font-heading);
    font-weight: var(--ctc-font-weight-semibold);
    line-height: var(--ctc-line-height-heading);
}

.content h1 {
    font-size: var(--ctc-font-size-3xl);
}

.content h2 {
    font-size: var(--ctc-font-size-2xl);
}

.content h3 {
    font-size: var(--ctc-font-size-xl);
}

.content h4 {
    font-size: var(--ctc-font-size-lg);
}

.content h5 {
    font-size: var(--ctc-font-size-md);
}

.content h6 {
    font-size: var(--ctc-font-size-sm);
}

/* Monospace code/pre in the Harbor mono font */
.content code,
.content pre,
.content kbd,
.content samp {
    font-family: var(--ctc-font-mono);
}

/* Form field labels: consistent size/weight across all pages */
.content label,
.content .control-label {
    font-family: var(--ctc-font-body);
    font-size: var(--ctc-font-size-sm);
    font-weight: var(--ctc-font-weight-semibold);
}

/* Table-cell field labels (Product / Raw Segment / Source Date / Solution /
   Technology / Usecase, etc.) rendered as <td style="...font-weight:600">
   inside the top hbr-card of the data/lookup pages. Standardized to the same
   compact 12px used by .ctc-filter-table so all filter labels match app-wide.
   Cells that hold a form control are excluded so only the text labels apply. */
.content hbr-card td[style*="font-weight: 600"]:not(:has(input, select, textarea, button)),
.content hbr-card td[style*="font-weight:600"]:not(:has(input, select, textarea, button)) {
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 12px;
    font-weight: 600;
}

/* Text links in page content — Harbor link styling. Excludes button-styled
   anchors (.btn) and slotted anchors (e.g. the shell brand) so only genuine
   inline text links are affected. */
.content a:not(.btn):not([slot]) {
    color: var(--hbr-color-text-link, #0563c1);
    text-decoration: none;
    transition: color .15s ease;
}

.content a:not(.btn):not([slot]):hover,
.content a:not(.btn):not([slot]):focus {
    color: var(--hbr-color-text-link-hover, #044a94);
    text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Page content fade-in
   Smooths the reveal after the (now opaque) navigation loader overlay hides,
   so the new page eases in instead of snapping. CSS-only, runs once per load.
   --------------------------------------------------------------------------- */
@keyframes ctc-content-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.content {
    animation: ctc-content-fade-in .18s ease-in;
}

/* ---------------------------------------------------------------------------
   Error banners
   Inline validation / compute error containers (populated by JS via .html()
   and toggled by the .errorlist* rows). Restyled as Harbor "negative" banners
   so error feedback matches the design system on every page. CSS-only — the
   ids/classes and the JS show/hide + injection are left untouched. The Harbor
   negative-sentiment tokens are injected on :root by the theme; concrete
   fallbacks keep the banner correct before the theme resolves. */
#errors,
#errorsmetric,
#errors-ert {
    background-color: var(--negative-bg-medium-default, #ffe8e9);
    border: 1px solid var(--negative-border-medium-default, #d93843);
    border-left: 4px solid var(--negative-border-default, #cc2d37);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--negative-text-default, #cc2d37);
    font-family: var(--ctc-font-body);
    font-size: var(--ctc-font-size-sm);
    line-height: var(--ctc-line-height-body);
}

/* ---------------------------------------------------------------------------
   Harbor buttons
   Converted controls render as <hbr-button> but keep their legacy Cisco
   .btn / .btn--* classes so existing jQuery click handlers (bound by class or
   id) keep firing. Those legacy classes, however, paint a full button box
   (background, border, radius, padding) on the custom-element HOST, which then
   double-wraps Harbor's own shadow-DOM button (e.g. a dark pill around an
   outline button). Void that host-level painting so only the Harbor button
   style shows through. The classes stay on the element for JS; only their
   visual effect is neutralized.
   --------------------------------------------------------------------------- */
.cui hbr-button.btn,
hbr-button.btn {
    display: inline-flex;
    vertical-align: middle;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
    color: inherit !important;
    box-shadow: none !important;
    min-width: 0 !important;
    text-transform: none !important;
    transition: none;
}

.cui hbr-button.btn:hover,
.cui hbr-button.btn:focus,
.cui hbr-button.btn.hover,
hbr-button.btn:hover,
hbr-button.btn:focus {
    background-color: transparent !important;
    color: inherit !important;
    opacity: 1 !important;
    outline: none !important;
}

/* ---------------------------------------------------------------------------
   Legacy CUI buttons — ONE consistent Harbor action-button style app-wide
   ---------------------------------------------------------------------------
   Real <button>/<a> elements carrying the legacy `.btn` class — the Search /
   Clear buttons injected across every data table, modal action buttons, etc. —
   are painted dark grey by customcss.css and most carry an inline
   `line-height:0` that collapses them to a ~2px sliver. Restyle them ALL into
   the standard Harbor action button: solid brand fill, white label, 8px radius,
   system font. `!important` is required to beat customcss AND the inline
   line-height. Excluded: `.btn-link` (accordion/collapse headers stay as text
   buttons) and <hbr-button> hosts (styled via ::part, see below). Disabled
   buttons (e.g. a not-yet-active Clear) fall back to a muted outline so a
   primary+secondary pairing reads correctly without per-button classes. */
button.btn:not(.btn-link),
a.btn:not(.btn-link) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 16px !important;
    border-radius: var(--ctc-radius-md, 8px) !important;
    background: var(--ctc-color-brand, #0353a8) !important;
    border: 1px solid var(--ctc-color-brand, #0353a8) !important;
    color: #fff !important;
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-transform: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}

button.btn:not(.btn-link):hover,
a.btn:not(.btn-link):hover,
button.btn:not(.btn-link):focus,
a.btn:not(.btn-link):focus {
    background: var(--ctc-color-brand-hover, #1170cf) !important;
    border-color: var(--ctc-color-brand-hover, #1170cf) !important;
    color: #fff !important;
    outline: none;
}

button.btn:not(.btn-link):disabled,
button.btn:not(.btn-link)[disabled],
a.btn:not(.btn-link).disabled {
    background: var(--ctc-color-surface, #ffffff) !important;
    border-color: var(--ctc-color-border, #d4dce3) !important;
    color: var(--ctc-color-text-muted, #70777F) !important;
    cursor: not-allowed;
    opacity: 1 !important;
}

/* ---------------------------------------------------------------------------
   Harbor <hbr-button> action buttons — SAME visual standard as the legacy
   buttons above (solid brand fill). Opt IN with class `ctc-btn` so this never
   touches the shell-nav hbr-buttons (user menu, nav items) which must stay
   transparent. Style the shadow-DOM parts: ::part(base) = box, ::part(label) =
   text. Page-specific size tweaks (e.g. matching a 40px dropdown row) can still
   add their own ::part(base) height/padding on top.
   --------------------------------------------------------------------------- */
hbr-button.ctc-btn::part(base) {
    background: var(--ctc-color-brand, #0353a8);
    border: 1px solid var(--ctc-color-brand, #0353a8);
    color: #fff;
    border-radius: var(--ctc-radius-md, 8px);
    min-height: 34px;
    padding-left: 16px;
    padding-right: 16px;
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 14px;
    font-weight: 500;
}

hbr-button.ctc-btn::part(label) {
    color: #fff;
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 14px;
    font-weight: 500;
}

hbr-button.ctc-btn:hover::part(base) {
    background: var(--ctc-color-brand-hover, #1170cf);
    border-color: var(--ctc-color-brand-hover, #1170cf);
}

/* ---------------------------------------------------------------------------
   Semantic button variants — APPROVED EXCEPTION to the single-blue standard.
   The default button is brand-blue (rules above). Two semantic variants exist
   for cases where colour carries meaning; opt in with an extra class ALONGSIDE
   `.ctc-btn` (hbr-button) or on the legacy `.btn`:
     • `.ctc-btn--danger`    → destructive actions (Delete, Reject, Remove) = red
     • `.ctc-btn--secondary` → affirmative/secondary actions (Add, Cancel) = muted
   Variant rules are defined AFTER the base `.ctc-btn` rules so they win when both
   classes are present (equal ::part specificity → source order decides).
   --------------------------------------------------------------------------- */

/* Danger / destructive — legacy .btn */
button.btn:not(.btn-link).ctc-btn--danger,
a.btn:not(.btn-link).ctc-btn--danger {
    background: var(--ctc-color-danger, #c9372c) !important;
    border-color: var(--ctc-color-danger, #c9372c) !important;
    color: #fff !important;
}

button.btn:not(.btn-link).ctc-btn--danger:hover,
a.btn:not(.btn-link).ctc-btn--danger:hover,
button.btn:not(.btn-link).ctc-btn--danger:focus,
a.btn:not(.btn-link).ctc-btn--danger:focus {
    background: var(--ctc-color-danger-hover, #a82c22) !important;
    border-color: var(--ctc-color-danger-hover, #a82c22) !important;
    color: #fff !important;
}

/* Danger / destructive — hbr-button */
hbr-button.ctc-btn--danger::part(base) {
    background: var(--ctc-color-danger, #c9372c);
    border: 1px solid var(--ctc-color-danger, #c9372c);
    color: #fff;
    border-radius: var(--ctc-radius-md, 8px);
    min-height: 34px;
    padding-left: 16px;
    padding-right: 16px;
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 14px;
    font-weight: 500;
}

hbr-button.ctc-btn--danger::part(label) {
    color: #fff;
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 14px;
    font-weight: 500;
}

hbr-button.ctc-btn--danger:hover::part(base) {
    background: var(--ctc-color-danger-hover, #a82c22);
    border-color: var(--ctc-color-danger-hover, #a82c22);
}

/* Secondary / affirmative-muted — legacy .btn */
button.btn:not(.btn-link).ctc-btn--secondary,
a.btn:not(.btn-link).ctc-btn--secondary {
    background: var(--ctc-color-surface, #ffffff) !important;
    border-color: var(--ctc-color-border-strong, #ccd3db) !important;
    color: var(--ctc-color-brand, #0353a8) !important;
}

button.btn:not(.btn-link).ctc-btn--secondary:hover,
a.btn:not(.btn-link).ctc-btn--secondary:hover,
button.btn:not(.btn-link).ctc-btn--secondary:focus,
a.btn:not(.btn-link).ctc-btn--secondary:focus {
    background: var(--ctc-color-subtle, #f3f8fe) !important;
    border-color: var(--ctc-color-brand, #0353a8) !important;
    color: var(--ctc-color-brand, #0353a8) !important;
}

/* Secondary / affirmative-muted — hbr-button */
hbr-button.ctc-btn--secondary::part(base) {
    background: var(--ctc-color-surface, #ffffff);
    border: 1px solid var(--ctc-color-border-strong, #ccd3db);
    color: var(--ctc-color-brand, #0353a8);
    border-radius: var(--ctc-radius-md, 8px);
    min-height: 34px;
    padding-left: 16px;
    padding-right: 16px;
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 14px;
    font-weight: 500;
}

hbr-button.ctc-btn--secondary::part(label) {
    color: var(--ctc-color-brand, #0353a8);
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 14px;
    font-weight: 500;
}

hbr-button.ctc-btn--secondary:hover::part(base) {
    background: var(--ctc-color-subtle, #f3f8fe);
    border-color: var(--ctc-color-brand, #0353a8);
}

/* ---------------------------------------------------------------------------
   Dropdowns
   Give native <select> a Harbor look (border, radius, height, chevron, focus
   ring) without converting to <hbr-combobox>, so the existing jQuery / select2
   wiring that reads .val() stays intact. Both the raw native control and the
   select2-rendered single container are covered.
   --------------------------------------------------------------------------- */
.cui select.form-control,
select.form-control {
    height: 40px;
    padding: 6px 36px 6px 12px;
    border: 1px solid var(--hbr-input-border-color, #b6bcc4);
    border-radius: 8px;
    background-color: #fff;
    color: #23282e;
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 14px;
    line-height: 1.4;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23697079' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 6l4 4 4-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

/* A <select multiple> (list box, e.g. #pathattrlist Attributes) is not a
   dropdown — drop the chevron so it doesn't float mid-list, and don't force the
   single-line height/appearance. */
.cui select.form-control[multiple],
select.form-control[multiple] {
    background-image: none;
    height: auto;
    padding-right: 12px;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}

.cui select.form-control:focus,
select.form-control:focus {
    border-color: var(--hbr-color-focus, #0563c1);
    box-shadow: 0 0 0 2px rgba(5, 99, 193, .25);
    outline: none;
}

.cui select.form-control:disabled,
select.form-control:disabled {
    background-color: #f2f4f6;
    color: #8a9099;
    cursor: not-allowed;
}

/* select2 single-select container styled to match the Harbor native select */
.select2-container--default .select2-selection--single {
    height: 40px;
    border: 1px solid var(--hbr-input-border-color, #b6bcc4);
    border-radius: 8px;
    background-color: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 12px;
    color: #23282e;
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 6px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--hbr-color-focus, #0563c1);
    box-shadow: 0 0 0 2px rgba(5, 99, 193, .25);
}

/* ---------------------------------------------------------------------------
   Text inputs & textareas
   Match the native <select> Harbor look (border, radius, focus ring) without
   swapping to <hbr-input>/<hbr-textarea>, so all existing jQuery / datepicker
   wiring keeps working. Kept purely cosmetic: no forced height (inline-sized
   fields stay aligned) and readonly display fields are not greyed out.
   --------------------------------------------------------------------------- */
.cui input.form-control,
input.form-control {
    padding: 7px 12px;
    border: 1px solid var(--hbr-input-border-color, #b6bcc4);
    border-radius: 8px;
    background-color: #fff;
    color: #23282e;
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cui textarea.form-control,
textarea.form-control {
    padding: 8px 12px;
    border: 1px solid var(--hbr-input-border-color, #b6bcc4);
    border-radius: 8px;
    background-color: #fff;
    color: #23282e;
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 14px;
    line-height: 1.5;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cui input.form-control:focus,
input.form-control:focus,
.cui textarea.form-control:focus,
textarea.form-control:focus {
    border-color: var(--hbr-color-focus, #0563c1);
    box-shadow: 0 0 0 2px rgba(5, 99, 193, .25);
    outline: none;
}

.cui input.form-control:disabled,
input.form-control:disabled,
.cui textarea.form-control:disabled,
textarea.form-control:disabled {
    background-color: #f2f4f6;
    color: #8a9099;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
   Tabs
   Legacy CUI "embossed" tab bars (`ul.tabs.tabs--embossed > li.tab > a`) paint
   an Arial, boxed look. Restyle them as a clean Harbor underline tab strip:
   system font, muted inactive labels, brand-coloured active label with a 2px
   brand underline indicator. Purely cosmetic — the jQuery-UI / onclick tab
   wiring (`.tab.active`, showTab*() handlers) is left untouched.
   --------------------------------------------------------------------------- */
.cui .tabs.tabs--embossed,
.tabs.tabs--embossed {
    border: 0;
    background: transparent;
    border-bottom: 1px solid var(--ctc-color-border, #d4dce3);
    padding: 0;
    margin-bottom: 16px;
}

.cui .tabs.tabs--embossed>.tab,
.tabs.tabs--embossed>.tab {
    background: transparent;
    border: 0;
    margin: 0;
}

.cui .tabs.tabs--embossed>.tab>a,
.tabs.tabs--embossed>.tab>a {
    display: inline-block;
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--ctc-color-text-muted, #70777f);
    background: transparent;
    padding: 10px 18px;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    border-radius: 0;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}

.cui .tabs.tabs--embossed>.tab>a:hover,
.tabs.tabs--embossed>.tab>a:hover {
    color: var(--ctc-color-brand, #0353a8);
}

.cui .tabs.tabs--embossed>.tab.active>a,
.tabs.tabs--embossed>.tab.active>a {
    color: var(--ctc-color-brand, #0353a8);
    font-weight: 600;
    border-bottom-color: var(--ctc-color-brand, #0353a8);
}

/* Sticky brand header */
.ctc-shell-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
}

.ctc-shell-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.ctc-shell-header__title {
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
    color: #fff;
}

.ctc-shell-header__user {
    font-size: 14px;
    white-space: nowrap;
}

/* Inline page title shown in the older basegeneric header */
.ctc-shell-header__pagetitle {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    align-self: center;
}

/* Side navigation sizing — leave room for the header and the global footer so
   the footer is always in view on short pages instead of below the fold. */
.ctc-shell-nav {
    min-height: calc(100vh - var(--ctc-header-height) - var(--ctc-footer-height));
}

.ctc-shell-nav hbr-nav-item {
    --header-offset: var(--ctc-header-height);
    font-size: 12px;
}

/* Uniform 12px for every side-nav label — top-level items and the nested
   fly-out menu items/labels. The top-level label is slotted light-DOM which
   the component renders inside its shadow `part="base"`/`part="content"`;
   slotted content can't be sized by an outer descendant selector, so the
   shadow parts are targeted directly (the slotted text then inherits the
   size). The nested items expose their own base/label parts. */
.ctc-shell-nav hbr-nav-item::part(base),
.ctc-shell-nav hbr-nav-item::part(content) {
    font-size: 12px;
}

/* Slotted labels inherit from their light-DOM host, not from ::part, so a
   page's own global CSS (e.g. the Ops Dashboard harbor.css) can otherwise grow
   them. Pin the slotted content directly so the size is constant everywhere. */
.ctc-shell-nav hbr-nav-item>[slot="content"],
.ctc-shell-nav hbr-nav-item>[slot="drawerHeader"] {
    font-size: 12px !important;
}

.ctc-shell-nav hbr-menu-label,
.ctc-shell-nav hbr-menu-item {
    font-size: 12px;
}

.ctc-shell-nav hbr-menu-label::part(base),
.ctc-shell-nav hbr-menu-item::part(base),
.ctc-shell-nav hbr-menu-item::part(label) {
    font-size: 12px;
}

/* ---------------------------------------------------------------------------
   User-profile "Log Out" menu (header dropdown). The default hbr-menu-item
   renders as a bare box; give the popup + item proper Harbor styling — padded,
   rounded, with a leading sign-out icon and a clear red hover affordance.
   Targeted by [value="logout"] so it works even though `hoist` portals the
   popup, and never touches the side-nav fly-out menus.
   --------------------------------------------------------------------------- */
hbr-dropdown[slot="user-profile"] hbr-menu::part(base) {
    padding: 6px;
    border-radius: 10px;
    border: 1px solid var(--ctc-color-border, #D4DCE3);
    box-shadow: var(--ctc-shadow-md, 0 2px 6px rgba(15, 16, 19, 0.08), 0 1px 2px rgba(15, 16, 19, 0.04));
    min-width: 184px;
}

hbr-menu-item.ctc-logout-item::part(base) {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--ctc-color-text, #222931);
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .12s ease, color .12s ease;
}

hbr-menu-item.ctc-logout-item::part(label) {
    color: inherit;
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 14px;
    font-weight: 500;
}

hbr-menu-item.ctc-logout-item::part(prefix) {
    color: inherit;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    min-width: auto;
}

hbr-menu-item.ctc-logout-item:hover::part(base),
hbr-menu-item.ctc-logout-item:focus::part(base) {
    background: var(--ctc-color-danger, #C9372C) !important;
    color: #fff !important;
}

/* The content column sits next to the shell-nav */
.content.content--alt .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.content.content--alt .col-12.col-lg-9.col-xl-10 {
    flex: 1 1 auto;
    min-width: 0;
    /* Override Bootstrap's percentage max-width so the content fills all
       space left of the shell-nav instead of being capped at 75%/83%. */
    max-width: none;
    padding: 16px 20px;
}

/* ---------------------------------------------------------------------------
   Harbor side drawers — open BELOW the topbar + dedicated close button (STANDARD)
   ---------------------------------------------------------------------------
   Every hbr-drawer (search drawers, row-detail drawers, …) must open BELOW the
   sticky topbar so it never covers the header and its built-in close button
   (`::part(closer)`) stays visible and clickable. The drawer consumes a
   `--shift-top` offset for its base/panel/overlay; set it to the header height
   app-wide. Applied globally to `hbr-drawer` so all current AND future drawers
   comply automatically.
   --------------------------------------------------------------------------- */
hbr-drawer {
    --shift-top: var(--ctc-header-height);
}

/* Dedicated, clearly-visible close button in every drawer header. */
hbr-drawer::part(closer) {
    color: var(--ctc-color-text, #23282e);
    opacity: 0.7;
    border-radius: 6px;
    transition: opacity .12s ease, color .12s ease, background-color .12s ease;
}

hbr-drawer::part(closer):hover {
    opacity: 1;
    color: var(--ctc-color-brand, #0353a8);
    background-color: rgba(3, 83, 168, 0.08);
}

/* The fixed app footer (position:fixed, bottom:0) sits above the full-height
   drawer panel, so its last row of content would be hidden behind the footer.
   Pad the scrollable drawer body by the footer height (+ breathing room) so the
   final row always scrolls clear of the footer. Applied to every hbr-drawer. */
hbr-drawer::part(body) {
    padding-bottom: calc(var(--ctc-footer-height) + 16px);
}

/* The deployment drawer keeps its detail-table typography (see below). It also
   inherits the shared --shift-top above. */
.ctc-deployment-drawer {
    --shift-top: var(--ctc-header-height);
}

/* Row-detail popup text matches the data-table cell size. */
.ctc-deployment-drawer #tandepidtable,
.ctc-deployment-drawer #tandepidtable td,
.ctc-deployment-drawer #tandepidtable pre {
    font-size: 13px;
}

/* Row-detail values render in monospace (matching the data-table cells). The
   value <pre> carries an inline `font-family: CiscoSans`, so !important is
   required to override it. */
.ctc-deployment-drawer #tandepidtable pre {
    font-family: var(--ctc-font-mono) !important;
}

/* ---------------------------------------------------------------------------
   Bootstrap modal right-drawer variant (Harbor-aligned)
   ---------------------------------------------------------------------------
   For legacy Bootstrap modals that must behave like a right-side drawer,
   add class `ctc-right-modal` on the modal element.
   --------------------------------------------------------------------------- */
.modal.ctc-right-modal .modal-dialog {
    position: fixed;
    top: var(--ctc-header-height, 56px);
    right: 0;
    margin: 0;
    width: min(92vw, 980px);
    max-width: 980px;
    /* End above the fixed app footer so the last body row is never hidden behind it. */
    height: calc(100% - var(--ctc-header-height, 56px) - var(--ctc-footer-height));
    transform: translateX(100%);
    transition: transform .28s ease-out;
}

.modal.ctc-right-modal.show .modal-dialog,
.modal.ctc-right-modal.in .modal-dialog {
    transform: translateX(0);
}

.modal.ctc-right-modal .modal-content {
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.modal.ctc-right-modal .modal-body {
    flex: 1 1 auto;
    max-height: none;
    overflow-y: auto;
}

/* ---------------------------------------------------------------------------
   rawfilebrowser: card labels, attribute list, Show Data button, raw table
   --------------------------------------------------------------------------- */

/* Card header ribbons ("Attributes", "Distinct: N  Total Count: N") — larger
   Harbor-font text instead of the tiny inherited size. */
.rawfile-page .decorate {
    font-family: var(--ctc-font-body);
    font-size: var(--ctc-font-size-lg);
    font-weight: var(--ctc-font-weight-semibold);
}

/* "Attribute: <name>" label above the attribute/stat panels. */
.rawfile-page .attr-label {
    font-family: var(--ctc-font-body);
    font-size: var(--ctc-font-size-lg);
}

/* Product / Raw Segment / Source Date form field labels in the top card.
   The <hbr-card> content does not inherit the --ctc-* tokens, so a literal
   fallback (1.8rem = 18px at the 62.5% root) is provided. */
.rawfile-page .rf-label {
    font-family: var(--ctc-font-body);
    font-size: var(--ctc-font-size-lg, 1.8rem);
}

/* Attribute list uses the table-data monospace font (matches §4.1 body cells);
   the stat table + telemetry attr keep the Harbor body font. */
.rawfile-page #pathattrlist,
.rawfile-page #pathattrlist option {
    font-family: var(--ctc-font-mono, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace);
    font-size: 13px;
    color: var(--ctc-color-text, #222931);
}

.rawfile-page #telemetry_att,
.rawfile-page #statdatatable {
    font-family: var(--ctc-font-body);
    font-size: var(--ctc-font-size-md);
}

/* Enlarge the "Show Data" Harbor button to match the larger card typography. */
.rawfile-page hbr-button.show_raw_data {
    --font-size: var(--ctc-font-size-md);
}

/* "Advanced Stats" rendered as a clear blue, underlined hyperlink. The global
   `.cui a:not(.btn):hover` rule strips underline and recolors links on hover,
   so pin colour + underline across all states here. */
.rawfile-page #btnAdvancedStats.ctc-advanced-stats-link,
.rawfile-page #btnAdvancedStats.ctc-advanced-stats-link:link,
.rawfile-page #btnAdvancedStats.ctc-advanced-stats-link:visited,
.rawfile-page #btnAdvancedStats.ctc-advanced-stats-link:hover,
.rawfile-page #btnAdvancedStats.ctc-advanced-stats-link:focus,
.rawfile-page #btnAdvancedStats.ctc-advanced-stats-link:active {
    color: #1D69CC !important;
    text-decoration: underline !important;
    font-weight: var(--ctc-font-weight-semibold);
    font-size: var(--ctc-font-size-md);
    cursor: pointer;
}

/* Match the AI Insights / Download Attributes Harbor buttons to the surrounding
   card text size (Total Count / Advanced Stats). hbr-button ignores --font-size,
   so set the label font-size on the host and its button part directly. */
.rawfile-page #btnAIInsights,
.rawfile-page #btnDownloadAttrs {
    --font-size: var(--ctc-font-size-lg);
    font-size: var(--ctc-font-size-lg);
}

.rawfile-page #btnAIInsights::part(base),
.rawfile-page #btnDownloadAttrs::part(base),
.rawfile-page #btnAIInsights::part(label),
.rawfile-page #btnDownloadAttrs::part(label) {
    font-size: var(--ctc-font-size-lg);
}

/* Keep the Advanced Stats value table inside the card: use a fixed layout so
   long entity values wrap instead of widening the table past the card edge,
   and hide any residual horizontal overflow. */
.rawfile-page #statdatatable {
    table-layout: fixed;
    width: 100% !important;
}

.rawfile-page #statdatatable td,
.rawfile-page #statdatatable th {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.rawfile-page .attrstatdata .dataTables_wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* DataTables lays the footer controls out in a Bootstrap row with negative
   margins that push the pagination off the card. Zero the margins and stack
   the info + pagination vertically, centered directly below the table. */
.rawfile-page .attrstatdata .dataTables_wrapper>.row {
    margin-left: 0;
    margin-right: 0;
}

.rawfile-page .attrstatdata .dataTables_wrapper>.row:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 8px;
}

.rawfile-page .attrstatdata .dataTables_wrapper>.row:last-child>div {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.rawfile-page .attrstatdata .dataTables_paginate {
    float: none;
    text-align: center;
    margin-top: 10px;
}

.rawfile-page .attrstatdata .dataTables_paginate .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}


/* hbr-card renders inline-block by default, so it only takes its content
   width. Force page-level cards to fill their container so they stretch to
   the end of the page like the previous Bootstrap cards did. */
hbr-card {
    display: block;
    width: 100%;
}

/* Keep nested/data cards flush inside their parent card body. */
hbr-card hbr-card {
    width: 100%;
}

/* <hbr-card> slots its light-DOM content, and Harbor's shadow ::slotted rules
   shrink direct children to 0.75rem (7.5px). Any nested text/labels/buttons
   then inherit that tiny size. Reset direct slotted children back to the
   standard app body size so card content matches the rest of the app.
   Headings keep their own type scale. */
hbr-card>*:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(hbr-card) {
    font-size: var(--ctc-font-size-sm);
}

/* Harmonise the remaining Bootstrap accordion/panel "cards" into Job-Scheduler
   style panels (white surface, subtle neutral border, soft shadow) without
   replacing the components the page JS depends on. */
.content .card {
    border-radius: var(--ctc-radius-md);
    overflow: hidden;
    background-color: var(--ctc-color-surface);
    border: 1px solid var(--ctc-color-border);
    box-shadow: var(--ctc-shadow-sm);
}

/* Override the inline grey accordion header with a light tinted panel header. */
.content .card>.card-header {
    background-color: var(--ctc-color-subtle) !important;
    border-bottom: 1px solid var(--ctc-color-border) !important;
    border-top-left-radius: var(--ctc-radius-md);
    border-top-right-radius: var(--ctc-radius-md);
}

/* Make the accordion toggle behave as a full-width Harbor bar rather than a
   small button "chip". */
.content .card>.card-header .btn-link,
.content .card>.card-header>button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    color: var(--ctc-color-text) !important;
    font-weight: 600;
    text-decoration: none;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
}

.content .card>.card-header .btn-link:hover,
.content .card>.card-header>button:hover {
    background: var(--ctc-color-canvas) !important;
}

/* ---------------------------------------------------------------------------
   Harbor styling for data tables.
   Targets Bootstrap's .table class (used by every data/DataTable) so bare
   layout tables (<table border="0px"> with no .table class) are left alone.
   --------------------------------------------------------------------------- */
table.table {
    font-family: var(--ctc-font-body);
    font-size: 13px;
    color: var(--ctc-color-text);
    border-color: var(--ctc-color-canvas);
}

/* Blue uppercase column headers on a light-blue band, matching the Job
   Scheduler data table. */
table.table thead th,
table.table thead td {
    background-color: var(--ctc-color-subtle) !important;
    color: var(--ctc-color-brand) !important;
    font-weight: var(--ctc-font-weight-semibold);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    border-top: none !important;
    border-bottom: 1px solid var(--ctc-color-border) !important;
    padding: 8px 20px 8px 12px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Thin neutral row separators only (no vertical grid, no zebra) like the
   reference table. */
table.table td,
table.table th {
    border-left: none;
    border-right: none;
    padding: 8px 12px;
    vertical-align: middle;
}

table.table tbody td {
    border-top: none;
    border-bottom: 1px solid var(--ctc-color-canvas);
    /* Monospace body cells, matching the job_scheduler data table. */
    font-family: var(--ctc-font-mono);
}

/* ---------------------------------------------------------------------------
   Non-blocking loading indicators
   ---------------------------------------------------------------------------
   The legacy `.loaderimage` (customcss.css) was a full-screen opaque overlay
   that blanked the ENTIRE page during every AJAX call / navigation. It is
   repurposed here into a slim, NON-BLOCKING TOP PROGRESS BAR so the page stays
   visible and interactive while data loads. Because every existing
   showLoader()/hideLoader()/$('.loaderimage').show()/.hide() call and the
   global jQuery ajaxStart/ajaxStop hook already toggle this element, they all
   now drive the top bar — no call-site changes required.
   --------------------------------------------------------------------------- */
.cui .loaderimage,
.loaderimage {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 3px;
    /* slim bar, not a full-screen sheet */
    min-height: 0;
    background: transparent;
    /* no opaque scrim — page stays visible */
    text-align: left;
    pointer-events: none;
    /* never block clicks / scrolling */
    z-index: 10600;
    /* above the sticky brand header */
    overflow: hidden;
}

/* Hide the legacy centered wheel + "Loading… it could take a few minutes"
   message; the sliding top bar replaces them. */
.loaderimage .wrapper,
.loaderimage .wheel,
.loaderimage .loadingmsg {
    display: none !important;
}

/* Indeterminate sliding segment in the brand blue. */
.loaderimage::before {
    content: "";
    position: absolute;
    top: 0;
    left: -45%;
    height: 100%;
    width: 45%;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(90deg,
            rgba(3, 83, 168, 0) 0%,
            var(--ctc-color-brand, #0353a8) 45%,
            var(--ctc-color-brand-hover, #1170cf) 100%);
    box-shadow: 0 0 8px rgba(3, 83, 168, 0.45);
    animation: ctc-topbar-slide 1.1s ease-in-out infinite;
}

@keyframes ctc-topbar-slide {
    0% {
        left: -45%;
        width: 45%;
    }

    50% {
        left: 35%;
        width: 55%;
    }

    100% {
        left: 100%;
        width: 45%;
    }
}

/* ---------------------------------------------------------------------------
   Component-level loader (opt-in)
   ---------------------------------------------------------------------------
   Call showComponentLoader(el, msg) / hideComponentLoader(el) (customjs.js) to
   overlay a spinner on ONE element while its data loads, keeping the rest of
   the page visible and interactive. The helper adds `.ctc-loading-host` to the
   target (to anchor the absolute overlay) and injects a `.ctc-component-loader`.
   --------------------------------------------------------------------------- */
.ctc-loading-host {
    position: relative !important;
    /* Reserve room so the centred spinner + message are never clipped when the
       host is near-empty (e.g. a table with only a header row while loading). */
    min-height: 120px !important;
}

/* While loading, hide the host's own content (empty table chrome, stray search
   boxes, half-rendered rows, borders) so ONLY the clean spinner shows — no
   empty divs/inputs peeking through. Restored when the loader is removed. */
.ctc-loading-host>*:not(.ctc-component-loader) {
    visibility: hidden !important;
}

.ctc-component-loader {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    box-sizing: border-box;
    /* Solid veil so no empty/half-rendered content shows behind the spinner. */
    background: #fff;
    border-radius: inherit;
}

.ctc-component-loader__spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid var(--ctc-color-border, #d4dce3);
    border-top-color: var(--ctc-color-brand, #0353a8);
    animation: ctc-spin 0.8s linear infinite;
}

.ctc-component-loader__msg {
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: var(--ctc-color-text-muted, #70777F);
    text-align: center;
}

/* Inline card loader: centered blue ring spinner + message, used inside
   expandable cards (full compute, metric store, etc.). */
.ctc-card-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 12px;
    color: var(--ctc-color-text-muted, #70777F);
    font-size: 13px;
    text-align: center;
}
.ctc-card-loader__spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid var(--ctc-color-border, #d4dce3);
    border-top-color: var(--ctc-color-brand, #0353a8);
    animation: ctc-spin 0.8s linear infinite;
}

@keyframes ctc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Dropdown loading state — a <select> populated from an API shows a disabled
   "Loading…" placeholder (set in JS) while it pulses AND a spinning indicator on
   the right, so it never looks like an empty/broken control. Two background
   layers: (1) a self-animating SVG spinner pinned right; (2) the shimmer
   gradient. See setDropdownsLoading in customjs.js.
   The same visual is reused for date <input>s whose selectable dates load from
   an API (.ctc-datefield-loading) — see setDateFieldLoading in customjs.js. */
select.ctc-dropdown-loading,
.form-control.ctc-dropdown-loading,
.form-control.ctc-datefield-loading,
input.ctc-datefield-loading {
    cursor: progress;
    color: var(--ctc-color-text-muted, #70777F);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%230353a8' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6' stroke-opacity='0.25'/%3E%3Cpath d='M8 2 a6 6 0 0 1 6 6' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 8 8' to='360 8 8' dur='0.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(90deg,
            var(--ctc-color-subtle, #f3f8fe) 0%,
            var(--ctc-color-surface, #ffffff) 50%,
            var(--ctc-color-subtle, #f3f8fe) 100%) !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: right 10px center, 0 0 !important;
    background-size: 16px 16px, 200% 100% !important;
    animation: ctc-dropdown-shimmer 1.1s ease-in-out infinite;
}

@keyframes ctc-dropdown-shimmer {
    0% {
        background-position: right 10px center, 200% 0;
    }

    100% {
        background-position: right 10px center, -200% 0;
    }
}

table.table.table-striped tbody tr:nth-of-type(odd) {
    background-color: transparent;
}

table.table tbody tr:hover {
    background-color: var(--ctc-color-subtle);
}

table.table.table-bordered {
    border: 1px solid var(--ctc-color-border);
}

/* ---------------------------------------------------------------------------
   DataTables (Bootstrap) tables — the single standard table type used across
   every page. The vendored customcss.css paints the DataTables header dark
   (#30373e !important, specificity 0,2,4), so these overrides are scoped with
   the `.cui` body class to raise specificity above it and restore the Job
   Scheduler / TAN look: light-blue band, blue uppercase labels, thin neutral
   separators, monospace body cells.
   --------------------------------------------------------------------------- */
.cui table.dataTable thead>tr>th,
.cui table.dataTable thead>tr>td,
.cui table.dataTable thead>tr>th.sorting,
.cui table.dataTable thead>tr>th.sorting_asc,
.cui table.dataTable thead>tr>th.sorting_desc {
    background-color: var(--ctc-color-subtle) !important;
    color: var(--ctc-color-brand) !important;
    font-family: var(--ctc-font-body) !important;
    font-weight: var(--ctc-font-weight-semibold) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.55px !important;
    border-bottom: 1px solid var(--ctc-color-border) !important;
    padding: 8px 20px 8px 12px;
}

.cui table.dataTable tbody td,
.cui table.dataTable tbody th {
    font-family: var(--ctc-font-mono);
    font-size: 13px;
    color: var(--ctc-color-text);
    border-top: none;
    border-bottom: 1px solid var(--ctc-color-canvas);
}

/* Data-VALUE cells (Deployment ID, Customer Reference ID, and the like) render
   as plain row text — no bold, underline, or link colour — so no single value
   column looks like "the" clickable part; the whole row opens the detail popup.
   Cells stay clickable; only the highlight is removed. Overrides both the
   per-table underline rules in customcss.css and the inline colour/underline
   set by the JS renderers.
   ACTION links are deliberately EXCLUDED so they keep their original styling:
   "View" (.anomaly-info-btn/.deployment-info-btn), "Details"
   (.anomaly-alert-detail-link) and the modal triggers (.asproduct) — these open
   a different popup than the row-click, so they must still look clickable. */
.cui table.table tbody td a:not(.btn):not(.asproduct):not(.anomaly-info-btn):not(.deployment-info-btn):not(.anomaly-alert-detail-link),
.cui table.dataTable tbody td a:not(.btn):not(.asproduct):not(.anomaly-info-btn):not(.deployment-info-btn):not(.anomaly-alert-detail-link),
table.table tbody td a:not(.btn):not(.asproduct):not(.anomaly-info-btn):not(.deployment-info-btn):not(.anomaly-alert-detail-link),
table.dataTable tbody td a:not(.btn):not(.asproduct):not(.anomaly-info-btn):not(.deployment-info-btn):not(.anomaly-alert-detail-link),
.anomaly-cust-ref-id-link,
.af-cr-link {
    color: inherit !important;
    font-weight: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
}

/* Bold cell values render at the normal cell weight too. */
.cui table.table tbody td b,
.cui table.table tbody td strong,
.cui table.dataTable tbody td b,
.cui table.dataTable tbody td strong,
table.table tbody td b,
table.table tbody td strong,
table.dataTable tbody td b,
table.dataTable tbody td strong {
    font-weight: inherit !important;
}

/* DataTables chrome (Show N entries, Search, info text, pagination) — align
   the fonts and pagination buttons with the Harbor pager on the TAN page. */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    font-family: var(--ctc-font-body);
    font-size: 13px;
    color: var(--ctc-color-text-muted);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    font-family: var(--ctc-font-body);
    font-size: 13px;
    color: var(--ctc-color-text);
    border: 1px solid var(--ctc-color-border);
    border-radius: var(--ctc-radius-md);
    padding: 4px 10px;
    background-color: var(--ctc-color-surface);
}

.dataTables_wrapper .dataTables_paginate .page-link {
    font-family: var(--ctc-font-body);
    font-size: 13px;
    color: var(--ctc-color-text);
    border: 1px solid var(--ctc-color-border);
    border-radius: var(--ctc-radius-md);
    margin: 0 2px;
    padding: 4px 10px;
}

.dataTables_wrapper .dataTables_paginate .page-link:hover {
    background-color: var(--ctc-color-subtle);
    border-color: var(--ctc-color-border-strong);
}

.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background-color: var(--ctc-color-brand) !important;
    border-color: var(--ctc-color-brand) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
    opacity: 0.5;
}

/* Custom server-side pagination (product landscape / pitboard / etc.) renders
   .paginate_button <li>s with a plain <a>, so the .page-link rules above don't
   reach it. Match the Harbor pager: rounded buttons, brand-blue active page
   (never a dark fill). */
.dataTables_paginate .pagination .paginate_button>a,
.dataTables_paginate .pagination .paginate_button>span {
    display: inline-block;
    font-family: var(--ctc-font-body);
    font-size: 13px;
    color: var(--ctc-color-text);
    background-color: var(--ctc-color-surface);
    border: 1px solid var(--ctc-color-border);
    border-radius: var(--ctc-radius-md, 8px);
    margin: 0 3px;
    padding: 4px 10px;
    text-decoration: none;
}

.dataTables_paginate .pagination .paginate_button>a:hover {
    background-color: var(--ctc-color-subtle);
    border-color: var(--ctc-color-border-strong);
}

.dataTables_paginate .pagination .paginate_button.active>a {
    background-color: var(--ctc-color-brand) !important;
    border-color: var(--ctc-color-brand) !important;
    color: #fff !important;
}

.dataTables_paginate .pagination .paginate_button.disabled>a,
.dataTables_paginate .pagination .paginate_button.disabled>span {
    opacity: 0.5;
    pointer-events: none;
}

/* On small screens stack nav above content */
@media (max-width: 991.98px) {
    .content.content--alt .row {
        flex-wrap: wrap;
    }
}

/* ---------------------------------------------------------------------------
   Selectable table rows + right-side detail drawer (fundamental feature)
   ---------------------------------------------------------------------------
   Add class `ctc-row-selectable` to any Bootstrap/DataTables `<table>` whose
   rows open the shared right-side Harbor drawer (#tandepdrawer) on click. The
   JS (customjs.js) scrapes the clicked row's header/value pairs and calls
   show_tan_deploymentid_modal(rawRow). This mirrors the viewtandata pattern so
   every data table can offer the same "click a row → attribute/value detail
   panel" interaction.
   --------------------------------------------------------------------------- */
table.ctc-row-selectable tbody tr {
    cursor: pointer;
}

table.ctc-row-selectable tbody tr:hover {
    background-color: var(--ctc-color-subtle, #f3f8fe);
}

/* ---------------------------------------------------------------------------
   Collapsible-card sections sit a comfortable distance BELOW the filter row
   ---------------------------------------------------------------------------
   Add class `ctc-collapse-section` to the wrapper of any collapsible/accordion
   card that renders directly under a page's filter/dropdown row (e.g. the Metric
   Data / Analyse Results accordions, the tanmap map-file / config accordions).
   This guarantees a consistent breathing gap so the card never crowds the
   controls above it — instead of ad-hoc inline margins per page.
   --------------------------------------------------------------------------- */
.ctc-collapse-section {
    margin-top: 28px !important;
}

/* ---------------------------------------------------------------------------
   Responsive, full-width filter rows (ctc-filter-table)
   ---------------------------------------------------------------------------
   Legacy pages lay their Product / Source Date / etc. filter controls out in a
   fixed <table> with percentage-width <td>s and inline row heights. That layout
   (a) leaves the controls clustered on the left with dead space on the right,
   and (b) collides with the next row when the viewport shrinks (fixed heights
   clip the wrapped controls). Add class `ctc-filter-table` to such a <table> to
   turn it into a responsive flex row: label cells hug their text, control cells
   grow to SHARE the full card width evenly, the control fills its cell, and the
   whole row wraps to a new line (never overlaps) as width decreases.
   Relies on :has() — supported by all evergreen browsers (Harbor web components
   already require a modern engine).
   --------------------------------------------------------------------------- */
.ctc-filter-table,
.ctc-filter-table>tbody {
    display: block;
    width: 100%;
}

/* Standard filter-row typography: always the app body size (14px), even when the
   table is a direct <hbr-card> child (whose ::slotted(table) would otherwise
   shrink it). Keeps Product / Rule Status / all filter labels consistent app-wide. */
.ctc-filter-table {
    font-family: var(--ctc-font-body);
    font-size: 12px;
}

.ctc-filter-table>tbody>tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    height: auto !important;
}

.ctc-filter-table>tbody>tr>td {
    padding: 0;
    height: auto !important;
    width: auto !important;
    display: flex;
    align-items: center;
}

/* label / static text cells (no control inside) hug their text */
.ctc-filter-table>tbody>tr>td:not(:has(.form-control, input, select, textarea, button, hbr-button)) {
    flex: 0 0 auto;
    font-weight: 600;
    white-space: nowrap;
}

/* text-input / textarea cells grow to share the remaining width evenly */
.ctc-filter-table>tbody>tr>td:has(> input.form-control, > textarea.form-control) {
    flex: 1 1 200px;
    min-width: 180px;
}

.ctc-filter-table>tbody>tr>td:has(> input.form-control)>input.form-control,
.ctc-filter-table>tbody>tr>td:has(> textarea.form-control)>textarea.form-control {
    width: 100% !important;
    max-width: 100%;
    display: block;
}

/* ---------------------------------------------------------------------------
   DataTables inside an hbr-card — keep pagination OUT of the horizontal scroll
   An <hbr-card> shrink-wraps its slotted content (host behaves inline-block), so
   a DataTable makes the card either balloon with a wide table (dragging the
   toolbar + pagination into the horizontal scroll) or collapse to a narrow
   column when the table has few columns. Each table's initComplete already wraps
   ONLY the <table> in its own overflow:auto div, so force the card full-width and
   turn OFF the card's own overflow. Horizontal scroll is then confined to the
   table wrap; the SHOW-entries toolbar and pagination stay fixed and full-width.
   --------------------------------------------------------------------------- */
.content hbr-card:has(.dataTables_wrapper) {
    width: 100%;
    overflow: visible !important;
}

.content hbr-card .dataTables_wrapper {
    width: 100%;
}

/* ---------------------------------------------------------------------------
   Standard fixed-width dropdowns
   Normal <select> dropdowns are a COMPACT, consistent fixed width — they must
   never stretch to fill the whole card (a lone Product select ballooning across
   the row looks broken). Only file-path selects, which must show a full path,
   opt into the wider size by adding the `.ctc-select-wide` class.
   --------------------------------------------------------------------------- */
:root {
    --ctc-select-width: 190px;
    /* standard compact dropdown width */
    --ctc-select-width-wide: 560px;
    /* file-path dropdowns (.ctc-select-wide) */
    --ctc-date-width: 180px;
    /* standard date picker (YYYY-MM-DD) width */
    --ctc-datetime-width: 210px;
    /* date+time picker (YYYY-MM-DD HH:MM:SS) width */
}

.ctc-filter-table>tbody>tr>td:has(> select.form-control) {
    flex: 0 0 auto;
    min-width: 0;
}

.ctc-filter-table>tbody>tr>td>select.form-control {
    width: var(--ctc-select-width, 190px) !important;
    max-width: 100%;
    display: block;
    font-size: 12px;
    height: 32px;
}

.ctc-filter-table>tbody>tr>td>select.form-control.ctc-select-wide {
    width: var(--ctc-select-width-wide, 560px) !important;
}

/* ---------------------------------------------------------------------------
   Standard fixed-width date pickers
   Date inputs (placeholder "YYYY-MM-DD") must never stretch to fill the card —
   a date field only ever holds 10 characters, so a full-width box looks broken.
   Targeted by placeholder so the standard applies app-wide regardless of the
   surrounding markup (plain <table> filter rows OR .ctc-filter-table flex rows).
   Date+time inputs (placeholder "YYYY-MM-DD HH:MM:SS") get a slightly wider box.
   --------------------------------------------------------------------------- */
input.form-control[placeholder^="YYYY-MM-DD"] {
    width: var(--ctc-date-width, 180px) !important;
    max-width: 100%;
    display: inline-block;
}

input.form-control[placeholder^="YYYY-MM-DD HH"] {
    width: var(--ctc-datetime-width, 210px) !important;
}

/* inside a flex filter row, the date cell must hug the fixed-width input */
.ctc-filter-table>tbody>tr>td:has(> input.form-control[placeholder^="YYYY-MM-DD"]) {
    flex: 0 0 auto;
    min-width: 0;
}

/* Preserve the fixed date width while the field is loading: setDateFieldLoading
   swaps the placeholder to "Loading dates…", so the placeholder-based width and
   cell-hug rules above stop matching — key off the loading class instead. */
input.form-control.ctc-datefield-loading {
    width: var(--ctc-date-width, 180px) !important;
    max-width: 100%;
    display: inline-block;
}

.ctc-filter-table>tbody>tr>td:has(> input.form-control.ctc-datefield-loading) {
    flex: 0 0 auto;
    min-width: 0;
}

/* action-button cells (Search, Show Data, …) hug their content, never stretch */
.ctc-filter-table>tbody>tr>td:has(> hbr-button, > button.btn, > a.btn) {
    flex: 0 0 auto;
}

/* Inline radio group (e.g. Latest / Historical data mode) — compact segmented look. */
.ctc-radio-group {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ctc-radio-group .ctc-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    /* Match the surrounding filter-row text (normal case, body font) — override any
       global uppercase/letter-spaced <label> styling. */
    font-family: var(--ctc-font-body) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: var(--ctc-color-text, #222931);
    cursor: pointer;
    white-space: nowrap;
}

.ctc-radio-group .ctc-radio input[type="radio"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--ctc-color-brand, #0353a8);
    cursor: pointer;
}

/* Full-width, zero-height flex break: forces the following cells (Source Date
   label + datepicker) onto a new line together within a .ctc-filter-table row. */
.ctc-filter-table>tbody>tr>td.rf-linebreak {
    flex: 0 0 100% !important;
    height: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* keep the "No Data" placeholder row non-interactive */
table.ctc-row-selectable tbody tr td[colspan] {
    cursor: default;
}

/* ---------------------------------------------------------------------------
   Data-table tooltips + resizable columns (applied app-wide to every jQuery
   DataTable by ctcEnableColResize in customjs.js). Cells clip to a single line
   with an ellipsis; hovering a clipped cell shows its full value as a native
   tooltip; drag a header cell's right edge to resize that column.
   --------------------------------------------------------------------------- */
.ctc-resizable th,
.ctc-resizable td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ctc-resizable th {
    position: relative;
}

.ctc-col-resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 7px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
    touch-action: none;
    z-index: 6;
}

.ctc-col-resizer::after {
    content: "";
    position: absolute;
    top: 25%;
    right: 2px;
    height: 50%;
    border-right: 2px solid transparent;
}

.ctc-col-resizer:hover::after,
body.ctc-col-resizing .ctc-col-resizer::after {
    border-right-color: var(--ctc-color-brand, #0353a8);
}

body.ctc-col-resizing {
    cursor: col-resize !important;
    user-select: none !important;
}

/* ---------------------------------------------------------------------------
   Standard card / section header row
   A titled section with an optional action button (e.g. "Full Compute Queue"
   + "Refresh Queue"): the title is a proper heading on the left, the action
   button is pushed to the right with `margin-left:auto` — never a hardcoded
   `margin-left: NNrem` hack. Wraps gracefully on narrow widths.
   --------------------------------------------------------------------------- */
.ctc-card-header-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.ctc-card-title {
    font-family: var(--ctc-font-body);
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--ctc-color-text, #222931);
    margin: 0 !important;
}

.ctc-card-header-row>.ctc-btn,
.ctc-card-header-row>hbr-button,
.ctc-card-header-row>.btn {
    margin-left: auto;
    /* action buttons hug the right edge */
}

/* ---------------------------------------------------------------------------
   Per-table toolbar (§4.1 / §4.13) — the table's own Search/Filter + Clear
   Search (and other table-scoped) controls live in a toolbar that is part of the
   table container, directly above the <table>, NOT in the page/card header row.
   Controls are LEFT-aligned so they read as belonging to the table below them.
   --------------------------------------------------------------------------- */
.ctc-table-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 12px;
    margin-bottom: 10px;
}

/* ---------------------------------------------------------------------------
   Telemetry Attributes grid (metricengineeringcisco #rowdatatable) — a wide grid
   of attribute names. Wrapped in .ctc-attr-scroll so it scrolls horizontally
   instead of overflowing the card, with evenly spaced, bordered cells.
   --------------------------------------------------------------------------- */
.ctc-attr-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--ctc-color-border, #d4dce3);
    border-radius: var(--ctc-radius-md, 8px);
}

.ctc-attr-table {
    border-collapse: collapse;
    width: max-content;
    /* exceed the card width so the wrapper scrolls */
    min-width: 100%;
    margin: 0;
    font-family: var(--ctc-font-mono, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace);
    font-size: 13px;
    color: var(--ctc-color-text, #222931);
}

.ctc-attr-table td {
    border: 1px solid var(--ctc-color-border, #d4dce3);
    padding: 8px 16px;
    white-space: nowrap;
    background: var(--ctc-color-surface, #fff);
}

.ctc-attr-table tr:nth-child(even) td {
    background: var(--ctc-color-subtle, #f3f8fe);
}

/* ---------------------------------------------------------------------------
   Refined notification toasts (Lobibox — anim4_noti / errorNotification /
   successNotification)
   ---------------------------------------------------------------------------
   The vendored Lobibox theme paints a heavy full-colour box with a bouncing
   "lightSpeed" entrance. Restyle it into a clean Harbor card: white surface,
   soft shadow, rounded corners, system font, a coloured left accent + icon per
   type, a quiet close button, and a gentle slide/fade. Colour per type is
   carried on a CSS var so the accent, icon and close-hover stay in sync.
   --------------------------------------------------------------------------- */
.lobibox-notify-error {
    --ctc-notify-accent: #c9372c;
}

.lobibox-notify-success {
    --ctc-notify-accent: #1f8a4c;
}

.lobibox-notify-warning {
    --ctc-notify-accent: #b46b00;
}

.lobibox-notify-info,
.lobibox-notify-default {
    --ctc-notify-accent: var(--ctc-color-brand, #0353a8);
}

.cui .lobibox-notify,
.lobibox-notify {
    display: flex !important;
    align-items: stretch !important;
    position: relative !important;
    padding: 0 !important;
    border: 1px solid var(--ctc-color-border, #d4dce3) !important;
    border-left: 4px solid var(--ctc-notify-accent, var(--ctc-color-brand, #0353a8)) !important;
    border-radius: var(--ctc-radius-md, 8px) !important;
    background-color: var(--ctc-color-surface, #ffffff) !important;
    background-image: none !important;
    color: var(--ctc-color-text, #222931) !important;
    box-shadow: 0 10px 30px rgba(16, 33, 60, 0.18), 0 2px 8px rgba(16, 33, 60, 0.08) !important;
    font-family: var(--ctc-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif) !important;
    overflow: hidden !important;
    max-width: calc(100vw - 40px) !important;
}

.lobibox-notify .lobibox-notify-icon-wrapper {
    position: static !important;
    width: 52px !important;
    min-width: 52px !important;
    height: auto !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.lobibox-notify .lobibox-notify-icon,
.lobibox-notify .lobibox-notify-icon>div,
.lobibox-notify .lobibox-notify-icon .icon-el {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

.lobibox-notify .lobibox-notify-icon .icon-el i,
.lobibox-notify .lobibox-notify-icon i {
    color: var(--ctc-notify-accent, var(--ctc-color-brand, #0353a8)) !important;
    font-size: 22px !important;
    line-height: 1 !important;
}

.lobibox-notify .lobibox-notify-body {
    margin: 0 !important;
    padding: 12px 36px 12px 4px !important;
    align-self: center !important;
}

.lobibox-notify .lobibox-notify-title {
    font-family: var(--ctc-font-heading, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--ctc-color-text, #222931) !important;
    margin-bottom: 2px !important;
    padding: 0 !important;
    background: transparent !important;
}

.lobibox-notify .lobibox-notify-msg {
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: var(--ctc-color-text-muted, #70777F) !important;
    max-height: 140px !important;
    overflow: auto !important;
    scrollbar-width: thin;
}

.lobibox-notify .lobibox-close {
    position: absolute !important;
    top: 8px !important;
    right: 10px !important;
    width: auto !important;
    height: auto !important;
    font-size: 18px !important;
    line-height: 1 !important;
    color: var(--ctc-color-text-muted, #70777F) !important;
    background: transparent !important;
    opacity: 0.75;
    cursor: pointer;
    text-shadow: none !important;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.lobibox-notify .lobibox-close:hover {
    color: var(--ctc-notify-accent, var(--ctc-color-brand, #0353a8)) !important;
    opacity: 1;
}

/* Softer, less jarring entrance/exit than the default lightSpeed bounce. */
.lobibox-notify.animated-fast.lightSpeedIn,
.lobibox-notify.lightSpeedIn {
    animation: ctc-notify-in 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both !important;
}

.lobibox-notify.animated-fast.lightSpeedOut,
.lobibox-notify.lightSpeedOut {
    animation: ctc-notify-out 0.2s ease both !important;
}

@keyframes ctc-notify-in {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes ctc-notify-out {
    from {
        opacity: 1;
        transform: none;
    }

    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* ---------------------------------------------------------------------------
   Global application footer — sits below the main content on every page.
   --------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------
   Global application footer — fixed to the viewport bottom so it stays visible
   at any page height/scroll position; the content area pads its bottom by
   --ctc-footer-height so nothing is hidden behind it.
   --------------------------------------------------------------------------- */
.ctc-app-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 16px;
    min-height: var(--ctc-footer-height);
    padding: 8px 28px;
    border-top: 1px solid var(--ctc-color-border, #D4DCE3);
    background-color: var(--ctc-color-canvas, #E4EBF3);
    font-family: var(--ctc-font-body);
    font-size: 11px;
    color: var(--ctc-color-text-muted);
}

.ctc-app-footer__left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ctc-app-footer__confidential {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ctc-app-footer__lock {
    font-size: 14px;
}

.ctc-app-footer__sep {
    color: var(--ctc-color-border-strong);
}

/* Keep the back-to-top button clear of the fixed footer. */
.back-to-top {
    bottom: calc(var(--ctc-footer-height) + 14px) !important;
}