/* Sidebar Badge Styles — สำหรับ 4 badges (FV2 Brief · MF Pending · SB v2 · Pricing) */

/* ═ Red badges: FV1 Brief · FV2 Brief · Master Formula · Sale Brief v2 ═ */
.fv1-sidebar-badge,
.fv2-sidebar-badge,
.mf-sidebar-badge,
.sb-sidebar-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e41e3f;
    color: #fff !important;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px rgba(228, 30, 63, 0.2);
    animation: sidebar-badge-pulse 2s infinite;
    margin-left: 6px !important; /* เว้นจาก NEW label */
    vertical-align: middle;
}

@keyframes sidebar-badge-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(228, 30, 63, 0.5); }
    50%  { box-shadow: 0 0 0 6px rgba(228, 30, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(228, 30, 63, 0); }
}

/* ═ Green badge: Pricing Engine (info, less urgent) ═ */
.pricing-sidebar-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #10b981;
    color: #fff !important;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: sidebar-badge-pulse-green 2.5s infinite;
    margin-left: 6px !important;
    vertical-align: middle;
}

@keyframes sidebar-badge-pulse-green {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50%  { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Force parent link เป็น flex เพื่อ margin-left:auto ทำงาน */
.main-sidebar a.nav-link {
    display: flex !important;
    align-items: center;
    gap: 4px;
}
