/* شارة طلبات جديدة على أيقونة «الطلبات» في الشريط الجانبي */
.merchant-orders-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
    z-index: 99998;
    isolation: isolate;
}

.merchant-orders-count-badge {
    position: absolute;
    top: -7px;
    inset-inline-end: -7px;
    box-sizing: border-box;
    min-width: 24px;
    width: max-content;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 24px;
    text-align: center;
    color: #fff;
    /* نفس تدرج وظل أيقونة الرئيسية (.nav-item-home .nav-home-icon) */
    background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    border: 2px solid #fff;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.92);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 99999;
    -webkit-font-smoothing: antialiased;
}

.merchant-orders-count-badge.is-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* فوق بقية عناصر الشريط؛ overflow مرئي حتى لا تُقصّ الشارة */
.dash-sidebar a[href$="orders.html"].nav-item,
aside.sidebar a[href$="orders.html"].nav-item,
aside.w-72 a[href$="orders.html"].nav-item,
aside a[href$="orders.html"] {
    position: relative;
    z-index: 99990;
    overflow: visible;
}
