/* Official Owner-supplied ISS branding. The source artwork is never transformed or cropped. */
.iss-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.iss-brand__link {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.iss-brand__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.admin-sidebar .admin-sidebar-brand {
    flex-basis: 134px;
    min-height: 134px;
    padding: 12px 18px;
}

.iss-brand--sidebar {
    width: 100%;
    height: 110px;
}

.iss-brand--sidebar .iss-brand__image {
    max-width: 190px;
    max-height: 110px;
}

.iss-login-panel {
    width: 450px;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 25px rgba(0, 0, 0, .07);
}

.login-box .iss-login-panel form {
    width: 100%;
    max-width: 100%;
    box-shadow: none;
}

.iss-brand--login {
    width: 100%;
    min-height: 236px;
    padding: 20px 24px;
    background: #fff;
    border-bottom: 1px solid #edf0f5;
}

.iss-brand--login .iss-brand__image {
    width: min(100%, 360px);
}

.iss-brand--mobile {
    display: none;
}

html[dir="rtl"] .iss-brand__image {
    transform: none;
}

@media (min-width: 992px) {
    body.sidebar-desktop-collapsed .admin-sidebar .admin-sidebar-brand {
        flex-basis: 92px;
        min-height: 92px;
        padding: 14px;
    }

    body.sidebar-desktop-collapsed .iss-brand--sidebar {
        height: 58px;
    }

    body.sidebar-desktop-collapsed .iss-brand--sidebar .iss-brand__image {
        max-width: 58px;
        max-height: 58px;
    }
}

@media (max-width: 991px) {
    .admin-header-primary {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .admin-header-primary .nav-btn,
    html[dir="rtl"] .admin-header-primary .nav-btn {
        flex: 0 0 auto;
        margin: 10px 0 0;
    }

    .iss-brand--mobile {
        width: 76px;
        height: 54px;
        flex: 0 0 76px;
        display: inline-flex;
    }

    .admin-header-primary .search-box {
        min-width: 0;
    }
}

@media (max-width: 479px) {
    .iss-brand--login {
        min-height: 190px;
        padding: 16px 20px;
    }

    .iss-brand--mobile {
        width: 68px;
        height: 48px;
        flex-basis: 68px;
    }

    .admin-header-primary {
        gap: 8px;
    }

    .admin-header-primary .search-box {
        display: none;
    }
}
