h1:focus {
    outline: none;
}

/* Grids carry .dataTable, whose own hover rule overrides --bs-table-hover-bg, so restate it with the same selector. */
.table.table-hover {
    --bs-table-hover-bg: rgba(var(--bs-gray-100-rgb), 0.5);
}

table.dataTable.table-hover > tbody > tr:hover > * {
    box-shadow: inset 0 0 0 9999px var(--bs-table-hover-bg);
}

/* Whole-row click: the primary cell's .stretched-link covers the row; every other link/button in the row stays above it. */
tr.row-clickable {
    position: relative;
}

tr.row-clickable a:not(.stretched-link),
tr.row-clickable button,
tr.row-clickable input {
    position: relative;
    z-index: 2;
}

/* Roadmap stage tiles jump to their stage card (/features/roadmap#roadmap-stage-…). From lg up the app header is fixed
   (74px), so leave room for it, or it covers the card title after the jump. Below lg the header scrolls away. */
[id^="roadmap-stage-"] {
    scroll-margin-top: 1rem;
}

@media (min-width: 992px) {
    [id^="roadmap-stage-"] {
        scroll-margin-top: calc(74px + 1rem);
    }
}
.validation-errors {
    padding-right: 2.5rem !important;
    padding-left: 2.5rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    background-color: var(--bs-danger-light) !important; /* theme: danger tint */
    border-radius: 0.475rem;
}

.validation-message {
    color: var(--bs-danger); /* theme: danger text, 6.0:1 on white */
}

.select2.is-invalid {
    border-color: var(--bs-danger) !important;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, var(--bs-danger); /* theme: danger */
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

th .col-title {
    text-transform: uppercase !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: var(--bs-text-muted) !important;
}

/* Hide empty QuickGrid rows (placeholder rows when data count < ItemsPerPage) */
.quickgrid tbody tr:has(td:empty:first-child) {
    display: none;
}


.table td {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

/* A grid wider than its card (a phone) scrolls inside the card, never the page (ui-patterns.md, §3 and §11;
   AB#332). The row "…" menu is not clipped: KTMenu positions its dropdown with a fixed Popper strategy. */
.card-body:has(> table.quickgrid) {
    overflow-x: auto;
}

.quickgrid.table td {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}

/* A column of user-typed text (a name, a file name) that ends in "…" instead of widening the table (ui-patterns.md,
   §12, R1; AB#338). An auto-layout table grows a column to fit one-line text, so `min-w-0` alone does nothing in a
   cell: `max-width: 0` stops the text from sizing the column, which then takes its share of the table from `width`
   (`--ebx-col-share` on the column changes it). Below md a fixed 12rem keeps the name readable (a cell ignores
   `min-width`, but its `width` is a floor), and the grid scrolls inside its card (AB#332). Put `col-truncate` in the
   column's `Class` and render the text with `TruncatedText`. */
.quickgrid.table .col-truncate {
    width: var(--ebx-col-share, 40%);
}

.quickgrid.table td.col-truncate {
    max-width: 0;
}

@media (max-width: 767.98px) {
    .quickgrid.table .col-truncate,
    .quickgrid.table td.col-truncate {
        width: 12rem;
        max-width: 12rem;
    }
}

/* A status cell with a badge and a line of text under it (the Invitations grid, AB#683): the cell is bounded so the
   text cannot set the row height or push the row menu off a phone; the text is clamped by `line-clamp-2`. */
.quickgrid.table td.col-status {
    max-width: 14rem;
}

@media (max-width: 767.98px) {
    .quickgrid.table td.col-status {
        max-width: 8rem;
    }

    .quickgrid.table .col-truncate.col-person,
    .quickgrid.table td.col-truncate.col-person {
        width: 9rem;
        max-width: 9rem;
    }
}

/* A grid whose figure column must stay in view on a phone (the owner distributions list: "To owners", Phase 4 UX Review B2):
   below md the name column is narrower than the usual 12rem, so the other one-line cells and the amount fit a 390 px screen. */
@media (max-width: 767.98px) {
    .quickgrid.table .col-truncate.col-narrow,
    .quickgrid.table td.col-truncate.col-narrow {
        width: 8rem;
        max-width: 8rem;
    }
}

/* A small plain table with one name column and figures (a distribution's owner lines, Phase 4 UX Review B1): the layout is
   fixed, the figure columns have their widths on the header cells, and the name takes what they leave and ends in "…"
   (TruncatedText), so the amount never scrolls out of view (ui-patterns.md, §12, R1). */
.table.table-fixed {
    table-layout: fixed;
    width: 100%;
}

/* A button a phone user taps (Phase 4 UX Review N6): at least 40 px high below md (the accessibility floor), the label centred. */
@media (max-width: 767.98px) {
    .btn.ebx-tap-phone {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* an icon-only button (the page "…", Phase 5 UX Review N3) is square: 40 px wide as well */
    .btn.btn-icon.ebx-tap-phone {
        min-width: 40px;
    }
}

/* Money that lines up digit for digit in a column of figures (Phase 4 UX Review N2): Inter's tabular digits. */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* At most two lines, then "…" (the full text goes in `title`). */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* The other cells of such a grid keep one line too, so a phone scrolls the grid inside its card (AB#332) instead of
   wrapping a date or a type onto two lines and making the row taller. */
.quickgrid.table:has(td.col-truncate) td:not(.col-truncate) {
    white-space: nowrap;
}

/* The page toolbar (Toolbar.razor): the title block takes the room the actions leave and ends in "…" (R1, AB#338);
   below 12rem the actions wrap to their own row instead of cutting a short breadcrumb (Phase 3b UX Review N3). */
.app-toolbar .page-title {
    flex: 1 1 12rem;
}

/* The breadcrumb trail (Breadcrumbs.razor, AB#947): a visible keyboard focus ring in the brand colour on its links (UX N4), and
   a phone back link whose own padding makes a 45 px tap area, cancelled by the same negative margin so the toolbar keeps its
   height (UX N1, B2). In px: the root font size is 12 px, so rem would not give 44 px. */
[data-testid="breadcrumb-trail"] a:focus-visible,
[data-testid="breadcrumb-back"] a:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

[data-testid="breadcrumb-back"] .ebx-crumb-back a {
    padding-block: 14px;
    margin-block: -14px;
}

.paginator {
    border-top: 0px !important;
}

/* Soft focus ring in the brand colour (design-system.md). The bundle's own .form-control:focus box-shadow is invalid
   (Metronic's $input-box-shadow: false), so the ring lives here. */
.form-control:focus,
.form-select:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: var(--bs-primary);
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .18);
}

/*placeholder form avatar*/
.image-input-placeholder {
    background-image: url('/metronic8/demo1/assets/media/svg/files/blank-image.svg');
}

[data-bs-theme="dark"] .image-input-placeholder {
    background-image: url('/metronic8/demo1/assets/media/svg/files/blank-image-dark.svg');
}

/* Hides duplicate backdrops left by data-bs-toggle modals. The shared Modal renders its own backdrop
   (modal-backdrop-own), whose position among its siblings varies, so it is exempt (AB#1009). */
.modal-backdrop:nth-child(2n-1):not(.modal-backdrop-own) {
    opacity: 0;
    display: none;
}

.table:not(.table-bordered) tbody tr:last-child, .table:not(.table-bordered) tfoot tr:last-child {
    border-bottom: 0 !important;
}

/* Page Navigation Loading Overlay */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.15s ease-in;
}

.page-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bs-body-bg);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.page-loading-text {
    color: var(--bs-body-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.page-loading-overlay .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.3em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Show edit button only on hover */
.show-edit-button-on-hover .btn-icon {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.show-edit-button-on-hover:hover .btn-icon {
    opacity: 1;
}

/* Neutral badge (Draft / inactive): Metronic colours badge-light-* text with the theme colour, and secondary is white
   (the quiet button), so set the neutral text here: gray-700 on --bs-secondary-light, 6.9:1. */
.badge-light-secondary {
    color: var(--bs-gray-700) !important;
}


.bg-accent {
    background-color: var(--bs-gray-100) !important;
    border-color: var(--bs-gray-100) !important;
}


/* ==========================================================================================================
   Ebexes theme: the few rules Metronic has no variable for. Colours come from the theme (style.bundle.css,
   built from the three _variables.custom.scss / .override.scss files under _keenthemes/src/sass); how to
   rebuild and what belongs here: docs/internal/architecture/design-system.md#how-it-is-applied.
   Colours only: nothing here changes size or position.
   ========================================================================================================== */

/* On-dark palette (design-system.md, "On dark surfaces"), declared once. Metronic has no variables for these
   surfaces; a re-tune or a dark palette changes only this block. */
:root {
    --ebx-dark-bg: #111418;             /* charcoal public sections (landing, pricing, contact) */
    --ebx-dark-border: #2C3036;         /* borders and separators on charcoal */
    --ebx-on-dark-muted: #8A919C;       /* muted text on charcoal, 5.8:1 */
    --ebx-on-dark-link: #A8AFBA;        /* links on charcoal, 8.4:1 */
    --ebx-on-dark-strong: #FFFFFF;      /* link hover, outline-button text, focus outline on dark surfaces */
    --ebx-on-dark-outline: rgba(255, 255, 255, .45);
    --ebx-on-dark-outline-hover: rgba(255, 255, 255, .7);
    --ebx-on-dark-hover-bg: rgba(255, 255, 255, .08);
    --ebx-accent: #34D399;              /* mint: main call to action and active marker on dark; charcoal text 9.6:1 */
    --ebx-accent-rgb: 52, 211, 153;
    --ebx-accent-hover: #6EE7B7;
}

/* Secondary (quiet) button: white with a gray-300 border and charcoal text. Metronic draws buttons with border:0
   (and 1px extra padding), so the border is an inset shadow; Metronic's desktop rule paints it gray-200, so the
   background is restated here. */
.btn.btn-secondary {
    background-color: var(--bs-secondary);
    box-shadow: inset 0 0 0 1px var(--bs-gray-300) !important;
}

.btn.btn-secondary i,
.btn.btn-secondary .svg-icon {
    color: var(--bs-gray-700);
}

.btn-check:checked + .btn.btn-secondary,
.btn-check:active + .btn.btn-secondary,
.btn.btn-secondary:focus:not(.btn-active),
.btn.btn-secondary:hover:not(.btn-active),
.btn.btn-secondary:active:not(.btn-active),
.btn.btn-secondary.active,
.btn.btn-secondary.show,
.show > .btn.btn-secondary {
    background-color: var(--bs-secondary-active) !important;
    box-shadow: inset 0 0 0 1px var(--bs-gray-400) !important;
}

/* Light secondary button: neutral text on the neutral tint (badge-light-secondary's pair). */
.btn.btn-light-secondary,
.btn.btn-light-secondary i,
.btn.btn-light-secondary .svg-icon {
    color: var(--bs-gray-700);
}

/* Its hover/focus/open state: Metronic fills it with --bs-secondary, which is white in this theme, so the button
   vanished on a white card. Use the stronger neutral instead (gray-800 text on gray-300). Buttons that bring
   their own state colours (btn-active-*, e.g. the row action menu) keep them. */
.btn-check:checked + .btn.btn-light-secondary:not([class*="btn-active-"]),
.btn-check:active + .btn.btn-light-secondary:not([class*="btn-active-"]),
.btn.btn-light-secondary:not([class*="btn-active-"]):focus:not(.btn-active),
.btn.btn-light-secondary:not([class*="btn-active-"]):hover:not(.btn-active),
.btn.btn-light-secondary:not([class*="btn-active-"]):active:not(.btn-active),
.btn.btn-light-secondary.active:not([class*="btn-active-"]),
.btn.btn-light-secondary.show:not([class*="btn-active-"]),
.show > .btn.btn-light-secondary:not([class*="btn-active-"]) {
    color: var(--bs-gray-800);
    border-color: var(--bs-gray-300);
    background-color: var(--bs-gray-300) !important;
}

/* ...and those that do: Metronic's later btn-light-secondary state rule (also !important) paints them white
   (--bs-secondary), so restate the light-primary state for the row action menu (btn-active-light-primary). */
.btn.btn-light-secondary.btn-active-light-primary:hover:not(.btn-active),
.btn.btn-light-secondary.btn-active-light-primary:focus:not(.btn-active),
.btn.btn-light-secondary.btn-active-light-primary:active:not(.btn-active),
.btn.btn-light-secondary.btn-active-light-primary.active,
.btn.btn-light-secondary.btn-active-light-primary.show,
.show > .btn.btn-light-secondary.btn-active-light-primary {
    color: var(--bs-primary);
    background-color: var(--bs-primary-light) !important;
}

/* Solid secondary badge: white needs an outline to show on a white card. */
.badge-secondary {
    box-shadow: inset 0 0 0 1px var(--bs-gray-300);
}

/* Charcoal sidebar: mint marker on the active item (design-system.md, "On dark surfaces"). */
[data-kt-app-layout="dark-sidebar"] .app-sidebar .menu .menu-item .menu-link.active {
    box-shadow: inset 3px 0 0 0 var(--ebx-accent);
}

/* Public pages (landing, pricing, contact): Metronic's landing colour is a fixed navy in _landing.scss (not a
   variable), so the charcoal is set here. */
.landing-dark-bg {
    background-color: var(--ebx-dark-bg);
}

.landing-dark-color {
    color: var(--ebx-dark-bg);
}

.landing-dark-border {
    border-color: var(--ebx-dark-border);
}

.landing-dark-separator {
    border-top-color: var(--ebx-dark-border);
}

/* Muted text on the charcoal public sections: the gray scale is tuned for white surfaces (gray-500/600/700 are
   3.9 / 3.1 / 2.4:1 on charcoal), so on charcoal they use the sidebar label grey (5.8:1). */
.landing-dark-bg .text-gray-500,
.landing-dark-bg .text-gray-600,
.landing-dark-bg .text-gray-700 {
    color: var(--ebx-on-dark-muted) !important;
}

/* Landing header menu over the charcoal hero (desktop, before the header turns sticky and white): Metronic's
   default menu grey is 3.1:1 on charcoal, so the links are light grey (8.4:1) and white on hover. On mobile the
   menu is a white drawer, and the sticky header is white, so neither is affected. */
@media (min-width: 992px) {
    body:not([data-kt-sticky-landing-header=on]) .landing-header .menu .menu-link:not(.active) {
        color: var(--ebx-on-dark-link);
    }

    body:not([data-kt-sticky-landing-header=on]) .landing-header .menu .menu-link:not(.active):hover {
        color: var(--ebx-on-dark-strong);
    }
}

/* Footer bottom-bar menu on charcoal (About / Support / Pricing): same light grey as the header links. The
   footer menu is a ul.menu-gray-600; the header menu is a div, so this never reaches the sticky white header. */
.landing-dark-bg ul.menu.menu-gray-600 .menu-item .menu-link {
    color: var(--ebx-on-dark-link);
}

.landing-dark-bg ul.menu.menu-gray-600 .menu-item .menu-link:hover {
    color: var(--ebx-on-dark-strong);
}

/* Links on charcoal that use text-hover-primary (footer columns, the contact header's "Pricing"): the brand green
   is 2.4:1 on charcoal, and their opacity-50/75 would dim any hover colour, so the hover is full white. */
.landing-dark-bg .text-hover-primary:hover {
    color: var(--ebx-on-dark-strong) !important;
    opacity: 1 !important;
}

/* Mobile menu toggle on the charcoal hero (before the header turns sticky and white). */
body:not([data-kt-sticky-landing-header=on]) #kt_landing_menu_toggle i {
    color: var(--ebx-on-dark-link);
}

/* Main call to action on a dark surface: mint with charcoal text (9.6:1). */
.btn.btn-accent {
    color: var(--ebx-dark-bg);
    background-color: var(--ebx-accent);
}

.btn.btn-accent i,
.btn.btn-accent .svg-icon {
    color: var(--ebx-dark-bg);
}

.btn.btn-accent:hover:not(.btn-active),
.btn.btn-accent:focus:not(.btn-active),
.btn.btn-accent:active:not(.btn-active) {
    color: var(--ebx-dark-bg);
    background-color: var(--ebx-accent-hover);
}

/* Secondary call to action on a dark surface (charcoal, or the primary-green closing banner): white outline. */
.btn.btn-outline-on-dark {
    color: var(--ebx-on-dark-strong);
    background-color: transparent;
    box-shadow: inset 0 0 0 1px var(--ebx-on-dark-outline) !important;
}

.btn.btn-outline-on-dark i,
.btn.btn-outline-on-dark .svg-icon {
    color: var(--ebx-on-dark-strong);
}

.btn.btn-outline-on-dark:hover:not(.btn-active),
.btn.btn-outline-on-dark:focus:not(.btn-active),
.btn.btn-outline-on-dark:active:not(.btn-active) {
    color: var(--ebx-on-dark-strong);
    background-color: var(--ebx-on-dark-hover-bg);
    box-shadow: inset 0 0 0 1px var(--ebx-on-dark-outline-hover) !important;
}

/* Keyboard focus on buttons (Metronic sets outline:none on .btn). Last, so it wins over the inset borders above.
   (The inset borders above need !important to beat Metronic's .btn:not(.btn-shadow):not(.shadow)... { box-shadow: none }.) */
.btn:focus-visible {
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .3) !important;
}

/* The secondary button's own hover/focus rule above is more specific, so its keyboard focus restates the ring
   together with its border. */
.btn.btn-secondary:focus-visible:not(.btn-active) {
    box-shadow: inset 0 0 0 1px var(--bs-gray-400), 0 0 0 .2rem rgba(var(--bs-primary-rgb), .3) !important;
}

/* Keyboard focus on dark surfaces: the brand ring is invisible on charcoal and on the primary banner, so a white
   outline instead (an outline never changes layout). Covers the on-dark buttons wherever they are, every link and
   button in the charcoal sections outside the landing header, and the landing header's buttons and logo while the
   header is still over the charcoal hero (the sticky header is white, so it keeps the brand ring). */
.btn.btn-accent:focus-visible,
.btn.btn-outline-on-dark:focus-visible,
.landing-dark-bg a:focus-visible:not(.landing-header *),
.landing-dark-bg .btn:focus-visible:not(.landing-header *),
body:not([data-kt-sticky-landing-header=on]) .landing-header .btn:focus-visible,
body:not([data-kt-sticky-landing-header=on]) .landing-header a:not(.menu-link):focus-visible {
    outline: 2px solid var(--ebx-on-dark-strong) !important;
    outline-offset: 2px;
}

/* The landing header menu links: only on desktop (on mobile they sit in a white drawer). */
@media (min-width: 992px) {
    body:not([data-kt-sticky-landing-header=on]) .landing-header .menu .menu-link:focus-visible {
        outline: 2px solid var(--ebx-on-dark-strong) !important;
        outline-offset: 2px;
    }
}

/* The white outline replaces the brand ring there (the outline-on-dark button keeps its border). */
.btn.btn-accent:focus-visible,
.landing-dark-bg .btn:not(.btn-outline-on-dark):focus-visible:not(.landing-header *),
body:not([data-kt-sticky-landing-header=on]) .landing-header .btn:focus-visible {
    box-shadow: none !important;
}

/* Mobile menu toggle once the landing header is sticky (white): an icon button with no ring of its own. */
body[data-kt-sticky-landing-header=on] #kt_landing_menu_toggle:focus-visible {
    outline: 2px solid var(--bs-primary) !important;
    outline-offset: 2px;
}

.btn.btn-outline-on-dark:focus-visible {
    box-shadow: inset 0 0 0 1px var(--ebx-on-dark-outline-hover) !important;
}

/* minimized sidebar: only the small mark stays; the "Powered by Ebexes" text returns when expanded, also on hover (AB#551, D2, F4) */
[data-kt-app-sidebar-minimize="on"] .app-sidebar:not(:hover) .ebx-powered-text {
    display: none;
}

/* FsLightbox has no switch for it: a reader who asks for less motion gets the photo viewer without transitions (R16, Phase 2b) */
@media (prefers-reduced-motion: reduce) {
    .fslightbox-container, .fslightbox-container * {
        animation: none !important;
        transition: none !important;
    }
}

/* Tabs on a phone stay on one line and scroll sideways inside their own row (never the page); desktop wraps as before. */
@media (max-width: 767.98px) {
    .nav-line-tabs.tabs-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .nav-line-tabs.tabs-scroll .nav-item {
        flex-shrink: 0;
    }

    .nav-line-tabs.tabs-scroll .nav-link {
        white-space: nowrap;
    }
}

/* Narrow phones (390): a tighter gap and body-size titles so four short tab titles fit without scrolling
   (AB#667, D2: about 311px of titles in a 294px row at fs-5). */
@media (max-width: 419.98px) {
    .nav-line-tabs.tabs-scroll {
        font-size: 1rem !important;
    }

    .nav-line-tabs.tabs-scroll .nav-link {
        margin-right: 0.75rem !important;
    }
}

/* Print (AB#736, US-4.AC-6): the page content is the printout. The app chrome (sidebar, header, breadcrumb toolbar,
   footer) is hidden and the fixed-position offsets Metronic puts on the wrapper are reset, so a printed page never
   repeats a sidebar or header on every sheet. Anything on a page that must not print takes `d-print-none`. */
@media print {
    #kt_app_sidebar,
    #kt_app_header,
    #kt_app_toolbar,
    #kt_app_footer,
    .app-sidebar,
    .app-header,
    .app-toolbar,
    .app-footer,
    .drawer,
    .scrolltop {
        display: none !important;
    }

    body,
    .app-wrapper,
    .app-main,
    .app-content,
    .app-container {
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        background: none !important;
    }

    .app-wrapper,
    .app-main {
        position: static !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* Card with Collapsible (ebexes-ui, "Collapsible settings cards", AB#390): the title and chevron are one button, at least 44 px
   tall, with a visible focus ring; the chevron turns briefly unless the user asks for reduced motion. */
.ebx-card-toggle {
    min-height: 44px;
    min-width: 0;
}

.btn.btn-flush.ebx-card-toggle:focus-visible {
    outline: 2px solid var(--bs-primary) !important;
    outline-offset: 2px;
    border-radius: 0.475rem;
}

.ebx-card-chevron {
    transform: rotate(0deg);
    transition: transform 0.15s ease;
}

.ebx-card-chevron-open {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .ebx-card-chevron {
        transition: none;
    }
}

/* A disabled item in a "…" menu (for example "Delete unit" on a property's last unit): greyed, no hover, no pointer.
   Metronic only keeps :hover off a .menu-link.disabled and styles nothing else, so the look is set here. It keeps its title tooltip
   (pointer-events are not turned off). */
.menu .menu-link.disabled {
    opacity: .5;
    cursor: not-allowed;
}
