/* ================================================================
   V8.2 Round 3 — Social Network palette primary
   Derived từ --ant-primary-color (theme của AntDesign Blazor).
   Dùng thay cho mọi màu xanh hardcode trong module để đảm bảo đồng bộ.
   ================================================================ */
:root {
    --sf-primary: var(--ant-primary-color, #1890ff);
    --sf-primary-bg: color-mix(in srgb, var(--ant-primary-color, #1890ff) 8%, #fff);
    --sf-primary-bg-hover: color-mix(in srgb, var(--ant-primary-color, #1890ff) 14%, #fff);
    --sf-primary-border: color-mix(in srgb, var(--ant-primary-color, #1890ff) 40%, #fff);
}

/* ================================================================
   Social Network — Global: Remove focus outline for mouse clicks
   ================================================================ */
.social-layout *:focus {
    outline: none;
}

.social-layout *:focus-visible {
    outline: none;
    outline-offset: 0;
}

/* ================================================================
   TRIỆT ĐỂ: Override AntDesign blue focus outline cho mọi input
   trong social network module — 1 block duy nhất dễ maintain
   ================================================================ */
.social-layout .ant-input:focus,
.social-layout .ant-input-focused,
.social-layout .ant-input-affix-wrapper:focus,
.social-layout .ant-input-affix-wrapper-focused,
.social-layout .ant-input-affix-wrapper:focus-within,
.social-layout .ant-select-focused .ant-select-selector,
.social-layout .ant-picker-focused,
.social-layout textarea.ant-input:focus,
.social-layout .ant-input-number-focused,
.social-layout .ant-mentions-focused {
    border-color: #d9d9d9 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ================================================================
   Social Network Layout — Left sidebar + Content
   ================================================================ */

.social-layout {
    display: flex;
    /* V9.0 — Cuộn nội bộ trong vùng nội dung (dưới header) thay vì cuộn cả document.
       → thanh cuộn bắt đầu từ chân header (giống các màn khác), không đè header fixed;
       + scrollbar-gutter: stable giữ chỗ cố định → hết co giãn/nhấp nháy khi load tab.
       Chỉ ảnh hưởng module mạng nội bộ, không đụng scroll global của app. */
    /* Header thực cao 50px nhưng Content có margin-top:64px → kéo lên 14px để bỏ khoảng trống
       giữa header và nội dung; height bù lại 14px để chạm đáy viewport. */
    height: calc(100vh - 50px);
    margin: -14px -20px 0 -20px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    /* V9.0 — nền xám trung tính kiểu Facebook giúp các card trắng nổi bật rõ hơn. */
    background: #e4e6eb;
}

/* Thanh cuộn của vùng social: mảnh 5px, track trong suốt (ăn theo nền),
   thumb ẩn lúc rảnh → hiện khi hover vào vùng → đậm hơn khi rê trúng thanh cuộn. */
.social-layout::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.social-layout::-webkit-scrollbar-track {
    background: transparent;
}

.social-layout::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}

.social-layout:hover::-webkit-scrollbar-thumb {
    background: #c4c4c4;
}

.social-layout::-webkit-scrollbar-thumb:hover {
    background: #969696;
}

/* ── LEFT SIDEBAR ── */
.social-sidebar-left {
    width: 240px;
    min-width: 240px;
    background: transparent;
    padding: 16px 0 16px 16px;
    position: sticky;
    /* V9.0 — sticky relative tới scrollport .social-layout (đã nằm dưới header) → top: 0. */
    top: 0;
    height: calc(100vh - 50px);
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.social-sidebar-left:hover {
    scrollbar-color: #d9d9d9 transparent;
}

/* ── User profile card ── */
.social-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 20px;
    margin-bottom: 8px;
}

.social-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.social-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-user-info {
    min-width: 0;
}

.social-user-name {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-user-title {
    font-size: 12px;
    color: #8c8c8c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Nav menu ── */
.social-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
}

.social-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    /* V9.1 issue #4: chữ đậm rõ, tương phản tốt + đồng bộ màu & weight với tên nhóm trong sidebar */
    color: #262626;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
    cursor: pointer;
}

.social-nav-item:hover {
    background: color-mix(in srgb, var(--ant-primary-color) 10%, transparent);
    color: var(--ant-primary-color);
}

.social-nav-item.active {
    background: color-mix(in srgb, var(--ant-primary-color) 18%, transparent);
    color: var(--ant-primary-color);
    font-weight: 600;
}

.social-nav-item .anticon {
    font-size: 18px;
    flex-shrink: 0;
}

/* Sprint 31 / V8.7 — Marker class cho test "Tường cá nhân" sidebar link.
   Kế thừa style từ .social-nav-item, không cần override; chỉ giữ lại để Playwright
   tests dễ chọn vị trí entry profile. */
.sn-sidebar-profile-link {
    /* No additional style — inherits .social-nav-item base. */
}

.social-nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-pending-badge {
    margin-left: auto;
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    padding: 0 6px;
    flex-shrink: 0;
}

/* ── MAIN CONTENT ── */
.social-content {
    flex: 1;
    min-width: 0;
    padding: 16px;
    display: flex;
    justify-content: center;
    /* V9.11 FU-7: KHÔNG stretch trang con — để nó giãn theo nội dung (cao tự nhiên) thay vì bị kéo
       căng = viewport. Nhờ vậy padding-bottom của .social-content > * mới nằm đúng đáy nội dung cuộn
       (trước đây stretch → trang con cao cố định → nội dung tràn qua → padding-bottom vô tác dụng). */
    align-items: flex-start;
}

/* V9.11 FU-7: padding-bottom 32px đặt ở TRANG CON (phần thực sự cuộn), KHÔNG ở .social-content —
   vì .social-content cao cố định (= viewport) nên nội dung trang tràn qua, padding-bottom của nó vô tác dụng.
   Trang con (.sf-feed-layout / .sf-cover-content-layout / .sf-page-wrapper...) mới giãn theo nội dung →
   padding-bottom của nó nằm đúng đáy nội dung cuộn → chừa khoảng trống cạnh dưới trình duyệt cho MỌI màn. */
.social-content > * {
    width: 100%;
    max-width: 1000px;
    padding-bottom: 24px; /* V9.11 FU-7 (C2): đồng bộ 24px cho root không-wrapper (Feed, PostDetail) */
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 1366px) {
    .social-sidebar-left {
        width: 220px;
        min-width: 200px;
    }

    .sf-feed-main {
        min-width: 480px;
    }

    .sf-feed-sidebar {
        width: 250px;
        min-width: 240px;
    }
}

@media (max-width: 1200px) {
    .sf-feed-sidebar {
        display: none;
    }
}

/* ── Collapse left sidebar to icons ── */
@media (max-width: 900px) {
    .social-sidebar-left {
        width: 56px;
        min-width: 56px;
        padding: 16px 4px;
    }

    .social-user-card {
        justify-content: center;
        padding: 12px 4px 16px;
    }

    .social-user-info {
        display: none;
    }

    .social-nav-item span {
        display: none;
    }

    .social-nav-item {
        justify-content: center;
        padding: 10px 0;
    }

    /* V9.3 issue #1: 20 nhóm ở sidebar — khi co còn 56px, ẩn tên + nút ghim,
       chỉ giữ avatar canh giữa (đồng bộ cách .social-nav-item span ẩn). */
    .sn-sidebar-section-title,
    .sn-sidebar-group-name,
    .sn-sidebar-group-pin,
    .sn-sidebar-see-more,
    .sn-sidebar-create-btn span {
        display: none;
    }

    .sn-sidebar-group-link {
        justify-content: center;
    }

    .sn-sidebar-create-btn {
        justify-content: center;
    }
}

/* ── Hide left sidebar on mobile ── */
@media (max-width: 767px) {
    .social-sidebar-left {
        display: none;
    }

    .social-content {
        padding: 12px;
    }
}

/* ================================================================
   Social Network Feed — CSS
   ================================================================ */

/* ── Page wrapper ── */
.sf-page-wrapper {
    background: transparent;
    min-height: auto;
    /* V9.11 FU-7 (C1): lề dưới 24px (KHÔNG reset 0) — trước đây padding:0 ghi đè
       .social-content > * { padding-bottom } → các trang wrapper sát mép. Chỉ đáy → header trên không đụng. */
    padding: 0 0 24px;
}

/* ── Feed page layout: main + notification sidebar ── */
.sf-feed-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sf-feed-main {
    flex: 1;
    min-width: 0;
    max-width: 680px;
}

.sf-feed-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    /* V9.0 — sticky theo scrollport .social-layout (dưới header) → 16px dưới mép trên scrollport. */
    top: 16px;
}

@media (max-width: 1100px) {
    .sf-feed-sidebar {
        display: none;
    }
}

/* ================================================================
   NOTIFICATION SIDEBAR
   ================================================================ */
.social-noti-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-noti-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.social-noti-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    border-bottom: 1px solid #f0f0f0;
}

.social-noti-card-header .anticon {
    font-size: 16px;
    color: var(--ant-primary-color, #1890ff);
}

.social-noti-card-body {
    padding: 8px;
}

.social-noti-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    color: #bfbfbf;
    font-size: 13px;
}

.social-noti-empty .anticon {
    font-size: 28px;
}

.social-noti-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}

.social-noti-item:hover {
    background: #f5f5f5;
}

.social-noti-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.social-noti-icon--system {
    background: color-mix(in srgb, var(--ant-primary-color, #1890ff) 12%, transparent);
    color: var(--ant-primary-color, #1890ff);
}

.social-noti-icon--company {
    background: #f5f5f5;
    color: #595959;
}

.social-noti-content {
    flex: 1;
    min-width: 0;
}

.social-noti-message {
    font-size: 13px;
    color: #262626;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.social-noti-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #8c8c8c;
    margin-top: 4px;
}

.social-noti-time .anticon {
    font-size: 12px;
}

/* ── Search bar ── */
.sf-search-bar {
    margin-bottom: 16px;
}

.sf-search-input {
    border-radius: 20px;
}

/* ── Card base (shared) ── */
.sf-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    margin-bottom: 16px;
    overflow: hidden;
}

/* ── Empty state ── */
.sf-empty-state {
    text-align: center;
    padding: 56px 16px;
    color: #8c8c8c;
    font-size: 15px;
}
.sf-empty-state .anticon { font-size: 52px; margin-bottom: 14px; display: block; color: #d9d9d9; }

/* ── Load more ── */
.sf-load-more { text-align: center; padding: 8px 0; } /* V9.11 FU-7 (C3): bỏ 16px đáy — hết cộng dồn với page padding-bottom, gap không nhảy theo nút Xem thêm */
.sf-load-more .ant-btn { border-radius: 6px; font-weight: 600; width: 100%; max-width: 320px; }

/* ================================================================
   COMPOSER
   ================================================================ */
.sf-composer-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    padding: 12px 16px;
    margin-bottom: 16px;
}

/* Collapsed trigger */
.sf-composer-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.sf-composer-placeholder {
    flex: 1;
    background: #f0f2f5;
    border-radius: 20px;
    padding: 8px 16px;
    color: #8c8c8c;
    font-size: 15px;
    transition: background .15s;
    user-select: none;
}
.sf-composer-placeholder:hover { background: #e4e6ea; }

.sf-composer-shortcuts {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e8e8e8;
}

.sf-shortcut-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #595959;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}
.sf-shortcut-btn:hover { background: #f0f2f5; }
.sf-shortcut-btn .anticon { color: #45bd62; }

/* Expanded header */
.sf-composer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.sf-composer-title { font-size: 17px; font-weight: 700; color: #050505; }

.sf-composer-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: #e4e6ea;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #595959;
    transition: background .15s;
}
.sf-composer-close:hover { background: #d8dadf; }

.sf-composer-author {
    display: flex; align-items: center; gap: 8px;
    margin: 8px 0;
}
.sf-composer-author-name { font-weight: 600; font-size: 14px; }

/* Composer — MentionsEditor editable area */
.sf-composer-textarea-wrap {
    flex: 1;
}
.sf-composer-textarea-wrap .sf-mentions-editable {
    font-size: 16px;
    min-height: 80px;
    padding: 4px 0;
    color: #050505;
}

.sf-composer-image-previews {
    display: grid;
    gap: 4px;
    margin: 8px 0;
    border-radius: 8px;
    overflow: hidden;
}
.sf-composer-image-previews.sf-images-1 { grid-template-columns: 1fr; grid-template-rows: unset; }
.sf-composer-image-previews.sf-images-2 { grid-template-columns: 1fr 1fr; grid-template-rows: unset; }
.sf-composer-image-previews.sf-images-3 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: unset; }

.sf-composer-preview-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}
.sf-composer-preview-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

.sf-composer-preview-add {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1;
    background: #f0f2f5;
    border-radius: 4px;
    cursor: pointer;
    font-size: 24px;
    color: #595959;
    transition: background .15s;
}
.sf-composer-preview-add:hover { background: #e4e6ea; }

.sf-image-remove-btn {
    position: absolute; top: 4px; right: 4px;
    background: rgba(0,0,0,.5); color: #fff;
    border: none; border-radius: 50%;
    width: 24px; height: 24px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    transition: background .15s;
}
.sf-image-remove-btn:hover { background: rgba(0,0,0,.75); }

.sf-composer-footer {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.sf-composer-actions { display: flex; align-items: center; gap: 4px; }

.sf-upload-label {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 6px;
    font-size: 13px; font-weight: 500;
    cursor: pointer; color: #595959;
    transition: background .15s;
}
.sf-upload-label:hover { background: #f0f2f5; }
.sf-upload-label .anticon { color: #45bd62; font-size: 16px; }

.sf-composer-submit.ant-btn { border-radius: 6px; font-weight: 600; }
.sf-upload-error { color: #ff4d4f; font-size: 12px; margin-top: 6px; }

/* ================================================================
   POST CARD
   ================================================================ */
.sf-post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    margin-bottom: 16px;
    /* Sprint 43 V9.9 UAT v6.3 F2.1 — defensive padding-bottom 8px để bài Hidden/Draft/PendingApproval
       (không có action bar bên dưới attachment) vẫn có khoảng cách chuẩn với mép card. */
    padding-bottom: 8px;
    /* Không dùng overflow:hidden ở card để picker popup không bị cắt */
    overflow: visible;
}

/* Sprint 43 V9.9 UAT v6.4 F2.1 — reset card padding-bottom khi có .sf-approval-actions
   (button "Duyệt bài / Từ chối" đã có border-top + padding nội bộ → tránh giãn vùng button).
   `:has()` support: Chrome 105+ / FF 121+ / Safari 15.4+ (mọi browser hiện đại 2026 đều OK).
   Wrap @supports để graceful degradation nếu browser cũ — fallback: vùng button vẫn rộng hơn
   nhưng KHÔNG broken; v6.4 Bug 2 chỉ ảnh hưởng aesthetic. */
@supports selector(:has(*)) {
    .sf-post-card:has(.sf-approval-actions),
    /* V9.11 FU-5: bài có action bar → action bar tự lo khoảng cách dưới; bỏ 8px defensive của card
       để gap TRÊN (tới Divider) và DƯỚI (tới mép card) của nút action cân nhau. */
    .sf-post-card:has(.sf-post-actions) {
        padding-bottom: 0;
    }
}

/* V9.11 FU-7 (C4): card CUỐI bỏ lề dưới 16px → page padding-bottom (24px) là NGUỒN GAP ĐÁY DUY NHẤT
   → khoảng trống đáy ĐỀU mọi trang/trạng thái (trước đây lề card cuối làm feed/cover/duyệt-bài = 40px
   lệch với grid/detail = 24px). `.sf-page-wrapper >` phủ trang Duyệt bài (card là con TRỰC TIẾP của
   wrapper; các trang wrapper khác card nằm sâu trong .sf-cover-content-main nên không khớp). */
.sf-feed-main > .sf-post-card:last-child,
.sf-cover-content-main > .sf-post-card:last-child,
.sf-page-wrapper > .sf-post-card:last-child {
    margin-bottom: 0;
}

/* Header */
.sf-post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 8px;
}

.sf-post-meta { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.sf-post-author { font-weight: 700; font-size: 14px; color: #050505; }

/* Author hover card wrapper */
.sf-post-author-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 4px;
    font-size: 14px;
    color: #050505;
}

.sf-post-author-name-wrap {
    position: relative;
    display: inline-block;
    font-weight: 700;
    cursor: pointer;
}

.sf-post-author-name-wrap .sf-author-hover-card {
    display: flex;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    transform: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    padding: 14px;
    min-width: 210px;
    z-index: 1200;
    white-space: normal;
    pointer-events: none;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    color: #050505;
    font-size: 14px;
    cursor: default;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease .05s, visibility 0s linear .3s;
}

.sf-post-author-name-wrap .sf-author-hover-card::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 14px;
    border: 6px solid transparent;
    border-bottom-color: #fff;
}

.sf-post-author-name-wrap:hover .sf-author-hover-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .2s ease .4s, visibility 0s linear .4s;
}

/* ProfileHoverCard — component-based hover card */
.sf-hover-trigger {
    position: relative;
    display: inline;
}

/* V8.2 Round 3 — popup luôn teleport ra body + position: fixed.
   Default visibility: hidden để tránh 1 frame layout sai (popup render trong flow của
   .sf-hover-trigger trước khi JS teleport → body scrollbar xuất hiện/biến mất → giật giật).
   JS (social-network.bundle.js → HrmSocialNetwork.profilePopup) set visibility: visible sau khi teleport + position xong. */
.sf-profile-hover-card {
    position: fixed;
    top: 0;
    left: 0;
    visibility: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.16);
    min-width: 260px;
    z-index: 1200;
    white-space: normal;
    font-weight: normal;
    color: #050505;
    font-size: 14px;
    cursor: default;
    animation: sfHoverCardIn .15s ease;
}

@keyframes sfHoverCardIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sf-profile-hover-card-top {
    display: flex;
    gap: 12px;
    padding: 14px 14px 10px;
    align-items: flex-start;
}

.sf-hover-card-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    margin-top: 4px;
}

.sf-hover-card-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.sf-hover-card-status--active .sf-hover-card-status-dot { background: #52c41a; }
.sf-hover-card-status--leave .sf-hover-card-status-dot  { background: #faad14; }
.sf-hover-card-status--quit .sf-hover-card-status-dot   { background: #ff4d4f; }

.sf-profile-hover-card-actions {
    display: flex;
    gap: 0;
    border-top: 1px solid #f0f0f0;
}

.sf-profile-hover-card-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    font-size: 13px;
    color: #050505;
    text-decoration: none;
    transition: background .15s;
    cursor: pointer;
}

.sf-profile-hover-card-btn:first-child {
    border-radius: 0 0 0 12px;
}

.sf-profile-hover-card-btn:last-child {
    border-radius: 0 0 12px 0;
}

.sf-profile-hover-card-btn:hover {
    background: #f0f2f5;
    color: var(--ant-primary-color);
}

/* Meta row: time + status inline */
.sf-post-meta-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sf-post-time { font-size: 12px; color: #8c8c8c; }
.sf-post-edited { color: #8c8c8c; }

/* Click time → detail */
.sf-post-time-link {
    cursor: pointer;
}

.sf-post-time-link:hover {
    text-decoration: underline;
}

/* Status text thay thế chip */
.sf-post-status-text {
    font-size: 12px;
}

.sf-post-status-draft {
    color: #d46b08;
}

.sf-post-status-hidden {
    color: #8c8c8c;
}

.sf-post-menu-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    color: #595959;
    transition: background .15s;
    letter-spacing: 1px;
}
.sf-post-menu-btn:hover { background: #f0f2f5; }
.sf-post-menu-btn:focus { outline: none; box-shadow: none; }

/* V5: Post Badges */
.sf-post-badges {
    display: flex;
    gap: 6px;
    padding: 4px 16px 0;
    flex-wrap: wrap;
}

.sf-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    border: none;
    cursor: default;
}

.sf-badge-announcement {
    background: #fff1f0;
    color: #cf1322;
}

.sf-badge-topic {
    background: #f0f5ff;
    color: var(--ant-primary-color, #1677ff);
    cursor: pointer;
}

.sf-badge-topic:hover {
    background: #d6e4ff;
}

/* V5: Post Title */
.sf-post-title {
    padding: 4px 16px 0;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #050505;
    line-height: 1.4;
}

/* V5: Composer enhancements */
.sf-composer-title-input {
    margin-bottom: 8px;
}

/* V9.1 issue #3: nhắc nhập tiêu đề bắt buộc cho bài Thông báo */
.sf-composer-title-required {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -4px 0 8px;
    font-size: 12px;
    color: #d4380d;
}

.sf-composer-meta-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

/* Content */
.sf-post-content {
    padding: 4px 16px 12px;
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-wrap;
    color: #050505;
    word-break: break-word;
}

.sf-post-content-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 15;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-bottom: 0;
}

.sf-post-content-toggle {
    display: block;
    background: none;
    border: none;
    outline: none;
    color: var(--ant-primary-color, #1677ff);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 0 16px 12px;
    margin: 0;
}

.sf-post-content-toggle:hover { text-decoration: underline; }
.sf-post-content-toggle:focus { outline: none; box-shadow: none; }

/* Images */
/* V9.11 FU-6: ảnh có lề dưới 12px (khớp text/attachment) → không dính sát footer/action bar
   khi bài không có stats (không có Divider). Sửa cho mọi màn (feed/wall/group/pending/profile). */
.sf-post-images { width: 100%; overflow: hidden; margin-bottom: 12px; }

.sf-images-1 .sf-post-img {
    width: 100%; max-height: 500px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: filter .15s;
    will-change: filter;
    transform: translateZ(0);
}
.sf-images-1 .sf-post-img:hover { filter: brightness(.93); }

.sf-images-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}
.sf-images-2 .sf-post-img {
    width: 100%; height: 250px;
    object-fit: cover; cursor: pointer;
    transition: filter .15s;
    will-change: filter;
    transform: translateZ(0);
}
.sf-images-2 .sf-post-img:hover { filter: brightness(.93); }

.sf-images-3 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 150px 150px;
    gap: 2px;
}
.sf-images-3 .sf-post-img-main {
    grid-row: 1 / 3;
    width: 100%; height: 100%;
    object-fit: cover; cursor: pointer;
    transition: filter .15s;
    will-change: filter;
    transform: translateZ(0);
}
.sf-images-3 .sf-post-img-main:hover { filter: brightness(.93); }
.sf-images-3 .sf-post-img {
    width: 100%; height: 100%;
    object-fit: cover; cursor: pointer;
    transition: filter .15s;
    will-change: filter;
    transform: translateZ(0);
}
.sf-images-3 .sf-post-img:hover { filter: brightness(.93); }

/* Stats bar */
.sf-post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    font-size: 13px;
    color: #8c8c8c;
}
.sf-stat-reactions { display: flex; align-items: center; gap: 4px; }
.sf-stat-comments { cursor: pointer; margin-left: auto; }
.sf-stat-comments:hover { text-decoration: underline; color: #595959; }

/* Images overlay cho 4+ ảnh */
.sf-post-img-wrapper { position: relative; overflow: hidden; }
.sf-post-img-main-wrapper { grid-row: 1 / 3; }
.sf-images-more {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.45);
    color: #fff; font-size: 28px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
.sf-images-more:hover { background: rgba(0,0,0,.6); }

/* Action bar */
/* V9.11 FU-5: padding 8px 16px — ĐỒNG NHẤT với .sf-approval-actions (cùng 8px 16px); hai bên 16px
   thẳng lề header/content/stats; dọc 8px cân top/bottom (card đã reset padding-bottom khi có action bar).
   Modal có inline override riêng. */
.sf-post-actions {
    display: flex;
    padding: 8px 16px;
}

.sf-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #595959;
    cursor: pointer;
    transition: background .15s, color .15s;
    user-select: none;
}
.sf-action-btn:hover { background: #f0f2f5; }
.sf-action-btn:disabled { opacity: .6; cursor: default; }
.sf-action-btn.sf-action-reacted { color: var(--ant-primary-color, #1890ff); }
.sf-action-icon { font-size: 18px; line-height: 1; }

/* Reaction pop animation */
@keyframes sf-like-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.45); }
    100% { transform: scale(1); }
}
.sf-action-btn.sf-action-reacted .sf-action-icon {
    display: inline-block;
    animation: sf-like-pop .3s ease;
}

/* ── Emoji Reaction Picker ── */
/* Reaction container chiếm đúng 1/2 action bar, picker chỉ trigger khi hover vào button */
.sf-reaction-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* V9.11 FU-4: nút cảm xúc lấp đầy nửa của nó (flex:1) như nút Bình luận → 2 nút cân đều,
   hover-bg phủ đúng 50% mỗi bên (trước đây flex:none → bg chỉ ôm chữ, lệch + đổi rộng theo nhãn). */
.sf-reaction-container .sf-action-btn {
    flex: 1;
}

/* Khi bài khóa bình luận, container vẫn giữ 50% — nút Like không bị dịch chuyển */
.sf-post-actions > .sf-reaction-container:only-child {
    flex: 0 0 50%;
}

/* V9.3 issue #5: luôn giữ display:flex để transition opacity/visibility chạy được;
   mặc định ẩn + pointer-events:none để không "kẹt" nhận chuột khi đang fade. */
.sf-reaction-picker {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    bottom: 100%; /* sát container, không có gap — tránh hover bị mất */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    padding: 6px 10px 10px; /* padding-bottom làm visual space thay cho gap */
    gap: 4px;
    z-index: 100;
    white-space: nowrap;
    transition: opacity .12s ease, visibility .12s ease;
    transition-delay: 0s; /* ẩn ngay khi rời chuột */
}

/* Chỉ hiện picker khi hover vào button hoặc khi đang hover picker.
   transition-delay .3s → tránh bật ngay khi chỉ lướt chuột qua (issue #5). */
.sf-reaction-container .sf-action-btn:hover ~ .sf-reaction-picker,
.sf-reaction-picker:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: .3s;
}

.sf-reaction-option {
    font-size: 26px;
    line-height: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: transform .15s, background .15s;
    display: flex; align-items: center; justify-content: center;
}
.sf-reaction-option:hover {
    transform: scale(1.35) translateY(-4px);
    background: #f0f2f5;
}
.sf-reaction-option.sf-reaction-active {
    background: var(--sf-primary-bg);
    transform: scale(1.1);
}

/* Comment section */
.sf-comments-section { padding: 8px 16px 14px; }

/* ================================================================
   COMMENT LIST
   ================================================================ */
.sf-comment-list { }

.sf-load-more-comments {
    background: none; border: none;
    color: #595959; font-weight: 700; font-size: 13px;
    cursor: pointer; padding: 2px 0; margin-bottom: 8px;
    display: block;
}
.sf-load-more-comments:hover { text-decoration: underline; }

.sf-comment-item {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    align-items: flex-start;
}
.sf-comment-avatar { flex-shrink: 0; margin-top: 2px; }

.sf-comment-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.sf-comment-bubble {
    background: #f0f2f5;
    border-radius: 18px;
    padding: 7px 12px;
    display: inline-block;
    max-width: 420px;
    word-break: break-word;
    /* V9.3 issue #6: làm ngữ cảnh định vị cho badge cảm xúc (giao 1/4 góc) */
    position: relative;
}

/* V9.3 QA-fix #1: bubble CÓ badge cảm xúc → chừa đáy để badge không đè chữ nội dung,
   đồng thời badge nằm gọn trong bubble (không thò xuống che hàng nút Thích/Trả lời/Xóa). */
.sf-comment-bubble:has(> .sf-comment-reaction-badge) {
    padding-bottom: 16px;
}
.sf-comment-author {
    display: block;
    font-weight: 700;
    font-size: 12px;
    color: #050505;
    margin-bottom: 2px;
}

/* V8.2 Round 3 — hover trên tên tác giả comment: đồng bộ với tên tác giả bài (.sf-post-author-link) */
.sf-comment-author .sf-hover-trigger {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.sf-comment-author .sf-hover-trigger:hover {
    color: var(--ant-primary-color, #1890ff);
    text-decoration: underline;
}
.sf-comment-text {
    font-size: 14px;
    color: #050505;
    white-space: pre-wrap;
    word-break: break-word;
}

.sf-comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.sf-comment-time { font-size: 12px; color: #65676b; }
.sf-comment-edited { font-size: 12px; color: #65676b; font-style: italic; }
.sf-comment-action-btn {
    background: none; border: none; outline: none;
    font-size: 12px; color: #65676b;
    font-family: inherit;
    cursor: pointer; font-weight: 600;
    padding: 0; line-height: 1;
    transition: color .15s;
}
.sf-comment-action-btn:hover,
.sf-comment-action-btn:focus { color: var(--ant-primary-color, #1890ff); outline: none; }

.sf-comment-delete-btn {
    background: none; border: none; outline: none;
    font-size: 12px; color: #65676b;
    font-family: inherit;
    cursor: pointer; font-weight: 600;
    padding: 0; line-height: 1;
    transition: color .15s;
}
.sf-comment-delete-btn:hover,
.sf-comment-delete-btn:focus { color: #ff4d4f; outline: none; }

/* Comment inline edit */
.sf-comment-edit-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
}
/* Sprint 43 V9.9 UAT polish — edit comment theo Facebook UX pattern:
   match visual của .sf-comment-bubble (#f0f2f5 gray, rounded, no border).
   Áp dụng cho cả AntDesign TextArea legacy (.ant-input) lẫn MentionsEditor (.sf-comment-textarea-wrap). */
.sf-comment-edit-textarea.ant-input,
.sf-comment-edit-textarea.sf-comment-textarea-wrap {
    background: #f0f2f5 !important;
    border: none !important;
    border-radius: 18px !important;
    padding: 7px 12px !important;
    font-size: 14px;
    box-shadow: none !important;
}
.sf-comment-edit-textarea.sf-comment-textarea-wrap:focus-within {
    background: #e4e6e9 !important;
}
.sf-comment-edit-actions {
    display: flex;
    gap: 6px;
    padding-left: 4px;
}
.sf-comment-edit-save {
    background: var(--ant-primary-color, #1890ff); color: #fff;
    border: none; border-radius: 6px;
    padding: 3px 12px; font-size: 12px; font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.sf-comment-edit-save:hover { background: #096dd9; }
.sf-comment-edit-save:disabled { opacity: .6; cursor: default; }
.sf-comment-edit-cancel {
    background: #f0f2f5; color: #595959;
    border: none; border-radius: 6px;
    padding: 3px 12px; font-size: 12px; font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.sf-comment-edit-cancel:hover { background: #e4e6ea; }

/* ── Replies ── */
.sf-replies-section {
    margin-left: 40px;
    margin-top: 2px;
    margin-bottom: 4px;
}

.sf-reply-item .sf-comment-bubble {
    background: #e8eaed;
}

.sf-reply-input-row {
    /* Sprint 48 (UX) — tạo khoảng thở giữa ô soạn thảo trả lời và comment phía trên/dưới (trước đây dính sát). */
    margin-top: 10px;
    margin-bottom: 12px;
}

.sf-reply-cancel-btn {
    background: none; border: none;
    color: #8c8c8c; font-size: 14px;
    cursor: pointer; padding: 4px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
    flex-shrink: 0;
    align-self: center;
}
.sf-reply-cancel-btn:hover { background: #f0f2f5; color: #595959; }

/* Comment locked notice */
.sf-comment-locked {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #8c8c8c;
    font-size: 13px;
}

/* Comment input */
.sf-comment-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.sf-comment-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    padding: 7px 12px;
    gap: 6px;
    min-height: 36px;
}

/* Comment input — MentionsEditor editable area */
.sf-comment-input-wrap .sf-mentions-editor {
    flex: 1;
    min-width: 0;
    align-self: center;
}
.sf-comment-input-wrap .sf-mentions-editable {
    padding: 0;
    font-size: 14px;
    min-height: 22px;
    max-height: 120px;
    background: transparent;
    line-height: 1.5;
    overflow-y: auto;
    width: 100%;
}
/* Sprint 48 (UX) — khóa soạn thảo khi đang gửi: chặn tương tác + làm mờ nhẹ để báo trạng thái. */
.sf-mentions-editable--disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: default;
    user-select: none;
}
/* Keep plain textarea styles for edit mode */
.sf-comment-input-wrap textarea {
    padding: 0 !important;
    font-size: 14px;
    resize: none;
    height: 22px !important;
    min-height: unset !important;
    max-height: 120px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1.5;
    overflow-y: auto;
}

.sf-comment-send-btn {
    background: none; border: none;
    color: var(--ant-primary-color, #1890ff); font-size: 16px;
    cursor: pointer; padding: 4px 8px 4px 4px;
    flex-shrink: 0;
    display: flex; align-items: center;
    align-self: center;
    transition: color .15s, transform .15s;
    line-height: 1;
}
.sf-comment-send-btn:hover { color: #096dd9; transform: scale(1.2); }
.sf-comment-send-btn:disabled { opacity: .5; cursor: default; transform: none; }
/* Nút send disabled khi không có nội dung — xử lý qua disabled attribute từ C# */

/* ================================================================
   SKELETON
   ================================================================ */
.sf-skeleton-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    margin-bottom: 16px;
    padding: 16px;
    pointer-events: none;
}

.sf-skeleton-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.sf-skeleton-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400% 100%;
    animation: sf-shimmer 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

.sf-skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sf-skeleton-line {
    height: 12px; border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400% 100%;
    animation: sf-shimmer 1.4s ease-in-out infinite;
}
.sf-skeleton-line-short { width: 40%; }
.sf-skeleton-line-med   { width: 65%; }
.sf-skeleton-line-long  { width: 90%; }
.sf-skeleton-line-full  { width: 100%; }

.sf-skeleton-image {
    width: 100%; height: 200px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400% 100%;
    animation: sf-shimmer 1.4s ease-in-out infinite;
    margin-top: 12px;
}

/* YC4 V9.8: biến thể compact cho màn có banner (Group / CompanyWall / PersonalProfile)
   — skeleton thấp gọn hơn để không tràn dài bên dưới banner ~180px. */
.sf-skeleton-card--compact { margin-bottom: 12px; padding: 12px 16px; }
.sf-skeleton-card--compact .sf-skeleton-header { margin-bottom: 10px; }
.sf-skeleton-image--compact { height: 120px; margin-top: 10px; }

/* YC5 V9.8: avatar skeleton cỡ lớn cho banner profile/group (khớp .sf-cover-avatar 100px). */
.sf-skeleton-avatar--large { width: 100px; height: 100px; }

@keyframes sf-shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position:   0% 50%; }
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.sf-sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    padding: 16px;
    margin-bottom: 16px;
}
.sf-widget-title {
    font-weight: 700; font-size: 17px;
    color: #050505; margin-bottom: 12px;
}
.sf-widget-stat {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: #595959;
    padding: 7px 0;
    border-bottom: 1px solid #f0f2f5;
}
.sf-widget-stat:last-child { border-bottom: none; }
.sf-widget-stat .anticon { font-size: 18px; color: var(--ant-primary-color, #1890ff); }
.sf-widget-stat-value { font-weight: 700; color: #050505; }

/* ================================================================
   LIGHTBOX
   ================================================================ */
/* Sprint 32 / V8.8 — Inline image trong ContentHtml: cursor zoom-in để hint click xem to.
   Loại trừ ảnh upload riêng (sf-post-images grid) — đã có lightbox Razor riêng. */
.sf-post-content img:not(.ant-avatar) {
    cursor: zoom-in;
    max-width: 100%;
    height: auto;
}

/* Sprint 33 V8.9 — Inline image align (Tiptap bubble menu sinh class này khi compose) */
.sf-post-content img.hrm-img-align-left,
.sf-post-content-html img.hrm-img-align-left {
    float: left;
    margin: 0 12px 8px 0;
    max-width: 100%;
}

.sf-post-content img.hrm-img-align-right,
.sf-post-content-html img.hrm-img-align-right {
    float: right;
    margin: 0 0 8px 12px;
    max-width: 100%;
}

.sf-post-content img.hrm-img-align-center,
.sf-post-content-html img.hrm-img-align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

/* Clearfix cho paragraph chứa float image — tránh container bị collapse */
.sf-post-content::after,
.sf-post-content-html::after {
    content: "";
    display: block;
    clear: both;
}

.sf-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 9999;
    display: flex; align-items: safe center; justify-content: safe center;
    overflow: auto; /* S32 — ảnh dọc cao hơn viewport → cho scroll thay vì ép max-height bóp hẹp */
}
.sf-lightbox-img {
    max-width: 90vw; max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
/* S32 — ảnh dọc (portrait, height > width * 1.5): bỏ giới hạn chiều cao, fit theo chiều rộng,
   user scroll dọc trong overlay để xem hết. JS apply class này khi <img> load + nhận natural size. */
.sf-lightbox-img-tall {
    max-height: none;
    width: min(70vw, 720px);
    max-width: 90vw;
    height: auto;
}
.sf-lightbox-close {
    position: fixed; top: 16px; right: 16px;
    background: rgba(255,255,255,.15); color: #fff;
    border: none; border-radius: 50%;
    width: 40px; height: 40px;
    cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
    z-index: 10000;
}
.sf-lightbox-close:hover { background: rgba(255,255,255,.28); }

.sf-lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); color: #fff;
    border: none; border-radius: 50%;
    width: 44px; height: 44px;
    cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
    z-index: 10000;
}
.sf-lightbox-nav:hover { background: rgba(255,255,255,.28); }
.sf-lightbox-prev { left: 16px; }
.sf-lightbox-next { right: 16px; }

.sf-lightbox-counter {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.85); font-size: 14px;
    z-index: 10000;
    background: rgba(0,0,0,.35);
    padding: 3px 12px; border-radius: 12px;
}

/* ================================================================
   MODAL OVERRIDES
   ================================================================ */
.sf-comment-modal .ant-modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 100px);
    overflow: hidden;
}

.sf-comment-modal .ant-modal-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.sf-comment-modal-scroll-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.sf-comment-modal .sf-comment-input-row,
.sf-comment-modal .sf-comment-locked {
    flex-shrink: 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
}

/* V9.11 FU-3: bỏ nền xám để poll (và toàn bộ post) trong modal trông giống hệt feed/chi tiết.
   Trước đây nền #f7f8fa trùng màu .sf-poll-widget → thẻ poll "tan" vào nền (xám chồng xám). */
.sf-comment-modal-post {
    background: #fff;
    border-radius: 8px;
    padding: 12px 0;
    margin-bottom: 4px;
}

.sf-comment-modal-post .sf-post-content {
    font-size: 14px;
}

.sf-comment-modal-post .sf-post-images {
    overflow: hidden;
}

.sf-comment-modal-post .sf-images-3 {
    grid-template-rows: 110px 110px;
}

.sf-comment-modal-post .sf-images-2 .sf-post-img {
    height: 160px;
}

.sf-comment-modal-post .sf-post-img,
.sf-comment-modal-post .sf-post-img-main {
    cursor: pointer;
    object-fit: cover;
}

@media (max-width: 720px) {
    .sf-comment-modal .ant-modal {
        max-width: 95vw !important;
    }
}

.sf-composer-modal .ant-modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 100px);
    overflow: hidden;
}

.sf-composer-modal .ant-modal-body {
    padding: 0 16px 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.sf-composer-scroll-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 0 0 4px;
}

.sf-composer-modal .sf-composer-footer {
    flex-shrink: 0;
}

.sf-composer-modal .sf-composer-author {
    margin: 0 0 10px;
}

.sf-composer-modal .sf-composer-textarea-wrap .sf-mentions-editable {
    font-size: 16px;
}

/* ── CkEditor5 in Composer ── */
.sf-composer-editor-wrap {
    margin: 8px 0;
    max-width: 100%;
    overflow: hidden;
}

.sf-composer-editor-wrap .ck-editor__editable {
    min-height: 120px;
    max-height: 360px;
    font-size: 15px;
    color: #050505;
    max-width: 100%;
    overflow-x: hidden;
    word-break: break-word;
}

.sf-composer-editor-wrap .ck.ck-editor {
    max-width: 100%;
}

.sf-composer-editor-wrap .ck.ck-editor__top {
    border-bottom: 1px solid #e8e8e8;
}

.sf-composer-editor-wrap .ck.ck-toolbar {
    border: none;
    background: #fafafa;
}

.sf-composer-editor-wrap .ck.ck-editor__main > .ck-editor__editable {
    border: 1px solid #d9d9d9;
    border-radius: 0 0 6px 6px;
}

.sf-composer-editor-wrap .ck.ck-editor__main > .ck-editor__editable:focus {
    border-color: var(--ant-primary-color, #f60);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--ant-primary-color, #f60) 20%, transparent);
}

/* ── HTML Content in Post Card ── */
.sf-post-content-html h1,
.sf-post-content-html h2,
.sf-post-content-html h3,
.sf-post-content-html h4 {
    margin: 8px 0 4px;
    line-height: 1.4;
}

.sf-post-content-html h2 { font-size: 1.3em; }
.sf-post-content-html h3 { font-size: 1.15em; }

.sf-post-content-html p {
    margin: 0 0 8px;
}

.sf-post-content-html ul,
.sf-post-content-html ol {
    margin: 4px 0 8px;
    padding-left: 24px;
}

.sf-post-content-html blockquote {
    border-left: 3px solid #d9d9d9;
    margin: 8px 0;
    padding: 4px 12px;
    color: #666;
}

.sf-post-content-html table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
}

.sf-post-content-html table td,
.sf-post-content-html table th {
    border: 1px solid #d9d9d9;
    padding: 6px 10px;
    font-size: 13px;
}

.sf-post-content-html table th {
    background: #fafafa;
    font-weight: 600;
}

.sf-post-content-html a {
    color: var(--ant-primary-color, #1677ff);
    text-decoration: none;
}

.sf-post-content-html a:hover {
    text-decoration: underline;
}

.sf-post-content-html img {
    max-width: 100%;
    border-radius: 4px;
}

/* ================================================================
   SEARCH BAR (đặt trong sidebar)
   ================================================================ */
.sf-search-bar {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}


.sf-search-input.ant-input-affix-wrapper {
    border-radius: 20px;
    background: #f0f2f5;
    border-color: transparent;
    font-size: 14px;
}

.sf-search-input.ant-input-affix-wrapper .ant-input {
    background: transparent !important;
}

.sf-search-input.ant-input-affix-wrapper:hover,
.sf-search-input.ant-input-affix-wrapper-focused {
    border-color: #d9d9d9;
    background: #fff;
}

.sf-search-input.ant-input-affix-wrapper:hover .ant-input,
.sf-search-input.ant-input-affix-wrapper-focused .ant-input {
    background: transparent !important;
}

/* ================================================================
   POLL WIDGET (hiển thị trên PostCard)
   ================================================================ */
.sf-poll-widget {
    margin: 8px 0 12px; /* V9.11 FU-6: lề dưới 4px→12px khớp text/ảnh/attachment, không dính footer */
    padding: 12px 14px;
    background: #f7f8fa;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.sf-poll-question {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.sf-poll-options {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sf-poll-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1.5px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    overflow: hidden;
    transition: border-color .15s, background .15s;
    text-align: left;
}

.sf-poll-option:not(:disabled):hover {
    border-color: var(--ant-primary-color, #1890ff);
    color: var(--ant-primary-color, #1890ff);
}

.sf-poll-option:disabled {
    cursor: default;
}

/* Option không thể vote (đã vote rồi hoặc đã khóa) — visual disabled nhưng vẫn cho pointer events */
.sf-poll-option.sf-poll-option-no-vote {
    cursor: default;
}

.sf-poll-option.sf-poll-option-no-vote:not(.sf-poll-option-voted):hover {
    border-color: #d9d9d9;
    color: #333;
}

.sf-poll-option-voted {
    border-color: var(--ant-primary-color, #1890ff);
    color: var(--ant-primary-color, #1890ff);
    font-weight: 600;
}

/* Thanh kết quả nền */
.sf-poll-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--sf-primary-bg);
    border-radius: 4px;
    transition: width .4s ease;
    z-index: 0;
}

.sf-poll-option-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sf-poll-check {
    color: var(--ant-primary-color, #1890ff);
    font-size: 14px;
}

.sf-poll-percent {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: #555;
    font-weight: 500;
    flex-shrink: 0;
}

.sf-poll-footer {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
}

.sf-poll-total { flex-shrink: 0; }

.sf-poll-hint {
    color: #aaa;
}

/* Expiry badge — pill style (F5) */
.sf-poll-expiry-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    width: fit-content;
}

.sf-poll-expiry-active {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.sf-poll-expiry-soon {
    background: #fff7e6;
    color: #d46b08;
    border: 1px solid #ffd591;
}

.sf-poll-expiry-expired {
    background: #f5f5f5;
    color: #8c8c8c;
    border: 1px solid #d9d9d9;
}

.sf-poll-expiry-dt {
    font-weight: 400;
    font-size: 11px;
    opacity: .8;
}

/* Nút xem danh sách người vote */
.sf-poll-voters-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ant-primary-color, #1890ff);
    font-size: 11px;
    padding: 0 2px;
    line-height: 1;
    text-decoration: underline;
    transition: color .15s;
    pointer-events: all;
}

.sf-poll-voters-btn:hover { color: #096dd9; }

.sf-poll-vote-count {
    font-size: 11px;
    color: #888;
}

/* Danh sách người bầu chọn trong modal */
.sf-poll-voters-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sf-poll-voters-list li {
    padding: 7px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
    color: #333;
}

.sf-poll-voters-list li:last-child { border-bottom: none; }

/* Nút xem thêm / thu gọn option poll */
.sf-poll-show-more-btn {
    width: 100%;
    margin-top: 4px;
    padding: 6px 12px;
    background: none;
    border: 1.5px dashed #d9d9d9;
    border-radius: 6px;
    color: #595959;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, color .15s, background .15s;
    -webkit-appearance: none;
    appearance: none;
}

.sf-poll-show-more-btn:hover {
    border-color: var(--ant-primary-color, #1890ff);
    color: var(--ant-primary-color, #1890ff);
    background: var(--sf-primary-bg);
}

.sf-poll-show-more-btn:focus { outline: none; }

/* Nút khóa poll — text thuần, căn phải (F3) */
.sf-poll-lock-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    color: #8c8c8c;
    cursor: pointer;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color .15s;
    -webkit-appearance: none;
    appearance: none;
}

.sf-poll-lock-btn:hover { color: #ff4d4f; text-decoration: underline; }
.sf-poll-lock-btn:disabled { opacity: .5; cursor: default; }

.sf-poll-unlock-btn { color: #8c8c8c; }
.sf-poll-unlock-btn:hover { color: #52c41a; text-decoration: underline; }

.sf-poll-lock-btn:focus { outline: none; }

/* Expiry section trong composer */
.sf-poll-expiry-section {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sf-poll-expiry-label {
    font-size: 12px;
    color: #595959;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sf-poll-expiry-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sf-poll-expiry-preset {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    border: 1.5px solid #d9d9d9;
    background: #fff;
    color: #595959;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s, color .15s, background .15s;
    white-space: nowrap;
}

.sf-poll-expiry-preset:hover {
    border-color: var(--ant-primary-color, #1890ff);
    color: var(--ant-primary-color, #1890ff);
}

.sf-poll-expiry-preset:focus { outline: none; }

.sf-poll-expiry-preset.sf-poll-preset-active {
    border-color: var(--ant-primary-color, #1890ff);
    background: var(--ant-primary-color, #1890ff);
    color: #fff;
}

.sf-poll-expiry-picker {
    width: 100%;
    margin-top: 2px;
}

/* ================================================================
   POLL COMPOSER (trong SocialPostComposer modal)
   ================================================================ */
.sf-mentions-selector {
    margin: 10px 0 4px;
    padding: 12px;
    background: #f6ffed;
    border-radius: 10px;
    border: 1px solid #b7eb8f;
}

.sf-mentions-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #389e0d;
}

/* YC3 V9.8: đồng bộ composer với SocialPollWidget (nền xám trung tính, không xanh)
   để phần thêm/sửa poll cùng "ngôn ngữ thị giác" với phần hiển thị. */
.sf-poll-composer {
    margin: 10px 0 4px;
    padding: 12px 14px;
    background: #f7f8fa;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.sf-poll-composer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sf-poll-composer-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}

.sf-poll-remove-btn {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    color: #999;
    padding: 4px 6px;
    border-radius: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
    -webkit-appearance: none;
    appearance: none;
}

.sf-poll-remove-btn:hover {
    color: #ff4d4f;
    background: #fff1f0;
}

.sf-poll-remove-btn:focus { outline: none; }

/* V9.3 QA-fix #2: ghi chú khi sửa poll — chỉ đổi câu hỏi/thời hạn, lựa chọn khóa. */
.sf-poll-locked-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    font-size: 12px;
    color: #874d00;
    line-height: 1.4;
}

.sf-poll-question-input {
    margin-bottom: 8px;
}

.sf-poll-option-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.sf-poll-option-input {
    flex: 1;
}

.sf-poll-option-remove {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    color: #aaa;
    font-size: 16px;
    padding: 2px;
    line-height: 1;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: color .15s;
}

.sf-poll-option-remove:hover { color: #ff4d4f; }
.sf-poll-option-remove:focus { outline: none; }

.sf-poll-add-option-btn {
    background: none;
    border: 1.5px dashed #d9d9d9;
    border-radius: 6px;
    color: #595959;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 12px;
    width: 100%;
    text-align: center;
    margin-top: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s, background .15s, color .15s;
}

.sf-poll-add-option-btn:hover {
    border-color: var(--ant-primary-color, #1890ff);
    color: var(--ant-primary-color, #1890ff);
    background: var(--sf-primary-bg);
}

.sf-poll-add-option-btn:focus { outline: none; }

/* ================================================================
   ANT DESIGN OVERRIDES (scoped to sf- context)
   ================================================================ */
.sf-post-card .ant-dropdown-menu-item-danger { color: #ff4d4f; }
.sf-post-card .ant-divider { margin: 0; }
.sf-composer-card .ant-checkbox-wrapper { font-size: 13px; color: #595959; }

/* Reset button mặc định — xóa viền đen của browser */
.sf-composer-modal button,
.sf-poll-composer button,
.sf-composer-card button {
    -webkit-appearance: none;
    appearance: none;
}

.sf-composer-modal button:focus,
.sf-poll-composer button:focus,
.sf-composer-card button:focus {
    outline: none;
    box-shadow: none;
}

/* Ant Design button disabled — bỏ border tối */
.sf-composer-modal .ant-btn-primary[disabled],
.sf-composer-modal .ant-btn-primary:disabled {
    border-color: #d9d9d9 !important;
    color: rgba(0,0,0,.25) !important;
    background: #f5f5f5 !important;
    box-shadow: none !important;
}

/* Poll question input trong composer */
.sf-poll-question-input.ant-input {
    border-radius: 8px;
    font-weight: 500;
}

.sf-poll-option-input.ant-input {
    border-radius: 8px;
}

/* ================================================================
   ATTACHMENTS — hiển thị trên PostCard (F1)
   ================================================================ */
/* Sprint 43 V9.9 UAT v6.3 F2.1 — margin + padding-bottom (padding không collapse như margin),
   combined với .sf-post-card padding-bottom defensive (bên dưới) để bài Hidden/Draft/PendingApproval
   không bị attachment sát mép card ở mọi surface (PersonalProfile/GroupDetail/PendingApprovals). */
.sf-post-attachments {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 6px 0 8px;
    padding: 0 16px 4px;
}

.sf-attachment-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background .15s, border-color .15s;
    -webkit-appearance: none;
    appearance: none;
}

.sf-attachment-card:hover {
    background: var(--sf-primary-bg);
    border-color: var(--sf-primary-border);
}

.sf-attachment-card-icon {
    font-size: 20px;
    flex-shrink: 0;
    color: #595959;
}

.sf-attachment-card-icon.anticon-file-pdf { color: #ff4d4f; }
.sf-attachment-card-icon.anticon-file-word { color: var(--ant-primary-color, #1890ff); }
.sf-attachment-card-icon.anticon-file-excel { color: #52c41a; }

.sf-attachment-card-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #262626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.sf-attachment-card-size {
    font-size: 11px;
    color: #8c8c8c;
    flex-shrink: 0;
}

.sf-attachment-card-dl {
    font-size: 14px;
    color: #8c8c8c;
    flex-shrink: 0;
}

/* Nút toggle thu gọn / mở rộng attachment list */
.sf-attachment-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 4px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #8c8c8c;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    transition: color .15s;
    -webkit-appearance: none;
    appearance: none;
}

.sf-attachment-toggle:hover {
    color: var(--ant-primary-color, #1890ff);
}

.sf-attachment-toggle:focus { outline: none; }

.sf-attachment-toggle-icon {
    font-size: 15px;
    flex-shrink: 0;
}

.sf-attachment-toggle-chevron {
    margin-left: auto;
    font-size: 11px;
    flex-shrink: 0;
}

/* ================================================================
   ATTACHMENTS — trong Composer (F1)
   ================================================================ */
.sf-composer-attachments {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0 2px;
}

.sf-attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
}

.sf-attachment-icon {
    font-size: 16px;
    color: #595959;
    flex-shrink: 0;
}

.sf-attachment-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    color: #262626;
}

.sf-attachment-size {
    font-size: 11px;
    color: #8c8c8c;
    flex-shrink: 0;
}

.sf-attachment-remove {
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: color .15s;
}

.sf-attachment-remove:hover { color: #ff4d4f; }
.sf-attachment-remove:focus { outline: none; }

/* Label upload tệp trong composer */
.sf-upload-label-doc { color: #fa8c16; }
.sf-upload-label-doc .anticon { color: #fa8c16; }

/* ================================================================
   GLOBAL RULE — reset button cho mọi sf- modal
   Thêm selector khi tạo modal mới để tránh border lặp lại
   V9.11 FU-3: LOẠI TRỪ nút poll (class sf-poll-*) — chúng tự quản viền/style riêng
   (đáp án có viền, đáp án đã vote viền xanh, nút "Thêm lựa chọn"/preset có viền).
   Reset border:none vô tình làm poll trong modal khác hẳn ngoài feed.
   ================================================================ */
.sf-composer-modal button:not([class*="sf-poll"]),
.sf-comment-modal button:not([class*="sf-poll"]),
.sf-reactor-modal button:not([class*="sf-poll"]) {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    outline: none;
}

.sf-composer-modal button:focus,
.sf-comment-modal button:focus,
.sf-reactor-modal button:focus {
    outline: none;
    box-shadow: none;
}

/* ================================================================
   REACTION VIEWER MODAL
   ================================================================ */
.sf-reactor-modal .ant-modal-body {
    padding: 0 0 8px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

/* Tab bar */
.sf-reactor-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 16px 4px;
    border-bottom: 1px solid #f0f2f5;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.sf-reactor-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    background: transparent;
    color: #595959;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.sf-reactor-tab:hover {
    background: #f0f2f5;
    color: #262626;
}

.sf-reactor-tab-active {
    background: var(--sf-primary-bg);
    color: var(--ant-primary-color, #1890ff);
    font-weight: 600;
}

.sf-reactor-tab-count {
    font-size: 12px;
    opacity: .75;
}

/* Danh sách */
.sf-reactor-list {
    overflow-y: auto;
    padding: 8px 12px;
    flex: 1;
    min-height: 100px;
}

.sf-reactor-loading {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.sf-reactor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid #f0f2f5;
}

.sf-reactor-item:last-child {
    border-bottom: none;
}

.sf-reactor-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.sf-reactor-emoji {
    position: absolute;
    bottom: -4px;
    right: -6px;
    font-size: 14px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}

.sf-reactor-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #262626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.sf-reactor-time {
    font-size: 11px;
    color: #8c8c8c;
    flex-shrink: 0;
}

/* ── Hashtag styles ── */
.sf-hashtag {
    color: var(--ant-primary-color, #1677ff);
    cursor: pointer;
    font-weight: 500;
}

.sf-hashtag:hover {
    text-decoration: underline;
}

/* V8.2 Round 3 — Hashtag inline trong ContentHtml: non-link, click delegation filter trong wall.
   Chỉ màu chữ primary, hover underline, KHÔNG nền xanh nhạt. */
.sf-post-content .hrm-hashtag,
.sf-post-content-html .hrm-hashtag {
    cursor: pointer;
    color: var(--ant-primary-color, #1890ff);
    font-weight: 500;
    text-decoration: none;
}

.sf-post-content .hrm-hashtag:hover,
.sf-post-content-html .hrm-hashtag:hover {
    text-decoration: underline;
}

/* Hashtag chips dưới nội dung bài */
.sf-post-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 12px;
}

.sf-hashtag-chip {
    background: var(--sf-primary-bg);
    color: var(--ant-primary-color, #1677ff);
    border: 1px solid var(--sf-primary-border);
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.6;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
    transition: background 0.15s;
}

.sf-hashtag-chip:hover {
    background: var(--sf-primary-bg-hover);
}

.sf-hashtag-chip:focus {
    outline: none;
    box-shadow: none;
}

/* Hashtag filter bar */
.sf-hashtag-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--sf-primary-bg);
    border: 1px solid var(--sf-primary-border);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 12px;
    font-size: 14px;
}

.sf-hashtag-filter-label {
    flex: 1;
    color: var(--ant-primary-color, #1677ff);
}

.sf-hashtag-filter-clear {
    background: none;
    border: none;
    color: #8c8c8c;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
    padding: 0;
}

.sf-hashtag-filter-clear:focus {
    outline: none;
    box-shadow: none;
}

.sf-hashtag-filter-clear:hover {
    color: #ff4d4f;
}

/* Sidebar hashtag widget */
.sf-hashtag-widget {
    margin-top: 12px;
}

.sf-hashtag-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sf-hashtag-trend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
    transition: background 0.15s;
}

.sf-hashtag-trend-item:focus {
    outline: none;
    box-shadow: none;
}

.sf-hashtag-trend-item:hover {
    background: #f5f5f5;
}

.sf-hashtag-trend-tag {
    color: var(--ant-primary-color, #1677ff);
    font-weight: 500;
    font-size: 13px;
}

.sf-hashtag-trend-count {
    color: #8c8c8c;
    font-size: 11px;
}

/* ── Mentions ── */
.sf-post-mentions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 16px 4px;
}

.sf-mentions-label {
    font-size: 12px;
    color: #8c8c8c;
}

/* V8.2 Round 2 — Issue 3+4A: chip cuối bài chỉ chữ xanh, không background */
.sf-mention-chip {
    display: inline-flex;
    align-items: center;
    color: var(--ant-primary-color, #1677ff);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.sf-mention-chip:hover {
    text-decoration: underline;
}

/* V8.2 Round 2 — Gỡ .sf-mention-hover-card (popup cũ) thay bằng ProfileHoverCard (teleport JS) */

/* V8.2 Round 2 — Inline mention tag (comment text) chỉ chữ xanh, popup dùng ProfileHoverCard */
.sf-mention-tag {
    display: inline;
    color: var(--ant-primary-color, #1677ff);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    line-height: inherit;
}

.sf-mention-tag:hover {
    text-decoration: underline;
}

.sf-hover-card-avatar {
    flex-shrink: 0;
}

.sf-hover-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sf-hover-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-hover-card-code {
    font-size: 11px;
    color: #8c8c8c;
    font-family: monospace;
}

.sf-hover-card-position {
    font-size: 12px;
    color: #595959;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-hover-card-dept {
    font-size: 12px;
    color: #8c8c8c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Mention Picker (trong composer) ── */
.sf-mention-picker {
    margin: 8px 0 0;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.sf-mention-picker .ant-input-affix-wrapper {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    box-shadow: none;
}

.sf-mention-picker-loading {
    padding: 10px 12px;
    font-size: 13px;
    color: #8c8c8c;
}

.sf-mention-suggestions {
    max-height: 200px;
    overflow-y: auto;
}

.sf-mention-suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.sf-mention-suggestion-item:last-child {
    border-bottom: none;
}

.sf-mention-suggestion-item:hover {
    background: #f5f5f5;
}

.sf-mention-suggestion-name {
    font-size: 13px;
    color: #262626;
    font-weight: 500;
}

.sf-mention-suggestion-code {
    font-size: 12px;
    color: var(--ant-primary-color, #1677ff);
}

.sf-mention-no-results {
    padding: 10px 12px;
    font-size: 13px;
    color: #8c8c8c;
    text-align: center;
}

/* ================================================================
   MENTIONS EDITOR — Contenteditable + Dropdown
   ================================================================ */

.sf-mentions-editor {
    position: relative;
    flex: 1;
}

.sf-mentions-editable {
    outline: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.5;
    color: #050505;
}

.sf-mentions-editable.is-empty::before {
    content: attr(data-placeholder);
    color: #bfbfbf;
    pointer-events: none;
}

/* V8.2 Round 2 — .sf-mention-chip thống nhất chỉ chữ xanh, không background
   (rule chính ở trên — block này giữ cho chip trong MentionsEditor .sf-mentions-editable) */
.sf-mentions-editable .sf-mention-chip {
    background: none;
    border-radius: 0;
    padding: 0;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    color: var(--ant-primary-color, #1677ff);
    cursor: default;
    user-select: all;
    white-space: nowrap;
}

.sf-mentions-dropdown {
    position: fixed;
    z-index: 1060;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,.15);
    max-height: 200px;
    overflow-y: auto;
    min-width: 260px;
    padding: 4px 0;
}

.sf-mentions-dropdown--up {
    transform: translateY(-100%);
}

.sf-mentions-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background .15s;
}

.sf-mentions-dropdown-item:hover,
.sf-mentions-dropdown-item.active {
    background: #f5f5f5;
}

.sf-mentions-dropdown-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sf-mentions-dropdown-name {
    font-weight: 500;
    font-size: 14px;
    color: #050505;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-mentions-dropdown-code {
    font-size: 12px;
    color: var(--ant-primary-color, #1890ff);
}

/* V9.0 issue #3: chức danh + phòng ban trong popup mention comment (đồng bộ với popup viết bài) */
.sf-mentions-dropdown-meta {
    font-size: 12px;
    color: #65676b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* V9.0 fix #7: banner lý do từ chối hiển thị luôn trong card bài bị từ chối */
.sf-post-rejection-reason {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    /* Inset 16px 2 bên cho khớp lề header/title/content (card không có padding riêng). */
    margin: 8px 16px;
    padding: 8px 12px;
    background: #fff1f0;
    border: 1px solid #ffccc7;
    border-radius: 6px;
    color: #cf1322;
    font-size: 13px;
    line-height: 1.5;
}

.sf-post-rejection-reason .anticon {
    margin-top: 2px;
    flex-shrink: 0;
}

/* V9.0 issue #8: sub-filter "Chờ duyệt / Đã từ chối" ở trang/tab duyệt bài */
.sf-approval-subfilter {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.sf-approval-subfilter-btn {
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 16px;
    padding: 4px 16px;
    font-size: 13px;
    cursor: pointer;
    color: #050505;
}

.sf-approval-subfilter-btn:hover {
    border-color: var(--ant-primary-color, #1890ff);
    color: var(--ant-primary-color, #1890ff);
}

.sf-approval-subfilter-btn.active {
    background: var(--ant-primary-color, #1890ff);
    border-color: var(--ant-primary-color, #1890ff);
    color: #fff;
}

/* Draft confirm modal actions */
.sf-draft-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* ── Feed Filter Tabs ── */
.sf-filter-tabs {
    display: flex;
    gap: 4px;
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    overflow-x: auto;
}

.sf-filter-tab {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #65676b;
    white-space: nowrap;
    transition: all 0.2s;
    text-align: center;
}

.sf-filter-tab:hover {
    background: #f0f2f5;
    color: #1877f2;
}

.sf-filter-tab-active {
    background: #e7f3ff;
    color: #1877f2;
}

/* ── Visibility icon ── */
.sf-post-visibility-icon {
    font-size: 12px;
    margin-left: 4px;
    opacity: 0.7;
}

.sf-post-topic-inline {
    font-size: 12px;
    color: var(--ant-primary-color);
    cursor: default;
    margin-left: 4px;
    font-weight: 500;
}

.sf-post-topic-clickable {
    cursor: pointer;
}

.sf-post-topic-clickable:hover {
    text-decoration: underline;
}

/* ── Read Confirmation ── */
.sf-read-confirmation {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f0f7ff;
    border-top: 1px solid #e4e6eb;
}

.sf-read-confirm-btn {
    padding: 6px 16px;
    border: 1px solid #1877f2;
    background: #fff;
    color: #1877f2;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.sf-read-confirm-btn:hover {
    background: #e7f3ff;
}

.sf-read-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sf-read-confirmed-badge {
    font-size: 13px;
    color: #52c41a;
    font-weight: 500;
}

.sf-read-count {
    font-size: 12px;
    color: #65676b;
}

.sf-read-count:hover {
    text-decoration: underline;
}

/* Read confirmation modal list */
.sf-read-confirm-list {
    max-height: 400px;
    overflow-y: auto;
}

.sf-read-confirm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sf-read-confirm-item:last-child {
    border-bottom: none;
}

.sf-read-confirm-name {
    font-weight: 500;
    font-size: 14px;
}

.sf-read-confirm-time {
    font-size: 12px;
    color: #65676b;
}

/* ── Comment 3-level threading ── */
.sf-comment-level-2 {
    margin-left: 32px;
}

.sf-comment-level-3 {
    margin-left: 64px;
}

.sf-comment-like-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    font-weight: 600;
    color: #65676b;
    padding: 0;
    line-height: 1;
}

.sf-comment-like-btn:hover {
    color: var(--ant-primary-color, #1890ff);
}

.sf-comment-like-btn.sf-comment-liked {
    color: #1877f2;
    font-weight: 600;
}

.sf-comment-like-count {
    font-size: 11px;
    color: #65676b;
    margin-left: 4px;
}

/* ── Comment Reaction Container (giống post nhưng nhỏ hơn) ── */
.sf-comment-reaction-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* V9.3 issue #5: delay hover đồng bộ với picker bài viết. */
.sf-comment-reaction-picker {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    padding: 4px 6px 8px;
    gap: 2px;
    z-index: 100;
    white-space: nowrap;
    transition: opacity .12s ease, visibility .12s ease;
    transition-delay: 0s;
}

.sf-comment-reaction-container:hover .sf-comment-reaction-picker {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: .3s;
}

.sf-comment-reaction-picker .sf-reaction-option {
    font-size: 20px;
    padding: 2px;
}

/* ── Comment Reaction Badge ──
   V9.3 issue #6: giao ~1/4 góc dưới-phải bubble (kiểu Facebook) thay vì xếp trên-dưới.
   Dùng negative margin trong flow (không position:absolute) → không tràn với bubble hẹp,
   không che hàng nút ở .sf-comment-meta (badge nằm phía trên meta trong DOM). */
.sf-comment-reaction-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fff;
    border: 1px solid #e4e6ea;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 12px;
    color: #65676b;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    /* absolute trong .sf-comment-bubble → hug góc dưới-phải, giao ~1/4 với MỌI độ rộng bubble.
       QA-fix #1: bottom:0 (nằm sát đáy bubble, KHÔNG thò xuống che hàng nút meta);
       right:-6px nhô nhẹ ra mép phải để tạo cảm giác giao góc (kiểu Facebook). */
    position: absolute;
    right: -6px;
    bottom: 0;
    z-index: 2;
    /* badge chỉ hiển thị → không chặn click nút Thích/Trả lời ở .sf-comment-meta nếu chồng lấn */
    pointer-events: none;
    cursor: default;
    line-height: 1.4;
}

.sf-comment-reaction-emoji {
    font-size: 14px;
    line-height: 1;
}

.sf-comment-reaction-count {
    font-size: 12px;
    font-weight: 500;
}

/* ── Group List Page ── */
.sf-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sf-group-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #050505;
}

.sf-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.sf-group-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    overflow: hidden;
    transition: box-shadow .2s;
}

.sf-group-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.sf-group-card-image {
    height: 120px;
    background: #e4e6eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sf-group-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-group-card-placeholder {
    font-size: 36px;
    color: #b0b3b8;
}

.sf-group-card-body {
    padding: 12px;
}

.sf-group-card-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #050505;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-group-card-desc {
    font-size: 13px;
    color: #65676b;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-group-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #65676b;
    margin-bottom: 8px;
}

.sf-group-card-actions {
    display: flex;
    gap: 8px;
}

/* ── Pinned Announcements (Company Wall) ── */
.sf-pinned-section {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.sf-pinned-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #050505;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-pinned-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.sf-pinned-card {
    background: #f0f2f5;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: background .2s;
}

.sf-pinned-card:hover {
    background: #e4e6eb;
}

.sf-pinned-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #050505;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-pinned-card-preview {
    font-size: 13px;
    color: #65676b;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-pinned-card-time {
    font-size: 12px;
    color: #b0b3b8;
}

/* ── Comment Attachment ── */
.sf-comment-attachment {
    margin: 4px 0 2px;
}

.sf-comment-attachment-img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 6px;
    cursor: pointer;
}

.sf-comment-attachment-file {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f0f2f5;
    border-radius: 6px;
    font-size: 12px;
    color: #050505;
    text-decoration: none;
}

.sf-comment-attachment-file:hover {
    background: #e4e6eb;
}

.sf-comment-attachment-size {
    color: #65676b;
    font-size: 11px;
}

/* ── Modal Actions ── */
.sf-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* ================================================================
   SHARED COVER HEADER (Group, Profile, Company)
   ================================================================ */
.sf-cover-header {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    margin-bottom: 16px;
    overflow: hidden;
}

.sf-cover-banner {
    height: 220px;
    background: #f0f2f5;
    overflow: hidden;
    position: relative;
}

.sf-cover-banner--loading {
    background: #f0f2f5;
}

.sf-cover-banner--profile {
    background: #dbe4ff;
}

.sf-cover-banner--company {
    background: #ffe8cc;
}

.sf-cover-banner--group {
    background: #d0ebff;
}

.sf-cover-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.sf-cover-banner-btn {
    position: absolute;
    bottom: 12px;
    right: 16px;
    z-index: 2;
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sf-cover-banner-btn:hover {
    background: rgba(0,0,0,.7);
}

.sf-cover-banner-remove-btn {
    position: absolute;
    bottom: 12px;
    right: 150px;
    z-index: 2;
    background: rgba(220, 53, 69, .7);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sf-cover-banner-remove-btn:hover {
    background: rgba(220, 53, 69, .9);
}

.sf-cover-banner-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 100%;
}

.sf-cover-banner-menu-item--danger {
    color: #dc3545;
}

/* ── Overlay mode: avatar + name on banner ── */
.sf-cover-header--overlay .sf-cover-banner {
    display: flex;
    align-items: flex-end;
}

.sf-cover-overlay-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 20px 24px;
    width: 100%;
    background: linear-gradient(transparent 0%, rgba(0,0,0,.45) 100%);
}

.sf-cover-overlay-meta {
    flex: 1;
    min-width: 0;
    padding-bottom: 4px;
}

.sf-cover-overlay-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.sf-cover-overlay-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: rgba(255,255,255,.9);
    margin-top: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.sf-cover-header--overlay .sf-cover-avatar {
    margin-top: 0;
    border: 3px solid #fff;
}

/* ── Normal info (below banner) ── */
.sf-cover-info {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 0 24px 12px;
}

.sf-cover-avatar {
    width: 100px;
    height: 100px;
    background: #e4e6eb;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -50px;
    border: 4px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    position: relative;
}

.sf-cover-avatar--round {
    border-radius: 50%;
}

.sf-cover-avatar--company {
    width: 110px;
    height: 110px;
}

.sf-cover-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-cover-avatar-placeholder {
    font-size: 36px;
    color: #65676b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sf-cover-avatar-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e4e6eb;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #050505;
    transition: background .15s;
    z-index: 1;
}

.sf-cover-avatar-btn:hover {
    background: #d0d3d9;
}

.sf-cover-meta {
    flex: 1;
    min-width: 0;
    padding-bottom: 4px;
}

.sf-cover-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #050505;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-cover-icon {
    font-size: 18px;
    color: #65676b;
}

.sf-cover-subtitle {
    display: flex;
    gap: 10px;
    font-size: 15px;
    color: #65676b;
    margin-top: 2px;
}

.sf-cover-subtitle span + span::before {
    content: "\00B7";
    margin-right: 10px;
}

/* ── Cover Tabs ── */
.sf-cover-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-top: 1px solid #e4e6eb;
}

.sf-cover-tabs-left {
    display: flex;
    gap: 0;
}

.sf-cover-tabs-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-cover-tab {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #65676b;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    outline: none;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}

.sf-cover-tab:focus,
.sf-cover-tab:focus-visible,
.sf-cover-tab:active {
    outline: none !important;
    box-shadow: none !important;
    border: none;
    border-bottom: 3px solid transparent;
}

.sf-cover-tab--active:focus,
.sf-cover-tab--active:focus-visible,
.sf-cover-tab--active:active {
    border-bottom-color: var(--ant-primary-color, #f60);
}

.sf-cover-tab:hover {
    background: #f0f2f5;
    border-radius: 6px 6px 0 0;
}

.sf-cover-tab--active {
    color: var(--ant-primary-color, #f60);
    border-bottom-color: var(--ant-primary-color, #f60);
}

.sf-cover-tab--disabled {
    color: #b0b3b8;
    cursor: default;
}

.sf-cover-tab--disabled:hover {
    background: none;
}

.sf-cover-status {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1b7e1b;
    background: #e6f9e6;
    border-radius: 6px;
}

.sf-cover-more-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #e4e6eb;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.sf-cover-more-btn:hover {
    background: #d0d3d9;
}

/* V9.3 issue #4: nút "Tham gia" custom (đồng bộ style module, bỏ AntDesign default).
   Dùng chung ở GroupDetail (cover header) và GroupCard (trang khám phá nhóm). */
.sf-cover-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--sf-primary, #1890ff);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
}

.sf-cover-join-btn:hover:not(:disabled) {
    filter: brightness(.92);
}

.sf-cover-join-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* GroupCard footer: canh giữa icon + chữ trong nút Tham gia. */
.sn-group-card-join-btn {
    justify-content: center;
}

/* V9.3 QA-fix #4: nút phụ trong GroupCard (Xem nhóm/Ghim/Bỏ ghim) — đồng bộ geometry với
   .sf-cover-join-btn nhưng tông secondary (nền xám nhạt, chữ tối) thay vì AntDesign default. */
.sn-group-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2329;
    background: #f0f2f5;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
}

.sn-group-card-btn:hover {
    background: #e4e6eb;
}

/* V9.1 issue #3: nút "Đã tham gia" (dropdown chứa Cài đặt nhóm + Rời nhóm) */
.sf-cover-joined-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1b7e1b;
    background: #e6f9e6;
    border: 1px solid #b7ebb7;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
}

.sf-cover-joined-btn:hover {
    background: #d4f5d4;
}

.sf-cover-joined-btn .anticon-down {
    font-size: 11px;
    opacity: .7;
}

.sf-cover-leave-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff4d4f;
}

/* ── Cover Content Layout (main + sidebar) ── */
.sf-cover-content-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sf-cover-content-main {
    flex: 1;
    min-width: 0;
}

.sf-cover-content-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 16px;
}

.sf-sidebar-desc {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

/* ── Sidebar Topics ── */
.sf-sidebar-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-sidebar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.sf-sidebar-card-header h3 {
    margin: 0;
}

.sf-topic-manage-btn {
    background: none;
    border: none;
    color: var(--ant-primary-color, #f60);
    font-size: 13px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background .15s;
}

.sf-topic-manage-btn:hover {
    background: color-mix(in srgb, var(--ant-primary-color, #f60) 10%, transparent);
}

.sf-sidebar-topic-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 13px;
    color: var(--ant-primary-color, #f60);
    border: none;
    background: transparent;
    background: color-mix(in srgb, var(--ant-primary-color, #f60) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--ant-primary-color, #f60) 20%, transparent);
    border-radius: 16px;
    cursor: pointer;
    transition: background .15s;
}

.sf-sidebar-topic-tag:hover {
    background: color-mix(in srgb, var(--ant-primary-color, #f60) 15%, transparent);
}

.sf-sidebar-topic-tag > *:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.sf-sidebar-topic-count {
    margin-left: 6px;
    background: color-mix(in srgb, var(--ant-primary-color, #f60) 18%, transparent);
    color: var(--ant-primary-color, #f60);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    line-height: 1.4;
}

.sf-sidebar-topic-tag--active {
    background: var(--ant-primary-color, #f60);
    color: #fff;
}

.sf-sidebar-topic-tag--active .sf-sidebar-topic-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.sf-sidebar-topic-tag--active:hover {
    background: color-mix(in srgb, var(--ant-primary-color, #f60) 85%, #000);
}

/* ── Topic Stats Bar Chart ── */
.sf-topic-stat-period {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.sf-topic-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    cursor: pointer;
    font-size: 13px;
    color: #595959;
    transition: all 0.2s;
    white-space: nowrap;
}

.sf-topic-chip:hover {
    background: #ebebeb;
    border-color: #d9d9d9;
}

.sf-topic-chip--active {
    background: color-mix(in srgb, var(--ant-primary-color, #f60) 10%, white);
    border-color: var(--ant-primary-color, #f60);
    color: var(--ant-primary-color, #f60);
}

.sf-topic-chip--active:hover {
    background: color-mix(in srgb, var(--ant-primary-color, #f60) 15%, white);
}

.sf-topic-chip-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-topic-chip-count {
    font-size: 11px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.08);
    color: #666;
    padding: 0 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 18px;
}

.sf-topic-chip--active .sf-topic-chip-count {
    background: color-mix(in srgb, var(--ant-primary-color, #f60) 20%, transparent);
    color: var(--ant-primary-color, #f60);
}

/* ── Sidebar Announcements ── */
.sf-sidebar-announcement {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    transition: background .1s;
}

.sf-sidebar-announcement:last-child {
    border-bottom: none;
}

.sf-sidebar-announcement:hover {
    background: #f5f6f7;
    margin: 0 -12px;
    padding: 10px 12px;
    border-radius: 6px;
}

.sf-sidebar-announcement-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #65676b;
    font-size: 18px;
}

.sf-sidebar-announcement-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-sidebar-announcement-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sf-sidebar-announcement-title {
    font-size: 14px;
    font-weight: 600;
    color: #050505;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-sidebar-announcement-time {
    font-size: 12px;
    color: #65676b;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Empty State ── */
.sf-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 20px;
    color: #65676b;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.sf-empty-state .anticon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    opacity: .4;
}

.sf-empty-state p {
    font-size: 15px;
    margin: 0;
}

@media (max-width: 900px) {
    .sf-cover-content-layout {
        flex-direction: column;
    }
    .sf-cover-content-sidebar {
        width: 100%;
        position: static;
    }
    .sf-cover-avatar {
        width: 80px;
        height: 80px;
        margin-top: -40px;
    }
    .sf-cover-avatar--company {
        width: 80px;
        height: 80px;
        margin-top: -40px;
    }
    .sf-cover-name {
        font-size: 20px;
    }
    .sf-cover-banner {
        height: 160px;
    }
    .sf-cover-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ── Group About Tab ── */
.sf-group-about {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.sf-group-about h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #050505;
}

.sf-group-about p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin: 0 0 16px;
}

.sf-group-about-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.sf-group-about-info strong {
    font-weight: normal;
    color: #050505;
}

/* ================================================================
   MEMBER LIST
   ================================================================ */
.sf-member-list {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.sf-member-header {
    margin-bottom: 12px;
}

/* Sprint 28 / V8.4 — Old block xoá (Sprint 7 era), Sprint 28 layout 3-line nằm ở cuối file. */

.sf-member-name {
    font-weight: 600;
    font-size: 14px;
    color: #050505;
}

.sf-member-role-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f0f2f5;
    color: #65676b;
}

.sf-member-role-badge.sf-role-admin {
    background: var(--sf-primary-bg);
    color: var(--ant-primary-color, #1890ff);
    font-weight: 600;
}

.sf-member-joined {
    font-size: 12px;
    color: #b0b3b8;
}

.sf-member-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ── Add Member Modal ── */
.sf-add-member-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sf-search-results {
    max-height: 300px;
    overflow-y: auto;
}

.sf-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
}

.sf-search-item:hover {
    background: #f0f2f5;
}

/* ================================================================
   PROFILE PAGE (uses shared .sf-cover-* styles above)
   ================================================================ */

.sf-sidebar-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
    padding: 16px;
}

.sf-sidebar-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #050505;
}

.sf-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    padding: 6px 0;
}

.sf-sidebar-item .anticon {
    font-size: 16px;
    color: #65676b;
    width: 20px;
    text-align: center;
}

/* ================================================================
   POST CARD — AUTHOR LINK
   ================================================================ */
.sf-post-author-link {
    color: #050505;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.sf-post-author-link:hover {
    text-decoration: underline;
    color: var(--ant-primary-color, #1890ff);
}

.sf-post-group-link-wrap {
    font-weight: 400;
    color: #65676b;
    font-size: 13px;
    margin-left: 2px;
}

.sf-post-group-link {
    color: #050505;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.sf-post-group-link:hover {
    text-decoration: underline;
    color: var(--ant-primary-color, #1890ff);
}

/* ================================================================
   TOPIC STATS WIDGET (Company Wall sidebar)
   ================================================================ */
.sf-widget-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sf-widget-title-row .sf-widget-title {
    margin-bottom: 0;
}

.sf-stats-empty {
    font-size: 13px;
    color: #b0b3b8;
    text-align: center;
    padding: 12px 0;
}

.sf-stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sf-stats-row:last-child {
    margin-bottom: 0;
}

.sf-stats-label {
    font-size: 13px;
    color: #333;
    width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.sf-stats-bar-wrap {
    flex: 1;
    height: 8px;
    background: #f0f2f5;
    border-radius: 4px;
    overflow: hidden;
}

.sf-stats-bar {
    height: 100%;
    background: var(--ant-primary-color, #1890ff);
    border-radius: 4px;
    transition: width .3s ease;
    min-width: 2px;
}

.sf-stats-count {
    font-size: 12px;
    font-weight: 600;
    color: #050505;
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}

/* ── Group Secret Tag ── */
.sf-group-secret-tag {
    display: inline-block;
    font-size: 12px;
    color: #ff4d4f;
    font-weight: 600;
}

/* ── Group Create Form ── */
.sf-group-create-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sf-form-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sf-form-item label {
    font-weight: normal;
    font-size: 14px;
    color: #333;
}

.sf-char-count {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: 2px;
}

/* ================================================================
   EMOJI PICKER
   ================================================================ */
.sf-emoji-picker-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sf-emoji-trigger-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
    transition: background .15s;
}

.sf-emoji-trigger-btn:hover {
    background: #f0f2f5;
}

.sf-emoji-panel {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 280px;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    z-index: 200;
    margin-bottom: 4px;
}

.sf-emoji-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    transition: background .1s;
    padding: 0;
}

.sf-emoji-item:hover {
    background: #f0f2f5;
}

/* ── Company Member List ── */

.sf-company-member-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.sf-company-member-subtabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.sf-company-member-subtab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    outline: none;
    background: #fafafa;
    cursor: pointer;
    font-size: 14px;
    color: #595959;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.sf-company-member-subtab:first-child {
    border-radius: 8px 0 0 0;
}

.sf-company-member-subtab:last-child {
    border-radius: 0 8px 0 0;
}

.sf-company-member-subtab:hover:not(.sf-company-member-subtab--disabled) {
    color: var(--ant-primary-color, #f60);
    background: #fff5f0;
}

.sf-company-member-subtab--active {
    color: var(--ant-primary-color, #f60);
    border-bottom-color: var(--ant-primary-color, #f60);
    background: #fff;
    font-weight: 600;
}

.sf-company-member-subtab--disabled {
    color: #bfbfbf;
    cursor: not-allowed;
    background: #fafafa;
}

.sf-company-member-search {
    margin-bottom: 20px;
}

.sf-company-member-subtabs {
    display: flex;
    gap: 0;
    border-bottom: none;
    margin-bottom: 16px;
}

.sf-company-member-search .ant-input-affix-wrapper,
.sf-company-member-search .ant-input {
    border-radius: 20px;
    padding: 8px 16px;
}

.sf-company-member-search .ant-input:focus,
.sf-company-member-search .ant-input-affix-wrapper:focus,
.sf-company-member-search .ant-input-affix-wrapper-focused {
    border-color: #d9d9d9 !important;
    box-shadow: none !important;
    outline: none !important;
}

.sf-company-member-grid {
    display: grid;
    /* V9.1 issue #7: minmax(0,1fr) cho phép cột co nhỏ hơn min-content — tránh tên dài (nowrap)
       làm tràn/vỡ layout khi "Xem thêm" nạp thành viên có tên dài. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sf-company-member-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: default;
    min-width: 0;
}

.sf-company-member-card:hover {
    border-color: #d9d9d9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sf-company-member-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
}

.sf-company-member-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.sf-company-member-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.sf-company-member-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* V9.1 issue #14: tên thành viên clickable → trang cá nhân (Nhóm + Tường công ty) */
.sf-member-name-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.sf-member-name-link:hover {
    color: #1677ff;
    text-decoration: underline;
}

/* V9.1 issue #1/#2: ô tìm kiếm + nút Thêm thành viên cùng 1 dòng */
.sf-member-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sf-member-search {
    flex: 1;
    min-width: 0;
}

/* V9.1: nút "Thêm thành viên" theo style nút "Quản lý" chủ đề (text mảnh, màu primary) */
.sf-member-add-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--ant-primary-color, #f60);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background .15s;
    white-space: nowrap;
}

.sf-member-add-btn:hover {
    background: color-mix(in srgb, var(--ant-primary-color, #f60) 10%, transparent);
}

.sf-company-member-code {
    font-size: 13px;
    color: #8c8c8c;
    margin-bottom: 4px;
}

.sf-company-member-dept {
    font-size: 13px;
    color: #8c8c8c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Skeleton loading */

.sf-company-member-card--skeleton {
    animation: sf-skeleton-pulse 1.5s ease-in-out infinite;
}

.sf-skeleton-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f0f0f0;
    margin: 0 auto 12px;
}

.sf-skeleton-line {
    height: 14px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 0 auto 8px;
}

.sf-skeleton-line--name {
    width: 60%;
}

.sf-skeleton-line--code {
    width: 50%;
}

.sf-skeleton-line--dept {
    width: 70%;
}

@keyframes sf-skeleton-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Responsive */

@media (max-width: 768px) {
    .sf-company-member-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sf-company-member-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Announcement Tab (Company Wall) ── */
.sf-announcement-tab {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.sf-announcement-tab-header {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #595959;
    border-bottom: 1px solid #f0f0f0;
}

.sf-announcement-list {
    display: flex;
    flex-direction: column;
}

.sf-announcement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}

.sf-announcement-item:last-child {
    border-bottom: none;
}

.sf-announcement-item:hover {
    background: #fafafa;
}

.sf-announcement-item-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.sf-announcement-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-announcement-item-body {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.sf-announcement-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-announcement-item-time {
    font-size: 12px;
    color: #8c8c8c;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sf-announcement-item-time .anticon {
    font-size: 12px;
}

.sf-announcement-item-actions {
    flex-shrink: 0;
}

.sf-announcement-item-menu-btn {
    color: #8c8c8c !important;
    border: none !important;
    box-shadow: none !important;
}

.sf-announcement-item-menu-btn:hover {
    color: #262626 !important;
    background: #f0f0f0 !important;
    border-radius: 50% !important;
}

/* ── Post contextual description ── */
.sf-post-context-desc {
    color: #8c8c8c;
    font-size: 13px;
    font-weight: 400;
}

.sf-post-context-desc .sf-post-group-link {
    color: var(--ant-primary-color);
    font-weight: 500;
    text-decoration: none;
}

.sf-post-context-desc .sf-post-group-link:hover {
    text-decoration: underline;
}

/* ================================================================
   Approval Workflow Styles
   ================================================================ */

.sf-post-status-pending {
    color: #fa8c16;
    font-weight: 500;
}

.sf-post-status-rejected {
    color: #ff4d4f;
    font-weight: 500;
    cursor: help;
}

.sf-approval-actions {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    border-top: 1px solid #f0f0f0;
}

/* V9.3 issue #2: bỏ đường viền màu quanh nút Duyệt/Từ chối → nền màu nhạt + chữ đậm.
   border transparent (không bỏ hẳn) để giữ chiều cao, tránh "giật" layout khi hover. */
/* V9.3 QA-fix #3: nút Duyệt/Từ chối bình thường KHÔNG nền (chỉ text màu), chỉ hiện nền khi hover.
   Bỏ viền (border transparent giữ chiều cao). Text màu đậm đạt contrast trên nền trắng card. */
.sf-approval-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.sf-approval-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sf-approval-approve {
    /* #237804 trên nền trắng card ~5.6:1 (WCAG AA ≥4.5:1). */
    color: #237804;
}

.sf-approval-approve:hover:not(:disabled) {
    background: #d9f7be;
}

.sf-approval-reject {
    color: #cf1322;
}

.sf-approval-reject:hover:not(:disabled) {
    background: #ffccc7;
}

.sf-approval-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 4px 0;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    font-size: 13px;
    color: #d48806;
}

/* ================================================================
   REQ-8: Sidebar Groups
   ================================================================ */

.sn-sidebar-section {
    padding: 8px 8px;
    border-top: 1px solid #f0f0f0;
}

.sn-sidebar-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #8c8c8c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    margin-bottom: 2px;
}

.sn-sidebar-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: 8px;
    /* V9.0 fix #6: khoảng trống 2px giữa các item (đồng bộ gap:2px của .social-nav-menu)
       để khi 1 item active + hover item kế không bị dính liền 2 nền. */
    margin-bottom: 2px;
    transition: all 0.15s;
    cursor: pointer;
}

.sn-sidebar-group-item:hover {
    background: color-mix(in srgb, var(--ant-primary-color) 10%, transparent);
    color: var(--ant-primary-color);
}

.sn-sidebar-group-active {
    background: color-mix(in srgb, var(--ant-primary-color) 18%, transparent);
}

.sn-sidebar-group-active .sn-sidebar-group-name {
    color: var(--ant-primary-color);
    font-weight: 600;
}

.sn-sidebar-group-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.sn-sidebar-pin-icon {
    color: var(--ant-primary-color);
    font-size: 18px;
    flex-shrink: 0;
}

.sn-sidebar-group-icon {
    color: #595959;
    font-size: 18px;
    flex-shrink: 0;
}

.sn-sidebar-group-item:hover .sn-sidebar-group-icon {
    color: var(--ant-primary-color);
}

.sn-sidebar-group-active .sn-sidebar-group-icon {
    color: var(--ant-primary-color);
}

.sn-sidebar-group-name {
    font-size: 14px;
    /* V9.1 issue #4: đồng bộ màu chữ với .social-nav-item, tương phản rõ */
    color: #262626;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sn-sidebar-group-menu {
    background: none;
    border: none;
    color: #bfbfbf;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity .15s;
}

.sn-sidebar-group-item:hover .sn-sidebar-group-menu {
    opacity: 1;
}

.sn-sidebar-group-menu:hover {
    color: #595959;
    background: #e8e8e8;
}

/* V9.1 issue #9: nút Ghim/Bỏ ghim bấm trực tiếp (thay menu "...") */
.sn-sidebar-group-pin {
    background: none;
    border: none;
    color: #bfbfbf;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity .15s, color .15s, background .15s;
}

.sn-sidebar-group-item:hover .sn-sidebar-group-pin {
    opacity: 1;
}

.sn-sidebar-group-pin:hover {
    color: var(--ant-primary-color);
    background: #e8e8e8;
}

/* Nhóm đã ghim → icon ghim luôn hiển thị, màu nổi bật */
.sn-sidebar-group-pin--active {
    opacity: 1;
    color: var(--ant-primary-color);
}

/* V9.1 issue #10: avatar nhóm ở sidebar */
.sn-sidebar-group-avatar {
    flex-shrink: 0;
}

.sn-sidebar-see-more {
    padding: 6px 16px;
    margin: 0;
    font-size: 13px;
    color: var(--ant-primary-color);
    cursor: pointer;
    font-weight: 500;
}

.sn-sidebar-see-more:hover {
    text-decoration: underline;
}

/* V9.0 fix #5: đồng bộ với .social-nav-item (padding/gap/radius/hover/focus) để nút Tạo nhóm
   không lệch style + không để lại focus ring khác biệt sau khi click. */
.sn-sidebar-create-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    margin: 0;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--ant-primary-color);
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s;
}

.sn-sidebar-create-btn:hover,
.sn-sidebar-create-btn:focus-visible {
    background: color-mix(in srgb, var(--ant-primary-color) 10%, transparent);
    color: var(--ant-primary-color);
    outline: none;
}

.sn-sidebar-create-btn .anticon {
    font-size: 18px;
    flex-shrink: 0;
}

/* ================================================================
   REQ-8: Group List Header + Search Redesign
   ================================================================ */

.sn-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.sn-group-header-title {
    font-size: 22px;
    font-weight: 600;
    color: #262626;
    margin: 0;
}

.sn-group-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sn-group-search-input {
    width: 260px;
}

/* ================================================================
   REQ-8: GroupCard Component
   ================================================================ */

.sn-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.sn-group-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .2s, transform .15s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sn-group-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sn-group-card-cover {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, #e4e6eb 0%, #d4d8e0 100%);
    overflow: hidden;
}

.sn-group-card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sn-group-card-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 40px;
    color: #bfbfbf;
}

.sn-group-card-privacy-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.sn-group-card-secret {
    background: rgba(255, 77, 79, 0.9);
    color: #fff;
}

.sn-group-card-public {
    background: rgba(255, 255, 255, 0.9);
    color: #52c41a;
}

.sn-group-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sn-group-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sn-group-card-desc {
    font-size: 13px;
    color: #8c8c8c;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.sn-group-card-info {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #8c8c8c;
    margin-bottom: 12px;
}

.sn-group-card-members,
.sn-group-card-activity {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sn-group-card-footer {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

/* ================================================================
   Sidebar Card Header (title + action button)
   ================================================================ */

.sf-sidebar-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.sf-sidebar-card-header h3 {
    margin: 0;
}

.sf-sidebar-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #65676b;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.sf-sidebar-action-btn:hover {
    background: #f0f2f5;
    color: var(--ant-primary-color);
}

.sf-sidebar-empty {
    color: #65676b;
    font-size: 13px;
    margin: 0;
}

.sf-topic-filter-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sf-topic-filter-item {
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #050505;
    transition: background .15s;
}

.sf-topic-filter-item:hover {
    background: #f0f2f5;
}

.sf-topic-filter-active {
    background: color-mix(in srgb, var(--ant-primary-color) 12%, transparent);
    color: var(--ant-primary-color);
    font-weight: 600;
}

/* ================================================================
   Topic Manage Modal
   ================================================================ */

.sn-topic-manage {
    max-height: 500px;
    overflow-y: auto;
}

.sn-topic-add-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.sn-topic-add-row {
    display: flex;
    gap: 8px;
}

.sn-topic-add-options {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 2px;
}

.sn-topic-list {
    display: flex;
    flex-direction: column;
}

.sn-topic-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}

.sn-topic-item:hover {
    background: #fafafa;
}

.sn-topic-view-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sn-topic-order {
    min-width: 24px;
    text-align: center;
    font-size: 12px;
    color: #8c8c8c;
    font-weight: 500;
}

.sn-topic-name {
    flex: 1;
    font-size: 14px;
    color: #262626;
}

.sn-topic-actions {
    display: flex;
    gap: 2px;
    margin-left: auto;
    opacity: 0;
    transition: opacity .15s;
}

.sn-topic-item:hover .sn-topic-actions {
    opacity: 1;
}

.sn-topic-edit-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sn-topic-manage-btn {
    background: none;
    border: none;
    color: #8c8c8c;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: color .15s, background .15s;
}

.sn-topic-manage-btn:hover {
    color: var(--ant-primary-color);
    background: #f0f0f0;
}

.sn-topic-action-btn {
    background: none;
    border: none;
    color: #8c8c8c;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: color .15s;
}

.sn-topic-action-btn:hover {
    color: var(--ant-primary-color);
}

.sn-topic-action-btn--danger:hover {
    color: #ff4d4f;
}

/* ================================================================
   POST DETAIL PAGE — Background & Comment styling
   ================================================================ */
/* ── Post Detail — 2-column layout ── */
.sf-post-detail-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sf-post-detail-main {
    flex: 1;
    min-width: 0;
    max-width: 780px;
    padding: 0;
}

.sf-post-detail-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    /* V9.0 — sticky theo scrollport .social-layout (dưới header). */
    top: 16px;
}

@media (max-width: 1100px) {
    .sf-post-detail-sidebar {
        display: none;
    }
}

.sf-post-detail-merged {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    overflow: hidden;
}

.sf-post-detail-merged .sf-post-card {
    margin-bottom: 0;
    /* Sprint 43 V9.9 UAT v6.3 F2.1 — reset padding-bottom v6.3 (detail merged context có comment list
       liền kề, không cần buffer card-level). */
    padding-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

.sf-post-detail-merged .sf-comment-list {
    background: #fff;
    border-radius: 0;
    border-top: 1px solid #f0f0f0;
    padding: 12px 16px 16px;
    box-shadow: none;
}

.sf-post-detail-main .sf-comment-input-wrap {
    background: #f0f2f5;
    border-radius: 20px;
    padding: 7px 12px;
}

/* ================================================================
   Sprint 27 / V8.3 — GroupMemberList overhaul + Add Member modal
   Sprint 28 / V8.4 — Member 3-line layout, Add btn restyle, pending tag-wrap
   ================================================================ */

/* Member header — Sprint 28: nút "Thêm thành viên" căn phải */
.sf-member-header {
    display: flex;
    justify-content: flex-end;
    padding: 8px 0;
}

/* Member item — Sprint 28: 3-line layout (Tên/MNV/role/ngày · Phòng ban · Chức danh) */
.sf-member-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sf-member-info {
    flex: 1;
    min-width: 0;
    display: block;
}

.sf-member-line1 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sf-member-line1 .sf-member-name {
    font-weight: 500;
    color: #262626;
}

.sf-member-line1 .sf-member-code {
    color: #8c8c8c;
    font-size: 12px;
}

.sf-member-line2,
.sf-member-line3 {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    color: #595959;
}

/* V9.1 issue #1: tên phòng ban / chức danh chỉ 1 dòng, dài thì "…" — icon không bị căn giữa 2 dòng */
.sf-member-line2 > span,
.sf-member-line3 > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.sf-member-line2 .anticon,
.sf-member-line3 .anticon {
    color: #bfbfbf;
    font-size: 12px;
    flex-shrink: 0;
}

.sf-member-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Add Member Modal */
/* Sprint 28 / V8.4 v10 — modal FIXED height (~70vh) ngay từ đầu để không co giãn khi
   user gõ search → tránh layout shift khó chịu. Top section flex:1 fills phần còn lại,
   pending + footer cố định, footer luôn dưới đáy. */
.sf-add-member-modal {
    display: flex;
    flex-direction: column;
    height: 70vh;
}

.sf-add-member-top {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sf-add-member-hint {
    background: #f0f8ff;
    border-left: 3px solid #1890ff;
    padding: 8px 12px;
    margin: 0;
    font-size: 13px;
    color: #595959;
    border-radius: 4px;
}

.sf-add-member-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.sf-add-member-search-input {
    margin-bottom: 4px;
}

/* Search results — Sprint 28 v8: bỏ max-height + scroll. Top container scroll khi cần.
   Pending list section ở ngoài top → vẫn always visible. */
.sf-add-member-search {
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 4px;
}

.sf-add-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.sf-add-member-row:hover {
    background: #fafafa;
}

.sf-add-member-row .sf-add-member-info {
    flex: 1;
    min-width: 0;
}

.sf-add-member-row .sf-add-member-line1 {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.sf-add-member-row .sf-add-member-code {
    font-weight: 600;
    color: #262626;
    font-size: 12px;
}

.sf-add-member-row .sf-add-member-name {
    color: #262626;
    font-weight: 500;
}

.sf-add-member-row .sf-add-member-line2 {
    margin-top: 2px;
    font-size: 12px;
    color: #8c8c8c;
}

.sf-add-member-row .sf-add-member-sep {
    margin: 0 4px;
    color: #d9d9d9;
}

/* Sprint 28 v9: hint nằm TRÊN kết quả search → luôn visible, không bị scroll che. */
.sf-add-member-search-hint {
    font-size: 12px;
    color: #8c8c8c;
    padding: 4px 8px;
    background: #fafafa;
    border-left: 3px solid #faad14;
    border-radius: 4px;
}

.sf-add-member-empty {
    text-align: center;
    padding: 32px 16px;
    color: #8c8c8c;
}

.sf-add-member-empty .anticon {
    font-size: 32px;
    margin-bottom: 8px;
    color: #bfbfbf;
}

.sf-add-member-empty p {
    margin: 0;
    font-size: 13px;
}

/* Department tree — Sprint 28 v8: bỏ inner scroll. Top container scroll khi cần. */
.sf-add-member-dept-tree {
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 8px;
}

/* Override site.css global `.ant-tree { max-height: 700px; overflow: hidden }` và
   `.ant-tree:hover { overflow: auto }` để tree render tự nhiên trong modal, không bật
   scroll riêng trên hover. Top container scroll khi cần. */
.sf-add-member-dept-tree .ant-tree,
.sf-add-member-dept-tree .ant-tree:hover {
    max-height: none;
    overflow: visible;
}

.sf-dept-node-meta {
    color: #8c8c8c;
    font-size: 12px;
    margin-left: 4px;
}

.sf-dept-node--full {
    color: #8c8c8c;
    font-style: italic;
}

.sf-dept-node-full-tag {
    color: #52c41a;
    font-size: 11px;
    margin-left: 6px;
    font-weight: 500;
}

/* Pending list — Sprint 28 v7: section ngoài top wrapper, luôn visible phía trên footer.
   flex-shrink:0 → giữ chiều cao cố định (max ~190px). List bên trong có own scroll khi nhiều tag. */
.sf-add-member-pending {
    flex-shrink: 0;
    margin: 0 24px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fafafa;
}

.sf-add-member-pending-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    color: #262626;
    font-size: 13px;
}

.sf-add-member-pending-list {
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
    max-height: 130px;
    overflow-y: auto;
}

.sf-add-member-pending-tag {
    margin: 0 !important;
    padding: 4px 10px;
    font-size: 12px;
    background: #fff !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 4px;
    color: #595959;
}

.sf-add-member-pending-tag strong {
    margin-right: 4px;
    color: #262626;
}

.sf-add-member-pending-tag .ant-tag-close-icon {
    color: #8c8c8c;
    margin-left: 6px;
}

.sf-add-member-pending-tag .ant-tag-close-icon:hover {
    color: #f5222d;
}

/* Sprint 28 / V8.4 — reset focus outline đen mặc định cho buttons trong modal,
   đồng bộ với pattern đã dùng ở `.sf-cover-tab` (xem block CSS phía trên trong file). */
.sf-add-member-modal button:focus,
.sf-add-member-modal button:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Footer actions — Sprint 28 v6: sticky ở đáy modal nhờ flex layout (.sf-add-member-modal
   flex column, footer flex-shrink:0). Luôn visible kể cả khi scroll body. */
.sf-add-member-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 24px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fff;
}

