/* Lasiri Capital admin branding fixes.
   Jazzmin only renders a single <img> for the sidebar brand logo, sized for the
   expanded sidebar (250px wide). When the sidebar is collapsed to icon-only mode,
   AdminLTE narrows that brand bar to 4.6rem (~74px), which clips our wide wordmark
   logo. Since there's no built-in "collapsed logo" setting, we size the wordmark to
   fill the expanded sidebar cleanly and swap it for the compact mark-only icon via
   CSS when collapsed (restoring the wordmark again during the hover/focus preview-
   expand). Centering via flexbox on the brand bar itself means only the logo's own
   max-height needs to change between states - no per-state margin juggling. */

.main-sidebar .brand-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: .5rem .75rem !important;
}

.main-sidebar .brand-link .brand-image {
    opacity: 1 !important;
    float: none !important;
    margin: 0 !important;
    max-height: 48px !important;
    max-width: 100% !important;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sidebar-mini.sidebar-collapse .brand-link .brand-image {
    content: url("/static/images/favicon-32x32.png");
    max-height: 36px !important;
}

.sidebar-mini.sidebar-collapse .main-sidebar:hover .brand-link .brand-image,
.sidebar-mini.sidebar-collapse .main-sidebar.sidebar-focused .brand-link .brand-image {
    content: url("/static/images/logo.png");
    max-height: 48px !important;
}
