.dr-bell-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #FF0000;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    position: absolute;
    top: 2px;
    inset-inline-end: 2px;
    display: none;
}
.dr-bell-badge.is-on {
    display: inline-block;
}
.header .header-navbar-rht .noti-wrapper .badge-pill.dr-bell-badge {
    width: auto;
    height: 18px;
}
.dr-notif-dropdown {
    width: 360px;
    max-width: calc(100vw - 24px);
    padding: 0;
    overflow: hidden;
}
.dr-notif-dropdown .topnav-dropdown-header,
.dr-notif-dropdown .topnav-dropdown-footer {
    padding: 12px 16px;
}
.dr-notif-list {
    max-height: 360px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}
.dr-notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: inherit;
    text-decoration: none;
}
.dr-notif-item:hover {
    background: #fafafa;
}
.dr-notif-item.is-unread {
    background: #fff8ef;
}
.dr-notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F1F1F1;
    color: #127384;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dr-notif-item.is-unread .dr-notif-icon {
    background: #FFE8C7;
    color: #FFA633;
}
.dr-notif-body {
    min-width: 0;
    flex: 1;
}
.dr-notif-title {
    font-weight: 600;
    font-size: 14px;
    color: #201F1D;
    margin: 0 0 2px;
}
.dr-notif-text {
    font-size: 13px;
    color: #6b6b6b;
    margin: 0;
}
.dr-notif-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}
.dr-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFA633;
    flex-shrink: 0;
}
.dr-notif-state {
    padding: 28px 16px;
    text-align: center;
    color: #888;
    font-size: 14px;
}
.dr-push-banner {
    position: fixed;
    inset-inline-end: 20px;
    bottom: 20px;
    z-index: 1080;
    max-width: 360px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(32, 31, 29, 0.12);
    padding: 14px 16px;
    display: none;
}
.dr-push-banner.is-on {
    display: block;
}
.dr-push-banner p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #201F1D;
}
.dr-toast-stack {
    position: fixed;
    inset-inline-end: 20px;
    top: 90px;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dr-toast {
    min-width: 240px;
    max-width: 320px;
    background: #201F1D;
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.dr-toast a {
    color: #FFA633;
}
.dr-chat-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: 640px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}
.dr-chat-sidebar {
    border-inline-end: 1px solid #eee;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
}
.dr-chat-search {
    padding: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.dr-chat-list {
    overflow-y: auto;
    flex: 1;
}
.dr-chat-item {
    display: flex;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    text-align: start;
    border-bottom: 1px solid #f7f7f7;
}
.dr-chat-item:hover,
.dr-chat-item.is-active {
    background: #fff8ef;
}
.dr-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #127384;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}
.dr-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dr-online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    position: absolute;
    inset-inline-end: 0;
    bottom: 0;
    display: none;
}
.dr-online-dot.is-on {
    display: block;
}
.dr-chat-item-main {
    min-width: 0;
    flex: 1;
}
.dr-chat-item-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}
.dr-chat-item-name {
    font-weight: 600;
    color: #201F1D;
    font-size: 14px;
}
.dr-chat-item-time {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}
.dr-chat-item-preview {
    font-size: 13px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dr-chat-unread {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #FFA633;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    display: inline-block;
}
.dr-chat-thread {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    background: #fafafa;
}
.dr-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.dr-chat-back {
    display: none;
    border: 0;
    background: transparent;
    color: #201F1D;
    font-size: 18px;
}
.dr-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dr-bubble {
    max-width: 75%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}
.dr-bubble.is-mine {
    margin-inline-start: auto;
    background: #FFA633;
    color: #fff;
    border-bottom-right-radius: 4px;
}
[dir="rtl"] .dr-bubble.is-mine {
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 4px;
}
.dr-bubble.is-theirs {
    margin-inline-end: auto;
    background: #fff;
    color: #201F1D;
    border: 1px solid #eee;
    border-bottom-left-radius: 4px;
}
[dir="rtl"] .dr-bubble.is-theirs {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 4px;
}
.dr-bubble-time {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.75;
}
.dr-bubble.is-failed {
    background: #dc3545;
}
.dr-chat-composer {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #eee;
    align-items: flex-end;
}
.dr-chat-composer textarea {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    resize: none;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 12px;
}
.dr-chat-empty,
.dr-chat-placeholder {
    padding: 40px 20px;
    text-align: center;
    color: #888;
}
.dr-new-messages {
    display: none;
    align-self: center;
    margin-bottom: 8px;
    border: 0;
    background: #127384;
    color: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
}
.dr-new-messages.is-on {
    display: inline-flex;
}
.dr-typing {
    font-size: 12px;
    color: #127384;
    min-height: 18px;
    padding: 0 16px 8px;
}
.dr-chat-start {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
}
@media (max-width: 991.98px) {
    .dr-chat-shell {
        grid-template-columns: 1fr;
        min-height: 70vh;
    }
    .dr-chat-shell.is-thread .dr-chat-sidebar,
    .dr-chat-shell:not(.is-thread) .dr-chat-thread {
        display: none;
    }
    .dr-chat-back {
        display: inline-flex;
    }
}
@media (max-width: 575.98px) {
    .dr-chat-shell {
        min-height: calc(100vh - 140px);
    }
    .dr-chat-composer {
        position: sticky;
        bottom: 0;
        z-index: 2;
    }
    .dr-notif-dropdown {
        width: calc(100vw - 16px);
        inset-inline-end: 8px !important;
        inset-inline-start: auto !important;
    }
}
[dir="rtl"] .dr-chat-item-time,
[dir="rtl"] .dr-bubble-time {
    direction: ltr;
    unicode-bidi: embed;
}
[dir="rtl"] .dr-chat-composer textarea {
    text-align: start;
}
