/* Onyiski Cloud: theme-aware company logo + size.
   FOSSBilling ships a :root.theme-dark variant that never matches (the app
   toggles data-bs-theme on <html>), so both logo images rendered at once and
   the dark artwork was invisible on the dark theme. This pins the swap to the
   attribute the app actually sets, and gives the brand mark a usable size
   (the stock sidebar size, 1.6rem, is illegible). */
[data-bs-theme=light] .hide-theme-light,
:root.theme-light .hide-theme-light { display: none !important; }
[data-bs-theme=dark] .hide-theme-dark,
:root.theme-dark .hide-theme-dark { display: none !important; }

/* Brand mark size: beats the inline height= attributes and .navbar-brand-image */
img[src*="onyiski-logo"] {
    height: clamp(56px, 6vw, 88px) !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain;
}
/* Keep the admin sidebar brand row from clipping the larger mark */
.navbar-brand-image { height: auto !important; max-height: none !important; }
.admin-sidebar .navbar-brand { min-height: 68px; }
@media (max-width: 575.98px) {
    img[src*="onyiski-logo"] { height: 56px !important; }
}
