/*
 * AJAX OES — Shared Private Shell
 *
 * Shared top bar, notification menu, and authenticated standalone-page
 * styling used by both Tenant Admin and Global Admin shells.
 */

.private-topbar .navbar {
    min-height: 64px;
}

.private-topbar .private-navbar {
    background: #111827;
    border-color: #d4af37 !important;
}

/*
 * Tenant Admin's top bar is the one customizable surface here -- it
 * must override the hardcoded fallback above with the tenant's own
 * Top Bar Start/End/Text colours. Global Admin and the pre-shell
 * private-auth-body state intentionally keep the fixed AJAX look
 * (see their own overrides elsewhere in this file / site.css) and are
 * NOT touched by this rule.
 */
.tenant-app-body .private-topbar .private-navbar {
    background: linear-gradient(
        135deg,
        var(--tenant-topbar-start-color, #111827),
        var(--tenant-topbar-end-color, #111827)) !important;
    border-color: var(--tenant-topbar-end-color, #d4af37) !important;
}

/*
 * The logo + wordmark are fixed images now (not text), so they can no
 * longer pick up Top Bar Text via `color`. Secondary still needs the
 * visible, low-risk home it was given here -- a hover/focus glow on the
 * brand images is the image-safe equivalent of the old text recolour.
 */
.tenant-app-body .private-ajax-wordmark:hover .tenant-topbar-logo,
.tenant-app-body .private-ajax-wordmark:hover .ajax-brand-crest,
.tenant-app-body .private-ajax-wordmark:hover .private-ajax-wordmark-image,
.tenant-app-body .private-ajax-wordmark:focus .tenant-topbar-logo,
.tenant-app-body .private-ajax-wordmark:focus .ajax-brand-crest,
.tenant-app-body .private-ajax-wordmark:focus .private-ajax-wordmark-image {
    filter: drop-shadow(0 0 5px var(--tenant-secondary-color, #f0cf63));
}

.tenant-app-body .topbar-page-title,
.tenant-app-body .notification-button {
    color: var(--tenant-topbar-text-color, #ffffff);
}

.private-topbar .notification-button {
    color: #ffffff;
}

.private-topbar .btn-outline-secondary,
.ajax-topbar-signin {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.75);
}

.private-topbar .btn-outline-secondary:hover,
.private-topbar .btn-outline-secondary:focus,
.ajax-topbar-signin:hover,
.ajax-topbar-signin:focus {
    color: #111827;
    background: #d4af37;
    border-color: #d4af37;
}

.private-topbar .navbar-toggler {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.private-menu-icon {
    display: inline-block;
    font-size: 1.45rem;
    line-height: 1;
}

.private-ajax-wordmark {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 42px;
    padding: 0;
    margin-right: 1.5rem;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.045em;
    text-decoration: none;
    color: #d4af37;
}

.private-ajax-wordmark:hover,
.private-ajax-wordmark:focus {
    color: #f0cf63;
    text-decoration: none;
}

/*
 * Fixed gold/silver "AJAX OES" wordmark image -- replaces the old text
 * span. Since this is a raster image now, not text, the tenant Top Bar
 * Text color and the .private-ajax-wordmark / .tenant-app-body
 * .private-ajax-wordmark color rules above no longer have any visual
 * effect on it (color only applies to text/currentColor, not a PNG) --
 * this wordmark is a fixed AJAX brand element on every shell now, same
 * as the crest logo next to it.
 */
.private-ajax-wordmark-image {
    display: block;
    width: auto;
    height: 34px;
    max-width: 220px;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .private-ajax-wordmark-image {
        height: 26px;
        max-width: 150px;
    }
}

.topbar-page-heading {
    display: flex;
    align-items: center;
    min-width: 0;
}

.topbar-page-title {
    overflow: hidden;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
 * Business-Central-style brand mark: a small, transparent-background
 * company logo capped to roughly the same width as a sidebar nav
 * button (58px -- see .tenant-menu-button .sidebar-nav-icon in
 * ajax-oes-tenant-sidebar.css), never boxed in its own background.
 */
.tenant-topbar-logo {
    width: auto;
    height: auto;
    max-width: 58px;
    max-height: 40px;
    object-fit: contain;
    background: transparent;
}

.private-standalone-content {
    min-height: calc(100vh - 64px);
    padding: 2rem;
    background: #f5f7fa;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-dropdown {
    position: relative;
}

.notification-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0.6rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.notification-button::after {
    display: none;
}

.notification-button:hover,
.notification-button:focus {
    color: var(--tenant-primary-button-text-color, #111827);
    background: var(--tenant-primary-button-color, #d4af37);
    border-color: var(--tenant-primary-button-color, #d4af37);
    transform: translateY(-1px);
}

.notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.notification-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-badge {
    position: absolute;
    top: -0.42rem;
    right: -0.42rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.34rem;
    color: #111827;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    background: #f0cf63;
    border: 2px solid #111827;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.notification-menu {
    width: min(360px, calc(100vw - 2rem));
    padding: 0;
    overflow: hidden;
    color: #111827;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.28);
}

.notification-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    color: #ffffff;
    background: #111827;
    border-bottom: 1px solid #334155;
}

.notification-menu-header strong {
    font-size: 0.95rem;
}

.notification-menu-header span {
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 700;
}

.notification-menu-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    color: #111827;
    text-decoration: none;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.notification-menu-item:last-child {
    border-bottom: 0;
}

.notification-menu-item:hover,
.notification-menu-item:focus {
    color: #111827;
    text-decoration: none;
    background: #f8fafc;
}

/*
 * `.tenant-app-body a { color: var(--tenant-link-color); }` in
 * ajax-oes-design-system.css has higher specificity (class + element)
 * than a single class selector, so without this rule it would silently
 * win over the color set below (and further down by the tenant-themed
 * block near BATCH 14) on any menu item that happens to be an <a>.
 * Scoping under `.tenant-app-body` here raises this rule to two
 * classes, which beats that selector regardless of stylesheet order or
 * element type. The actual color value is set per-shell: fixed dark
 * text for Global Admin/public (the base .notification-menu-item rule
 * above), tenant font color for the tenant app shell (see BATCH 14).
 */
.tenant-app-body .notification-menu-item,
.tenant-app-body .notification-menu-item:hover,
.tenant-app-body .notification-menu-item:focus {
    color: var(--tenant-font-color);
}

.notification-menu-copy {
    min-width: 0;
}

.notification-menu-copy strong {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.88rem;
}

.notification-menu-copy span {
    display: block;
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.35;
}

.notification-menu-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.45rem;
    color: #111827;
    font-size: 0.75rem;
    font-weight: 900;
    background: #f0cf63;
    border: 1px solid #d4af37;
    border-radius: 999px;
}

.notification-menu-count.is-zero {
    color: #475569;
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.notification-menu-empty {
    padding: 1rem;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
    background: #ffffff;
}

/*
 * Top bar user-account menu -- replaces the bare "Sign Out" button with
 * a Business-Central-style avatar + name control that opens Settings,
 * Switch Tenant, and Sign Out.
 */
.user-account-dropdown {
    position: relative;
}

.user-account-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    height: 40px;
    padding: 0 0.7rem 0 0.35rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0.6rem;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.user-account-button:hover,
.user-account-button:focus {
    color: var(--tenant-primary-button-text-color, #111827);
    background: var(--tenant-primary-button-color, #d4af37);
    border-color: var(--tenant-primary-button-color, #d4af37);
    transform: translateY(-1px);
}

.user-account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    color: var(--tenant-primary-button-text-color, #111827);
    background: var(--tenant-primary-button-color, #d4af37);
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.user-account-name {
    max-width: 12rem;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-account-menu {
    width: min(260px, calc(100vw - 2rem));
    padding: 0.4rem;
    overflow: hidden;
    color: #111827;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.28);
}

.user-account-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.55rem 0.65rem;
    color: #111827;
    background: transparent;
    border: 0;
    border-radius: 0.5rem;
    font-size: 0.86rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
}

.user-account-menu-item:hover,
.user-account-menu-item:focus {
    color: #111827;
    background: #f1f5f9;
    text-decoration: none;
}

/* Link-color specificity fix -- see the matching comment above .notification-menu-item. */
.tenant-app-body .user-account-menu-item,
.tenant-app-body .user-account-menu-item:hover,
.tenant-app-body .user-account-menu-item:focus {
    color: var(--tenant-font-color);
}

.user-account-menu-divider {
    height: 1px;
    margin: 0.35rem 0.25rem;
    background: #e2e8f0;
    border: 0;
}

/*
 * Signed-in-user detail panel at the top of the account menu -- who,
 * where (tenant/platform scope), and which station/environment/
 * database, moved here from the old sidebar diagnostics panel.
 */
.user-account-info {
    padding: 0.6rem 0.65rem 0.7rem;
}

.user-account-info-name {
    display: block;
    overflow: hidden;
    color: #111827;
    font-size: 0.92rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-account-info dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.75rem;
    margin: 0.6rem 0 0;
}

.user-account-info dl div {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.user-account-info dt {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.user-account-info dd {
    margin: 0;
    overflow: hidden;
    color: #111827;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .user-account-name {
        display: none;
    }

    .user-account-button {
        padding: 0 0.45rem;
    }
}

@media (max-width: 575.98px) {
    .private-ajax-wordmark {
        font-size: 1.7rem;
    }

    .private-standalone-content {
        padding: 1rem;
    }
}

/* =========================================================
   PRIVATE ACCESS AND TENANT SELECTION
   ========================================================= */

.private-auth-body {
    color: #ffffff;
    background:
        radial-gradient(
            circle at top right,
            rgba(212, 175, 55, 0.10),
            transparent 34%),
        linear-gradient(
            180deg,
            #090909 0%,
            #050505 100%);
}

.private-auth-body .private-navbar {
    background: #050505;
    border-bottom-color: #d4af37 !important;
}

.private-auth-body .private-ajax-wordmark {
    color: #d4af37 !important;
}

.private-auth-body .private-ajax-wordmark:hover,
.private-auth-body .private-ajax-wordmark:focus {
    color: #f3d56b !important;
}

.private-auth-body .topbar-page-title,
.private-auth-body .notification-button {
    color: #ffffff !important;
}

.private-auth-body .notification-button:hover,
.private-auth-body .notification-button:focus {
    color: #d4af37 !important;
}

.private-auth-body .private-standalone-content {
    min-height: calc(100vh - 64px);
    padding: 2rem;
    color: #ffffff;
    background:
        radial-gradient(
            circle at top right,
            rgba(212, 175, 55, 0.10),
            transparent 34%),
        linear-gradient(
            180deg,
            #090909 0%,
            #050505 100%);
}

.tenant-selection-page,
.ajax-start-page {
    width: min(1500px, 100%);
    margin: 0 auto;
}

.tenant-selection-header,
.ajax-start-header {
    margin-bottom: 1.75rem;
}

.tenant-selection-kicker,
.ajax-start-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    margin-bottom: 1rem;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid #d4af37;
    border-radius: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tenant-selection-header h1,
.ajax-start-header h1 {
    margin: 0 0 0.55rem;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
}

.tenant-selection-header p,
.ajax-start-header p {
    max-width: 760px;
    margin: 0;
    color: #d9d9d9;
    font-size: 1.05rem;
}

.tenant-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tenant-selection-card,
.ajax-start-card {
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 1.35rem;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            #171717 0%,
            #101010 100%);
    border: 1px solid rgba(212, 175, 55, 0.75);
    border-radius: 0.85rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.tenant-selection-card {
    transition:
        transform 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.tenant-selection-card:hover {
    border-color: #f0cf63;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.38);
    transform: translateY(-2px);
}

.tenant-selection-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.tenant-role-badge,
.tenant-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.tenant-role-badge {
    padding: 0.42rem 0.68rem;
    color: #d4af37;
    background: transparent;
    border: 1px solid #d4af37;
}

.tenant-status-badge {
    padding: 0.38rem 0.62rem;
    color: #050505;
    background: #f0c83e;
}

.tenant-status-badge.live {
    color: #ffffff;
    background: #198754;
}

.tenant-selection-card h2,
.ajax-start-card h2 {
    margin: 0.8rem 0 0;
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1.15;
}

.tenant-selection-id {
    margin: 0.75rem 0 1.25rem;
    color: #b8b8b8;
    font-size: 0.92rem;
}

.tenant-selection-form {
    margin-top: auto;
}

.tenant-open-button,
.ajax-start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 0.95rem;
    color: #050505;
    background: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 0.4rem;
    font-weight: 800;
    text-decoration: none;
}

.tenant-open-button:hover,
.tenant-open-button:focus,
.ajax-start-button:hover,
.ajax-start-button:focus {
    color: #050505;
    background: #f0cf63;
    border-color: #f0cf63;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.22);
    text-decoration: none;
}

.tenant-empty-card {
    max-width: 720px;
}

.tenant-empty-card h2 {
    margin-top: 0;
    color: #ffffff;
}

.tenant-empty-card p,
.ajax-start-card p {
    color: #d9d9d9;
}

.tenant-selection-error {
    padding: 1rem;
    margin-bottom: 1rem;
    color: #ffffff;
    background: #451a1a;
    border: 1px solid #d4af37;
    border-radius: 0.6rem;
}

.ajax-start-page {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 128px);
}

.ajax-start-card {
    width: min(640px, 100%);
    min-height: 0;
    text-align: center;
}

.ajax-start-card--comic {
    width: min(960px, 94vw);
}

.ajax-start-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 108px;
    margin: 0 0 0.5rem;
}

.ajax-start-logo img {
    position: relative;
    z-index: 1;
    width: 96px;
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
    animation: ajax-start-logo-settle 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.ajax-start-logo-glow {
    position: absolute;
    width: 130px;
    height: 130px;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.5) 0%,
        rgba(212, 175, 55, 0.18) 45%,
        rgba(212, 175, 55, 0) 72%);
    border-radius: 50%;
    animation: ajax-start-logo-glow-pulse 2200ms ease-in-out 900ms infinite;
}

@keyframes ajax-start-logo-settle {
    from {
        opacity: 0;
        transform: scale(0.72) translateY(10px);
    }

    60% {
        opacity: 1;
        transform: scale(1.06) translateY(0);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes ajax-start-logo-glow-pulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.94);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

.ajax-start-comic {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0 auto 1.1rem;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 0.75rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    animation: ajax-start-logo-settle 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.ajax-start-comic img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(72vh, 900px);
    margin: 0 auto;
}

.ajax-start-card h1 {
    margin: 0 0 0.6rem;
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
}

.ajax-start-card p {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
}

.ajax-start-actions {
    display: flex;
    justify-content: center;
}

.ajax-start-progress {
    width: 100%;
    height: 5px;
    margin-top: 1.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.ajax-start-progress::after {
    display: block;
    width: 40%;
    height: 100%;
    content: "";
    background: #d4af37;
    border-radius: inherit;
    animation: ajax-start-progress 900ms ease-in-out infinite alternate;
}

@keyframes ajax-start-progress {
    from {
        transform: translateX(-40%);
    }

    to {
        transform: translateX(190%);
    }
}

@media (max-width: 850px) {
    .tenant-selection-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .private-auth-body .private-standalone-content {
        padding: 1.25rem 1rem;
    }

    .tenant-selection-card,
    .ajax-start-card {
        min-height: 220px;
        padding: 1.1rem;
    }

    .tenant-selection-card h2,
    .ajax-start-card h2 {
        font-size: 1.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tenant-selection-card,
    .ajax-start-progress::after,
    .ajax-start-logo img,
    .ajax-start-comic,
    .ajax-start-logo-glow {
        animation: none;
        transition: none;
    }

    .tenant-selection-card:hover {
        transform: none;
    }

    .ajax-start-logo-glow {
        opacity: 0.6;
    }
}

/* =========================================================
   BATCH 14 — TOP-RIGHT NOTIFICATION PLACEMENT
   ========================================================= */

/*
 * Keep the notification control above the tenant page content and sidebar.
 * The bell remains in the top-right top bar for all private tenant pages.
 */
.tenant-app-body .private-topbar,
.tenant-app-body .ajax-topbar {
    position: relative;
    z-index: 1040;
}

.tenant-app-body .notification-dropdown {
    z-index: 1050;
}

.tenant-app-body .notification-menu {
    z-index: 1060;
}

.tenant-app-body .user-account-dropdown {
    z-index: 1050;
}

.tenant-app-body .user-account-menu {
    z-index: 1060;
}

/*
 * The notification and user-account dropdowns are a fixed white card
 * for Global Admin and public pages (see the base .notification-menu /
 * .user-account-menu rules above), but on the tenant app shell they
 * should pick up the tenant's own Card/Page color family instead of
 * looking like an unbranded system popover.
 */
.tenant-app-body .notification-menu,
.tenant-app-body .user-account-menu {
    background: var(--tenant-card-background-color);
    border-color: var(--tenant-card-border-color);
}

.tenant-app-body .notification-menu-header {
    color: var(--tenant-navigation-text-color);
    background: var(--tenant-navigation-color);
    border-bottom-color: var(--tenant-card-border-color);
}

.tenant-app-body .notification-menu-header span {
    color: var(--tenant-navigation-text-color);
    opacity: 0.75;
}

.tenant-app-body .notification-menu-item {
    background: var(--tenant-card-background-color);
    border-bottom-color: var(--tenant-card-border-color);
}

.tenant-app-body .notification-menu-item:hover,
.tenant-app-body .notification-menu-item:focus {
    background: var(--tenant-tab-hover-background-color);
}

.tenant-app-body .notification-menu-copy span {
    color: var(--tenant-muted-font-color);
}

.tenant-app-body .notification-menu-count {
    color: var(--tenant-primary-button-text-color);
    background: var(--tenant-primary-button-color);
    border-color: var(--tenant-primary-button-color);
}

.tenant-app-body .notification-menu-count.is-zero {
    color: var(--tenant-muted-font-color);
    background: var(--tenant-page-surface-color);
    border-color: var(--tenant-card-border-color);
}

.tenant-app-body .notification-menu-empty {
    color: var(--tenant-muted-font-color);
    background: var(--tenant-card-background-color);
}

.tenant-app-body .user-account-menu-item:hover,
.tenant-app-body .user-account-menu-item:focus {
    background: var(--tenant-tab-hover-background-color);
}

.tenant-app-body .user-account-menu-divider {
    background: var(--tenant-card-border-color);
}

.tenant-app-body .user-account-info-name,
.tenant-app-body .user-account-info dd {
    color: var(--tenant-font-color);
}

.tenant-app-body .user-account-info dt {
    color: var(--tenant-muted-font-color);
}

/*
 * A badge is displayed only when the rendered notification count has
 * content. The layout already decides whether a numeric badge is rendered.
 */
.tenant-app-body .notification-badge:empty {
    display: none;
}

/*
 * Keep the bell operable and visible even when there are no pending items.
 * Only the numeric badge disappears when the count is zero.
 */
.tenant-app-body .notification-button {
    display: inline-flex;
    visibility: visible;
    opacity: 1;
}
