/* Mükellef üst panel — mobilde bildirim / kullanıcı / unvan görünürlüğü */
html body .emm-shell .mukellef-app-topbar {
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
}

html body .emm-shell .mukellef-app-topbar .topbar-menu,
html body .emm-shell .mukellef-app-topbar .mukellef-topbar-inner {
    width: 100%;
    min-width: 0;
}

html body .emm-shell .mukellef-app-topbar .mukellef-topbar-username {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 992px) {
    html body .emm-shell .mukellef-app-topbar .mukellef-topbar-username {
        display: inline-block;
    }
}

@media (max-width: 991.98px) {
    html body .emm-shell .mukellef-app-topbar .mukellef-topbar-inner {
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.35rem !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }

    html body .emm-shell .mukellef-app-topbar .mukellef-topbar-leading {
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        gap: 0.3rem !important;
        overflow: hidden;
    }

    html body .emm-shell .mukellef-app-topbar .mukellef-topbar-leading .logo {
        display: none !important;
    }

    html body .emm-shell .mukellef-app-topbar .mukellef-unvan-badge {
        max-width: min(34vw, 9rem);
        font-size: 0.65rem;
        padding: 0.22rem 0.45rem;
        flex-shrink: 1;
        min-width: 0;
    }

    html body .emm-shell .mukellef-app-topbar .btn-return-kmt {
        flex-shrink: 0;
        padding: 0.28rem 0.45rem !important;
        font-size: 0.65rem !important;
        line-height: 1.2;
    }

    html body .emm-shell .mukellef-app-topbar .mukellef-topbar-return-label {
        display: none;
    }

    html body .emm-shell .mukellef-app-topbar .btn-return-kmt .me-1 {
        margin-right: 0 !important;
    }

    html body .emm-shell .mukellef-app-topbar .mukellef-topbar-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
        gap: 0.15rem !important;
        margin-left: 0 !important;
    }

    html body .emm-shell .mukellef-app-topbar .topbar-item {
        display: inline-flex !important;
        align-items: center !important;
        flex-shrink: 0;
    }

    html body .emm-shell .mukellef-app-topbar .nav-user .topbar-link {
        width: auto !important;
        max-width: min(40vw, 9rem);
        padding: 0 0.15rem !important;
        gap: 0.25rem;
    }

    html body .emm-shell .mukellef-app-topbar .nav-user span.mukellef-topbar-username:not(.noti-icon-badge) {
        display: inline-block !important;
        max-width: min(22vw, 4.5rem);
        font-size: 0.6875rem;
    }

    html body .emm-shell .mukellef-app-topbar .nav-user h5,
    html body .emm-shell .mukellef-app-topbar .nav-user .d-none {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    html body .emm-shell .mukellef-app-topbar .mukellef-unvan-badge {
        max-width: min(30vw, 7rem);
    }

    html body .emm-shell .mukellef-app-topbar .nav-user span.mukellef-topbar-username:not(.noti-icon-badge) {
        max-width: min(18vw, 3.5rem);
        font-size: 0.625rem;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    html body .emm-shell .mukellef-app-topbar .mukellef-topbar-return-label {
        display: inline;
    }

    html body .emm-shell .mukellef-app-topbar .btn-return-kmt .me-1 {
        margin-right: 0.25rem !important;
    }
}
