.layout-toolbar {
    border-bottom: 1px solid #e7edf5;
    background: #f8fbff;
}

.toolbar-actions {
    gap: .55rem;
}

.toolbar-mobile-brand {
    flex: 0 0 auto;
    min-width: 0;
}

.toolbar-mobile-logo {
    display: block;
    width: auto;
    max-width: 158px;
    height: 30px;
}

.toolbar-system-name {
    min-width: 0;
    margin-left: .85rem;
    margin-right: 1.25rem;
}

.toolbar-system-name h1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toolbar-actions > *,
.toolbar-actions .toolbar-action-item {
    margin-left: 0 !important;
}

.toolbar-message-button,
.toolbar-feedback-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 1px solid #dfe7f1;
    border-radius: 11px;
    background: #fff;
    color: #4b5e78;
    font: inherit;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.toolbar-message-button {
    flex: 0 0 auto;
    width: auto;
    gap: .5rem;
    padding: 0 .75rem;
    color: #40546f;
    font-size: .78rem;
    font-weight: 650;
}

.toolbar-message-button > i {
    color: #2f6fed;
    font-size: .95rem;
}

.toolbar-message-label {
    white-space: nowrap;
}

.toolbar-feedback-button {
    gap: .55rem;
    padding: 0 .85rem;
    font-size: .78rem;
    font-weight: 650;
}

.toolbar-feedback-button > i {
    color: #2f6fed;
    font-size: 1rem;
}

.toolbar-message-button:hover,
.toolbar-feedback-button:hover {
    border-color: #bed2f5;
    background: #f3f7ff;
    color: #245dc1;
    box-shadow: 0 5px 14px rgba(47, 111, 237, .09);
    transform: translateY(-1px);
}

.toolbar-message-button:focus-visible,
.toolbar-feedback-button:focus-visible {
    border-color: #82a9f6;
    box-shadow: 0 0 0 4px rgba(47, 111, 237, .13);
    outline: none;
}

.toolbar-unread-badge {
    display: grid;
    position: static;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #e94b52;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
}

.toolbar-actions #kt_header_user_menu_toggle {
    margin-left: .2rem !important;
    padding-left: .75rem;
    border-left: 1px solid #dfe7f1;
}

@media (max-width: 767.98px) {
    .toolbar-actions {
        gap: .35rem;
    }

    .toolbar-message-button,
    .toolbar-feedback-button {
        height: 38px;
        padding: 0;
        border-radius: 10px;
    }

    .toolbar-message-button {
        position: relative;
        flex: 0 0 38px;
        width: 38px;
        gap: 0;
        padding: 0;
    }

    .toolbar-message-label {
        display: none;
    }

    .toolbar-message-button .toolbar-unread-badge {
        position: absolute;
        top: 4px;
        right: 4px;
        min-width: 7px;
        width: 7px;
        height: 7px;
        padding: 0;
    }

    .toolbar-message-button .toolbar-unread-badge > span:not(.visually-hidden) {
        display: none;
    }

    .toolbar-feedback-button {
        flex: 0 0 38px;
        width: 38px;
    }

    .toolbar-actions #kt_header_user_menu_toggle {
        margin-left: 0 !important;
        padding-left: .5rem;
    }
}

@media (max-width: 575.98px) {
    .toolbar-system-name {
        display: none !important;
    }

    .toolbar-mobile-logo {
        max-width: 147px;
        height: 28px;
    }
}

@media (max-width: 399.98px) {
    .toolbar-mobile-logo {
        max-width: 120px;
        height: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .toolbar-message-button,
    .toolbar-feedback-button {
        transition: none;
    }
}
