.app-inbox-dropdown {
    position: relative;
}
.header-icon.app-inbox-toggle,
#appInboxToggle.header-icon {
    height: 4.125rem;
    min-width: 3.125rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.app-inbox-badge {
    background: #dc3545;
    color: #fff;
    font-weight: 700;
}
.app-inbox-list {
    max-height: 360px;
    overflow-y: auto;
    min-width: 360px;
}
.app-inbox-item-title,
.app-inbox-item-message {
    white-space: normal;
    overflow-wrap: anywhere;
}
@media (max-width: 575.98px) {
    .page-header .app-inbox-dropdown > .header-icon[data-toggle="dropdown"] + #appInboxDropdown.dropdown-menu {
        position: fixed !important;
        top: 4.25rem !important;
        left: 0.5rem !important;
        right: 0.5rem !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100vw - 1rem) !important;
        margin: 0 !important;
        transform: none !important;
        z-index: 2000;
    }
    .app-inbox-list {
        min-width: 0;
        max-width: 100%;
    }
}
.app-inbox-item {
    display: block;
    padding: .65rem .8rem;
    border-bottom: 1px solid #f0f2f7;
    color: #4f6079;
    text-decoration: none !important;
}
.app-inbox-item-inner { display: flex; align-items: flex-start; gap: .65rem; }
.app-inbox-item-content { min-width: 0; flex: 1 1 auto; }
.app-inbox-dismiss-all { color: #6f819d; font-size: .74rem; text-decoration: none !important; }
.app-inbox-dismiss-all:hover { color: #4f6079; }
.app-inbox-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 34px;
    border: 1px solid #d9e2ef;
}
.app-inbox-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6c757d;
    color: #fff;
}
.app-inbox-avatar-fallback i { font-size: .95rem; }
.app-inbox-tone-request { background: #007bff; color: #fff; }
.app-inbox-tone-accepted { background: #28a745; color: #fff; }
.app-inbox-tone-time { background: #17a2b8; color: #fff; }
.app-inbox-tone-declined { background: #dc3545; color: #fff; }
.app-inbox-tone-cancelled { background: #6c757d; color: #fff; }
.app-inbox-tone-reschedule { background: #ffc107; color: #212529; }
.app-inbox-tone-reschedule-ok { background: #20c997; color: #fff; }
.app-inbox-tone-reschedule-no { background: #fd7e14; color: #fff; }
.app-inbox-tone-message { background: #0056b3; color: #fff; }
.app-inbox-tone-default { background: #6c757d; color: #fff; }
.app-inbox-item:hover { background: #f8fbff; color: #394a63; }
.app-inbox-item-dismiss {
    border: none;
    background: transparent;
    color: #9aabc2;
    font-size: .78rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    margin-left: auto;
    margin-top: .1rem;
    cursor: pointer;
}
.app-inbox-item-dismiss:hover { background: #eef3fa; color: #647a99; }
.app-inbox-item.is-unread { background: #f4f9ff; }
.app-inbox-item-title { font-size: .84rem; font-weight: 600; }
.app-inbox-item-message { font-size: .78rem; margin-top: .1rem; }
.app-inbox-item-date { font-size: .7rem; color: #8b9ab1; margin-top: .25rem; }
.unread-chat-pill {
    display: inline-block;
    min-width: 18px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.4;
}
.presence-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}
.presence-dot.online { background: #28a745; }
.presence-dot.away { background: #ffc107; }
.presence-dot.offline { background: #6c757d; }
.consultation-started-stack {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(320px, calc(100% - 32px));
    pointer-events: none;
}
.consultation-started-card {
    position: relative;
    pointer-events: auto;
    padding: 14px 36px 14px 14px;
    border-radius: 14px;
    background: #fff;
    color: #15202b;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.consultation-started-title {
    font-weight: 700;
    margin-bottom: 4px;
}
.consultation-started-who,
.consultation-started-topic {
    font-size: 0.92rem;
    margin-bottom: 4px;
}
.consultation-started-topic {
    color: #52606d;
}
.consultation-started-join {
    margin-top: 8px;
}
.consultation-started-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: transparent;
    color: #52606d;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}
