/* mySEK Central Platform v1.2.2 — system logo rendering fix */

/* Uploaded official mySEK artwork is designed for a dark surface. */
.topbar-brand.has-system-logo {
    gap: 9px;
}

.topbar-system-logo-plate {
    width: 108px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 5px 9px;
    overflow: hidden;
    border-radius: 10px;
    background: #000000;
}

.topbar-system-logo-plate img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.topbar-brand-copy-logo {
    display: flex;
    align-items: center;
}

.topbar-brand-copy-logo small {
    max-width: 150px;
}

.sidebar-logo.has-system-logo {
    right: 12px;
    height: 46px;
    align-items: center;
}

.sidebar-system-logo {
    display: block;
    width: auto;
    max-width: 138px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
    object-position: left center;
}

.login-system-logo-plate {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -6px 0 18px;
    padding: 15px 22px;
    border-radius: 15px;
    background: #000000;
}

.login-system-logo-plate img {
    display: block;
    width: auto;
    max-width: min(250px, 90%);
    height: auto;
    max-height: 86px;
    object-fit: contain;
}

.public-system-logo-plate {
    min-width: 150px;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 11px;
    background: #000000;
}

.public-system-logo-plate img {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
}

/* System Information preview should show white/cyan artwork correctly. */
.system-info-page .si-logo-box {
    background: #000000 !important;
    border-color: #000000 !important;
}

.system-info-page .si-logo-box img {
    object-fit: contain !important;
}

.system-info-page .si-logo-upload-preview {
    padding: 8px;
    border-radius: 10px;
    background: #000000;
    object-fit: contain;
}

@media (max-width: 720px) {
    .topbar-system-logo-plate {
        width: 84px;
        height: 34px;
        padding: 5px 7px;
    }

    .topbar-brand-copy-logo small {
        display: none;
    }

    .login-system-logo-plate {
        min-height: 96px;
        padding: 12px 16px;
    }
}
