/* =========================================================
   plx-compat.css — the Bootstrap / corporate-theme shim (D-02).

   Bootstrap 5 and corporate-theme.css are gone from App.razor. A few
   hundred templates (the Identity Account pages, ConfirmBox/MessageBox,
   older dialogs, LiveData admin) still speak Bootstrap's class
   vocabulary, and ~20 pages still read corporate-theme's CSS variables
   (hsl(var(--primary)), var(--radius), --rz-primary for Radzen). This
   file defines exactly that subset — nothing more — in plx tokens, so
   the pages keep rendering while they migrate to plx-* primitives.

   Rules of the file:
     • Every colour is a token from tokens.css. No hex except pure
       white text on a brand fill.
     • `!important` appears ONLY on single-purpose utilities (text-*,
       bg-*, d-*, spacing, sizing) because Bootstrap's were !important
       and page CSS was written against that cascade.
     • New pages must not add classes here; use plx-*. When the last
       consumer of a block below is migrated, delete the block.

   Sections: 1 reboot · 2 legacy variable bridge · 3 buttons · 4 forms
   · 5 layout (container/grid/flex) · 6 spacing & sizing · 7 typography
   & colour utilities · 8 components (card, alert, badge, modal, table,
   nav, list-group, progress, dropdown) · 9 misc utilities · 10 ports
   from corporate-theme (form-group, status-dot, empty-state).
   ========================================================= */

/* ----- 1. Reboot (what Bootstrap's reboot + corporate-theme gave us) -- */

*, *::before, *::after { box-sizing: border-box; }
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    color: var(--ink);
    background-color: var(--paper);
}
[hidden] { display: none !important; }
hr { margin: 1rem 0; border: 0; border-top: 1px solid var(--line); opacity: 1; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; font-weight: 600; line-height: 1.25; color: var(--ink); }
h1 { font-size: 1.75rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 1rem; }
h4 { font-size: 1.125rem; margin-bottom: .5rem; }
h5 { font-size: 1rem; margin-bottom: .5rem; }
h6 { font-size: .875rem; margin-bottom: .5rem; }
p { margin-top: 0; margin-bottom: 1rem; }
ol, ul { padding-left: 2rem; margin-top: 0; margin-bottom: 1rem; }
ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; }
b, strong { font-weight: bolder; }
small { font-size: .875em; }
sub, sup { position: relative; font-size: .75em; line-height: 0; vertical-align: baseline; }
sub { bottom: -.25em; } sup { top: -.5em; }
a { color: var(--brand); text-decoration: none; transition: opacity var(--motion-quick); }
a:hover { text-decoration: underline; opacity: .8; }
pre, code, kbd, samp { font-family: var(--mono); font-size: 1em; }
pre { display: block; margin-top: 0; margin-bottom: 1rem; overflow: auto; font-size: .875em; }
code { font-size: .875em; color: var(--brand-deep); word-wrap: break-word; }
img, svg { vertical-align: middle; }
table { caption-side: bottom; border-collapse: collapse; }
th { text-align: inherit; text-align: -webkit-match-parent; }
thead, tbody, tfoot, tr, td, th { border-color: inherit; border-style: solid; border-width: 0; }
label { display: inline-block; }
button { border-radius: 0; }
button:focus:not(:focus-visible) { outline: 0; }
input, button, select, optgroup, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
button, select { text-transform: none; }
[role="button"] { cursor: pointer; }
select { word-wrap: normal; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button:not(:disabled), [type="button"]:not(:disabled), [type="reset"]:not(:disabled), [type="submit"]:not(:disabled) { cursor: pointer; }
textarea { resize: vertical; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
legend { float: left; width: 100%; padding: 0; margin-bottom: .5rem; font-size: 1.5rem; line-height: inherit; }
legend + * { clear: left; }
iframe { border: 0; }
summary { display: list-item; cursor: pointer; }
progress { vertical-align: baseline; }

/* ----- 2. Legacy variable bridge -------------------------------------
   corporate-theme.css used shadcn-style HSL triplets. Pages still read
   them as hsl(var(--primary)). Values below are the tokens.css palette
   expressed as HSL so the same expressions resolve to the plx brand.
   Retire a variable when `grep -r "var(--<name>"` in Components is 0. */

:root {
    --background: 0 0% 100%;                 /* --paper */
    --foreground: 135 15% 5%;                /* --ink */
    --card: 0 0% 100%;
    --card-foreground: 135 15% 5%;
    --popover: 0 0% 100%;
    --popover-foreground: 135 15% 5%;
    --primary: 255 60% 55%;                  /* --brand #6B48D1 */
    --primary-foreground: 0 0% 98%;
    --secondary: 262 83% 58%;                /* --brand-display */
    --secondary-foreground: 0 0% 98%;
    --accent: 263 69% 42%;                   /* --brand-deep */
    --accent-foreground: 0 0% 98%;
    --destructive: 0 72% 51%;                /* --bad */
    --destructive-foreground: 0 0% 98%;
    --success: 161 94% 30%;                  /* --ok */
    --success-foreground: 0 0% 98%;
    --warning: 26 90% 37%;                   /* --warn */
    --warning-foreground: 0 0% 98%;
    --info: 210 70% 50%;                     /* no token — kept verbatim */
    --info-foreground: 0 0% 98%;
    --border: 105 10% 92%;                   /* --line */
    --input: 105 10% 92%;
    --ring: 255 60% 55%;
    --ct-muted: 100 13% 95%;                 /* --line-2 */
    --ct-muted-foreground: 150 4% 44%;       /* --muted */

    --radius: var(--r-lg);
    --spacing-xs: var(--s-1);
    --spacing-sm: var(--s-2);
    --spacing-md: var(--s-4);
    --spacing-lg: var(--s-6);
    --spacing-xl: var(--s-8);
    --spacing-2xl: var(--s-12);
    --transition-fast: var(--motion-quick);
    --transition-base: var(--motion-base);
    --transition-slow: var(--motion-slow);
    --animation-fast: 150ms;
    --animation-base: 250ms;
    --animation-slow: 400ms;
    --hover-scale: 1.02;
    --hover-lift: translateY(-2px);
    --glow-purple: 0 0 20px rgba(var(--brand-glow-rgb), .3);
    --font-sans: var(--sans);
    --font-heading: var(--sans);
    --font-slogan: var(--serif);
    --font-mono: var(--mono);
    --shadow-sm: var(--shadow-1);
    --shadow-md: var(--shadow-2);
    --shadow-lg: var(--shadow-2);
    --shadow-xl: var(--shadow-3);

    /* Radzen theme hooks — keeps RadzenButton/RadzenDialog etc. on brand. */
    --rz-primary: var(--brand-display);
    --rz-primary-lighter: var(--brand-glow);
    --rz-primary-light: var(--brand-bright);
    --rz-primary-dark: var(--brand-deep);
}

/* ----- 3. Buttons (.btn) — sized like the old theme, skinned like .plx-btn */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: .5rem 1rem;
    font-family: var(--sans);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink-2);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    background-color: transparent;
    transition: background var(--motion-quick), border-color var(--motion-quick),
                color var(--motion-quick), box-shadow var(--motion-quick);
}
.btn:hover { text-decoration: none; opacity: 1; }
.btn .mi { font-size: 16px; }
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--brand-soft);
}
.btn:disabled, .btn.disabled, fieldset:disabled .btn { opacity: .55; pointer-events: none; }

.btn-primary { color: #fff; background: var(--grad-cta); border-color: transparent; font-weight: 600; }
.btn-primary:hover:not(:disabled) { color: #fff; background: var(--grad-cta-hover); }
.btn-secondary { color: var(--ink); background: var(--paper); border-color: var(--line-strong); }
.btn-secondary:hover:not(:disabled) { border-color: var(--ink-400); }
.btn-success { color: #fff; background-color: var(--ok); border-color: var(--ok); }
.btn-success:hover:not(:disabled) { filter: brightness(.92); color: #fff; }
.btn-danger { color: #fff; background-color: var(--bad); border-color: var(--bad); }
.btn-danger:hover:not(:disabled) { filter: brightness(.92); color: #fff; }
.btn-warning { color: #fff; background-color: var(--warn); border-color: var(--warn); }
.btn-warning:hover:not(:disabled) { filter: brightness(.92); color: #fff; }
.btn-light { color: var(--ink-2); background-color: var(--line-2); border-color: var(--line-2); }
.btn-light:hover:not(:disabled) { background-color: var(--line); }
.btn-dark { color: #fff; background-color: var(--ink); border-color: var(--ink); }

.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover:not(:disabled) { color: var(--brand-deep); background-color: var(--brand-soft); }
.btn-outline-secondary { color: var(--ink-2); border-color: var(--line-strong); }
.btn-outline-secondary:hover:not(:disabled) { color: var(--ink); background-color: var(--line-2); border-color: var(--ink-400); }
.btn-outline-danger { color: var(--bad); border-color: var(--bad); }
.btn-outline-danger:hover:not(:disabled) { background-color: var(--bad-soft); }
.btn-outline-success { color: var(--ok); border-color: var(--ok); }
.btn-outline-success:hover:not(:disabled) { background-color: var(--ok-soft); }
.btn-outline-warning { color: var(--warn); border-color: var(--warn); }
.btn-outline-warning:hover:not(:disabled) { background-color: var(--warn-soft); }

.btn-link { color: var(--brand); text-decoration: none; border-color: transparent; }
.btn-link:hover { color: var(--brand-deep); text-decoration: underline; }

.btn-sm { padding: .25rem .5rem; font-size: .8125rem; border-radius: var(--r-sm); }
.btn-lg { padding: .75rem 1.25rem; font-size: 1rem; border-radius: var(--r-md); }

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: .25em;
    color: var(--ink);
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230b0f0c'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: var(--r-sm);
    opacity: .5;
    cursor: pointer;
}
.btn-close:hover { opacity: 1; }
.btn-close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); opacity: 1; }

/* ----- 4. Forms ------------------------------------------------------- */

.form-label { display: block; margin-bottom: .25rem; font-size: .875rem; font-weight: 500; color: var(--ink); }
.form-text { display: block; margin-top: .25rem; font-size: var(--t-xs); color: var(--muted); }
.form-group { margin-bottom: 1rem; }

.form-control, .form-select {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink-2);
    background-color: var(--paper);
    background-clip: padding-box;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    appearance: none;
    transition: border-color var(--motion-quick), box-shadow var(--motion-quick);
}
.form-control::placeholder { color: var(--ink-400); opacity: 1; }
.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-control:disabled, .form-select:disabled { background-color: var(--line-2); color: var(--muted); opacity: 1; }
.form-control[readonly] { background-color: var(--line-2); }
textarea.form-control { min-height: calc(1.5em + .75rem + 2px); }
.form-control[type="file"] { overflow: hidden; }
.form-control[type="file"]:not(:disabled):not([readonly]) { cursor: pointer; }
.form-control::file-selector-button {
    padding: .375rem .75rem;
    margin: -.375rem -.75rem;
    margin-inline-end: .75rem;
    color: var(--ink-2);
    background-color: var(--line-2);
    border: 0 solid;
    border-inline-end-width: 1px;
    border-color: inherit;
    border-radius: 0;
}
.form-control-sm { min-height: calc(1.5em + .5rem + 2px); padding: .25rem .5rem; font-size: .875rem; border-radius: var(--r-sm); }
.form-control-lg { min-height: calc(1.5em + 1rem + 2px); padding: .5rem 1rem; font-size: 1.25rem; border-radius: var(--r-lg); }
.form-control-plaintext { display: block; width: 100%; padding: .375rem 0; line-height: 1.5; color: var(--ink-2); background: transparent; border: solid transparent; border-width: 1px 0; }

.form-select {
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b736f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}
.form-select[multiple], .form-select[size]:not([size="1"]) { padding-right: .75rem; background-image: none; }
.form-select-sm { padding-top: .25rem; padding-bottom: .25rem; padding-left: .5rem; font-size: .875rem; border-radius: var(--r-sm); }
.form-select-lg { padding-top: .5rem; padding-bottom: .5rem; padding-left: 1rem; font-size: 1.25rem; border-radius: var(--r-lg); }

.form-check { display: block; min-height: 1.5rem; padding-left: 1.5em; margin-bottom: .125rem; }
.form-check .form-check-input { float: left; margin-left: -1.5em; }
.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: .25em;
    vertical-align: top;
    appearance: none;
    background-color: var(--paper);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid var(--line-strong);
    print-color-adjust: exact;
}
.form-check-input[type="checkbox"] { border-radius: .25em; }
.form-check-input[type="radio"] { border-radius: 50%; }
.form-check-input:active { filter: brightness(90%); }
.form-check-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}
.form-check-input:disabled { pointer-events: none; filter: none; opacity: .5; }
.form-check-input:disabled ~ .form-check-label, .form-check-input[disabled] ~ .form-check-label { cursor: default; opacity: .5; }
.form-check-label { cursor: pointer; }
.form-check-inline { display: inline-block; margin-right: 1rem; }
.form-switch { padding-left: 2.5em; }
.form-switch .form-check-input {
    width: 2em;
    margin-left: -2.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%239aa19d'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    transition: background-position var(--motion-quick);
}
.form-switch .form-check-input:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-floating { position: relative; }
.form-floating > .form-control, .form-floating > .form-select {
    height: calc(3.5rem + 2px);
    min-height: calc(3.5rem + 2px);
    line-height: 1.25;
    padding: 1rem .75rem;
}
.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    height: 100%;
    padding: 1rem .75rem;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    color: var(--muted);
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
}
.form-floating > .form-control::placeholder { color: transparent; }
.form-floating > .form-control:focus, .form-floating > .form-control:not(:placeholder-shown), .form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: .65;
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}
.form-floating > textarea.form-control { height: auto; }

.input-group { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
.input-group > .form-control, .input-group > .form-select { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group > .form-control:focus, .input-group > .form-select:focus { z-index: 3; }
.input-group .btn { position: relative; z-index: 2; }
.input-group-text {
    display: flex;
    align-items: center;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ink-2);
    text-align: center;
    white-space: nowrap;
    background-color: var(--line-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
}
.input-group > :not(:first-child):not(.dropdown-menu) { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.valid-feedback, .invalid-feedback { display: none; width: 100%; margin-top: .25rem; font-size: var(--t-xs); }
.valid-feedback { color: var(--ok); }
.invalid-feedback { color: var(--bad); }
.is-valid ~ .valid-feedback, .is-invalid ~ .invalid-feedback { display: block; }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--bad); }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: 0 0 0 3px var(--bad-soft); }
.form-control.is-valid, .form-select.is-valid { border-color: var(--ok); }
.form-control.is-valid:focus, .form-select.is-valid:focus { box-shadow: 0 0 0 3px var(--ok-soft); }

/* ----- 5. Layout: container, grid, flex ------------------------------- */

.container, .container-fluid {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}
.container { max-width: 1280px; }
@media (max-width: 640px) { .container { padding-right: .5rem; padding-left: .5rem; } }

.row { display: flex; flex-wrap: wrap; margin-top: 0; margin-right: -.75rem; margin-left: -.75rem; }
.row > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-right: .75rem; padding-left: .75rem; margin-top: 0; }
.row.g-2 { margin-top: -.5rem; margin-right: -.25rem; margin-left: -.25rem; }
.row.g-2 > * { padding-right: .25rem; padding-left: .25rem; margin-top: .5rem; }
.row.g-3 { margin-top: -1rem; margin-right: -.5rem; margin-left: -.5rem; }
.row.g-3 > * { padding-right: .5rem; padding-left: .5rem; margin-top: 1rem; }
.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-12 { flex: 0 0 auto; width: 100%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-4 { flex: 0 0 auto; width: 33.3333%; }
.col-3 { flex: 0 0 auto; width: 25%; }
@media (min-width: 576px) {
    .col-sm-6 { flex: 0 0 auto; width: 50%; }
    .col-sm-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 768px) {
    .col-md-2 { flex: 0 0 auto; width: 16.6667%; }
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.3333%; }
    .col-md-5 { flex: 0 0 auto; width: 41.6667%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-7 { flex: 0 0 auto; width: 58.3333%; }
    .col-md-8 { flex: 0 0 auto; width: 66.6667%; }
    .col-md-9 { flex: 0 0 auto; width: 75%; }
    .col-md-10 { flex: 0 0 auto; width: 83.3333%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.3333%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.6667%; }
}

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-fill { flex: 1 1 auto !important; }
.flex-grow-0 { flex-grow: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-shrink-1 { flex-shrink: 1 !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }
.align-self-start { align-self: flex-start !important; }
.align-self-center { align-self: center !important; }
.align-self-end { align-self: flex-end !important; }
.align-self-stretch { align-self: stretch !important; }
.align-middle { vertical-align: middle !important; }
.align-top { vertical-align: top !important; }
.align-baseline { vertical-align: baseline !important; }
/* corporate-theme's Tailwind-ish aliases still used by AuthLayout */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ----- 6. Spacing & sizing (Bootstrap scale: 0 .25 .5 1 1.5 3rem) ------ */

.m-0 { margin: 0 !important; }
.m-1 { margin: .25rem !important; }
.m-2 { margin: .5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }
.m-auto { margin: auto !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-auto { margin-bottom: auto !important; }
.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: .25rem !important; }
.ms-2 { margin-left: .5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-5 { margin-left: 3rem !important; }
.ms-auto { margin-left: auto !important; }
.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: .25rem !important; }
.me-2 { margin-right: .5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.me-5 { margin-right: 3rem !important; }
.me-auto { margin-right: auto !important; }
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: .25rem !important; margin-right: .25rem !important; }
.mx-2 { margin-left: .5rem !important; margin-right: .5rem !important; }
.mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-4 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.mx-5 { margin-left: 3rem !important; margin-right: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: .25rem !important; margin-bottom: .25rem !important; }
.my-2 { margin-top: .5rem !important; margin-bottom: .5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }
.p-0 { padding: 0 !important; }
.p-1 { padding: .25rem !important; }
.p-2 { padding: .5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: .25rem !important; }
.pt-2 { padding-top: .5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: .25rem !important; }
.pb-2 { padding-bottom: .5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }
.ps-0 { padding-left: 0 !important; }
.ps-1 { padding-left: .25rem !important; }
.ps-2 { padding-left: .5rem !important; }
.ps-3 { padding-left: 1rem !important; }
.ps-4 { padding-left: 1.5rem !important; }
.ps-5 { padding-left: 3rem !important; }
.pe-0 { padding-right: 0 !important; }
.pe-1 { padding-right: .25rem !important; }
.pe-2 { padding-right: .5rem !important; }
.pe-3 { padding-right: 1rem !important; }
.pe-4 { padding-right: 1.5rem !important; }
.pe-5 { padding-right: 3rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: .25rem !important; padding-right: .25rem !important; }
.px-2 { padding-left: .5rem !important; padding-right: .5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: .25rem !important; padding-bottom: .25rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.gap-0 { gap: 0 !important; }
.gap-1 { gap: .25rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }
.mw-100 { max-width: 100% !important; }
.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }
.mh-100 { max-height: 100% !important; }
.vh-100 { height: 100vh !important; }
.min-vh-100 { min-height: 100vh !important; }

/* ----- 7. Typography & colour utilities ------------------------------- */

.h1 { font-size: 1.75rem; font-weight: 600; line-height: 1.25; }
.h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.25; }
.h5 { font-size: 1rem; font-weight: 600; line-height: 1.25; }
.h6 { font-size: .875rem; font-weight: 600; line-height: 1.25; }
.lead { font-size: 1.25rem; font-weight: 300; }
.display-6 { font-size: 2.5rem; font-weight: 300; line-height: 1.2; }
.small { font-size: .875em; }
.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }
.fw-light { font-weight: 300 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.fst-italic { font-style: italic !important; }
.fst-normal { font-style: normal !important; }
.font-monospace { font-family: var(--mono) !important; }
.text-start { text-align: left !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-nowrap { white-space: nowrap !important; }
.text-wrap { white-space: normal !important; }
.text-break { word-wrap: break-word !important; word-break: break-word !important; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-decoration-none { text-decoration: none !important; }
.text-decoration-underline { text-decoration: underline !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.lh-1 { line-height: 1 !important; }
.lh-sm { line-height: 1.25 !important; }
.lh-base { line-height: 1.5 !important; }

.text-muted { color: var(--muted) !important; }
.text-secondary { color: var(--muted) !important; }
.text-body { color: var(--ink-2) !important; }
.text-dark { color: var(--ink) !important; }
.text-black { color: var(--ink) !important; }
.text-white { color: #fff !important; }
.text-primary { color: var(--brand) !important; }
.text-success { color: var(--ok) !important; }
.text-danger { color: var(--bad) !important; }
.text-warning { color: var(--warn) !important; }
.text-info { color: var(--brand-deep) !important; }
.text-reset { color: inherit !important; }

.bg-transparent { background-color: transparent !important; }
.bg-white { background-color: var(--paper) !important; }
.bg-light { background-color: var(--line-2) !important; }
.bg-body { background-color: var(--paper) !important; }
.bg-dark { background-color: var(--ink) !important; }
.bg-secondary { background-color: var(--muted) !important; }
.bg-primary { background-color: var(--brand) !important; }
.bg-success { background-color: var(--ok) !important; }
.bg-danger { background-color: var(--bad) !important; }
.bg-warning { background-color: var(--warn) !important; }
.bg-info { background-color: var(--brand-deep) !important; }
.bg-primary-subtle { background-color: var(--brand-soft) !important; }
.bg-success-subtle { background-color: var(--ok-soft) !important; }
.bg-danger-subtle { background-color: var(--bad-soft) !important; }
.bg-warning-subtle { background-color: var(--warn-soft) !important; }
.bg-secondary-subtle { background-color: var(--line-2) !important; }
/* Badge / chip colour pairs (Bootstrap's `badge bg-warning text-dark`). */
.badge.bg-warning { color: #fff; }
.badge.bg-light { color: var(--ink); }

/* ----- 8. Components -------------------------------------------------- */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--paper);
    background-clip: border-box;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.card > hr { margin-right: 0; margin-left: 0; }
.card-body { flex: 1 1 auto; padding: 1rem; }
.card-title { margin-bottom: .5rem; font-weight: 600; color: var(--ink); }
.card-subtitle { margin-top: -.25rem; margin-bottom: .5rem; color: var(--muted); }
.card-text:last-child { margin-bottom: 0; }
.card-header {
    padding: .75rem 1rem;
    margin-bottom: 0;
    background-color: var(--line-2);
    border-bottom: 1px solid var(--line);
    border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
}
.card-footer {
    padding: .75rem 1rem;
    background-color: var(--line-2);
    border-top: 1px solid var(--line);
    border-radius: 0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px);
}
.card-description { color: var(--muted); font-size: .875rem; margin-top: .25rem; }

.alert {
    position: relative;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    font-size: var(--t-sm);
    color: var(--ink-2);
    background-color: var(--line-2);
    border: 1px solid transparent;
    border-radius: var(--r-md);
}
.alert-heading { color: inherit; }
.alert-link { font-weight: 600; color: inherit; }
.alert-primary { color: var(--brand-deep); background-color: var(--brand-soft); border-color: var(--brand-bright); }
.alert-secondary, .alert-light { color: var(--ink-2); background-color: var(--line-2); border-color: var(--line); }
.alert-success { color: var(--ok); background-color: var(--ok-soft); border-color: rgba(5, 150, 105, .25); }
.alert-danger { color: var(--bad); background-color: var(--bad-soft); border-color: rgba(220, 38, 38, .25); }
.alert-warning { color: var(--warn); background-color: var(--warn-soft); border-color: rgba(180, 83, 9, .25); }
.alert-info { color: var(--brand-deep); background-color: var(--brand-soft); border-color: var(--brand-bright); }
.alert-dismissible { padding-right: 3rem; }
.alert-dismissible .btn-close { position: absolute; top: 0; right: 0; z-index: 2; padding: 1.25rem 1rem; }

.badge {
    display: inline-block;
    padding: .35em .65em;
    font-size: .75em;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--r-sm);
}
.badge:empty { display: none; }
.btn .badge { position: relative; top: -1px; }

.fade { transition: opacity .15s linear; }
.fade:not(.show) { opacity: 0; }
.collapse:not(.show) { display: none; }
.collapsing { height: 0; overflow: hidden; transition: height .35s ease; }

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}
.modal.show, .modal.d-block { display: block; }
.modal-dialog { position: relative; width: auto; margin: .5rem; pointer-events: none; }
.modal.fade .modal-dialog { transition: transform .3s ease-out; transform: translate(0, -50px); }
.modal.show .modal-dialog { transform: none; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 1rem); }
.modal-dialog-scrollable { height: calc(100% - 1rem); }
.modal-dialog-scrollable .modal-content { max-height: 100%; overflow: hidden; }
.modal-dialog-scrollable .modal-body { overflow-y: auto; }
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    color: var(--ink-2);
    pointer-events: auto;
    background-color: var(--paper);
    background-clip: padding-box;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-3);
    outline: 0;
}
.modal-backdrop { position: fixed; top: 0; left: 0; z-index: 1050; width: 100vw; height: 100vh; background-color: var(--ink-950); }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { opacity: .5; }
.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
}
.modal-header .btn-close { padding: .5rem; margin: -.5rem -.5rem -.5rem auto; }
.modal-title { margin: 0; font-size: var(--t-md); font-weight: 600; line-height: 1.4; color: var(--ink); }
.modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }
.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    padding: .75rem;
    border-top: 1px solid var(--line);
    border-radius: 0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px);
}
@media (min-width: 576px) {
    .modal-dialog { max-width: 500px; margin: 1.75rem auto; }
    .modal-dialog-centered { min-height: calc(100% - 3.5rem); }
    .modal-dialog-scrollable { height: calc(100% - 3.5rem); }
    .modal-sm { max-width: 300px; }
}
@media (min-width: 992px) { .modal-lg, .modal-xl { max-width: 800px; } }
@media (min-width: 1200px) { .modal-xl { max-width: 1140px; } }

.table {
    width: 100%;
    margin-bottom: 1rem;
    font-size: var(--t-sm);
    color: var(--ink-2);
    vertical-align: top;
    border-collapse: collapse;
}
.table > :not(caption) > * > * { padding: .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.table > thead > tr > th {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    vertical-align: bottom;
}
.table > tbody > tr:last-child > * { border-bottom: 0; }
.table-sm > :not(caption) > * > * { padding: .25rem .5rem; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: rgba(var(--ink-rgb), .02); }
.table-hover > tbody > tr:hover > * { background-color: rgba(var(--ink-rgb), .035); }
.table-bordered > :not(caption) > * > * { border: 1px solid var(--line); }
.table-borderless > :not(caption) > * > * { border-bottom-width: 0; }
.table-warning > * { background-color: var(--warn-soft); }
.table-danger > * { background-color: var(--bad-soft); }
.table-success > * { background-color: var(--ok-soft); }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table caption { padding: .5rem; color: var(--muted); }

.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-link {
    display: block;
    padding: .5rem 1rem;
    color: var(--brand);
    text-decoration: none;
    background: none;
    border: 0;
    transition: color var(--motion-quick), background-color var(--motion-quick);
}
.nav-link:hover, .nav-link:focus { color: var(--brand-deep); text-decoration: none; }
.nav-link.disabled { color: var(--ink-400); pointer-events: none; }
.nav-pills .nav-link { border-radius: var(--r-md); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { color: #fff; background-color: var(--brand); }
.nav-tabs { border-bottom: 1px solid var(--line); }
.nav-tabs .nav-link { margin-bottom: -1px; border: 1px solid transparent; border-top-left-radius: var(--r-md); border-top-right-radius: var(--r-md); }
.nav-tabs .nav-link.active { color: var(--ink); background-color: var(--paper); border-color: var(--line) var(--line) var(--paper); }
.nav-fill .nav-item, .nav-fill > .nav-link { flex: 1 1 auto; text-align: center; }
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }

.list-group { display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0; border-radius: var(--r-md); }
.list-group-item {
    position: relative;
    display: block;
    padding: .5rem 1rem;
    color: var(--ink-2);
    text-decoration: none;
    background-color: var(--paper);
    border: 1px solid var(--line);
}
.list-group-item:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.list-group-item:last-child { border-bottom-right-radius: inherit; border-bottom-left-radius: inherit; }
.list-group-item + .list-group-item { border-top-width: 0; }
.list-group-item.active { z-index: 2; color: #fff; background-color: var(--brand); border-color: var(--brand); }
.list-group-item-action { width: 100%; text-align: inherit; cursor: pointer; }
.list-group-item-action:hover { background-color: var(--line-2); }
.list-group-flush { border-radius: 0; }
.list-group-flush > .list-group-item { border-width: 0 0 1px; }
.list-group-flush > .list-group-item:last-child { border-bottom-width: 0; }

.progress {
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: .75rem;
    background-color: var(--line-2);
    border-radius: var(--r-pill);
}
.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: var(--brand);
    transition: width .6s ease;
}
.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.dropdown, .dropup, .dropend, .dropstart { position: relative; }
.dropdown-toggle { white-space: nowrap; }
.dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}
.dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: .5rem 0;
    margin: 0;
    font-size: var(--t-sm);
    color: var(--ink-2);
    text-align: left;
    list-style: none;
    background-color: var(--paper);
    background-clip: padding-box;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2);
}
.dropdown-menu.show { display: block; }
.dropdown-menu-end { right: 0; left: auto; }
.dropdown-divider { height: 0; margin: .5rem 0; overflow: hidden; border-top: 1px solid var(--line); }
.dropdown-item {
    display: block;
    width: 100%;
    padding: .375rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--ink-2);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}
.dropdown-item:hover, .dropdown-item:focus { color: var(--ink); background-color: var(--line-2); text-decoration: none; }
.dropdown-item.active, .dropdown-item:active { color: #fff; background-color: var(--brand); }
.dropdown-item.disabled, .dropdown-item:disabled { color: var(--ink-400); pointer-events: none; }
.dropdown-header { display: block; padding: .5rem 1rem; margin-bottom: 0; font-size: var(--t-xs); color: var(--muted); white-space: nowrap; }

/* ----- 9. Misc utilities ---------------------------------------------- */

.visually-hidden, .visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }
.top-0 { top: 0 !important; }
.end-0 { right: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll { overflow: scroll !important; }
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: var(--shadow-1) !important; }
.shadow { box-shadow: var(--shadow-2) !important; }
.shadow-lg { box-shadow: var(--shadow-3) !important; }
.rounded { border-radius: var(--r-md) !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-1 { border-radius: var(--r-sm) !important; }
.rounded-2 { border-radius: var(--r-md) !important; }
.rounded-3 { border-radius: var(--r-lg) !important; }
.rounded-4 { border-radius: var(--r-xl) !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: var(--r-pill) !important; }
.border { border: 1px solid var(--line) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--line) !important; }
.border-bottom { border-bottom: 1px solid var(--line) !important; }
.border-start { border-left: 1px solid var(--line) !important; }
.border-end { border-right: 1px solid var(--line) !important; }
.border-top-0 { border-top: 0 !important; }
.border-bottom-0 { border-bottom: 0 !important; }
.border-primary { border-color: var(--brand) !important; }
.border-primary-subtle { border-color: var(--brand-bright) !important; }
.border-secondary { border-color: var(--line-strong) !important; }
.border-success { border-color: var(--ok) !important; }
.border-danger { border-color: var(--bad) !important; }
.border-warning { border-color: var(--warn) !important; }
.border-info { border-color: var(--brand-deep) !important; }
.border-light { border-color: var(--line-2) !important; }
.border-dark { border-color: var(--ink) !important; }
.border-white { border-color: var(--paper) !important; }
.opacity-0 { opacity: 0 !important; }
.opacity-25 { opacity: .25 !important; }
.opacity-50 { opacity: .5 !important; }
.opacity-75 { opacity: .75 !important; }
.opacity-100 { opacity: 1 !important; }
.user-select-none { user-select: none !important; }
.pe-none { pointer-events: none !important; }
.pe-auto { pointer-events: auto !important; }
.float-start { float: left !important; }
.float-end { float: right !important; }
.clearfix::after { display: block; clear: both; content: ""; }
.img-fluid { max-width: 100%; height: auto; }
.img-thumbnail { padding: .25rem; background-color: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); max-width: 100%; height: auto; }
.text-bg-primary { color: #fff !important; background-color: var(--brand) !important; }
.text-bg-success { color: #fff !important; background-color: var(--ok) !important; }
.text-bg-danger { color: #fff !important; background-color: var(--bad) !important; }
.text-bg-warning { color: #fff !important; background-color: var(--warn) !important; }
.text-bg-light { color: var(--ink) !important; background-color: var(--line-2) !important; }

/* ----- 10. Ports from corporate-theme.css ----------------------------- */

/* Generic centred empty state — pages without their own .empty-state rule. */
.empty-state { text-align: center; padding: 3rem 2rem; }
.empty-state-container { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 3rem 2rem; }
.empty-state-illustration { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }

/* Presence dot (ModuleCard, connection health). */
.status-indicator { display: flex; align-items: center; gap: .5rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--ink-400); }
.status-dot.online { background: var(--ok); box-shadow: 0 0 8px rgba(5, 150, 105, .5); }
.status-dot.offline { background: var(--muted); }
.status-dot.error { background: var(--bad); box-shadow: 0 0 8px rgba(220, 38, 38, .5); }

/* Three pulsing dots used by the data-source "connecting" state. */
.connection-dots { display: flex; gap: .5rem; }
.connection-dots .dot { width: 8px; height: 8px; background: var(--muted); border-radius: 50%; animation: plx-compat-pulse 1.5s ease-in-out infinite; }
.connection-dots .dot:nth-child(2) { animation-delay: .2s; }
.connection-dots .dot:nth-child(3) { animation-delay: .4s; }
@keyframes plx-compat-pulse {
    0%, 100% { opacity: .4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}
