/* /Components/Pages/GroupEntity/GroupEntity.razor.rz.scp.css */
/* === Page Header === */
.group-header[b-hyfu5ol169] {
    padding-bottom: 7px;
    margin-bottom: 0.75rem;
    position: relative;
}

/* Full-width border using pseudo-element */
.group-header[b-hyfu5ol169]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 0;
    height: 1px;
    background-color: #E4E4E7;
    width: 100vw;
    margin-left: -50vw;
}

.header-content[b-hyfu5ol169] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-header h5[b-hyfu5ol169] {
    margin: 0 0 4px 0;
    color: #1e293b;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.profile-selector[b-hyfu5ol169] {
    background: white;
}

.action-button-primary[b-hyfu5ol169] {
    text-transform: none !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

.tree-container[b-hyfu5ol169] {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

/* === Tree Node === */
.tree-node[b-hyfu5ol169] {
    position: relative;
    margin-left: calc(var(--indent-level) * 1px);
    margin-bottom: 12px;
}

/* === Node Card === */
.node-card[b-hyfu5ol169] {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.node-card:hover[b-hyfu5ol169] {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.node-main[b-hyfu5ol169] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

/* === Node Toggle === */
.node-toggle[b-hyfu5ol169] {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.toggle-btn[b-hyfu5ol169] {
    width: 32px !important;
    height: 32px !important;
}

.toggle-spacer[b-hyfu5ol169] {
    width: 32px;
    height: 32px;
}

/* === Node Icon === */
.node-icon[b-hyfu5ol169] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 150, 136, 0.08);
    border-radius: 8px;
    flex-shrink: 0;
}

.icon-badge[b-hyfu5ol169] {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--success);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === Node Info === */
.node-info[b-hyfu5ol169] {
    flex: 1;
    min-width: 0;
}

.info-header[b-hyfu5ol169] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.node-title[b-hyfu5ol169] {
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    color: #1e293b !important;
    margin: 0 !important;
}

.info-companies[b-hyfu5ol169] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.company-tag[b-hyfu5ol169] {
    display: inline-flex;
    align-items: center;
    background: #d4f5f2;
    color: #009688;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.company-tag-more[b-hyfu5ol169] {
    display: inline-flex;
    align-items: center;
    background: #d4f5f2;
    color: #009688;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.info-empty[b-hyfu5ol169] {
    color: #94a3b8 !important;
    font-style: italic;
}

/* === Node Actions === */
.node-actions[b-hyfu5ol169] {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* === Node Children === */
.node-children[b-hyfu5ol169] {
    margin-top: 8px;
    animation: expandDown-b-hyfu5ol169 0.2s ease-out;
}

@keyframes expandDown-b-hyfu5ol169 {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Empty State === */
.empty-state[b-hyfu5ol169] {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon-wrapper[b-hyfu5ol169] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(0, 150, 136, 0.06);
    border-radius: 50%;
    margin-bottom: 24px;
}

[b-hyfu5ol169] .empty-icon-wrapper .mud-icon {
    font-size: 40px !important;
    color: var(--primary);
    opacity: 0.6;
}

.empty-title[b-hyfu5ol169] {
    margin: 0 0 8px 0 !important;
    color: #1e293b !important;
    font-weight: 600 !important;
}

.empty-description[b-hyfu5ol169] {
    max-width: 400px;
    margin: 0 auto 24px;
    color: #64748b !important;
}

/* === Loading State === */
.loading-state[b-hyfu5ol169] {
    text-align: center;
    padding: 80px 20px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .node-main[b-hyfu5ol169] {
        flex-wrap: wrap;
        gap: 8px;
    }

    .node-info[b-hyfu5ol169] {
        flex-basis: 100%;
    }

    .tree-node[b-hyfu5ol169] {
        margin-left: calc(var(--indent-level) * 0.6px);
    }
}

@media (max-width: 600px) {
    .header-content[b-hyfu5ol169] {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .company-tag[b-hyfu5ol169],
    .company-tag-more[b-hyfu5ol169] {
        font-size: 11px;
        padding: 2px 6px;
    }
}
/* /Components/Pages/PartyOwnership/PartyOwnership.razor.rz.scp.css */
/* === Page Header === */
.ownership-header[b-592xg0qqe0] {
    padding-bottom: 7px;
    margin-bottom: 0.75rem;
    position: relative;
}

.ownership-header[b-592xg0qqe0]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 0;
    height: 1px;
    background-color: #E4E4E7;
    width: 100vw;
    margin-left: -50vw;
}

.ownership-header h5[b-592xg0qqe0] {
    margin: 0 0 4px 0;
    color: #1f2937;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

/* === Loading === */
.loading-container[b-592xg0qqe0] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
}

/* === Tree Container === */
.tree-container[b-592xg0qqe0] {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

/* === Tree Node === */
.tree-node[b-592xg0qqe0] {
    position: relative;
    margin-left: var(--indent-level);
    margin-bottom: 8px;
}

/* Vertical connecting line from parent to children */
.tree-node:not(.root-node)[b-592xg0qqe0]::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #cbd5e1;
}

/* Horizontal connecting line from vertical line to node */
.tree-node:not(.root-node)[b-592xg0qqe0]::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 22px;
    width: 16px;
    height: 1px;
    background-color: #cbd5e1;
}

/* Hide the vertical line extending below the last child */
.node-children > .tree-node:last-child[b-592xg0qqe0]::before {
    bottom: calc(100% - 22px);
}

/* === Node Card === */
.node-card[b-592xg0qqe0] {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.node-card:hover[b-592xg0qqe0] {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.root-card[b-592xg0qqe0] {
    background: linear-gradient(135deg, #f0fdfa 0%, #f0f9ff 100%);
    border-color: #99f6e4;
}

.root-card:hover[b-592xg0qqe0] {
    border-color: #5eead4;
    box-shadow: 0 2px 12px rgba(0, 150, 136, 0.1);
}

.node-main[b-592xg0qqe0] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}

/* === Node Toggle === */
.node-toggle[b-592xg0qqe0] {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

[b-592xg0qqe0] .toggle-btn {
    width: 28px !important;
    height: 28px !important;
}

.toggle-spacer[b-592xg0qqe0] {
    width: 28px;
    height: 28px;
}

/* === Ownership Percentage Badge === */
.ownership-pct[b-592xg0qqe0] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 52px;
}

.pct-value[b-592xg0qqe0] {
    font-weight: 700;
    font-size: 0.85rem;
    color: #0f766e;
    background: #ccfbf1;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

/* === Node Info === */
.node-info[b-592xg0qqe0] {
    flex: 1;
    min-width: 0;
}

.info-header[b-592xg0qqe0] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

[b-592xg0qqe0] .root-icon {
    color: #0d9488 !important;
    font-size: 1.1rem !important;
}

[b-592xg0qqe0] .node-title {
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    color: #1e293b !important;
    margin: 0 !important;
}

[b-592xg0qqe0] .root-title {
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: #134e4a !important;
}

.country-flag[b-592xg0qqe0] {
    font-size: 0.9rem;
    line-height: 1;
}

.inactive-label[b-592xg0qqe0] {
    font-size: 0.75rem;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 1px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* === Node Metadata (period + type) === */
.node-meta[b-592xg0qqe0] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
}

.meta-period[b-592xg0qqe0] {
    font-size: 0.78rem;
    color: #64748b;
}

.meta-type[b-592xg0qqe0] {
    font-size: 0.72rem;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    padding: 1px 8px;
    border-radius: 4px;
}

/* === Node Actions === */
.node-actions[b-592xg0qqe0] {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* === Node Children === */
.node-children[b-592xg0qqe0] {
    margin-top: 4px;
    position: relative;
    animation: expandDown-b-592xg0qqe0 0.2s ease-out;
}

@keyframes expandDown-b-592xg0qqe0 {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Menu Items (portal) === */
[b-592xg0qqe0] .mud-popover-paper .mud-menu-item,
[b-592xg0qqe0] .mud-popover-paper .mud-menu-list .mud-menu-item,
[b-592xg0qqe0] .mud-menu-item,
[b-592xg0qqe0] .mud-menu-list .mud-menu-item {
    width: 100% !important;
    display: flex !important;
    position: relative !important;
    box-sizing: border-box !important;
    text-align: start !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    padding: 3px 8px !important;
}

/* === Responsive === */
@media (max-width: 768px) {
    .node-main[b-592xg0qqe0] {
        flex-wrap: wrap;
        gap: 6px;
    }

    .node-info[b-592xg0qqe0] {
        flex-basis: calc(100% - 80px);
    }

    .tree-node[b-592xg0qqe0] {
        margin-left: calc(var(--indent-level) * 0.6);
    }

    .ownership-pct[b-592xg0qqe0] {
        min-width: 44px;
    }

    .pct-value[b-592xg0qqe0] {
        font-size: 0.78rem;
        padding: 2px 8px;
    }
}

@media (max-width: 600px) {
    .info-header[b-592xg0qqe0] {
        gap: 4px;
    }

    [b-592xg0qqe0] .node-title {
        font-size: 0.85rem !important;
    }

    .tree-node:not(.root-node)[b-592xg0qqe0]::before,
    .tree-node:not(.root-node)[b-592xg0qqe0]::after {
        display: none;
    }
}
