.cyber-org-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
    padding: 8px;
}

.cyber-org-empty {
    padding: 24px 8px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* Đường nối cha-con được CyberOrgChart.js vẽ vào đây bằng toạ độ đo thực tế của từng card (không
   dùng CSS ::before/::after suy luận theo %) - svg nằm dưới .cyber-org-tree, không chặn click. */
.cyber-org-lines {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.cyber-org-tree,
.cyber-org-tree ul {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cyber-org-tree ul {
    padding-top: 28px;
    margin-top: 0;
}

.cyber-org-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px;
}

/* ===== Card từng node ===== */
.cyber-org-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 168px;
    padding: 16px 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.cyber-org-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--erp-bg-body, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    flex: 0 0 auto;
}

    .cyber-org-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cyber-org-avatar-fallback {
    font-size: 44px;
    color: #94a3b8;
}

.cyber-org-subcaption {
    font-size: 12px;
    color: var(--erp-text-muted, #64748b);
    margin-bottom: 2px;
}

.cyber-org-caption {
    font-size: 14px;
    font-weight: 700;
    color: var(--erp-text-main, #1f2937);
    line-height: 1.3;
}

.cyber-org-viewdetail {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-primary, #00D287);
    cursor: pointer;
    user-select: none;
}

    .cyber-org-viewdetail:hover {
        text-decoration: underline;
    }
