/* Stable Predict additions on top of the vendored BMS 2.0 sheets (kept byte-for-byte; tweaks live here). */

/* Logo in place of BMS's tenant image. Expanded sidebar: the full logo (white "stable" for the dark sidebar).
   Collapsed desktop rail: just the star mark; the full logo returns on hover / when the sidebar is locked open. */
.bms-sidebar-brand {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}
.bms-sidebar-brand .sp-brand-logo {
    height: 40px;
    width: auto;
    display: block;
}
.bms-sidebar-brand .sp-brand-mark {
    display: none;
    width: 32px;
    height: 32px;
    flex: none;
}
@media (min-width: 992px) {
    .bms-sidebar .sp-brand-logo {
        display: none;
    }
    .bms-sidebar .sp-brand-mark {
        display: block;
    }
    .bms-sidebar:hover .sp-brand-logo,
    .bms-sidebar.bms-sidebar-locked .sp-brand-logo,
    html.bms-sidebar-locked-init .bms-sidebar .sp-brand-logo {
        display: block;
    }
    .bms-sidebar:hover .sp-brand-mark,
    .bms-sidebar.bms-sidebar-locked .sp-brand-mark,
    html.bms-sidebar-locked-init .bms-sidebar .sp-brand-mark {
        display: none;
    }
}

.sp-topbar-logo {
    height: 28px;
    width: auto;
    margin-left: .75rem;
}

/* The user menu's sign-out is a real <form> POST; keep its button looking like the other menu entries. */
.bms-user-menu form button {
    cursor: pointer;
}

/* Sign-in pages (no sidebar). */
.sp-auth-panel {
    background: linear-gradient(135deg, #0f1e3f 0%, #163464 55%, #00A1D6 140%);
}
.sp-auth-overlay-text {
    color: #fff;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
    text-shadow: 0 3px 6px rgba(0, 0, 0, .5);
}
.sp-auth-panel-logo {
    width: 320px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35));
}
.sp-auth-logo img {
    max-width: 100%;
    width: auto;
}
/* Navy "stable" on light cards, white "stable" on dark cards. */
.sp-auth-logo .sp-logo-dark { display: none; }
[data-bs-theme=dark] .sp-auth-logo .sp-logo-light { display: none; }
[data-bs-theme=dark] .sp-auth-logo .sp-logo-dark { display: inline-block; }

/* Temporary passwords / one-time values. */
.sp-secret-once {
    font-family: var(--tblr-font-monospace, monospace);
    font-size: 1.25rem;
    letter-spacing: .05em;
    user-select: all;
}

/* An asp-validation-summary="All" with no errors still renders (class validation-summary-valid, for client-side
   validation); hide it so the alert-styled summaries on Usage / Request log don't show as an empty box. */
.validation-summary-valid {
    display: none;
}
